base.js.下载 2.5 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838
  1. var _yt_player={};(function(g){var window=this;/*
  2. Copyright The Closure Library Authors.
  3. SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. Copyright Google LLC
  7. SPDX-License-Identifier: Apache-2.0
  8. */
  9. /*
  10. Copyright Google LLC All Rights Reserved.
  11. Use of this source code is governed by an MIT-style license that can be
  12. found in the LICENSE file at https://angular.dev/license
  13. */
  14. /*
  15. (The MIT License)
  16. Copyright (C) 2014 by Vitaly Puzrin
  17. Permission is hereby granted, free of charge, to any person obtaining a copy
  18. of this software and associated documentation files (the "Software"), to deal
  19. in the Software without restriction, including without limitation the rights
  20. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  21. copies of the Software, and to permit persons to whom the Software is
  22. furnished to do so, subject to the following conditions:
  23. The above copyright notice and this permission notice shall be included in
  24. all copies or substantial portions of the Software.
  25. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  26. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  27. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  28. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  29. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  30. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  31. THE SOFTWARE.
  32. -----------------------------------------------------------------------------
  33. Ported from zlib, which is under the following license
  34. https://github.com/madler/zlib/blob/master/zlib.h
  35. zlib.h -- interface of the 'zlib' general purpose compression library
  36. version 1.2.8, April 28th, 2013
  37. Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
  38. This software is provided 'as-is', without any express or implied
  39. warranty. In no event will the authors be held liable for any damages
  40. arising from the use of this software.
  41. Permission is granted to anyone to use this software for any purpose,
  42. including commercial applications, and to alter it and redistribute it
  43. freely, subject to the following restrictions:
  44. 1. The origin of this software must not be misrepresented; you must not
  45. claim that you wrote the original software. If you use this software
  46. in a product, an acknowledgment in the product documentation would be
  47. appreciated but is not required.
  48. 2. Altered source versions must be plainly marked as such, and must not be
  49. misrepresented as being the original software.
  50. 3. This notice may not be removed or altered from any source distribution.
  51. Jean-loup Gailly Mark Adler
  52. [email protected] [email protected]
  53. The data format used by the zlib library is described by RFCs (Request for
  54. Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
  55. (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
  56. */
  57. /*
  58. The MIT License (MIT)
  59. Copyright (c) 2015-present Dan Abramov
  60. Permission is hereby granted, free of charge, to any person obtaining a copy
  61. of this software and associated documentation files (the "Software"), to deal
  62. in the Software without restriction, including without limitation the rights
  63. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  64. copies of the Software, and to permit persons to whom the Software is
  65. furnished to do so, subject to the following conditions:
  66. The above copyright notice and this permission notice shall be included in all
  67. copies or substantial portions of the Software.
  68. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  69. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  70. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  71. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  72. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  73. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  74. SOFTWARE.
  75. */
  76. 'use strict';var M="1}%3D}UT}clone}sp}T}\\.a1\\.googlevideo\\.com$}youtube.player.web_20250727_21_RC00}fromCharCode}startsWith}set}1969-12-31T21:14:50.000-02:45}rd}Y}indexOf}url}prototype}cmo=}/videoplayback}split}get}slice}S}cmo}length}redirector.googlevideo.com}s}vO}scheme}}L}path}push}null}\\.googlevideo\\.com$}cmo=td}cmo=pf}throw},}forEach}assign}local}mn}{')\u22ff}1969-12-31T18:01:18.000-06:00}1970-01-01T10:00:15.000+10:00}reverse}&}/api/manifest}fallback_count}r}splice}/initplayback}replace}toString}unshift}1970-01-01T06:45:51.000+06:45}1969-12-31T15:45:44.000-08:15}http://local}file}join}rr?[1-9].*\\.c\\.youtube\\.com$}/}pop}https://local}=}:}N9}---}undefined}//}www.youtube.com}Fq}1969-12-31T21:45:44.000-02:15}PGnO6Bayt8IyZ4BtuH-_w8_}match}IK}rr}fvip}://}n}/file/index.m3u8}playerfallback}1969-12-31T18:01:19.000-06:00}signatureCipher}a1.googlevideo.com}rI}?}1970-01-01T09:00:01.000+09:00}];{\\}index.m3u8}Untrusted URL".split("}"),
  77. T5,QIX,jIC,Yb,k5T,oby,vb5,mX,LX6,II,h5,Sf,C5,qt5,gbf,K5,xb,MfJ,PT,Yt6,t5,Ot,UJJ,WT,$b,J5,Fg,yC,Ru5,iy,lW,Z5I,G5g,mJ5,Z1,IH5,hut,Gv,sIu,Stu,hT,B6g,zuy,nW,XTb,pW,wTy,dJf,Hm,N6t,A5y,b55,r5y,iW,Q2,c5T,DJt,os,Ui,aHf,hV,si,SP,CJ,Bg,zs,KXT,Xl,wz,dz,xJ5,H5y,AV,tfJ,DW,uB,pJ,Wg,$Z,JV,O55,pTg,eP,Ei,Fl,WXg,$J5,J55,eub,Ebb,iB,V2,TH,jN,kP,oT,vX,T$5,Mn,Uk,RT,Zo,fl,mI,IT,Q_H,hi,sk,BX,kvu,l1b,oE5,zH,wa,da,bX,ra,Do,aT,Reg,ZWX,f1X,Gvf,uX,mpC,nl,Kl,xP,I15,PX,heI,SAH,pl,$P,Fs,yw,iX,zey,B$y,ATT,dpC,jO,oO,MX,Dp5,udT,a1f,
  78. U$,ZM,nEt,RO,hZ,Qf,xpt,K96,dK,B2,T8,PWH,NX,b5,AZ,HW5,c2,tAI,aO,u5,nO,KO,x1,P2,H2,O$,pO,eO,F3,i5,pmg,$py,W9T,JTy,eeI,lS,oQ,vu,EET,L8,yTb,M_,Yj,Uo,VAX,Tz6,ksJ,QsX,lW5,qiy,RQ,Ly5,oZg,Z9,f8,gZ6,Go,MPt,m3,UMt,YiC,RW6,ZJJ,SC,C8,fWu,Gsf,mM5,Bu,zo,IWH,CBX,X1,Bz5,zWH,AV5,Am,Nz6,Xgg,rVt,aW6,rJ,D9,uS,aQ,ulI,n8,K8,xj,tm,Oo,p8,Jm,tPf,eC,OJb,Eo,Ql,$M5,li,vG,qr,JVt,L2,eWt,Fyg,g_,oc,Mr,Yy,EZC,Uv,ZO,iJI,f2,GS,mY,QTg,XW,jTX,kH6,loC,oPC,zS,BG,Sk,VPf,Tay,vPC,qk6,gPy,MNJ,Nr,AP,bi,YkX,DO,ui,n2,K2,Ung,Zl5,Ov,fo5,$y,WG,
  79. sT5,ek,JP,CXg,zCt,yl,FW,XXg,ii,Vl,Td,Ev,jQ,QK,lq,kM,gL,wXu,o2,Lg,Ms,dnX,YM,Na5,U5,R2,mn,I2,hK,Zf,Gd,fg,SQ,Ai6,Cg,blT,dL,cif,Ns,Dnu,AK,qs,bq,rL,cS,usX,Df,a2,ng,Kg,xM,PS,HS,nPf,tK,KIH,O5,pg,WS,JK,$M,eQ,FV,E5,yK,iq,xnC,HlI,TR,tNC,Olu,pX6,YA,U6,f3,$n5,GR,eCf,ms,EPI,Iy,h7,s6,yi5,SY,il5,C3,VNT,TKt,BW,QOy,zR,Xb,wg,jO5,NW,A7,lMf,cW,Lmu,k8J,DU,uV,xA,MOJ,q$b,WW,J7,Y$I,R7f,ZOH,Fb,E6,y$,iV,V$,Tg,QY,mX5,IMb,h7b,S$g,C56,BKI,k4,lL,z7f,oq,X26,w2b,NKy,cZX,vf,DXb,aMf,u3y,n1T,KmH,gy,xXI,Y4,HO6,Zz,fI,OO5,Gg,mC,Iq,p2C,
  80. WmX,CI,Bf,X6,wy,JZ6,e75,FmX,cf,ry,bL,E1C,yZg,iOH,Dz,aq,uL,TJ5,Hf,t3,jQ5,ko6,l9J,OD,pI,ojt,vjt,Wf,L3y,qob,gjH,MC5,F6,J3,ED,yY,iL,YoI,U_y,R$I,VY,TJ,Z8H,QB,f95,Gou,m_5,jy,I9b,k6,ll,h$X,sQu,SoX,CSC,BJ5,z$X,LC,qV,gR,Y6,XGf,UB,Rd,wGH,zOt,MV,dru,Z7,fC,GJ,CC,Sy,N_g,APb,b25,BU,cP5,zJ,aOH,uW6,nyt,KYy,xr5,PiH,H26,tkH,dR,NV,Ao,pGH,O25,WYg,$ru,rR,JPu,cU,eO6,FYI,D7,ul,nC,Eyb,KC,x6,yPC,PU,HU,to,OB,pC,WU,$6,Jo,i2g,Vkt,TLt,Q25,ey,j2T,lfb,kdf,EB,yB,vMX,oMg,gMy,UsX,Y5T,il,RvT,Zgu,fff,msT,GdT,Iff,VB,hv6,s2t,QR,S5b,Cqg,
  81. BLT,zvb,ju,XSg,kB,wSf,lp,oj,NL5,vH,AK6,LH,qi,bgJ,rK6,gw,YB,DsC,UX,cKu,af5,uV6,nMt,xsg,Rj,Pqg,G9,me,tQ5,Ogb,$sI,JKC,Ij,hs,sX,Su,CH,BH,z9,Xn,ww,dw,Ni,As,bp,yKI,EMu,ig5,Tg5,VQT,jy5,FnT,Qyf,ev5,rw,cH,lU6,oA5,vAC,HH,ts,OX,KH,q6y,pH,kRX,MYu,Y6b,gAJ,WH,$B,Js,eu,UWg,Lsg,RH5,Fn,Z35,fU5,GRI,mWC,IUt,S6f,CVT,Bg6,zH5,EX,yR,XWC,wWC,A7y,b3u,ip,Ty,c76,QT,VR,aUu,DW5,ub5,nAy,Ks5,kf,lr,PVt,H3I,tY5,O3u,pWu,WsX,$WH,J7J,eHg,Fsg,vc,LS,qw,gI,Mw,Yf,EAI,VYy,Tyt,Qqu,kg5,jqT,lz5,ZB,fS,o4X,v4y,LCt,Gy,mf,Il,hz,sc,SH,CS,Bc,qDX,
  82. Xz,Mlg,dI,YDT,UTt,Nw,Az,br,cc,rI,RVX,fzI,DB,jl,sOu,xf,Ggu,mTI,Pc,Iz5,KS,sqf,hVI,nS,Hc,tz,SDX,CLJ,By5,zVJ,Oc,XfX,pS,i3T,y75,Wc,$f,eH,Fz,NyH,Ec,yT,VT,A3C,bIf,Tl,u6X,Y3,c3g,azI,lo,k3,Gl,m5,n45,sJ,KCH,Sa,CL,xT6,HIX,OIC,c4,aS,J35,eVf,FCJ,uo,Vlf,bo,WCH,QdX,iI5,E45,y36,jdy,TR5,KL,H4,l76,o6t,v6X,Lh5,qB5,OJ,g6f,W4,Myy,RQf,ZCt,$3,GJJ,I7b,mVX,hQy,ea,yu,Q9,k2,lH,o5,vn,Li,ClH,BRJ,zQX,qS,gb,jh,MS,Y2,Up,XUX,jH,R5,wUu,fi,Ao5,Gc,m_,ro6,bCJ,coT,DVJ,a75,I5,uyJ,n6g,Khb,h8,sp,Pl5,OCu,pUC,Sh,eQC,JoH,FhJ,E65,yo5,Ci,iC6,
  83. WhT,Bn,Vyf,TwJ,zc,jjy,k95,lt5,oB6,vBb,wb,Lef,qXX,gB6,MuI,Rtg,YXu,db,NS,A8,bH,rb,cn,Db,a5,ftT,ni,uH,G9t,x2,ht5,Ki,sjX,SXt,wHI,Cpu,BwI,zty,XHt,Pn,Hn,t8,dif,Op,pi,Wn,$2,J8,eh,cs6,NwC,iH,rst,V9,bH5,y9,Fp,Asf,Ep,Qq,at5,kQ,je,unf,nBI,KeI,qj,g0,YQ,HH5,Mj,Zg,tuH,fV,xiu,WeH,$iy,JsC,IZ,he,sz,etb,Se,CV,B0,zm,Fey,XA,w0,d0,EBI,ysy,Nj,iH5,tyb,TIg,Qlt,jl5,kyf,ofX,Vu5,vf5,gfT,bN,c0,YcH,Uw5,RmC,ZS5,Gy5,uN,aZ,mw6,fBf,Sc5,slb,nV,xQ,BIC,KV,zm6,H0,Xcu,te,pV,Je,wcI,dw5,Te,NIC,j_,AzX,bSX,Yh,rzt,Dwf,U7,aBX,uzy,HSI,nfy,Ge,
  84. mz,IF,s7,S_,$wC,Cb,Bq,ze,emX,dl,FfI,Eft,NN,iS5,bw,rl,cq,D5,VHy,aF,nb,Kb,xh,Pq,Tc5,QSy,jST,tJ,O7,pb,Wq,$h,JJ,kl5,lTC,o35,v35,L5X,qJb,e_,g3f,Qt,Mat,YJ5,UFg,jm,lK,ob,vN,gE,MI,Yi,ZL6,Z0,fe,Gf,fT5,Gl5,ma,mF6,IT5,hI,w46,dFC,Ncu,s4,Adf,bLX,DFy,Ce,u_5,aTb,n3b,xFy,Pog,XH,wE,HLt,dE,NI,AI,bK,rE,cN,D0,ab,uK,ne,Ke,xi,PN,HN,taI,OL5,p45,WN,JI,W5H,iK,Vt,TO,QI,jS,lC,oU,F55,vD,Lh,q2,yd5,E35,$Fb,Y5,M2,Q56,UG,SS,IU,Ch,BD,kcg,Xw,L_J,o2C,v2I,g2C,Ziy,MhI,USg,R1T,j5J,dV,wV,GcI,AH,bC,rV,mSJ,Kh,Ib5,x5,PD,HD,OG,h1y,WD,$5,s5f,
  85. JH,eS,CHg,yI,VI,TL,Qe,jG,kq,lu,o1,vy,LY,z15,q5,Yq,M5,wnb,bif,Nb5,A8f,r85,c8X,abX,upb,DSJ,K_b,Zk,fY,I1,xSf,PHC,md,hg,thu,Oiy,J8C,$SI,By,zL,X4,wi,di,F_f,E2f,uu,nY,y8t,iiy,Vhf,tg,Or,pY,T0f,QZg,kmC,oQb,eG,vQI,ye,F4,TB,QH,kn,LoX,Mh,Yn,UY,Rp,fM,GB,Ip,Ujt,RfI,sY,ZV5,fgT,CM,GmC,mj5,Be,zB,IgH,hfI,Szu,Nh,B0C,zf5,wm,X05,w05,N0X,dj6,ce,CNy,bVJ,reX,xn,nM,ce5,Djb,Pe,He,agb,uA5,pM,nQt,Kof,xjC,PNf,FY,HVy,teT,OVy,p05,Wog,$jT,JeH,ef5,yH,Foy,TP,ye5,iVb,Vet,Tl5,QFt,QV,qU,key,vh5,g7,LzJ,ghT,jFu,M_t,Y7J,UNg,l5f,oh5,jz,
  86. kr,vl,q75,oK,lM,RKt,Zbg,f5y,Geb,mN6,I5b,BlH,hK6,RK,Z2,GP,wqy,AJ5,Nlg,fj,hx,bbT,Cj,rJ5,DNH,d7,cJT,ObH,a56,t_g,r7,pq5,JJH,cl,bM,Wz5,$NC,eKu,aK,Ehu,yJX,ibf,V_b,TEb,Qbt,jbb,Fz6,l0g,oiy,vi6,q46,Lay,MmI,xr,Y4I,Pl,Hl,tx,UIT,Rd5,Wl,$r,f0u,Zet,Jx,Gff,I0f,sb6,hdH,S4I,zdf,CKf,qE,Y_,ME,XN5,g1,Uq,R$,ZZ,fZ,wNb,I$,NE6,SV,sq,Bd,zA,Xr,w1,AIu,d1,Au,be6,r1,DZ,a$,rIH,cIC,DIH,a0t,uv,KZ,uHu,x_,Pd,Hd,Kab,tu,Oq,xIT,Wd,eV,Ju,$_,Fr,Eq,tmu,edX,EiT,JI5,$Iu,Fau,Vz,jT,TVg,yI6,ieJ,Vm5,Hef,g5g,U2,qGf,U2J,L6u,iv,RP,vx,M8,MSu,lA,
  87. pN5,OeJ,Wat,QU,v5J,mA,IqC,IP,sUX,SGH,CCu,s2,BVf,zIJ,XDJ,d2g,NVH,Bx,bhH,z$,rH5,cHC,aqb,uwu,n5C,wB,K6g,PCb,dB,Hht,N8,Aa,ve,JH6,ihI,uA,Tib,kLI,K9,oqH,vq5,Ldy,Ff,qrt,gqT,Ja,dNg,Wx,eT,$u,xu,jx,lD,k8,vZ,q1,Yr6,gD,Y8,UC,U5T,RYt,fD,fkt,GL5,m5C,hc,Ikb,hYT,s16,SrX,Cut,Bi6,zY5,sC,Xyf,Sx,BZ,wyg,d5t,NiX,AgI,bY6,zI,Xc,rgf,cgg,D5f,ak6,u45,nqu,Kdb,x56,Ac,bD,rD,PuI,cZ,HYy,ax,OYC,tG5,nD,KD,x8,PZ,py5,HZ,tc,Wd5,$56,OC,pD,Eqg,Jgt,FdT,eYJ,WZ,$8,Jc,ygt,iYT,VGg,ex,Qpf,lA5,kBg,Fc,EC,y6,iD,V6,Qr,jM,kX,lP,oY,v8,on6,vnu,LpC,
  88. LN,qH,g3,MH,Ue,ZV,Mou,gnT,GZ,YY6,mP,IY,h$,se,SM,zZ,X8,w3,d3,NH,A$,bP,r3,ZMC,c8,DV,aY,fA5,mht,xX,IAg,P8,H8,CnJ,BmC,zp5,wef,Nm5,J$,AFT,F8,eM,cFT,Dhy,aAt,yr,iP,nnH,TC,Qi,jK,ks,xh5,lU,oo,vP,PnH,LG,Kp5,qL,gS,toT,HM5,ML,Ys,UH,Ro,fG,pef,Wpy,mB,Io,sH,SK,$hg,ht,Fpg,Enb,yFT,iMy,VoX,T75,QKy,BP,CG,epT,l2C,zC,vrX,L4T,At,qSt,wS,dS,grI,bU,YS5,RAX,rS,cP,Zjg,Dy,GPu,ao,CMy,sK5,mUt,hAJ,I2T,nG,KG,xs,PP,HP,tt,OH,WP,zAb,dU6,eK,r7g,FP,N7X,rxb,yi,Q8,iU,TU,Vi,a2b,DU5,cxu,uhg,jZ,nrI,Hj5,kl,oV,Oj5,v3,Lx,qg,g5,plJ,W4f,Mg,Yl,
  89. Uj,$Uu,Jx5,ZC,IV,hl,sj,SZ,Cx,B3,eAT,zU,X0,w5,d5,Ng,Al,b3,F45,Er5,tl,Oj,px,W3,$l,Jl,yxg,ijI,eZ,i3,Q$b,j$y,V8,TF,vQ,lZ5,gG,M9,o_g,RW,v_H,qqT,Lbt,g_g,MVg,YqC,UEt,RZg,ZZ6,GAX,fZ5,mEt,s$b,Cvy,hZ6,B1b,zZC,wdH,fT,GF,N15,dEb,mS,IW,h6,bZt,sa,S6,CT,cuy,DEy,BQ,ruJ,zF,n_C,X2,wG,dG,N9,A6,bb,rG,cQ,Dn,aW,ub,nT,KT,xt,PQ,HQ,t6,Oa,pT,WQ,$t,J6,e6,F2,Ea,yj,ib,Vj,Tp,QZ,jE,ke,l2,oH,vz,Lp,qu,gn,Mu,Ye,U9,RH,Zi,fp,Gp,mU,IH,hj,s9,SE,Cp,Bz,zp,XN,wn,dn,Nu,Aj,b2,rn,cz,Di,aH,u2,np,Kp,xe,Pz,Hz,tj,O9,Wz,$e,xEt,Jj,F,eE,pp,FN,E9,
  90. yZ,HZg,VZ,OZC,i2,pdt,Q0,Wbu,kd,T4,lh,oD,vI,qo,Juy,eZ5,Fb5,E_f,m2,ID,RD,h0,iZy,VVg,TBy,QPX,$E5,jPI,LF,k$5,lh6,Sj,w2,CF,Mo,oub,g2,sI,BI,d2,LAT,Yd,UI,Xt,z4,q2I,No,A0,bh,r2,guI,cI,DX,aD,uh,nF,MTy,Y2X,RU5,Z9X,PI,HI,G$C,t0,sPb,CA5,zUg,Xx5,pF,d85,NBg,EI,Aab,y0,ih,V0,T1,Q1,jB,b9b,ca5,D8b,raf,ahb,ufu,vk,LB,gv,Yp,UP,R0,nuH,ZJ,KAJ,fB,G1,qP,hM,sP,SB,CB,x8C,I0,H9I,Bk,tTt,O9C,z1,pxJ,XS,wv,WA5,$8y,dv,Ja5,eUf,NP,FAt,Eu5,yaC,i9y,AM,bE,VTI,TDH,rv,ck,DJ,Qxu,a0,uE,nB,KB,jxX,xp,Pk,kI5,Hk,lFC,tM,o8y,v8T,LMt,qC6,g8f,MxX,
  91. OP,YCt,U1J,Rif,pB,ZDu,Wk,fFJ,$p,GII,JM,m1f,IFt,eB,V1,hi6,TX,Q4,jI,k9,sx6,lk,oE,vj,SCf,CD6,q$,gC,ziI,M$,XZy,wZI,BDC,d1b,NDX,AcT,U_,bDI,RE,fu,GX,rcb,mD,IE,s_,ccT,SI,Cu,D15,zX,dC,XL,rC,cj,aF5,DK,ucI,uk,nu,Ku,n8b,Pj,KMt,tW,pu,Wj,AW,$9,JW,eI,x1f,FL,E_,y4,PDJ,ik,V4,TN,Qd,jt,kT,oL,vM,Ld,q3,HDg,txC,ODy,RL,gf,Zl,fd,pZt,WMT,$1I,GN,ml,IL,Jc5,ei5,UM,FMt,E85,hB,ycb,sM,St,BM,zN,wf,df,N3,be,rf,Dl,aL,ue,nd,cM,T3g,QYu,xT,PM,HM,jYH,OM,lVt,pd,WM,oXg,$T,et,EM,vXC,FR,yd,ie,Vd,LPT,jn,gXf,MM6,Ye5,lZ,kJ,UHu,RB5,ZNf,oN,GZy,
  92. tB,fVu,mHH,vE,IVt,Lw,hBX,ql,sYf,SeH,CPt,B3y,zB5,gM,w8I,X8b,Ml,RN,dHC,ZY,N3I,fw,A$J,bNf,Gn,r$y,c$5,DH5,aVu,m1,u85,IN,KPt,sW,Sn,PPH,xHu,HNT,tMg,ONf,BE,zn,Xk,p8t,WPI,$H5,J$f,eB5,FPT,EXg,y$C,iNy,VMy,dM,Nl,TSt,Qou,AQ,bZ,jo5,rM,cE,aN,kCy,uZ,nw,Kw,lyb,xJ,os5,PE,vsC,HE,LBf,qHH,tQ,gsX,MKC,YHJ,OW,pw,WE,$J,JQ,ULb,Ry5,en,Fk,EW,ZGT,yG,iZ,VG,Tb,QM,fyf,GCb,jg,kK,mLb,lQ,oB,vO,L7,U8T,Iyt,hy5,qA,so5,SHJ,CUb,gO,MA,YK,UR,RB,Zw,f7,Gb,zb,Xj,wO,BSH,zyH,Dw,aB,wPH,uQ,OR,K7,$K,ctT,KBu,DL5,xL5,HG5,tKu,PU5,OGy,pPC,WBC,l1,eyC,
  93. ytg,EsT,VK6,T5C,QVg,qy,gH,kU5,lCf,qjg,My,glg,olt,YN,Ug,RA,ZD,YjT,ZxC,Ugb,mgg,zb6,B5X,ICg,X3X,GT,sVT,hbC,N5I,rlb,bxX,u05,clC,mZ,IA,Hx6,Sw,tZu,FQ5,eb6,JlI,$gI,p3u,ix6,yl5,WQH,kFt,jWX,ln5,wH,LSH,ot5,vtI,Ox5,qaf,gtC,C1,zT,TGg,VZ5,QWu,M6f,Bh,El5,U9X,ZTf,GFI,InI,Sau,Cb5,zPf,XQy,d95,wQ6,c6T,A6C,NGt,D9t,ntb,KSH,x9C,Pbf,K1,vh,OT5,HTT,Hh,p1,Wh,$9C,J66,WSI,$N,ePJ,JC,ew,kp,Fu,JtC,Eg,yN,i1,FSb,EtC,VN,y6T,iTy,V66,TE,Qh,js,kS,l8,or,vC,LQ,qZ,TnJ,QHg,gq,jH5,MZ,UW,YS,Un,oe5,kpJ,Rr,veJ,LU6,q9H,ZQ,liT,fQ,geg,GE,MEt,
  94. Y9X,iGC,Uug,mx,lE,xd,dH,Rn5,Zp5,h1,P3H,hC,fiy,xN,Ph,AC,Ny,f1,rH,hPC,BGu,b1,nlH,anJ,Gp5,w3J,Sjf,sn,pQC,L1,Ii5,muI,MZH,sW5,hnf,u2T,u1,KQb,xgT,AlT,m9y,fnC,GUH,Rby,LQb,vl6,jVH,Yaf,C36,bTt,DgI,aCC,DD,aA,ch,r6t,RP5,S95,sHg,Ss,CQ,BC,zE,Xv,wq,C2H,A1,b8,rq,DQ,ar,Bnb,cC,u8,nQ,zn5,KQ,xS,PC,t1,wz6,duy,On,pQ,WC,$S,J1,es,Fv,En,rjC,i8,cjy,yh,Dug,Aju,bpu,aiu,Vh,Tq,uN5,neX,Qp,KUI,op,P25,xuJ,tEy,pzg,WUT,OpJ,en5,FUC,ip6,T26,QDX,VEb,gt,Yg,MQ,jDb,k4b,odT,lX6,LP,vd5,L2u,qIt,gd5,qQ,R35,ZF5,fXb,UoJ,YIH,MjT,G4X,UV,Ee5,moI,
  95. yjC,IXH,h3C,ChH,sD5,R3,SIT,XIT,B2C,z35,do5,wIH,N2X,A0C,fP,c05,bFC,Dob,r0b,aXI,utb,ndu,K2f,xoX,PhC,HFT,tjf,OFI,pIb,W2t,$o5,Gq,e36,F2T,Ed5,J0I,y0g,Vj5,mk,I3,Tvy,Q0X,h_,sV,j0y,k15,lJb,opf,CP,vpC,Ljf,zq,XQ,gpt,MBt,YPu,ZBC,dt,bd,cr,fJf,Dc,a3,ud,hFC,SPu,s06,Bv5,cMH,Xk5,pP,KP,CEu,IJf,mPb,G1X,OV,xg,t_,FQ,EV,uS5,yp,id,eX,PE5,npb,KjJ,HBt,Vp,T7,OBu,jv,kc,lx,ot,vt,Lo,q6,pkg,WjT,g8,M6,Uw,JMb,eFf,Yc,FjC,iBX,VBC,Rt,TC6,G7,QEt,mu,hw,jE5,It,Sv,kXT,Bt,o9C,v9b,Xo,w8,r8,q_b,N6,ct,at,g95,no,bx,D8,MIy,Ko,Y_6,xc,U$f,d8,
  96. Aw,LDT,ux,Pt,RX6,Zu5,Ht,fKJ,tw,Ow,po,Wt,GXf,Jw,$c,ev,Fo,m$X,IKb,Ew,yn,ix,Vn,T3,hXt,Qb,jq,sET,S_T,k0,l7,oX,BCH,Cky,v9,zXg,Xjy,wju,Ly,d$X,NC5,AWg,buC,rWX,qt,gd,Mt,Y0,cWC,D$6,RX,aKf,Zj,fy,uLb,n9t,G3,KDH,x$T,Ou6,pjT,PkI,Hu5,tI5,IX,hq,sE,Sq,WDI,$$b,JWJ,eXT,B9,yWu,z3,VIC,QL5,TfI,Aq,Nt,kNC,ll6,oTC,vTT,b7,Llb,c9,Dj,qMu,MtH,YMy,u7,P9,flC,bBy,Pr,m3t,IlC,hj5,sL5,SMX,nP,ny,OE,py,zjH,XM5,wMX,W9,bdC,d3C,Nf5,cBJ,D3H,$0,aly,rB6,uR6,Jq,eq,FG,nTt,Kl5,EE,yb,x35,i7,Peu,Vb,H9,km,Hdy,rMH,zF5,lc,on,Lc,qx,gx,Mx,Ym,vL,ZE,
  97. OdH,G6,Wl5,m0,JB5,$3y,pMy,ejt,Fly,ETC,S4,yBC,id5,TMI,Cc,aJt,BL,jNC,lYg,Wr,oJf,vJI,Hr,wk5,NvH,AMy,QNI,XK,wx,Nx,L15,qWf,gJH,Mng,YWI,UlI,RGf,Gnt,mlJ,fYg,IY5,hGt,sNT,SWg,AS,CZg,cL,BMT,zGT,XE5,DE,wEu,uc,nc,Kc,xm,PL,dlT,HL,tS,NMf,AQ5,Od,pc,WL,$m,JS,e4,rQf,bwI,FK,cQg,aYy,Ed,ukg,Dlf,fn,Ru,GW,Iu,h9,hS,nJ5,W15,fF,Ze,BB,F1t,yQH,kL,N0,jF,A9,cB,VnJ,U8,De,kb5,au,uF,lwT,oKJ,vK5,LE6,nn,qR6,gK5,Kn,Mgu,fwC,Z7f,YRt,Rr5,UAg,xL,Gb5,PB,mAX,Iwy,sBy,SR5,CQI,BO6,NOb,WB,$L,rkC,J9,eF,ckC,ujy,nKJ,KEg,xA5,FT,E8,yk,iF,PQ6,tgg,
  98. O7H,Lt,i7I,JkI,erH,THH,qY,QAf,kT5,jAX,lDy,MY,R8,oNJ,g4,Zd,ft,vN5,qgt,hL,Ct,d4,bO,C1T,BHg,uO,a8,Kt,xa,zDT,dyJ,whf,NHI,Hv,Pv,ACf,rCX,cCX,aDf,pt,Dy5,uu5,nNb,$a,JL,xyI,I8,Oy,Z1C,LZ5,IDg,Vv,nt,b15,vi,NY,qf,Mf,yCg,Vwu,i15,AL,r4,TqT,UU,Ra,jrb,kE5,Z_,fX,lQg,cv,Gh,XhX,Ia,ph5,hy,Uy5,YgC,gN6,sU,vS5,CX,fQg,ZQ5,mZ5,IQH,XZ,ds,Nf,ws,bt,rs,hEX,ci,SnC,D_,Bq6,nX,C85,KX,xD,dZH,Pi,bQJ,r16,OU,c1I,uvu,jc,lf,oR,qz,nS6,gh,Mz,ZR,fA,GQ,mW,Kxf,IR,hN,tsu,sQ,Sc,OQI,pC5,CA,BR,Wxg,$Zu,J1T,eEJ,zQ,Xe,FxH,ESC,y1g,AN,bf,DR,aR,iQb,
  99. VsI,uf,nA,KA,xH,Tt5,Q3H,PR,j36,kqu,HR,ogb,lc6,vgt,tN,qVT,LkI,ggH,OQ,pA,MXX,UQJ,RxC,WR,$H,JN,ZPC,Gqu,ec,mQX,EQ,Ic5,hxt,Fe,yS,VS,T_,CdC,zxX,s35,BtJ,XrI,SVH,wrX,dQT,Qm,Ntu,bPX,DQu,uQg,acI,gQ,qm,Ux,Kk5,Rz,Zm,fr,PdT,G_,HP5,xQt,mG,prf,Iz,hU,Wk5,sx,$Qy,$A5,yk6,exy,J_b,Eg5,FkC,y_6,SJ,Cr,BJ,z_,iPX,Qt5,dQ,Nm,AU,k76,jtJ,XM,l85,ocf,vcX,qw5,b$,m6t,B8J,u$,zJ5,kR,wt5,d66,N8T,Awf,bog,Kr,rwI,xR,PJ,HJ,cwT,pr,D6y,a8b,WJ,$R,uoT,ncC,KuC,x6t,PxX,JU,Ox,HoX,tv5,eJ,ptb,WuT,$6g,FM,JwJ,eJg,Fuu,Ecu,ywX,iou,Vv5,TdC,QXX,jXI,Ex,
  100. ljg,ym,v0H,o05,qEy,LNI,Mqu,QX,k36,i$,jr,YEC,Utu,kC,RaX,l4,om,v7,Lf,qv,ZyX,gX,fjg,YC,sXt,Bd5,za5,X9f,w9C,Zs,dtH,C7u,hat,NdX,Uh,AqH,rqT,Mv,Rm,mty,Ij5,ff,cqy,DtI,SEt,G3I,aju,mr,uG5,Im,hA,n0y,sh,P7t,KN5,xtu,Sr,Hyf,Cf,B7,zz,XI,tq5,OyT,p9y,wX,$tu,JqT,dX,eaf,Nv,AA,FNy,E0g,yqH,iyJ,Vqu,Tx5,omu,jn6,r_C,rX,L05,qdI,k6t,lE5,Qng,am,Rhu,Ds,c7,vm5,fEX,UxC,Ydt,M4X,gmb,nf,G6b,jJ,Kf,xC,P7,mxC,H7,IEu,tA,hh5,YR,snI,Oh,oz,Lr,A_6,$C,er,Bxf,zh5,FI,yX,JA,W7,i4,pf,Sd6,Ccg,VX,XLX,wLf,Tz,g0g,l$,TD,dxJ,Eh,Nxy,ASy,bcX,rSg,Q3,
  101. j3,cSb,DxX,aEt,uK5,nmg,byT,az,lY,ov,kx,xxC,tXf,OPb,v6,Pc6,Hc5,t4u,Oc5,L$,pLC,q7,W0H,JS6,go,ehJ,F0u,UN,ic6,Yx,f$,TjI,V4J,leX,juX,oLI,vLX,QuC,kWH,LqI,GD,q8I,MFy,gLT,mT,OoI,Y8b,U0T,R0J,ZnJ,fe5,m0u,Iet,h0T,suI,S8J,GW5,Iv,T8g,hf,z0J,xx,Bjf,XBt,wBy,VXb,wQ,d05,Nj5,H6,uT5,aeg,$x,nL5,D06,Hn6,tFy,On5,pBy,Wqy,$05,J95,e0I,Fqu,ELg,y95,VFX,T4b,Q8y,FJ,P6,kVg,ld5,Jf,vab,j8b,e3,LRb,qyC,YyJ,ZtT,UYg,y3,fd5,iY,gab,EN,V3,M75,QE,Idb,s86,hzC,Sy6,mYt,COC,B4f,zz5,Xvu,wvg,N4g,ALI,dYu,rLt,DY6,cLJ,KRI,uCX,btX,adH,xY5,naC,PO5,
  102. Htf,t7X,WRy,pvJ,OtJ,j2,$YC,JLt,ezt,FRJ,Ea5,ity,Ts5,Qay,jaH,khX,l_T,kO,oD5,vDH,qUy,gDy,L6,YUC,gT,Rqb,ZXg,f_y,GhJ,I_t,mfX,SUI,CtC,Bs5,MR,zqt,hqg,sa5,wib,dfb,Ns5,AyT,bX5,ryI,Vm,cyT,DfX,a_C,nDC,uZ5,KK5,PtX,HXb,xfX,Tj,Emy,OXb,piT,WKt,iXX,eqH,FKI,EDC,V$C,QRu,Zc6,UF,JyJ,$f5,Th5,Mm,yyy,b4,vJ,Rzt,vH5,oHT,LWb,qQC,McI,YQC,Xi5,ZI,Rv,kQt,Uzy,lRI,fI5,M7,GD5,$xg,GVJ,jRT,ySg,f6,Gj,II5,m7,hN5,svb,SNy,CY5,Bo5,X6u,w65,b$I,d7y,AfX,rfy,h2,uJ6,D7J,aIT,x75,PYf,H$g,sF,t3I,If,O$J,KTJ,cfI,S2,p6u,NoI,WTg,C6,Jf5,$7J,FT5,Ex5,
  103. yf5,eN5,BV,TT6,V3C,kju,jft,QfH,lvt,oOy,zj,vOb,L75,gOI,M2X,qFJ,YFf,GjH,R2t,Z6C,fv5,mR6,Ivg,h2X,SFH,sfb,Cg5,BT5,XO,z2u,XVH,dRC,wVT,NT5,A26,r2y,c2f,avT,nOu,DRT,K7J,xRX,Pgy,b6T,H65,uOb,dT,t2g,O6y,pVu,W7f,A2,J2t,$R5,e2y,F7J,EOg,V2y,y25,j4T,bg,i6g,kkt,rT,qlg,lxC,Dv,af,gku,cV,M8t,ug,R5C,U4y,vkt,L8b,Zvg,fxg,GkJ,okb,m4T,n6,Ixb,Ylt,UfT,NR,s45,Slu,C_H,BWC,z5b,Xpg,wpH,d4g,NWg,AOu,rOg,cOt,D45,bvC,axC,u9f,nk6,K8t,x4C,P_5,OvC,t8g,HvH,ppX,PV,Vx5,W86,$4J,HV,JOt,e5I,OF,yOT,ivH,p6,TNI,Qht,V8X,Ek5,WV,t2,F8f,e2,$O,jhu,
  104. FO,J2,vYC,gYT,Ysu,UDb,Zk5,lGt,MpI,fGX,oYu,Gx5,mDg,IGt,Tk,EF,SsT,Cjb,hSH,ig,zSb,XaX,qsf,Lc5,BN5,waX,RSI,shT,kxg,QW,j8,kk,dD5,l_,DDT,bk5,aGH,r4b,A4y,uB5,NNt,xDT,nYI,o4,Pjf,tp5,pau,Wc6,eSC,gW,Fc5,$DH,VE,ikT,VpI,Zx,oa5,vp,TuH,QGT,kKy,jGT,lLg,y4b,Yk,oWb,vWH,LJu,gW5,quC,t$5,M4,ML5,Uag,Yug,Zmg,Rgf,Okf,GK5,fLu,Ul,Lv,maf,Gk,ILJ,hgX,sG5,Suy,CzT,fv,J46,m7I,yE,BuC,m8,zgb,X1J,w1X,da5,NuI,AGg,I4,hO,cGu,Da6,aLX,bmg,rGb,sl,xa5,nWb,KJy,PzX,HmX,S8,tLy,Omb,p1J,Cv,WJX,JGy,egH,FJt,Bp,$a6,zk,X9,EWT,yGI,im6,VLu,TUf,QCJ,
  105. jCg,N4,wW,dW,kuy,AO,l4C,o$f,v$g,qLt,Lvu,u_,MWt,YLC,g$X,UKy,nv,R95,Kv,Za6,xk,f4b,GuT,h9b,Caf,mKu,sCg,Pp,I4X,SLC,BU6,z9g,Xwf,wwX,tO,dK5,Wp,Ol,NUf,$k,JO,baX,rEX,F9,El,cE6,e8,yW,a4C,DKC,VW,Tx,Q_,Kvy,uxI,n$u,jp,xKH,Oa5,Hay,Pay,tWt,kY,Wv6,Fvy,E$u,lj,yEb,$Kb,ia6,oh,JE5,QgJ,va,Lk,jgg,ktf,lNy,o7g,v7f,MD,g7y,M5J,Y0f,YY,q05,ZqX,gN,Us,Rh,LLb,mdt,GtJ,Ih,INX,sgt,CG5,hRC,h4,Gx,Ck,mc,S0t,Sp,Bkt,Ba,zRb,X5g,w5X,zx,XB,ddX,NkX,AnC,bqf,rnt,cnb,DdX,n7X,aNT,KLT,xdg,t5J,Oqy,E7I,nk,V5g,jwC,QwJ,TY5,eRT,FLf,p5t,$db,yn6,Kk,
  106. xY,lpb,e$,zE5,oFT,Ha,Os,vFu,LwT,WL6,iq5,gFH,MDC,YmI,pk,y_,Rc5,Z_I,fp5,ij,Gwf,IpI,mCJ,hc5,V_,TK,swJ,BYJ,zcu,kW,CIT,Xbg,wbX,Smu,v1,dCI,NYb,oG,AYy,b_I,rY6,cYJ,apy,DCg,Kwt,xCy,uX5,H_f,tDu,nFX,gu,Ma,O_6,$C5,YW,WwH,pbu,JY5,Fwf,ecC,EF5,Uu,yYH,i_5,VDu,T9t,Q6X,j6y,k2t,ov5,l3b,vv5,L$b,qZ5,gvt,MUJ,Uc5,ZL,RG,fm,RoX,Zs6,YZH,ho5,s6b,SZt,zof,B95,CsI,X_X,w_u,GK,mJ,dc5,N9I,AXy,bs5,cXI,DcH,hG,a3t,IG,Cm,rXI,B1,uDy,nvb,K$C,xc5,Psu,zK,Hsg,tUg,W$C,Xa,$cy,p_6,wu,du,Na,eoH,F$y,EvI,JXX,isT,yXu,VUX,AG,TF6,QMf,krT,vGf,jMg,
  107. l6I,bz,LH6,gG6,M0H,UeC,Rl5,ru,c1,Z0t,qOJ,mef,GrH,f6g,DL,aG,hl5,I6T,uz,nm,Km,sMb,xW,SOb,C0y,BF5,zl6,P1,X$b,H1,w$5,tG,dey,Ou,pm,NFf,W1,ApC,$W,JG,rp5,a6t,u55,b0y,nGX,P05,H05,t0X,xe6,KHX,p$f,O05,WHX,elC,Eu,EGI,FHt,$ef,Jpf,yp5,i05,y7,iz,V0f,TAH,Qib,jif,k0C,lrb,vwu,LVg,frI,M15,Yf5,qfX,mqb,la,vw,CJ5,BAf,gU,zMb,MK,XAu,Ir5,k$,RC,UL,La,dq5,NAb,Z4,bEH,crg,rrT,fa,qK,jW,Ar5,Y$,hMJ,wAJ,ary,V7,Gu,uq5,nw6,oC,si6,mv,IC,KVC,hE,sL,SW,xq5,PJu,t1f,OE6,HEC,Ca,pA5,Bw,zu,WV6,$qf,Jrt,eM6,Ew5,yrg,V1f,iEI,Trt,wU,Xx,FVf,Q95,
  108. kYC,j9I,dU,NK,lS5,vVb,Ltt,AE,oVb,qTX,gVg,YTf,ba,MiJ,UB5,R4J,ZRy,cw,D4,GYH,fSH,mB5,aC,ua,h4C,ISb,s9I,CmJ,ST6,Brg,Ka,z4t,XsJ,Pw,ws5,Nrg,dBg,tE,AvC,bRt,rvg,DBJ,aSu,u$6,cvg,nV6,Kty,xBg,Pmf,HR6,tiX,ORf,ps6,Wt6,Ww,$B5,JvT,e4t,EV5,Tp5,iRT,Ftg,eW,yvX,JE,Vi5,Fx,jJT,QJt,EL,lPI,oIy,vI5,URT,Tt,aQX,ia,QQ,Vg,k7,LFJ,lG,UO5,RTg,ZU6,GGy,fPu,mO5,IPb,hTX,S3H,CTt,Bp5,zTC,sJg,rbJ,cbT,bUf,DOJ,uiC,KF6,xO5,PTy,gk,nIf,aP5,XKb,Md,OUg,pK6,tbT,HU5,Jby,$OT,eTg,FFJ,EIt,ybt,Y7,iU5,NpC,Lq,Vbg,Te5,Q7b,j7C,wKC,dOC,qd,oUC,vUH,Lif,
  109. q1f,ka5,U0,laX,MdC,ZzJ,ZN,fa5,Gaf,UbX,Gt,mbu,Iab,gU6,h_y,R_u,s76,mL,fq,S1u,BeX,C9y,Rg,Xo5,Ig,EYH,wo6,AhC,Neb,rhu,ch5,bz5,s0,hn,aay,um5,nUt,KiC,Jh6,Oz5,poJ,Hz5,P9f,B5,yh5,FiC,izX,Vd5,Cq,XU,wk,kMu,jey,QeJ,Nd,$bT,c5,ooy,rk,dk,Lgt,qbI,gog,e_t,uG,Kq,MR5,WiT,luH,An,Ybb,zt,UGI,RkT,ZKT,H5,voC,fub,GM5,tn,O0,mGT,bG,EUX,IuI,hkb,nq,seH,DN,SbH,ag,ut,CR5,zkf,pq,W5,XF5,wFT,dG5,P5,x7,NZ5,dbX,ARu,tdC,bKT,rR5,cR5,DGX,$7,Jn,no6,PR5,tR5,uFb,EoJ,yRH,iKf,VRC,TPf,Qk5,jkg,l$f,kit,e5,FU,E0,ozu,vzy,LOf,YJ,qKt,yQ,gzu,iG,M95,
  110. VQ,Tw,YKC,Y9,Qs,KF,Uk6,tC,t6I,Rsy,sg,Z4y,Tn,QG,f$6,Ir,Giu,mkg,Og,FBf,I$t,hst,skt,jD,C6f,BPX,kF,ow,vb,zsH,dk5,NPb,L_,ADI,XYg,rDT,wYT,b45,cDt,DkT,a$J,u75,qC,KOT,PAu,MP,hQ,xk5,P6X,Cw,nz5,mj,H45,t9g,O4I,gY,Kd,WOu,$k5,MC,YF,JDf,Um,Rw,lI,esC,FO5,qeJ,Zp,f_,Ez5,Gw,mw,yD5,Iw,i4f,hY,sm,V95,T61,nXI,SD,QI9,k5m,jIJ,C_,Bb,lHd,zw,obW,vbT,LX$,qtv,gbA,Mfp,UJp,wY,Yt$,RuW,Z5_,fHv,G5d,sIe,mJv,IHT,huA,Cym,zuW,XTE,wTW,B6d,dY,dJA,N6A,A5W,b5W,r5W,AY,c5m,bI,rY,cb,DJA,aHA,nbW,KXm,xJv,Py_,tfp,H5W,O5W,Dp,aw,$JT,pTd,WXd,uI,J5v,
  111. euE,n_,K_,FXE,xF,EbE,Pb,y5W,Hb,tY,i5d,Om,p_,VfT,T$v,Wb,$F,Q_1,JY,j_A,kve,ys,iI,l1E,oET,vEd,gEA,qAW,Vs,MAe,YA1,Upm,$LI,L9W,ZW9,f19,mpJ,T6H,MJ;T5=function(T){return function(){return T6H[T].apply(this,arguments)}};
  112. g.ly=function(T,Q){return T6H[T]=Q};
  113. QIX=function(T){var Q=0;return function(){return Q<T.length?{done:!1,value:T[Q++]}:{done:!0}}};
  114. jIC=function(T){T=["object"==typeof globalThis&&globalThis,T,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Q=0;Q<T.length;++Q){var k=T[Q];if(k&&k.Math==Math)return k}throw Error("Cannot find global object");};
  115. Yb=function(T,Q){if(Q)a:{var k=g.oI;T=T.split(".");for(var l=0;l<T.length-1;l++){var v=T[l];if(!(v in k))break a;k=k[v]}T=T[T.length-1];l=k[T];Q=Q(l);Q!=l&&Q!=null&&MJ(k,T,{configurable:!0,writable:!0,value:Q})}};
  116. k5T=function(T){T={next:T};T[Symbol.iterator]=function(){return this};
  117. return T};
  118. g.S=function(T,Q){T.prototype=lHg(Q.prototype);T.prototype.constructor=T;if(RI)RI(T,Q);else for(var k in Q)if(k!="prototype")if(Object.defineProperties){var l=Object.getOwnPropertyDescriptor(Q,k);l&&Object.defineProperty(T,k,l)}else T[k]=Q[k];T.Ye=Q.prototype};
  119. g.B=function(T){var Q=typeof Symbol!="undefined"&&Symbol.iterator&&T[Symbol.iterator];if(Q)return Q.call(T);if(typeof T.length=="number")return{next:QIX(T)};throw Error(String(T)+" is not an iterable or ArrayLike");};
  120. oby=function(T){for(var Q,k=[];!(Q=T.next()).done;)k.push(Q.value);return k};
  121. g.ZH=function(T){return T instanceof Array?T:oby(g.B(T))};
  122. g.G5=function(T){return vb5(T,T)};
  123. vb5=function(T,Q){T.raw=Q;Object.freeze&&(Object.freeze(T),Object.freeze(Q));return T};
  124. mX=function(T,Q){return Object.prototype.hasOwnProperty.call(T,Q)};
  125. LX6=function(T){if(!(T instanceof Object))throw new TypeError("Iterator result "+T+" is not an object");};
  126. II=function(){this.C=!1;this.Y=null;this.T=void 0;this.S=1;this.N=this.B=0;this.D=this.L=null};
  127. h5=function(T){if(T.C)throw new TypeError("Generator is already running");T.C=!0};
  128. Sf=function(T,Q){T.L={nf:Q,wb:!0};T.S=T.B||T.N};
  129. g.c=function(T,Q,k){T.S=k;return{value:Q}};
  130. C5=function(T,Q,k){Q=g.B(Q);var l=Q.next();LX6(l);if(l.done)T.T=l.value,T.S=k;else return T.Y=Q,g.c(T,l.value,k)};
  131. g.BT=function(T){T.S=0};
  132. g.z5=function(T,Q,k){T.B=Q;k!=void 0&&(T.N=k)};
  133. g.Xg=function(T,Q){T.B=0;T.N=Q||0};
  134. g.d6=function(T,Q,k){T.S=Q;T.B=k||0};
  135. g.by=function(T,Q){T.B=Q||0;Q=T.L.nf;T.L=null;return Q};
  136. g.aI=function(T,Q,k,l){l?T.D[l]=T.L:T.D=[T.L];T.B=Q||0;T.N=k||0};
  137. g.n5=function(T,Q,k){k=T.D.splice(k||0)[0];(k=T.L=T.L||k)?k.wb?T.S=T.B||T.N:k.Ym!=void 0&&T.N<k.Ym?(T.S=k.Ym,T.L=null):T.S=T.N:T.S=Q};
  138. qt5=function(T){this.T=new II;this.S=T};
  139. gbf=function(T,Q){h5(T.T);var k=T.T.Y;if(k)return K5(T,"return"in k?k["return"]:function(l){return{value:l,done:!0}},Q,T.T.return);
  140. T.T.return(Q);return xb(T)};
  141. K5=function(T,Q,k,l){try{var v=Q.call(T.T.Y,k);LX6(v);if(!v.done)return T.T.C=!1,v;var L=v.value}catch(q){return T.T.Y=null,Sf(T.T,q),xb(T)}T.T.Y=null;l.call(T.T,L);return xb(T)};
  142. xb=function(T){for(;T.T.S;)try{var Q=T.S(T.T);if(Q)return T.T.C=!1,{value:Q.value,done:!1}}catch(k){T.T.T=void 0,Sf(T.T,k)}T.T.C=!1;if(T.T.L){Q=T.T.L;T.T.L=null;if(Q.wb)throw Q.nf;return{value:Q.return,done:!0}}return{value:void 0,done:!0}};
  143. MfJ=function(T){this.next=function(Q){h5(T.T);T.T.Y?Q=K5(T,T.T.Y.next,Q,T.T.j):(T.T.j(Q),Q=xb(T));return Q};
  144. this.throw=function(Q){h5(T.T);T.T.Y?Q=K5(T,T.T.Y["throw"],Q,T.T.j):(Sf(T.T,Q),Q=xb(T));return Q};
  145. this.return=function(Q){return gbf(T,Q)};
  146. this[Symbol.iterator]=function(){return this}};
  147. PT=function(T,Q){Q=new MfJ(new qt5(Q));RI&&T.prototype&&RI(Q,T.prototype);return Q};
  148. Yt6=function(T){function Q(l){return T.next(l)}
  149. function k(l){return T.throw(l)}
  150. return new Promise(function(l,v){function L(q){q.done?l(q.value):Promise.resolve(q.value).then(Q,k).then(L,v)}
  151. L(T.next())})};
  152. g.a=function(T){return Yt6(new MfJ(new qt5(T)))};
  153. g.HT=function(){for(var T=Number(this),Q=[],k=T;k<arguments.length;k++)Q[k-T]=arguments[k];return Q};
  154. t5=function(T){return T};
  155. Ot=function(T,Q,k){if(T==null)throw new TypeError("The 'this' value for String.prototype."+k+" must not be null or undefined");if(Q instanceof RegExp)throw new TypeError("First argument to String.prototype."+k+" must not be a regular expression");return T+""};
  156. UJJ=function(T,Q,k){T instanceof String&&(T=String(T));for(var l=T.length,v=0;v<l;v++){var L=T[v];if(Q.call(k,L,v,T))return{Ej:v,Kr:L}}return{Ej:-1,Kr:void 0}};
  157. WT=function(T,Q){T instanceof String&&(T+="");var k=0,l=!1,v={next:function(){if(!l&&k<T.length){var L=k++;return{value:Q(L,T[L]),done:!1}}l=!0;return{done:!0,value:void 0}}};
  158. v[Symbol.iterator]=function(){return v};
  159. return v};
  160. $b=function(T){return T?T:Array.prototype.fill};
  161. J5=function(T){return T?T:Array.prototype.copyWithin};
  162. Fg=function(T){T=Math.trunc(T)||0;T<0&&(T+=this.length);if(!(T<0||T>=this.length))return this[T]};
  163. yC=function(T){return T?T:Fg};
  164. Ru5=function(T,Q,k){T instanceof String&&(T=String(T));for(var l=T.length-1;l>=0;l--){var v=T[l];if(Q.call(k,v,l,T))return{Ej:l,Kr:v}}return{Ej:-1,Kr:void 0}};
  165. iy=function(T){return T?T:function(Q,k){return Ru5(this,Q,k).Ej}};
  166. g.Tv=function(T,Q,k){T=T.split(".");k=k||g.VC;for(var l;T.length&&(l=T.shift());)T.length||Q===void 0?k[l]&&k[l]!==Object.prototype[l]?k=k[l]:k=k[l]={}:k[l]=Q};
  167. lW=function(T,Q){var k=g.jA("CLOSURE_FLAGS");T=k&&k[T];return T!=null?T:Q};
  168. g.jA=function(T,Q){T=T.split(".");Q=Q||g.VC;for(var k=0;k<T.length;k++)if(Q=Q[T[k]],Q==null)return null;return Q};
  169. Z5I=function(T){var Q=typeof T;return Q!="object"?Q:T?Array.isArray(T)?"array":Q:"null"};
  170. g.o_=function(T){var Q=Z5I(T);return Q=="array"||Q=="object"&&typeof T.length=="number"};
  171. g.vm=function(T){var Q=typeof T;return Q=="object"&&T!=null||Q=="function"};
  172. g.qp=function(T){return Object.prototype.hasOwnProperty.call(T,LW)&&T[LW]||(T[LW]=++fH5)};
  173. G5g=function(T,Q,k){return T.call.apply(T.bind,arguments)};
  174. mJ5=function(T,Q,k){if(!T)throw Error();if(arguments.length>2){var l=Array.prototype.slice.call(arguments,2);return function(){var v=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(v,l);return T.apply(Q,v)}}return function(){return T.apply(Q,arguments)}};
  175. g.Mp=function(T,Q,k){g.Mp=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?G5g:mJ5;return g.Mp.apply(null,arguments)};
  176. g.YE=function(T,Q){var k=Array.prototype.slice.call(arguments,1);return function(){var l=k.slice();l.push.apply(l,arguments);return T.apply(this,l)}};
  177. g.R_=function(){return Date.now()};
  178. Z1=function(T){return T};
  179. g.fW=function(T,Q){function k(){}
  180. k.prototype=Q.prototype;T.Ye=Q.prototype;T.prototype=new k;T.prototype.constructor=T;T.LB=function(l,v,L){for(var q=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)q[Y-2]=arguments[Y];return Q.prototype[v].apply(l,q)}};
  181. IH5=function(T,Q){if(Q!==null&&Q!==void 0){if(typeof Q!=="object"&&typeof Q!=="function")throw new TypeError("Object expected.");if(k===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var k=Q[Symbol.dispose]}if(typeof k!=="function")throw new TypeError("Object not disposable.");T.stack.push({value:Q,dispose:k,async:!1})}return Q};
  182. hut=function(T){function Q(L){T.error=T.hasError?new SuppressedError(L,T.error,"An error was suppressed during disposal."):L;T.hasError=!0}
  183. function k(){for(;l=T.stack.pop();)try{if(!l.async&&v===1)return v=0,T.stack.push(l),Promise.resolve().then(k);if(l.dispose){var L=l.dispose.call(l.value);if(l.async)return v|=2,Promise.resolve(L).then(k,function(q){Q(q);return k()})}else v|=1}catch(q){Q(q)}if(v===1)return T.hasError?Promise.reject(T.error):Promise.resolve();
  184. if(T.hasError)throw T.error;}
  185. var l,v=0;k()};
  186. Gv=function(T,Q){if(Error.captureStackTrace)Error.captureStackTrace(this,Gv);else{var k=Error().stack;k&&(this.stack=k)}T&&(this.message=String(T));Q!==void 0&&(this.cause=Q)};
  187. sIu=function(){};
  188. g.m9=function(T){return T[T.length-1]};
  189. Stu=function(T,Q){var k=T.length,l=typeof T==="string"?T.split(""):T;for(--k;k>=0;--k)k in l&&Q.call(void 0,l[k],k,T)};
  190. g.sA=function(T,Q,k){Q=hT(T,Q,k);return Q<0?null:typeof T==="string"?T.charAt(Q):T[Q]};
  191. hT=function(T,Q,k){for(var l=T.length,v=typeof T==="string"?T.split(""):T,L=0;L<l;L++)if(L in v&&Q.call(k,v[L],L,T))return L;return-1};
  192. g.SA=function(T,Q,k){var l=T.length,v=typeof T==="string"?T.split(""):T;for(--l;l>=0;l--)if(l in v&&Q.call(k,v[l],l,T))return l;return-1};
  193. g.CW=function(T,Q){return CyT(T,Q)>=0};
  194. B6g=function(T){if(!Array.isArray(T))for(var Q=T.length-1;Q>=0;Q--)delete T[Q];T.length=0};
  195. g.zv=function(T,Q){Q=CyT(T,Q);var k;(k=Q>=0)&&g.Bm(T,Q);return k};
  196. g.Bm=function(T,Q){return Array.prototype.splice.call(T,Q,1).length==1};
  197. g.AT=function(T,Q){Q=hT(T,Q);Q>=0&&g.Bm(T,Q)};
  198. zuy=function(T,Q){var k=0;Stu(T,function(l,v){Q.call(void 0,l,v,T)&&g.Bm(T,v)&&k++})};
  199. g.bW=function(T){return Array.prototype.concat.apply([],arguments)};
  200. g.r$=function(T){var Q=T.length;if(Q>0){for(var k=Array(Q),l=0;l<Q;l++)k[l]=T[l];return k}return[]};
  201. g.cm=function(T,Q){for(var k=1;k<arguments.length;k++){var l=arguments[k];if(g.o_(l)){var v=T.length||0,L=l.length||0;T.length=v+L;for(var q=0;q<L;q++)T[v+q]=l[q]}else T.push(l)}};
  202. g.Pm=function(T,Q,k,l){Array.prototype.splice.apply(T,nW(arguments,1))};
  203. nW=function(T,Q,k){return arguments.length<=2?Array.prototype.slice.call(T,Q):Array.prototype.slice.call(T,Q,k)};
  204. XTb=function(T){for(var Q=0,k=0,l={};k<T.length;){var v=T[k++],L=g.vm(v)?"o"+g.qp(v):(typeof v).charAt(0)+v;Object.prototype.hasOwnProperty.call(l,L)||(l[L]=!0,T[Q++]=v)}T.length=Q};
  205. g.OA=function(T,Q,k){return wTy(T,k||Hm,!1,Q)};
  206. pW=function(T,Q){return wTy(T,Q,!0)};
  207. wTy=function(T,Q,k,l){for(var v=0,L=T.length,q;v<L;){var Y=v+(L-v>>>1),U=void 0;k?U=Q.call(void 0,T[Y],Y,T):U=Q(l,T[Y]);U>0?v=Y+1:(L=Y,q=!U)}return q?v:-v-1};
  208. g.JT=function(T,Q){T.sort(Q||Hm)};
  209. dJf=function(T,Q){var k=Hm;g.JT(T,function(l,v){return k(Q(l),Q(v))})};
  210. g.eA=function(T,Q,k){if(!g.o_(T)||!g.o_(Q)||T.length!=Q.length)return!1;var l=T.length;k=k||N6t;for(var v=0;v<l;v++)if(!k(T[v],Q[v]))return!1;return!0};
  211. Hm=function(T,Q){return T>Q?1:T<Q?-1:0};
  212. N6t=function(T,Q){return T===Q};
  213. g.Fd=function(T,Q,k){k=g.OA(T,Q,k);k<0&&g.Pm(T,-(k+1),0,Q)};
  214. g.yJ=function(T,Q,k){var l={};(0,g.EA)(T,function(v,L){l[Q.call(k,v,L,T)]=v});
  215. return l};
  216. A5y=function(T){for(var Q=[],k=0;k<T;k++)Q[k]="";return Q};
  217. b55=function(T,Q){Q=Array.prototype.splice.call(T,Q,1);Array.prototype.splice.call(T,0,0,Q[0])};
  218. r5y=function(T){var Q={};g.EA(T,function(k){var l=k.event,v=Q[l];Q.hasOwnProperty(l)?v!==null&&(k.equals(v)||(Q[l]=null)):Q[l]=k});
  219. zuy(T,function(k){return Q[k.event]===null})};
  220. iW=function(){this.Pn=0;this.T=!1;this.S=-1;this.gh=!1;this.E1=0};
  221. g.VJ=function(T,Q,k){for(var l in T)Q.call(k,T[l],l,T)};
  222. g.Ts=function(T,Q,k){var l={},v;for(v in T)Q.call(k,T[v],v,T)&&(l[v]=T[v]);return l};
  223. Q2=function(T,Q){var k={},l;for(l in T)k[l]=Q.call(void 0,T[l],l,T);return k};
  224. g.jP=function(T,Q,k){for(var l in T)if(Q.call(k,T[l],l,T))return!0;return!1};
  225. c5T=function(T,Q){for(var k in T)if(!Q.call(void 0,T[k],k,T))return!1;return!0};
  226. g.kZ=function(T){for(var Q in T)return Q};
  227. DJt=function(T){for(var Q in T)return T[Q]};
  228. os=function(T){var Q=[],k=0,l;for(l in T)Q[k++]=T[l];return Q};
  229. g.gz=function(T){var Q=[],k=0,l;for(l in T)Q[k++]=l;return Q};
  230. g.MM=function(T,Q){return T!==null&&Q in T};
  231. g.YZ=function(T,Q){for(var k in T)if(T[k]==Q)return!0;return!1};
  232. Ui=function(T,Q){for(var k in T)if(Q.call(void 0,T[k],k,T))return k};
  233. aHf=function(T,Q){return(Q=Ui(T,Q))&&T[Q]};
  234. g.Rs=function(T){for(var Q in T)return!1;return!0};
  235. g.ugu=function(T){for(var Q in T)delete T[Q]};
  236. g.ZW=function(T,Q,k){return T!==null&&Q in T?T[Q]:k};
  237. g.fJ=function(T,Q){for(var k in T)if(!(k in Q)||T[k]!==Q[k])return!1;for(var l in Q)if(!(l in T))return!1;return!0};
  238. g.Gs=function(T){var Q={},k;for(k in T)Q[k]=T[k];return Q};
  239. g.my=function(T){if(!T||typeof T!=="object")return T;if(typeof T.clone==="function")return T.clone();if(typeof Map!=="undefined"&&T instanceof Map)return new Map(T);if(typeof Set!=="undefined"&&T instanceof Set)return new Set(T);if(T instanceof Date)return new Date(T.getTime());var Q=Array.isArray(T)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(T)||T instanceof DataView?{}:new T.constructor(T.length),k;for(k in T)Q[k]=g.my(T[k]);return Q};
  240. g.Is=function(T,Q){for(var k,l,v=1;v<arguments.length;v++){l=arguments[v];for(k in l)T[k]=l[k];for(var L=0;L<nby.length;L++)k=nby[L],Object.prototype.hasOwnProperty.call(l,k)&&(T[k]=l[k])}};
  241. hV=function(){this.S=null;this.T=!1};
  242. si=function(T){hV.call(this);this.Y=T};
  243. SP=function(){hV.call(this)};
  244. CJ=function(){hV.call(this)};
  245. Bg=function(){this.T={};this.S=!0;this.L={}};
  246. zs=function(T,Q,k){T.T[Q]||(T.T[Q]=new si(k));return T.T[Q]};
  247. KXT=function(T){T.T.queryid||(T.T.queryid=new CJ)};
  248. Xl=function(T,Q,k){(T=T.T[Q])&&T.L(k)};
  249. wz=function(T,Q){if(g.MM(T.L,Q))return T.L[Q];if(T=T.T[Q])return T.getValue()};
  250. dz=function(T){var Q={},k=g.Ts(T.T,function(l){return l.T});
  251. g.VJ(k,function(l,v){l=T.L[v]!==void 0?String(T.L[v]):l.T&&l.S!==null?String(l.S):"";l.length>0&&(Q[v]=l)},T);
  252. return Q};
  253. xJ5=function(T){T=dz(T);var Q=[];g.VJ(T,function(k,l){l in Object.prototype||typeof k!="undefined"&&Q.push([l,":",k].join(""))});
  254. return Q};
  255. H5y=function(T){zs(T,"od",PyI);zs(T,"opac",NM).T=!0;zs(T,"sbeos",NM).T=!0;zs(T,"prf",NM).T=!0;zs(T,"mwt",NM).T=!0;zs(T,"iogeo",NM)};
  256. AV=function(T,Q){return T.lastIndexOf(Q,0)==0};
  257. tfJ=function(T,Q){var k=T.length-Q.length;return k>=0&&T.indexOf(Q,k)==k};
  258. g.bB=function(T){return/^[\s\xa0]*$/.test(T)};
  259. g.rz=function(T,Q){return T.indexOf(Q)!=-1};
  260. DW=function(T,Q){return g.rz(T.toLowerCase(),Q.toLowerCase())};
  261. g.nJ=function(T,Q){var k=0;T=as(String(T)).split(".");Q=as(String(Q)).split(".");for(var l=Math.max(T.length,Q.length),v=0;k==0&&v<l;v++){var L=T[v]||"",q=Q[v]||"";do{L=/(\d*)(\D*)(.*)/.exec(L)||["","","",""];q=/(\d*)(\D*)(.*)/.exec(q)||["","","",""];if(L[0].length==0&&q[0].length==0)break;k=uB(L[1].length==0?0:parseInt(L[1],10),q[1].length==0?0:parseInt(q[1],10))||uB(L[2].length==0,q[2].length==0)||uB(L[2],q[2]);L=L[3];q=q[3]}while(k==0)}return k};
  262. uB=function(T,Q){return T<Q?-1:T>Q?1:0};
  263. g.KJ=function(){var T=g.VC.navigator;return T&&(T=T.userAgent)?T:""};
  264. pJ=function(T){if(!xZ&&!Pg||!Oi)return!1;for(var Q=0;Q<Oi.brands.length;Q++){var k=Oi.brands[Q].brand;if(k&&g.rz(k,T))return!0}return!1};
  265. Wg=function(T){return g.rz(g.KJ(),T)};
  266. $Z=function(){return xZ||Pg?!!Oi&&Oi.brands.length>0:!1};
  267. JV=function(){return $Z()?!1:Wg("Opera")};
  268. O55=function(){return $Z()?!1:Wg("Trident")||Wg("MSIE")};
  269. pTg=function(){return $Z()?pJ("Microsoft Edge"):Wg("Edg/")};
  270. eP=function(){return Wg("Firefox")||Wg("FxiOS")};
  271. Ei=function(){return Wg("Safari")&&!(Fl()||($Z()?0:Wg("Coast"))||JV()||($Z()?0:Wg("Edge"))||pTg()||($Z()?pJ("Opera"):Wg("OPR"))||eP()||Wg("Silk")||Wg("Android"))};
  272. Fl=function(){return $Z()?pJ("Chromium"):(Wg("Chrome")||Wg("CriOS"))&&!($Z()?0:Wg("Edge"))||Wg("Silk")};
  273. WXg=function(){return Wg("Android")&&!(Fl()||eP()||JV()||Wg("Silk"))};
  274. $J5=function(T){var Q={};T.forEach(function(k){Q[k[0]]=k[1]});
  275. return function(k){return Q[k.find(function(l){return l in Q})]||""}};
  276. J55=function(T){var Q=g.KJ();if(T==="Internet Explorer"){if(O55())if((T=/rv: *([\d\.]*)/.exec(Q))&&T[1])Q=T[1];else{T="";var k=/MSIE +([\d\.]+)/.exec(Q);if(k&&k[1])if(Q=/Trident\/(\d.\d)/.exec(Q),k[1]=="7.0")if(Q&&Q[1])switch(Q[1]){case "4.0":T="8.0";break;case "5.0":T="9.0";break;case "6.0":T="10.0";break;case "7.0":T="11.0"}else T="7.0";else T=k[1];Q=T}else Q="";return Q}var l=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");k=[];for(var v;v=l.exec(Q);)k.push([v[1],v[2],v[3]||void 0]);
  277. Q=$J5(k);switch(T){case "Opera":if(JV())return Q(["Version","Opera"]);if($Z()?pJ("Opera"):Wg("OPR"))return Q(["OPR"]);break;case "Microsoft Edge":if($Z()?0:Wg("Edge"))return Q(["Edge"]);if(pTg())return Q(["Edg"]);break;case "Chromium":if(Fl())return Q(["Chrome","CriOS","HeadlessChrome"])}return T==="Firefox"&&eP()||T==="Safari"&&Ei()||T==="Android Browser"&&WXg()||T==="Silk"&&Wg("Silk")?(Q=k[2])&&Q[1]||"":""};
  278. eub=function(T){if($Z()&&T!=="Silk"){var Q=Oi.brands.find(function(k){return k.brand===T});
  279. if(!Q||!Q.version)return NaN;Q=Q.version.split(".")}else{Q=J55(T);if(Q==="")return NaN;Q=Q.split(".")}return Q.length===0?NaN:Number(Q[0])};
  280. Ebb=function(){var T=null;if(!FXb)return T;try{var Q=function(k){return k};
  281. T=FXb.createPolicy("goog#html",{createHTML:Q,createScript:Q,createScriptURL:Q})}catch(k){}return T};
  282. iB=function(){y2===void 0&&(y2=Ebb());return y2};
  283. V2=function(T){this.T=T};
  284. TH=function(T){var Q=iB();T=Q?Q.createScriptURL(T):T;return new V2(T)};
  285. jN=function(T){if(T instanceof V2)return T.T;throw Error("");};
  286. kP=function(T){this.T=T};
  287. g.lX=function(T){if(T instanceof kP)return T.T;throw Error("");};
  288. oT=function(T){this.Hk=T};
  289. vX=function(T){return new oT(function(Q){return Q.substr(0,T.length+1).toLowerCase()===T+":"})};
  290. g.Ll=function(T,Q){Q=Q===void 0?y55:Q;a:if(Q=Q===void 0?y55:Q,!(T instanceof kP)){for(var k=0;k<Q.length;++k){var l=Q[k];if(l instanceof oT&&l.Hk(T)){T=new kP(T);break a}}T=void 0}return T||i5g};
  291. T$5=function(T){if(Vf5.test(T))return T};
  292. Mn=function(T){return T instanceof kP?g.lX(T):T$5(T)};
  293. g.YP=function(T,Q){Q=Mn(Q);Q!==void 0&&(T.href=Q)};
  294. Uk=function(T,Q){throw Error(Q===void 0?"unexpected value "+T+"!":Q);};
  295. RT=function(T){this.T=T};
  296. Zo=function(T){var Q=iB();T=Q?Q.createHTML(T):T;return new RT(T)};
  297. fl=function(T){if(T instanceof RT)return T.T;throw Error("");};
  298. g.GH=function(T,Q,k,l){Q=Mn(Q);return Q!==void 0?T.open(Q,k,l):null};
  299. mI=function(T){T=T===void 0?document:T;var Q,k;T=(k=(Q=T).querySelector)==null?void 0:k.call(Q,"script[nonce]");return T==null?"":T.nonce||T.getAttribute("nonce")||""};
  300. IT=function(T){this.T=T};
  301. Q_H=function(T){var Q=iB();T=Q?Q.createScript(T):T;return new IT(T)};
  302. hi=function(T){if(T instanceof IT)return T.T;throw Error("");};
  303. sk=function(T){var Q=mI(T.ownerDocument);Q&&T.setAttribute("nonce",Q)};
  304. g.SN=function(T,Q){T.src=jN(Q);sk(T)};
  305. BX=function(){this.T=j_f[0].toLowerCase()};
  306. kvu=function(T){var Q="true".toString(),k=[new BX];if(k.length===0)throw Error("");if(k.map(function(l){if(l instanceof BX)l=l.T;else throw Error("");return l}).every(function(l){return"data-loaded".indexOf(l)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
  307. T.setAttribute("data-loaded",Q)};
  308. l1b=function(T,Q){T.__closure__error__context__984382||(T.__closure__error__context__984382={});T.__closure__error__context__984382.severity=Q};
  309. oE5=function(T){var Q=g.jA("window.location.href");T==null&&(T='Unknown Error of type "null/undefined"');if(typeof T==="string")return{message:T,name:"Unknown error",lineNumber:"Not available",fileName:Q,stack:"Not available"};var k=!1;try{var l=T.lineNumber||T.line||"Not available"}catch(q){l="Not available",k=!0}try{var v=T.fileName||T.filename||T.sourceURL||g.VC.$googDebugFname||Q}catch(q){v="Not available",k=!0}Q=zH(T);if(!(!k&&T.lineNumber&&T.fileName&&T.stack&&T.message&&T.name)){k=T.message;
  310. if(k==null){if(T.constructor&&T.constructor instanceof Function){if(T.constructor.name)k=T.constructor.name;else if(k=T.constructor,Xs[k])k=Xs[k];else{k=String(k);if(!Xs[k]){var L=/function\s+([^\(]+)/m.exec(k);Xs[k]=L?L[1]:"[Anonymous]"}k=Xs[k]}k='Unknown Error of type "'+k+'"'}else k="Unknown Error of unknown type";typeof T.toString==="function"&&Object.prototype.toString!==T.toString&&(k+=": "+T.toString())}return{message:k,name:T.name||"UnknownError",lineNumber:l,fileName:v,stack:Q||"Not available"}}return{message:T.message,
  311. name:T.name,lineNumber:T.lineNumber,fileName:T.fileName,stack:Q}};
  312. zH=function(T,Q){Q||(Q={});Q[wa(T)]=!0;var k=T.stack||"",l=T.cause;l&&!Q[wa(l)]&&(k+="\nCaused by: ",l.stack&&l.stack.indexOf(l.toString())==0||(k+=typeof l==="string"?l:l.message+"\n"),k+=zH(l,Q));T=T.errors;if(Array.isArray(T)){l=1;var v;for(v=0;v<T.length&&!(l>4);v++)Q[wa(T[v])]||(k+="\nInner error "+l++ +": ",T[v].stack&&T[v].stack.indexOf(T[v].toString())==0||(k+=typeof T[v]==="string"?T[v]:T[v].message+"\n"),k+=zH(T[v],Q));v<T.length&&(k+="\n... "+(T.length-v)+" more inner errors")}return k};
  313. wa=function(T){var Q="";typeof T.toString==="function"&&(Q=""+T);return Q+T.stack};
  314. da=function(T,Q,k){return T.parseFromString(fl(Q),k)};
  315. g.Nn=function(T){return encodeURIComponent(String(T))};
  316. bX=function(T){return decodeURIComponent(T.replace(/\+/g," "))};
  317. ra=function(T){vEg.test(T)&&(T.indexOf("&")!=-1&&(T=T.replace(L9y,"&amp;")),T.indexOf("<")!=-1&&(T=T.replace(qA5,"&lt;")),T.indexOf(">")!=-1&&(T=T.replace(gEt,"&gt;")),T.indexOf('"')!=-1&&(T=T.replace(MAu,"&quot;")),T.indexOf("'")!=-1&&(T=T.replace(YAH,"&#39;")),T.indexOf("\x00")!=-1&&(T=T.replace(UpT,"&#0;")));return T};
  318. g.cX=function(T){return T==null?"":String(T)};
  319. Do=function(T){for(var Q=0,k=0;k<T.length;++k)Q=31*Q+T.charCodeAt(k)>>>0;return Q};
  320. aT=function(T){var Q=Number(T);return Q==0&&g.bB(T)?NaN:Q};
  321. Reg=function(T){return String(T).replace(/\-([a-z])/g,function(Q,k){return k.toUpperCase()})};
  322. ZWX=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
  323. f1X=function(T){return T.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Q,k,l){return k+l.toUpperCase()})};
  324. Gvf=function(T){var Q=1;T=T.split(":");for(var k=[];Q>0&&T.length;)k.push(T.shift()),Q--;T.length&&k.push(T.join(":"));return k};
  325. uX=function(){return xZ||Pg?!!Oi&&!!Oi.platform:!1};
  326. mpC=function(){return uX()?Oi.platform==="Android":Wg("Android")};
  327. nl=function(){return Wg("iPhone")&&!Wg("iPod")&&!Wg("iPad")};
  328. Kl=function(){return nl()||Wg("iPad")||Wg("iPod")};
  329. xP=function(){return uX()?Oi.platform==="macOS":Wg("Macintosh")};
  330. I15=function(){return uX()?Oi.platform==="Windows":Wg("Windows")};
  331. PX=function(T){PX[" "](T);return T};
  332. heI=function(T,Q){try{return PX(T[Q]),!0}catch(k){}return!1};
  333. SAH=function(T,Q){var k=s_b;return Object.prototype.hasOwnProperty.call(k,T)?k[T]:k[T]=Q(T)};
  334. g.HX=function(T){return SAH(T,function(){return g.nJ(CW5,T)>=0})};
  335. g.ti=function(T,Q,k){return Math.min(Math.max(T,Q),k)};
  336. g.Ok=function(T,Q){T%=Q;return T*Q<0?T+Q:T};
  337. pl=function(T,Q,k){return T+k*(Q-T)};
  338. g.WX=function(T,Q){this.x=T!==void 0?T:0;this.y=Q!==void 0?Q:0};
  339. $P=function(T,Q){return T==Q?!0:T&&Q?T.x==Q.x&&T.y==Q.y:!1};
  340. g.Ji=function(T,Q){this.width=T;this.height=Q};
  341. g.eN=function(T,Q){return T==Q?!0:T&&Q?T.width==Q.width&&T.height==Q.height:!1};
  342. Fs=function(T){return T.width*T.height};
  343. yw=function(T,Q){this.T=T===Ek&&Q||""};
  344. iX=function(T){if(T instanceof RT)return T;T=String(T).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return Zo(T)};
  345. zey=function(T){return B$y(T)};
  346. B$y=function(T){var Q=iX("");return Zo(T.map(function(k){return fl(iX(k))}).join(fl(Q).toString()))};
  347. ATT=function(T){var Q;if(!Xm5.test("div"))throw Error("");if(wm6.indexOf("DIV")!==-1)throw Error("");var k="<div";T&&(k+=dpC(T));Array.isArray(Q)||(Q=Q===void 0?[]:[Q]);N$t.indexOf("DIV")!==-1?k+=">":(T=zey(Q.map(function(l){return l instanceof RT?l:iX(String(l))})),k+=">"+T.toString()+"</div>");
  348. return Zo(k)};
  349. dpC=function(T){for(var Q="",k=Object.keys(T),l=0;l<k.length;l++){var v=k[l],L=T[v];if(!Xm5.test(v))throw Error("");if(L!==void 0&&L!==null){if(/^on./i.test(v))throw Error("");bWT.indexOf(v.toLowerCase())!==-1&&(L=L instanceof kP?L.toString():T$5(String(L))||"about:invalid#zClosurez");L=v+'="'+iX(String(L))+'"';Q+=" "+L}}return Q};
  350. g.Vw=function(T){var Q=g.HT.apply(1,arguments);if(Q.length===0)return TH(T[0]);for(var k=T[0],l=0;l<Q.length;l++)k+=encodeURIComponent(Q[l])+T[l+1];return TH(k)};
  351. jO=function(T){return T?new T8(Qf(T)):rTC||(rTC=new T8)};
  352. oO=function(T,Q){return typeof Q==="string"?T.getElementById(Q):Q};
  353. g.v2=function(T,Q){return(Q||document).getElementsByTagName(String(T))};
  354. g.LO=function(T,Q){return(Q||document).querySelectorAll("."+T)};
  355. g.gK=function(T,Q){var k=Q||document;k.getElementsByClassName?T=k.getElementsByClassName(T)[0]:(k=document,T=T?(Q||k).querySelector(T?"."+T:""):g.qX(k,"*",T,Q)[0]||null);return T||null};
  356. g.qX=function(T,Q,k,l){T=l||T;return(Q=Q&&Q!="*"?String(Q).toUpperCase():"")||k?T.querySelectorAll(Q+(k?"."+k:"")):T.getElementsByTagName("*")};
  357. MX=function(T,Q){g.VJ(Q,function(k,l){l=="style"?T.style.cssText=k:l=="class"?T.className=k:l=="for"?T.htmlFor=k:cTb.hasOwnProperty(l)?T.setAttribute(cTb[l],k):AV(l,"aria-")||AV(l,"data-")?T.setAttribute(l,k):T[l]=k})};
  358. Dp5=function(T){T=T.document;T=T.compatMode=="CSS1Compat"?T.documentElement:T.body;return new g.Ji(T.clientWidth,T.clientHeight)};
  359. udT=function(T){var Q=a1f(T);T=T.defaultView;return new g.WX(T.pageXOffset||Q.scrollLeft,T.pageYOffset||Q.scrollTop)};
  360. a1f=function(T){return T.scrollingElement?T.scrollingElement:g.Y1||T.compatMode!="CSS1Compat"?T.body||T.documentElement:T.documentElement};
  361. U$=function(T){return T?T.defaultView:window};
  362. ZM=function(T,Q,k){var l=arguments,v=document,L=l[1],q=RO(v,String(l[0]));L&&(typeof L==="string"?q.className=L:Array.isArray(L)?q.className=L.join(" "):MX(q,L));l.length>2&&nEt(v,q,l,2);return q};
  363. nEt=function(T,Q,k,l){function v(Y){Y&&Q.appendChild(typeof Y==="string"?T.createTextNode(Y):Y)}
  364. for(;l<k.length;l++){var L=k[l];if(!g.o_(L)||g.vm(L)&&L.nodeType>0)v(L);else{a:{if(L&&typeof L.length=="number"){if(g.vm(L)){var q=typeof L.item=="function"||typeof L.item=="string";break a}if(typeof L==="function"){q=typeof L.item=="function";break a}}q=!1}g.EA(q?g.r$(L):L,v)}}};
  365. g.fO=function(T){return RO(document,T)};
  366. RO=function(T,Q){Q=String(Q);T.contentType==="application/xhtml+xml"&&(Q=Q.toLowerCase());return T.createElement(Q)};
  367. g.G8=function(T){return document.createTextNode(String(T))};
  368. g.mm=function(T,Q){T.appendChild(Q)};
  369. g.IO=function(T){for(var Q;Q=T.firstChild;)T.removeChild(Q)};
  370. hZ=function(T,Q,k){T.insertBefore(Q,T.childNodes[k]||null)};
  371. g.s$=function(T){return T&&T.parentNode?T.parentNode.removeChild(T):null};
  372. g.SO=function(T,Q){if(!T||!Q)return!1;if(T.contains&&Q.nodeType==1)return T==Q||T.contains(Q);if(typeof T.compareDocumentPosition!="undefined")return T==Q||!!(T.compareDocumentPosition(Q)&16);for(;Q&&T!=Q;)Q=Q.parentNode;return Q==T};
  373. Qf=function(T){return T.nodeType==9?T:T.ownerDocument||T.document};
  374. g.CO=function(T,Q){if("textContent"in T)T.textContent=Q;else if(T.nodeType==3)T.data=String(Q);else if(T.firstChild&&T.firstChild.nodeType==3){for(;T.lastChild!=T.firstChild;)T.removeChild(T.lastChild);T.firstChild.data=String(Q)}else g.IO(T),T.appendChild(Qf(T).createTextNode(String(Q)))};
  375. xpt=function(T){return T.tagName=="A"&&T.hasAttribute("href")||T.tagName=="INPUT"||T.tagName=="TEXTAREA"||T.tagName=="SELECT"||T.tagName=="BUTTON"?!T.disabled&&(!T.hasAttribute("tabindex")||K96(T)):T.hasAttribute("tabindex")&&K96(T)};
  376. K96=function(T){T=T.tabIndex;return typeof T==="number"&&T>=0&&T<32768};
  377. dK=function(T,Q,k){if(!Q&&!k)return null;var l=Q?String(Q).toUpperCase():null;return B2(T,function(v){return(!l||v.nodeName==l)&&(!k||typeof v.className==="string"&&g.CW(v.className.split(/\s+/),k))},!0)};
  378. B2=function(T,Q,k){T&&!k&&(T=T.parentNode);for(k=0;T;){if(Q(T))return T;T=T.parentNode;k++}return null};
  379. T8=function(T){this.T=T||g.VC.document||document};
  380. PWH=function(){this.T=this.kd=null};
  381. NX=function(){};
  382. b5=function(){if(!AZ())throw Error();};
  383. AZ=function(){return!(!rK||!rK.performance)};
  384. HW5=function(T){return g.Y1?"webkit"+T:T.toLowerCase()};
  385. c2=function(T){return function(){return T}};
  386. g.DM=function(){};
  387. tAI=function(T){var Q=Q||0;return function(){return T.apply(this,Array.prototype.slice.call(arguments,0,Q))}};
  388. aO=function(T){var Q=!1,k;return function(){Q||(k=T(),Q=!0);return k}};
  389. u5=function(T){var Q=T;return function(){if(Q){var k=Q;Q=null;k()}}};
  390. nO=function(T,Q,k){var l=0;return function(v){g.VC.clearTimeout(l);var L=arguments;l=g.VC.setTimeout(function(){T.apply(k,L)},Q)}};
  391. KO=function(T,Q,k,l){this.top=T;this.right=Q;this.bottom=k;this.left=l};
  392. x1=function(T){return T.right-T.left};
  393. P2=function(T,Q){return T==Q?!0:T&&Q?T.top==Q.top&&T.right==Q.right&&T.bottom==Q.bottom&&T.left==Q.left:!1};
  394. H2=function(T,Q,k){Q instanceof g.WX?(T.left+=Q.x,T.right+=Q.x,T.top+=Q.y,T.bottom+=Q.y):(T.left+=Q,T.right+=Q,typeof k==="number"&&(T.top+=k,T.bottom+=k));return T};
  395. g.tZ=function(T,Q,k,l){this.left=T;this.top=Q;this.width=k;this.height=l};
  396. O$=function(T,Q){return T==Q?!0:T&&Q?T.left==Q.left&&T.width==Q.width&&T.top==Q.top&&T.height==Q.height:!1};
  397. g.W2=function(T,Q,k){if(typeof Q==="string")(Q=pO(T,Q))&&(T.style[Q]=k);else for(var l in Q){k=T;var v=Q[l],L=pO(k,l);L&&(k.style[L]=v)}};
  398. pO=function(T,Q){var k=OW5[Q];if(!k){var l=Reg(Q);k=l;T.style[l]===void 0&&(l=(g.Y1?"Webkit":$1?"Moz":null)+f1X(l),T.style[l]!==void 0&&(k=l));OW5[Q]=k}return k};
  399. g.JZ=function(T,Q){var k=T.style[Reg(Q)];return typeof k!=="undefined"?k:T.style[pO(T,Q)]||""};
  400. eO=function(T,Q){var k=Qf(T);return k.defaultView&&k.defaultView.getComputedStyle&&(T=k.defaultView.getComputedStyle(T,null))?T[Q]||T.getPropertyValue(Q)||"":""};
  401. F3=function(T,Q){return eO(T,Q)||(T.currentStyle?T.currentStyle[Q]:null)||T.style&&T.style[Q]};
  402. g.yf=function(T,Q,k){if(Q instanceof g.WX){var l=Q.x;Q=Q.y}else l=Q,Q=k;T.style.left=g.E$(l,!1);T.style.top=g.E$(Q,!1)};
  403. i5=function(T){try{return T.getBoundingClientRect()}catch(Q){return{left:0,top:0,right:0,bottom:0}}};
  404. pmg=function(T){var Q=Qf(T),k=F3(T,"position"),l=k=="fixed"||k=="absolute";for(T=T.parentNode;T&&T!=Q;T=T.parentNode)if(T.nodeType==11&&T.host&&(T=T.host),k=F3(T,"position"),l=l&&k=="static"&&T!=Q.documentElement&&T!=Q.body,!l&&(T.scrollWidth>T.clientWidth||T.scrollHeight>T.clientHeight||k=="fixed"||k=="absolute"||k=="relative"))return T;return null};
  405. g.Vf=function(T){var Q=Qf(T),k=new g.WX(0,0);if(T==(Q?Qf(Q):document).documentElement)return k;T=i5(T);Q=jO(Q);Q=udT(Q.T);k.x=T.left+Q.x;k.y=T.top+Q.y;return k};
  406. $py=function(T,Q){var k=new g.WX(0,0),l=U$(Qf(T));if(!heI(l,"parent"))return k;do{var v=l==Q?g.Vf(T):W9T(T);k.x+=v.x;k.y+=v.y}while(l&&l!=Q&&l!=l.parent&&(T=l.frameElement)&&(l=l.parent));return k};
  407. g.To=function(T,Q){T=JTy(T);Q=JTy(Q);return new g.WX(T.x-Q.x,T.y-Q.y)};
  408. W9T=function(T){T=i5(T);return new g.WX(T.left,T.top)};
  409. JTy=function(T){if(T.nodeType==1)return W9T(T);T=T.changedTouches?T.changedTouches[0]:T;return new g.WX(T.clientX,T.clientY)};
  410. g.QP=function(T,Q,k){if(Q instanceof g.Ji)k=Q.height,Q=Q.width;else if(k==void 0)throw Error("missing height argument");T.style.width=g.E$(Q,!0);T.style.height=g.E$(k,!0)};
  411. g.E$=function(T,Q){typeof T=="number"&&(T=(Q?Math.round(T):T)+"px");return T};
  412. g.jC=function(T){var Q=eeI;if(F3(T,"display")!="none")return Q(T);var k=T.style,l=k.display,v=k.visibility,L=k.position;k.visibility="hidden";k.position="absolute";k.display="inline";T=Q(T);k.display=l;k.position=L;k.visibility=v;return T};
  413. eeI=function(T){var Q=T.offsetWidth,k=T.offsetHeight,l=g.Y1&&!Q&&!k;return(Q===void 0||l)&&T.getBoundingClientRect?(T=i5(T),new g.Ji(T.right-T.left,T.bottom-T.top)):new g.Ji(Q,k)};
  414. g.kj=function(T,Q){T.style.display=Q?"":"none"};
  415. lS=function(T){return T?T.passive&&F9f()?T:T.capture||!1:!1};
  416. oQ=function(T,Q,k,l){return typeof T.addEventListener==="function"?(T.addEventListener(Q,k,lS(l)),!0):!1};
  417. vu=function(T){if(T.prerendering)return 3;var Q;return(Q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[T.visibilityState||T.webkitVisibilityState||T.mozVisibilityState||""])!=null?Q:0};
  418. EET=function(){};
  419. L8=function(T){T.u39=!0;return T};
  420. yTb=function(){return(xZ||Pg)&&Oi?Oi.mobile:!M_()&&(Wg("iPod")||Wg("iPhone")||Wg("Android")||Wg("IEMobile"))};
  421. M_=function(){return(xZ||Pg)&&Oi?!Oi.mobile&&(Wg("iPad")||Wg("Android")||Wg("Silk")):Wg("iPad")||Wg("Android")&&!Wg("Mobile")||Wg("Silk")};
  422. Yj=function(T){try{return!!T&&T.location.href!=null&&heI(T,"foo")}catch(Q){return!1}};
  423. Uo=function(T,Q){if(T)for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&Q(T[k],k,T)};
  424. VAX=function(){var T=[];Uo(iWX,function(Q){T.push(Q)});
  425. return T};
  426. Tz6=function(T){var Q,k;return(k=(Q=/https?:\/\/[^\/]+/.exec(T))==null?void 0:Q[0])!=null?k:""};
  427. ksJ=function(){var T=QsX("IFRAME"),Q={};g.EA(jsT(),function(k){T.sandbox&&T.sandbox.supports&&T.sandbox.supports(k)&&(Q[k]=!0)});
  428. return Q};
  429. QsX=function(T,Q){Q=Q===void 0?document:Q;return Q.createElement(String(T).toLowerCase())};
  430. lW5=function(T){for(var Q=T;T&&T!=T.parent;)T=T.parent,Yj(T)&&(Q=T);return Q};
  431. qiy=function(T){T=T||RQ();for(var Q=new oZg(g.VC.location.href,!1),k=null,l=T.length-1,v=l;v>=0;--v){var L=T[v];!k&&vZu.test(L.url)&&(k=L);if(L.url&&!L.T){Q=L;break}}v=null;L=T.length&&T[l].url;Q.depth!==0&&L&&(v=T[l]);return new Ly5(Q,v,k)};
  432. RQ=function(){var T=g.VC,Q=[],k=null;do{var l=T;if(Yj(l)){var v=l.location.href;k=l.document&&l.document.referrer||null}else v=k,k=null;Q.push(new oZg(v||""));try{T=l.parent}catch(L){T=null}}while(T&&l!==T);l=0;for(T=Q.length-1;l<=T;++l)Q[l].depth=T-l;l=g.VC;if(l.location&&l.location.ancestorOrigins&&l.location.ancestorOrigins.length===Q.length-1)for(T=1;T<Q.length;++T)v=Q[T],v.url||(v.url=l.location.ancestorOrigins[T-1]||"",v.T=!0);return Q};
  433. Ly5=function(T,Q,k){this.T=T;this.S=Q;this.L=k};
  434. oZg=function(T,Q){this.url=T;this.T=!!Q;this.depth=null};
  435. Z9=function(){this.L="&";this.S={};this.Y=0;this.T=[]};
  436. f8=function(T,Q){var k={};k[T]=Q;return[k]};
  437. gZ6=function(T,Q,k,l,v){var L=[];Uo(T,function(q,Y){(q=Go(q,Q,k,l,v))&&L.push(Y+"="+q)});
  438. return L.join(Q)};
  439. Go=function(T,Q,k,l,v){if(T==null)return"";Q=Q||"&";k=k||",$";typeof k==="string"&&(k=k.split(""));if(T instanceof Array){if(l||(l=0),l<k.length){for(var L=[],q=0;q<T.length;q++)L.push(Go(T[q],Q,k,l+1,v));return L.join(k[l])}}else if(typeof T==="object")return v||(v=0),v<2?encodeURIComponent(gZ6(T,Q,k,l,v+1)):"...";return encodeURIComponent(String(T))};
  440. MPt=function(T){var Q=1,k;for(k in T.S)k.length>Q&&(Q=k.length);return 3997-Q-T.L.length-1};
  441. m3=function(T,Q){this.T=T;this.depth=Q};
  442. UMt=function(){function T(Y,U){return Y==null?U:Y}
  443. var Q=RQ(),k=Math.max(Q.length-1,0),l=qiy(Q);Q=l.T;var v=l.S,L=l.L,q=[];L&&q.push(new m3([L.url,L.T?2:0],T(L.depth,1)));v&&v!=L&&q.push(new m3([v.url,2],0));Q.url&&Q!=L&&q.push(new m3([Q.url,0],T(Q.depth,k)));l=g.IQ(q,function(Y,U){return q.slice(0,q.length-U)});
  444. !Q.url||(L||v)&&Q!=L||(v=Tz6(Q.url))&&l.push([new m3([v,1],T(Q.depth,k))]);l.push([]);return g.IQ(l,function(Y){return YiC(k,Y)})};
  445. YiC=function(T,Q){g.hm(Q,function(v){return v.depth>=0});
  446. var k=so(Q,function(v,L){return Math.max(v,L.depth)},-1),l=A5y(k+2);
  447. l[0]=T;g.EA(Q,function(v){return l[v.depth+1]=v.T});
  448. return l};
  449. RW6=function(){var T=T===void 0?UMt():T;return T.map(function(Q){return Go(Q)})};
  450. ZJJ=function(T){var Q=!1;Q=Q===void 0?!1:Q;rK.google_image_requests||(rK.google_image_requests=[]);var k=QsX("IMG",rK.document);Q&&(k.attributionSrc="");k.src=T;rK.google_image_requests.push(k)};
  451. SC=function(T){var Q="Zf";if(T.Zf&&T.hasOwnProperty(Q))return T.Zf;var k=new T;T.Zf=k;T.hasOwnProperty(Q);return k};
  452. C8=function(){this.S=new EET;this.T=AZ()?new b5:new NX};
  453. fWu=function(){Bu();var T=rK.document;return!!(T&&T.body&&T.body.getBoundingClientRect&&typeof rK.setInterval==="function"&&typeof rK.clearInterval==="function"&&typeof rK.setTimeout==="function"&&typeof rK.clearTimeout==="function")};
  454. Gsf=function(){Bu();return RW6()};
  455. mM5=function(){};
  456. Bu=function(){var T=SC(mM5);if(!T.T){if(!rK)throw Error("Context has not been set and window is undefined.");T.T=SC(C8)}return T.T};
  457. zo=function(){throw Error("Invalid UTF8");};
  458. IWH=function(T,Q){Q=String.fromCharCode.apply(null,Q);return T==null?Q:T+Q};
  459. CBX=function(T){var Q=!1;Q=Q===void 0?!1:Q;if(hW5){if(Q&&(ssI?!T.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(T)))throw Error("Found an unpaired surrogate");T=(Sig||(Sig=new TextEncoder)).encode(T)}else{for(var k=0,l=new Uint8Array(3*T.length),v=0;v<T.length;v++){var L=T.charCodeAt(v);if(L<128)l[k++]=L;else{if(L<2048)l[k++]=L>>6|192;else{if(L>=55296&&L<=57343){if(L<=56319&&v<T.length){var q=T.charCodeAt(++v);if(q>=56320&&q<=57343){L=(L-55296)*1024+
  460. q-56320+65536;l[k++]=L>>18|240;l[k++]=L>>12&63|128;l[k++]=L>>6&63|128;l[k++]=L&63|128;continue}else v--}if(Q)throw Error("Found an unpaired surrogate");L=65533}l[k++]=L>>12|224;l[k++]=L>>6&63|128}l[k++]=L&63|128}}T=k===l.length?l:l.subarray(0,k)}return T};
  461. X1=function(T){g.VC.setTimeout(function(){throw T;},0)};
  462. Bz5=function(T){return Array.prototype.map.call(T,function(Q){Q=Q.toString(16);return Q.length>1?Q:"0"+Q}).join("")};
  463. zWH=function(T){for(var Q=[],k=0;k<T.length;k+=2)Q.push(parseInt(T.substring(k,k+2),16));return Q};
  464. g.wJ=function(T){for(var Q=[],k=0,l=0;l<T.length;l++){var v=T.charCodeAt(l);v<128?Q[k++]=v:(v<2048?Q[k++]=v>>6|192:((v&64512)==55296&&l+1<T.length&&(T.charCodeAt(l+1)&64512)==56320?(v=65536+((v&1023)<<10)+(T.charCodeAt(++l)&1023),Q[k++]=v>>18|240,Q[k++]=v>>12&63|128):Q[k++]=v>>12|224,Q[k++]=v>>6&63|128),Q[k++]=v&63|128)}return Q};
  465. g.dJ=function(T,Q){Q===void 0&&(Q=0);Xgg();Q=wgu[Q];for(var k=Array(Math.floor(T.length/3)),l=Q[64]||"",v=0,L=0;v<T.length-2;v+=3){var q=T[v],Y=T[v+1],U=T[v+2],R=Q[q>>2];q=Q[(q&3)<<4|Y>>4];Y=Q[(Y&15)<<2|U>>6];U=Q[U&63];k[L++]=""+R+q+Y+U}R=0;U=l;switch(T.length-v){case 2:R=T[v+1],U=Q[(R&15)<<2]||l;case 1:T=T[v],k[L]=""+Q[T>>2]+Q[(T&3)<<4|R>>4]+U+l}return k.join("")};
  466. g.N_=function(T,Q,k){if(dM5&&!Q)T=g.VC.btoa(T);else{for(var l=[],v=0,L=0;L<T.length;L++){var q=T.charCodeAt(L);if(q>255){var Y=Error("go/unicode-to-byte-error");if(k)throw Y;l[v++]=q&255;q>>=8}l[v++]=q}T=g.dJ(l,Q)}return T};
  467. AV5=function(T){var Q=[];Nz6(T,function(k){Q.push(k)});
  468. return Q};
  469. Am=function(T){var Q=T.length,k=Q*3/4;k%3?k=Math.floor(k):g.rz("=.",T[Q-1])&&(k=g.rz("=.",T[Q-2])?k-2:k-1);var l=new Uint8Array(k),v=0;Nz6(T,function(L){l[v++]=L});
  470. return v!==k?l.subarray(0,v):l};
  471. Nz6=function(T,Q){function k(U){for(;l<T.length;){var R=T.charAt(l++),Z=bS[R];if(Z!=null)return Z;if(!g.bB(R))throw Error("Unknown base64 encoding at char: "+R);}return U}
  472. Xgg();for(var l=0;;){var v=k(-1),L=k(0),q=k(64),Y=k(64);if(Y===64&&v===-1)break;Q(v<<2|L>>4);q!=64&&(Q(L<<4&240|q>>2),Y!=64&&Q(q<<6&192|Y))}};
  473. Xgg=function(){if(!bS){bS={};for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Q=["+/=","+/","-_=","-_.","-_"],k=0;k<5;k++){var l=T.concat(Q[k].split(""));wgu[k]=l;for(var v=0;v<l.length;v++){var L=l[v];bS[L]===void 0&&(bS[L]=v)}}}};
  474. rVt=function(T){return bJC[T]||""};
  475. aW6=function(T){if(!cV6)return Am(T);T=DM6.test(T)?T.replace(DM6,rVt):T;T=atob(T);for(var Q=new Uint8Array(T.length),k=0;k<T.length;k++)Q[k]=T.charCodeAt(k);return Q};
  476. rJ=function(T,Q){ulI(Q);this.T=T;if(T!=null&&T.length===0)throw Error("ByteString should be constructed with non-empty values");};
  477. D9=function(){return nZg||(nZg=new rJ(null,cu))};
  478. uS=function(T){return new Uint8Array(aQ(T)||0)};
  479. aQ=function(T){ulI(cu);var Q=T.T;Q=Q==null||Ky6&&Q!=null&&Q instanceof Uint8Array?Q:typeof Q==="string"?aW6(Q):null;return Q==null?Q:T.T=Q};
  480. ulI=function(T){if(T!==cu)throw Error("illegal external caller");};
  481. n8=function(T){T=Error(T);l1b(T,"warning");return T};
  482. K8=function(T,Q){if(T!=null){var k;var l=(k=xMf)!=null?k:xMf={};k=l[T]||0;k>=Q||(l[T]=k+1,T=Error(),l1b(T,"incident"),X1(T))}};
  483. xj=function(T,Q,k){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(k===void 0?0:k)&&Symbol.for&&T?Symbol.for(T):T!=null?Symbol(T):Symbol():Q};
  484. tm=function(T,Q){Pu||Hu in T||PBX(T,HJT);T[Hu]|=Q};
  485. Oo=function(T,Q){Pu||Hu in T||PBX(T,HJT);T[Hu]=Q};
  486. p8=function(){return typeof BigInt==="function"};
  487. Jm=function(T,Q){return Q===void 0?T.T!==Wu&&!!(2&(T.g5[Hu]|0)):!!(2&Q)&&T.T!==Wu};
  488. tPf=function(T,Q){if(T!=null)if(typeof T==="string")T=T?new rJ(T,cu):D9();else if(T.constructor!==rJ)if(Ky6&&T!=null&&T instanceof Uint8Array)T=T.length?new rJ(new Uint8Array(T),cu):D9();else{if(!Q)throw Error();T=void 0}return T};
  489. eC=function(T,Q){if(typeof Q!=="number"||Q<0||Q>=T.length)throw Error();};
  490. OJb=function(T,Q,k){var l=Q&128?0:-1,v=T.length,L;if(L=!!v)L=T[v-1],L=L!=null&&typeof L==="object"&&L.constructor===Object;var q=v+(L?-1:0);for(Q=Q&128?1:0;Q<q;Q++)k(Q-l,T[Q]);if(L){T=T[v-1];for(var Y in T)!isNaN(Y)&&k(+Y,T[Y])}};
  491. Eo=function(T){return T&128?F1:void 0};
  492. Ql=function(T){var Q=T;if(VP(Q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Q))throw Error(String(Q));}else if(pgI(Q)&&!Number.isSafeInteger(Q))throw Error(String(Q));return TS?BigInt(T):T=WyC(T)?T?"1":"0":VP(T)?T.trim()||"0":String(T)};
  493. $M5=function(T,Q){if(T.length>Q.length)return!1;if(T.length<Q.length||T===Q)return!0;for(var k=0;k<T.length;k++){var l=T[k],v=Q[k];if(l>v)return!1;if(l<v)return!0}};
  494. li=function(T){var Q=T>>>0;jk=Q;ky=(T-Q)/4294967296>>>0};
  495. vG=function(T){if(T<0){li(0-T);var Q=g.B(oc(jk,ky));T=Q.next().value;Q=Q.next().value;jk=T>>>0;ky=Q>>>0}else li(T)};
  496. qr=function(T,Q){var k=Q*4294967296+(T>>>0);return Number.isSafeInteger(k)?k:L2(T,Q)};
  497. JVt=function(T,Q){var k=Q&2147483648;k&&(T=~T+1>>>0,Q=~Q>>>0,T==0&&(Q=Q+1>>>0));T=qr(T,Q);return typeof T==="number"?k?-T:T:k?"-"+T:T};
  498. L2=function(T,Q){Q>>>=0;T>>>=0;if(Q<=2097151)var k=""+(4294967296*Q+T);else p8()?k=""+(BigInt(Q)<<BigInt(32)|BigInt(T)):(k=(T>>>24|Q<<8)&16777215,Q=Q>>16&65535,T=(T&16777215)+k*6777216+Q*6710656,k+=Q*8147497,Q*=2,T>=1E7&&(k+=T/1E7>>>0,T%=1E7),k>=1E7&&(Q+=k/1E7>>>0,k%=1E7),k=Q+eWt(k)+eWt(T));return k};
  499. eWt=function(T){T=String(T);return"0000000".slice(T.length)+T};
  500. Fyg=function(){var T=jk,Q=ky;Q&2147483648?p8()?T=""+(BigInt(Q|0)<<BigInt(32)|BigInt(T>>>0)):(Q=g.B(oc(T,Q)),T=Q.next().value,Q=Q.next().value,T="-"+L2(T,Q)):T=L2(T,Q);return T};
  501. g_=function(T){if(T.length<16)vG(Number(T));else if(p8())T=BigInt(T),jk=Number(T&BigInt(4294967295))>>>0,ky=Number(T>>BigInt(32)&BigInt(4294967295));else{var Q=+(T[0]==="-");ky=jk=0;for(var k=T.length,l=0+Q,v=(k-Q)%6+Q;v<=k;l=v,v+=6)l=Number(T.slice(l,v)),ky*=1E6,jk=jk*1E6+l,jk>=4294967296&&(ky+=Math.trunc(jk/4294967296),ky>>>=0,jk>>>=0);Q&&(Q=g.B(oc(jk,ky)),T=Q.next().value,Q=Q.next().value,jk=T,ky=Q)}};
  502. oc=function(T,Q){Q=~Q;T?T=~T+1:Q+=1;return[T,Q]};
  503. Mr=function(T){return Array.prototype.slice.call(T)};
  504. Yy=function(T){if(T!=null&&typeof T!=="number")throw Error("Value of float/double field must be a number, found "+typeof T+": "+T);return T};
  505. EZC=function(T){return T.displayName||T.name||"unknown type name"};
  506. Uv=function(T){if(T!=null&&typeof T!=="boolean")throw Error("Expected boolean but got "+Z5I(T)+": "+T);return T};
  507. ZO=function(T){switch(typeof T){case "bigint":return!0;case "number":return Rc(T);case "string":return yV5.test(T);default:return!1}};
  508. iJI=function(T){if(typeof T!=="number")throw n8("int32");if(!Rc(T))throw n8("int32");return T|0};
  509. f2=function(T){return T==null?T:iJI(T)};
  510. GS=function(T){if(T==null)return T;if(typeof T==="string"&&T)T=+T;else if(typeof T!=="number")return;return Rc(T)?T|0:void 0};
  511. mY=function(T){if(T==null)return T;if(typeof T==="string"&&T)T=+T;else if(typeof T!=="number")return;return Rc(T)?T>>>0:void 0};
  512. QTg=function(T){var Q=0;Q=Q===void 0?0:Q;if(!ZO(T))throw n8("int64");var k=typeof T;switch(Q){case 512:switch(k){case "string":return Sk(T);case "bigint":return String(C2(64,T));default:return BG(T)}case 1024:switch(k){case "string":return VPf(T);case "bigint":return Ql(C2(64,T));default:return Tay(T)}case 0:switch(k){case "string":return Sk(T);case "bigint":return Ql(C2(64,T));default:return zS(T)}default:return Uk(Q,"Unknown format requested type for int64")}};
  513. XW=function(T){return T==null?T:QTg(T)};
  514. jTX=function(T){if(T[0]==="-")return!1;var Q=T.length;return Q<20?!0:Q===20&&Number(T.substring(0,6))<184467};
  515. kH6=function(T){var Q=T.length;return T[0]==="-"?Q<20?!0:Q===20&&Number(T.substring(0,7))>-922337:Q<19?!0:Q===19&&Number(T.substring(0,6))<922337};
  516. loC=function(T){if(T<0){vG(T);var Q=L2(jk,ky);T=Number(Q);return w_(T)?T:Q}Q=String(T);if(jTX(Q))return Q;vG(T);return qr(jk,ky)};
  517. oPC=function(T){if(kH6(T))return T;g_(T);return Fyg()};
  518. zS=function(T){ZO(T);T=d_(T);w_(T)||(vG(T),T=JVt(jk,ky));return T};
  519. BG=function(T){ZO(T);T=d_(T);if(w_(T))T=String(T);else{var Q=String(T);kH6(Q)?T=Q:(vG(T),T=Fyg())}return T};
  520. Sk=function(T){ZO(T);var Q=d_(Number(T));if(w_(Q))return String(Q);Q=T.indexOf(".");Q!==-1&&(T=T.substring(0,Q));return oPC(T)};
  521. VPf=function(T){var Q=d_(Number(T));if(w_(Q))return Ql(Q);Q=T.indexOf(".");Q!==-1&&(T=T.substring(0,Q));return p8()?Ql(C2(64,BigInt(T))):Ql(oPC(T))};
  522. Tay=function(T){return w_(T)?Ql(zS(T)):Ql(BG(T))};
  523. vPC=function(T){if(T==null)return T;var Q=typeof T;if(Q==="bigint")return String(C2(64,T));if(ZO(T)){if(Q==="string")return Sk(T);if(Q==="number")return zS(T)}};
  524. qk6=function(T){if(T==null)return T;var Q=typeof T;if(Q==="bigint")return String(LII(64,T));if(ZO(T)){if(Q==="string")return ZO(T),Q=d_(Number(T)),w_(Q)&&Q>=0?T=String(Q):(Q=T.indexOf("."),Q!==-1&&(T=T.substring(0,Q)),jTX(T)||(g_(T),T=L2(jk,ky))),T;if(Q==="number")return ZO(T),T=d_(T),T>=0&&w_(T)?T:loC(T)}};
  525. gPy=function(T){if(T==null||typeof T=="string"||T instanceof rJ)return T};
  526. MNJ=function(T){if(typeof T!=="string")throw Error();return T};
  527. Nr=function(T){if(T!=null&&typeof T!=="string")throw Error();return T};
  528. AP=function(T){return T==null||typeof T==="string"?T:void 0};
  529. bi=function(T,Q){if(!(T instanceof Q))throw Error("Expected instanceof "+EZC(Q)+" but got "+(T&&EZC(T.constructor)));return T};
  530. YkX=function(T,Q,k){if(T!=null&&T[r_]===cG)return T;if(Array.isArray(T)){var l=T[Hu]|0;k=l|k&32|k&2;k!==l&&Oo(T,k);return new Q(T)}};
  531. DO=function(T){return T};
  532. ui=function(T){var Q=Z1(ac);return Q?T[Q]:void 0};
  533. n2=function(){};
  534. K2=function(T,Q){for(var k in T)!isNaN(k)&&Q(T,+k,T[k])};
  535. Ung=function(T){var Q=new n2;K2(T,function(k,l,v){Q[l]=Mr(v)});
  536. Q.X1=T.X1;return Q};
  537. Zl5=function(T,Q){Q<100||K8(RCf,1)};
  538. Ov=function(T,Q,k,l){var v=l!==void 0;l=!!l;var L=Z1(ac),q;!v&&Pu&&L&&(q=T[L])&&K2(q,Zl5);L=[];var Y=T.length;q=4294967295;var U=!1,R=!!(Q&64),Z=R?Q&128?0:-1:void 0;if(!(Q&1)){var f=Y&&T[Y-1];f!=null&&typeof f==="object"&&f.constructor===Object?(Y--,q=Y):f=void 0;if(R&&!(Q&128)&&!v){U=!0;var G;q=((G=PG)!=null?G:DO)(q-Z,Z,T,f,void 0)+Z}}Q=void 0;for(G=0;G<Y;G++){var m=T[G];if(m!=null&&(m=k(m,l))!=null)if(R&&G>=q){var I=G-Z,z=void 0;((z=Q)!=null?z:Q={})[I]=m}else L[G]=m}if(f)for(var w in f)Y=f[w],Y!=
  539. null&&(Y=k(Y,l))!=null&&(G=+w,m=void 0,R&&!Number.isNaN(G)&&(m=G+Z)<q?L[m]=Y:(G=void 0,((G=Q)!=null?G:Q={})[w]=Y));Q&&(U?L.push(Q):L[q]=Q);v&&Z1(ac)&&(T=ui(T))&&T instanceof n2&&(L[ac]=Ung(T));return L};
  540. fo5=function(T){switch(typeof T){case "number":return Number.isFinite(T)?T:""+T;case "bigint":return p2(T)?Number(T):""+T;case "boolean":return T?1:0;case "object":if(Array.isArray(T)){var Q=T[Hu]|0;return T.length===0&&Q&1?void 0:Ov(T,Q,fo5)}if(T!=null&&T[r_]===cG)return WG(T);if(T instanceof rJ){Q=T.T;if(Q==null)T="";else if(typeof Q==="string")T=Q;else{if(cV6){for(var k="",l=0,v=Q.length-10240;l<v;)k+=String.fromCharCode.apply(null,Q.subarray(l,l+=10240));k+=String.fromCharCode.apply(null,l?Q.subarray(l):
  541. Q);Q=btoa(k)}else Q=g.dJ(Q);T=T.T=Q}return T}return}return T};
  542. $y=function(T,Q){if(Q){PG=Q==null||Q===DO||Q[GH5]!==mng?DO:Q;try{return WG(T)}finally{PG=void 0}}return WG(T)};
  543. WG=function(T){T=T.g5;return Ov(T,T[Hu]|0,fo5)};
  544. sT5=function(T){switch(typeof T){case "boolean":return Io5||(Io5=[0,void 0,!0]);case "number":return T>0?void 0:T===0?hCy||(hCy=[0,void 0]):[-T,void 0];case "string":return[0,T];case "object":return T}};
  545. ek=function(T,Q,k){return T=JP(T,Q[0],Q[1],k?1:2)};
  546. JP=function(T,Q,k,l){l=l===void 0?0:l;if(T==null){var v=32;k?(T=[k],v|=128):T=[];Q&&(v=v&-8380417|(Q&1023)<<13)}else{if(!Array.isArray(T))throw Error("narr");v=T[Hu]|0;if(Sk5&&1&v)throw Error("rfarr");2048&v&&!(2&v)&&CXg();if(v&256)throw Error("farr");if(v&64)return l!==0||v&2048||Oo(T,v|2048),T;if(k&&(v|=128,k!==T[0]))throw Error("mid");a:{k=T;v|=64;var L=k.length;if(L){var q=L-1,Y=k[q];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){Q=v&128?0:-1;q-=Q;if(q>=1024)throw Error("pvtlmt");for(var U in Y)L=
  547. +U,L<q&&(k[L+Q]=Y[U],delete Y[U]);v=v&-8380417|(q&1023)<<13;break a}}if(Q){U=Math.max(Q,L-(v&128?0:-1));if(U>1024)throw Error("spvt");v=v&-8380417|(U&1023)<<13}}}v|=64;l===0&&(v|=2048);Oo(T,v);return T};
  548. CXg=function(){if(Sk5)throw Error("carr");K8(BaJ,5)};
  549. zCt=function(T,Q){if(typeof T!=="object")return T;if(Array.isArray(T)){var k=T[Hu]|0;T.length===0&&k&1?T=void 0:k&2||(!Q||4096&k||16&k?T=FW(T,k,!1,Q&&!(k&16)):(tm(T,34),k&4&&Object.freeze(T)));return T}if(T!=null&&T[r_]===cG)return Q=T.g5,k=Q[Hu]|0,Jm(T,k)?T:Ev(T,Q,k)?yl(T,Q):FW(Q,k);if(T instanceof rJ)return T};
  550. yl=function(T,Q,k){T=new T.constructor(Q);k&&(T.T=Wu);T.S=Wu;return T};
  551. FW=function(T,Q,k,l){l!=null||(l=!!(34&Q));T=Ov(T,Q,zCt,l);l=32;k&&(l|=2);Q=Q&8380609|l;Oo(T,Q);return T};
  552. XXg=function(T){var Q=T.g5,k=Q[Hu]|0;return Jm(T,k)?Ev(T,Q,k)?yl(T,Q,!0):new T.constructor(FW(Q,k,!1)):T};
  553. ii=function(T){if(T.T!==Wu)return!1;var Q=T.g5;Q=FW(Q,Q[Hu]|0);tm(Q,2048);T.g5=Q;T.T=void 0;T.S=void 0;return!0};
  554. Vl=function(T){if(!ii(T)&&Jm(T,T.g5[Hu]|0))throw Error();};
  555. Td=function(T,Q){Q===void 0&&(Q=T[Hu]|0);Q&32&&!(Q&4096)&&Oo(T,Q|4096)};
  556. Ev=function(T,Q,k){return k&2?!0:k&32&&!(k&4096)?(Oo(Q,k|2),T.T=Wu,!0):!1};
  557. jQ=function(T,Q,k,l,v){Object.isExtensible(T);Q=QK(T.g5,Q,k,v);if(Q!==null||l&&T.S!==Wu)return Q};
  558. QK=function(T,Q,k,l){if(Q===-1)return null;var v=Q+(k?0:-1),L=T.length-1;if(!(L<1+(k?0:-1))){if(v>=L){var q=T[L];if(q!=null&&typeof q==="object"&&q.constructor===Object){k=q[Q];var Y=!0}else if(v===L)k=q;else return}else k=T[v];if(l&&k!=null){l=l(k);if(l==null)return l;if(!Object.is(l,k))return Y?q[Q]=l:T[v]=l,l}return k}};
  559. lq=function(T,Q,k,l){Vl(T);var v=T.g5;kM(v,v[Hu]|0,Q,k,l);return T};
  560. kM=function(T,Q,k,l,v){var L=k+(v?0:-1),q=T.length-1;if(q>=1+(v?0:-1)&&L>=q){var Y=T[q];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object)return Y[k]=l,Q}if(L<=q)return T[L]=l,Q;if(l!==void 0){var U;q=((U=Q)!=null?U:Q=T[Hu]|0)>>13&1023||536870912;k>=q?l!=null&&(L={},T[q+(v?0:-1)]=(L[k]=l,L)):T[L]=l}return Q};
  561. gL=function(T,Q,k,l,v){var L=T.g5,q=L[Hu]|0;l=Jm(T,q)?1:l;v=!!v||l===3;l===2&&ii(T)&&(L=T.g5,q=L[Hu]|0);T=o2(L,Q);var Y=T===vS?7:T[Hu]|0,U=Lg(Y,q);var R=4&U?!1:!0;if(R){4&U&&(T=Mr(T),Y=0,U=qs(U,q),q=kM(L,q,Q,T));for(var Z=0,f=0;Z<T.length;Z++){var G=k(T[Z]);G!=null&&(T[f++]=G)}f<Z&&(T.length=f);k=(U|4)&-513;U=k&=-1025;U&=-4097}U!==Y&&(Oo(T,U),2&U&&Object.freeze(T));return T=wXu(T,U,L,q,Q,l,R,v)};
  562. wXu=function(T,Q,k,l,v,L,q,Y){var U=Q;L===1||(L!==4?0:2&Q||!(16&Q)&&32&l)?Ms(Q)||(Q|=!T.length||q&&!(4096&Q)||32&l&&!(4096&Q||16&Q)?2:256,Q!==U&&Oo(T,Q),Object.freeze(T)):(L===2&&Ms(Q)&&(T=Mr(T),U=0,Q=qs(Q,l),l=kM(k,l,v,T)),Ms(Q)||(Y||(Q|=16),Q!==U&&Oo(T,Q)));2&Q||!(4096&Q||16&Q)||Td(k,l);return T};
  563. o2=function(T,Q,k){T=QK(T,Q,k);return Array.isArray(T)?T:vS};
  564. Lg=function(T,Q){2&Q&&(T|=2);return T|1};
  565. Ms=function(T){return!!(2&T)&&!!(4&T)||!!(256&T)};
  566. dnX=function(T){return tPf(T,!0)};
  567. YM=function(T,Q){T=jQ(T,Q,void 0,void 0,dnX);return T==null?D9():T};
  568. Na5=function(T,Q,k){Vl(T);var l=T.g5,v=l[Hu]|0;if(Q==null)return kM(l,v,3),T;if(!Array.isArray(Q))throw n8();var L=Q===vS?7:Q[Hu]|0,q=L,Y=Ms(L),U=Y||Object.isFrozen(Q);Y||(L=0);U||(Q=Mr(Q),q=0,L=qs(L,v),U=!1);L|=5;Y=4&L?512&L?512:1024&L?1024:0:void 0;Y=Y!=null?Y:0;for(var R=0;R<Q.length;R++){var Z=Q[R],f=k(Z,Y);Object.is(Z,f)||(U&&(Q=Mr(Q),q=0,L=qs(L,v),U=!1),Q[R]=f)}L!==q&&(U&&(Q=Mr(Q),L=qs(L,v)),Oo(Q,L));kM(l,v,3,Q);return T};
  569. U5=function(T,Q,k,l,v){Vl(T);var L=T.g5;kM(L,L[Hu]|0,Q,(l==="0"?Number(k)===0:k===l)?void 0:k,v);return T};
  570. R2=function(T,Q,k){if(Q&2)throw Error();var l=Eo(Q),v=o2(T,k,l),L=v===vS?7:v[Hu]|0,q=Lg(L,Q);if(2&q||Ms(q)||16&q)v=Mr(v),L=0,q=qs(q,Q),kM(T,Q,k,v,l);q&=-13;q!==L&&Oo(v,q);return v};
  571. mn=function(T,Q,k,l){Vl(T);var v=T.g5,L=v[Hu]|0;if(l==null){var q=Zf(v);if(fg(q,v,L,k)===Q)q.set(k,0);else return T}else L=Gd(v,L,k,Q);kM(v,L,Q,l);return T};
  572. I2=function(T,Q,k,l){var v=T[Hu]|0,L=Eo(v);v=Gd(T,v,k,Q,L);kM(T,v,Q,l,L)};
  573. hK=function(T,Q,k){T=T.g5;return fg(Zf(T),T,void 0,Q)===k?k:-1};
  574. Zf=function(T){if(Pu){var Q;return(Q=T[s5])!=null?Q:T[s5]=new Map}if(s5 in T)return T[s5];Q=new Map;Object.defineProperty(T,s5,{value:Q});return Q};
  575. Gd=function(T,Q,k,l,v){l===0||k.includes(l);var L=Zf(T),q=fg(L,T,Q,k,v);q!==l&&(q&&(Q=kM(T,Q,q,void 0,v)),L.set(k,l));return Q};
  576. fg=function(T,Q,k,l,v){var L=T.get(l);if(L!=null)return L;for(var q=L=0;q<l.length;q++){var Y=l[q];QK(Q,Y,v)!=null&&(L!==0&&(k=kM(Q,k,L,void 0,v)),L=Y)}T.set(l,L);return L};
  577. SQ=function(T,Q,k){var l=T[Hu]|0,v=Eo(l),L=QK(T,k,v);if(L!=null&&L[r_]===cG){if(!Jm(L))return ii(L),L.g5;var q=L.g5}else Array.isArray(L)&&(q=L);if(q){var Y=q[Hu]|0;Y&2&&(q=FW(q,Y))}q=ek(q,Q,!0);q!==L&&kM(T,l,k,q,v);return q};
  578. Ai6=function(T,Q,k,l,v){var L=!1;l=QK(T,l,v,function(q){var Y=YkX(q,k,Q);L=Y!==q&&Y!=null;return Y});
  579. if(l!=null)return L&&!Jm(l)&&Td(T,Q),l};
  580. Cg=function(T,Q,k,l){var v=T.g5,L=v[Hu]|0;Q=Ai6(v,L,Q,k,l);if(Q==null)return Q;L=v[Hu]|0;if(!Jm(T,L)){var q=XXg(Q);q!==Q&&(ii(T)&&(v=T.g5,L=v[Hu]|0),Q=q,L=kM(v,L,k,Q,l),Td(v,L))}return Q};
  581. blT=function(T,Q,k,l,v,L,q,Y){var U=Jm(T,k);L=U?1:L;q=!!q||L===3;U=Y&&!U;(L===2||U)&&ii(T)&&(Q=T.g5,k=Q[Hu]|0);T=o2(Q,v);var R=T===vS?7:T[Hu]|0,Z=Lg(R,k);if(Y=!(4&Z)){var f=T,G=k,m=!!(2&Z);m&&(G|=2);for(var I=!m,z=!0,w=0,r=0;w<f.length;w++){var A=YkX(f[w],l,G);if(A instanceof l){if(!m){var D=Jm(A);I&&(I=!D);z&&(z=D)}f[r++]=A}}r<w&&(f.length=r);Z|=4;Z=z?Z&-4097:Z|4096;Z=I?Z|8:Z&-9}Z!==R&&(Oo(T,Z),2&Z&&Object.freeze(T));if(U&&!(8&Z||!T.length&&(L===1||(L!==4?0:2&Z||!(16&Z)&&32&k)))){Ms(Z)&&(T=Mr(T),
  582. Z=qs(Z,k),k=kM(Q,k,v,T));l=T;U=Z;for(R=0;R<l.length;R++)f=l[R],Z=XXg(f),f!==Z&&(l[R]=Z);U|=8;Z=U=l.length?U|4096:U&-4097;Oo(T,Z)}return T=wXu(T,Z,Q,k,v,L,Y,q)};
  583. dL=function(T,Q,k){var l=T.g5;return blT(T,l,l[Hu]|0,Q,k,void 0===ri5?2:4,!1,!0)};
  584. cif=function(T,Q){T!=null?bi(T,Q):T=void 0;return T};
  585. Ns=function(T,Q,k,l,v){l=cif(l,Q);lq(T,k,l,v);l&&!Jm(l)&&Td(T.g5);return T};
  586. Dnu=function(T,Q,k,l,v){v=cif(v,Q);mn(T,k,l,v);v&&!Jm(v)&&Td(T.g5);return T};
  587. AK=function(T,Q,k,l){Vl(T);var v=T.g5,L=v[Hu]|0;if(l==null)return kM(v,L,k),T;if(!Array.isArray(l))throw n8();for(var q=l===vS?7:l[Hu]|0,Y=q,U=Ms(q),R=U||Object.isFrozen(l),Z=!0,f=!0,G=0;G<l.length;G++){var m=l[G];bi(m,Q);U||(m=Jm(m),Z&&(Z=!m),f&&(f=m))}U||(q=Z?13:5,q=f?q&-4097:q|4096);R&&q===Y||(l=Mr(l),Y=0,q=qs(q,L));q!==Y&&Oo(l,q);L=kM(v,L,k,l);2&q||!(4096&q||16&q)||Td(v,L);return T};
  588. qs=function(T,Q){return T=(2&Q?T|2:T&-3)&-273};
  589. bq=function(T,Q,k,l){var v=l;Vl(T);l=T.g5;T=blT(T,l,l[Hu]|0,k,Q,2,!0);v=v!=null?bi(v,k):new k;T.push(v);Q=k=T===vS?7:T[Hu]|0;(v=Jm(v))?(k&=-9,T.length===1&&(k&=-4097)):k|=4096;k!==Q&&Oo(T,k);v||Td(l)};
  590. rL=function(T,Q,k){k=k===void 0?0:k;T=GS(jQ(T,Q));return T!=null?T:k};
  591. cS=function(T,Q){var k=k===void 0?0:k;var l;return(l=mY(jQ(T,Q)))!=null?l:k};
  592. usX=function(T,Q,k){k=k===void 0?aof:k;T=jQ(T,Q);Q=typeof T;T=T==null?T:Q==="bigint"?Ql(C2(64,T)):ZO(T)?Q==="string"?VPf(T):Tay(T):void 0;return T!=null?T:k};
  593. Df=function(T,Q,k,l){k=k===void 0?"":k;var v;return(v=AP(jQ(T,Q,l)))!=null?v:k};
  594. a2=function(T,Q){var k=k===void 0?0:k;T=jQ(T,Q);T=T==null?T:Rc(T)?T|0:void 0;return T!=null?T:k};
  595. ng=function(T,Q){return AP(jQ(T,Q,void 0,uq))};
  596. Kg=function(T,Q,k){return lq(T,Q,XW(k))};
  597. xM=function(T,Q,k){return lq(T,Q,Nr(k))};
  598. PS=function(T,Q,k,l){return U5(T,Q,Nr(k),"",l)};
  599. HS=function(T,Q,k){if(k!=null){if(!Rc(k))throw n8("enum");k|=0}return lq(T,Q,k)};
  600. nPf=function(T,Q){return Error("Invalid wire type: "+T+" (at position "+Q+")")};
  601. tK=function(){return Error("Failed to read varint, encoding is invalid.")};
  602. KIH=function(T,Q){return Error("Tried to read past the end of the data "+Q+" > "+T)};
  603. O5=function(T,Q,k){this.buffer=T;if(k&&!Q)throw Error();this.T=Q};
  604. pg=function(T,Q){if(typeof T==="string")return new O5(aW6(T),Q);if(Array.isArray(T))return new O5(new Uint8Array(T),Q);if(T.constructor===Uint8Array)return new O5(T,!1);if(T.constructor===ArrayBuffer)return T=new Uint8Array(T),new O5(T,!1);if(T.constructor===rJ)return Q=aQ(T)||new Uint8Array(0),new O5(Q,!0,T);if(T instanceof Uint8Array)return T=T.constructor===Uint8Array?T:new Uint8Array(T.buffer,T.byteOffset,T.byteLength),new O5(T,!1);throw Error();};
  605. WS=function(T,Q,k,l){this.S=null;this.N=!1;this.T=this.L=this.Y=0;this.init(T,Q,k,l)};
  606. JK=function(T){var Q=0,k=0,l=0,v=T.S,L=T.T;do{var q=v[L++];Q|=(q&127)<<l;l+=7}while(l<32&&q&128);l>32&&(k|=(q&127)>>4);for(l=3;l<32&&q&128;l+=7)q=v[L++],k|=(q&127)<<l;$M(T,L);if(q<128)return JVt(Q>>>0,k>>>0);throw tK();};
  607. $M=function(T,Q){T.T=Q;if(Q>T.L)throw KIH(T.L,Q);};
  608. eQ=function(T){var Q=T.S,k=T.T,l=Q[k++],v=l&127;if(l&128&&(l=Q[k++],v|=(l&127)<<7,l&128&&(l=Q[k++],v|=(l&127)<<14,l&128&&(l=Q[k++],v|=(l&127)<<21,l&128&&(l=Q[k++],v|=l<<28,l&128&&Q[k++]&128&&Q[k++]&128&&Q[k++]&128&&Q[k++]&128&&Q[k++]&128)))))throw tK();$M(T,k);return v};
  609. FV=function(T){var Q=T.S,k=T.T,l=Q[k+0],v=Q[k+1],L=Q[k+2];Q=Q[k+3];$M(T,T.T+4);return(l<<0|v<<8|L<<16|Q<<24)>>>0};
  610. E5=function(T){var Q=FV(T);T=FV(T);return qr(Q,T)};
  611. yK=function(T){var Q=FV(T),k=FV(T);T=(k>>31)*2+1;var l=k>>>20&2047;Q=4294967296*(k&1048575)+Q;return l==2047?Q?NaN:T*Infinity:l==0?T*4.9E-324*Q:T*Math.pow(2,l-1075)*(Q+4503599627370496)};
  612. iq=function(T){for(var Q=0,k=T.T,l=k+10,v=T.S;k<l;){var L=v[k++];Q|=L;if((L&128)===0)return $M(T,k),!!(Q&127)}throw tK();};
  613. xnC=function(T,Q){if(Q<0)throw Error("Tried to read a negative byte length: "+Q);var k=T.T,l=k+Q;if(l>T.L)throw KIH(Q,T.L-k);T.T=l;return k};
  614. HlI=function(T,Q){if(Q==0)return D9();var k=xnC(T,Q);T.AT&&T.N?k=T.S.subarray(k,k+Q):(T=T.S,Q=k+Q,k=k===Q?new Uint8Array(0):PXt?T.slice(k,Q):new Uint8Array(T.subarray(k,Q)));return k.length==0?D9():new rJ(k,cu)};
  615. TR=function(T,Q,k,l){if(VK.length){var v=VK.pop();v.init(T,Q,k,l);T=v}else T=new WS(T,Q,k,l);this.T=T;this.L=this.T.T;this.S=this.Y=-1;tNC(this,l)};
  616. tNC=function(T,Q){Q=Q===void 0?{}:Q;T.yC=Q.yC===void 0?!1:Q.yC};
  617. Olu=function(T,Q,k,l){if(Q$.length){var v=Q$.pop();tNC(v,l);v.T.init(T,Q,k,l);return v}return new TR(T,Q,k,l)};
  618. pX6=function(T){var Q=T.T;if(Q.T==Q.L)return!1;T.L=T.T.T;var k=eQ(T.T)>>>0;Q=k>>>3;k&=7;if(!(k>=0&&k<=5))throw nPf(k,T.L);if(Q<1)throw Error("Invalid field number: "+Q+" (at position "+T.L+")");T.Y=Q;T.S=k;return!0};
  619. YA=function(T){switch(T.S){case 0:T.S!=0?YA(T):iq(T.T);break;case 1:T=T.T;$M(T,T.T+8);break;case 2:if(T.S!=2)YA(T);else{var Q=eQ(T.T)>>>0;T=T.T;$M(T,T.T+Q)}break;case 5:T=T.T;$M(T,T.T+4);break;case 3:Q=T.Y;do{if(!pX6(T))throw Error("Unmatched start-group tag: stream EOF");if(T.S==4){if(T.Y!=Q)throw Error("Unmatched end-group tag");break}YA(T)}while(1);break;default:throw nPf(T.S,T.L);}};
  620. U6=function(T,Q,k){var l=T.T.L,v=eQ(T.T)>>>0,L=T.T.T+v,q=L-l;q<=0&&(T.T.L=L,k(Q,T,void 0,void 0,void 0),q=L-T.T.T);if(q)throw Error("Message parsing ended unexpectedly. Expected to read "+(v+" bytes, instead read "+(v-q)+" bytes, either the data ended unexpectedly or the message misreported its own length"));T.T.T=L;T.T.L=l};
  621. f3=function(T){var Q=eQ(T.T)>>>0;T=T.T;var k=xnC(T,Q);T=T.S;if(WIu){var l=T,v;(v=Ry)||(v=Ry=new TextDecoder("utf-8",{fatal:!0}));Q=k+Q;l=k===0&&Q===l.length?l:l.subarray(k,Q);try{var L=v.decode(l)}catch(R){if(ZU===void 0){try{v.decode(new Uint8Array([128]))}catch(Z){}try{v.decode(new Uint8Array([97])),ZU=!0}catch(Z){ZU=!1}}!ZU&&(Ry=void 0);throw R;}}else{L=k;Q=L+Q;k=[];for(var q=null,Y,U;L<Q;)Y=T[L++],Y<128?k.push(Y):Y<224?L>=Q?zo():(U=T[L++],Y<194||(U&192)!==128?(L--,zo()):k.push((Y&31)<<6|U&63)):
  622. Y<240?L>=Q-1?zo():(U=T[L++],(U&192)!==128||Y===224&&U<160||Y===237&&U>=160||((v=T[L++])&192)!==128?(L--,zo()):k.push((Y&15)<<12|(U&63)<<6|v&63)):Y<=244?L>=Q-2?zo():(U=T[L++],(U&192)!==128||(Y<<28)+(U-144)>>30!==0||((v=T[L++])&192)!==128||((l=T[L++])&192)!==128?(L--,zo()):(Y=(Y&7)<<18|(U&63)<<12|(v&63)<<6|l&63,Y-=65536,k.push((Y>>10&1023)+55296,(Y&1023)+56320))):zo(),k.length>=8192&&(q=IWH(q,k),k.length=0);L=IWH(q,k)}return L};
  623. $n5=function(T){var Q=eQ(T.T)>>>0;return HlI(T.T,Q)};
  624. GR=function(T,Q){this.S=T>>>0;this.T=Q>>>0};
  625. eCf=function(T){if(!T)return JiT||(JiT=new GR(0,0));if(!/^\d+$/.test(T))return null;g_(T);return new GR(jk,ky)};
  626. ms=function(T,Q){this.S=T>>>0;this.T=Q>>>0};
  627. EPI=function(T){if(!T)return FIH||(FIH=new ms(0,0));if(!/^-?\d+$/.test(T))return null;g_(T);return new ms(jk,ky)};
  628. Iy=function(){this.T=[]};
  629. h7=function(T,Q,k){for(;k>0||Q>127;)T.T.push(Q&127|128),Q=(Q>>>7|k<<25)>>>0,k>>>=7;T.T.push(Q)};
  630. s6=function(T,Q){for(;Q>127;)T.T.push(Q&127|128),Q>>>=7;T.T.push(Q)};
  631. yi5=function(T,Q){if(Q>=0)s6(T,Q);else{for(var k=0;k<9;k++)T.T.push(Q&127|128),Q>>=7;T.T.push(1)}};
  632. SY=function(T,Q){T.T.push(Q>>>0&255);T.T.push(Q>>>8&255);T.T.push(Q>>>16&255);T.T.push(Q>>>24&255)};
  633. il5=function(){this.L=[];this.S=0;this.T=new Iy};
  634. C3=function(T,Q){Q.length!==0&&(T.L.push(Q),T.S+=Q.length)};
  635. VNT=function(T,Q){BW(T,Q,2);Q=T.T.end();C3(T,Q);Q.push(T.S);return Q};
  636. TKt=function(T,Q){var k=Q.pop();for(k=T.S+T.T.length()-k;k>127;)Q.push(k&127|128),k>>>=7,T.S++;Q.push(k);T.S++};
  637. BW=function(T,Q,k){s6(T.T,Q*8+k)};
  638. QOy=function(T,Q,k){if(k!=null){switch(typeof k){case "string":eCf(k)}BW(T,Q,1);switch(typeof k){case "number":T=T.T;li(k);SY(T,jk);SY(T,ky);break;case "bigint":k=BigInt.asUintN(64,k);k=new GR(Number(k&BigInt(4294967295)),Number(k>>BigInt(32)));T=T.T;Q=k.T;SY(T,k.S);SY(T,Q);break;default:k=eCf(k),T=T.T,Q=k.T,SY(T,k.S),SY(T,Q)}}};
  639. zR=function(T,Q,k){BW(T,Q,2);s6(T.T,k.length);C3(T,T.T.end());C3(T,k)};
  640. Xb=function(){function T(){throw Error();}
  641. Object.setPrototypeOf(T,T.prototype);return T};
  642. wg=function(T,Q,k){this.g5=JP(T,Q,k)};
  643. jO5=function(T,Q){if(Q==null||Q=="")return new T;Q=JSON.parse(Q);if(!Array.isArray(Q))throw Error("dnarr");tm(Q,32);return new T(Q)};
  644. NW=function(T,Q,k){this.O7=T;this.vr=Q;T=Z1(dg);this.T=!!T&&k===T||!1};
  645. A7=function(T,Q){var k=k===void 0?dg:k;return new NW(T,Q,k)};
  646. lMf=function(T,Q,k,l,v){Q=k8J(Q,l);Q!=null&&(k=VNT(T,k),v(Q,T),TKt(T,k))};
  647. cW=function(T,Q,k,l){var v=l[T];if(v)return v;v={};v.DE=l;v.r$=sT5(l[0]);var L=l[1],q=1;L&&L.constructor===Object&&(v.extensions=L,L=l[++q],typeof L==="function"&&(v.eB=!0,bV!=null||(bV=L),rg!=null||(rg=l[q+1]),L=l[q+=2]));for(var Y={};L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var U=0;U<L.length;U++)Y[L[U]]=L;L=l[++q]}for(U=1;L!==void 0;){typeof L==="number"&&(U+=L,L=l[++q]);var R=void 0;if(L instanceof NW)var Z=L;else Z=o1C,q--;L=void 0;if((L=Z)==null?0:L.T){L=l[++q];R=
  648. l;var f=q;typeof L==="function"&&(L=L(),R[f]=L);R=L}L=l[++q];f=U+1;typeof L==="number"&&L<0&&(f-=L,L=l[++q]);for(;U<f;U++){var G=Y[U];R?k(v,U,Z,R,G):Q(v,U,Z,G)}}return l[T]=v};
  649. Lmu=function(T){return Array.isArray(T)?T[0]instanceof NW?T:[v1X,T]:[T,void 0]};
  650. k8J=function(T,Q){if(T instanceof wg)return T.g5;if(Array.isArray(T))return ek(T,Q,!1)};
  651. DU=function(T,Q,k,l){var v=k.O7;T[Q]=l?function(L,q,Y){return v(L,q,Y,l)}:v};
  652. uV=function(T,Q,k,l,v){var L=k.O7,q,Y;T[Q]=function(U,R,Z){return L(U,R,Z,Y||(Y=cW(ay,DU,uV,l).r$),q||(q=xA(l)),v)}};
  653. xA=function(T){var Q=T[p3];if(Q!=null)return Q;var k=cW(ay,DU,uV,T);Q=k.eB?function(l,v){return bV(l,v,k)}:function(l,v){for(;pX6(v)&&v.S!=4;){var L=v.Y,q=k[L];
  654. if(q==null){var Y=k.extensions;Y&&(Y=Y[L])&&(Y=q$b(Y),Y!=null&&(q=k[L]=Y))}if(q==null||!q(v,l,L)){Y=v;q=Y.L;YA(Y);if(Y.yC)var U=void 0;else{var R=Y.T.T-q;Y.T.T=q;U=HlI(Y.T,R)}R=Y=q=void 0;var Z=l;U&&((q=(Y=(R=Z[ac])!=null?R:Z[ac]=new n2)[L])!=null?q:Y[L]=[]).push(U)}}if(l=ui(l))l.X1=k.DE[g1H];return!0};
  655. T[p3]=Q;T[g1H]=MOJ.bind(T);return Q};
  656. MOJ=function(T,Q,k,l){var v=this[ay],L=this[p3],q=ek(void 0,v.r$,!1),Y=ui(T);if(Y){var U=!1,R=v.extensions;if(R){v=function(I,z,w){if(w.length!==0)if(R[z])for(I=g.B(w),z=I.next();!z.done;z=I.next()){z=Olu(z.value);try{U=!0,L(q,z)}finally{z.free()}}else l==null||l(T,z,w)};
  657. if(Q==null)K2(Y,v);else if(Y!=null){var Z=Y[Q];Z&&v(Y,Q,Z)}if(U){var f=T[Hu]|0;if(f&2&&f&2048&&(k==null||!k.ULm))throw Error();var G=Eo(f),m=function(I,z){if(QK(T,I,G)!=null)switch(k==null?void 0:k.KPK){case 1:return;default:throw Error();}z!=null&&(f=kM(T,f,I,z,G));delete Y[I]};
  658. Q==null?OJb(q,q[Hu]|0,function(I,z){m(I,z)}):m(Q,QK(q,Q,G))}}}};
  659. q$b=function(T){T=Lmu(T);var Q=T[0].O7;if(T=T[1]){var k=xA(T),l=cW(ay,DU,uV,T).r$;return function(v,L,q){return Q(v,L,q,l,k)}}return Q};
  660. WW=function(T,Q,k){T[Q]=k.vr};
  661. J7=function(T,Q,k,l){var v,L,q=k.vr;T[Q]=function(Y,U,R){return q(Y,U,R,L||(L=cW($A,WW,J7,l).r$),v||(v=Y$I(l)))}};
  662. Y$I=function(T){var Q=T[UXT];if(!Q){var k=cW($A,WW,J7,T);Q=function(l,v){return R7f(l,v,k)};
  663. T[UXT]=Q}return Q};
  664. R7f=function(T,Q,k){OJb(T,T[Hu]|0,function(l,v){if(v!=null){var L=ZOH(k,l);L?L(Q,v,l):l<500||K8(fMH,3)}});
  665. (T=ui(T))&&K2(T,function(l,v,L){C3(Q,Q.T.end());for(l=0;l<L.length;l++)C3(Q,aQ(L[l])||new Uint8Array(0))})};
  666. ZOH=function(T,Q){var k=T[Q];if(k)return k;if(k=T.extensions)if(k=k[Q]){k=Lmu(k);var l=k[0].vr;if(k=k[1]){var v=Y$I(k),L=cW($A,WW,J7,k).r$;k=T.eB?rg(L,v):function(q,Y,U){return l(q,Y,U,L,v)}}else k=l;
  667. return T[Q]=k}};
  668. Fb=function(T,Q,k){if(Array.isArray(Q)){var l=Q[Hu]|0;if(l&4)return Q;for(var v=0,L=0;v<Q.length;v++){var q=T(Q[v]);q!=null&&(Q[L++]=q)}L<v&&(Q.length=L);k&&(Oo(Q,(l|5)&-1537),l&2&&Object.freeze(Q));return Q}};
  669. E6=function(T,Q,k){return new NW(T,Q,k)};
  670. y$=function(T,Q,k){return new NW(T,Q,k)};
  671. iV=function(T,Q,k){kM(T,T[Hu]|0,Q,k,Eo(T[Hu]|0))};
  672. V$=function(T,Q,k){Q=Q==null||typeof Q==="number"?Q:Q==="NaN"||Q==="Infinity"||Q==="-Infinity"?Number(Q):void 0;Q!=null&&(BW(T,k,1),T=T.T,k=G8g||(G8g=new DataView(new ArrayBuffer(8))),k.setFloat64(0,+Q,!0),jk=k.getUint32(0,!0),ky=k.getUint32(4,!0),SY(T,jk),SY(T,ky))};
  673. Tg=function(T,Q,k){Q=vPC(Q);if(Q!=null){switch(typeof Q){case "string":EPI(Q)}if(Q!=null)switch(BW(T,k,0),typeof Q){case "number":T=T.T;vG(Q);h7(T,jk,ky);break;case "bigint":k=BigInt.asUintN(64,Q);k=new ms(Number(k&BigInt(4294967295)),Number(k>>BigInt(32)));h7(T.T,k.S,k.T);break;default:k=EPI(Q),h7(T.T,k.S,k.T)}}};
  674. QY=function(T,Q,k){Q=GS(Q);Q!=null&&Q!=null&&(BW(T,k,0),yi5(T.T,Q))};
  675. mX5=function(T,Q,k){Q=Q==null||typeof Q==="boolean"?Q:typeof Q==="number"?!!Q:void 0;Q!=null&&(BW(T,k,0),T.T.T.push(Q?1:0))};
  676. IMb=function(T,Q,k){Q=AP(Q);Q!=null&&zR(T,k,CBX(Q))};
  677. h7b=function(T,Q,k,l,v){Q=k8J(Q,l);Q!=null&&(k=VNT(T,k),v(Q,T),TKt(T,k))};
  678. S$g=function(){var T=jl;this.T=sOu;this.isRepeated=0;this.S=Cg;this.defaultValue=void 0;this.L=T.messageId!=null?F1:void 0};
  679. C56=function(T,Q){return function(k,l){var v={s7:!0};l&&Object.assign(v,l);k=Olu(k,void 0,void 0,v);try{var L=new T,q=L.g5;xA(Q)(q,k);var Y=L}finally{k.free()}return Y}};
  680. BKI=function(T){return function(){var Q=new il5;R7f(this.g5,Q,cW($A,WW,J7,T));C3(Q,Q.T.end());for(var k=new Uint8Array(Q.S),l=Q.L,v=l.length,L=0,q=0;q<v;q++){var Y=l[q];k.set(Y,L);L+=Y.length}Q.L=[k];return k}};
  681. k4=function(T){return function(Q){return jO5(T,Q)}};
  682. lL=function(T){this.g5=JP(T)};
  683. z7f=function(T){this.L=T;this.T=-1;this.S=this.Y=0};
  684. oq=function(T,Q){return function(){var k=g.HT.apply(0,arguments);if(T.T>-1)return Q.apply(null,g.ZH(k));try{return T.T=T.L.T.now(),Q.apply(null,g.ZH(k))}finally{T.Y+=T.L.T.now()-T.T,T.T=-1,T.S+=1}}};
  685. X26=function(T,Q){this.S=T;this.L=Q;this.T=new z7f(T)};
  686. w2b=function(){this.T={}};
  687. NKy=function(){var T=vf().flags,Q=dXu;T=T.T[Q.key];if(Q.valueType==="proto"){try{var k=JSON.parse(T);if(Array.isArray(k))return k}catch(l){}return Q.defaultValue}return typeof T===typeof Q.defaultValue?T:Q.defaultValue};
  688. cZX=function(){this.L=void 0;this.S=this.B=0;this.N=-1;this.sH=new Bg;zs(this.sH,"mv",AZT).T=!0;zs(this.sH,"omid",NM);zs(this.sH,"epoh",NM).T=!0;zs(this.sH,"epph",NM).T=!0;zs(this.sH,"umt",NM).T=!0;zs(this.sH,"phel",NM).T=!0;zs(this.sH,"phell",NM).T=!0;zs(this.sH,"oseid",bOI).T=!0;var T=this.sH;T.T.sloi||(T.T.sloi=new SP);T.T.sloi.T=!0;zs(this.sH,"mm",LI);zs(this.sH,"ovms",rZg).T=!0;zs(this.sH,"xdi",NM).T=!0;zs(this.sH,"amp",NM).T=!0;zs(this.sH,"prf",NM).T=!0;zs(this.sH,"gtx",NM).T=!0;zs(this.sH,
  689. "mvp_lv",NM).T=!0;zs(this.sH,"ssmol",NM).T=!0;zs(this.sH,"fmd",NM).T=!0;zs(this.sH,"gen204simple",NM);this.T=new X26(Bu(),this.sH);this.Y=!1;this.flags=new w2b};
  690. vf=function(){return SC(cZX)};
  691. DXb=function(T,Q,k,l){if(Math.random()<(l||T.T))try{if(k instanceof Z9)var v=k;else v=new Z9,Uo(k,function(q,Y){var U=v,R=U.Y++;q=f8(Y,q);U.T.push(R);U.S[R]=q});
  692. var L=v.IK(T.S,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Q+"&");L&&(Bu(),ZJJ(L))}catch(q){}};
  693. aMf=function(T,Q,k){k=k===void 0?{}:k;this.error=T;this.meta=k;this.context=Q.context;this.msg=Q.message||"";this.id=Q.id||"jserror"};
  694. u3y=function(){var T=T===void 0?g.VC:T;return(T=T.performance)&&T.now&&T.timing?Math.floor(T.now()+T.timing.navigationStart):g.R_()};
  695. n1T=function(){var T=T===void 0?g.VC:T;return(T=T.performance)&&T.now?T.now():null};
  696. KmH=function(T,Q,k){this.label=T;this.type=Q;this.value=k;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
  697. gy=function(){var T=window;this.events=[];this.S=T||g.VC;var Q=null;T&&(T.google_js_reporting_queue=T.google_js_reporting_queue||[],this.events=T.google_js_reporting_queue,Q=T.google_measure_js_timing);this.T=qT()||(Q!=null?Q:Math.random()<1)};
  698. xXI=function(T){T&&MT&&qT()&&(MT.clearMarks("goog_"+T.label+"_"+T.uniqueId+"_start"),MT.clearMarks("goog_"+T.label+"_"+T.uniqueId+"_end"))};
  699. Y4=function(T,Q,k,l,v,L,q){var Y="";T&&(Y+=T+":");k&&(Y+="//",Q&&(Y+=Q+"@"),Y+=k,l&&(Y+=":"+l));v&&(Y+=v);L&&(Y+="?"+L);q&&(Y+="#"+q);return Y};
  700. g.UD=function(T){return T.match(P5y)};
  701. HO6=function(T){return T?decodeURI(T):T};
  702. g.Rq=function(T){return HO6(g.UD(T)[3]||null)};
  703. Zz=function(T){return HO6(g.UD(T)[5]||null)};
  704. g.tOT=function(T){T=g.UD(T);return Y4(T[1],T[2],T[3],T[4])};
  705. fI=function(T){T=g.UD(T);return Y4(null,null,null,null,T[5],T[6],T[7])};
  706. OO5=function(T){var Q=T.indexOf("#");return Q<0?T:T.slice(0,Q)};
  707. Gg=function(T,Q){if(T){T=T.split("&");for(var k=0;k<T.length;k++){var l=T[k].indexOf("="),v=null;if(l>=0){var L=T[k].substring(0,l);v=T[k].substring(l+1)}else L=T[k];Q(L,v?bX(v):"")}}};
  708. mC=function(T,Q){if(!Q)return T;var k=T.indexOf("#");k<0&&(k=T.length);var l=T.indexOf("?");if(l<0||l>k){l=k;var v=""}else v=T.substring(l+1,k);T=[T.slice(0,l),v,T.slice(k)];k=T[1];T[1]=Q?k?k+"&"+Q:Q:k;return T[0]+(T[1]?"?"+T[1]:"")+T[2]};
  709. Iq=function(T,Q,k){if(Array.isArray(Q))for(var l=0;l<Q.length;l++)Iq(T,String(Q[l]),k);else Q!=null&&k.push(T+(Q===""?"":"="+g.Nn(Q)))};
  710. p2C=function(T,Q){var k=[];for(Q=Q||0;Q<T.length;Q+=2)Iq(T[Q],T[Q+1],k);return k.join("&")};
  711. g.h3=function(T){var Q=[],k;for(k in T)Iq(k,T[k],Q);return Q.join("&")};
  712. WmX=function(T,Q){var k=arguments.length==2?p2C(arguments[1],0):p2C(arguments,1);return mC(T,k)};
  713. g.sD=function(T,Q){Q=g.h3(Q);return mC(T,Q)};
  714. CI=function(T,Q,k){k=k!=null?"="+g.Nn(k):"";return mC(T,Q+k)};
  715. Bf=function(T,Q,k,l){for(var v=k.length;(Q=T.indexOf(k,Q))>=0&&Q<l;){var L=T.charCodeAt(Q-1);if(L==38||L==63)if(L=T.charCodeAt(Q+v),!L||L==61||L==38||L==35)return Q;Q+=v+1}return-1};
  716. X6=function(T,Q){var k=T.search(zg),l=Bf(T,0,Q,k);if(l<0)return null;var v=T.indexOf("&",l);if(v<0||v>k)v=k;l+=Q.length+1;return bX(T.slice(l,v!==-1?v:0))};
  717. wy=function(T,Q){for(var k=T.search(zg),l=0,v,L=[];(v=Bf(T,l,Q,k))>=0;)L.push(T.substring(l,v)),l=Math.min(T.indexOf("&",v)+1||k,k);L.push(T.slice(l));return L.join("").replace($XH,"$1")};
  718. JZ6=function(T,Q,k){return CI(wy(T,Q),Q,k)};
  719. e75=function(){var T=dy;this.T=NT;this.Gf="jserror";this.qf=!0;this.OJ=null;this.S=this.RX;this.D8=T===void 0?null:T};
  720. FmX=function(T,Q,k){var l=A3;return oq(vf().T.T,function(){try{if(l.D8&&l.D8.T){var v=l.D8.start(T.toString(),3);var L=Q();l.D8.end(v)}else L=Q()}catch(Y){var q=l.qf;try{xXI(v),q=l.S(T,new bL(ry(Y)),void 0,k)}catch(U){l.RX(217,U)}if(!q)throw Y;}return L})()};
  721. cf=function(T,Q,k,l){return oq(vf().T.T,function(){var v=g.HT.apply(0,arguments);return FmX(T,function(){return Q.apply(k,v)},l)})};
  722. ry=function(T){var Q=T.toString();T.name&&Q.indexOf(T.name)==-1&&(Q+=": "+T.name);T.message&&Q.indexOf(T.message)==-1&&(Q+=": "+T.message);if(T.stack)a:{T=T.stack;var k=Q;try{T.indexOf(k)==-1&&(T=k+"\n"+T);for(var l;T!=l;)l=T,T=T.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");Q=T.replace(/\n */g,"\n");break a}catch(v){Q=k;break a}Q=void 0}return Q};
  723. bL=function(T){aMf.call(this,Error(T),{message:T})};
  724. E1C=function(){rK&&typeof rK.google_measure_js_timing!="undefined"&&(rK.google_measure_js_timing||dy.disable())};
  725. yZg=function(T){A3.OJ=function(Q){g.EA(T,function(k){k(Q)})}};
  726. iOH=function(T,Q){return FmX(T,Q)};
  727. Dz=function(T,Q){return cf(T,Q)};
  728. aq=function(T,Q,k,l){A3.RX(T,Q,k,l)};
  729. uL=function(){return Date.now()-VO6};
  730. TJ5=function(){var T=vf().L,Q=nI>=0?uL()-nI:-1,k=KI?uL()-x4:-1,l=Pf>=0?uL()-Pf:-1;if(T==947190542)return 100;if(T==79463069)return 200;T=[2E3,4E3];var v=[250,500,1E3];aq(637,Error(),.001);var L=Q;k!=-1&&k<Q&&(L=k);for(Q=0;Q<T.length;++Q)if(L<T[Q]){var q=v[Q];break}q===void 0&&(q=v[T.length]);return l!=-1&&l>1500&&l<4E3?500:q};
  731. Hf=function(T,Q,k){var l=new KO(0,0,0,0);this.time=T;this.volume=null;this.L=Q;this.T=l;this.S=k};
  732. t3=function(T,Q,k,l,v,L,q,Y){this.Y=T;this.C=Q;this.L=k;this.B=l;this.T=v;this.N=L;this.S=q;this.j=Y};
  733. jQ5=function(T){var Q=T!==T.top,k=T.top===lW5(T),l=-1,v=0;if(Q&&k&&T.top.mraid){l=3;var L=T.top.mraid}else l=(L=T.mraid)?Q?k?2:1:0:-1;L&&(L.IS_GMA_SDK||(v=2),c5T(QQ5,function(q){return typeof L[q]==="function"})||(v=1));
  734. return{So:L,compatibility:v,zo6:l}};
  735. ko6=function(){var T=window.document;return T&&typeof T.elementFromPoint==="function"};
  736. l9J=function(T,Q,k){if(T&&Q!==null&&Q!=Q.top){if(!Q.top)return new g.Ji(-12245933,-12245933);Q=Q.top}try{return(k===void 0?0:k)?(new g.Ji(Q.innerWidth,Q.innerHeight)).round():Dp5(Q||window).round()}catch(l){return new g.Ji(-12245933,-12245933)}};
  737. OD=function(T,Q,k){try{if(T){if(!Q.top)return new KO(-12245933,-12245933,-12245933,-12245933);Q=Q.top}var l=l9J(T,Q,k),v=l.height,L=l.width;if(L===-12245933)return new KO(L,L,L,L);var q=jO(Q.document);var Y=udT(q.T);var U=Y.x,R=Y.y;return new KO(R,U+L,R+v,U)}catch(Z){return new KO(-12245933,-12245933,-12245933,-12245933)}};
  738. pI=function(T,Q){Q=Math.pow(10,Q);return Math.floor(T*Q)/Q};
  739. ojt=function(T){return new KO(T.top,T.right,T.bottom,T.left)};
  740. vjt=function(T){var Q=T.top||0,k=T.left||0;return new KO(Q,k+(T.width||0),Q+(T.height||0),k)};
  741. Wf=function(T){return T!=null&&T>=0&&T<=1};
  742. L3y=function(){var T=g.KJ();return T?$4("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(Q){return DW(T,Q)})||DW(T,"OMI/")&&!DW(T,"XiaoMi/")?!0:DW(T,"Presto")&&DW(T,"Linux")&&!DW(T,"X11")&&!DW(T,"Android")&&!DW(T,"Mobi"):!1};
  743. qob=function(){this.L=!Yj(rK.top);this.isMobileDevice=M_()||yTb();var T=RQ();this.domain=T.length>0&&T[T.length-1]!=null&&T[T.length-1].url!=null?g.Rq(T[T.length-1].url)||"":"";this.T=new KO(0,0,0,0);this.Y=new g.Ji(0,0);this.N=new g.Ji(0,0);this.C=new KO(0,0,0,0);this.frameOffset=new g.WX(0,0);this.B=0;this.j=!1;this.S=!(!rK||!jQ5(rK).So);this.update(rK)};
  744. gjH=function(T,Q){Q&&Q.screen&&(T.Y=new g.Ji(Q.screen.width,Q.screen.height))};
  745. MC5=function(T,Q){a:{var k=T.T?new g.Ji(x1(T.T),T.T.getHeight()):new g.Ji(0,0);Q=Q===void 0?rK:Q;Q!==null&&Q!=Q.top&&(Q=Q.top);var l=0,v=0;try{var L=Q.document,q=L.body,Y=L.documentElement;if(L.compatMode=="CSS1Compat"&&Y.scrollHeight)l=Y.scrollHeight!=k.height?Y.scrollHeight:Y.offsetHeight,v=Y.scrollWidth!=k.width?Y.scrollWidth:Y.offsetWidth;else{var U=Y.scrollHeight,R=Y.scrollWidth,Z=Y.offsetHeight,f=Y.offsetWidth;Y.clientHeight!=Z&&(U=q.scrollHeight,R=q.scrollWidth,Z=q.offsetHeight,f=q.offsetWidth);
  746. U>k.height?U>Z?(l=U,v=R):(l=Z,v=f):U<Z?(l=U,v=R):(l=Z,v=f)}var G=new g.Ji(v,l);break a}catch(m){G=new g.Ji(-12245933,-12245933);break a}G=void 0}T.N=G};
  747. F6=function(){var T=J3();if(T.B>0||T.j)return!0;T=Bu().S.isVisible();var Q=vu(el)===0;return T||Q};
  748. J3=function(){return SC(qob)};
  749. ED=function(T){this.L=T;this.S=0;this.T=null};
  750. yY=function(T,Q,k){this.L=T;this.sK=k===void 0?"na":k;this.N=[];this.isInitialized=!1;this.Y=new Hf(-1,!0,this);this.T=this;this.j=Q;this.z9=this.D=!1;this.i9="uk";this.xm=!1;this.B=!0};
  751. iL=function(T,Q){g.CW(T.N,Q)||(T.N.push(Q),Q.gm(T.T),Q.py(T.Y),Q.PA()&&(T.D=!0))};
  752. YoI=function(T){T=T.T;T.S4();T.Tn();var Q=J3();Q.C=OD(!1,T.L,Q.isMobileDevice);MC5(J3(),T.L);T.Y.T=T.ez()};
  753. U_y=function(T){T.D=T.N.length?$4(T.N,function(Q){return Q.PA()}):!1};
  754. R$I=function(T){var Q=g.r$(T.N);g.EA(Q,function(k){k.py(T.Y)})};
  755. VY=function(T){var Q=g.r$(T.N);g.EA(Q,function(k){k.gm(T.T)});
  756. T.T!=T||R$I(T)};
  757. TJ=function(T,Q,k,l){this.element=T;this.T=new KO(0,0,0,0);this.L=null;this.B=new KO(0,0,0,0);this.S=Q;this.sH=k;this.xm=l;this.hj=!1;this.timestamp=-1;this.D=new t3(Q.Y,this.element,this.T,new KO(0,0,0,0),0,0,uL(),0);this.N=void 0};
  758. Z8H=function(T,Q){return T.N?new KO(Math.max(Q.top+T.N.top,Q.top),Math.min(Q.left+T.N.right,Q.right),Math.min(Q.top+T.N.bottom,Q.bottom),Math.max(Q.left+T.N.left,Q.left)):Q.clone()};
  759. QB=function(T){this.N=!1;this.T=T;this.Y=function(){}};
  760. f95=function(T,Q,k){this.L=k===void 0?0:k;this.S=T;this.T=Q==null?"":Q};
  761. Gou=function(T){switch(Math.trunc(T.L)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
  762. m_5=function(T,Q){return T.L<Q.L?!0:T.L>Q.L?!1:T.S<Q.S?!0:T.S>Q.S?!1:typeof T.T<typeof Q.T?!0:typeof T.T>typeof Q.T?!1:T.T<Q.T};
  763. jy=function(){this.L=0;this.T=[];this.S=!1};
  764. I9b=function(T,Q){(0,g.EA)(Q.T,function(k){T.add(k.S,k.T,Gou(k))})};
  765. k6=function(T,Q){var k=k===void 0?0:k;var l=l===void 0?!0:l;Uo(Q,function(v,L){l&&v===void 0||T.add(L,v,k)});
  766. return T};
  767. ll=function(T){var Q=h$X;T.S&&(g.JT(T.T,function(k,l){return m_5(l,k)?1:m_5(k,l)?-1:0}),T.S=!1);
  768. return so(T.T,function(k,l){l=Q(l);return""+k+(k!=""&&l!=""?"&":"")+l},"")};
  769. h$X=function(T){var Q=T.S;T=T.T;return T===""?Q:typeof T==="boolean"?T?Q:"":Array.isArray(T)?T.length===0?Q:Q+"="+T.join():Q+"="+(g.CW(["mtos","tos","p"],Q)?T:encodeURIComponent(T))};
  770. sQu=function(T){var Q=Q===void 0?!0:Q;this.T=new jy;T!==void 0&&I9b(this.T,T);Q&&this.T.add("v","unreleased",-16)};
  771. SoX=function(T){var Q=[],k=[];g.VJ(T,function(l,v){if(!(v in Object.prototype)&&typeof l!="undefined")switch(Array.isArray(l)&&(l=l.join(",")),l=[v,"=",l].join(""),v){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":Q.unshift(l);break;case "req":case "url":case "referrer":case "iframe_loc":k.push(l);break;default:Q.push(l)}});
  772. return Q.concat(k)};
  773. CSC=function(T){T=T.toString();Bu();ZJJ(T)};
  774. BJ5=function(){this.T=0};
  775. g.od=function(T){T&&typeof T.dispose=="function"&&T.dispose()};
  776. g.vU=function(T){for(var Q=0,k=arguments.length;Q<k;++Q){var l=arguments[Q];g.o_(l)?g.vU.apply(null,l):g.od(l)}};
  777. g.x=function(){this.vA=this.vA;this.K7=this.K7};
  778. g.P=function(T,Q){T.addOnDisposeCallback(g.YE(g.od,Q))};
  779. z$X=function(T,Q,k){(0,g.EA)(T.L,function(l){var v=T.T;if(!l.T&&(l.L(Q,k),l.Y())){l.T=!0;var L=l.S(),q=new jy;q.add("id","av-js");q.add("type","verif");q.add("vtype",l.N);l=SC(BJ5);q.add("i",l.T++);q.add("adk",v);k6(q,L);v=new sQu(q);CSC(v)}})};
  780. LC=function(){this.S=this.L=this.Y=this.T=0};
  781. qV=function(T){this.S=T=T===void 0?XuC:T;this.T=g.IQ(this.S,function(){return new LC})};
  782. gR=function(T,Q){return zOt(T,function(k){return k.T},Q===void 0?!0:Q)};
  783. Y6=function(T,Q){return MV(T,Q,function(k){return k.T})};
  784. XGf=function(T,Q){return zOt(T,function(k){return k.L},Q===void 0?!0:Q)};
  785. UB=function(T,Q){return MV(T,Q,function(k){return k.L})};
  786. Rd=function(T,Q){return MV(T,Q,function(k){return k.S})};
  787. wGH=function(T){g.EA(T.T,function(Q){Q.S=0})};
  788. zOt=function(T,Q,k){T=g.IQ(T.T,function(l){return Q(l)});
  789. return k?T:dru(T)};
  790. MV=function(T,Q,k){var l=g.SA(T.S,function(v){return Q<=v});
  791. return l==-1?0:k(T.T[l])};
  792. dru=function(T){return g.IQ(T,function(Q,k,l){return k>0?l[k]-l[k-1]:l[k]})};
  793. Z7=function(){this.S=new qV;this.sK=this.Bd=0;this.p_=new LC;this.qO=this.C=-1;this.f_=1E3;this.zg=new qV([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.i9=this.hj=-1};
  794. fC=function(T,Q){return XGf(T.S,Q===void 0?!0:Q)};
  795. GJ=function(T,Q,k,l){var v=v===void 0?!1:v;k=cf(l,k);oQ(T,Q,k,{capture:v})};
  796. CC=function(T,Q){Q=Sy(Q);return Q===0?0:Sy(T)/Q};
  797. Sy=function(T){return Math.max(T.bottom-T.top,0)*Math.max(T.right-T.left,0)};
  798. N_g=function(T,Q){if(!T||!Q)return!1;for(var k=0;T!==null&&k++<100;){if(T===Q)return!0;try{if(T=T.parentElement||T){var l=Qf(T),v=l&&U$(l),L=v&&v.frameElement;L&&(T=L)}}catch(q){break}}return!1};
  799. APb=function(T,Q,k){if(!T||!Q)return!1;Q=H2(T.clone(),-Q.left,-Q.top);T=(Q.left+Q.right)/2;Q=(Q.top+Q.bottom)/2;Yj(window.top)&&window.top&&window.top.document&&(window=window.top);if(!ko6())return!1;T=window.document.elementFromPoint(T,Q);if(!T)return!1;Q=(Q=(Q=Qf(k))&&Q.defaultView&&Q.defaultView.frameElement)&&N_g(Q,T);var l=T===k;T=!l&&T&&B2(T,function(v){return v===k});
  800. return!(Q||l||T)};
  801. b25=function(T,Q,k,l){return J3().L?!1:x1(T)<=0||T.getHeight()<=0?!0:k&&l?iOH(208,function(){return APb(T,Q,k)}):!1};
  802. BU=function(T,Q,k){g.x.call(this);this.position=rPg.clone();this.oO=this.MI();this.d3=-2;this.timeCreated=Date.now();this.Xz=-1;this.U_=Q;this.OA=null;this.DY=!1;this.JC=null;this.opacity=-1;this.requestSource=k;this.Jb9=!1;this.B6=function(){};
  803. this.Wb=function(){};
  804. this.C$=new PWH;this.C$.kd=T;this.C$.T=T;this.DH=!1;this.U6={Zt:null,J0:null};this.jx=!0;this.mE=null;this.YX=this.UC=!1;vf().B++;this.I2=this.Dj();this.kG=-1;this.nY=null;this.hasCompleted=this.mB=!1;this.sH=new Bg;H5y(this.sH);cP5(this);this.requestSource==1?Xl(this.sH,"od",1):Xl(this.sH,"od",0)};
  805. cP5=function(T){T=T.C$.kd;var Q;if(Q=T&&T.getAttribute)Q=/-[a-z]/.test("googleAvInapp")?!1:DrT&&T.dataset?"googleAvInapp"in T.dataset:T.hasAttribute?T.hasAttribute("data-"+ZWX()):!!T.getAttribute("data-"+ZWX());Q&&(J3().S=!0)};
  806. zJ=function(T,Q){Q!=T.YX&&(T.YX=Q,T=J3(),Q?T.B++:T.B>0&&T.B--)};
  807. aOH=function(T,Q){if(T.nY){if(Q.getName()===T.nY.getName())return;T.nY.dispose();T.nY=null}Q=Q.create(T.C$.T,T.sH,T.PA());if(Q=Q!=null&&Q.observe()?Q:null)T.nY=Q};
  808. uW6=function(T,Q,k){if(!T.OA||T.U_==-1||Q.S===-1||T.OA.S===-1)return 0;T=Q.S-T.OA.S;return T>k?0:T};
  809. nyt=function(T,Q,k){if(T.nY){T.nY.h5();var l=T.nY.D,v=l.Y,L=v.T;if(l.B!=null){var q=l.L;T.JC=new g.WX(q.left-L.left,q.top-L.top)}L=T.Yq()?Math.max(l.T,l.N):l.T;q={};v.volume!==null&&(q.volume=v.volume);v=T.Yl(l);T.OA=l;T.Aj(L,Q,k,!1,q,v,l.j)}};
  810. KYy=function(T){if(T.DY&&T.mE){var Q=wz(T.sH,"od")==1,k=J3().T,l=T.mE,v=T.nY?T.nY.getName():"ns",L=T.JC,q=new g.Ji(x1(k),k.getHeight());k=T.Yq();T={kb_:v,JC:L,Sh6:q,Yq:k,Pn:T.I2.Pn,yxB:Q};if(Q=l.S){Q.h5();v=Q.D;L=v.Y.T;var Y=q=null;v.B!=null&&L&&(q=v.L,q=new g.WX(q.left-L.left,q.top-L.top),Y=new g.Ji(L.right-L.left,L.bottom-L.top));v=k?Math.max(v.T,v.N):v.T;k={kb_:Q.getName(),JC:q,Sh6:Y,Yq:k,yxB:!1,Pn:v}}else k=null;k&&z$X(l,T,k)}};
  811. xr5=function(T,Q,k){Q&&(T.B6=Q);k&&(T.Wb=k)};
  812. g.Xy=function(){};
  813. g.wR=function(T){return{value:T,done:!1}};
  814. PiH=function(){this.Y=this.T=this.L=this.S=this.N=0};
  815. H26=function(T){var Q={};var k=g.R_()-T.N;Q=(Q.ptlt=k,Q);(k=T.S)&&(Q.pnk=k);(k=T.L)&&(Q.pnc=k);(k=T.Y)&&(Q.pnmm=k);(T=T.T)&&(Q.pns=T);return Q};
  816. tkH=function(){iW.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
  817. dR=function(T){return Wf(T.volume)&&T.volume>0};
  818. NV=function(T,Q,k,l){k=k===void 0?!0:k;l=l===void 0?function(){return!0}:l;
  819. return function(v){var L=v[T];if(Array.isArray(L)&&l(v))return O25(L,Q,k)}};
  820. Ao=function(T,Q){return function(k){return Q(k)?k[T]:void 0}};
  821. pGH=function(T){return function(Q){for(var k=0;k<T.length;k++)if(T[k]===Q.e||T[k]===void 0&&!Q.hasOwnProperty("e"))return!0;return!1}};
  822. O25=function(T,Q,k){return k===void 0||k?g.bl(T,function(l,v){return g.CW(Q,v)}):g.IQ(Q,function(l,v,L){return T.slice(v>0?L[v-1]+1:0,l+1).reduce(function(q,Y){return q+Y},0)})};
  823. WYg=function(){this.S=this.T=""};
  824. $ru=function(){};
  825. rR=function(T,Q){var k={};if(T!==void 0)if(Q!=null)for(var l in Q){var v=Q[l];l in Object.prototype||v!=null&&(k[l]=typeof v==="function"?v(T):T[v])}else g.Is(k,T);return ll(k6(new jy,k))};
  826. JPu=function(){var T={};this.S=(T.vs=[1,0],T.vw=[0,1],T.am=[2,2],T.a=[4,4],T.f=[8,8],T.bm=[16,16],T.b=[32,32],T.avw=[0,64],T.avs=[64,0],T.pv=[256,256],T.gdr=[0,512],T.p=[0,1024],T.r=[0,2048],T.m=[0,4096],T.um=[0,8192],T.ef=[0,16384],T.s=[0,32768],T.pmx=[0,16777216],T.mut=[33554432,33554432],T.umutb=[67108864,67108864],T.tvoff=[134217728,134217728],T);this.T={};for(var Q in this.S)this.S[Q][1]>0&&(this.T[Q]=0);this.L=0};
  827. cU=function(T,Q){var k=T.S[Q],l=k[1];T.L+=k[0];l>0&&T.T[Q]==0&&(T.T[Q]=1)};
  828. eO6=function(T){var Q=g.gz(T.S),k=0,l;for(l in T.T)g.CW(Q,l)&&T.T[l]==1&&(k+=T.S[l][1],T.T[l]=2);return k};
  829. FYI=function(T){var Q=0,k;for(k in T.T){var l=T.T[k];if(l==1||l==2)Q+=T.S[k][1]}return Q};
  830. D7=function(){this.T=this.S=0};
  831. ul=function(){Z7.call(this);this.L=new LC;this.Jj=this.D=this.xm=0;this.j=-1;this.Tg=new LC;this.N=new LC;this.T=new qV;this.B=this.Y=-1;this.z9=new LC;this.f_=2E3;this.e6=new D7;this.K_=new D7;this.u9=new D7};
  832. nC=function(T,Q,k){var l=T.Jj;KI||k||T.j==-1||(l+=Q-T.j);return l};
  833. Eyb=function(){this.L=!1};
  834. KC=function(T,Q){this.L=!1;this.Y=T;this.D=Q;this.N=0};
  835. x6=function(T,Q){KC.call(this,T,Q);this.C=[]};
  836. yPC=function(){};
  837. PU=function(){};
  838. HU=function(T,Q,k,l){TJ.call(this,T,Q,k,l)};
  839. to=function(T,Q,k){TJ.call(this,null,T,Q,k);this.j=T.isActive();this.C=0};
  840. OB=function(T){return[T.top,T.left,T.bottom,T.right]};
  841. pC=function(T,Q,k,l,v,L){L=L===void 0?new PU:L;BU.call(this,Q,k,l);this.II=v;this.DI=0;this.t9={};this.Sj=new JPu;this.cD={};this.V1="";this.u9=null;this.h3=!1;this.T=[];this.yQ=L.S();this.B=L.L();this.Y=null;this.L=-1;this.sK=this.D=void 0;this.qO=this.z9=0;this.i9=-1;this.f_=this.K_=!1;this.xm=this.j=this.S=this.ze=this.QR=0;new qV;this.e6=this.Jj=0;this.p_=-1;this.vg=0;this.C=g.DM;this.hj=[this.MI()];this.Gg=2;this.ZA={};this.ZA.pause="p";this.ZA.resume="r";this.ZA.skip="s";this.ZA.mute="m";this.ZA.unmute=
  842. "um";this.ZA.exitfullscreen="ef";this.N=null;this.zg=this.Tg=!1;this.d5=Math.floor(Date.now()/1E3-1704067200);this.Bd=0};
  843. WU=function(T){T.hasCompleted=!0;T.vg!=0&&(T.vg=3)};
  844. $6=function(T){return T===void 0?T:Number(T)?pI(T,3):0};
  845. Jo=function(T,Q){return T.hj[Q!=null&&Q<T.hj.length?Q:T.hj.length-1]};
  846. i2g=function(T){var Q=!!wz(vf().sH,"umt");return T.D||!Q&&!T.sK?0:1};
  847. Vkt=function(T,Q){T.zz()?Q=0:T.U_==-1?Q=0:(Q-=T.U_,Q=Q>Math.max(1E4,T.L/3)?0:Q);var k=T.C(T)||{};k=k.currentTime!==void 0?k.currentTime:T.z9;var l=k-T.z9,v=0;l>=0?(T.qO+=Q,T.e6+=Math.max(Q-l,0),v=Math.min(l,T.qO)):T.Jj+=Math.abs(l);l!=0&&(T.qO=0);T.p_==-1&&l>0&&(T.p_=Pf>=0?uL()-Pf:-1);T.z9=k;return v};
  848. TLt=function(T,Q){$4(T.B,function(k){return k.Y==Q.Y})||T.B.push(Q)};
  849. Q25=function(T){var Q=Y6(T.OF().T,1);return ey(T,Q)};
  850. ey=function(T,Q,k){return Q>=15E3?!0:T.K_?(k===void 0?0:k)?!0:T.L>0?Q>=T.L/2:T.i9>0?Q>=T.i9:!1:!1};
  851. j2T=function(T){var Q=pI(T.I2.Pn,2),k=T.Sj.L,l=T.I2,v=Jo(T),L=$6(v.Y),q=$6(v.B),Y=$6(l.volume),U=pI(v.C,2),R=pI(v.qO,2),Z=pI(l.Pn,2),f=pI(v.hj,2),G=pI(v.i9,2);l=pI(l.E1,2);var m=T.rS().clone().round();T=T.nY&&T.nY.L?(T.nY?T.nY.L:null).clone().round():null;v=fC(v,!1);return{TOK:Q,fP:k,LJ:L,gP:q,R$:Y,kx:U,TA:R,Pn:Z,Yx:f,St:G,E1:l,position:m,I$:T,dP:v}};
  852. lfb=function(T,Q){kdf(T.T,Q,function(){return{TOK:0,fP:void 0,LJ:-1,gP:-1,R$:-1,kx:-1,TA:-1,Pn:-1,Yx:-1,St:-1,E1:-1,position:void 0,I$:void 0,dP:[]}});
  853. T.T[Q]=j2T(T)};
  854. kdf=function(T,Q,k){for(var l=T.length;l<Q+1;)T.push(k()),l++};
  855. EB=function(T,Q,k){var l=T.cD[Q];if(l!=null)return l;l=oMg(T,Q);var v=Ui(Fy,function(L){return L==Q});
  856. T=vMX(T,l,l,k,LnJ[Fy[v]]);Q=="fully_viewable_audible_half_duration_impression"&&(T.std="csm");return T};
  857. yB=function(T,Q,k){var l=[Q];if(T!=Q||k!=Q)l.unshift(T),l.push(k);return l};
  858. vMX=function(T,Q,k,l,v){if(T.DH)return{"if":0,vs:0};var L=T.rS().clone().round(),q=T.nY?T.nY.L:null,Y=J3(),U=vf(),R=T.OF(),Z=T.nY?T.nY.getName():"ns",f={};f["if"]=Y.L?1:void 0;f.sdk=T.Y?T.Y:void 0;f.t=T.timeCreated;f.p=[L.top,L.left,L.bottom,L.right];L&&q&&!P2(q,L)&&(L=q.round(),f.cp=[L.top,L.left,L.bottom,L.right]);f.tos=gR(R.S,!1);f.mtos=fC(R);f.mcvt=R.p_.L;f.ps=void 0;L=nC(R,uL(),T.zz());f.vht=L;f.mut=R.Tg.L;f.a=$6(T.I2.volume);f.mv=$6(R.B);f.fs=T.YX?1:0;f.ft=R.z9.T;f.at=R.N.T;f.as=R.Y>0?1:0;f.atos=
  859. gR(R.T);f.ssb=gR(R.zg,!1);f.amtos=XGf(R.T,!1);f.uac=T.QR;f.vpt=R.L.T;Z=="nio"&&(f.nio=1,f.avms="nio");f.gmm="4";f.gdr=ey(T,R.L.T,!0)?1:0;f.efpf=T.Gg;if(Z=="gsv"||Z=="nis")Z=T.nY,Z.C>0&&(f.nnut=Z.C);f.tcm=i2g(T);f.nmt=T.Jj;f.bt=T.e6;f.pst=T.p_;f.vpaid=T.D;f.dur=T.L;f.vmtime=T.z9;f.is=T.Sj.L;T.T.length>=1&&(f.i0=T.T[0].fP,f.a0=[T.T[0].R$],f.c0=[T.T[0].Pn],f.ss0=[T.T[0].E1],Z=T.T[0].position,L=T.T[0].I$,f.p0=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp0=OB(L)));T.T.length>=2&&(f.i1=T.T[1].fP,f.a1=yB(T.T[1].LJ,
  860. T.T[1].R$,T.T[1].gP),f.c1=yB(T.T[1].kx,T.T[1].Pn,T.T[1].TA),f.ss1=yB(T.T[1].Yx,T.T[1].E1,T.T[1].St),Z=T.T[1].position,L=T.T[1].I$,f.p1=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp1=OB(L)),f.mtos1=T.T[1].dP);T.T.length>=3&&(f.i2=T.T[2].fP,f.a2=yB(T.T[2].LJ,T.T[2].R$,T.T[2].gP),f.c2=yB(T.T[2].kx,T.T[2].Pn,T.T[2].TA),f.ss2=yB(T.T[2].Yx,T.T[2].E1,T.T[2].St),Z=T.T[2].position,L=T.T[2].I$,f.p2=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp2=OB(L)),f.mtos2=T.T[2].dP);T.T.length>=4&&(f.i3=T.T[3].fP,f.a3=yB(T.T[3].LJ,T.T[3].R$,
  861. T.T[3].gP),f.c3=yB(T.T[3].kx,T.T[3].Pn,T.T[3].TA),f.ss3=yB(T.T[3].Yx,T.T[3].E1,T.T[3].St),Z=T.T[3].position,L=T.T[3].I$,f.p3=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp3=OB(L)),f.mtos3=T.T[3].dP);f.cs=FYI(T.Sj);Q&&(f.ic=eO6(T.Sj),f.dvpt=R.L.S,f.dvs=Rd(R.S,.5),f.dfvs=Rd(R.S,1),f.davs=Rd(R.T,.5),f.dafvs=Rd(R.T,1),k&&(R.L.S=0,wGH(R.S),wGH(R.T)),T.D_()&&(f.dtos=R.xm,f.dav=R.D,f.dtoss=T.DI+1,k&&(R.xm=0,R.D=0,T.DI++)),f.dat=R.N.S,f.dft=R.z9.S,k&&(R.N.S=0,R.z9.S=0));f.ps=[Y.N.width,Y.N.height];f.bs=[x1(Y.T),Y.T.getHeight()];
  862. f.scs=[Y.Y.width,Y.Y.height];f.dom=Y.domain;T.ze&&(f.vds=T.ze);if(T.B.length>0||T.yQ)Q=g.r$(T.B),T.yQ&&Q.push(T.yQ),f.pings=g.IQ(Q,function(G){return G.toString()});
  863. Q=g.IQ(g.bl(T.B,function(G){return G.B()}),function(G){return G.getId()});
  864. XTb(Q);f.ces=Q;T.S&&(f.vmer=T.S);T.j&&(f.vmmk=T.j);T.xm&&(f.vmiec=T.xm);f.avms=T.nY?T.nY.getName():"ns";T.nY&&g.Is(f,T.nY.lW());l?(f.c=pI(T.I2.Pn,2),f.ss=pI(T.I2.E1,2)):f.tth=uL()-q5H;f.mc=pI(R.qO,2);f.nc=pI(R.C,2);f.mv=$6(R.B);f.nv=$6(R.Y);f.lte=pI(T.d3,2);l=Jo(T,v);fC(R);f.qmtos=fC(l);f.qnc=pI(l.C,2);f.qmv=$6(l.B);f.qnv=$6(l.Y);f.qas=l.Y>0?1:0;f.qi=T.V1;f.avms||(f.avms="geo");f.psm=R.e6.T;f.psv=R.e6.getValue();f.psfv=R.K_.getValue();f.psa=R.u9.getValue();U=xJ5(U.sH);U.length&&(f.veid=U);T.N&&g.Is(f,
  865. H26(T.N));f.avas=T.bV();f.vs=T.lr();f.co=gMy(T);f.tm=R.Bd;f.tu=R.sK;return f};
  866. oMg=function(T,Q){if(g.CW(MQt,Q))return!0;var k=T.t9[Q];return k!==void 0?(T.t9[Q]=!0,!k):!1};
  867. gMy=function(T){var Q=T.Bd.toString(10).padStart(2,"0");Q=""+T.d5+Q;T.Bd<99&&T.Bd++;return Q};
  868. UsX=function(){this.T={};var T=U$();il(this,T,document);var Q=Y5T();try{if("1"==Q){for(var k=T.parent;k!=T.top;k=k.parent)il(this,k,k.document);il(this,T.top,T.top.document)}}catch(l){}};
  869. Y5T=function(){var T=document.documentElement;try{if(!Yj(U$().top))return"2";var Q=[],k=U$(T.ownerDocument);for(T=k;T!=k.top;T=T.parent)if(T.frameElement)Q.push(T.frameElement);else break;return Q&&Q.length!=0?"1":"0"}catch(l){return"2"}};
  870. il=function(T,Q,k){GJ(k,"mousedown",function(){return RvT(T)},301);
  871. GJ(Q,"scroll",function(){return Zgu(T)},302);
  872. GJ(k,"touchmove",function(){return fff(T)},303);
  873. GJ(k,"mousemove",function(){return GdT(T)},304);
  874. GJ(k,"keydown",function(){return msT(T)},305)};
  875. RvT=function(T){g.VJ(T.T,function(Q){Q.L>1E5||++Q.L})};
  876. Zgu=function(T){g.VJ(T.T,function(Q){Q.T>1E5||++Q.T})};
  877. fff=function(T){g.VJ(T.T,function(Q){Q.T>1E5||++Q.T})};
  878. msT=function(T){g.VJ(T.T,function(Q){Q.S>1E5||++Q.S})};
  879. GdT=function(T){g.VJ(T.T,function(Q){Q.Y>1E5||++Q.Y})};
  880. Iff=function(){this.T=[];this.S=[]};
  881. VB=function(T,Q){return g.sA(T.T,function(k){return k.V1==Q})};
  882. hv6=function(T,Q){return Q?g.sA(T.T,function(k){return k.C$.kd==Q}):null};
  883. s2t=function(T,Q){return g.sA(T.S,function(k){return k.S9()==2&&k.V1==Q})};
  884. QR=function(){var T=T9;return T.T.length==0?T.S:T.S.length==0?T.T:g.bW(T.S,T.T)};
  885. S5b=function(T,Q){T=Q.S9()==1?T.T:T.S;var k=hT(T,function(l){return l==Q});
  886. return k!=-1?(T.splice(k,1),Q.nY&&Q.nY.unobserve(),Q.dispose(),!0):!1};
  887. Cqg=function(T){var Q=T9;if(S5b(Q,T)){switch(T.S9()){case 0:var k=function(){return null};
  888. case 2:k=function(){return s2t(Q,T.V1)};
  889. break;case 1:k=function(){return VB(Q,T.V1)}}for(var l=k();l;l=k())S5b(Q,l)}};
  890. BLT=function(T){var Q=T9;T=g.bl(T,function(k){return!hv6(Q,k.C$.kd)});
  891. Q.T.push.apply(Q.T,g.ZH(T))};
  892. zvb=function(T){var Q=[];g.EA(T,function(k){$4(T9.T,function(l){return l.C$.kd===k.C$.kd&&l.V1===k.V1})||(T9.T.push(k),Q.push(k))})};
  893. ju=function(){this.T=this.S=null};
  894. XSg=function(T,Q){function k(l,v){Q(l,v)}
  895. if(T.S==null)return!1;T.T=g.sA(T.S,function(l){return l!=null&&l.cF()});
  896. T.T&&(T.T.init(k)?YoI(T.T.T):Q(T.T.T.tS(),T.T));return T.T!=null};
  897. kB=function(T){T=wSf(T);QB.call(this,T.length?T[T.length-1]:new yY(rK,0));this.L=T;this.S=null};
  898. wSf=function(T){if(!T.length)return[];T=(0,g.bl)(T,function(k){return k!=null&&k.jI()});
  899. for(var Q=1;Q<T.length;Q++)iL(T[Q-1],T[Q]);return T};
  900. lp=function(T,Q,k,l){TJ.call(this,T,Q,k,l);this.qO=this.z9=this.C=this.j=this.Y=null};
  901. oj=function(T){return T.Y&&T.Y.takeRecords?T.Y.takeRecords():[]};
  902. NL5=function(T){if(!T.element)return!1;var Q=T.element,k=T.S.T.L,l=vf().T.T;T.Y=new k.IntersectionObserver(oq(l,function(v){return vH(T,v)}),dsC);
  903. l=oq(l,function(){T.Y.unobserve(Q);T.Y.observe(Q);vH(T,oj(T))});
  904. k.ResizeObserver?(T.j=new k.ResizeObserver(l),T.j.observe(Q)):k.MutationObserver&&(T.C=new g.VC.MutationObserver(l),T.C.observe(Q,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));T.Y.observe(Q);vH(T,oj(T));return!0};
  905. vH=function(T,Q){try{if(Q.length){T.z9||(T.z9=uL());var k=AK6(Q),l=$py(T.element,T.S.T.L),v=l.x,L=l.y;T.L=new KO(Math.round(L),Math.round(v)+k.boundingClientRect.width,Math.round(L)+k.boundingClientRect.height,Math.round(v));T.T=Z8H(T,T.L);var q=ojt(k.intersectionRect);T.B=H2(q,T.L.left-q.left,T.L.top-q.top)}}catch(Y){T.unobserve(),aq(299,Y)}};
  906. AK6=function(T){return so(T,function(Q,k){return Q.time>k.time?Q:k},T[0])};
  907. LH=function(T){T=T===void 0?rK:T;QB.call(this,new yY(T,2))};
  908. qi=function(){var T=bgJ();yY.call(this,rK.top,T,"geo")};
  909. bgJ=function(){vf();var T=J3();return T.L||T.S?0:2};
  910. rK6=function(){};
  911. gw=function(){this.done=!1;this.T={AZ:0,YD:0,P$k:0,JD:0,jb:-1,UX:0,Xl:0,Rl:0,ho9:0};this.N=null;this.B=!1;this.L=null;this.C=0;this.S=new ED(this)};
  912. YB=function(){var T=Mi;T.B||(T.B=!0,cKu(T,function(){return T.Y.apply(T,g.ZH(g.HT.apply(0,arguments)))}),T.Y())};
  913. DsC=function(){SC(rK6);var T=SC(ju);T.T!=null&&T.T.T?YoI(T.T.T):J3().update(rK)};
  914. UX=function(T,Q,k){if(!T.done&&(T.S.cancel(),Q.length!=0)){T.L=null;try{DsC();var l=uL();vf().N=l;if(SC(ju).T!=null)for(var v=0;v<Q.length;v++)nyt(Q[v],l,k);for(l=0;l<Q.length;l++)KYy(Q[l]);++T.T.JD}finally{k?g.EA(Q,function(L){L.I2.Pn=0}):T.S.schedule()}}};
  915. cKu=function(T,Q){if(!T.N){Q=cf(142,Q);Bu();var k;el.visibilityState?k="visibilitychange":el.mozVisibilityState?k="mozvisibilitychange":el.webkitVisibilityState&&(k="webkitvisibilitychange");k&&oQ(el,k,Q,{capture:!1})&&(T.N=Q)}};
  916. af5=function(){var T=SC(ju);if(T.T!=null){var Q=T.T;g.EA(QR(),function(k){return aOH(k,Q)})}};
  917. uV6=function(T,Q){T=T.C;KI&&(T+=Q-x4);return T};
  918. nMt=function(T){T=T===void 0?function(){return{}}:T;
  919. A3.Gf="av-js";NT.T=.01;yZg([function(Q){var k=vf(),l={};l=(l.bin=k.S,l.type="error",l);k=dz(k.sH);if(!Mi.L){var v=Mi,L=rK.document,q=nI>=0?uL()-nI:-1,Y=uL();v.T.jb==-1&&(q=Y);var U=J3(),R=vf(),Z=dz(R.sH),f=QR();try{if(f.length>0){var G=U.T;G&&(Z.bs=[x1(G),G.getHeight()]);var m=U.N;m&&(Z.ps=[m.width,m.height]);rK.screen&&(Z.scs=[rK.screen.width,rK.screen.height])}else Z.url=encodeURIComponent(rK.location.href.substring(0,512)),L.referrer&&(Z.referrer=encodeURIComponent(L.referrer.substring(0,512)));
  920. Z.tt=q;Z.pt=nI;Z.bin=R.S;rK.google_osd_load_pub_page_exp!==void 0&&(Z.olpp=rK.google_osd_load_pub_page_exp);Z.deb=[1,v.T.AZ,v.T.YD,v.T.JD,v.T.jb,0,v.S.S,v.T.UX,v.T.Xl,v.T.Rl,v.T.ho9,-1].join(";");Z.tvt=uV6(v,Y);U.S&&(Z.inapp=1);if(rK!==null&&rK!=rK.top){f.length>0&&(Z.iframe_loc=encodeURIComponent(rK.location.href.substring(0,512)));var I=U.C;Z.is=[x1(I),I.getHeight()]}}catch(z){Z.error=1}Mi.L=Z}G=g.Gs(Mi.L);m=vf().T;wz(m.L,"prf")==1?(I=new lL,v=m.T,L=0,v.T>-1&&(L=v.L.T.now()-v.T),I=U5(I,1,Yy(v.Y+
  921. L),0),v=m.T,I=U5(I,5,f2(v.T>-1?v.S+1:v.S),0),I=U5(I,2,XW(m.S.T.L()),"0"),I=U5(I,3,XW(m.S.T.S()),"0"),m=U5(I,4,XW(m.S.T.T()),"0"),I={},m=(I.pf=g.dJ(m.L()),I)):m={};g.Is(G,m);g.Is(Q,l,k,G,T())}])};
  922. xsg=function(){var T=Kn5||rK;if(!T)return"";var Q=[];if(!T.location||!T.location.href)return"";Q.push("url="+encodeURIComponent(T.location.href.substring(0,512)));T.document&&T.document.referrer&&Q.push("referrer="+encodeURIComponent(T.document.referrer.substring(0,512)));return Q.join("&")};
  923. Rj=function(){var T="youtube.player.web_20250727_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250727_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250727_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250727_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),Q;if(((Q=T)==null?void 0:Q.length)==2)return T[1];T="youtube.player.web_20250727_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var k;return((k=T)==null?void 0:k.length)==3?"20"+T[1]+T[2]:null};
  924. Pqg=function(){return"av.default_js".includes("ima_html5_sdk")?{nt:"ima",tp:null}:"av.default_js".includes("ima_native_sdk")?{nt:"nima",tp:null}:"av.default_js".includes("admob-native-video-javascript")?{nt:"an",tp:null}:"youtube.player.web_20250727_21_RC00".includes("cast_js_sdk")?{nt:"cast",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("youtube.player.web")?{nt:"yw",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("outstream_web_client")?{nt:"out",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("drx_rewarded_web")?
  925. {nt:"r",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("gam_native_web_video")?{nt:"n",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("admob_interstitial_video")?{nt:"int",tp:Rj()}:{nt:"j",tp:null}};
  926. G9=function(T,Q){var k={sv:"967"};Zt!==null&&(k.v=Zt);k.cb=HgT;k.nas=T9.T.length;k.msg=T;Q!==void 0&&(T=tQ5(Q))&&(k.e=fH[T]);return k};
  927. me=function(T){return AV(T,"custom_metric_viewable")};
  928. tQ5=function(T){var Q=me(T)?"custom_metric_viewable":T.toLowerCase();return Ui(Fy,function(k){return k==Q})};
  929. Ogb=function(){this.T=void 0;this.S=!1;this.L=0;this.Y=-1;this.N="tos"};
  930. $sI=function(T){try{var Q=T.split(",");return Q.length>g.gz(pSX).length?null:so(Q,function(k,l){l=l.toLowerCase().split("=");if(l.length!=2||Wnt[l[0]]===void 0||!Wnt[l[0]](l[1]))throw Error("Entry ("+l[0]+", "+l[1]+") is invalid.");k[l[0]]=l[1];return k},{})}catch(k){return null}};
  931. JKC=function(T,Q){if(T.T==void 0)return 0;switch(T.N){case "mtos":return T.S?UB(Q.T,T.T):UB(Q.S,T.T);case "tos":return T.S?Y6(Q.T,T.T):Y6(Q.S,T.T)}return 0};
  932. Ij=function(T,Q,k,l){KC.call(this,Q,l);this.C=T;this.j=k};
  933. hs=function(){};
  934. sX=function(T){KC.call(this,"fully_viewable_audible_half_duration_impression",T)};
  935. Su=function(T){this.T=T};
  936. CH=function(T,Q){KC.call(this,T,Q)};
  937. BH=function(T){x6.call(this,"measurable_impression",T)};
  938. z9=function(){Su.apply(this,arguments)};
  939. Xn=function(T,Q,k){to.call(this,T,Q,k)};
  940. ww=function(T){T=T===void 0?rK:T;QB.call(this,new yY(T,2))};
  941. dw=function(T,Q,k){to.call(this,T,Q,k)};
  942. Ni=function(T){T=T===void 0?rK:T;QB.call(this,new yY(T,2))};
  943. As=function(){yY.call(this,rK,2,"mraid");this.e6=0;this.qO=this.hj=!1;this.C=null;this.S=jQ5(this.L);this.Y.T=new KO(0,0,0,0);this.Bd=!1};
  944. bp=function(T,Q,k){T.vJ("addEventListener",Q,k)};
  945. yKI=function(T){vf().Y=!!T.vJ("isViewable");bp(T,"viewableChange",ev5);T.vJ("getState")==="loading"?bp(T,"ready",FnT):EMu(T)};
  946. EMu=function(T){typeof T.S.So.AFMA_LIDAR==="string"?(T.hj=!0,ig5(T)):(T.S.compatibility=3,T.C="nc",T.fail("w"))};
  947. ig5=function(T){T.qO=!1;var Q=wz(vf().sH,"rmmt")==1,k=!!T.vJ("isViewable");(Q?!k:1)&&Bu().setTimeout(Dz(524,function(){T.qO||(VQT(T),aq(540,Error()),T.C="mt",T.fail("w"))}),500);
  948. Tg5(T);bp(T,T.S.So.AFMA_LIDAR,Qyf)};
  949. Tg5=function(T){var Q=wz(vf().sH,"sneio")==1,k=T.S.So.AFMA_LIDAR_EXP_1!==void 0,l=T.S.So.AFMA_LIDAR_EXP_2!==void 0;(Q=Q&&l)&&(T.S.So.AFMA_LIDAR_EXP_2=!0);k&&(T.S.So.AFMA_LIDAR_EXP_1=!Q)};
  950. VQT=function(T){T.vJ("removeEventListener",T.S.So.AFMA_LIDAR,Qyf);T.hj=!1};
  951. jy5=function(T,Q){if(T.vJ("getState")==="loading")return new g.Ji(-1,-1);Q=T.vJ(Q);if(!Q)return new g.Ji(-1,-1);T=parseInt(Q.width,10);Q=parseInt(Q.height,10);return isNaN(T)||isNaN(Q)?new g.Ji(-1,-1):new g.Ji(T,Q)};
  952. FnT=function(){try{var T=SC(As);T.vJ("removeEventListener","ready",FnT);EMu(T)}catch(Q){aq(541,Q)}};
  953. Qyf=function(T,Q){try{var k=SC(As);k.qO=!0;var l=T?new KO(T.y,T.x+T.width,T.y+T.height,T.x):new KO(0,0,0,0);var v=uL(),L=F6();var q=new Hf(v,L,k);q.T=l;q.volume=Q;k.py(q)}catch(Y){aq(542,Y)}};
  954. ev5=function(T){var Q=vf(),k=SC(As);T&&!Q.Y&&(Q.Y=!0,k.Bd=!0,k.C&&k.fail("w",!0))};
  955. rw=function(){this.isInitialized=!1;this.T=this.S=null;var T={};this.C=(T.start=this.fu,T.firstquartile=this.pu,T.midpoint=this.W7,T.thirdquartile=this.DZ,T.complete=this.GI,T.error=this.P7,T.pause=this.bZ,T.resume=this.L2,T.skip=this.v7,T.viewable_impression=this.cA,T.mute=this.H9,T.unmute=this.H9,T.fullscreen=this.u_,T.exitfullscreen=this.nu,T.fully_viewable_audible_half_duration_impression=this.cA,T.measurable_impression=this.cA,T.abandon=this.bZ,T.engagedview=this.cA,T.impression=this.cA,T.creativeview=
  956. this.cA,T.progress=this.H9,T.custom_metric_viewable=this.cA,T.bufferstart=this.bZ,T.bufferfinish=this.L2,T.audio_measurable=this.cA,T.audio_audible=this.cA,T);T={};this.j=(T.overlay_resize=this.Ou,T.abandon=this.BI,T.close=this.BI,T.collapse=this.BI,T.overlay_unmeasurable_impression=function(Q){return EB(Q,"overlay_unmeasurable_impression",F6())},T.overlay_viewable_immediate_impression=function(Q){return EB(Q,"overlay_viewable_immediate_impression",F6())},T.overlay_unviewable_impression=function(Q){return EB(Q,
  957. "overlay_unviewable_impression",F6())},T.overlay_viewable_end_of_session_impression=function(Q){return EB(Q,"overlay_viewable_end_of_session_impression",F6())},T);
  958. vf().S=3;kRX(this);this.L=null};
  959. cH=function(T,Q,k,l){T=T.CV(null,l,!0,Q);T.Y=k;BLT([T]);return T};
  960. lU6=function(T,Q,k){r5y(Q);var l=T.T;g.EA(Q,function(v){var L=g.IQ(v.criteria,function(q){var Y=$sI(q);if(Y==null)q=null;else if(q=new Ogb,Y.visible!=null&&(q.T=Y.visible/100),Y.audible!=null&&(q.S=Y.audible==1),Y.time!=null){var U=Y.timetype=="mtos"?"mtos":"tos",R=tfJ(Y.time,"%")?"%":"ms";Y=parseInt(Y.time,10);R=="%"&&(Y/=100);q.setTime(Y,R,U)}return q});
  961. $4(L,function(q){return q==null})||TLt(k,new Ij(v.id,v.event,L,l))})};
  962. oA5=function(){var T=[],Q=vf();T.push(SC(qi));wz(Q.sH,"mvp_lv")&&T.push(SC(As));Q=[new ww,new Ni];Q.push(new kB(T));Q.push(new LH(rK));return Q};
  963. vAC=function(T){if(!T.isInitialized){T.isInitialized=!0;try{var Q=uL(),k=vf(),l=J3();nI=Q;k.L=79463069;T.S!=="o"&&(Kn5=lW5(rK));if(fWu()){Mi.T.YD=0;Mi.T.jb=uL()-Q;var v=oA5(),L=SC(ju);L.S=v;XSg(L,function(){KH()})?Mi.done||(af5(),iL(L.T.T,T),YB()):l.L?KH():YB()}else xB=!0}catch(q){throw T9.reset(),q;
  964. }}};
  965. HH=function(T){Mi.S.cancel();PH=T;Mi.done=!0};
  966. ts=function(T){if(T.S)return T.S;var Q=SC(ju).T;if(Q)switch(Q.getName()){case "nis":T.S="n";break;case "gsv":T.S="m"}T.S||(T.S="h");return T.S};
  967. OX=function(T,Q,k){if(T.T==null)return Q.ze|=4,!1;T=Lsg(T.T,k,Q);Q.ze|=T;return T==0};
  968. KH=function(){var T=[new LH(rK)],Q=SC(ju);Q.S=T;XSg(Q,function(){HH("i")})?Mi.done||(af5(),YB()):HH("i")};
  969. q6y=function(T,Q){if(!T.h3){var k=EB(T,"start",F6());k=T.II.T(k).T;var l={id:"lidarv"};l.r=Q;l.sv="967";Zt!==null&&(l.v=Zt);Gg(k,function(v,L){return l[v]=v=="mtos"||v=="tos"?L:encodeURIComponent(L)});
  970. Q=xsg();Gg(Q,function(v,L){return l[v]=encodeURIComponent(L)});
  971. Q="//pagead2.googlesyndication.com/pagead/gen_204?"+ll(k6(new jy,l));CSC(Q);T.h3=!0}};
  972. pH=function(T,Q,k){UX(Mi,[T],!F6());lfb(T,k);k!=4&&kdf(T.hj,k,T.MI);return EB(T,Q,F6())};
  973. kRX=function(T){nMt(function(){var Q=gAJ();T.S!=null&&(Q.sdk=T.S);var k=SC(ju);k.T!=null&&(Q.avms=k.T.getName());return Q})};
  974. MYu=function(T,Q,k,l){var v=hv6(T9,k);v!==null&&v.V1!==Q&&(T.iV(v),v=null);v||(Q=T.CV(k,uL(),!1,Q),T9.S.length==0&&(vf().L=79463069),zvb([Q]),v=Q,v.Y=ts(T),l&&(v.u9=l));return v};
  975. Y6b=function(T,Q){var k=T[Q];k!==void 0&&k>0&&(T[Q]=Math.floor(k*1E3))};
  976. gAJ=function(){var T=J3(),Q={},k={},l={};return Object.assign({},(Q.sv="967",Q),Zt!==null&&(k.v=Zt,k),(l["if"]=T.L?"1":"0",l.nas=String(T9.T.length),l))};
  977. WH=function(T){KC.call(this,"audio_audible",T)};
  978. $B=function(T){x6.call(this,"audio_measurable",T)};
  979. Js=function(){Su.apply(this,arguments)};
  980. eu=function(){};
  981. UWg=function(T){this.T=T};
  982. Lsg=function(T,Q,k){T=T.S();if(typeof T==="function"){var l={};var v={};l=Object.assign({},Zt!==null&&(l.v=Zt,l),(v.sv="967",v.cb=HgT,v.e=RH5(Q),v));v=EB(k,Q,F6());g.Is(l,v);k.cD[Q]=v;l=k.S9()==2?SoX(l).join("&"):k.II.T(l).T;try{return T(k.V1,l,Q),0}catch(L){return 2}}else return 1};
  983. RH5=function(T){var Q=me(T)?"custom_metric_viewable":T;T=Ui(Fy,function(k){return k==Q});
  984. return fH[T]};
  985. Fn=function(){rw.call(this);this.B=null;this.N=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
  986. Z35=function(T,Q,k){k=k.opt_configurable_tracking_events;T.T!=null&&Array.isArray(k)&&lU6(T,k,Q)};
  987. fU5=function(T,Q,k){var l=VB(T9,Q);l||(l=k.opt_nativeTime||-1,l=cH(T,Q,ts(T),l),k.opt_osdId&&(l.u9=k.opt_osdId));return l};
  988. GRI=function(T,Q,k){var l=VB(T9,Q);l||(l=cH(T,Q,"n",k.opt_nativeTime||-1));return l};
  989. mWC=function(T,Q){var k=VB(T9,Q);k||(k=cH(T,Q,"h",-1));return k};
  990. IUt=function(T){vf();switch(ts(T)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
  991. S6f=function(T,Q,k,l){k=k===void 0?{}:k;var v={};g.Is(v,{opt_adElement:void 0,opt_fullscreen:void 0},k);var L=T.EA(Q,k);k=L?L.II:T.K1();if(v.opt_bounds)return k.T(G9("ol",l));if(l!==void 0)if(tQ5(l)!==void 0)if(xB)T=G9("ue",l);else if(vAC(T),PH=="i")T=G9("i",l),T["if"]=0;else if(Q=T.EA(Q,v)){b:{PH=="i"&&(Q.DH=!0);L=v.opt_fullscreen;L!==void 0&&zJ(Q,!!L);var q;if(L=!J3().S)(L=DW(g.KJ(),"CrKey")&&!(DW(g.KJ(),"CrKey")&&DW(g.KJ(),"SmartSpeaker"))||DW(g.KJ(),"PlayStation")||DW(g.KJ(),"Roku")||L3y()||DW(g.KJ(),
  992. "Xbox"))||(L=g.KJ(),L=DW(L,"AppleTV")||DW(L,"Apple TV")||DW(L,"CFNetwork")||DW(L,"tvOS")),L||(L=g.KJ(),L=DW(L,"sdk_google_atv_x86")||DW(L,"Android TV")),L=!L;L&&(Bu(),L=vu(el)===0);if(q=L){switch(Q.S9()){case 1:q6y(Q,"pv");break;case 2:T.g4(Q)}HH("pv")}L=l.toLowerCase();if(q=!q)q=wz(vf().sH,"ssmol")&&L==="loaded"?!1:g.CW(hHX,L);if(q&&Q.vg==0){PH!="i"&&(Mi.done=!1);q=v!==void 0?v.opt_nativeTime:void 0;Pf=q=typeof q==="number"?q:uL();Q.DY=!0;var Y=F6();Q.vg=1;Q.t9={};Q.t9.start=!1;Q.t9.firstquartile=
  993. !1;Q.t9.midpoint=!1;Q.t9.thirdquartile=!1;Q.t9.complete=!1;Q.t9.resume=!1;Q.t9.pause=!1;Q.t9.skip=!1;Q.t9.mute=!1;Q.t9.unmute=!1;Q.t9.viewable_impression=!1;Q.t9.measurable_impression=!1;Q.t9.fully_viewable_audible_half_duration_impression=!1;Q.t9.fullscreen=!1;Q.t9.exitfullscreen=!1;Q.DI=0;Y||(Q.OF().j=q);UX(Mi,[Q],!Y)}(q=Q.ZA[L])&&cU(Q.Sj,q);wz(vf().sH,"fmd")||g.CW(sy6,L)&&Q.yQ&&Q.yQ.S(Q,null);switch(Q.S9()){case 1:var U=me(L)?T.C.custom_metric_viewable:T.C[L];break;case 2:U=T.j[L]}if(U&&(l=U.call(T,
  994. Q,v,l),wz(vf().sH,"fmd")&&g.CW(sy6,L)&&Q.yQ&&Q.yQ.S(Q,null),l!==void 0)){v=G9(void 0,L);g.Is(v,l);l=v;break b}l=void 0}Q.vg==3&&T.iV(Q);T=l}else T=G9("nf",l);else T=void 0;else xB?T=G9("ue"):L?(T=G9(),g.Is(T,vMX(L,!0,!1,!1))):T=G9("nf");return typeof T==="string"?k.T():k.T(T)};
  995. CVT=function(T,Q){Q&&(T.Y=Q)};
  996. Bg6=function(T){var Q={};return Q.viewability=T.T,Q.googleViewability=T.S,Q};
  997. zH5=function(T,Q,k){k=k===void 0?{}:k;T=S6f(SC(Fn),Q,k,T);return Bg6(T)};
  998. EX=function(T){var Q=g.HT.apply(1,arguments).filter(Boolean).join("&");if(!Q)return T;var k=T.match(/[?&]adurl=/);return k?T.slice(0,k.index+1)+Q+"&"+T.slice(k.index+1):T+(T.indexOf("?")<0?"?":"&")+Q};
  999. yR=function(T,Q){return Q?"&"+T+"="+encodeURIComponent(Q):""};
  1000. XWC=function(T){var Q=T.url;T=T.dT9;this.S=Q;this.Y=T;this.L=(new Date).getTime()-17040672E5;this.T={};for(var k=/[?&]([^&=]+)=([^&]*)/g;T=k.exec(Q);)this.T[T[1]]=T[2]};
  1001. wWC=function(T){T=T.Y;if(!T)return"";var Q=yR("uap",T.platform)+yR("uapv",T.platformVersion)+yR("uafv",T.uaFullVersion)+yR("uaa",T.architecture)+yR("uam",T.model)+yR("uab",T.bitness);T.fullVersionList&&(Q+="&uafvl="+encodeURIComponent(T.fullVersionList.map(function(k){return encodeURIComponent(k.brand)+";"+encodeURIComponent(k.version)}).join("|")));
  1002. T.wow64!=null&&(Q+="&uaw="+Number(T.wow64));return Q.slice(1)};
  1003. A7y=function(T,Q,k,l,v){var L=window;var q=q===void 0?!1:q;var Y;k?Y=(q===void 0?0:q)?"//ep1.adtrafficquality.google/bg/"+ra(k)+".js":"//pagead2.googlesyndication.com/bg/"+ra(k)+".js":Y="";q=q===void 0?!1:q;k=L.document;var U={};Q&&(U._scs_=Q);U._bgu_=Y;U._bgp_=l;U._li_="v_h.3.0.0.0";v&&(U._upb_=v);(Q=L.GoogleTyFxhY)&&typeof Q.push=="function"||(Q=L.GoogleTyFxhY=[]);Q.push(U);Q=jO(k).createElement("SCRIPT");Q.type="text/javascript";Q.async=!0;T=(q===void 0?0:q)?g.Vw(dWu,ra(T)+".js"):g.Vw(Ngt,ra(T)+
  1004. ".js");g.SN(Q,T);(L=(L.GoogleTyFxhYEET||{})[Q.src])?L():k.getElementsByTagName("head")[0].appendChild(Q)};
  1005. b3u=function(){try{var T,Q;return!!((T=window)==null?0:(Q=T.top)==null?0:Q.location.href)&&!1}catch(k){return!0}};
  1006. ip=function(T,Q,k){k=k===void 0?Error():k;var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=T;Q+=":";k instanceof Error?(this.message=Q+k.message,this.stack=k.stack||""):(this.message=Q+String(k),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
  1007. Ty=function(){var T=r7g();T=T===void 0?"bevasrsg":T;return new Promise(function(Q){var k=window===window.top?window:b3u()?window:window.top,l=k[T],v;((v=l)==null?0:v.bevasrs)?Q(new VR(l.bevasrs)):(l||(l={},l=(l.nqfbel=[],l),k[T]=l),l.nqfbel.push(function(L){Q(new VR(L))}))})};
  1008. c76=function(T){var Q={c:T.uh,e:T.gi,mc:T.Nl,me:T.V0};T.Qo&&(Q.co={c:T.Qo.QN,a:T.Qo.VO,s:T.Qo.Hb});return Q};
  1009. QT=function(T){g.x.call(this);this.wpc=T};
  1010. VR=function(T){g.x.call(this);var Q=this;this.FI=T;this.L="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.S=void 0;this.S5=this.FI.p;this.Y=this.QT.bind(this);this.addOnDisposeCallback(function(){return void DW5(Q)})};
  1011. aUu=function(T){var Q;return g.a(function(k){if(k.S==1){if(!T.FI.wpc)throw new ip(30,"NWA");return T.T?k.return(T.T):g.c(k,T.FI.wpc(),2)}Q=k.T;T.T=new QT(Q);return k.return(T.T)})};
  1012. DW5=function(T){T.S!==void 0&&(T.L.forEach(function(Q){var k;(k=T.S)==null||k.removeEventListener(Q,T.Y)}),T.S=void 0)};
  1013. ub5=function(T){var Q=Q===void 0?50:Q;var k=[];dL(T,jH,6).forEach(function(l){rL(l,2)<=Q&&k.push(rL(l,1))});
  1014. return k};
  1015. nAy=function(T){var Q=Q===void 0?50:Q;var k=[];dL(T,jH,6).forEach(function(l){rL(l,2)>Q&&k.push(rL(l,1))});
  1016. return k};
  1017. Ks5=function(T){T.then(function(){},function(){})};
  1018. kf=function(){g.x.apply(this,arguments);this.S=1;this[xWJ]=this.dispose};
  1019. lr=function(T){return{fieldType:2,fieldName:T}};
  1020. g.ol=function(T){return{fieldType:3,fieldName:T}};
  1021. PVt=function(T){this.T=T;T.Wq("/client_streamz/bg/frs",g.ol("mk"))};
  1022. H3I=function(T){this.T=T;T.Wq("/client_streamz/bg/wrl",g.ol("mn"),lr("ac"),lr("sc"),g.ol("rk"),g.ol("mk"))};
  1023. tY5=function(T){this.T=T;T.Rw("/client_streamz/bg/ec",g.ol("en"),g.ol("mk"))};
  1024. O3u=function(T){this.T=T;T.Wq("/client_streamz/bg/el",g.ol("en"),g.ol("mk"))};
  1025. pWu=function(T){this.T=T;T.Rw("/client_streamz/bg/cec",lr("ec"),g.ol("mk"))};
  1026. WsX=function(T){this.T=T;T.Rw("/client_streamz/bg/po/csc",lr("cs"),g.ol("mk"))};
  1027. $WH=function(T){this.T=T;T.Rw("/client_streamz/bg/po/ctav",g.ol("av"),g.ol("mk"))};
  1028. J7J=function(T){this.T=T;T.Rw("/client_streamz/bg/po/cwsc",g.ol("su"),g.ol("mk"))};
  1029. eHg=function(T){this.g5=JP(T)};
  1030. Fsg=function(T,Q){return Na5(T,Q,iJI)};
  1031. vc=function(T){this.g5=JP(T)};
  1032. LS=function(T){this.g5=JP(T)};
  1033. qw=function(T){this.g5=JP(T)};
  1034. gI=function(T){this.g5=JP(T)};
  1035. Mw=function(T){this.g5=JP(T)};
  1036. Yf=function(T){this.g5=JP(T)};
  1037. EAI=function(T){this.g5=JP(T)};
  1038. VYy=function(T){var Q=new Yf;Q=xM(Q,1,T.S);var k=y75(T);Q=Na5(Q,k,MNJ);k=[];for(var l=[],v=g.B(T.T.keys()),L=v.next();!L.done;L=v.next())l.push(L.value.split(","));for(v=0;v<l.length;v++){L=l[v];for(var q=T.Y,Y=T.Zj(L)||[],U=[],R=0;R<Y.length;R++){var Z=Y[R],f=Z&&Z.T;Z=new LS;switch(q){case 3:f=Number(f);Number.isFinite(f)&&mn(Z,1,Uc,XW(f));break;case 2:mn(Z,2,Uc,Yy(Number(f)))}U.push(Z)}q=U;for(Y=0;Y<q.length;Y++){U=q[Y];R=new qw;U=Ns(R,LS,2,U);R=[];Z=i3T(T);for(f=0;f<Z.length;f++){var G=Z[f],m=
  1039. L[f],I=new vc;switch(G){case 3:mn(I,1,Rl,Nr(String(m)));break;case 2:G=Number(m);Number.isFinite(G)&&mn(I,2,Rl,f2(G));break;case 1:mn(I,3,Rl,Uv(m==="true"))}R.push(I)}AK(U,vc,1,R);k.push(U)}}AK(Q,qw,4,k);return Q};
  1040. Tyt=function(T){if(!T)return"";if(/^about:(?:blank|srcdoc)$/.test(T))return window.origin||"";T.indexOf("blob:")===0&&(T=T.substring(5));T=T.split("#")[0].split("?")[0];T=T.toLowerCase();T.indexOf("//")==0&&(T=window.location.protocol+T);/^[\w\-]*:\/\//.test(T)||(T=window.location.href);var Q=T.substring(T.indexOf("://")+3),k=Q.indexOf("/");k!=-1&&(Q=Q.substring(0,k));k=T.substring(0,T.indexOf("://"));if(!k)throw Error("URI is missing protocol: "+T);if(k!=="http"&&k!=="https"&&k!=="chrome-extension"&&
  1041. k!=="moz-extension"&&k!=="file"&&k!=="android-app"&&k!=="chrome-search"&&k!=="chrome-untrusted"&&k!=="chrome"&&k!=="app"&&k!=="devtools")throw Error("Invalid URI scheme in origin: "+k);T="";var l=Q.indexOf(":");if(l!=-1){var v=Q.substring(l+1);Q=Q.substring(0,l);if(k==="http"&&v!=="80"||k==="https"&&v!=="443")T=":"+v}return k+"://"+Q+T};
  1042. Qqu=function(){function T(){v[0]=1732584193;v[1]=4023233417;v[2]=2562383102;v[3]=271733878;v[4]=3285377520;Z=R=0}
  1043. function Q(f){for(var G=q,m=0;m<64;m+=4)G[m/4]=f[m]<<24|f[m+1]<<16|f[m+2]<<8|f[m+3];for(m=16;m<80;m++)f=G[m-3]^G[m-8]^G[m-14]^G[m-16],G[m]=(f<<1|f>>>31)&4294967295;f=v[0];var I=v[1],z=v[2],w=v[3],r=v[4];for(m=0;m<80;m++){if(m<40)if(m<20){var A=w^I&(z^w);var D=1518500249}else A=I^z^w,D=1859775393;else m<60?(A=I&z|w&(I|z),D=2400959708):(A=I^z^w,D=3395469782);A=((f<<5|f>>>27)&4294967295)+A+r+D+G[m]&4294967295;r=w;w=z;z=(I<<30|I>>>2)&4294967295;I=f;f=A}v[0]=v[0]+f&4294967295;v[1]=v[1]+I&4294967295;v[2]=
  1044. v[2]+z&4294967295;v[3]=v[3]+w&4294967295;v[4]=v[4]+r&4294967295}
  1045. function k(f,G){if(typeof f==="string"){f=unescape(encodeURIComponent(f));for(var m=[],I=0,z=f.length;I<z;++I)m.push(f.charCodeAt(I));f=m}G||(G=f.length);m=0;if(R==0)for(;m+64<G;)Q(f.slice(m,m+64)),m+=64,Z+=64;for(;m<G;)if(L[R++]=f[m++],Z++,R==64)for(R=0,Q(L);m+64<G;)Q(f.slice(m,m+64)),m+=64,Z+=64}
  1046. function l(){var f=[],G=Z*8;R<56?k(Y,56-R):k(Y,64-(R-56));for(var m=63;m>=56;m--)L[m]=G&255,G>>>=8;Q(L);for(m=G=0;m<5;m++)for(var I=24;I>=0;I-=8)f[G++]=v[m]>>I&255;return f}
  1047. for(var v=[],L=[],q=[],Y=[128],U=1;U<64;++U)Y[U]=0;var R,Z;T();return{reset:T,update:k,digest:l,KF:function(){for(var f=l(),G="",m=0;m<f.length;m++)G+="0123456789ABCDEF".charAt(Math.floor(f[m]/16))+"0123456789ABCDEF".charAt(f[m]%16);return G}}};
  1048. kg5=function(T,Q,k){var l=String(g.VC.location.href);return l&&T&&Q?[Q,jqT(Tyt(l),T,k||null)].join(" "):null};
  1049. jqT=function(T,Q,k){var l=[],v=[];if((Array.isArray(k)?2:1)==1)return v=[Q,T],g.EA(l,function(Y){v.push(Y)}),lz5(v.join(" "));
  1050. var L=[],q=[];g.EA(k,function(Y){q.push(Y.key);L.push(Y.value)});
  1051. k=Math.floor((new Date).getTime()/1E3);v=L.length==0?[k,Q,T]:[L.join(":"),k,Q,T];g.EA(l,function(Y){v.push(Y)});
  1052. T=lz5(v.join(" "));T=[k,T];q.length==0||T.push(q.join(""));return T.join("_")};
  1053. lz5=function(T){var Q=Qqu();Q.update(T);return Q.KF().toLowerCase()};
  1054. ZB=function(T){this.T=T||{cookie:""}};
  1055. fS=function(T){T=(T.T.cookie||"").split(";");for(var Q=[],k=[],l,v,L=0;L<T.length;L++)v=as(T[L]),l=v.indexOf("="),l==-1?(Q.push(""),k.push(v)):(Q.push(v.substring(0,l)),k.push(v.substring(l+1)));return{keys:Q,values:k}};
  1056. o4X=function(){var T=g.VC.__SAPISID||g.VC.__APISID||g.VC.__3PSAPISID||g.VC.__1PSAPISID||g.VC.__OVERRIDE_SID;if(T)return!0;typeof document!=="undefined"&&(T=new ZB(document),T=T.get("SAPISID")||T.get("APISID")||T.get("__Secure-3PAPISID")||T.get("__Secure-1PAPISID"));return!!T};
  1057. v4y=function(T,Q,k,l){(T=g.VC[T])||typeof document==="undefined"||(T=(new ZB(document)).get(Q));return T?kg5(T,k,l):null};
  1058. LCt=function(T){var Q=Tyt(g.VC==null?void 0:g.VC.location.href),k=[];if(o4X()){Q=Q.indexOf("https:")==0||Q.indexOf("chrome-extension:")==0||Q.indexOf("chrome-untrusted://new-tab-page")==0||Q.indexOf("moz-extension:")==0;var l=Q?g.VC.__SAPISID:g.VC.__APISID;l||typeof document==="undefined"||(l=new ZB(document),l=l.get(Q?"SAPISID":"APISID")||l.get("__Secure-3PAPISID"));(l=l?kg5(l,Q?"SAPISIDHASH":"APISIDHASH",T):null)&&k.push(l);Q&&((Q=v4y("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",T))&&k.push(Q),
  1059. (T=v4y("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",T))&&k.push(T))}return k.length==0?null:k.join(" ")};
  1060. Gy=function(){};
  1061. mf=function(T){this.g5=JP(T)};
  1062. Il=function(T,Q){this.intervalMs=T;this.callback=Q;this.enabled=!1;this.T=function(){return g.R_()};
  1063. this.S=this.T()};
  1064. hz=function(T){this.g5=JP(T)};
  1065. sc=function(T){this.g5=JP(T)};
  1066. SH=function(T){this.g5=JP(T)};
  1067. CS=function(T){this.g5=JP(T)};
  1068. Bc=function(T){this.g5=JP(T)};
  1069. qDX=function(T){AK(zy,CS,1,T)};
  1070. Xz=function(T){this.g5=JP(T)};
  1071. Mlg=function(T,Q){Q=Q===void 0?g4C:Q;if(!wI){var k;T=(k=T.navigator)==null?void 0:k.userAgentData;if(!T||typeof T.getHighEntropyValues!=="function"||T.brands&&typeof T.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));qDX((T.brands||[]).map(function(v){var L=new CS;L=xM(L,1,v.brand);return xM(L,2,v.version)}));
  1072. typeof T.mobile==="boolean"&&lq(zy,2,Uv(T.mobile));wI=T.getHighEntropyValues(Q)}var l=new Set(Q);return wI.then(function(v){var L=zy.clone();l.has("platform")&&xM(L,3,v.platform);l.has("platformVersion")&&xM(L,4,v.platformVersion);l.has("architecture")&&xM(L,5,v.architecture);l.has("model")&&xM(L,6,v.model);l.has("uaFullVersion")&&xM(L,7,v.uaFullVersion);return L.xo()}).catch(function(){return zy.xo()})};
  1073. dI=function(T){this.g5=JP(T)};
  1074. YDT=function(T){return HS(T,1,1)};
  1075. UTt=function(T){this.g5=JP(T)};
  1076. Nw=function(T){this.g5=JP(T,4)};
  1077. Az=function(T){this.g5=JP(T,36)};
  1078. br=function(T){this.g5=JP(T,19)};
  1079. cc=function(T,Q){this.Ok=Q=Q===void 0?!1:Q;this.uach=this.locale=null;this.S=0;this.isFinal=!1;this.T=new br;Number.isInteger(T)&&this.T.yu(T);Q||(this.locale=document.documentElement.getAttribute("lang"));rI(this,new dI)};
  1080. rI=function(T,Q){Ns(T.T,dI,1,Q);a2(Q,1)||YDT(Q);T.Ok||(Q=DB(T),Df(Q,5)||xM(Q,5,T.locale));T.uach&&(Q=DB(T),Cg(Q,Bc,9)||Ns(Q,Bc,9,T.uach))};
  1081. RVX=function(T,Q){T.S=Q};
  1082. fzI=function(T){var Q=Q===void 0?g4C:Q;var k=T.Ok?void 0:U$();k?Mlg(k,Q).then(function(l){T.uach=ZIT(l!=null?l:"[]");l=DB(T);Ns(l,Bc,9,T.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
  1083. DB=function(T){var Q=Cg(T.T,dI,1);Q||(Q=new dI,rI(T,Q));T=Q;Q=Cg(T,Xz,11);Q||(Q=new Xz,Ns(T,Xz,11,Q));return Q};
  1084. g.al=function(T,Q,k,l){this.Y=T;this.N=Q;this.T=this.L=T;this.B=k||0;this.C=l||2};
  1085. g.ur=function(T){T.T=Math.min(T.N,T.T*T.C);T.L=Math.min(T.N,T.T+(T.B?Math.round(T.B*(Math.random()-.5)*2*T.T):0));T.S++};
  1086. jl=function(T){this.g5=JP(T,8)};
  1087. sOu=function(T){this.g5=JP(T)};
  1088. xf=function(T){g.x.call(this);var Q=this;this.componentId="";this.T=[];this.sK="";this.pageId=null;this.Jj=this.xm=-1;this.C=this.experimentIds=null;this.B=this.Y=0;this.D=null;this.qO=this.hj=0;this.p_=1;this.timeoutMillis=0;this.i9=!1;this.logSource=T.logSource;this.Kw=T.Kw||function(){};
  1089. this.L=new cc(T.logSource,T.Ok);this.network=T.network||null;this.Ht=T.Ht||null;this.j=T.aGV||null;this.sessionIndex=T.sessionIndex||null;this.td=T.td||!1;this.logger=null;this.withCredentials=!T.Ha;this.Ok=T.Ok||!1;this.z9=!this.Ok&&!!U$()&&!!U$().navigator&&U$().navigator.sendBeacon!==void 0;this.Bd=typeof URLSearchParams!=="undefined"&&!!(new URL(nS())).searchParams&&!!(new URL(nS())).searchParams.set;var k=YDT(new dI);rI(this.L,k);this.N=new g.al(1E4,3E5,.1);T=Ggu(this,T.jq);this.S=new Il(this.N.getValue(),
  1090. T);this.e6=new Il(6E5,T);this.td||this.e6.start();this.Ok||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){KS(Q);var l;(l=Q.D)==null||l.flush()}}),document.addEventListener("pagehide",function(){KS(Q);
  1091. var l;(l=Q.D)==null||l.flush()}))};
  1092. Ggu=function(T,Q){return T.Bd?Q?function(){Q().then(function(){T.flush()})}:function(){T.flush()}:function(){}};
  1093. mTI=function(T){T.j||(T.j=nS());try{return(new URL(T.j)).toString()}catch(Q){return(new URL(T.j,U$().location.origin)).toString()}};
  1094. Pc=function(T,Q,k){T.D&&T.D.ML(Q,k)};
  1095. Iz5=function(T,Q,k){k=k===void 0?null:k;var l=l===void 0?T.withCredentials:l;var v={},L=new URL(mTI(T));k&&(v.Authorization=k);T.sessionIndex&&(v["X-Goog-AuthUser"]=T.sessionIndex,L.searchParams.set("authuser",T.sessionIndex));T.pageId&&(Object.defineProperty(v,"X-Goog-PageId",{value:T.pageId}),L.searchParams.set("pageId",T.pageId));return{url:L.toString(),body:Q,aJ:1,requestHeaders:v,requestType:"POST",withCredentials:l,timeoutMillis:T.timeoutMillis}};
  1096. KS=function(T){T.L.isFinal=!0;T.flush();T.L.isFinal=!1};
  1097. sqf=function(T){hVI(T,function(Q,k){Q=new URL(Q);Q.searchParams.set("format","json");var l=!1;try{l=U$().navigator.sendBeacon(Q.toString(),k.xo())}catch(v){}l||(T.z9=!1);return l})};
  1098. hVI=function(T,Q){if(T.T.length!==0){var k=new URL(mTI(T));k.searchParams.delete("format");var l=T.Kw();l&&k.searchParams.set("auth",l);k.searchParams.set("authuser",T.sessionIndex||"0");for(l=0;l<10&&T.T.length;++l){var v=T.T.slice(0,32),L=T.L.build(v,T.Y,T.B,T.Ht,T.hj,T.qO);if(!Q(k.toString(),L)){++T.B;break}T.Y=0;T.B=0;T.hj=0;T.qO=0;T.T=T.T.slice(v.length)}T.S.enabled&&T.S.stop()}};
  1099. nS=function(){return"https://play.google.com/log?format=json&hasfast=true"};
  1100. Hc=function(){this.lT=typeof AbortController!=="undefined"};
  1101. tz=function(T,Q){Q=Q===void 0?"0":Q;g.x.call(this);this.logSource=T;this.sessionIndex=Q;this.dS="https://play.google.com/log?format=json&hasfast=true";this.S=null;this.Y=!1;this.network=null;this.componentId="";this.T=this.Ht=null;this.L=!1;this.pageId=null};
  1102. SDX=function(T,Q){T.S=Q;return T};
  1103. CLJ=function(T,Q){T.network=Q;return T};
  1104. By5=function(T,Q){T.T=Q};
  1105. zVJ=function(T){T.L=!0;return T};
  1106. Oc=function(T,Q,k,l,v,L,q){T=T===void 0?-1:T;Q=Q===void 0?"":Q;k=k===void 0?"":k;l=l===void 0?!1:l;v=v===void 0?"":v;g.x.call(this);this.logSource=T;this.componentId=Q;L?Q=L:(T=new tz(T,"0"),T.componentId=Q,g.P(this,T),k!==""&&(T.dS=k),l&&(T.Y=!0),v&&SDX(T,v),q&&CLJ(T,q),Q=T.build());this.T=Q};
  1107. XfX=function(T){this.T=T};
  1108. pS=function(T,Q,k){this.S=T;this.Y=Q;this.fields=k||[];this.T=new Map};
  1109. i3T=function(T){return T.fields.map(function(Q){return Q.fieldType})};
  1110. y75=function(T){return T.fields.map(function(Q){return Q.fieldName})};
  1111. Wc=function(T,Q){pS.call(this,T,3,Q)};
  1112. $f=function(T,Q){pS.call(this,T,2,Q)};
  1113. g.Jz=function(T,Q){this.type=T;this.currentTarget=this.target=Q;this.defaultPrevented=this.S=!1};
  1114. eH=function(T,Q){g.Jz.call(this,T?T.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.T=null;T&&this.init(T,Q)};
  1115. Fz=function(T){return!(!T||!T[wfb])};
  1116. NyH=function(T,Q,k,l,v){this.listener=T;this.proxy=null;this.src=Q;this.type=k;this.capture=!!l;this.Qp=v;this.key=++dTy;this.removed=this.fK=!1};
  1117. Ec=function(T){T.removed=!0;T.listener=null;T.proxy=null;T.src=null;T.Qp=null};
  1118. yT=function(T){this.src=T;this.listeners={};this.T=0};
  1119. g.ir=function(T,Q){var k=Q.type;k in T.listeners&&g.zv(T.listeners[k],Q)&&(Ec(Q),T.listeners[k].length==0&&(delete T.listeners[k],T.T--))};
  1120. VT=function(T,Q,k,l){for(var v=0;v<T.length;++v){var L=T[v];if(!L.removed&&L.listener==Q&&L.capture==!!k&&L.Qp==l)return v}return-1};
  1121. g.Qu=function(T,Q,k,l,v){if(l&&l.once)return Tl(T,Q,k,l,v);if(Array.isArray(Q)){for(var L=0;L<Q.length;L++)g.Qu(T,Q[L],k,l,v);return null}k=k3(k);return Fz(T)?T.listen(Q,k,g.vm(l)?!!l.capture:!!l,v):A3C(T,Q,k,!1,l,v)};
  1122. A3C=function(T,Q,k,l,v,L){if(!Q)throw Error("Invalid event type");var q=g.vm(v)?!!v.capture:!!v,Y=lo(T);Y||(T[oS]=Y=new yT(T));k=Y.add(Q,k,l,q,L);if(k.proxy)return k;l=bIf();k.proxy=l;l.src=T;l.listener=k;if(T.addEventListener)r3T||(v=q),v===void 0&&(v=!1),T.addEventListener(Q.toString(),l,v);else if(T.attachEvent)T.attachEvent(c3g(Q.toString()),l);else if(T.addListener&&T.removeListener)T.addListener(l);else throw Error("addEventListener and attachEvent are unavailable.");DTb++;return k};
  1123. bIf=function(){function T(k){return Q.call(T.src,T.listener,k)}
  1124. var Q=azI;return T};
  1125. Tl=function(T,Q,k,l,v){if(Array.isArray(Q)){for(var L=0;L<Q.length;L++)Tl(T,Q[L],k,l,v);return null}k=k3(k);return Fz(T)?T.XC(Q,k,g.vm(l)?!!l.capture:!!l,v):A3C(T,Q,k,!0,l,v)};
  1126. u6X=function(T,Q,k,l,v){if(Array.isArray(Q))for(var L=0;L<Q.length;L++)u6X(T,Q[L],k,l,v);else l=g.vm(l)?!!l.capture:!!l,k=k3(k),Fz(T)?T.J6(Q,k,l,v):T&&(T=lo(T))&&(Q=T.Nz(Q,k,l,v))&&Y3(Q)};
  1127. Y3=function(T){if(typeof T!=="number"&&T&&!T.removed){var Q=T.src;if(Fz(Q))g.ir(Q.rA,T);else{var k=T.type,l=T.proxy;Q.removeEventListener?Q.removeEventListener(k,l,T.capture):Q.detachEvent?Q.detachEvent(c3g(k),l):Q.addListener&&Q.removeListener&&Q.removeListener(l);DTb--;(k=lo(Q))?(g.ir(k,T),k.T==0&&(k.src=null,Q[oS]=null)):Ec(T)}}};
  1128. c3g=function(T){return T in RS?RS[T]:RS[T]="on"+T};
  1129. azI=function(T,Q){if(T.removed)T=!0;else{Q=new eH(Q,this);var k=T.listener,l=T.Qp||T.src;T.fK&&Y3(T);T=k.call(l,Q)}return T};
  1130. lo=function(T){T=T[oS];return T instanceof yT?T:null};
  1131. k3=function(T){if(typeof T==="function")return T;T[ZT]||(T[ZT]=function(Q){return T.handleEvent(Q)});
  1132. return T[ZT]};
  1133. g.fL=function(){g.x.call(this);this.rA=new yT(this);this.ZE=this;this.Za=null};
  1134. Gl=function(T,Q,k,l){Q=T.rA.listeners[String(Q)];if(!Q)return!0;Q=Q.concat();for(var v=!0,L=0;L<Q.length;++L){var q=Q[L];if(q&&!q.removed&&q.capture==k){var Y=q.listener,U=q.Qp||q.src;q.fK&&g.ir(T.rA,q);v=Y.call(U,l)!==!1&&v}}return v&&!l.defaultPrevented};
  1135. m5=function(T,Q){this.L=T;this.Y=Q;this.S=0;this.T=null};
  1136. n45=function(T,Q){T.Y(Q);T.S<100&&(T.S++,Q.next=T.T,T.T=Q)};
  1137. sJ=function(T){T=IS(T);hd||(hd=KCH());hd(T)};
  1138. KCH=function(){if(typeof MessageChannel!=="undefined"){var T=new MessageChannel,Q={},k=Q;T.port1.onmessage=function(){if(Q.next!==void 0){Q=Q.next;var l=Q.W2;Q.W2=null;l()}};
  1139. return function(l){k.next={W2:l};k=k.next;T.port2.postMessage(0)}}return function(l){g.VC.setTimeout(l,0)}};
  1140. Sa=function(){this.S=this.T=null};
  1141. CL=function(){this.next=this.scope=this.T=null};
  1142. g.Ad=function(T,Q){B4||xT6();zl||(B4(),zl=!0);PL6.add(T,Q)};
  1143. xT6=function(){var T=Promise.resolve(void 0);B4=function(){T.then(HIX)}};
  1144. HIX=function(){for(var T;T=PL6.remove();){try{T.T.call(T.scope)}catch(Q){X1(Q)}n45(tlH,T)}zl=!1};
  1145. g.rc=function(T){this.T=0;this.C=void 0;this.Y=this.S=this.L=null;this.N=this.B=!1;if(T!=g.DM)try{var Q=this;T.call(void 0,function(k){bo(Q,2,k)},function(k){bo(Q,3,k)})}catch(k){bo(this,3,k)}};
  1146. OIC=function(){this.next=this.context=this.S=this.L=this.T=null;this.Y=!1};
  1147. c4=function(T,Q,k){var l=pfI.get();l.L=T;l.S=Q;l.context=k;return l};
  1148. g.DT=function(T){if(T instanceof g.rc)return T;var Q=new g.rc(g.DM);bo(Q,2,T);return Q};
  1149. aS=function(T){return new g.rc(function(Q,k){k(T)})};
  1150. g.$T5=function(T,Q,k){WCH(T,Q,k,null)||g.Ad(g.YE(Q,T))};
  1151. J35=function(T){return new g.rc(function(Q,k){T.length||Q(void 0);for(var l,v=0;v<T.length;v++)l=T[v],g.$T5(l,Q,k)})};
  1152. eVf=function(T,Q,k,l){uo(T,c4(Q||g.DM,k||null,l))};
  1153. g.nL=function(T,Q){Q=IS(Q);Q=c4(Q,Q);Q.Y=!0;uo(T,Q);return T};
  1154. FCJ=function(T,Q){if(T.T==0)if(T.L){var k=T.L;if(k.S){for(var l=0,v=null,L=null,q=k.S;q&&(q.Y||(l++,q.T==T&&(v=q),!(v&&l>1)));q=q.next)v||(L=q);v&&(k.T==0&&l==1?FCJ(k,Q):(L?(l=L,l.next==k.Y&&(k.Y=l),l.next=l.next.next):E45(k),y36(k,v,3,Q)))}T.L=null}else bo(T,3,Q)};
  1155. uo=function(T,Q){T.S||T.T!=2&&T.T!=3||iI5(T);T.Y?T.Y.next=Q:T.S=Q;T.Y=Q};
  1156. Vlf=function(T,Q,k,l){var v=c4(null,null,null);v.T=new g.rc(function(L,q){v.L=Q?function(Y){try{var U=Q.call(l,Y);L(U)}catch(R){q(R)}}:L;
  1157. v.S=k?function(Y){try{var U=k.call(l,Y);U===void 0&&Y instanceof KL?q(Y):L(U)}catch(R){q(R)}}:q});
  1158. v.T.L=T;uo(T,v);return v.T};
  1159. bo=function(T,Q,k){T.T==0&&(T===k&&(Q=3,k=new TypeError("Promise cannot resolve to itself")),T.T=1,WCH(k,T.K0d,T.Gbj,T)||(T.C=k,T.T=Q,T.L=null,iI5(T),Q!=3||k instanceof KL||TR5(T,k)))};
  1160. WCH=function(T,Q,k,l){if(T instanceof g.rc)return eVf(T,Q,k,l),!0;if(T)try{var v=!!T.$goog_Thenable}catch(q){v=!1}else v=!1;if(v)return T.then(Q,k,l),!0;if(g.vm(T))try{var L=T.then;if(typeof L==="function")return QdX(T,L,Q,k,l),!0}catch(q){return k.call(l,q),!0}return!1};
  1161. QdX=function(T,Q,k,l,v){function L(U){Y||(Y=!0,l.call(v,U))}
  1162. function q(U){Y||(Y=!0,k.call(v,U))}
  1163. var Y=!1;try{Q.call(T,q,L)}catch(U){L(U)}};
  1164. iI5=function(T){T.B||(T.B=!0,g.Ad(T.kJ,T))};
  1165. E45=function(T){var Q=null;T.S&&(Q=T.S,T.S=Q.next,Q.next=null);T.S||(T.Y=null);return Q};
  1166. y36=function(T,Q,k,l){if(k==3&&Q.S&&!Q.Y)for(;T&&T.N;T=T.L)T.N=!1;if(Q.T)Q.T.L=null,jdy(Q,k,l);else try{Q.Y?Q.L.call(Q.context):jdy(Q,k,l)}catch(v){kJJ.call(null,v)}n45(pfI,Q)};
  1167. jdy=function(T,Q,k){Q==2?T.L.call(T.context,k):T.S&&T.S.call(T.context,k)};
  1168. TR5=function(T,Q){T.N=!0;g.Ad(function(){T.N&&kJJ.call(null,Q)})};
  1169. KL=function(T){Gv.call(this,T)};
  1170. g.x3=function(T,Q){g.fL.call(this);this.d8=T||1;this.e5=Q||g.VC;this.Gl=(0,g.Mp)(this.Nwq,this);this.I7=g.R_()};
  1171. g.P4=function(T,Q,k){if(typeof T==="function")k&&(T=(0,g.Mp)(T,k));else if(T&&typeof T.handleEvent=="function")T=(0,g.Mp)(T.handleEvent,T);else throw Error("Invalid listener argument");return Number(Q)>2147483647?-1:g.VC.setTimeout(T,Q||0)};
  1172. H4=function(T,Q){var k=null;return(new g.rc(function(l,v){k=g.P4(function(){l(Q)},T);
  1173. k==-1&&v(Error("Failed to schedule timer."))})).kE(function(l){g.VC.clearTimeout(k);
  1174. throw l;})};
  1175. g.td=function(T){g.x.call(this);this.C=T;this.Y=0;this.L=100;this.N=!1;this.S=new Map;this.B=new Set;this.flushInterval=3E4;this.T=new g.x3(this.flushInterval);this.T.listen("tick",this.xq,!1,this);g.P(this,this.T)};
  1176. l76=function(T){T.T.enabled||T.T.start();T.Y++;T.Y>=T.L&&T.xq()};
  1177. o6t=function(T,Q){return T.B.has(Q)?void 0:T.S.get(Q)};
  1178. v6X=function(T){for(var Q=0;Q<T.length;Q++)T[Q].clear()};
  1179. Lh5=function(T){switch(T){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
  1180. qB5=function(T){switch(T){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
  1181. default:return""}};
  1182. OJ=function(T,Q,k){k=k===void 0?{}:k;Q=Error.call(this,Q);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=T;this.metadata=k;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
  1183. g.pL=function(T){return(new g6f).xo(T)};
  1184. g6f=function(){};
  1185. W4=function(T,Q,k){if(Q==null)k.push("null");else{if(typeof Q=="object"){if(Array.isArray(Q)){var l=Q;Q=l.length;k.push("[");for(var v="",L=0;L<Q;L++)k.push(v),W4(T,l[L],k),v=",";k.push("]");return}if(Q instanceof String||Q instanceof Number||Q instanceof Boolean)Q=Q.valueOf();else{k.push("{");v="";for(l in Q)Object.prototype.hasOwnProperty.call(Q,l)&&(L=Q[l],typeof L!="function"&&(k.push(v),Myy(l,k),k.push(":"),W4(T,L,k),v=","));k.push("}");return}}switch(typeof Q){case "string":Myy(Q,k);break;case "number":k.push(isFinite(Q)&&
  1186. !isNaN(Q)?String(Q):"null");break;case "boolean":k.push(String(Q));break;case "function":k.push("null");break;default:throw Error("Unknown type: "+typeof Q);}}};
  1187. Myy=function(T,Q){Q.push('"',T.replace(YBJ,function(k){var l=UVI[k];l||(l="\\u"+(k.charCodeAt(0)|65536).toString(16).slice(1),UVI[k]=l);return l}),'"')};
  1188. RQf=function(T){switch(T){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
  1189. ZCt=function(){};
  1190. $3=function(){};
  1191. g.Jd=function(T){g.fL.call(this);this.headers=new Map;this.i9=T||null;this.L=!1;this.T=null;this.j="";this.S=0;this.Y="";this.N=this.hj=this.D=this.qO=!1;this.z9=0;this.B=null;this.xm="";this.C=!1};
  1192. GJJ=function(T,Q,k,l,v,L,q){var Y=new g.Jd;f7y.push(Y);Q&&Y.listen("complete",Q);Y.XC("ready",Y.EX);L&&(Y.z9=Math.max(0,L));q&&(Y.C=q);Y.send(T,k,l,v)};
  1193. I7b=function(T,Q){T.L=!1;T.T&&(T.N=!0,T.T.abort(),T.N=!1);T.Y=Q;T.S=5;mVX(T);ea(T)};
  1194. mVX=function(T){T.qO||(T.qO=!0,T.dispatchEvent("complete"),T.dispatchEvent("error"))};
  1195. hQy=function(T){if(T.L&&typeof F_!="undefined")if(T.D&&g.EJ(T)==4)setTimeout(T.cX.bind(T),0);else if(T.dispatchEvent("readystatechange"),T.isComplete()){T.getStatus();T.L=!1;try{if(yu(T))T.dispatchEvent("complete"),T.dispatchEvent("success");else{T.S=6;try{var Q=g.EJ(T)>2?T.T.statusText:""}catch(k){Q=""}T.Y=Q+" ["+T.getStatus()+"]";mVX(T)}}finally{ea(T)}}};
  1196. ea=function(T,Q){if(T.T){T.B&&(clearTimeout(T.B),T.B=null);var k=T.T;T.T=null;Q||T.dispatchEvent("ready");try{k.onreadystatechange=null}catch(l){}}};
  1197. yu=function(T){var Q=T.getStatus();a:switch(Q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break a;default:k=!1}if(!k){if(Q=Q===0)T=g.UD(String(T.j))[1]||null,!T&&g.VC.self&&g.VC.self.location&&(T=g.VC.self.location.protocol.slice(0,-1)),Q=!sd5.test(T?T.toLowerCase():"");k=Q}return k};
  1198. g.EJ=function(T){return T.T?T.T.readyState:0};
  1199. g.io=function(T){try{return T.T?T.T.responseText:""}catch(Q){return""}};
  1200. g.Vu=function(T){try{if(!T.T)return null;if("response"in T.T)return T.T.response;switch(T.xm){case "":case "text":return T.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in T.T)return T.T.mozResponseArrayBuffer}return null}catch(Q){return null}};
  1201. g.SBb=function(T){var Q={};T=(T.T&&g.EJ(T)>=2?T.T.getAllResponseHeaders()||"":"").split("\r\n");for(var k=0;k<T.length;k++)if(!g.bB(T[k])){var l=Gvf(T[k]),v=l[0];l=l[1];if(typeof l==="string"){l=l.trim();var L=Q[v]||[];Q[v]=L;L.push(l)}}return Q2(Q,function(q){return q.join(", ")})};
  1202. g.Tc=function(T,Q){return T.T?T.T.getResponseHeader(Q):null};
  1203. Q9=function(){};
  1204. k2=function(T,Q){this.logger=T;this.event=Q;this.startTime=jh()};
  1205. lH=function(){kf.apply(this,arguments);this.dn={ue:function(){return[]}}};
  1206. o5=function(T,Q,k){var l=jh();Q=Q();T.RA(k,jh()-l);return Q};
  1207. vn=function(){lH.apply(this,arguments)};
  1208. Li=function(T){lH.call(this);var Q=this;this.logger=T;this.dn={PXK:function(){return Q.logger},
  1209. ue:function(){return Q.logger.dn.ue()}};
  1210. this.addOnDisposeCallback(function(){return void Q.logger.dispose()})};
  1211. ClH=function(T,Q,k,l,v){T=zVJ(CLJ(SDX(new tz(1828,"0"),T),new Q9));Q.length&&By5(T,Fsg(new eHg,Q));l!==void 0&&(T.dS=l);v&&T.Ha();var L=new Oc(1828,"","",!1,"",T.build());g.P(L,T);var q=new g.td({flush:function(Y){try{L.flush(Y)}catch(U){k(U)}}});
  1212. q.addOnDisposeCallback(function(){setTimeout(function(){try{q.xq()}finally{L.dispose()}})});
  1213. q.L=1E5;q.flushInterval=3E4;q.T.setInterval(3E4);return q};
  1214. BRJ=function(T,Q){g.x.call(this);var k=this;this.callback=T;this.S=Q;this.T=-Q;this.addOnDisposeCallback(function(){return void clearTimeout(k.timer)})};
  1215. zQX=function(T){if(T.timer===void 0){var Q=Math.max(0,T.T+T.S-jh());T.timer=setTimeout(function(){try{T.callback()}finally{T.T=jh(),T.timer=void 0}},Q)}};
  1216. qS=function(T,Q){lH.call(this);this.metrics=T;this.XJ=Q};
  1217. gb=function(T,Q){Q=Q===void 0?[]:Q;var k={XJ:T.XJ||"_",rL:T.rL||[],xS:T.xS|0,dS:T.dS,disableClearcutCredentialBinding:T.disableClearcutCredentialBinding,PC:T.PC||function(){},
  1218. Ww:T.Ww||function(L,q){return ClH(L,q,k.PC,k.dS,k.disableClearcutCredentialBinding)}},l=k.Ww("50",k.rL.concat(Q));
  1219. qS.call(this,{geB:new PVt(l),errorCount:new pWu(l),eventCount:new tY5(l),Ll:new O3u(l),oo9:new H3I(l),QnB:new WsX(l),HS:new $WH(l),EoO:new J7J(l)},k.XJ);var v=this;this.dn={ue:function(){return v.options.rL.concat(v.Y).sort(function(L,q){return L-q})}};
  1220. this.options=k;this.service=l;this.L=!T.Ww;this.T=new BRJ(function(){return void v.service.xq()},k.xS);
  1221. this.addOnDisposeCallback(function(){v.T.dispose();v.L&&v.service.dispose()});
  1222. g.JT(this.Y=Q.slice())};
  1223. jh=function(){var T,Q,k;return(k=(T=globalThis.performance)==null?void 0:(Q=T.now)==null?void 0:Q.call(T))!=null?k:Date.now()};
  1224. MS=function(T){this.g5=JP(T)};
  1225. Y2=function(T){this.g5=JP(T)};
  1226. Up=function(T){this.g5=JP(T,0,Up.messageId)};
  1227. XUX=function(T){this.g5=JP(T)};
  1228. jH=function(T){this.g5=JP(T)};
  1229. R5=function(T){this.g5=JP(T)};
  1230. g.Zb=function(){var T=this;this.promise=new Promise(function(Q,k){T.resolve=Q;T.reject=k})};
  1231. wUu=function(T,Q){if(T.disable)return new vn;var k=Q?ub5(Q):[],l=T.XJ,v=T.F7,L=T.Em9,q=T.dS,Y=T.PC;T=T.Ww;Q=Q==null?void 0:Cg(Q,XUX,11);var U=U===void 0?50:U;Q=(Q==null?void 0:rL(Q,1))||0;l={XJ:l,rL:v,xS:L,dS:q,PC:Y,Ww:T,disableClearcutCredentialBinding:Q>0&&U>=Q};k=k===void 0?[]:k;return new gb(l,k)};
  1232. fi=function(T){function Q(I,z,w,r){Promise.resolve().then(function(){U.done();Y.UE();Y.dispose();q.resolve({Wj:I,HiK:z,sKj:w,KfH:r})})}
  1233. function k(I,z,w,r){if(!l.logger.wd()){var A="k";z?A="h":w&&(A="u");A!=="k"?r!==0&&(l.logger.NA(A),l.logger.RA(A,I)):l.S<=0?(l.logger.NA(A),l.logger.RA(A,I),l.S=Math.floor(Math.random()*200)):l.S--}}
  1234. g.x.call(this);var l=this;this.S=Math.floor(Math.random()*200);this.T=new R5;if("challenge"in T&&dVX(T.challenge)){var v=Df(T.challenge,4,void 0,F1);var L=Df(T.challenge,5,void 0,F1);Df(T.challenge,7,void 0,F1)&&(this.T=NRH(Df(T.challenge,7,void 0,F1)))}else v=T.program,L=T.globalName;this.addOnDisposeCallback(function(){var I,z,w;return g.a(function(r){if(r.S==1)return g.c(r,l.L,2);I=r.T;z=I.HiK;(w=z)==null||w();g.BT(r)})});
  1235. this.logger=wUu(T.uA||{},this.T);g.P(this,this.logger);var q=new g.Zb;this.L=q.promise;this.logger.NA("t");var Y=this.logger.share(),U=new k2(Y,"t");if(!g.VC[L])throw this.logger.O4(25),Error("EGOU");if(!g.VC[L].a)throw this.logger.O4(26),Error("ELIU");try{var R=g.VC[L].a;L=[];for(var Z=[],f=ub5(this.T),G=0;G<f.length;G++)L.push(f[G]),Z.push(1);var m=nAy(this.T);for(f=0;f<m.length;f++)L.push(m[f]),Z.push(2);this.Y=g.B(R(v,Q,!0,T.Td,k,[L,Z],Df(this.T,5))).next().value;this.S5=q.promise.then(function(){})}catch(I){throw this.logger.O4(28),
  1236. I;
  1237. }};
  1238. Ao5=function(T){if(!T)return null;T=ng(T,4);return T===null||T===void 0?null:TH(T)};
  1239. Gc=function(){this.S={};this.T=null};
  1240. m_=function(){Gc.instance||(Gc.instance=new Gc);return Gc.instance};
  1241. ro6=function(T,Q){return bCJ(T,Cg(Q,MS,1,F1),Cg(Q,Y2,2,F1),Df(Q,3,void 0,F1))};
  1242. bCJ=function(T,Q,k,l){if(!Q&&!k)return Promise.resolve();if(!l)return coT(Q,k);var v;(v=T.S)[l]||(v[l]=new Promise(function(L,q){coT(Q,k).then(function(){T.T=l;L()},function(Y){delete T.S[l];
  1243. q(Y)})}));
  1244. return T.S[l]};
  1245. coT=function(T,Q){return Q?DVJ(Q):T?a75(T):Promise.resolve()};
  1246. DVJ=function(T){return new Promise(function(Q,k){var l=g.fO("SCRIPT"),v=Ao5(T);g.SN(l,v);l.onload=function(){g.s$(l);Q()};
  1247. l.onerror=function(){g.s$(l);k(Error("EWLS"))};
  1248. (g.v2("HEAD")[0]||document.documentElement).appendChild(l)})};
  1249. a75=function(T){return new Promise(function(Q){var k=g.fO("SCRIPT");if(T){var l=ng(T,6);l=l===null||l===void 0?null:Q_H(l)}else l=null;k.textContent=hi(l);sk(k);(g.v2("HEAD")[0]||document.documentElement).appendChild(k);g.s$(k);Q()})};
  1250. I5=function(T){this.g5=JP(T)};
  1251. uyJ=function(T,Q){return PS(T,1,Q)};
  1252. n6g=function(T,Q){return PS(T,2,Q)};
  1253. Khb=function(T,Q){return PS(T,3,Q)};
  1254. h8=function(T){this.g5=JP(T)};
  1255. sp=function(T,Q,k){this.client=T;this.Ib=Q;this.T=k};
  1256. Pl5=function(T,Q,k,l,v){var L,q,Y,U,R;return g.a(function(Z){if(Z.S==1)return L=Khb(n6g(uyJ(new I5,T.Ib),Q),k),q=T.T(),g.c(Z,l.BQ("c",T.Ib,v,T.client.create(L,q)),2);Y=Z.T;U=uS(YM(Y,2));if(U.length)return Z.return(o5(l,function(){for(var f=new Uint8Array(U.length),G=0;G<U.length;G++)f[G]=U[G]+97;if(g.VC.TextDecoder)f=(new TextDecoder).decode(f);else if(f.length<=8192)f=String.fromCharCode.apply(null,f);else{G="";for(var m=0;m<f.length;m+=8192)G+=String.fromCharCode.apply(null,Array.prototype.slice.call(f,
  1257. m,m+8192));f=G}return xV5(f)},"U"));
  1258. R=Cg(Y,Up,1);if(!R)throw Error("Missing field");return Z.return(R)})};
  1259. OCu=function(T,Q,k,l){var v,L;return g.a(function(q){v=T.T();var Y=new h8;Y=PS(Y,1,T.Ib);L=PS(Y,2,Q);Y=q.return;var U=k.BQ,R=T.Ib,Z=T.client;var f=Z.T;Z=Z.S+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var G=L,m=v||{},I=HCb,z=void 0;z=z===void 0?{}:z;f=tyb(f,Z,G,m,I,z);return Y.call(q,U.call(k,"g",R,l,f))})};
  1260. pUC=function(T,Q,k,l,v){return T instanceof sp?Pl5(T,l,v,Q,k):Pl5(T,l,v,new vn,0)};
  1261. Sh=function(T){g.x.call(this);var Q=this;this.options=T;this.B=new g.Zb;this.S5=this.B.promise;this.N=new g.Zb;this.j=1;this.L=new g.Zb;this.Y=[];this.vC=T.vC||function(){};
  1262. this.logger=new Li(wUu(T.uA||{}));WhT(this,T.J1,T.KHe,T.GRk,T.gVB,Object.assign({},$Vu,T.s3||{}));this.addOnDisposeCallback(function(){return void JoH(Q)})};
  1263. eQC=function(T){var Q;return g.a(function(k){if(T.wd())throw Error("Already disposed");(Q=T.T)!=null&&(Q.endTimeMs=0,Q.LR(1));return g.c(k,T.L.promise,0)})};
  1264. JoH=function(T){T.C=Error("Cancelled by dispose");T.N.resolve();Ks5(T.B.promise);T.B.reject(Error("Cancelled by dispose"));T.logger.dispose();Promise.all(T.Y).then(function(){var k;return g.a(function(l){(k=T.S)==null||k.dispose();T.S=void 0;g.BT(l)})});
  1265. T.Y=[];var Q;(Q=T.T)!=null&&(Q.endTimeMs=0,Q.LR(1));Ks5(T.L.promise);T.L.reject(Error("Cancelled by dispose"))};
  1266. FhJ=function(T,Q){var k=T.vC;T.vC=function(){k();Q()}};
  1267. E65=function(T,Q){T.wd()||(T.S=Q,T.logger.update(Q.Lr()),T.N.resolve(),T.B.resolve(void 0),T.vC())};
  1268. yo5=function(T,Q){Q&&(Promise.all(T.Y).then(function(){return void Q.dispose()}),T.Y=[])};
  1269. Ci=function(T,Q){T.j=Q;var k,l;(l=(k=T.options).RC6)==null||l.call(k,Q)};
  1270. iC6=function(T){T.wd()||(T.L.resolve(),T.L=new g.Zb)};
  1271. WhT=function(T,Q,k,l,v,L){l=l===void 0?m_():l;v=v===void 0?Promise.resolve(void 0):v;var q,Y,U,R,Z,f,G,m,I,z,w,r;g.a(function(A){switch(A.S){case 1:return g.c(A,0,3);case 3:Y=null;if(!q){A.Ym(6);break}Ci(T,7);g.z5(A,7);return g.c(A,Bn(q.snapshot({}),L.xW,function(){return Promise.resolve("E:CTO")}),9);
  1272. case 9:Y=A.T;g.d6(A,6);break;case 7:g.by(A),Y="E:UCE";case 6:U=void 0,R=q?L.o8:L.Ea,Z=new g.al(R,L.Qe,L.hq,L.cZ),f=1;case 10:if(!(f<=L.maxAttempts)){A.Ym(12);break}if(f===1){A.Ym(13);break}Ci(T,0);T.T=new Vyf(Z.getValue(),L.Lg,L.xG);return g.c(A,T.T.promise,14);case 14:G=A.T,T.T=void 0,G===1?(f=1,Z.reset()):g.ur(Z);case 13:g.z5(A,15);m=void 0;if(k){m=k;A.Ym(17);break}Ci(T,5);I=l.T;return g.c(A,Bn(pUC(Q,T.logger,f,I,Y),L.X7,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
  1273. case 18:m=A.T;case 17:return Ci(T,3),g.c(A,Bn(ro6(l,m),L.j3,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
  1274. case 19:return Ci(T,8),g.c(A,v,20);case 20:return z=new fi({challenge:m,uA:T.options.uA,Td:T.options.Td}),g.c(A,Bn(z.S5,L.agm,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
  1275. case 21:U=z;A.Ym(12);break;case 15:w=g.by(A),T.handleError(w),iC6(T);case 11:f++;A.Ym(10);break;case 12:if(T.wd()){A.Ym(5);break}U&&(k=void 0,yo5(T,q),q=U,E65(T,U),iC6(T));Ci(T,2);T.T=new Vyf(L.Tcj,L.Lg,L.xG);return g.c(A,T.T.promise,22);case 22:T.T=void 0;if(T.wd()){A.Ym(5);break}A.Ym(3);break;case 5:(r=q)==null||r.dispose(),g.BT(A)}})};
  1276. Bn=function(T,Q,k){var l,v=new Promise(function(L){l=setTimeout(L,Q)});
  1277. return Promise.race([T.finally(function(){return void clearTimeout(l)}),
  1278. v.then(k)])};
  1279. Vyf=function(T,Q,k){function l(){var L=v.endTimeMs-Date.now();L<=k?v.LR(0):setTimeout(l,Math.min(L,Q))}
  1280. var v=this;this.endTimeMs=Date.now()+T;this.promise=new Promise(function(L){v.LR=L});
  1281. l()};
  1282. TwJ=function(T,Q){try{return globalThis.sessionStorage.setItem(T,Q),!0}catch(k){return!1}};
  1283. zc=function(T,Q,k,l){Q=Q===void 0?0:Q;k=k===void 0?T.length:k;var v=0;for(l&&(v=zc(l));Q<k;Q++)l=typeof T==="string"?T.charCodeAt(Q):T[Q],v=QjT(31,v)+l|0;return v};
  1284. jjy=function(T,Q){return[zc(T,0,T.length>>1,Q),zc(T,T.length>>1)]};
  1285. k95=function(T){var Q=g.B(jjy(T,Xp));T=Q.next().value;Q=Q.next().value;return T.toString(16)+Q.toString(16)};
  1286. lt5=function(T,Q){var k=jjy(Q);T=new Uint32Array(T.buffer);Q=T[0];var l=g.B(k);k=l.next().value;l=l.next().value;for(var v=1;v<T.length;v+=2){for(var L=Q,q=v,Y=k,U=l,R=0;R<22;R++)q=q>>>8|q<<24,q+=L|0,q^=Y+38293,L=L<<3|L>>>29,L^=q,U=U>>>8|U<<24,U+=Y|0,U^=R+38293,Y=Y<<3|Y>>>29,Y^=U;L=[L,q];T[v]^=L[0];v+1<T.length&&(T[v+1]^=L[1])}};
  1287. oB6=function(T,Q,k,l,v){var L=(4-(Xp.length+k.length)%4)%4,q=new Uint8Array(4+L+Xp.length+4+k.length),Y=new DataView(q.buffer),U=0;Y.setUint32(U,Math.random()*4294967295);U=U+4+L;q.set(Xp,U);U+=Xp.length;Y.setUint32(U,v);q.set(k,U+4);lt5(q,l);return T.o2(Q,function(R){return void globalThis.sessionStorage.removeItem(R)})?TwJ(Q,g.dJ(q))?"s":"t":"i"};
  1288. vBb=function(T,Q){var k=globalThis.sessionStorage.getItem(T);if(!k)return["m"];try{var l=Am(k);lt5(l,Q)}catch(v){return globalThis.sessionStorage.removeItem(T),["c"]}for(Q=4;Q<7&&l[Q]===0;)Q++;for(k=0;k<Xp.length;k++)if(l[Q++]!==Xp[k])return globalThis.sessionStorage.removeItem(T),["d"];k=(new DataView(l.buffer)).getUint32(Q);return Math.floor(Date.now()/1E3)>=k?(globalThis.sessionStorage.removeItem(T),["e"]):["a",new Uint8Array(l.buffer,Q+4)]};
  1289. wb=function(T,Q,k){k=k===void 0?[]:k;this.maxItems=T;this.T=Q===void 0?0:Q;this.S=k};
  1290. Lef=function(T){var Q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Q)return new wb(T);var k=Q.split(",");if(k.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wb(T);Q=k.slice(1);Q.length===1&&Q[0]===""&&(Q=[]);k=Number(k[0]);return isNaN(k)||k<0||k>Q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wb(T)):new wb(T,k,Q)};
  1291. qXX=function(T,Q){this.logger=Q;try{var k=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(l){k=!1}k&&(this.index=Lef(T))};
  1292. gB6=function(T,Q,k,l,v){var L=T.index?o5(T.logger,function(){return oB6(T.index,k95(Q),k,l,v)},"W"):"u";
  1293. T.logger.yL(L)};
  1294. MuI=function(T,Q,k){var l=g.B(T.index?o5(T.logger,function(){return vBb(k95(Q),k)},"R"):["u"]),v=l.next().value;
  1295. l=l.next().value;T.logger.Mb(v);return l};
  1296. Rtg=function(T){function Q(){k-=l;k-=v;k^=v>>>13;l-=v;l-=k;l^=k<<8;v-=k;v-=l;v^=l>>>13;k-=l;k-=v;k^=v>>>12;l-=v;l-=k;l^=k<<16;v-=k;v-=l;v^=l>>>5;k-=l;k-=v;k^=v>>>3;l-=v;l-=k;l^=k<<10;v-=k;v-=l;v^=l>>>15}
  1297. T=YXu(T);for(var k=2654435769,l=2654435769,v=314159265,L=T.length,q=L,Y=0;q>=12;q-=12,Y+=12)k+=db(T,Y),l+=db(T,Y+4),v+=db(T,Y+8),Q();v+=L;switch(q){case 11:v+=T[Y+10]<<24;case 10:v+=T[Y+9]<<16;case 9:v+=T[Y+8]<<8;case 8:l+=T[Y+7]<<24;case 7:l+=T[Y+6]<<16;case 6:l+=T[Y+5]<<8;case 5:l+=T[Y+4];case 4:k+=T[Y+3]<<24;case 3:k+=T[Y+2]<<16;case 2:k+=T[Y+1]<<8;case 1:k+=T[Y+0]}Q();return Uit.toString(v)};
  1298. YXu=function(T){for(var Q=[],k=0;k<T.length;k++)Q.push(T.charCodeAt(k));return Q};
  1299. db=function(T,Q){return T[Q+0]+(T[Q+1]<<8)+(T[Q+2]<<16)+(T[Q+3]<<24)};
  1300. NS=function(T){g.x.call(this);this.logger=T;this.L=new g.Zb;this[ZH5]=this.dispose};
  1301. A8=function(T,Q){var k=setTimeout(function(){T.L.resolve()},Q);
  1302. T.addOnDisposeCallback(function(){return void clearTimeout(k)})};
  1303. bH=function(T,Q,k,l){return o5(T.logger,function(){return k?T.JL(Q,l):T.xd(Q,l)},T.T)};
  1304. rb=function(T,Q,k,l){NS.call(this,T);this.Y=Q;this.B=k;this.T="m";this.S="x";this.N=0;A8(this,l)};
  1305. cn=function(T,Q,k){NS.call(this,T);this.Y=Q;this.T="f";this.S="z";A8(this,k)};
  1306. Db=function(T,Q,k){NS.call(this,T);this.Y=Q;this.T="w";this.S="z";A8(this,k)};
  1307. a5=function(T,Q){NS.call(this,T);this.error=Q;this.T="e";this.S="y"};
  1308. ftT=function(T,Q){var k=(Q(T.error.message)+":"+Q(T.error.stack)).substring(0,2048);Q=k.length+1;k=uH(k);var l=new Uint8Array(4+k.length);l.set([42,Q&127|128,Q>>7,T.error.code]);l.set(k,4);return l};
  1309. ni=function(T,Q,k){NS.call(this,T);this.Y=Q;this.clientState=k;this.T="S";this.S="q"};
  1310. uH=function(T){return globalThis.TextEncoder?(new TextEncoder).encode(T):g.wJ(T)};
  1311. G9t=function(T,Q,k){return T instanceof sp?OCu(T,k,Q,1):T.Xo(k)};
  1312. x2=function(T){g.x.call(this);var Q=this;this.L=new g.Zb;this.Y=0;this.S=void 0;this.state=2;this.FI=T.FI;this.J1=T.J1;this.s3=Object.assign({},miH,T.s3||{});this.logger=T.FI.Lr();var k;this.onError=(k=T.onError)!=null?k:function(){};
  1313. this.dM=T.dM||!1;if(ItJ(T)){var l=this.FI;this.N=function(){return eQC(l).catch(function(q){q=Q.reportError(new ip(Q.T?20:32,"TRG:Disposed",q));Q.S=q;var Y;(Y=Q.T)==null||Y.dispose();Q.T=void 0;Q.L.reject(q)})};
  1314. FhJ(l,function(){return void Ki(Q)});
  1315. l.j===2&&Ki(this)}else this.N=T.Ukd,Ki(this);var v=this.logger.share();v.NA("o");var L=new k2(v,"o");this.L.promise.then(function(){L.done();v.UE();v.dispose()},function(){return void v.dispose()});
  1316. this.addOnDisposeCallback(function(){Q.T?(Q.T.dispose(),Q.T=void 0):Q.S?Q.logger.UE():(Q.S=Q.reportError(new ip(32,"TNP:Disposed")),Q.logger.UE(),Q.L.reject(Q.S))});
  1317. g.P(this,this.logger)};
  1318. ht5=function(T,Q){if(!(Q instanceof ip))if(Q instanceof OJ){var k=Error(Q.toString());k.stack=Q.stack;Q=new ip(11,"EBH:Error",k)}else Q=new ip(12,"BSO:Unknown",Q);return T.reportError(Q)};
  1319. Ki=function(T){var Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){switch(w.S){case 1:Q=void 0;T.Y++;k=new g.Zb;T.FI instanceof Sh&&T.FI.Y.push(k.promise);if(!T.dM){w.Ym(2);break}l=new g.Zb;setTimeout(function(){return void l.resolve()});
  1320. return g.c(w,l.promise,2);case 2:return v=T.logger.share(),g.z5(w,4,5),T.state=5,L={},q=[],g.c(w,Bn(T.FI.snapshot({uh:L,QP:q}),T.s3.TwO,function(){return Promise.reject(new ip(15,"MDA:Timeout"))}),7);
  1321. case 7:Y=w.T;if(T.wd())throw new ip(T.T?20:32,"MDA:Disposed");U=q[0];T.state=6;return g.c(w,Bn(G9t(T.J1,v,Y),T.s3.Ua,function(){return Promise.reject(new ip(10,"BWB:Timeout"))}),8);
  1322. case 8:R=w.T;if(T.wd())throw new ip(T.T?20:32,"BWB:Disposed");T.state=7;Q=o5(v,function(){var A=sjX(T,R,k,U);A.L.promise.then(function(){return void T.N()});
  1323. return A},"i");
  1324. case 5:g.aI(w);v.dispose();g.n5(w,6);break;case 4:Z=g.by(w);(f=Q)==null||f.dispose();if(!T.S){G=ht5(T,Z);k.resolve();var r;if(r=T.FI instanceof Sh&&T.Y<2)a:if(Z instanceof ip)r=Z.code!==32&&Z.code!==20&&Z.code!==10;else{if(Z instanceof OJ)switch(Z.code){case 2:case 13:case 14:case 4:break;default:r=!1;break a}r=!0}if(r)return m=(1+Math.random()*.25)*(T.T?6E4:1E3),I=setTimeout(function(){return void T.N()},m),T.addOnDisposeCallback(function(){return void clearTimeout(I)}),w.return();
  1325. T.S=G}v.O4(T.T?13:14);T.L.reject(T.S);return w.return();case 6:T.state=8,T.Y=0,(z=T.T)==null||z.dispose(),T.T=Q,T.L.resolve(),g.BT(w)}})};
  1326. sjX=function(T,Q,k,l){var v=cS(Q,2)*1E3;if(v<=0)throw new ip(31,"TTM:Invalid");if(Df(Q,4))return new Db(T.logger,Df(Q,4),v);if(!cS(Q,3))return new cn(T.logger,uS(YM(Q,1)),v);if(!l)throw new ip(4,"PMD:Undefined");l=l(uS(YM(Q,1)));if(!(l instanceof Function))throw new ip(16,"APF:Failed");T.B=Math.floor((Date.now()+v)/1E3);T=new rb(T.logger,l,cS(Q,3),v);T.addOnDisposeCallback(function(){return void k.resolve()});
  1327. return T};
  1328. SXt=function(T,Q){Q=Q instanceof ip?Q:new ip(5,"TVD:error",Q);return T.reportError(Q)};
  1329. wHI=function(T,Q,k){try{if(T.wd())throw new ip(21,"BNT:disposed");if(!T.T&&T.S)throw T.S;var l,v;return(v=(l=Cpu(T,Q,k))!=null?l:BwI(T,Q,k))!=null?v:zty(T,Q,k)}catch(L){if(!Q.V0)throw SXt(T,L);return XHt(T,k,L)}};
  1330. Cpu=function(T,Q,k){var l;return(l=T.T)==null?void 0:bH(l,function(){return Pn(T,Q)},k,function(v){var L;
  1331. if(T.T instanceof rb&&((L=Q.Qo)==null?0:L.Hb))try{var q;(q=T.cache)==null||gB6(q,Pn(T,Q),v,Q.Qo.QN,T.B-120)}catch(Y){T.reportError(new ip(24,"ELX:write",Y))}})};
  1332. BwI=function(T,Q,k){var l;if((l=Q.Qo)!=null&&l.VO)try{var v,L=(v=T.cache)==null?void 0:MuI(v,Pn(T,Q),Q.Qo.QN);return L?k?o5(T.logger,function(){return g.dJ(L,2)},"a"):L:void 0}catch(q){T.reportError(new ip(23,"RXO:read",q))}};
  1333. zty=function(T,Q,k){var l={stack:[],error:void 0,hasError:!1};try{if(!Q.Nl)throw new ip(29,"SDF:notready");return bH(IH5(l,new ni(T.logger,0,T.state)),function(){return Pn(T,Q)},k)}catch(v){l.error=v,l.hasError=!0}finally{hut(l)}};
  1334. XHt=function(T,Q,k){var l={stack:[],error:void 0,hasError:!1};try{var v=SXt(T,k);return bH(IH5(l,new a5(T.logger,v)),function(){return[]},Q)}catch(L){l.error=L,l.hasError=!0}finally{hut(l)}};
  1335. Pn=function(T,Q){return Q.gi?Q.gi:Q.uh?o5(T.logger,function(){return Q.gi=uH(Q.uh)},"c"):[]};
  1336. Hn=function(){var T=0,Q;return function(k){Q||(Q=new vn);var l=new ni(Q,T,1),v=bH(l,function(){return uH(k)},!0);
  1337. l.dispose();T++;return v}};
  1338. t8=function(T){this.g5=JP(T)};
  1339. dif=function(T,Q,k){this.Sx=T;this.X4=Q;this.metadata=k};
  1340. Op=function(T,Q){Q=Q===void 0?{}:Q;this.xL_=T;this.metadata=Q;this.status=null};
  1341. pi=function(T,Q,k,l,v){this.name=T;this.methodType="unary";this.requestType=Q;this.responseType=k;this.T=l;this.S=v};
  1342. Wn=function(T){this.g5=JP(T)};
  1343. $2=function(T){this.g5=JP(T)};
  1344. J8=function(T){this.g5=JP(T)};
  1345. eh=function(T,Q){this.C=T.i_9;this.j=Q;this.T=T.xhr;this.L=[];this.N=[];this.B=[];this.Y=[];this.S=[];this.C&&NwC(this)};
  1346. cs6=function(T,Q){var k=new Asf;g.Qu(T.T,"complete",function(){if(yu(T.T)){var l=g.io(T.T);if(Q&&T.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");l=atob(l)}try{var v=T.j(l)}catch(Y){Fp(T,Ep(new OJ(13,"Error when deserializing response data; error: "+Y+(", response: "+l)),k));return}l=Lh5(T.T.getStatus());y9(T,iH(T));l==0?bH5(T,v):Fp(T,Ep(new OJ(l,"Xhr succeeded but the status code is not 200"),k))}else{l=g.io(T.T);v=iH(T);if(l){var L=rst(T,
  1347. l);l=L.code;var q=L.details;L=L.metadata}else l=2,q="Rpc failed due to xhr error. uri: "+String(T.T.j)+", error code: "+T.T.S+", error: "+T.T.getLastError(),L=v;y9(T,v);Fp(T,Ep(new OJ(l,q,L),k))}})};
  1348. NwC=function(T){T.C.cz("data",function(Q){if("1"in Q){var k=Q["1"];try{var l=T.j(k)}catch(v){Fp(T,new OJ(13,"Error when deserializing response data; error: "+v+(", response: "+k)))}l&&bH5(T,l)}if("2"in Q)for(Q=rst(T,Q["2"]),k=0;k<T.B.length;k++)T.B[k](Q)});
  1349. T.C.cz("end",function(){y9(T,iH(T));for(var Q=0;Q<T.Y.length;Q++)T.Y[Q]()});
  1350. T.C.cz("error",function(){if(T.S.length!=0){var Q=T.T.S;Q!==0||yu(T.T)||(Q=6);var k=-1;switch(Q){case 0:var l=2;break;case 7:l=10;break;case 8:l=4;break;case 6:k=T.T.getStatus();l=Lh5(k);break;default:l=14}y9(T,iH(T));Q=RQf(Q)+", error: "+T.T.getLastError();k!=-1&&(Q+=", http status code: "+k);Fp(T,new OJ(l,Q))}})};
  1351. iH=function(T){var Q={},k=g.SBb(T.T);Object.keys(k).forEach(function(l){Q[l]=k[l]});
  1352. return Q};
  1353. rst=function(T,Q){var k=2,l={};try{var v=Diy(Q);k=rL(v,1);var L=v.getMessage();dL(v,$2,3).length&&(l["grpc-web-status-details-bin"]=Q)}catch(q){T.T&&T.T.getStatus()===404?(k=5,L="Not Found: "+String(T.T.j)):(k=14,L="Unable to parse RpcStatus: "+q)}return{code:k,details:L,metadata:l}};
  1354. V9=function(T,Q){Q=T.indexOf(Q);Q>-1&&T.splice(Q,1)};
  1355. bH5=function(T,Q){for(var k=0;k<T.L.length;k++)T.L[k](Q)};
  1356. y9=function(T,Q){for(var k=0;k<T.N.length;k++)T.N[k](Q)};
  1357. Fp=function(T,Q){for(var k=0;k<T.S.length;k++)T.S[k](Q)};
  1358. Asf=function(){var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
  1359. Ep=function(T,Q){Q.stack&&(T.stack+="\n"+Q.stack);return T};
  1360. g.Tm=function(T){this.Y=T.FtB||null;this.L=T.yc||!1;this.S=void 0};
  1361. Qq=function(T,Q){g.fL.call(this);this.hj=T;this.B=Q;this.N=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.D=new Headers;this.S=null;this.qO="GET";this.z9="";this.T=!1;this.C=this.L=this.Y=null;this.j=new AbortController};
  1362. at5=function(T){T.L.read().then(T.NH.bind(T)).catch(T.Xg.bind(T))};
  1363. kQ=function(T){T.readyState=4;T.Y=null;T.L=null;T.C=null;je(T)};
  1364. je=function(T){T.onreadystatechange&&T.onreadystatechange.call(T)};
  1365. unf=function(T){if(T.b0&&typeof T.b0=="function")return T.b0();if(typeof Map!=="undefined"&&T instanceof Map||typeof Set!=="undefined"&&T instanceof Set)return Array.from(T.values());if(typeof T==="string")return T.split("");if(g.o_(T)){for(var Q=[],k=T.length,l=0;l<k;l++)Q.push(T[l]);return Q}return os(T)};
  1366. nBI=function(T){if(T.zG&&typeof T.zG=="function")return T.zG();if(!T.b0||typeof T.b0!="function"){if(typeof Map!=="undefined"&&T instanceof Map)return Array.from(T.keys());if(!(typeof Set!=="undefined"&&T instanceof Set)){if(g.o_(T)||typeof T==="string"){var Q=[];T=T.length;for(var k=0;k<T;k++)Q.push(k);return Q}return g.gz(T)}}};
  1367. KeI=function(T,Q,k){if(T.forEach&&typeof T.forEach=="function")T.forEach(Q,k);else if(g.o_(T)||typeof T==="string")Array.prototype.forEach.call(T,Q,k);else for(var l=nBI(T),v=unf(T),L=v.length,q=0;q<L;q++)Q.call(k,v[q],l&&l[q],T)};
  1368. g.lN=function(T){this.T=this.j=this.N="";this.L=null;this.B=this.S="";this.C=!1;var Q;T instanceof g.lN?(this.C=T.C,g.oZ(this,T.N),this.j=T.j,g.v0(this,T.T),g.LV(this,T.L),this.S=T.S,qj(this,T.Y.clone()),this.B=T.B):T&&(Q=g.UD(String(T)))?(this.C=!1,g.oZ(this,Q[1]||"",!0),this.j=g0(Q[2]||""),g.v0(this,Q[3]||"",!0),g.LV(this,Q[4]),this.S=g0(Q[5]||"",!0),qj(this,Q[6]||"",!0),this.B=g0(Q[7]||"")):(this.C=!1,this.Y=new Mj(null,this.C))};
  1369. g.oZ=function(T,Q,k){T.N=k?g0(Q,!0):Q;T.N&&(T.N=T.N.replace(/:$/,""))};
  1370. g.v0=function(T,Q,k){T.T=k?g0(Q,!0):Q};
  1371. g.LV=function(T,Q){if(Q){Q=Number(Q);if(isNaN(Q)||Q<0)throw Error("Bad port number "+Q);T.L=Q}else T.L=null};
  1372. qj=function(T,Q,k){Q instanceof Mj?(T.Y=Q,xiu(T.Y,T.C)):(k||(Q=YQ(Q,PpH)),T.Y=new Mj(Q,T.C))};
  1373. g.Uz=function(T,Q,k){T.Y.set(Q,k)};
  1374. g.RZ=function(T){return T instanceof g.lN?T.clone():new g.lN(T)};
  1375. g0=function(T,Q){return T?Q?decodeURI(T.replace(/%25/g,"%2525")):decodeURIComponent(T):""};
  1376. YQ=function(T,Q,k){return typeof T==="string"?(T=encodeURI(T).replace(Q,HH5),k&&(T=T.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),T):null};
  1377. HH5=function(T){T=T.charCodeAt(0);return"%"+(T>>4&15).toString(16)+(T&15).toString(16)};
  1378. Mj=function(T,Q){this.S=this.T=null;this.L=T||null;this.Y=!!Q};
  1379. Zg=function(T){T.T||(T.T=new Map,T.S=0,T.L&&Gg(T.L,function(Q,k){T.add(bX(Q),k)}))};
  1380. tuH=function(T,Q){Zg(T);Q=fV(T,Q);return T.T.has(Q)};
  1381. g.OHt=function(T,Q,k){T.remove(Q);k.length>0&&(T.L=null,T.T.set(fV(T,Q),g.r$(k)),T.S=T.S+k.length)};
  1382. fV=function(T,Q){Q=String(Q);T.Y&&(Q=Q.toLowerCase());return Q};
  1383. xiu=function(T,Q){Q&&!T.Y&&(Zg(T),T.L=null,T.T.forEach(function(k,l){var v=l.toLowerCase();l!=v&&(this.remove(l),g.OHt(this,v,k))},T));
  1384. T.Y=Q};
  1385. g.pH6=function(T){var Q="";g.VJ(T,function(k,l){Q+=l;Q+=":";Q+=k;Q+="\r\n"});
  1386. return Q};
  1387. g.Gm=function(T,Q,k){if(g.Rs(k))return T;k=g.pH6(k);if(typeof T==="string")return CI(T,g.Nn(Q),k);g.Uz(T,Q,k);return T};
  1388. g.mo=function(T){g.x.call(this);this.S=T;this.T={}};
  1389. WeH=function(T,Q,k,l,v,L){if(Array.isArray(k))for(var q=0;q<k.length;q++)WeH(T,Q,k[q],l,v,L);else{Q=Tl(Q,k,l||T.handleEvent,v,L||T.S||T);if(!Q)return T;T.T[Q.key]=Q}return T};
  1390. $iy=function(){this.L=!0;this.S=0;this.T=""};
  1391. JsC=function(T,Q,k){T.L=!1;throw Error("The stream is broken @"+T.S+". Error: "+k+". With input:\n"+Q);};
  1392. IZ=function(){this.B=null;this.C=[];this.Y=this.S=this.L=this.T=this.D=0;this.N=null;this.j=0};
  1393. he=function(T,Q,k,l){T.T=3;T.B="The stream is broken @"+T.D+"/"+k+". Error: "+l+". With input:\n"+Q;throw Error(T.B);};
  1394. sz=function(){this.T=null;this.S=0;this.L=new $iy;this.Y=new IZ};
  1395. etb=function(T,Q,k){T.T="The stream is broken @"+T.S+". Error: "+k+". With input:\n"+Q;throw Error(T.T);};
  1396. Se=function(T){return T=="\r"||T=="\n"||T==" "||T=="\t"};
  1397. CV=function(T){this.D=null;this.B=[];this.Y="";this.qO=[];this.L=this.S=0;this.C=!1;this.j=0;this.hj=/[\\"]/g;this.T=this.N=0;this.z9=!(!T||!T.Il)};
  1398. B0=function(T,Q,k){T.N=3;T.D="The stream is broken @"+T.L+"/"+k+". With input:\n"+Q;throw Error(T.D);};
  1399. zm=function(){this.N=this.L=null;this.S=this.T=0;this.Y=[];this.B=!1};
  1400. Fey=function(T){var Q=g.Tc(T,"Content-Type");if(!Q)return null;Q=Q.toLowerCase();return Q.startsWith("application/json")?Q.startsWith("application/json+protobuf")?new zm:new CV:Q.startsWith("application/x-protobuf")?(T=g.Tc(T,"Content-Transfer-Encoding"))?T.toLowerCase()=="base64"?new sz:null:new IZ:null};
  1401. XA=function(T){this.T=T;this.S=null;this.N=this.L=0;this.D=!1;this.Y=this.C=this.B=null;this.j=new g.mo(this);this.j.listen(this.T,"readystatechange",this.z9)};
  1402. w0=function(T,Q){T.N!=Q&&(T.N=Q,T.C&&T.C())};
  1403. d0=function(T){T.j.removeAll();if(T.T){var Q=T.T;T.T=null;Q.abort();Q.dispose()}};
  1404. EBI=function(T){T=this.L=T;var Q=(0,g.Mp)(this.O_d,this);T.Y=Q;T=this.L;Q=(0,g.Mp)(this.gM9,this);T.C=Q;this.S={};this.T={}};
  1405. ysy=function(T,Q){for(var k={},l=0;l<T.length;k={Yp:void 0},l++)k.Yp=T[l],Q.forEach(function(v){return function(L){try{L(v.Yp)}catch(q){}}}(k))};
  1406. Nj=function(T,Q){var k=T.S[Q];k&&k.forEach(function(l){try{l()}catch(v){}});
  1407. (k=T.T[Q])&&k.forEach(function(l){l()});
  1408. T.T[Q]=[]};
  1409. iH5=function(){var T={format:"jspb"};T=T===void 0?{}:T;this.g1=T.g1||g.jA("suppressCorsPreflight",T)||!1;this.withCredentials=T.withCredentials||g.jA("withCredentials",T)||!1;this.z8=T.z8||[];this.G8=T.G8||[];this.aF=T.aF;this.T=T.XBK||!1};
  1410. tyb=function(T,Q,k,l,v,L){L=L===void 0?{}:L;var q=Q.substring(0,Q.length-v.name.length),Y,U=(Y=L)==null?void 0:Y.signal;return Vu5(function(R){return new Promise(function(Z,f){if(U==null?0:U.aborted){var G=new OJ(1,"Aborted");G.cause=U.reason;f(G)}else{var m={},I=TIg(T,R,q);I.cz("error",function(z){return void f(z)});
  1411. I.cz("metadata",function(z){m=z});
  1412. I.cz("data",function(z){var w=m;w=w===void 0?{}:w;Z(new Op(z,w))});
  1413. U&&U.addEventListener("abort",function(){I.cancel();var z=new OJ(1,"Aborted");z.cause=U.reason;f(z)})}})},T.G8).call(T,v.C(k,l)).then(function(R){return R.xL_})};
  1414. TIg=function(T,Q,k){var l=Q.X4,v=Q.getMetadata(),L=Qlt(T,!0);T=jl5(T,v,L,k+l.getName());k=kyf(L,l.S,!1);cs6(k,v["X-Goog-Encode-Response-If-Executable"]==="base64");Q=l.T(Q.Sx);L.send(T,"POST",Q);return k};
  1415. Qlt=function(T,Q){Q=T.T&&!Q;return T.aF||Q?new g.Jd(new g.Tm({FtB:T.aF,yc:Q})):new g.Jd};
  1416. jl5=function(T,Q,k,l){Q["Content-Type"]="application/json+protobuf";Q["X-User-Agent"]="grpc-web-javascript/0.1";var v=Q.Authorization;if(v&&lB6.has(v.split(" ")[0])||T.withCredentials)k.C=!0;if(T.g1)l=g.Gm(l,"$httpHeaders",Q);else for(T=g.B(Object.keys(Q)),v=T.next();!v.done;v=T.next())v=v.value,k.headers.set(v,Q[v]);return l};
  1417. kyf=function(T,Q,k){if(k){T.isActive();k=new XA(T);var l=new EBI(k)}return new eh({xhr:T,i_9:l},Q)};
  1418. ofX=function(T,Q){return Q.reduce(function(k,l){return function(v){return l.intercept(v,k)}},T)};
  1419. Vu5=function(T,Q){return Q.reduce(function(k,l){return function(v){return l.intercept(v,k)}},T)};
  1420. vf5=function(){this.T=new iH5;this.S="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
  1421. gfT=function(T){if(g.bB(g.cX(T)))return!1;if(T.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var Q=new g.lN(T)}catch(k){return g.sA(Lfy,function(l){return T.search(l)>0})!=null}return Q.B.match(qcf)?!0:g.sA(Lfy,function(k){return T.match(k)!=null})!=null};
  1422. g.Ae=function(T,Q){return T.replace(MHT,function(k,l){try{var v=g.ZW(Q,l);if(v==null||v.toString()==null)return k;v=v.toString();if(v==""||!g.bB(g.cX(v)))return encodeURIComponent(v).replace(/%2C/g,",")}catch(L){}return k})};
  1423. bN=function(T,Q){return Object.is(T,Q)};
  1424. c0=function(T){var Q=r0;r0=T;return Q};
  1425. YcH=function(T){if(T.Wg!==void 0){var Q=Dg;Dg=!0;try{for(var k=g.B(T.Wg),l=k.next();!l.done;l=k.next()){var v=l.value;v.RY||(T=void 0,v.RY=!0,YcH(v),(T=v.hD)==null||T.call(v,v))}}finally{Dg=Q}}};
  1426. Uw5=function(){var T;return((T=r0)==null?void 0:T.Ee)!==!1};
  1427. RmC=function(T){T&&(T.Us=0);return c0(T)};
  1428. ZS5=function(T,Q){c0(Q);if(T&&T.pz!==void 0&&T.j9!==void 0&&T.FF!==void 0){if(aZ(T))for(Q=T.Us;Q<T.pz.length;Q++)uN(T.pz[Q],T.j9[Q]);for(;T.pz.length>T.Us;)T.pz.pop(),T.FF.pop(),T.j9.pop()}};
  1429. Gy5=function(T,Q,k){fBf(T);if(T.Wg.length===0&&T.pz!==void 0)for(var l=0;l<T.pz.length;l++)T.j9[l]=Gy5(T.pz[l],T,l);T.dh.push(k);return T.Wg.push(Q)-1};
  1430. uN=function(T,Q){fBf(T);if(T.Wg.length===1&&T.pz!==void 0)for(var k=0;k<T.pz.length;k++)uN(T.pz[k],T.j9[k]);k=T.Wg.length-1;T.Wg[Q]=T.Wg[k];T.dh[Q]=T.dh[k];T.Wg.length--;T.dh.length--;Q<T.Wg.length&&(k=T.dh[Q],T=T.Wg[Q],mw6(T),T.j9[k]=Q)};
  1431. aZ=function(T){var Q,k;return T.QB||((k=T==null?void 0:(Q=T.Wg)==null?void 0:Q.length)!=null?k:0)>0};
  1432. mw6=function(T){T.pz!=null||(T.pz=[]);T.j9!=null||(T.j9=[]);T.FF!=null||(T.FF=[])};
  1433. fBf=function(T){T.Wg!=null||(T.Wg=[]);T.dh!=null||(T.dh=[])};
  1434. Sc5=function(T){function Q(){if(Dg)throw Error("");if(r0!==null){var l=r0.Us++;mw6(r0);l<r0.pz.length&&r0.pz[l]!==k&&aZ(r0)&&uN(r0.pz[l],r0.j9[l]);r0.pz[l]!==k&&(r0.pz[l]=k,r0.j9[l]=aZ(r0)?Gy5(k,r0,l):0);r0.FF[l]=k.version}return k.value}
  1435. var k=Object.create(IBJ);k.value=T;Q[hmX]=k;return[Q,function(l){return slb(k,l)},
  1436. function(l){if(!Uw5())throw Error();slb(k,l(k.value))}]};
  1437. slb=function(T,Q){if(!Uw5())throw Error();T.zZ(T.value,Q)||(T.value=Q,T.version++,Cr5++,YcH(T))};
  1438. nV=function(T,Q){Q=Q===void 0?"":Q;T=Sc5(T)[0][hmX];var k;Q=(k=Q)!=null?k:"[signal]";T.debugName=Q};
  1439. xQ=function(T){g.fL.call(this);var Q=this;this.N=this.S=0;this.qy=T!=null?T:{oD:function(v,L){return setTimeout(v,L)},
  1440. wC:function(v){clearTimeout(v)}};
  1441. var k,l;this.T=(l=(k=window.navigator)==null?void 0:k.onLine)!=null?l:!0;this.L=function(){return g.a(function(v){return g.c(v,KV(Q),0)})};
  1442. window.addEventListener("offline",this.L);window.addEventListener("online",this.L);this.N||this.Jh()};
  1443. BIC=function(){var T=g.P0;xQ.instance||(xQ.instance=new xQ(T));return xQ.instance};
  1444. KV=function(T,Q){return T.Y?T.Y:T.Y=new Promise(function(k){var l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:return l=window.AbortController?new window.AbortController:void 0,L=(v=l)==null?void 0:v.signal,q=!1,g.z5(Y,2,3),l&&(T.S=T.qy.oD(function(){l.abort()},Q||2E4)),g.c(Y,fetch("/generate_204",{method:"HEAD",
  1445. signal:L}),5);case 5:q=!0;case 3:g.aI(Y);T.Y=void 0;T.S&&(T.qy.wC(T.S),T.S=0);q!==T.T&&(T.T=q,T.T?T.dispatchEvent("networkstatus-online"):T.dispatchEvent("networkstatus-offline"));k(q);g.n5(Y,0);break;case 2:g.by(Y),q=!1,Y.Ym(3)}})})};
  1446. zm6=function(T){this.g5=JP(T)};
  1447. H0=function(){this.data=[];this.T=-1};
  1448. Xcu=function(T){T.T===-1&&(T.T=T.data.reduce(function(Q,k,l){return Q+(k?Math.pow(2,l):0)},0));
  1449. return T.T};
  1450. te=function(T){T.setAttribute("role","link")};
  1451. pV=function(T,Q){Array.isArray(Q)&&(Q=Q.join(" "));Q===""||Q==void 0?(Oz||(Q={},Oz=(Q.atomic=!1,Q.autocomplete="none",Q.dropeffect="none",Q.haspopup=!1,Q.live="off",Q.multiline=!1,Q.multiselectable=!1,Q.orientation="vertical",Q.readonly=!1,Q.relevant="additions text",Q.required=!1,Q.sort="none",Q.busy=!1,Q.disabled=!1,Q.hidden=!1,Q.invalid="false",Q)),Q=Oz,"label"in Q?T.setAttribute("aria-label",Q.label):T.removeAttribute("aria-label")):T.setAttribute("aria-label",Q)};
  1452. Je=function(T){T=T.getAttribute("aria-label");return T==null||T==void 0?"":String(T)};
  1453. g.ee=function(T,Q,k){g.x.call(this);this.T=null;this.Y=!1;this.B=T;this.N=k;this.S=Q||window;this.L=(0,g.Mp)(this.S7,this)};
  1454. wcI=function(T){T=T.S;return T.requestAnimationFrame||T.webkitRequestAnimationFrame||T.mozRequestAnimationFrame||T.oRequestAnimationFrame||T.msRequestAnimationFrame||null};
  1455. dw5=function(T){T=T.S;return T.cancelAnimationFrame||T.cancelRequestAnimationFrame||T.webkitCancelRequestAnimationFrame||T.mozCancelRequestAnimationFrame||T.oCancelRequestAnimationFrame||T.msCancelRequestAnimationFrame||null};
  1456. g.FA=function(T,Q,k){g.x.call(this);this.T=T;this.d8=Q||0;this.S=k;this.L=(0,g.Mp)(this.Qk,this)};
  1457. g.Ez=function(T,Q){T.isActive()||T.start(Q)};
  1458. g.yq=function(T){T.stop();T.Qk()};
  1459. g.iN=function(T){T.isActive()&&g.yq(T)};
  1460. g.Vq=function(T,Q,k){g.x.call(this);this.Y=k!=null?T.bind(k):T;this.d8=Q;this.L=null;this.T=!1;this.S=0;this.D8=null};
  1461. Te=function(T){T.D8=g.P4(function(){T.D8=null;T.T&&!T.S&&(T.T=!1,Te(T))},T.d8);
  1462. var Q=T.L;T.L=null;T.Y.apply(null,Q)};
  1463. g.QO=function(T,Q){this.T=T[g.VC.Symbol.iterator]();this.S=Q};
  1464. NIC=function(T){return typeof T.className=="string"?T.className:T.getAttribute&&T.getAttribute("class")||""};
  1465. j_=function(T){return T.classList?T.classList:NIC(T).match(/\S+/g)||[]};
  1466. g.kh=function(T,Q){typeof T.className=="string"?T.className=Q:T.setAttribute&&T.setAttribute("class",Q)};
  1467. g.lw=function(T,Q){return T.classList?T.classList.contains(Q):g.CW(j_(T),Q)};
  1468. g.oF=function(T,Q){if(T.classList)T.classList.add(Q);else if(!g.lw(T,Q)){var k=NIC(T);g.kh(T,k+(k.length>0?" "+Q:Q))}};
  1469. g.vq=function(T,Q){if(T.classList)Array.prototype.forEach.call(Q,function(v){g.oF(T,v)});
  1470. else{var k={};Array.prototype.forEach.call(j_(T),function(v){k[v]=!0});
  1471. Array.prototype.forEach.call(Q,function(v){k[v]=!0});
  1472. Q="";for(var l in k)Q+=Q.length>0?" "+l:l;g.kh(T,Q)}};
  1473. g.Lb=function(T,Q){T.classList?T.classList.remove(Q):g.lw(T,Q)&&g.kh(T,Array.prototype.filter.call(j_(T),function(k){return k!=Q}).join(" "))};
  1474. g.qN=function(T,Q){T.classList?Array.prototype.forEach.call(Q,function(k){g.Lb(T,k)}):g.kh(T,Array.prototype.filter.call(j_(T),function(k){return!g.CW(Q,k)}).join(" "))};
  1475. g.gl=function(T,Q,k){k?g.oF(T,Q):g.Lb(T,Q)};
  1476. AzX=function(T,Q){var k=!g.lw(T,Q);g.gl(T,Q,k)};
  1477. g.MN=function(){g.fL.call(this);this.T=0;this.endTime=this.startTime=null};
  1478. bSX=function(T,Q){Array.isArray(Q)||(Q=[Q]);Q=Q.map(function(k){return typeof k==="string"?k:k.property+" "+k.duration+"s "+k.timing+" "+k.delay+"s"});
  1479. g.W2(T,"transition",Q.join(","))};
  1480. Yh=function(T,Q,k,l,v){g.MN.call(this);this.S=T;this.N=Q;this.B=k;this.Y=l;this.C=Array.isArray(v)?v:[v]};
  1481. rzt=function(T,Q,k,l){return new Yh(T,Q,{opacity:k},{opacity:l},{property:"opacity",duration:Q,timing:"ease-in",delay:0})};
  1482. Dwf=function(T){T=as(T);if(T=="")return null;var Q=String(T.slice(0,4)).toLowerCase();if(("url("<Q?-1:"url("==Q?0:1)==0)return!T.endsWith(")")||(T?T.split("(").length-1:0)>1||T&&T.split(")"),null;if(T.indexOf("(")>0){if(/"|'/.test(T))return null;Q=/([\-\w]+)\(/g;for(var k;k=Q.exec(T);)if(!(k[1].toLowerCase()in czy))return null}return T};
  1483. U7=function(T,Q){T=g.VC[T];return T&&T.prototype?(Q=Object.getOwnPropertyDescriptor(T.prototype,Q))&&Q.get||null:null};
  1484. aBX=function(T){var Q=g.VC.CSSStyleDeclaration;return Q&&Q.prototype&&Q.prototype[T]||null};
  1485. uzy=function(T,Q,k,l){if(T)return T.apply(Q,l);if(g.RF&&document.documentMode<10){if(!Q[k].call)throw Error("IE Clobbering detected");}else if(typeof Q[k]!="function")throw Error("Clobbering detected");return Q[k].apply(Q,l)};
  1486. HSI=function(T){if(!T)return"";var Q=document.createElement("div").style;nfy(T).forEach(function(k){var l=g.Y1&&k in Kfu?k:k.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");AV(l,"--")||AV(l,"var")||(k=uzy(xwb,T,T.getPropertyValue?"getPropertyValue":"getAttribute",[k])||"",k=Dwf(k),k!=null&&uzy(Pr5,Q,Q.setProperty?"setProperty":"setAttribute",[l,k]))});
  1487. return Q.cssText||""};
  1488. nfy=function(T){g.o_(T)?T=g.r$(T):(T=g.gz(T),g.zv(T,"cssText"));return T};
  1489. g.fb=function(T){var Q,k=Q=0,l=!1;T=T.split(tHg);for(var v=0;v<T.length;v++){var L=T[v];g.Z5.test(L)?(Q++,k++):OSt.test(L)?l=!0:pc6.test(L)?k++:WfX.test(L)&&(l=!0)}Q=k==0?l?1:0:Q/k>.4?-1:1;return(Q==0?null:Q)==-1?"rtl":"ltr"};
  1490. g.hJ=function(T){if(T instanceof Ge||T instanceof mz||T instanceof IF)return T;if(typeof T.next=="function")return new Ge(function(){return T});
  1491. if(typeof T[Symbol.iterator]=="function")return new Ge(function(){return T[Symbol.iterator]()});
  1492. if(typeof T.Xu=="function")return new Ge(function(){return T.Xu()});
  1493. throw Error("Not an iterator or iterable.");};
  1494. Ge=function(T){this.S=T};
  1495. mz=function(T){this.S=T};
  1496. IF=function(T){Ge.call(this,function(){return T});
  1497. this.L=T};
  1498. s7=function(T,Q,k,l,v,L,q,Y){this.T=T;this.C=Q;this.L=k;this.N=l;this.Y=v;this.B=L;this.S=q;this.j=Y};
  1499. S_=function(T,Q){if(Q==0)return T.T;if(Q==1)return T.S;var k=pl(T.T,T.L,Q),l=pl(T.L,T.Y,Q);T=pl(T.Y,T.S,Q);k=pl(k,l,Q);l=pl(l,T,Q);return pl(k,l,Q)};
  1500. $wC=function(T,Q){var k=(Q-T.T)/(T.S-T.T);if(k<=0)return 0;if(k>=1)return 1;for(var l=0,v=1,L=0,q=0;q<8;q++){L=S_(T,k);var Y=(S_(T,k+1E-6)-L)/1E-6;if(Math.abs(L-Q)<1E-6)return k;if(Math.abs(Y)<1E-6)break;else L<Q?l=k:v=k,k-=(L-Q)/Y}for(q=0;Math.abs(L-Q)>1E-6&&q<8;q++)L<Q?(l=k,k=(k+v)/2):(v=k,k=(k+l)/2),L=S_(T,k);return k};
  1501. Cb=function(T,Q){this.start=T<Q?T:Q;this.end=T<Q?Q:T};
  1502. Bq=function(T){return(T=T.exec(g.KJ()))?T[1]:""};
  1503. ze=function(T){return g.nJ(JzI,T)>=0};
  1504. g.XE=function(T){g.x.call(this);this.B=1;this.L=[];this.Y=0;this.T=[];this.S={};this.C=!!T};
  1505. emX=function(T,Q,k){g.Ad(function(){T.apply(Q,k)})};
  1506. g.wl=function(T){this.T=T};
  1507. dl=function(T){this.T=T};
  1508. FfI=function(T){this.data=T};
  1509. Eft=function(T){return T===void 0||T instanceof FfI?T:new FfI(T)};
  1510. NN=function(T){this.T=T};
  1511. g.yz5=function(T){var Q=T.creation;T=T.expiration;return!!T&&T<g.R_()||!!Q&&Q>g.R_()};
  1512. g.AJ=function(T){this.T=T};
  1513. iS5=function(){};
  1514. bw=function(){};
  1515. rl=function(T){this.T=T;this.S=null};
  1516. cq=function(T){if(T.T==null)throw Error("Storage mechanism: Storage unavailable");T.isAvailable()||X1(Error("Storage mechanism: Storage unavailable"))};
  1517. D5=function(){var T=null;try{T=g.VC.localStorage||null}catch(Q){}rl.call(this,T)};
  1518. VHy=function(){var T=null;try{T=g.VC.sessionStorage||null}catch(Q){}rl.call(this,T)};
  1519. aF=function(T,Q){this.S=T;this.T=Q+"::"};
  1520. g.uw=function(T){var Q=new D5;return Q.isAvailable()?T?new aF(Q,T):Q:null};
  1521. nb=function(T,Q){this.T=T;this.S=Q};
  1522. Kb=function(T){this.T=[];if(T)a:{if(T instanceof Kb){var Q=T.zG();T=T.b0();if(this.T.length<=0){for(var k=this.T,l=0;l<Q.length;l++)k.push(new nb(Q[l],T[l]));break a}}else Q=g.gz(T),T=os(T);for(k=0;k<Q.length;k++)this.o2(Q[k],T[k])}};
  1523. xh=function(){Kb.apply(this,arguments)};
  1524. Pq=function(){};
  1525. Tc5=function(){var T=Error();T.name="SecurityError";throw T;};
  1526. QSy=function(){return{get opener(){return null},get closed(){return!0},get location(){Tc5()},get document(){Tc5()},postMessage:function(){},
  1527. close:function(){},
  1528. focus:function(){}}};
  1529. jST=function(T){var Q,k,l=T.length,v=0;for(Q=0;Q<l;Q++){var L=T.charCodeAt(Q);if((L&64512)===55296&&Q+1<l){var q=T.charCodeAt(Q+1);(q&64512)===56320&&(L=65536+(L-55296<<10)+(q-56320),Q++)}v+=L<128?1:L<2048?2:L<65536?3:4}var Y=new Hq.Pt(v);for(Q=k=0;k<v;Q++)L=T.charCodeAt(Q),(L&64512)===55296&&Q+1<l&&(q=T.charCodeAt(Q+1),(q&64512)===56320&&(L=65536+(L-55296<<10)+(q-56320),Q++)),L<128?Y[k++]=L:(L<2048?Y[k++]=192|L>>>6:(L<65536?Y[k++]=224|L>>>12:(Y[k++]=240|L>>>18,Y[k++]=128|L>>>12&63),Y[k++]=128|L>>>
  1530. 6&63),Y[k++]=128|L&63);return Y};
  1531. tJ=function(T){for(var Q=T.length;--Q>=0;)T[Q]=0};
  1532. O7=function(T,Q,k,l,v){this.f2=T;this.mN=Q;this.YJ=k;this.fF=l;this.H_6=v;this.gb=T&&T.length};
  1533. pb=function(T,Q){this.AD=T;this.nM=0;this.qv=Q};
  1534. Wq=function(T,Q){T.Ab[T.pending++]=Q&255;T.Ab[T.pending++]=Q>>>8&255};
  1535. $h=function(T,Q,k){T.Db>16-k?(T.Gs|=Q<<T.Db&65535,Wq(T,T.Gs),T.Gs=Q>>16-T.Db,T.Db+=k-16):(T.Gs|=Q<<T.Db&65535,T.Db+=k)};
  1536. JJ=function(T,Q,k){$h(T,k[Q*2],k[Q*2+1])};
  1537. kl5=function(T,Q){var k=0;do k|=T&1,T>>>=1,k<<=1;while(--Q>0);return k>>>1};
  1538. lTC=function(T,Q,k){var l=Array(16),v=0,L;for(L=1;L<=15;L++)l[L]=v=v+k[L-1]<<1;for(k=0;k<=Q;k++)v=T[k*2+1],v!==0&&(T[k*2]=kl5(l[v]++,v))};
  1539. o35=function(T){var Q;for(Q=0;Q<286;Q++)T.rC[Q*2]=0;for(Q=0;Q<30;Q++)T.s6[Q*2]=0;for(Q=0;Q<19;Q++)T.k$[Q*2]=0;T.rC[512]=1;T.kQ=T.tJ=0;T.W4=T.matches=0};
  1540. v35=function(T){T.Db>8?Wq(T,T.Gs):T.Db>0&&(T.Ab[T.pending++]=T.Gs);T.Gs=0;T.Db=0};
  1541. L5X=function(T,Q,k){v35(T);Wq(T,k);Wq(T,~k);Hq.En(T.Ab,T.window,Q,k,T.pending);T.pending+=k};
  1542. qJb=function(T,Q,k,l){var v=Q*2,L=k*2;return T[v]<T[L]||T[v]===T[L]&&l[Q]<=l[k]};
  1543. e_=function(T,Q,k){for(var l=T.P1[k],v=k<<1;v<=T.KS;){v<T.KS&&qJb(Q,T.P1[v+1],T.P1[v],T.depth)&&v++;if(qJb(Q,l,T.P1[v],T.depth))break;T.P1[k]=T.P1[v];k=v;v<<=1}T.P1[k]=l};
  1544. g3f=function(T,Q,k){var l=0;if(T.W4!==0){do{var v=T.Ab[T.pQ+l*2]<<8|T.Ab[T.pQ+l*2+1];var L=T.Ab[T.c6+l];l++;if(v===0)JJ(T,L,Q);else{var q=FE[L];JJ(T,q+256+1,Q);var Y=E7[q];Y!==0&&(L-=yO[q],$h(T,L,Y));v--;q=v<256?iw[v]:iw[256+(v>>>7)];JJ(T,q,k);Y=VO[q];Y!==0&&(v-=Tf[q],$h(T,v,Y))}}while(l<T.W4)}JJ(T,256,Q)};
  1545. Qt=function(T,Q){var k=Q.AD,l=Q.qv.f2,v=Q.qv.gb,L=Q.qv.fF,q,Y=-1;T.KS=0;T.c$=573;for(q=0;q<L;q++)k[q*2]!==0?(T.P1[++T.KS]=Y=q,T.depth[q]=0):k[q*2+1]=0;for(;T.KS<2;){var U=T.P1[++T.KS]=Y<2?++Y:0;k[U*2]=1;T.depth[U]=0;T.kQ--;v&&(T.tJ-=l[U*2+1])}Q.nM=Y;for(q=T.KS>>1;q>=1;q--)e_(T,k,q);U=L;do q=T.P1[1],T.P1[1]=T.P1[T.KS--],e_(T,k,1),l=T.P1[1],T.P1[--T.c$]=q,T.P1[--T.c$]=l,k[U*2]=k[q*2]+k[l*2],T.depth[U]=(T.depth[q]>=T.depth[l]?T.depth[q]:T.depth[l])+1,k[q*2+1]=k[l*2+1]=U,T.P1[1]=U++,e_(T,k,1);while(T.KS>=
  1546. 2);T.P1[--T.c$]=T.P1[1];q=Q.AD;U=Q.nM;l=Q.qv.f2;v=Q.qv.gb;L=Q.qv.mN;var R=Q.qv.YJ,Z=Q.qv.H_6,f,G=0;for(f=0;f<=15;f++)T.X3[f]=0;q[T.P1[T.c$]*2+1]=0;for(Q=T.c$+1;Q<573;Q++){var m=T.P1[Q];f=q[q[m*2+1]*2+1]+1;f>Z&&(f=Z,G++);q[m*2+1]=f;if(!(m>U)){T.X3[f]++;var I=0;m>=R&&(I=L[m-R]);var z=q[m*2];T.kQ+=z*(f+I);v&&(T.tJ+=z*(l[m*2+1]+I))}}if(G!==0){do{for(f=Z-1;T.X3[f]===0;)f--;T.X3[f]--;T.X3[f+1]+=2;T.X3[Z]--;G-=2}while(G>0);for(f=Z;f!==0;f--)for(m=T.X3[f];m!==0;)l=T.P1[--Q],l>U||(q[l*2+1]!==f&&(T.kQ+=(f-
  1547. q[l*2+1])*q[l*2],q[l*2+1]=f),m--)}lTC(k,Y,T.X3)};
  1548. Mat=function(T,Q,k){var l,v=-1,L=Q[1],q=0,Y=7,U=4;L===0&&(Y=138,U=3);Q[(k+1)*2+1]=65535;for(l=0;l<=k;l++){var R=L;L=Q[(l+1)*2+1];++q<Y&&R===L||(q<U?T.k$[R*2]+=q:R!==0?(R!==v&&T.k$[R*2]++,T.k$[32]++):q<=10?T.k$[34]++:T.k$[36]++,q=0,v=R,L===0?(Y=138,U=3):R===L?(Y=6,U=3):(Y=7,U=4))}};
  1549. YJ5=function(T,Q,k){var l,v=-1,L=Q[1],q=0,Y=7,U=4;L===0&&(Y=138,U=3);for(l=0;l<=k;l++){var R=L;L=Q[(l+1)*2+1];if(!(++q<Y&&R===L)){if(q<U){do JJ(T,R,T.k$);while(--q!==0)}else R!==0?(R!==v&&(JJ(T,R,T.k$),q--),JJ(T,16,T.k$),$h(T,q-3,2)):q<=10?(JJ(T,17,T.k$),$h(T,q-3,3)):(JJ(T,18,T.k$),$h(T,q-11,7));q=0;v=R;L===0?(Y=138,U=3):R===L?(Y=6,U=3):(Y=7,U=4)}}};
  1550. UFg=function(T){var Q=4093624447,k;for(k=0;k<=31;k++,Q>>>=1)if(Q&1&&T.rC[k*2]!==0)return 0;if(T.rC[18]!==0||T.rC[20]!==0||T.rC[26]!==0)return 1;for(k=32;k<256;k++)if(T.rC[k*2]!==0)return 1;return 0};
  1551. jm=function(T,Q,k){T.Ab[T.pQ+T.W4*2]=Q>>>8&255;T.Ab[T.pQ+T.W4*2+1]=Q&255;T.Ab[T.c6+T.W4]=k&255;T.W4++;Q===0?T.rC[k*2]++:(T.matches++,Q--,T.rC[(FE[k]+256+1)*2]++,T.s6[(Q<256?iw[Q]:iw[256+(Q>>>7)])*2]++);return T.W4===T.US-1};
  1552. lK=function(T,Q){T.msg=ki[Q];return Q};
  1553. ob=function(T){for(var Q=T.length;--Q>=0;)T[Q]=0};
  1554. vN=function(T){var Q=T.state,k=Q.pending;k>T.EW&&(k=T.EW);k!==0&&(Hq.En(T.output,Q.Ab,Q.Qf,k,T.v$),T.v$+=k,Q.Qf+=k,T.wW+=k,T.EW-=k,Q.pending-=k,Q.pending===0&&(Q.Qf=0))};
  1555. gE=function(T,Q){var k=T.l5>=0?T.l5:-1,l=T.UG-T.l5,v=0;if(T.level>0){T.Wn.v3===2&&(T.Wn.v3=UFg(T));Qt(T,T.t4);Qt(T,T.FW);Mat(T,T.rC,T.t4.nM);Mat(T,T.s6,T.FW.nM);Qt(T,T.Kb);for(v=18;v>=3&&T.k$[R8I[v]*2+1]===0;v--);T.kQ+=3*(v+1)+5+5+4;var L=T.kQ+3+7>>>3;var q=T.tJ+3+7>>>3;q<=L&&(L=q)}else L=q=l+5;if(l+4<=L&&k!==-1)$h(T,Q?1:0,3),L5X(T,k,l);else if(T.strategy===4||q===L)$h(T,2+(Q?1:0),3),g3f(T,Le,qI);else{$h(T,4+(Q?1:0),3);k=T.t4.nM+1;l=T.FW.nM+1;v+=1;$h(T,k-257,5);$h(T,l-1,5);$h(T,v-4,4);for(L=0;L<v;L++)$h(T,
  1556. T.k$[R8I[L]*2+1],3);YJ5(T,T.rC,k-1);YJ5(T,T.s6,l-1);g3f(T,T.rC,T.s6)}o35(T);Q&&v35(T);T.l5=T.UG;vN(T.Wn)};
  1557. MI=function(T,Q){T.Ab[T.pending++]=Q};
  1558. Yi=function(T,Q){T.Ab[T.pending++]=Q>>>8&255;T.Ab[T.pending++]=Q&255};
  1559. ZL6=function(T,Q){var k=T.Q0,l=T.UG,v=T.H4,L=T.r0,q=T.UG>T.Ay-262?T.UG-(T.Ay-262):0,Y=T.window,U=T.dQ,R=T.AV,Z=T.UG+258,f=Y[l+v-1],G=Y[l+v];T.H4>=T.rU&&(k>>=2);L>T.Hh&&(L=T.Hh);do{var m=Q;if(Y[m+v]===G&&Y[m+v-1]===f&&Y[m]===Y[l]&&Y[++m]===Y[l+1]){l+=2;for(m++;Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&l<Z;);m=258-(Z-l);l=Z-258;if(m>v){T.G4=Q;v=m;if(m>=L)break;f=Y[l+v-1];G=Y[l+v]}}}while((Q=R[Q&U])>q&&--k!==
  1560. 0);return v<=T.Hh?v:T.Hh};
  1561. Z0=function(T){var Q=T.Ay,k;do{var l=T.FP-T.Hh-T.UG;if(T.UG>=Q+(Q-262)){Hq.En(T.window,T.window,Q,Q,0);T.G4-=Q;T.UG-=Q;T.l5-=Q;var v=k=T.UA;do{var L=T.head[--v];T.head[v]=L>=Q?L-Q:0}while(--k);v=k=Q;do L=T.AV[--v],T.AV[v]=L>=Q?L-Q:0;while(--k);l+=Q}if(T.Wn.KB===0)break;v=T.Wn;k=T.window;L=T.UG+T.Hh;var q=v.KB;q>l&&(q=l);q===0?k=0:(v.KB-=q,Hq.En(k,v.input,v.jp,q,L),v.state.wrap===1?v.CY=U4(v.CY,k,q,L):v.state.wrap===2&&(v.CY=Rb(v.CY,k,q,L)),v.jp+=q,v.wY+=q,k=q);T.Hh+=k;if(T.Hh+T.o2>=3)for(l=T.UG-T.o2,
  1562. T.MF=T.window[l],T.MF=(T.MF<<T.IY^T.window[l+1])&T.b6;T.o2&&!(T.MF=(T.MF<<T.IY^T.window[l+3-1])&T.b6,T.AV[l&T.dQ]=T.head[T.MF],T.head[T.MF]=l,l++,T.o2--,T.Hh+T.o2<3););}while(T.Hh<262&&T.Wn.KB!==0)};
  1563. fe=function(T,Q){for(var k;;){if(T.Hh<262){Z0(T);if(T.Hh<262&&Q===0)return 1;if(T.Hh===0)break}k=0;T.Hh>=3&&(T.MF=(T.MF<<T.IY^T.window[T.UG+3-1])&T.b6,k=T.AV[T.UG&T.dQ]=T.head[T.MF],T.head[T.MF]=T.UG);k!==0&&T.UG-k<=T.Ay-262&&(T.Bk=ZL6(T,k));if(T.Bk>=3)if(k=jm(T,T.UG-T.G4,T.Bk-3),T.Hh-=T.Bk,T.Bk<=T.UO&&T.Hh>=3){T.Bk--;do T.UG++,T.MF=(T.MF<<T.IY^T.window[T.UG+3-1])&T.b6,T.AV[T.UG&T.dQ]=T.head[T.MF],T.head[T.MF]=T.UG;while(--T.Bk!==0);T.UG++}else T.UG+=T.Bk,T.Bk=0,T.MF=T.window[T.UG],T.MF=(T.MF<<T.IY^
  1564. T.window[T.UG+1])&T.b6;else k=jm(T,0,T.window[T.UG]),T.Hh--,T.UG++;if(k&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=T.UG<2?T.UG:2;return Q===4?(gE(T,!0),T.Wn.EW===0?3:4):T.W4&&(gE(T,!1),T.Wn.EW===0)?1:2};
  1565. Gf=function(T,Q){for(var k,l;;){if(T.Hh<262){Z0(T);if(T.Hh<262&&Q===0)return 1;if(T.Hh===0)break}k=0;T.Hh>=3&&(T.MF=(T.MF<<T.IY^T.window[T.UG+3-1])&T.b6,k=T.AV[T.UG&T.dQ]=T.head[T.MF],T.head[T.MF]=T.UG);T.H4=T.Bk;T.PX=T.G4;T.Bk=2;k!==0&&T.H4<T.UO&&T.UG-k<=T.Ay-262&&(T.Bk=ZL6(T,k),T.Bk<=5&&(T.strategy===1||T.Bk===3&&T.UG-T.G4>4096)&&(T.Bk=2));if(T.H4>=3&&T.Bk<=T.H4){l=T.UG+T.Hh-3;k=jm(T,T.UG-1-T.PX,T.H4-3);T.Hh-=T.H4-1;T.H4-=2;do++T.UG<=l&&(T.MF=(T.MF<<T.IY^T.window[T.UG+3-1])&T.b6,T.AV[T.UG&T.dQ]=
  1566. T.head[T.MF],T.head[T.MF]=T.UG);while(--T.H4!==0);T.BV=0;T.Bk=2;T.UG++;if(k&&(gE(T,!1),T.Wn.EW===0))return 1}else if(T.BV){if((k=jm(T,0,T.window[T.UG-1]))&&gE(T,!1),T.UG++,T.Hh--,T.Wn.EW===0)return 1}else T.BV=1,T.UG++,T.Hh--}T.BV&&(jm(T,0,T.window[T.UG-1]),T.BV=0);T.o2=T.UG<2?T.UG:2;return Q===4?(gE(T,!0),T.Wn.EW===0?3:4):T.W4&&(gE(T,!1),T.Wn.EW===0)?1:2};
  1567. fT5=function(T,Q){for(var k,l,v,L=T.window;;){if(T.Hh<=258){Z0(T);if(T.Hh<=258&&Q===0)return 1;if(T.Hh===0)break}T.Bk=0;if(T.Hh>=3&&T.UG>0&&(l=T.UG-1,k=L[l],k===L[++l]&&k===L[++l]&&k===L[++l])){for(v=T.UG+258;k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&l<v;);T.Bk=258-(v-l);T.Bk>T.Hh&&(T.Bk=T.Hh)}T.Bk>=3?(k=jm(T,1,T.Bk-3),T.Hh-=T.Bk,T.UG+=T.Bk,T.Bk=0):(k=jm(T,0,T.window[T.UG]),T.Hh--,T.UG++);if(k&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=0;return Q===
  1568. 4?(gE(T,!0),T.Wn.EW===0?3:4):T.W4&&(gE(T,!1),T.Wn.EW===0)?1:2};
  1569. Gl5=function(T,Q){for(var k;;){if(T.Hh===0&&(Z0(T),T.Hh===0)){if(Q===0)return 1;break}T.Bk=0;k=jm(T,0,T.window[T.UG]);T.Hh--;T.UG++;if(k&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=0;return Q===4?(gE(T,!0),T.Wn.EW===0?3:4):T.W4&&(gE(T,!1),T.Wn.EW===0)?1:2};
  1570. ma=function(T,Q,k,l,v){this.dX=T;this.MQ=Q;this.mO_=k;this.DU=l;this.func=v};
  1571. mF6=function(){this.Wn=null;this.status=0;this.Ab=null;this.wrap=this.pending=this.Qf=this.MB=0;this.NF=null;this.vH=0;this.method=8;this.JN=-1;this.dQ=this.fT=this.Ay=0;this.window=null;this.FP=0;this.head=this.AV=null;this.r0=this.rU=this.strategy=this.level=this.UO=this.Q0=this.H4=this.Hh=this.G4=this.UG=this.BV=this.PX=this.Bk=this.l5=this.IY=this.b6=this.wR=this.UA=this.MF=0;this.rC=new Hq.oY(1146);this.s6=new Hq.oY(122);this.k$=new Hq.oY(78);ob(this.rC);ob(this.s6);ob(this.k$);this.Kb=this.FW=
  1572. this.t4=null;this.X3=new Hq.oY(16);this.P1=new Hq.oY(573);ob(this.P1);this.c$=this.KS=0;this.depth=new Hq.oY(573);ob(this.depth);this.Db=this.Gs=this.o2=this.matches=this.tJ=this.kQ=this.pQ=this.W4=this.US=this.c6=0};
  1573. IT5=function(T,Q){if(!T||!T.state||Q>5||Q<0)return T?lK(T,-2):-2;var k=T.state;if(!T.output||!T.input&&T.KB!==0||k.status===666&&Q!==4)return lK(T,T.EW===0?-5:-2);k.Wn=T;var l=k.JN;k.JN=Q;if(k.status===42)if(k.wrap===2)T.CY=0,MI(k,31),MI(k,139),MI(k,8),k.NF?(MI(k,(k.NF.text?1:0)+(k.NF.WB?2:0)+(k.NF.extra?4:0)+(k.NF.name?8:0)+(k.NF.comment?16:0)),MI(k,k.NF.time&255),MI(k,k.NF.time>>8&255),MI(k,k.NF.time>>16&255),MI(k,k.NF.time>>24&255),MI(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),MI(k,k.NF.os&
  1574. 255),k.NF.extra&&k.NF.extra.length&&(MI(k,k.NF.extra.length&255),MI(k,k.NF.extra.length>>8&255)),k.NF.WB&&(T.CY=Rb(T.CY,k.Ab,k.pending,0)),k.vH=0,k.status=69):(MI(k,0),MI(k,0),MI(k,0),MI(k,0),MI(k,0),MI(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),MI(k,3),k.status=113);else{var v=8+(k.fT-8<<4)<<8;v|=(k.strategy>=2||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6;k.UG!==0&&(v|=32);k.status=113;Yi(k,v+(31-v%31));k.UG!==0&&(Yi(k,T.CY>>>16),Yi(k,T.CY&65535));T.CY=1}if(k.status===69)if(k.NF.extra){for(v=
  1575. k.pending;k.vH<(k.NF.extra.length&65535)&&(k.pending!==k.MB||(k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v)),vN(T),v=k.pending,k.pending!==k.MB));)MI(k,k.NF.extra[k.vH]&255),k.vH++;k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v));k.vH===k.NF.extra.length&&(k.vH=0,k.status=73)}else k.status=73;if(k.status===73)if(k.NF.name){v=k.pending;do{if(k.pending===k.MB&&(k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v)),vN(T),v=k.pending,k.pending===k.MB)){var L=1;break}L=k.vH<k.NF.name.length?
  1576. k.NF.name.charCodeAt(k.vH++)&255:0;MI(k,L)}while(L!==0);k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v));L===0&&(k.vH=0,k.status=91)}else k.status=91;if(k.status===91)if(k.NF.comment){v=k.pending;do{if(k.pending===k.MB&&(k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v)),vN(T),v=k.pending,k.pending===k.MB)){L=1;break}L=k.vH<k.NF.comment.length?k.NF.comment.charCodeAt(k.vH++)&255:0;MI(k,L)}while(L!==0);k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v));L===0&&(k.status=103)}else k.status=
  1577. 103;k.status===103&&(k.NF.WB?(k.pending+2>k.MB&&vN(T),k.pending+2<=k.MB&&(MI(k,T.CY&255),MI(k,T.CY>>8&255),T.CY=0,k.status=113)):k.status=113);if(k.pending!==0){if(vN(T),T.EW===0)return k.JN=-1,0}else if(T.KB===0&&(Q<<1)-(Q>4?9:0)<=(l<<1)-(l>4?9:0)&&Q!==4)return lK(T,-5);if(k.status===666&&T.KB!==0)return lK(T,-5);if(T.KB!==0||k.Hh!==0||Q!==0&&k.status!==666){l=k.strategy===2?Gl5(k,Q):k.strategy===3?fT5(k,Q):Ib[k.level].func(k,Q);if(l===3||l===4)k.status=666;if(l===1||l===3)return T.EW===0&&(k.JN=
  1578. -1),0;if(l===2&&(Q===1?($h(k,2,3),JJ(k,256,Le),k.Db===16?(Wq(k,k.Gs),k.Gs=0,k.Db=0):k.Db>=8&&(k.Ab[k.pending++]=k.Gs&255,k.Gs>>=8,k.Db-=8)):Q!==5&&($h(k,0,3),L5X(k,0,0),Q===3&&(ob(k.head),k.Hh===0&&(k.UG=0,k.l5=0,k.o2=0))),vN(T),T.EW===0))return k.JN=-1,0}if(Q!==4)return 0;if(k.wrap<=0)return 1;k.wrap===2?(MI(k,T.CY&255),MI(k,T.CY>>8&255),MI(k,T.CY>>16&255),MI(k,T.CY>>24&255),MI(k,T.wY&255),MI(k,T.wY>>8&255),MI(k,T.wY>>16&255),MI(k,T.wY>>24&255)):(Yi(k,T.CY>>>16),Yi(k,T.CY&65535));vN(T);k.wrap>0&&
  1579. (k.wrap=-k.wrap);return k.pending!==0?0:1};
  1580. hI=function(T){if(!(this instanceof hI))return new hI(T);T=this.options=Hq.assign({level:-1,method:8,chunkSize:16384,x4:15,SKk:8,strategy:0,to:""},T||{});T.raw&&T.x4>0?T.x4=-T.x4:T.x7&&T.x4>0&&T.x4<16&&(T.x4+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Wn=new h8u;this.Wn.EW=0;var Q=this.Wn;var k=T.level,l=T.method,v=T.x4,L=T.SKk,q=T.strategy;if(Q){var Y=1;k===-1&&(k=6);v<0?(Y=0,v=-v):v>15&&(Y=2,v-=16);if(L<1||L>9||l!==8||v<8||v>15||k<0||k>9||q<0||q>4)Q=lK(Q,-2);else{v===8&&(v=9);
  1581. var U=new mF6;Q.state=U;U.Wn=Q;U.wrap=Y;U.NF=null;U.fT=v;U.Ay=1<<U.fT;U.dQ=U.Ay-1;U.wR=L+7;U.UA=1<<U.wR;U.b6=U.UA-1;U.IY=~~((U.wR+3-1)/3);U.window=new Hq.Pt(U.Ay*2);U.head=new Hq.oY(U.UA);U.AV=new Hq.oY(U.Ay);U.US=1<<L+6;U.MB=U.US*4;U.Ab=new Hq.Pt(U.MB);U.pQ=1*U.US;U.c6=3*U.US;U.level=k;U.strategy=q;U.method=l;if(Q&&Q.state){Q.wY=Q.wW=0;Q.v3=2;k=Q.state;k.pending=0;k.Qf=0;k.wrap<0&&(k.wrap=-k.wrap);k.status=k.wrap?42:113;Q.CY=k.wrap===2?0:1;k.JN=0;if(!sSt){l=Array(16);for(L=q=0;L<28;L++)for(yO[L]=
  1582. q,v=0;v<1<<E7[L];v++)FE[q++]=L;FE[q-1]=L;for(L=q=0;L<16;L++)for(Tf[L]=q,v=0;v<1<<VO[L];v++)iw[q++]=L;for(q>>=7;L<30;L++)for(Tf[L]=q<<7,v=0;v<1<<VO[L]-7;v++)iw[256+q++]=L;for(v=0;v<=15;v++)l[v]=0;for(v=0;v<=143;)Le[v*2+1]=8,v++,l[8]++;for(;v<=255;)Le[v*2+1]=9,v++,l[9]++;for(;v<=279;)Le[v*2+1]=7,v++,l[7]++;for(;v<=287;)Le[v*2+1]=8,v++,l[8]++;lTC(Le,287,l);for(v=0;v<30;v++)qI[v*2+1]=5,qI[v*2]=kl5(v,5);SJT=new O7(Le,E7,257,286,15);Co5=new O7(qI,VO,0,30,15);BcH=new O7([],z8b,0,19,7);sSt=!0}k.t4=new pb(k.rC,
  1583. SJT);k.FW=new pb(k.s6,Co5);k.Kb=new pb(k.k$,BcH);k.Gs=0;k.Db=0;o35(k);k=0}else k=lK(Q,-2);k===0&&(Q=Q.state,Q.FP=2*Q.Ay,ob(Q.head),Q.UO=Ib[Q.level].MQ,Q.rU=Ib[Q.level].dX,Q.r0=Ib[Q.level].mO_,Q.Q0=Ib[Q.level].DU,Q.UG=0,Q.l5=0,Q.Hh=0,Q.o2=0,Q.Bk=Q.H4=2,Q.BV=0,Q.MF=0);Q=k}}else Q=-2;if(Q!==0)throw Error(ki[Q]);T.header&&(Q=this.Wn)&&Q.state&&Q.state.wrap===2&&(Q.state.NF=T.header);if(T.uG){var R;typeof T.uG==="string"?R=jST(T.uG):X4T.call(T.uG)==="[object ArrayBuffer]"?R=new Uint8Array(T.uG):R=T.uG;
  1584. T=this.Wn;L=R;q=L.length;if(T&&T.state)if(R=T.state,Q=R.wrap,Q===2||Q===1&&R.status!==42||R.Hh)Q=-2;else{Q===1&&(T.CY=U4(T.CY,L,q,0));R.wrap=0;q>=R.Ay&&(Q===0&&(ob(R.head),R.UG=0,R.l5=0,R.o2=0),k=new Hq.Pt(R.Ay),Hq.En(k,L,q-R.Ay,R.Ay,0),L=k,q=R.Ay);k=T.KB;l=T.jp;v=T.input;T.KB=q;T.jp=0;T.input=L;for(Z0(R);R.Hh>=3;){L=R.UG;q=R.Hh-2;do R.MF=(R.MF<<R.IY^R.window[L+3-1])&R.b6,R.AV[L&R.dQ]=R.head[R.MF],R.head[R.MF]=L,L++;while(--q);R.UG=L;R.Hh=2;Z0(R)}R.UG+=R.Hh;R.l5=R.UG;R.o2=R.Hh;R.Hh=0;R.Bk=R.H4=2;
  1585. R.BV=0;T.jp=l;T.input=v;T.KB=k;R.wrap=Q;Q=0}else Q=-2;if(Q!==0)throw Error(ki[Q]);this.sGj=!0}};
  1586. w46=function(T,Q){Q=Q||{};Q.x7=!0;Q=new hI(Q);Q.push(T,!0);if(Q.err)throw Q.msg||ki[Q.err];return Q.result};
  1587. dFC=function(){var T=g.HT.apply(0,arguments);return T.length===0?function(Q){return Q}:T.length===1?T[0]:T.reduce(function(Q,k){return function(){return Q(k.apply(null,g.ZH(g.HT.apply(0,arguments))))}})};
  1588. Ncu=function(){var T=g.HT.apply(0,arguments);return function(Q){return function(k,l){function v(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
  1589. k=Q(k,l);var L={getState:k.getState,dispatch:function(q){return v.apply(null,[q].concat(g.ZH(g.HT.apply(1,arguments))))}};
  1590. l=T.map(function(q){return q(L)});
  1591. v=dFC.apply(null,g.ZH(l))(k.dispatch);return Object.assign({},k,{dispatch:v})}}};
  1592. s4=function(){return Math.random().toString(36).substring(7).split("").join(".")};
  1593. Adf=function(T){Object.keys(T).forEach(function(Q){var k=T[Q];if(typeof k(void 0,{type:Sm})==="undefined")throw Error('The slice reducer for key "'+Q+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof k(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+s4()})==="undefined")throw Error('The slice reducer for key "'+
  1594. Q+"\" returned undefined when probed with a random type. Don't try to handle '"+(Sm+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
  1595. bLX=function(T,Q,k){function l(){if(Z)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return Y}
  1596. function v(m){if(typeof m!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof m+"'");if(Z)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var I=!0;R===U&&(R=U.slice());R.push(m);return function(){if(I){if(Z)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
  1597. I=!1;R===U&&(R=U.slice());R.splice(R.indexOf(m),1);U=null}}}
  1598. function L(m){if(typeof m!=="object"||m===null)var I=!1;else{for(I=m;Object.getPrototypeOf(I)!==null;)I=Object.getPrototypeOf(I);I=Object.getPrototypeOf(m)===I}if(!I)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof m+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
  1599. if(typeof m.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(Z)throw Error("Reducers may not dispatch actions.");try{Z=!0,Y=q(Y,m)}finally{Z=!1}I=U=R;for(var z=0;z<I.length;z++)(0,I[z])();return m}
  1600. if(typeof Q==="function"&&typeof k==="function"||typeof k==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof Q==="function"&&typeof k==="undefined"&&(k=Q,Q=void 0);if(typeof k!=="undefined"){if(typeof k!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
  1601. typeof k+"'");return k(bLX)(T,Q)}if(typeof T!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof T+"'");var q=T,Y=Q,U=[],R=U,Z=!1;L({type:Sm});var f={},G=(f.dispatch=L,f.subscribe=v,f.getState=l,f.replaceReducer=function(m){if(typeof m!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof m);q=m;L({type:rd6});return G},f[cdy]=function(){var m={};
  1602. return m.subscribe=function(I){function z(){I.next&&I.next(l())}
  1603. if(typeof I!=="object"||I===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof I+"'");z();return{unsubscribe:v(z)}},m[cdy]=function(){return this},m},f);
  1604. return G};
  1605. DFy=function(T){return T?(T=T.privateDoNotAccessOrElseSafeScriptWrappedValue)?Q_H(T):null:null};
  1606. Ce=function(T){return T?(T=T.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?TH(T):null:null};
  1607. u_5=function(T){T=aTb(T);return Zo(T)};
  1608. g.BN=function(T){T=aTb(T);return TH(T)};
  1609. aTb=function(T){return T===null?"null":T===void 0?"undefined":T};
  1610. n3b=function(T){this.g5=JP(T)};
  1611. xFy=function(T){var Q=T[M[19]](M[29]),k=[1347654014,1138575977,function(l){throw l;},
  1612. 2101273796,M[37],-2084135766,M[89],1543663539,1484698946,null,-1967613944,65551949,499840800,432290716,117953467,/(\/{())([/,-6,/])"}/,1960289047,function(l){l[M[46]]()},
  1613. Q,function(l){for(var v=l[M[24]];v;)l[M[32]](l[M[51]](--v,1)[0])},
  1614. 548716104,-1053930043,1944383179,function(l,v){for(l=(l%v[M[24]]+v[M[24]])%v[M[24]];l--;)v[M[55]](v[M[63]]())},
  1615. 1394476834,67330201,225755279,87644375,-912652969,-1222788693,1551688740,-354376835,function(l,v){if(v[M[24]]!=0){l=(l%v[M[24]]+v[M[24]])%v[M[24]];var L=v[0];v[0]=v[l];v[l]=L}},
  1616. 546614995,-1322180429,-1809092049,function(l,v,L,q,Y,U){return v(q,Y,U)},
  1617. function(){for(var l=64,v=[];++l-v[M[24]]-32;){switch(l){case 58:l-=14;case 91:case 92:case 93:continue;case 123:l=47;case 94:case 95:case 96:continue;case 46:l=95}v[M[32]](String[M[8]](l))}return v},
  1618. -261685139,function(l,v){v=(v%l[M[24]]+l[M[24]])%l[M[24]];l[M[51]](-v)[M[46]]()[M[39]](function(L){l[M[55]](L)})},
  1619. 458850527,39723553,1705385529,1346126704,2028954445,15647514,-832925761,null,-231167974,function(){for(var l=64,v=[];++l-v[M[24]]-32;){switch(l){case 91:l=44;continue;case 123:l=65;break;case 65:l-=18;continue;case 58:l=96;continue;case 46:l=95}v[M[32]](String[M[8]](l))}return v},
  1620. -1809092049,function(l,v,L,q,Y){return v(L,q,Y)},
  1621. -1761947514,function(l,v){v[M[24]]!=0&&(l=(l%v[M[24]]+v[M[24]])%v[M[24]],v[M[51]](0,1,v[M[51]](l,1,v[0])[0]))},
  1622. -192198157,null,67330201,function(){for(var l=64,v=[];++l-v[M[24]]-32;)switch(l){case 46:l=95;default:v[M[32]](String[M[8]](l));case 94:case 95:case 96:break;case 123:l-=76;case 92:case 93:continue;case 58:l=44;case 91:}return v},
  1623. function(l,v,L){var q=L[M[24]];v[M[39]](function(Y,U,R){this[M[32]](R[U]=L[(L[M[14]](Y)-L[M[14]](this[U])+U+q--)%L[M[24]]])},l[M[19]](M[29]))},
  1624. 608020616,function(l,v){l=(l%v[M[24]]+v[M[24]])%v[M[24]];v[M[51]](l,1)},
  1625. 1426836606,128012997,-1242078950,2082089717,1766329992,967558802,-1733604174,Q,2028954445,-1175383691,M[43],-463786213,function(){for(var l=64,v=[];++l-v[M[24]]-32;)switch(l){case 58:l=96;continue;case 91:l=44;break;case 65:l=47;continue;case 46:l=153;case 123:l-=58;default:v[M[32]](String[M[8]](l))}return v},
  1626. Q,999393170,428353234,40007307,1454833612,function(l,v){v[M[51]](v[M[24]],0,l)},
  1627. 1612105116,117837554,-1911859551,64669884];k[9]=k;k[47]=k;k[55]=k;if(typeof K5f===M[69])return T;try{try{k[72]<=10&&(k[75]!==-3?(0,k[53])(k[81],k[68])===(0,k[23])(k[65],k[74]):((0,k[32])(k[14],k[74]),k[60])(k[80],k[9])),k[20]>=-5?(((0,k[32])(k[78],k[55]),k[53])(k[22],k[18]),(0,k[32])(k[77],k[55])):(0,k[36])((0,k[58])(k[4],k[68],(0,k[49])()),k[58],(0,k[60])(k[38],k[74]),k[4],k[74],(0,k[37])()),k[59]!=0&&((((0,k[51])((0,k[51])((0,k[0])(k[55],k[62]),k[81],k[7],k[39]),k[16],k[80],k[76]),k[21])(k[39],
  1628. k[29]),k[72])((0,k[74])(k[82],k[30]),k[53],k[49],k[5]),M[33])||((((0,k[53])(k[47],k[11]),(0,k[53])(k[48],k[76]),k[21])(k[30],k[63]),k[21])(k[30],k[0]),k[79])(k[25],k[5],(0,k[58])())*(0,k[81])(k[71],k[76])}catch(l){(0,k[72])((0,k[72])((0,k[79])(k[25],k[5],(0,k[78])()),k[81],k[26],k[39]),k[21],k[30],k[37])}try{k[45]>-9&&(k[41]>-3&&((0,k[53])(k[41],k[30]),3)||(0,k[81])(k[51],k[30]))}catch(l){(0,k[new Date(M[83])/1E3])(k[25],k[5],(0,k[70])())}finally{k[31]!=-7&&(k[62]>=9?(0,k[44])(k[4],k[5]):(0,k[79])(k[25],
  1629. k[11],(0,k[58])())),k[48]!==0&&(k[17]!=-9?(0,k[79])(k[25],k[5],(0,k[10])()):(0,k[40])(k[5])),k[52]!=6&&(((0,k[72])((0,k[44])(k[21-new Date(M[45])/1E3],k[68]),k[78],k[26],k[16]),k[12])((0,k[new Date(M[44])/1E3])(k[6],k[30]),k[63],k[36]),(0,k[12])((0,k[65])(k[8]),k[6],k[14],k[48]),k[15])(k[40],k[29])%(0,k[65])(k[20],k[3]),k[20]!==-5&&(k[55]!==10||((0,k[12])(k[50],k[2]),0))&&(0,k[37])(k[56],k[28]),k[1]>new Date(M[11])/1E3&&(k[35]!=-5&&((0,k[new Date(M[73])/1E3])(k[45],k[3]),1)||(0,k[74])(k[9],k[3]))}try{k[18]<=
  1630. -1&&((((((0,k[39])(k[8],k[28],(0,k[48])()),k[37])(k[5],k[79]),k[65])(k[63],k[42]),k[37])(k[68],k[79]),k[37])(k[72],k[79]),M[69])||(((((0,k[74])(k[new Date(M[56])/1E3],k[42]),k[71])(k[52],k[62]),k[46])(k[84],k[72]),k[22])(k[38],k[31]),k[22])(k[60],k[64]),k[65]!=-6&&(k[43]>-7&&((0,k[new Date(M[88])/1E3])(k[39],k[32]),{})||(0,k[0])(k[49])),k[26]!==-4&&(k[71]<=-10?((0,k[new Date(M[57])/1E3])(k[31],k[57]),k[46])(k[15],k[29],(0,k[47])()):(0,k[53])((0,k[44])(k[37],k[35]),k[19],k[49],k[71]))}catch(l){(0,k[16])(k[70],
  1631. k[5],(0,k[25])()),((0,k[16])(k[70],k[84],(0,k[25])()),k[57])(k[84])}try{k[32]!==-8&&((0,k[21])(k[63],k[65]),(0,k[23])((0,k[14])(k[46],k[84]),k[51],k[73],k[27]),k[31])(k[41],k[32]),((0,k[29])(k[22]),k[14])(k[41]),(0,k[12])(k[13])}catch(l){(k[48]===4||(((((0,k[8])(k[0],k[41]),k[31])(k[13],k[42]),k[63])(k[10],k[41]),k[63])(k[68],k[13]),null))&&(((0,k[14])(k[69]),k[58])(k[27],k[47],(0,k[59])()),(0,k[8])(k[18],k[41]),k[58])(k[27],k[41],(0,k[67])())}}catch(l){return M[74]+T}return Q[M[60]](M[29])};
  1632. g.zf=function(T){this.name=T};
  1633. Pog=function(T){this.g5=JP(T)};
  1634. XH=function(T){this.g5=JP(T)};
  1635. wE=function(T){this.g5=JP(T)};
  1636. HLt=function(T){this.g5=JP(T)};
  1637. dE=function(T){this.g5=JP(T)};
  1638. NI=function(T){this.g5=JP(T)};
  1639. AI=function(T){this.g5=JP(T)};
  1640. bK=function(T){this.g5=JP(T)};
  1641. rE=function(T){this.g5=JP(T)};
  1642. cN=function(T){this.g5=JP(T)};
  1643. D0=function(T){this.g5=JP(T)};
  1644. ab=function(T){this.g5=JP(T)};
  1645. uK=function(T){this.g5=JP(T)};
  1646. ne=function(T){this.g5=JP(T)};
  1647. Ke=function(T){this.g5=JP(T)};
  1648. xi=function(T){this.g5=JP(T,500)};
  1649. PN=function(T){this.g5=JP(T)};
  1650. HN=function(T){this.g5=JP(T)};
  1651. taI=function(T){this.g5=JP(T)};
  1652. OL5=function(){return g.jA("yt.ads.biscotti.lastId_")||""};
  1653. p45=function(T){g.Tv("yt.ads.biscotti.lastId_",T)};
  1654. WN=function(){var T=arguments,Q=tI;T.length>1?Q[T[0]]=T[1]:T.length===1&&Object.assign(Q,T[0])};
  1655. g.$i=function(T,Q){return T in tI?tI[T]:Q};
  1656. JI=function(T){var Q=tI.EXPERIMENT_FLAGS;return Q?Q[T]:void 0};
  1657. W5H=function(T){em.forEach(function(Q){return Q(T)})};
  1658. g.E4=function(T){return T&&window.yterr?function(){try{return T.apply(this,arguments)}catch(Q){g.FH(Q)}}:T};
  1659. g.FH=function(T){var Q=g.jA("yt.logging.errors.log");Q?Q(T,"ERROR",void 0,void 0,void 0,void 0,void 0):(Q=g.$i("ERRORS",[]),Q.push([T,"ERROR",void 0,void 0,void 0,void 0,void 0]),WN("ERRORS",Q));W5H(T)};
  1660. iK=function(T,Q,k,l,v){var L=g.jA("yt.logging.errors.log");L?L(T,"WARNING",Q,k,l,void 0,v):(L=g.$i("ERRORS",[]),L.push([T,"WARNING",Q,k,l,void 0,v]),WN("ERRORS",L))};
  1661. Vt=function(T,Q){Q=T.split(Q);for(var k={},l=0,v=Q.length;l<v;l++){var L=Q[l].split("=");if(L.length===1&&L[0]||L.length===2)try{var q=$Fb(L[0]||""),Y=$Fb(L[1]||"");if(q in k){var U=k[q];Array.isArray(U)?g.cm(U,Y):k[q]=[U,Y]}else k[q]=Y}catch(G){var R=G,Z=L[0],f=String(Vt);R.args=[{key:Z,value:L[1],query:T,method:Jd5===f?"unchanged":f}];e8t.hasOwnProperty(Z)||iK(R)}}return k};
  1662. TO=function(T){var Q=[];g.VJ(T,function(k,l){var v=g.Nn(l);g.EA(Array.isArray(k)?k:[k],function(L){L==""?Q.push(v):Q.push(v+"="+g.Nn(L))})});
  1663. return Q.join("&")};
  1664. QI=function(T){T.charAt(0)==="?"&&(T=T.substring(1));return Vt(T,"&")};
  1665. jS=function(T){return T.split(",").map(function(Q){return QI(Q)})};
  1666. g.k5=function(T){return T.indexOf("?")!==-1?(T=(T||"").split("#")[0],T=T.split("?",2),QI(T.length>1?T[1]:T[0])):{}};
  1667. lC=function(T,Q){return F55(T,Q||{},!0)};
  1668. oU=function(T,Q){return F55(T,Q||{},!1)};
  1669. F55=function(T,Q,k){var l=T.split("#",2);T=l[0];l=l.length>1?"#"+l[1]:"";var v=T.split("?",2);T=v[0];v=QI(v[1]||"");for(var L in Q)if(k||!g.MM(v,L))v[L]=Q[L];return g.sD(T,v)+l};
  1670. vD=function(T){if(!Q)var Q=window.location.href;var k=g.UD(T)[1]||null,l=g.Rq(T);k&&l?(T=g.UD(T),Q=g.UD(Q),T=T[3]==Q[3]&&T[1]==Q[1]&&T[4]==Q[4]):T=l?g.Rq(Q)===l&&(Number(g.UD(Q)[4]||null)||null)===(Number(g.UD(T)[4]||null)||null):!0;return T};
  1671. Lh=function(T){T||(T=document.location.href);T=g.UD(T)[1]||null;return T!==null&&T==="https"};
  1672. q2=function(T){T=E35(T);return T===null?!1:T[0]==="com"&&T[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
  1673. yd5=function(T){T=E35(T);return T===null?!1:T[1]==="google"?!0:T[2]==="google"?T[0]==="au"&&T[1]==="com"?!0:T[0]==="uk"&&T[1]==="co"?!0:!1:!1};
  1674. E35=function(T){T=g.Rq(T);return T!==null?T.split(".").reverse():null};
  1675. $Fb=function(T){return T&&T.match(iLy)?T:bX(T)};
  1676. Y5=function(T){var Q=gV;T=T===void 0?OL5():T;var k=Object,l=k.assign,v=M2(Q);var L=Q.T;try{var q=L.screenX;var Y=L.screenY}catch(r){}try{var U=L.outerWidth;var R=L.outerHeight}catch(r){}try{var Z=L.innerWidth;var f=L.innerHeight}catch(r){}try{var G=L.screenLeft;var m=L.screenTop}catch(r){}try{Z=L.innerWidth,f=L.innerHeight}catch(r){}try{var I=L.screen.availWidth;var z=L.screen.availTop}catch(r){}L=[G,m,q,Y,I,z,U,R,Z,f];q=l9J(!1,Q.T.top);Y={};var w=w===void 0?g.VC:w;U=new H0;"SVGElement"in w&&"createElementNS"in
  1677. w.document&&U.set(0);R=ksJ();R["allow-top-navigation-by-user-activation"]&&U.set(1);R["allow-popups-to-escape-sandbox"]&&U.set(2);w.crypto&&w.crypto.subtle&&U.set(3);"TextDecoder"in w&&"TextEncoder"in w&&U.set(4);w=Xcu(U);Q=(Y.bc=w,Y.bih=q.height,Y.biw=q.width,Y.brdim=L.join(),Y.vis=vu(Q.S),Y.wgl=!!rK.WebGLRenderingContext,Y);k=l.call(k,v,Q);k.ca_type="image";T&&(k.bid=T);return k};
  1678. M2=function(T){var Q={};Q.dt=Vay;Q.flash="0";a:{try{var k=T.T.top.location.href}catch(R){T=2;break a}T=k?k===T.S.location.href?0:1:2}Q=(Q.frm=T,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var l=rK.history.length}catch(R){l=0}Q.u_his=l;var v;Q.u_h=(v=rK.screen)==null?void 0:v.height;var L;Q.u_w=(L=rK.screen)==null?void 0:L.width;var q;Q.u_ah=(q=rK.screen)==null?void 0:q.availHeight;var Y;Q.u_aw=(Y=rK.screen)==null?void 0:Y.availWidth;var U;Q.u_cd=(U=rK.screen)==null?void 0:U.colorDepth}catch(R){}return Q};
  1679. Q56=function(){if(!TbJ)return null;var T=TbJ();return"open"in T?T:null};
  1680. g.RU=function(T){switch(UG(T)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
  1681. UG=function(T){return T&&"status"in T?T.status:-1};
  1682. g.Zq=function(T,Q){typeof T==="function"&&(T=g.E4(T));return window.setTimeout(T,Q)};
  1683. g.fh=function(T,Q){typeof T==="function"&&(T=g.E4(T));return window.setInterval(T,Q)};
  1684. g.GO=function(T){window.clearTimeout(T)};
  1685. g.m6=function(T){window.clearInterval(T)};
  1686. g.hH=function(T){T=IU(T);return typeof T==="string"&&T==="false"?!1:!!T};
  1687. g.sG=function(T,Q){T=IU(T);return T===void 0&&Q!==void 0?Q:Number(T||0)};
  1688. SS=function(){return g.$i("EXPERIMENTS_TOKEN","")};
  1689. IU=function(T){return g.$i("EXPERIMENT_FLAGS",{})[T]};
  1690. Ch=function(){for(var T=[],Q=g.$i("EXPERIMENTS_FORCED_FLAGS",{}),k=g.B(Object.keys(Q)),l=k.next();!l.done;l=k.next())l=l.value,T.push({key:l,value:String(Q[l])});k=g.$i("EXPERIMENT_FLAGS",{});l=g.B(Object.keys(k));for(var v=l.next();!v.done;v=l.next())v=v.value,v.startsWith("force_")&&Q[v]===void 0&&T.push({key:v,value:String(k[v])});return T};
  1691. BD=function(T,Q,k,l,v,L,q,Y){function U(){(R&&"readyState"in R?R.readyState:0)===4&&Q&&g.E4(Q)(R)}
  1692. k=k===void 0?"GET":k;l=l===void 0?"":l;Y=Y===void 0?!1:Y;var R=Q56();if(!R)return null;"onloadend"in R?R.addEventListener("loadend",U,!1):R.onreadystatechange=U;g.hH("debug_forward_web_query_parameters")&&(T=j5J(T));R.open(k,T,!0);L&&(R.responseType=L);q&&(R.withCredentials=!0);k=k==="POST"&&(window.FormData===void 0||!(l instanceof FormData));if(v=kcg(T,v))for(var Z in v)R.setRequestHeader(Z,v[Z]),"content-type"===Z.toLowerCase()&&(k=!1);k&&R.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  1693. if(Y&&"setAttributionReporting"in XMLHttpRequest.prototype){T={eventSourceEligible:!0,triggerEligible:!1};try{R.setAttributionReporting(T)}catch(f){iK(f)}}R.send(l);return R};
  1694. kcg=function(T,Q){Q=Q===void 0?{}:Q;var k=vD(T),l=g.$i("INNERTUBE_CLIENT_NAME"),v=g.hH("web_ajax_ignore_global_headers_if_set"),L;for(L in lbX){var q=g.$i(lbX[L]),Y=L==="X-Goog-AuthUser"||L==="X-Goog-PageId";L!=="X-Goog-Visitor-Id"||q||(q=g.$i("VISITOR_DATA"));var U;if(!(U=!q)){if(!(U=k||(g.Rq(T)?!1:!0))){U=T;var R;if(R=g.hH("add_auth_headers_to_remarketing_google_dot_com_ping")&&L==="Authorization"&&(l==="TVHTML5"||l==="TVHTML5_UNPLUGGED"||l==="TVHTML5_SIMPLY")&&yd5(U))U=Zz(U)||"",U=U.split("/"),
  1695. U="/"+(U.length>1?U[1]:""),R=U==="/pagead";U=R?!0:!1}U=!U}U||v&&Q[L]!==void 0||l==="TVHTML5_UNPLUGGED"&&Y||(Q[L]=q)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];if(k||!g.Rq(T))Q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(k||!g.Rq(T)){try{var Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}Z&&(Q["X-YouTube-Time-Zone"]=Z)}document.location.hostname.endsWith("youtubeeducation.com")||!k&&g.Rq(T)||(Q["X-YouTube-Ad-Signals"]=
  1696. TO(Y5()));return Q};
  1697. Xw=function(T,Q){Q.method="POST";Q.postParams||(Q.postParams={});return g.zO(T,Q)};
  1698. L_J=function(T,Q){if(window.fetch&&Q.format!=="XML"){var k={method:Q.method||"GET",credentials:"same-origin"};Q.headers&&(k.headers=Q.headers);Q.priority&&(k.priority=Q.priority);T=o2C(T,Q);var l=v2I(T,Q);l&&(k.body=l);Q.withCredentials&&(k.credentials="include");var v=Q.context||g.VC,L=!1,q;fetch(T,k).then(function(Y){if(!L){L=!0;q&&g.GO(q);var U=Y.ok,R=function(Z){Z=Z||{};U?Q.onSuccess&&Q.onSuccess.call(v,Z,Y):Q.onError&&Q.onError.call(v,Z,Y);Q.onFinish&&Q.onFinish.call(v,Z,Y)};
  1699. (Q.format||"JSON")==="JSON"&&(U||Y.status>=400&&Y.status<500)?Y.json().then(R,function(){R(null)}):R(null)}}).catch(function(){Q.onError&&Q.onError.call(v,{},{})});
  1700. T=Q.timeout||0;Q.onFetchTimeout&&T>0&&(q=g.Zq(function(){L||(L=!0,g.GO(q),Q.onFetchTimeout.call(Q.context||g.VC))},T))}else g.zO(T,Q)};
  1701. g.zO=function(T,Q){var k=Q.format||"JSON";T=o2C(T,Q);var l=v2I(T,Q),v=!1,L=qpI(T,function(U){if(!v){v=!0;Y&&g.GO(Y);var R=g.RU(U),Z=null,f=400<=U.status&&U.status<500,G=500<=U.status&&U.status<600;if(R||f||G)Z=g2C(T,k,U,Q.convertToSafeHtml);R&&(R=MhI(k,U,Z));Z=Z||{};f=Q.context||g.VC;R?Q.onSuccess&&Q.onSuccess.call(f,U,Z):Q.onError&&Q.onError.call(f,U,Z);Q.onFinish&&Q.onFinish.call(f,U,Z)}},Q.method,l,Q.headers,Q.responseType,Q.withCredentials);
  1702. l=Q.timeout||0;if(Q.onTimeout&&l>0){var q=Q.onTimeout;var Y=g.Zq(function(){v||(v=!0,L.abort(),g.GO(Y),q.call(Q.context||g.VC,L))},l)}return L};
  1703. o2C=function(T,Q){Q.includeDomain&&(T=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+T);var k=g.$i("XSRF_FIELD_NAME");if(Q=Q.urlParams)Q[k]&&delete Q[k],T=lC(T,Q);return T};
  1704. v2I=function(T,Q){var k=g.$i("XSRF_FIELD_NAME"),l=g.$i("XSRF_TOKEN"),v=Q.postBody||"",L=Q.postParams,q=g.$i("XSRF_FIELD_NAME"),Y;Q.headers&&(Y=Q.headers["Content-Type"]);Q.excludeXsrf||g.Rq(T)&&!Q.withCredentials&&g.Rq(T)!==document.location.hostname||Q.method!=="POST"||Y&&Y!=="application/x-www-form-urlencoded"||Q.postParams&&Q.postParams[q]||(L||(L={}),L[k]=l);(g.hH("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof v==="string"&&(v=QI(v),g.Is(v,L),v=Q.postBodyFormat&&
  1705. Q.postBodyFormat==="JSON"?JSON.stringify(v):g.h3(v));L=v||L&&!g.Rs(L);!Ypt&&L&&Q.method!=="POST"&&(Ypt=!0,g.FH(Error("AJAX request with postData should use POST")));return v};
  1706. g2C=function(T,Q,k,l){var v=null;switch(Q){case "JSON":try{var L=k.responseText}catch(q){throw l=Error("Error reading responseText"),l.params=T,iK(l),q;}T=k.getResponseHeader("Content-Type")||"";L&&T.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),v=JSON.parse(L));break;case "XML":if(T=(T=k.responseXML)?USg(T):null)v={},g.EA(T.getElementsByTagName("*"),function(q){v[q.tagName]=R1T(q)})}l&&Ziy(v);
  1707. return v};
  1708. Ziy=function(T){if(g.vm(T))for(var Q in T)Q==="html_content"||tfJ(Q,"_html")?T[Q]=Zo(T[Q]):Ziy(T[Q])};
  1709. MhI=function(T,Q,k){if(Q&&Q.status===204)return!0;switch(T){case "JSON":return!!k;case "XML":return Number(k&&k.return_code)===0;case "RAW":return!0;default:return!!k}};
  1710. USg=function(T){return T?(T=("responseXML"in T?T.responseXML:T).getElementsByTagName("root"))&&T.length>0?T[0]:null:null};
  1711. R1T=function(T){var Q="";g.EA(T.childNodes,function(k){Q+=k.nodeValue});
  1712. return Q};
  1713. j5J=function(T){var Q=window.location.search,k=g.Rq(T);g.hH("debug_handle_relative_url_for_query_forward_killswitch")||!k&&vD(T)&&(k=document.location.hostname);var l=Zz(T);l=(k=k&&(k.endsWith("youtube.com")||k.endsWith("youtube-nocookie.com")))&&l&&l.startsWith("/api/");if(!k||l)return T;var v=QI(Q),L={};g.EA(fbt,function(q){v[q]&&(L[q]=v[q])});
  1714. return oU(T,L)};
  1715. dV=function(T,Q){var k=g.Gs(Q),l;return(new g.rc(function(v,L){k.onSuccess=function(q){g.RU(q)?v(new GcI(q)):L(new wV("Request failed, status="+UG(q),"net.badstatus",q))};
  1716. k.onError=function(q){L(new wV("Unknown request error","net.unknown",q))};
  1717. k.onTimeout=function(q){L(new wV("Request timed out","net.timeout",q))};
  1718. l=g.zO(T,k)})).kE(function(v){if(v instanceof KL){var L;
  1719. (L=l)==null||L.abort()}return aS(v)})};
  1720. g.N2=function(T,Q,k,l,v,L){function q(U,R,Z){return U.kE(function(f){if(R<=0||UG(f.xhr)===403)return aS(new wV("Request retried too many times","net.retryexhausted",f.xhr,f));var G=Math.pow(2,k-R+1)*Z,m=v>0?Math.min(v,G):G;return Y(Z).then(function(){L&&L(f,R-1);return q(dV(T,Q),R-1,m)})})}
  1721. function Y(U){return new g.rc(function(R){setTimeout(R,U)})}
  1722. v=v===void 0?-1:v;return q(dV(T,Q),k-1,l)};
  1723. wV=function(T,Q,k){Gv.call(this,T+", errorCode="+Q);this.errorCode=Q;this.xhr=k;this.name="PromiseAjaxError"};
  1724. GcI=function(T){this.xhr=T};
  1725. AH=function(T){this.T=T===void 0?null:T;this.L=0;this.S=null};
  1726. bC=function(T){var Q=new AH;T=T===void 0?null:T;Q.L=2;Q.S=T===void 0?null:T;return Q};
  1727. rV=function(T){var Q=new AH;T=T===void 0?null:T;Q.L=1;Q.S=T===void 0?null:T;return Q};
  1728. g.aU=function(T,Q,k,l,v){cD||Dq.set(""+T,Q,{w$:k,path:"/",domain:l===void 0?"youtube.com":l,secure:v===void 0?!1:v})};
  1729. g.uC=function(T,Q){if(!cD)return Dq.get(""+T,Q)};
  1730. g.nh=function(T,Q,k){cD||Dq.remove(""+T,Q===void 0?"/":Q,k===void 0?"youtube.com":k)};
  1731. mSJ=function(){if(g.hH("embeds_web_enable_cookie_detection_fix")){if(!g.VC.navigator.cookieEnabled)return!1}else if(!Dq.isEnabled())return!1;if(!Dq.isEmpty())return!0;g.hH("embeds_web_enable_cookie_detection_fix")?Dq.set("TESTCOOKIESENABLED","1",{w$:60,eZ_:"none",secure:!0}):Dq.set("TESTCOOKIESENABLED","1",{w$:60});if(Dq.get("TESTCOOKIESENABLED")!=="1")return!1;Dq.remove("TESTCOOKIESENABLED");return!0};
  1732. g.t=function(T,Q){if(T)return T[Q.name]};
  1733. Kh=function(T){var Q=g.$i("INNERTUBE_HOST_OVERRIDE");Q&&(T=String(Q)+String(fI(T)));return T};
  1734. Ib5=function(T){var Q={};g.hH("json_condensed_response")&&(Q.prettyPrint="false");return T=oU(T,Q)};
  1735. x5=function(T,Q){var k=k===void 0?{}:k;T={method:Q===void 0?"POST":Q,mode:vD(T)?"same-origin":"cors",credentials:vD(T)?"same-origin":"include"};Q={};for(var l=g.B(Object.keys(k)),v=l.next();!v.done;v=l.next())v=v.value,k[v]&&(Q[v]=k[v]);Object.keys(Q).length>0&&(T.headers=Q);return T};
  1736. PD=function(){var T=/Chrome\/(\d+)/.exec(g.KJ());return T?parseFloat(T[1]):NaN};
  1737. HD=function(){var T=/\sCobalt\/(\S+)\s/.exec(g.KJ());if(!T)return NaN;var Q=[];T=g.B(T[1].split("."));for(var k=T.next();!k.done;k=T.next())k=parseInt(k.value,10),k>=0&&Q.push(k);return parseFloat(Q.join("."))};
  1738. OG=function(){return g.tH("android")&&g.tH("chrome")&&!(g.tH("trident/")||g.tH("edge/"))&&!g.tH("cobalt")};
  1739. h1y=function(){return g.tH("armv7")||g.tH("aarch64")||g.tH("android")};
  1740. g.ph=function(){return g.tH("cobalt")};
  1741. WD=function(){return g.tH("cobalt")&&g.tH("appletv")};
  1742. $5=function(){return g.tH("(ps3; leanback shell)")||g.tH("ps3")&&g.ph()};
  1743. s5f=function(){return g.tH("(ps4; leanback shell)")||g.tH("ps4")&&g.ph()};
  1744. g.SpC=function(){return g.ph()&&(g.tH("ps4 vr")||g.tH("ps4 pro vr"))};
  1745. JH=function(){var T=/WebKit\/([0-9]+)/.exec(g.KJ());return!!(T&&parseInt(T[1],10)>=600)};
  1746. eS=function(){var T=/WebKit\/([0-9]+)/.exec(g.KJ());return!!(T&&parseInt(T[1],10)>=602)};
  1747. CHg=function(){return g.tH("iemobile")||g.tH("windows phone")&&g.tH("edge")};
  1748. yI=function(){return(Fw||EG)&&g.tH("applewebkit")&&!g.tH("version")&&(!g.tH("safari")||g.tH("gsa/"))};
  1749. VI=function(){return g.iC&&g.tH("version/")};
  1750. TL=function(){return g.tH("smart-tv")&&g.tH("samsung")};
  1751. g.tH=function(T){var Q=g.KJ();return Q?Q.toLowerCase().indexOf(T)>=0:!1};
  1752. Qe=function(){return o4X()||yI()||VI()?!0:g.$i("EOM_VISITOR_DATA")?!1:!0};
  1753. jG=function(T,Q){return Q===void 0||Q===null?T:Q==="1"||Q===!0||Q===1||Q==="True"?!0:!1};
  1754. kq=function(T,Q,k){for(var l in k)if(k[l]==Q)return k[l];return T};
  1755. lu=function(T,Q){return Q===void 0||Q===null?T:Number(Q)};
  1756. o1=function(T,Q){return Q===void 0||Q===null?T:Q.toString()};
  1757. vy=function(T,Q){if(Q){if(T==="fullwidth")return Infinity;if(T==="fullheight")return 0}return T&&(Q=T.match(Bbg))&&(T=Number(Q[2]),Q=Number(Q[1]),!isNaN(T)&&!isNaN(Q)&&T>0)?Q/T:NaN};
  1758. LY=function(T){var Q=T.docid||T.video_id||T.videoId||T.id;if(Q)return Q;Q=T.raw_player_response;Q||(T=T.player_response)&&(Q=JSON.parse(T));return Q&&Q.videoDetails&&Q.videoDetails.videoId||null};
  1759. z15=function(T){return q5(T,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
  1760. g.gi=function(T){return T==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||T==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
  1761. q5=function(T,Q){Q=(Q===void 0?0:Q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Q="EMBEDDED_PLAYER_MODE_PFL");var k=T.raw_embedded_player_response;if(!k&&(T=T.embedded_player_response))try{k=JSON.parse(T)}catch(l){return Q}return k?kq(Q,k.embeddedPlayerMode,XnI):Q};
  1762. Yq=function(T){Gv.call(this,T.message||T.description||T.name);this.isMissing=T instanceof M5;this.isTimeout=T instanceof wV&&T.errorCode=="net.timeout";this.isCanceled=T instanceof KL};
  1763. M5=function(){Gv.call(this,"Biscotti ID is missing from server")};
  1764. wnb=function(){if(g.hH("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Qe())return Error("User has not consented - not fetching biscotti id.");var T=g.$i("PLAYER_VARS",{});if(g.ZW(T,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(z15(T))return Error("Biscotti id fetching has been disabled for pfl.")};
  1765. bif=function(){var T=wnb();if(T!==void 0)return aS(T);Ur||(Ur=dV("//googleads.g.doubleclick.net/pagead/id",dS5).then(Nb5).kE(function(Q){return A8f(2,Q)}));
  1766. return Ur};
  1767. Nb5=function(T){T=T.xhr.responseText;if(!AV(T,")]}'"))throw new M5;T=JSON.parse(T.substr(4));if((T.type||1)>1)throw new M5;T=T.id;p45(T);Ur=rV(T);r85(18E5,2);return T};
  1768. A8f=function(T,Q){Q=new Yq(Q);p45("");Ur=bC(Q);T>0&&r85(12E4,T-1);throw Q;};
  1769. r85=function(T,Q){g.Zq(function(){dV("//googleads.g.doubleclick.net/pagead/id",dS5).then(Nb5,function(k){return A8f(Q,k)}).kE(g.DM)},T)};
  1770. c8X=function(){try{var T=g.jA("yt.ads.biscotti.getId_");return T?T():bif()}catch(Q){return aS(Q)}};
  1771. abX=function(T){T&&(T.dataset?T.dataset[DSJ()]="true":kvu(T))};
  1772. upb=function(T){return T?T.dataset?T.dataset[DSJ()]:T.getAttribute("data-loaded"):null};
  1773. DSJ=function(){return n2t.loaded||(n2t.loaded="loaded".replace(/\-([a-z])/g,function(T,Q){return Q.toUpperCase()}))};
  1774. K_b=function(){var T=document;if("visibilityState"in T)return T.visibilityState;var Q=R1+"VisibilityState";if(Q in T)return T[Q]};
  1775. Zk=function(T,Q){var k;$4(T,function(l){k=Q[l];return!!k});
  1776. return k};
  1777. fY=function(T){if(T.requestFullscreen)T=T.requestFullscreen(void 0);else if(T.webkitRequestFullscreen)T=T.webkitRequestFullscreen();else if(T.mozRequestFullScreen)T=T.mozRequestFullScreen();else if(T.msRequestFullscreen)T=T.msRequestFullscreen();else if(T.webkitEnterFullscreen)T=T.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return T instanceof Promise?T:Promise.resolve()};
  1778. I1=function(T){var Q;g.GL()?md()==T&&(Q=document):Q=T;return Q&&(T=Zk(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Q))?(Q=T.call(Q),Q instanceof Promise?Q:Promise.resolve()):Promise.resolve()};
  1779. xSf=function(T){return g.sA(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Q){return"on"+Q.toLowerCase()in T})};
  1780. PHC=function(){var T=document;return g.sA(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Q){return"on"+Q.toLowerCase()in T})};
  1781. g.GL=function(){return!!Zk(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
  1782. md=function(T){T=T===void 0?!1:T;var Q=Zk(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(T)for(;Q&&Q.shadowRoot;)Q=Q.shadowRoot.fullscreenElement;return Q?Q:null};
  1783. hg=function(T){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(T=T||window.event){this.event=T;for(var Q in T)Q in Hit||(this[Q]=T[Q]);this.scale=T.scale;this.rotation=T.rotation;var k=T.target||T.srcElement;k&&k.nodeType==3&&(k=k.parentNode);this.target=k;var l=T.relatedTarget;
  1784. if(l)try{l=l.nodeName?l:null}catch(v){l=null}else this.type=="mouseover"?l=T.fromElement:this.type=="mouseout"&&(l=T.toElement);this.relatedTarget=l;this.clientX=T.clientX!=void 0?T.clientX:T.pageX;this.clientY=T.clientY!=void 0?T.clientY:T.pageY;this.keyCode=T.keyCode?T.keyCode:T.which;this.charCode=T.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=T.altKey;this.ctrlKey=T.ctrlKey;this.shiftKey=T.shiftKey;this.metaKey=T.metaKey;this.T=T.pageX;this.S=T.pageY}}catch(v){}};
  1785. thu=function(T){if(document.body&&document.documentElement){var Q=document.body.scrollTop+document.documentElement.scrollTop;T.T=T.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);T.S=T.clientY+Q}};
  1786. Oiy=function(T,Q,k,l){l=l===void 0?{}:l;T.addEventListener&&(Q!="mouseenter"||"onmouseenter"in document?Q!="mouseleave"||"onmouseenter"in document?Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"):Q="mouseout":Q="mouseover");return Ui(sr,function(v){var L=typeof v[4]==="boolean"&&v[4]==!!l,q=g.vm(v[4])&&g.vm(l)&&g.fJ(v[4],l);return!!v.length&&v[0]==T&&v[1]==Q&&v[2]==k&&(L||q)})};
  1787. g.SG=function(T,Q,k,l){l=l===void 0?{}:l;if(!T||!T.addEventListener&&!T.attachEvent)return"";var v=Oiy(T,Q,k,l);if(v)return v;v=++pny.count+"";var L=!(Q!="mouseenter"&&Q!="mouseleave"||!T.addEventListener||"onmouseenter"in document);var q=L?function(Y){Y=new hg(Y);if(!B2(Y.relatedTarget,function(U){return U==T},!0))return Y.currentTarget=T,Y.type=Q,k.call(T,Y)}:function(Y){Y=new hg(Y);
  1788. Y.currentTarget=T;return k.call(T,Y)};
  1789. q=g.E4(q);T.addEventListener?(Q=="mouseenter"&&L?Q="mouseover":Q=="mouseleave"&&L?Q="mouseout":Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"),W_I()||typeof l==="boolean"?T.addEventListener(Q,q,l):T.addEventListener(Q,q,!!l.capture)):T.attachEvent("on"+Q,q);sr[v]=[T,Q,k,q,l];return v};
  1790. J8C=function(T){return $SI(T,function(Q){return g.lw(Q,"ytp-ad-has-logging-urls")})};
  1791. $SI=function(T,Q){var k=document.body||document;return g.SG(k,"click",function(l){var v=B2(l.target,function(L){return L===k||Q(L)},!0);
  1792. v&&v!==k&&!v.disabled&&(l.currentTarget=v,T.call(v,l))})};
  1793. g.CY=function(T){T&&(typeof T=="string"&&(T=[T]),g.EA(T,function(Q){if(Q in sr){var k=sr[Q],l=k[0],v=k[1],L=k[3];k=k[4];l.removeEventListener?W_I()||typeof k==="boolean"?l.removeEventListener(v,L,k):l.removeEventListener(v,L,!!k.capture):l.detachEvent&&l.detachEvent("on"+v,L);delete sr[Q]}}))};
  1794. By=function(T){for(var Q in sr)sr[Q][0]==T&&g.CY(Q)};
  1795. zL=function(T){T=T||window.event;var Q;T.composedPath&&typeof T.composedPath==="function"?Q=T.composedPath():Q=T.path;Q&&Q.length?T=Q[0]:(T=T||window.event,T=T.target||T.srcElement,T.nodeType==3&&(T=T.parentNode));return T};
  1796. X4=function(T){this.C=T;this.T=null;this.Y=0;this.B=null;this.N=0;this.S=[];for(T=0;T<4;T++)this.S.push(0);this.L=0;this.qO=g.SG(window,"mousemove",(0,g.Mp)(this.D,this));this.j=g.fh((0,g.Mp)(this.z9,this),25)};
  1797. wi=function(T){g.x.call(this);this.C=[];this.d5=T||this};
  1798. di=function(T,Q,k,l){for(var v=0;v<k.length;v++)T.Z(Q,k[v],l)};
  1799. g.N5=function(T,Q){for(;T.C.length;){var k=T.C.pop(),l=void 0;Q&&e1I()&&(l={passive:!0});k.target.removeEventListener(k.name,k.callback,l)}};
  1800. g.ri=function(T,Q,k){var l=k&&k>0?k:0;k=l?Date.now()+l*1E3:0;if((l=l?(0,g.Ag)():bu())&&window.JSON){typeof Q!=="string"&&(Q=JSON.stringify(Q,void 0));try{l.set(T,Q,k)}catch(v){l.remove(T)}}};
  1801. g.cy=function(T){var Q=bu(),k=(0,g.Ag)();if(!Q&&!k||!window.JSON)return null;try{var l=Q.get(T)}catch(v){}if(typeof l!=="string")try{l=k.get(T)}catch(v){}if(typeof l!=="string")return null;try{l=JSON.parse(l,void 0)}catch(v){}return l};
  1802. F_f=function(){var T=(0,g.Ag)();if(T&&(T=T.S("yt-player-quality")))return T.creation};
  1803. g.Dk=function(T){try{var Q=bu(),k=(0,g.Ag)();Q&&Q.remove(T);k&&k.remove(T)}catch(l){}};
  1804. g.a1=function(){return g.cy("yt-remote-session-screen-id")};
  1805. E2f=function(T){var Q=this;this.S=void 0;this.T=!1;T.addEventListener("beforeinstallprompt",function(k){k.preventDefault();Q.S=k});
  1806. T.addEventListener("appinstalled",function(){Q.T=!0},{once:!0})};
  1807. uu=function(){if(!g.VC.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.VC.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.VC.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.VC.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.VC.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(T){return"WEB_DISPLAY_MODE_UNKNOWN"}};
  1808. nY=function(){this.T8=!0};
  1809. y8t=function(){nY.instance||(nY.instance=new nY);return nY.instance};
  1810. iiy=function(T){switch(T){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
  1811. Vhf=function(){this.T=g.$i("ALT_PREF_COOKIE_NAME","PREF");this.S=g.$i("ALT_PREF_COOKIE_DOMAIN","youtube.com");var T=g.uC(this.T);T&&this.parse(T)};
  1812. g.xq=function(){KY||(KY=new Vhf);return KY};
  1813. g.Py=function(T,Q){return!!((T0f("f"+(Math.floor(Q/31)+1))||0)&1<<Q%31)};
  1814. tg=function(T,Q){var k="f"+(Math.floor(T/31)+1);T=1<<T%31;var l=T0f(k)||0;l=Q?l|T:l&~T;l===0?delete Hy[k]:(Q=l.toString(16),Hy[k]=Q.toString())};
  1815. Or=function(T){if(/^f([1-9][0-9]*)$/.test(T))throw Error("ExpectedRegexMatch: "+T);};
  1816. pY=function(T){if(!/^\w+$/.test(T))throw Error("ExpectedRegexMismatch: "+T);};
  1817. T0f=function(T){T=Hy[T]!==void 0?Hy[T].toString():null;return T!=null&&/^[A-Fa-f0-9]+$/.test(T)?parseInt(T,16):null};
  1818. QZg=function(){var T=g.VC.navigator;return T?T.connection:void 0};
  1819. kmC=function(){var T=QZg();if(T){var Q=jZC[T.type||"unknown"]||"CONN_UNKNOWN";T=jZC[T.effectiveType||"unknown"]||"CONN_UNKNOWN";Q==="CONN_CELLULAR_UNKNOWN"&&T!=="CONN_UNKNOWN"&&(Q=T);if(Q!=="CONN_UNKNOWN")return Q;if(T!=="CONN_UNKNOWN")return T}};
  1820. oQb=function(){var T=QZg();if(T!=null&&T.effectiveType)return lg5.hasOwnProperty(T.effectiveType)?lg5[T.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
  1821. g.Wy=function(T){var Q=g.HT.apply(1,arguments);var k=Error.call(this,T);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.args=[].concat(g.ZH(Q));Object.setPrototypeOf(this,this.constructor.prototype)};
  1822. g.Jg=function(){try{return g.$q(),!0}catch(T){return!1}};
  1823. g.$q=function(T){if(g.$i("DATASYNC_ID")!==void 0)return g.$i("DATASYNC_ID");throw new g.Wy("Datasync ID not set",T===void 0?"unknown":T);};
  1824. eG=function(){this.T=new WeakMap};
  1825. g.Er=function(T,Q,k){return F4(Q,0,k)};
  1826. vQI=function(T){var Q=g.jA("yt.scheduler.instance.addImmediateJob");Q?Q(T):T()};
  1827. ye=function(){eG.apply(this,arguments)};
  1828. g.iu=function(){ye.instance||(ye.instance=new ye);return ye.instance};
  1829. g.Ve=function(){return!!g.jA("yt.scheduler.instance")};
  1830. F4=function(T,Q,k){k!==void 0&&Number.isNaN(Number(k))&&(k=void 0);var l=g.jA("yt.scheduler.instance.addJob");return l?l(T,Q,k):k===void 0?(T(),NaN):g.Zq(T,k||0)};
  1831. TB=function(T){var Q=g.jA("yt.scheduler.instance.setPriorityThreshold");Q&&Q(T)};
  1832. QH=function(T){this.T=(T=g.uw(T))?new NN(T):null;this.S=document.domain||window.location.hostname};
  1833. kn=function(){var T;return(T=jo())==null?void 0:T.get("LAST_RESULT_ENTRY_KEY",!0)};
  1834. LoX=function(){var T={};for(ln=new op(T.handleError===void 0?ve:T.handleError,T.logEvent===void 0?g.LM:T.logEvent);qh.length>0;)switch(T=qh.shift(),T.type){case "ERROR":ln.O4(T.payload);break;case "EVENT":ln.logEvent(T.eventType,T.payload)}};
  1835. Mh=function(T){gm||(ln?ln.O4(T):(qh.push({type:"ERROR",payload:T}),qh.length>10&&qh.shift()))};
  1836. Yn=function(T,Q){gm||(ln?ln.logEvent(T,Q):(qh.push({type:"EVENT",eventType:T,payload:Q}),qh.length>10&&qh.shift()))};
  1837. UY=function(T){if(T.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
  1838. Rp=function(T){return T.substr(0,T.indexOf(":"))||T};
  1839. g.ZA=function(T,Q,k,l,v){Q=Q===void 0?{}:Q;k=k===void 0?qzg[T]:k;l=l===void 0?gQt[T]:l;v=v===void 0?Mef[T]:v;g.Wy.call(this,k,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:T},Q));this.type=T;this.message=k;this.level=l;this.T=v;Object.setPrototypeOf(this,g.ZA.prototype)};
  1840. fM=function(T,Q){g.ZA.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Q,foundObjectStores:T},qzg.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,fM.prototype)};
  1841. GB=function(T,Q){var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.index=T;this.objectStore=Q;Object.setPrototypeOf(this,GB.prototype)};
  1842. Ip=function(T,Q,k,l){Q=Rp(Q);var v=T instanceof Error?T:Error("Unexpected error: "+T);if(v instanceof g.ZA)return v;T={objectStoreNames:k,dbName:Q,dbVersion:l};if(v.name==="QuotaExceededError")return new g.ZA("QUOTA_EXCEEDED",T);if(g.mp&&v.name==="UnknownError")return new g.ZA("QUOTA_MAYBE_EXCEEDED",T);if(v instanceof GB)return new g.ZA("MISSING_INDEX",Object.assign({},T,{objectStore:v.objectStore,index:v.index}));if(v.name==="InvalidStateError"&&YzJ.some(function(L){return v.message.includes(L)}))return new g.ZA("EXECUTE_TRANSACTION_ON_CLOSED_DB",
  1843. T);
  1844. if(v.name==="AbortError")return new g.ZA("UNKNOWN_ABORT",T,v.message);v.args=[Object.assign({},T,{name:"IdbError",g6:v.name})];v.level="WARNING";return v};
  1845. g.hF=function(T,Q,k){var l=kn();return new g.ZA("IDB_NOT_SUPPORTED",{context:{caller:T,publicName:Q,version:k,hasSucceededOnce:l==null?void 0:l.hasSucceededOnce}})};
  1846. Ujt=function(T){if(!T)throw Error();throw T;};
  1847. RfI=function(T){return T};
  1848. sY=function(T){this.T=T};
  1849. g.So=function(T){function Q(v){if(l.state.status==="PENDING"){l.state={status:"REJECTED",reason:v};v=g.B(l.S);for(var L=v.next();!L.done;L=v.next())L=L.value,L()}}
  1850. function k(v){if(l.state.status==="PENDING"){l.state={status:"FULFILLED",value:v};v=g.B(l.T);for(var L=v.next();!L.done;L=v.next())L=L.value,L()}}
  1851. var l=this;this.state={status:"PENDING"};this.T=[];this.S=[];T=T.T;try{T(k,Q)}catch(v){Q(v)}};
  1852. ZV5=function(T,Q,k,l,v){try{if(T.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var L=k(T.state.value);L instanceof g.So?CM(T,Q,L,l,v):l(L)}catch(q){v(q)}};
  1853. fgT=function(T,Q,k,l,v){try{if(T.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var L=k(T.state.reason);L instanceof g.So?CM(T,Q,L,l,v):l(L)}catch(q){v(q)}};
  1854. CM=function(T,Q,k,l,v){Q===k?v(new TypeError("Circular promise chain detected.")):k.then(function(L){L instanceof g.So?CM(T,Q,L,l,v):l(L)},function(L){v(L)})};
  1855. GmC=function(T,Q,k){function l(){k(T.error);L()}
  1856. function v(){Q(T.result);L()}
  1857. function L(){try{T.removeEventListener("success",v),T.removeEventListener("error",l)}catch(q){}}
  1858. T.addEventListener("success",v);T.addEventListener("error",l)};
  1859. mj5=function(T){return new Promise(function(Q,k){GmC(T,Q,k)})};
  1860. Be=function(T){return new g.So(new sY(function(Q,k){GmC(T,Q,k)}))};
  1861. zB=function(T,Q){return new g.So(new sY(function(k,l){function v(){var L=T?Q(T):null;L?L.then(function(q){T=q;v()},l):k()}
  1862. v()}))};
  1863. IgH=function(T,Q){this.request=T;this.cursor=Q};
  1864. hfI=function(T){return Be(T).then(function(Q){return Q?new IgH(T,Q):null})};
  1865. g.sZy=function(T){T.cursor.continue(void 0);return hfI(T.request)};
  1866. Szu=function(T,Q){this.T=T;this.options=Q;this.transactionCount=0;this.L=Math.round((0,g.XY)());this.S=!1};
  1867. g.dm=function(T,Q,k){T=T.T.createObjectStore(Q,k);return new wm(T)};
  1868. Nh=function(T,Q){T.T.objectStoreNames.contains(Q)&&T.T.deleteObjectStore(Q)};
  1869. g.rm=function(T,Q,k){return g.AF(T,[Q],{mode:"readwrite",r5:!0},function(l){return g.bn(l.objectStore(Q),k)})};
  1870. g.AF=function(T,Q,k,l){var v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){switch(w.S){case 1:var r={mode:"readonly",r5:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof k==="string"?r.mode=k:Object.assign(r,k);v=r;T.transactionCount++;L=v.r5?3:1;q=0;case 2:if(Y){w.Ym(4);break}q++;U=Math.round((0,g.XY)());g.z5(w,5);R=T.T.transaction(Q,v.mode);r=new ce(R);r=CNy(r,l);return g.c(w,r,7);case 7:return Z=w.T,f=Math.round((0,g.XY)()),B0C(T,U,f,q,void 0,Q.join(),v),w.return(Z);case 5:G=g.by(w);m=Math.round((0,g.XY)());
  1871. I=Ip(G,T.T.name,Q.join(),T.T.version);if((z=I instanceof g.ZA&&!I.T)||q>=L)B0C(T,U,m,q,I,Q.join(),v),Y=I;w.Ym(2);break;case 4:return w.return(Promise.reject(Y))}})};
  1872. B0C=function(T,Q,k,l,v,L,q){Q=k-Q;v?(v instanceof g.ZA&&(v.type==="QUOTA_EXCEEDED"||v.type==="QUOTA_MAYBE_EXCEEDED")&&Yn("QUOTA_EXCEEDED",{dbName:Rp(T.T.name),objectStoreNames:L,transactionCount:T.transactionCount,transactionMode:q.mode}),v instanceof g.ZA&&v.type==="UNKNOWN_ABORT"&&(k-=T.L,k<0&&k>=2147483648&&(k=0),Yn("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:Q,transactionCount:T.transactionCount,dbDuration:k}),T.S=!0),zf5(T,!1,l,L,Q,q.tag),Mh(v)):zf5(T,!0,l,L,Q,
  1873. q.tag)};
  1874. zf5=function(T,Q,k,l,v,L){Yn("TRANSACTION_ENDED",{objectStoreNames:l,connectionHasUnknownAbortedTransaction:T.S,duration:v,isSuccessful:Q,tryCount:k,tag:L===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":L})};
  1875. wm=function(T){this.T=T};
  1876. g.DA=function(T,Q,k){T.T.createIndex(Q,k,{unique:!1})};
  1877. X05=function(T,Q){return g.ap(T,{query:Q},function(k){return k.delete().then(function(){return g.un(k)})}).then(function(){})};
  1878. w05=function(T,Q,k){var l=[];return g.ap(T,{query:Q},function(v){if(!(k!==void 0&&l.length>=k))return l.push(v.getValue()),g.un(v)}).then(function(){return l})};
  1879. N0X=function(T){return"getAllKeys"in IDBObjectStore.prototype?Be(T.T.getAllKeys(void 0,void 0)):dj6(T)};
  1880. dj6=function(T){var Q=[];return g.Ae5(T,{query:void 0},function(k){Q.push(k.cursor.primaryKey);return g.sZy(k)}).then(function(){return Q})};
  1881. g.bn=function(T,Q,k){return Be(T.T.put(Q,k))};
  1882. g.ap=function(T,Q,k){T=T.T.openCursor(Q.query,Q.direction);return nM(T).then(function(l){return zB(l,k)})};
  1883. g.Ae5=function(T,Q,k){var l=Q.query;Q=Q.direction;T="openKeyCursor"in IDBObjectStore.prototype?T.T.openKeyCursor(l,Q):T.T.openCursor(l,Q);return hfI(T).then(function(v){return zB(v,k)})};
  1884. ce=function(T){var Q=this;this.T=T;this.L=new Map;this.S=!1;this.done=new Promise(function(k,l){Q.T.addEventListener("complete",function(){k()});
  1885. Q.T.addEventListener("error",function(v){v.currentTarget===v.target&&l(Q.T.error)});
  1886. Q.T.addEventListener("abort",function(){var v=Q.T.error;if(v)l(v);else if(!Q.S){v=g.ZA;for(var L=Q.T.objectStoreNames,q=[],Y=0;Y<L.length;Y++){var U=L.item(Y);if(U===null)throw Error("Invariant: item in DOMStringList is null");q.push(U)}v=new v("UNKNOWN_ABORT",{objectStoreNames:q.join(),dbName:Q.T.db.name,mode:Q.T.mode});l(v)}})})};
  1887. CNy=function(T,Q){var k=new Promise(function(l,v){try{Q(T).then(function(L){l(L)}).catch(v)}catch(L){v(L),T.abort()}});
  1888. return Promise.all([k,T.done]).then(function(l){return g.B(l).next().value})};
  1889. bVJ=function(T){this.T=T};
  1890. reX=function(T,Q,k){var l=[];return g.KM(T,{query:Q},function(v){if(!(k!==void 0&&l.length>=k))return l.push(v.getValue()),g.un(v)}).then(function(){return l})};
  1891. g.KM=function(T,Q,k){T=T.T.openCursor(Q.query===void 0?null:Q.query,Q.direction===void 0?"next":Q.direction);return nM(T).then(function(l){return zB(l,k)})};
  1892. xn=function(T,Q){this.request=T;this.cursor=Q};
  1893. nM=function(T){return Be(T).then(function(Q){return Q?new xn(T,Q):null})};
  1894. g.un=function(T){T.cursor.continue(void 0);return nM(T.request)};
  1895. ce5=function(T,Q,k){return new Promise(function(l,v){function L(){G||(G=new Szu(q.result,{closed:f}));return G}
  1896. var q=Q!==void 0?self.indexedDB.open(T,Q):self.indexedDB.open(T);var Y=k.blocked,U=k.blocking,R=k.U_9,Z=k.upgrade,f=k.closed,G;q.addEventListener("upgradeneeded",function(m){try{if(m.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(q.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");m.dataLoss&&m.dataLoss!=="none"&&Yn("IDB_DATA_CORRUPTED",{reason:m.dataLossMessage||"unknown reason",dbName:Rp(T)});var I=L(),z=new ce(q.transaction);
  1897. Z&&Z(I,function(w){return m.oldVersion<w&&m.newVersion>=w},z);
  1898. z.done.catch(function(w){v(w)})}catch(w){v(w)}});
  1899. q.addEventListener("success",function(){var m=q.result;U&&m.addEventListener("versionchange",function(){U(L())});
  1900. m.addEventListener("close",function(){Yn("IDB_UNEXPECTEDLY_CLOSED",{dbName:Rp(T),dbVersion:m.version});R&&R()});
  1901. l(L())});
  1902. q.addEventListener("error",function(){v(q.error)});
  1903. Y&&q.addEventListener("blocked",function(){Y()})})};
  1904. Djb=function(T,Q,k){k=k===void 0?{}:k;return ce5(T,Q,k)};
  1905. Pe=function(T,Q){Q=Q===void 0?{}:Q;var k,l,v,L;return g.a(function(q){if(q.S==1)return g.z5(q,2),k=self.indexedDB.deleteDatabase(T),l=Q,(v=l.blocked)&&k.addEventListener("blocked",function(){v()}),g.c(q,mj5(k),4);
  1906. if(q.S!=2)return g.d6(q,0);L=g.by(q);throw Ip(L,T,"",-1);})};
  1907. He=function(T,Q){this.name=T;this.options=Q;this.L=!0;this.N=this.Y=0};
  1908. agb=function(T,Q){return new g.ZA("INCOMPATIBLE_DB_VERSION",{dbName:T.name,oldVersion:T.options.version,newVersion:Q})};
  1909. g.tF=function(T,Q){if(!Q)throw g.hF("openWithToken",Rp(T.name));return T.open()};
  1910. uA5=function(T,Q){var k;return g.a(function(l){if(l.S==1)return g.c(l,g.tF(OY,Q),2);k=l.T;return l.return(g.AF(k,["databases"],{r5:!0,mode:"readwrite"},function(v){var L=v.objectStore("databases");return L.get(T.actualName).then(function(q){if(q?T.actualName!==q.actualName||T.publicName!==q.publicName||T.userIdentifier!==q.userIdentifier:1)return g.bn(L,T).then(function(){})})}))})};
  1911. pM=function(T,Q){var k;return g.a(function(l){if(l.S==1)return T?g.c(l,g.tF(OY,Q),2):l.return();k=l.T;return l.return(k.delete("databases",T))})};
  1912. nQt=function(T,Q){var k,l;return g.a(function(v){return v.S==1?(k=[],g.c(v,g.tF(OY,Q),2)):v.S!=3?(l=v.T,g.c(v,g.AF(l,["databases"],{r5:!0,mode:"readonly"},function(L){k.length=0;return g.ap(L.objectStore("databases"),{},function(q){T(q.getValue())&&k.push(q.getValue());return g.un(q)})}),3)):v.return(k)})};
  1913. Kof=function(T,Q){return nQt(function(k){return k.publicName===T&&k.userIdentifier!==void 0},Q)};
  1914. xjC=function(){var T,Q,k,l;return g.a(function(v){switch(v.S){case 1:T=kn();if((Q=T)==null?0:Q.hasSucceededOnce)return v.return(!0);if(We&&JH()&&!eS()||g.$n)return v.return(!1);try{if(k=self,!(k.indexedDB&&k.IDBIndex&&k.IDBKeyRange&&k.IDBObjectStore))return v.return(!1)}catch(L){return v.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return v.return(!1);g.z5(v,2);l={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
  1915. return g.c(v,uA5(l,JF),4);case 4:return g.c(v,pM("yt-idb-test-do-not-use",JF),5);case 5:return v.return(!0);case 2:return g.by(v),v.return(!1)}})};
  1916. PNf=function(){if(eo!==void 0)return eo;gm=!0;return eo=xjC().then(function(T){gm=!1;var Q;if((Q=jo())!=null&&Q.T){var k;Q={hasSucceededOnce:((k=kn())==null?void 0:k.hasSucceededOnce)||T};var l;(l=jo())==null||l.set("LAST_RESULT_ENTRY_KEY",Q,2592E3,!0)}return T})};
  1917. FY=function(){return g.jA("ytglobal.idbToken_")||void 0};
  1918. g.EY=function(){var T=FY();return T?Promise.resolve(T):PNf().then(function(Q){(Q=Q?JF:void 0)&&g.Tv("ytglobal.idbToken_",Q);return Q})};
  1919. HVy=function(T){if(!g.Jg())throw T=new g.ZA("AUTH_INVALID",{dbName:T}),Mh(T),T;var Q=g.$q();return{actualName:T+":"+Q,publicName:T,userIdentifier:Q}};
  1920. teT=function(T,Q,k,l){var v,L,q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:return L=(v=Error().stack)!=null?v:"",g.c(Z,g.EY(),2);case 2:q=Z.T;if(!q)throw Y=g.hF("openDbImpl",T,Q),g.hH("ytidb_async_stack_killswitch")||(Y.stack=Y.stack+"\n"+L.substring(L.indexOf("\n")+1)),Mh(Y),Y;UY(T);U=k?{actualName:T,publicName:T,userIdentifier:void 0}:HVy(T);g.z5(Z,3);return g.c(Z,uA5(U,q),5);case 5:return g.c(Z,Djb(U.actualName,Q,l),6);case 6:return Z.return(Z.T);case 3:return R=g.by(Z),g.z5(Z,7),g.c(Z,pM(U.actualName,
  1921. q),9);case 9:g.d6(Z,8);break;case 7:g.by(Z);case 8:throw R;}})};
  1922. OVy=function(T,Q,k){k=k===void 0?{}:k;return teT(T,Q,!1,k)};
  1923. p05=function(T,Q,k){k=k===void 0?{}:k;return teT(T,Q,!0,k)};
  1924. Wog=function(T,Q){Q=Q===void 0?{}:Q;var k,l;return g.a(function(v){if(v.S==1)return g.c(v,g.EY(),2);if(v.S!=3){k=v.T;if(!k)return v.return();UY(T);l=HVy(T);return g.c(v,Pe(l.actualName,Q),3)}return g.c(v,pM(l.actualName,k),0)})};
  1925. $jT=function(T,Q,k){T=T.map(function(l){return g.a(function(v){return v.S==1?g.c(v,Pe(l.actualName,Q),2):g.c(v,pM(l.actualName,k),0)})});
  1926. return Promise.all(T).then(function(){})};
  1927. JeH=function(T){var Q=Q===void 0?{}:Q;var k,l;return g.a(function(v){if(v.S==1)return g.c(v,g.EY(),2);if(v.S!=3){k=v.T;if(!k)return v.return();UY(T);return g.c(v,Kof(T,k),3)}l=v.T;return g.c(v,$jT(l,Q,k),0)})};
  1928. ef5=function(T,Q){Q=Q===void 0?{}:Q;var k;return g.a(function(l){if(l.S==1)return g.c(l,g.EY(),2);if(l.S!=3){k=l.T;if(!k)return l.return();UY(T);return g.c(l,Pe(T,Q),3)}return g.c(l,pM(T,k),0)})};
  1929. yH=function(T,Q){He.call(this,T,Q);this.options=Q;UY(T)};
  1930. Foy=function(T,Q){var k;return function(){k||(k=new yH(T,Q));return k}};
  1931. g.VH=function(T,Q){return Foy(T,Q)};
  1932. TP=function(T){return g.tF(EQu(),T)};
  1933. ye5=function(T,Q,k,l){var v,L,q;return g.a(function(Y){switch(Y.S){case 1:return v={config:T,hashData:Q,timestamp:l!==void 0?l:(0,g.XY)()},g.c(Y,TP(k),2);case 2:return L=Y.T,g.c(Y,L.clear("hotConfigStore"),3);case 3:return g.c(Y,g.rm(L,"hotConfigStore",v),4);case 4:return q=Y.T,Y.return(q)}})};
  1934. iVb=function(T,Q,k,l,v){var L,q,Y;return g.a(function(U){switch(U.S){case 1:return L={config:T,hashData:Q,configData:k,timestamp:v!==void 0?v:(0,g.XY)()},g.c(U,TP(l),2);case 2:return q=U.T,g.c(U,q.clear("coldConfigStore"),3);case 3:return g.c(U,g.rm(q,"coldConfigStore",L),4);case 4:return Y=U.T,U.return(Y)}})};
  1935. Vet=function(T){var Q,k;return g.a(function(l){return l.S==1?g.c(l,TP(T),2):l.S!=3?(Q=l.T,k=void 0,g.c(l,g.AF(Q,["coldConfigStore"],{mode:"readwrite",r5:!0},function(v){return g.KM(v.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(L){k=L.getValue()})}),3)):l.return(k)})};
  1936. Tl5=function(T){var Q,k;return g.a(function(l){return l.S==1?g.c(l,TP(T),2):l.S!=3?(Q=l.T,k=void 0,g.c(l,g.AF(Q,["hotConfigStore"],{mode:"readwrite",r5:!0},function(v){return g.KM(v.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(L){k=L.getValue()})}),3)):l.return(k)})};
  1937. QFt=function(){return g.a(function(T){return g.c(T,JeH("ytGcfConfig"),0)})};
  1938. QV=function(){g.x.call(this);this.S=[];this.T=[];var T=g.jA("yt.gcf.config.hotUpdateCallbacks");T?(this.S=[].concat(g.ZH(T)),this.T=T):(this.T=[],g.Tv("yt.gcf.config.hotUpdateCallbacks",this.T))};
  1939. qU=function(){var T=this;this.N=!1;this.L=this.Y=0;this.B=new QV;this.dn={GEm:function(){T.N=!0},
  1940. ISm:function(){return T.T},
  1941. MnB:function(Q){jz(T,Q)},
  1942. sE:function(Q){T.sE(Q)},
  1943. WPk:function(Q){kr(T,Q)},
  1944. Kl:function(){return T.coldHashData},
  1945. vZ:function(){return T.hotHashData},
  1946. HSk:function(){return T.S},
  1947. t9B:function(){return lM()},
  1948. OUB:function(){return oK()},
  1949. W_k:function(){return g.jA("yt.gcf.config.coldHashData")},
  1950. vsq:function(){return g.jA("yt.gcf.config.hotHashData")},
  1951. mTk:function(){jFu(T)},
  1952. I06:function(){T.sE(void 0);vl(T);delete qU.instance},
  1953. f0H:function(Q){T.L=Q},
  1954. ns9:function(){return T.L}}};
  1955. key=function(){if(!qU.instance){var T=new qU;qU.instance=T}return qU.instance};
  1956. vh5=function(T){var Q;g.a(function(k){if(k.S==1)return g.hH("start_client_gcf")||g.hH("delete_gcf_config_db")?g.hH("start_client_gcf")?g.c(k,g.EY(),3):k.Ym(2):k.return();k.S!=2&&((Q=k.T)&&g.Jg()&&!g.hH("delete_gcf_config_db")?(T.N=!0,jFu(T)):(l5f(T),oh5(T)));return g.hH("delete_gcf_config_db")?g.c(k,QFt(),0):k.Ym(0)})};
  1957. g7=function(){var T;return(T=oK())!=null?T:g.$i("RAW_HOT_CONFIG_GROUP")};
  1958. LzJ=function(T){var Q,k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:if(T.S)return Y.return(oK());if(!T.N)return Q=g.hF("getHotConfig IDB not initialized"),iK(Q),Y.return(Promise.reject(Q));k=FY();l=g.$i("TIME_CREATED_MS");if(!k){v=g.hF("getHotConfig token error");iK(v);Y.Ym(2);break}return g.c(Y,Tl5(k),3);case 3:if((L=Y.T)&&L.timestamp>l)return jz(T,L.config),T.sE(L.hashData),Y.return(oK());case 2:oh5(T);if(!(k&&T.S&&T.hotHashData)){Y.Ym(4);break}return g.c(Y,ye5(T.S,T.hotHashData,k,l),4);case 4:return T.S?
  1959. Y.return(oK()):(q=new g.Wy("Config not available in ytConfig"),iK(q),Y.return(Promise.reject(q)))}})};
  1960. ghT=function(T){var Q,k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:if(T.T)return Y.return(lM());if(!T.N)return Q=g.hF("getColdConfig IDB not initialized"),iK(Q),Y.return(Promise.reject(Q));k=FY();l=g.$i("TIME_CREATED_MS");if(!k){v=g.hF("getColdConfig");iK(v);Y.Ym(2);break}return g.c(Y,Vet(k),3);case 3:if((L=Y.T)&&L.timestamp>l)return kr(T,L.config),q75(T,L.configData),vl(T,L.hashData),Y.return(lM());case 2:l5f(T);if(!(k&&T.T&&T.coldHashData&&T.configData)){Y.Ym(4);break}return g.c(Y,iVb(T.T,
  1961. T.coldHashData,T.configData,k,l),4);case 4:return T.T?Y.return(lM()):(q=new g.Wy("Config not available in ytConfig"),iK(q),Y.return(Promise.reject(q)))}})};
  1962. jFu=function(T){if(!T.S||!T.T){if(!FY()){var Q=g.hF("scheduleGetConfigs");iK(Q)}T.Y||(T.Y=g.P0.oD(function(){return g.a(function(k){switch(k.S){case 1:return g.z5(k,2),g.c(k,LzJ(T),4);case 4:g.d6(k,3);break;case 2:g.by(k);case 3:return g.z5(k,5),g.c(k,ghT(T),7);case 7:g.d6(k,6);break;case 5:g.by(k);case 6:T.Y&&(T.Y=0),g.BT(k)}})},100))}};
  1963. M_t=function(T,Q,k){var l,v,L;return g.a(function(q){switch(q.S){case 1:if(!g.hH("start_client_gcf")){q.Ym(0);break}k&&jz(T,k);T.sE(Q);l=FY();if(!l){q.Ym(3);break}if(k){q.Ym(4);break}return g.c(q,Tl5(l),5);case 5:v=q.T,k=(L=v)==null?void 0:L.config;case 4:return g.c(q,ye5(k,Q,l),3);case 3:if(k)for(var Y=k,U=g.B(T.B.T),R=U.next();!R.done;R=U.next())R=R.value,R(Y);g.BT(q)}})};
  1964. Y7J=function(T,Q,k){var l,v,L,q;return g.a(function(Y){if(Y.S==1){if(!g.hH("start_client_gcf"))return Y.Ym(0);vl(T,Q);return(l=FY())?k?Y.Ym(4):g.c(Y,Vet(l),5):Y.Ym(0)}Y.S!=4&&(v=Y.T,k=(L=v)==null?void 0:L.config);if(!k)return Y.Ym(0);q=k.configData;return g.c(Y,iVb(k,Q,q,l),0)})};
  1965. UNg=function(){var T=key(),Q=(0,g.XY)()-T.L;if(!(T.L!==0&&Q<g.sG("send_config_hash_timer"))){Q=g.jA("yt.gcf.config.coldConfigData");var k=g.jA("yt.gcf.config.hotHashData"),l=g.jA("yt.gcf.config.coldHashData");Q&&k&&l&&(T.L=(0,g.XY)());return{coldConfigData:Q,hotHashData:k,coldHashData:l}}};
  1966. l5f=function(T){kr(T,g.$i("RAW_COLD_CONFIG_GROUP"));vl(T,g.$i("SERIALIZED_COLD_HASH_DATA"));var Q;q75(T,(Q=T.T)==null?void 0:Q.configData)};
  1967. oh5=function(T){jz(T,g.$i("RAW_HOT_CONFIG_GROUP"));T.sE(g.$i("SERIALIZED_HOT_HASH_DATA"))};
  1968. jz=function(T,Q){T.S=Q;g.Tv("yt.gcf.config.hotConfigGroup",T.S||null)};
  1969. kr=function(T,Q){T.T=Q;g.Tv("yt.gcf.config.coldConfigGroup",T.T||null)};
  1970. vl=function(T,Q){T.coldHashData=Q;g.Tv("yt.gcf.config.coldHashData",T.coldHashData||null)};
  1971. q75=function(T,Q){T.configData=Q;g.Tv("yt.gcf.config.coldConfigData",T.configData||null)};
  1972. oK=function(){return g.jA("yt.gcf.config.hotConfigGroup")};
  1973. lM=function(){return g.jA("yt.gcf.config.coldConfigGroup")};
  1974. RKt=function(){return"INNERTUBE_API_KEY"in tI&&"INNERTUBE_API_VERSION"in tI};
  1975. g.MU=function(){return{innertubeApiKey:g.$i("INNERTUBE_API_KEY"),innertubeApiVersion:g.$i("INNERTUBE_API_VERSION"),rz:g.$i("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),bY:g.$i("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),xg:g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.$i("INNERTUBE_CONTEXT_CLIENT_VERSION"),Ke:g.$i("INNERTUBE_CONTEXT_HL"),IZ:g.$i("INNERTUBE_CONTEXT_GL"),XR:g.$i("INNERTUBE_HOST_OVERRIDE")||"",U8:!!g.$i("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),S3:!!g.$i("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
  1976. !1),appInstallData:g.$i("SERIALIZED_CLIENT_CONFIG_DATA")}};
  1977. g.Yr=function(T){var Q={client:{hl:T.Ke,gl:T.IZ,clientName:T.bY,clientVersion:T.innertubeContextClientVersion,configInfo:T.rz}};navigator.userAgent&&(Q.client.userAgent=String(navigator.userAgent));var k=g.VC.devicePixelRatio;k&&k!=1&&(Q.client.screenDensityFloat=String(k));k=SS();k!==""&&(Q.client.experimentsToken=k);k=Ch();k.length>0&&(Q.request={internalExperimentFlags:k});Zbg(T,void 0,Q);f5y(void 0,Q);Geb(void 0,Q);mN6(T,void 0,Q);I5b(void 0,Q);g.hH("start_client_gcf")&&hK6(void 0,Q);g.$i("DELEGATED_SESSION_ID")&&
  1978. !g.hH("pageid_as_header_web")&&(Q.user={onBehalfOfUser:g.$i("DELEGATED_SESSION_ID")});!g.hH("fill_delegate_context_in_gel_killswitch")&&(T=g.$i("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Q.user=Object.assign({},Q.user,{serializedDelegationContext:T}));T=g.$i("INNERTUBE_CONTEXT");var l;if(g.hH("enable_persistent_device_token")&&(T==null?0:(l=T.client)==null?0:l.rolloutToken)){var v;Q.client.rolloutToken=T==null?void 0:(v=T.client)==null?void 0:v.rolloutToken}l=Object;v=l.assign;T=Q.client;
  1979. k={};for(var L=g.B(Object.entries(QI(g.$i("DEVICE","")))),q=L.next();!q.done;q=L.next()){var Y=g.B(q.value);q=Y.next().value;Y=Y.next().value;q==="cbrand"?k.deviceMake=Y:q==="cmodel"?k.deviceModel=Y:q==="cbr"?k.browserName=Y:q==="cbrver"?k.browserVersion=Y:q==="cos"?k.osName=Y:q==="cosver"?k.osVersion=Y:q==="cplatform"&&(k.platform=Y)}Q.client=v.call(l,T,k);return Q};
  1980. Zbg=function(T,Q,k){T=T.bY;if(T==="WEB"||T==="MWEB"||T===1||T===2)if(Q){k=Cg(Q,wE,96)||new wE;var l=uu();l=Object.keys(sFu).indexOf(l);l=l===-1?null:l;l!==null&&HS(k,3,l);Ns(Q,wE,96,k)}else k&&(k.client.mainAppWebInfo=(l=k.client.mainAppWebInfo)!=null?l:{},k.client.mainAppWebInfo.webDisplayMode=uu())};
  1981. f5y=function(T,Q){var k=g.jA("yt.embedded_player.embed_url");k&&(T?(Q=Cg(T,rE,7)||new rE,xM(Q,4,k),Ns(T,rE,7,Q)):Q&&(Q.thirdParty={embedUrl:k}))};
  1982. Geb=function(T,Q){var k;if(g.hH("web_log_memory_total_kbytes")&&((k=g.VC.navigator)==null?0:k.deviceMemory)){var l;k=(l=g.VC.navigator)==null?void 0:l.deviceMemory;T?lq(T,95,XW(k*1E6)):Q&&(Q.client.memoryTotalKbytes=""+k*1E6)}};
  1983. mN6=function(T,Q,k){if(T.appInstallData)if(Q){var l;k=(l=Cg(Q,XH,62))!=null?l:new XH;xM(k,6,T.appInstallData);Ns(Q,XH,62,k)}else k&&(k.client.configInfo=k.client.configInfo||{},k.client.configInfo.appInstallData=T.appInstallData)};
  1984. I5b=function(T,Q){var k=kmC();k&&(T?HS(T,61,S7C[k]):Q&&(Q.client.connectionType=k));g.hH("web_log_effective_connection_type")&&(k=oQb())&&(T?HS(T,94,Cwf[k]):Q&&(Q.client.effectiveConnectionType=k))};
  1985. BlH=function(T,Q,k){k=k===void 0?{}:k;var l={};g.$i("EOM_VISITOR_DATA")?l={"X-Goog-EOM-Visitor-Id":g.$i("EOM_VISITOR_DATA")}:l={"X-Goog-Visitor-Id":k.visitorData||g.$i("VISITOR_DATA","")};if(Q&&Q.includes("www.youtube-nocookie.com"))return l;Q=k.eq||g.$i("AUTHORIZATION");Q||(T?Q="Bearer "+g.jA("gapi.auth.getToken")().access_token:(T=y8t().LP(US),g.hH("pageid_as_header_web")||delete T["X-Goog-PageId"],l=Object.assign({},l,T)));Q&&(l.Authorization=Q);return l};
  1986. hK6=function(T,Q){var k=UNg();if(k){var l=k.coldConfigData,v=k.coldHashData;k=k.hotHashData;if(T){var L;Q=(L=Cg(T,XH,62))!=null?L:new XH;l=xM(Q,1,l);xM(l,3,v).sE(k);Ns(T,XH,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},l&&(Q.client.configInfo.coldConfigData=l),v&&(Q.client.configInfo.coldHashData=v),k&&(Q.client.configInfo.hotHashData=k))}};
  1987. RK=function(T,Q){this.version=T;this.args=Q};
  1988. Z2=function(T,Q){this.topic=T;this.T=Q};
  1989. GP=function(T,Q){var k=fj();k&&k.publish.call(k,T.toString(),T,Q)};
  1990. wqy=function(T){var Q=zK5,k=fj();if(!k)return 0;var l=k.subscribe(Q.toString(),function(v,L){var q=g.jA("ytPubsub2Pubsub2SkipSubKey");q&&q==l||(q=function(){if(m4[l])try{if(L&&Q instanceof Z2&&Q!=v)try{var Y=Q.T,U=L;if(!U.args||!U.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!Y.iR){var R=new Y;Y.iR=R.version}var Z=Y.iR}catch(f){}if(!Z||U.version!=Z)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(Y,
  1991. g.r$(U.args))}catch(f){throw f.message="yt.pubsub2.Data.deserialize(): "+f.message,f;}}catch(f){throw f.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Q.toString()+": "+f.message,f;}T.call(window,L)}catch(f){g.FH(f)}},Xqb[Q.toString()]?g.Ve()?g.P0.oD(q):g.Zq(q,0):q())});
  1992. m4[l]=!0;IK[Q.toString()]||(IK[Q.toString()]=[]);IK[Q.toString()].push(l);return l};
  1993. AJ5=function(){var T=dNg,Q=wqy(function(k){T.apply(void 0,arguments);Nlg(Q)});
  1994. return Q};
  1995. Nlg=function(T){var Q=fj();Q&&(typeof T==="number"&&(T=[T]),g.EA(T,function(k){Q.unsubscribeByKey(k);delete m4[k]}))};
  1996. fj=function(){return g.jA("ytPubsub2Pubsub2Instance")};
  1997. hx=function(T,Q,k){k=k===void 0?{sampleRate:.1}:k;Math.random()<Math.min(.02,k.sampleRate/100)&&GP("meta_logging_csi_event",{timerName:T,F6B:Q})};
  1998. bbT=function(){sS||(sS=Ce(g.$i("WORKER_SERIALIZATION_URL")));return sS||void 0};
  1999. Cj=function(){var T=bbT();Sz||T===void 0||(Sz=new Worker(jN(T),void 0));return Sz};
  2000. rJ5=function(){return typeof Worker==="function"&&bbT()?!0:!1};
  2001. DNH=function(){if(rJ5()&&!Bl){var T=function(k){k=k.data;if(k.op==="gzippedGelBatch"){var l=zP.get(k.key);l&&(cJT(k.gzippedBatch,l.latencyPayload,l.url,l.options,l.sendFn),zP.delete(k.key))}},Q=Cj();
  2002. Q&&(Q.addEventListener("message",T),Q.onerror=function(){zP.clear()},Bl=!0)}};
  2003. d7=function(T,Q,k,l,v){v=v===void 0?!1:v;var L={startTime:(0,g.XY)(),ticks:{},infos:{}};if(Xh)try{var q=a56(Q);if(q!=null&&(q>uEt||q<nhf))l(T,k);else{if(g.hH("gzip_gel_with_worker")&&(g.hH("initial_gzip_use_main_thread")&&!KzI||!g.hH("initial_gzip_use_main_thread"))){Bl||DNH();var Y=Cj();if(Y&&!v){zP.set(w7,{latencyPayload:L,url:T,options:k,sendFn:l});Y.postMessage({op:"gelBatchToGzip",serializedBatch:Q,key:w7});w7++;return}}var U=w46(xN5(Q));cJT(U,L,T,k,l)}}catch(R){iK(R),l(T,k)}else l(T,k)};
  2004. cJT=function(T,Q,k,l,v){KzI=!1;var L=(0,g.XY)();Q.ticks.gelc=L;NU++;g.hH("disable_compression_due_to_performance_degredation")&&L-Q.startTime>=Pwy&&(Ax++,g.hH("abandon_compression_after_N_slow_zips")?NU===g.sG("compression_disable_point")&&Ax>HbX&&(Xh=!1):Xh=!1);t_g(Q);l.headers||(l.headers={});l.headers["Content-Encoding"]="gzip";l.postBody=T;l.postParams=void 0;v(k,l)};
  2005. ObH=function(T){var Q=Q===void 0?!1:Q;var k=k===void 0?!1:k;var l=(0,g.XY)(),v={startTime:l,ticks:{},infos:{}},L=Q?g.jA("yt.logging.gzipForFetch",!1):!0;if(Xh&&L){if(!T.body)return T;try{var q=k?T.body:typeof T.body==="string"?T.body:JSON.stringify(T.body);L=q;if(!k&&typeof q==="string"){var Y=a56(q);if(Y!=null&&(Y>uEt||Y<nhf))return T;k=Q?{level:1}:void 0;L=w46(xN5(q),k);var U=(0,g.XY)();v.ticks.gelc=U;if(Q){NU++;if((g.hH("disable_compression_due_to_performance_degredation")||g.hH("disable_compression_due_to_performance_degradation_lr"))&&
  2006. U-l>=Pwy)if(Ax++,g.hH("abandon_compression_after_N_slow_zips")||g.hH("abandon_compression_after_N_slow_zips_lr")){Q=Ax/NU;var R=HbX/g.sG("compression_disable_point");NU>0&&NU%g.sG("compression_disable_point")===0&&Q>=R&&(Xh=!1)}else Xh=!1;t_g(v)}}T.headers=Object.assign({},{"Content-Encoding":"gzip"},T.headers||{});T.body=L;return T}catch(Z){return iK(Z),T}}else return T};
  2007. a56=function(T){try{return(new Blob(T.split(""))).size}catch(Q){return iK(Q),null}};
  2008. t_g=function(T){g.hH("gel_compression_csi_killswitch")||!g.hH("log_gel_compression_latency")&&!g.hH("log_gel_compression_latency_lr")||hx("gel_compression",T,{sampleRate:.1})};
  2009. r7=function(T){var Q=this;this.tT=this.T=!1;this.potentialEsfErrorCounter=this.S=0;this.handleError=function(){};
  2010. this.T4=function(){};
  2011. this.now=Date.now;this.WM=!1;this.dn={vQk:function(Z){Q.Sk=Z},
  2012. iyO:function(){Q.f4()},
  2013. zO:function(){Q.YZ()},
  2014. OI:function(Z){return g.a(function(f){return g.c(f,Q.OI(Z),0)})},
  2015. nj:function(Z,f){return Q.nj(Z,f)},
  2016. Wi:function(){Q.Wi()}};
  2017. var k;this.Qc=(k=T.Qc)!=null?k:100;var l;this.Y5=(l=T.Y5)!=null?l:1;var v;this.qS=(v=T.qS)!=null?v:2592E6;var L;this.vX=(L=T.vX)!=null?L:12E4;var q;this.Fh=(q=T.Fh)!=null?q:5E3;var Y;this.Sk=(Y=T.Sk)!=null?Y:void 0;this.Rp=!!T.Rp;var U;this.z$=(U=T.z$)!=null?U:.1;var R;this.RU=(R=T.RU)!=null?R:10;T.handleError&&(this.handleError=T.handleError);T.T4&&(this.T4=T.T4);T.WM&&(this.WM=T.WM);T.tT&&(this.tT=T.tT);this.Wd=T.Wd;this.qy=T.qy;this.E$=T.E$;this.Kd=T.Kd;this.sendFn=T.sendFn;this.lZ=T.lZ;this.KN=
  2018. T.KN;bM(this)&&(!this.Wd||this.Wd("networkless_logging"))&&pq5(this)};
  2019. pq5=function(T){bM(T)&&!T.WM&&(T.T=!0,T.Rp&&Math.random()<=T.z$&&T.E$.ol(T.Sk),T.Wi(),T.Kd.In()&&T.f4(),T.Kd.listen(T.lZ,T.f4.bind(T)),T.Kd.listen(T.KN,T.YZ.bind(T)))};
  2020. JJH=function(T,Q){if(!bM(T))throw Error("IndexedDB is not supported: updateRequestHandlers");var k=Q.options.onError?Q.options.onError:function(){};
  2021. Q.options.onError=function(v,L){var q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:q=Wz5(L);(Y=$NC(L))&&T.Wd&&T.Wd("web_enable_error_204")&&T.handleError(Error("Request failed due to compression"),Q.url,L);if(!(T.Wd&&T.Wd("nwl_consider_error_code")&&q||T.Wd&&!T.Wd("nwl_consider_error_code")&&T.potentialEsfErrorCounter<=T.RU)){Z.Ym(2);break}if(!T.Kd.yY){Z.Ym(3);break}return g.c(Z,T.Kd.yY(),3);case 3:if(T.Kd.In()){Z.Ym(2);break}k(v,L);if(!T.Wd||!T.Wd("nwl_consider_error_code")||((U=Q)==null?void 0:
  2022. U.id)===void 0){Z.Ym(6);break}return g.c(Z,T.E$.F1(Q.id,T.Sk,!1),6);case 6:return Z.return();case 2:if(T.Wd&&T.Wd("nwl_consider_error_code")&&!q&&T.potentialEsfErrorCounter>T.RU)return Z.return();T.potentialEsfErrorCounter++;if(((R=Q)==null?void 0:R.id)===void 0){Z.Ym(8);break}return Q.sendCount<T.Y5?g.c(Z,T.E$.F1(Q.id,T.Sk,!0,Y?!1:void 0),12):g.c(Z,T.E$.V2(Q.id,T.Sk),8);case 12:T.qy.oD(function(){T.Kd.In()&&T.f4()},T.Fh);
  2023. case 8:k(v,L),g.BT(Z)}})};
  2024. var l=Q.options.onSuccess?Q.options.onSuccess:function(){};
  2025. Q.options.onSuccess=function(v,L){var q;return g.a(function(Y){if(Y.S==1)return((q=Q)==null?void 0:q.id)===void 0?Y.Ym(2):g.c(Y,T.E$.V2(Q.id,T.Sk),2);T.Kd.ZK&&T.Wd&&T.Wd("vss_network_hint")&&T.Kd.ZK(!0);l(v,L);g.BT(Y)})};
  2026. return Q};
  2027. cl=function(T,Q){T.Yw&&!T.Kd.In()?T.Yw(Q):T.handleError(Q)};
  2028. bM=function(T){return!!T.Sk||T.tT};
  2029. Wz5=function(T){var Q;return(T=T==null?void 0:(Q=T.error)==null?void 0:Q.code)&&T>=400&&T<=599?!1:!0};
  2030. $NC=function(T){var Q;T=T==null?void 0:(Q=T.error)==null?void 0:Q.code;return!(T!==400&&T!==415)};
  2031. eKu=function(){if(D2)return D2();var T={};D2=g.VH("LogsDatabaseV2",{Sn:(T.LogsRequestsStore={C7:2},T),shared:!1,upgrade:function(Q,k,l){k(2)&&g.dm(Q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});k(3);k(5)&&(l=l.objectStore("LogsRequestsStore"),l.T.indexNames.contains("newRequest")&&l.T.deleteIndex("newRequest"),g.DA(l,"newRequestV2",["status","interface","timestamp"]));k(7)&&Nh(Q,"sapisid");k(9)&&Nh(Q,"SWHealthLog")},
  2032. version:9});return D2()};
  2033. aK=function(T){return g.tF(eKu(),T)};
  2034. Ehu=function(T,Q){var k,l,v,L;return g.a(function(q){if(q.S==1)return k={startTime:(0,g.XY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.c(q,aK(Q),2);if(q.S!=3)return l=q.T,v=Object.assign({},T,{options:JSON.parse(JSON.stringify(T.options)),interface:g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.c(q,g.rm(l,"LogsRequestsStore",v),3);L=q.T;k.ticks.tc=(0,g.XY)();Fz6(k);return q.return(L)})};
  2035. yJX=function(T,Q){var k,l,v,L,q,Y,U,R,Z;return g.a(function(f){if(f.S==1)return k={startTime:(0,g.XY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.c(f,aK(Q),2);if(f.S!=3)return l=f.T,v=g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",0),L=[T,v,0],q=[T,v,(0,g.XY)()],Y=IDBKeyRange.bound(L,q),U="prev",g.hH("use_fifo_for_networkless")&&(U="next"),R=void 0,Z=T==="NEW"?"readwrite":"readonly",g.hH("use_readonly_for_get_most_recent_by_status_killswitch")&&(Z="readwrite"),g.c(f,g.AF(l,["LogsRequestsStore"],
  2036. {mode:Z,r5:!0},function(G){return g.KM(G.objectStore("LogsRequestsStore").index("newRequestV2"),{query:Y,direction:U},function(m){m.getValue()&&(R=m.getValue(),T==="NEW"&&(R.status="QUEUED",m.update(R)))})}),3);
  2037. k.ticks.tc=(0,g.XY)();Fz6(k);return f.return(R)})};
  2038. ibf=function(T,Q){var k;return g.a(function(l){if(l.S==1)return g.c(l,aK(Q),2);k=l.T;return l.return(g.AF(k,["LogsRequestsStore"],{mode:"readwrite",r5:!0},function(v){var L=v.objectStore("LogsRequestsStore");return L.get(T).then(function(q){if(q)return q.status="QUEUED",g.bn(L,q).then(function(){return q})})}))})};
  2039. V_b=function(T,Q,k,l){k=k===void 0?!0:k;var v;return g.a(function(L){if(L.S==1)return g.c(L,aK(Q),2);v=L.T;return L.return(g.AF(v,["LogsRequestsStore"],{mode:"readwrite",r5:!0},function(q){var Y=q.objectStore("LogsRequestsStore");return Y.get(T).then(function(U){return U?(U.status="NEW",k&&(U.sendCount+=1),l!==void 0&&(U.options.compress=l),g.bn(Y,U).then(function(){return U})):g.So.resolve(void 0)})}))})};
  2040. TEb=function(T,Q){var k;return g.a(function(l){if(l.S==1)return g.c(l,aK(Q),2);k=l.T;return l.return(k.delete("LogsRequestsStore",T))})};
  2041. Qbt=function(T){var Q,k;return g.a(function(l){if(l.S==1)return g.c(l,aK(T),2);Q=l.T;k=(0,g.XY)()-2592E6;return g.c(l,g.AF(Q,["LogsRequestsStore"],{mode:"readwrite",r5:!0},function(v){return g.ap(v.objectStore("LogsRequestsStore"),{},function(L){if(L.getValue().timestamp<=k)return L.delete().then(function(){return g.un(L)})})}),0)})};
  2042. jbb=function(){g.a(function(T){return g.c(T,JeH("LogsDatabaseV2"),0)})};
  2043. Fz6=function(T){g.hH("nwl_csi_killswitch")||hx("networkless_performance",T,{sampleRate:1})};
  2044. l0g=function(T){return g.tF(kft(),T)};
  2045. oiy=function(T){var Q,k;g.a(function(l){if(l.S==1)return g.c(l,l0g(T),2);Q=l.T;k=(0,g.XY)()-2592E6;return g.c(l,g.AF(Q,["SWHealthLog"],{mode:"readwrite",r5:!0},function(v){return g.ap(v.objectStore("SWHealthLog"),{},function(L){if(L.getValue().timestamp<=k)return L.delete().then(function(){return g.un(L)})})}),0)})};
  2046. vi6=function(T){var Q;return g.a(function(k){if(k.S==1)return g.c(k,l0g(T),2);Q=k.T;return g.c(k,Q.clear("SWHealthLog"),0)})};
  2047. g.uM=function(T,Q,k,l,v,L,q){v=v===void 0?"":v;L=L===void 0?!1:L;q=q===void 0?!1:q;if(T)if(k&&!g.ph())iK(new g.Wy("Legacy referrer-scrubbed ping detected")),T&&Lay(T,void 0,{scrubReferrer:!0});else if(v)BD(T,Q,"POST",v,l);else if(g.$i("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||l||q)BD(T,Q,"GET","",l,void 0,L,q);else{b:{try{c:{var Y=new XWC({url:T});if(Y.T.dsh==="1")var U=null;else{var R=Y.T.ae;if(R==="1"){var Z=Y.T.adurl;if(Z)try{U={version:3,GO:decodeURIComponent(Z),O0:EX(Y.S,"act=1","ri=1",wWC(Y))};
  2048. break c}catch(m){}}U=R==="2"?{version:4,GO:EX(Y.S,"dct=1","suid="+Y.L,""),O0:EX(Y.S,"act=1","ri=1","suid="+Y.L)}:null}}if(U){var f=Zz(T);var G=!(!f||!f.endsWith("/aclk")||X6(T,"ri")!=="1");break b}}catch(m){}G=!1}G?q46(T)?(Q&&Q(),k=!0):k=!1:k=!1;k||Lay(T,Q)}};
  2049. q46=function(T,Q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(T,Q===void 0?"":Q))return!0}catch(k){}return!1};
  2050. Lay=function(T,Q,k){k=k===void 0?{}:k;var l=new Image,v=""+gi5++;nj[v]=l;l.onload=l.onerror=function(){Q&&nj[v]&&Q();delete nj[v]};
  2051. k.scrubReferrer&&(l.referrerPolicy="no-referrer");l.src=T};
  2052. MmI=function(T){var Q;return((Q=document.featurePolicy)==null?0:Q.allowedFeatures().includes("attribution-reporting"))?T+"&nis=6":T+"&nis=5"};
  2053. xr=function(){Kj||(Kj=new QH("yt.offline"));return Kj};
  2054. Y4I=function(T){if(g.hH("offline_error_handling")){var Q=xr().get("errors",!0)||{};Q[T.message]={name:T.name,stack:T.stack};T.level&&(Q[T.message].level=T.level);xr().set("errors",Q,2592E3,!0)}};
  2055. Pl=function(){this.T=new Map;this.S=!1};
  2056. Hl=function(){if(!Pl.instance){var T=g.jA("yt.networkRequestMonitor.instance")||new Pl;g.Tv("yt.networkRequestMonitor.instance",T);Pl.instance=T}return Pl.instance};
  2057. tx=function(){g.fL.call(this);var T=this;this.S=!1;this.T=BIC();this.T.listen("networkstatus-online",function(){if(T.S&&g.hH("offline_error_handling")){var Q=xr().get("errors",!0);if(Q){for(var k in Q)if(Q[k]){var l=new g.Wy(k,"sent via offline_errors");l.name=Q[k].name;l.stack=Q[k].stack;l.level=Q[k].level;g.FH(l)}xr().set("errors",{},2592E3,!0)}}})};
  2058. UIT=function(){if(!tx.instance){var T=g.jA("yt.networkStatusManager.instance")||new tx;g.Tv("yt.networkStatusManager.instance",T);tx.instance=T}return tx.instance};
  2059. g.OS=function(T){T=T===void 0?{}:T;g.fL.call(this);var Q=this;this.T=this.Y=0;this.S=UIT();var k=g.jA("yt.networkStatusManager.instance.listen").bind(this.S);k&&(T.rateLimit?(this.rateLimit=T.rateLimit,k("networkstatus-online",function(){Rd5(Q,"publicytnetworkstatus-online")}),k("networkstatus-offline",function(){Rd5(Q,"publicytnetworkstatus-offline")})):(k("networkstatus-online",function(){Q.dispatchEvent("publicytnetworkstatus-online")}),k("networkstatus-offline",function(){Q.dispatchEvent("publicytnetworkstatus-offline")})))};
  2060. Rd5=function(T,Q){T.rateLimit?T.T?(g.P0.wC(T.Y),T.Y=g.P0.oD(function(){T.L!==Q&&(T.dispatchEvent(Q),T.L=Q,T.T=(0,g.XY)())},T.rateLimit-((0,g.XY)()-T.T))):(T.dispatchEvent(Q),T.L=Q,T.T=(0,g.XY)()):T.dispatchEvent(Q)};
  2061. Wl=function(){var T=r7.call;pj||(pj=new g.OS({Tv9:!0,TrK:!0}));T.call(r7,this,{E$:{ol:Qbt,V2:TEb,ir:yJX,We:ibf,F1:V_b,set:Ehu},Kd:pj,handleError:function(Q,k,l){var v,L=l==null?void 0:(v=l.error)==null?void 0:v.code;if(L===400||L===415){var q;Q=new g.Wy(Q.message,k,l==null?void 0:(q=l.error)==null?void 0:q.code);iK(Q,void 0,void 0,void 0,!0)}else g.FH(Q)},
  2062. T4:iK,sendFn:Zet,now:g.XY,Yw:Y4I,qy:g.iu(),lZ:"publicytnetworkstatus-online",KN:"publicytnetworkstatus-offline",Rp:!0,z$:.1,RU:g.sG("potential_esf_error_limit",10),Wd:g.hH,WM:!(g.Jg()&&g.Rq(document.location.toString())!=="www.youtube-nocookie.com")});this.L=new g.Zb;g.hH("networkless_immediately_drop_all_requests")&&jbb();ef5("LogsDatabaseV2")};
  2063. $r=function(){var T=g.jA("yt.networklessRequestController.instance");T||(T=new Wl,g.Tv("yt.networklessRequestController.instance",T),g.hH("networkless_logging")&&g.EY().then(function(Q){T.Sk=Q;pq5(T);T.L.resolve();T.Rp&&Math.random()<=T.z$&&T.Sk&&oiy(T.Sk);g.hH("networkless_immediately_drop_sw_health_store")&&f0u(T)}));
  2064. return T};
  2065. f0u=function(T){var Q;g.a(function(k){if(!T.Sk)throw Q=g.hF("clearSWHealthLogsDb"),Q;return k.return(vi6(T.Sk).catch(function(l){T.handleError(l)}))})};
  2066. Zet=function(T,Q,k,l){l=l===void 0?!1:l;Q=g.hH("web_fp_via_jspb")?Object.assign({},Q):Q;g.hH("use_cfr_monitor")&&Gff(T,Q);if(g.hH("use_request_time_ms_header"))Q.headers&&vD(T)&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.XY)())));else{var v;if((v=Q.postParams)==null?0:v.requestTimeMs)Q.postParams.requestTimeMs=Math.round((0,g.XY)())}k&&Object.keys(Q).length===0?g.uM(T):Q.compress?Q.postBody?(typeof Q.postBody!=="string"&&(Q.postBody=JSON.stringify(Q.postBody)),d7(T,Q.postBody,
  2067. Q,g.zO,l)):d7(T,JSON.stringify(Q.postParams),Q,Xw,l):g.zO(T,Q)};
  2068. Jx=function(T,Q){g.hH("use_event_time_ms_header")&&vD(T)&&(Q.headers||(Q.headers={}),Q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.XY)())));return Q};
  2069. Gff=function(T,Q){var k=Q.onError?Q.onError:function(){};
  2070. Q.onError=function(v,L){Hl().requestComplete(T,!1);k(v,L)};
  2071. var l=Q.onSuccess?Q.onSuccess:function(){};
  2072. Q.onSuccess=function(v,L){Hl().requestComplete(T,!0);l(v,L)}};
  2073. g.ez=function(T){this.config_=null;T?this.config_=T:RKt()&&(this.config_=g.MU())};
  2074. g.Fh=function(T,Q,k,l){function v(R){try{if((R===void 0?0:R)&&l.retry&&!l.networklessOptions.bypassNetworkless)L.method="POST",l.networklessOptions.writeThenSend?$r().writeThenSend(U,L):$r().sendAndWrite(U,L);else if(l.compress){var Z=!l.networklessOptions.writeThenSend;if(L.postBody){var f=L.postBody;typeof f!=="string"&&(f=JSON.stringify(L.postBody));d7(U,f,L,g.zO,Z)}else d7(U,JSON.stringify(L.postParams),L,Xw,Z)}else g.hH("web_all_payloads_via_jspb")?g.zO(U,L):Xw(U,L)}catch(G){if(G.name==="InvalidAccessError")iK(Error("An extension is blocking network request."));
  2075. else throw G;}}
  2076. !g.$i("VISITOR_DATA")&&Q!=="visitor_id"&&Math.random()<.01&&iK(new g.Wy("Missing VISITOR_DATA when sending innertube request.",Q,k,l));if(!T.isReady())throw T=new g.Wy("innertube xhrclient not ready",Q,k,l),g.FH(T),T;var L={headers:l.headers||{},method:"POST",postParams:k,postBody:l.postBody,postBodyFormat:l.postBodyFormat||"JSON",onTimeout:function(){l.onTimeout()},
  2077. onFetchTimeout:l.onTimeout,onSuccess:function(R,Z){if(l.onSuccess)l.onSuccess(Z)},
  2078. onFetchSuccess:function(R){if(l.onSuccess)l.onSuccess(R)},
  2079. onError:function(R,Z){if(l.onError)l.onError(Z)},
  2080. onFetchError:function(R){if(l.onError)l.onError(R)},
  2081. timeout:l.timeout,withCredentials:!0,compress:l.compress};L.headers["Content-Type"]||(L.headers["Content-Type"]="application/json");k="";var q=T.config_.XR;q&&(k=q);q=T.config_.U8||!1;var Y=BlH(q,k,l);Object.assign(L.headers,Y);L.headers.Authorization&&!k&&q&&(L.headers["x-origin"]=window.location.origin);var U=lC(""+k+("/youtubei/"+T.config_.innertubeApiVersion+"/"+Q),{alt:"json"});g.jA("ytNetworklessLoggingInitializationOptions")&&mI5.isNwlInitialized?PNf().then(function(R){v(R)}):v(!1)};
  2082. g.TA=function(T,Q,k){var l=g.ES();if(l&&Q){var v=l.subscribe(T,function(){function L(){yV[v]&&Q.apply&&typeof Q.apply=="function"&&Q.apply(k||window,q)}
  2083. var q=arguments;try{g.iM[T]?L():g.Zq(L,0)}catch(Y){g.FH(Y)}},k);
  2084. yV[v]=!0;VV[T]||(VV[T]=[]);VV[T].push(v);return v}return 0};
  2085. I0f=function(T){var Q=g.TA("LOGGED_IN",function(k){T.apply(void 0,arguments);g.o$(Q)})};
  2086. g.o$=function(T){var Q=g.ES();Q&&(typeof T==="number"?T=[T]:typeof T==="string"&&(T=[parseInt(T,10)]),g.EA(T,function(k){Q.unsubscribeByKey(k);delete yV[k]}))};
  2087. g.vd=function(T,Q){var k=g.ES();return k?k.publish.apply(k,arguments):!1};
  2088. sb6=function(T){var Q=g.ES();if(Q)if(Q.clear(T),T)hdH(T);else for(var k in VV)hdH(k)};
  2089. g.ES=function(){return g.VC.ytPubsubPubsubInstance};
  2090. hdH=function(T){VV[T]&&(T=VV[T],g.EA(T,function(Q){yV[Q]&&delete yV[Q]}),T.length=0)};
  2091. g.LZ=function(T,Q,k){S4I(T,Q,k===void 0?null:k)};
  2092. S4I=function(T,Q,k){k=k===void 0?null:k;var l=CKf(typeof T==="string"?T:T.toString()),v=document.getElementById(l),L=v&&upb(v),q=v&&!L;L?Q&&Q():(Q&&(L=g.TA(l,Q),Q=""+g.qp(Q),BE5[Q]=L),q||(v=zdf(T,l,function(){upb(v)||(abX(v),g.vd(l),g.Zq(function(){sb6(l)},0))},k)))};
  2093. zdf=function(T,Q,k,l){l=l===void 0?null:l;var v=g.fO("SCRIPT");v.id=Q;v.onload=function(){k&&setTimeout(k,0)};
  2094. v.onreadystatechange=function(){switch(v.readyState){case "loaded":case "complete":v.onload()}};
  2095. l&&v.setAttribute("nonce",l);g.SN(v,typeof T==="string"?g.BN(T):T);T=document.getElementsByTagName("head")[0]||document.body;T.insertBefore(v,T.firstChild);return v};
  2096. CKf=function(T){var Q=document.createElement("a");g.YP(Q,T);T=Q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Do(T)};
  2097. qE=function(T,Q){if(T===Q)T=!0;else if(Array.isArray(T)&&Array.isArray(Q))T=g.eA(T,Q,qE);else if(g.vm(T)&&g.vm(Q))a:if(g.gz(T).length!=g.gz(Q).length)T=!1;else{for(var k in T)if(!qE(T[k],Q[k])){T=!1;break a}T=!0}else T=!1;return T};
  2098. Y_=function(T){var Q=g.HT.apply(1,arguments);if(!g1(T)||Q.some(function(l){return!g1(l)}))throw Error("Only objects may be merged.");
  2099. Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())ME(T,k.value)};
  2100. ME=function(T,Q){for(var k in Q)if(g1(Q[k])){if(k in T&&!g1(T[k]))throw Error("Cannot merge an object into a non-object.");k in T||(T[k]={});ME(T[k],Q[k])}else if(Uq(Q[k])){if(k in T&&!Uq(T[k]))throw Error("Cannot merge an array into a non-array.");k in T||(T[k]=[]);XN5(T[k],Q[k])}else T[k]=Q[k];return T};
  2101. XN5=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,g1(k)?T.push(ME({},k)):Uq(k)?T.push(XN5([],k)):T.push(k);return T};
  2102. g1=function(T){return typeof T==="object"&&!Array.isArray(T)};
  2103. Uq=function(T){return typeof T==="object"&&Array.isArray(T)};
  2104. R$=function(T){g.x.call(this);this.S=T};
  2105. ZZ=function(T){R$.call(this,!0);this.T=T};
  2106. fZ=function(T,Q){g.x.call(this);var k=this;this.L=[];this.C=!1;this.S=0;this.N=this.B=this.Y=!1;this.z9=null;var l=(0,g.Mp)(T,Q);this.T=new g.FA(function(){return l(k.z9)},300);
  2107. g.P(this,this.T);this.D=this.j=Infinity};
  2108. wNb=function(T,Q){if(!Q)return!1;for(var k=0;k<Q.length;k++){var l=Q.item(k);if(l&&T.L.includes(l.identifier))return!0}return!1};
  2109. I$=function(T){if(window.crypto&&window.crypto.getRandomValues)try{var Q=Array(T),k=new Uint8Array(T);window.crypto.getRandomValues(k);for(var l=0;l<Q.length;l++)Q[l]=k[l];return Q}catch(L){}Q=Array(T);for(k=0;k<T;k++){l=Date.now();for(var v=0;v<l%23;v++)Q[k]=Math.random();Q[k]=Math.floor(Math.random()*256)}if(GA)for(k=1,l=0;l<GA.length;l++)Q[k%T]^=Q[(k-1)%T]/4^GA.charCodeAt(l),k++;return Q};
  2110. g.hu=function(T){T=I$(T);for(var Q=[],k=0;k<T.length;k++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(T[k]&63));return Q.join("")};
  2111. g.dIy=function(){return g.IQ(I$(16),function(T){return(T&15).toString(16)}).join("")};
  2112. NE6=function(){var T={};var Q=T.pn9===void 0?!1:T.pn9;T=T.MX===void 0?!0:T.MX;if(g.jA("_lact",window)==null){var k=parseInt(g.$i("LACT"),10);k=isFinite(k)?Date.now()-Math.max(k,0):-1;g.Tv("_lact",k,window);g.Tv("_fact",k,window);k==-1&&sq();g.SG(document,"keydown",sq);g.SG(document,"keyup",sq);g.SG(document,"mousedown",sq);g.SG(document,"mouseup",sq);Q?g.SG(window,"touchmove",function(){SV("touchmove",200)},{passive:!0}):(g.SG(window,"resize",function(){SV("resize",200)}),T&&g.SG(window,"scroll",
  2113. function(){SV("scroll",200)}));
  2114. new X4(function(){SV("mouse",100)});
  2115. g.SG(document,"touchstart",sq,{passive:!0});g.SG(document,"touchend",sq,{passive:!0})}};
  2116. SV=function(T,Q){CZ[T]||(CZ[T]=!0,g.P0.oD(function(){sq();CZ[T]=!1},Q))};
  2117. sq=function(){g.jA("_lact",window)==null&&(NE6(),g.jA("_lact",window));var T=Date.now();g.Tv("_lact",T,window);g.jA("_fact",window)==-1&&g.Tv("_fact",T,window);(T=g.jA("ytglobal.ytUtilActivityCallback_"))&&T()};
  2118. Bd=function(){var T=g.jA("_lact",window);return T==null?-1:Math.max(Date.now()-T,0)};
  2119. zA=function(T){this.name=T};
  2120. Xr=function(T){this.key=T};
  2121. w1=function(T){return new Xr(T)};
  2122. AIu=function(){var T=this;this.T=new Map;this.L=new Map;this.S=new Map;this.dn={zFj:function(){return new Map(T.T)}}};
  2123. d1=function(T,Q){T.T.set(Q.mj,Q);var k=T.L.get(Q.mj);if(k)try{k.LR(T.resolve(Q.mj))}catch(l){k.qh(l)}};
  2124. Au=function(T,Q,k,l){l=l===void 0?!1:l;if(k.indexOf(Q)>-1)throw Error("Deps cycle for: "+Q);if(T.S.has(Q))return T.S.get(Q);if(!T.T.has(Q)){if(l)return;throw Error("No provider for: "+Q);}l=T.T.get(Q);k.push(Q);if(l.u3!==void 0)var v=l.u3;else if(l.MkH)v=l[NE]?be6(T,l[NE],k):[],v=l.MkH.apply(l,g.ZH(v));else if(l.pT){v=l.pT;var L=v[NE]?be6(T,v[NE],k):[];v=new (Function.prototype.bind.apply(v,[null].concat(g.ZH(L))))}else throw Error("Could not resolve providers for: "+Q);k.pop();l.hc9||T.S.set(Q,v);
  2125. return v};
  2126. be6=function(T,Q,k){return Q?Q.map(function(l){return l instanceof Xr?Au(T,l.key,k,!0):Au(T,l,k)}):[]};
  2127. r1=function(){bv||(bv=new AIu);return bv};
  2128. DZ=function(){var T,Q;return"h5vcc"in cd&&((T=cd.h5vcc.traceEvent)==null?0:T.traceBegin)&&((Q=cd.h5vcc.traceEvent)==null?0:Q.traceEnd)?1:"performance"in cd&&cd.performance.mark&&cd.performance.measure?2:0};
  2129. a$=function(T){var Q=DZ();switch(Q){case 1:cd.h5vcc.traceEvent.traceBegin("YTLR",T);break;case 2:cd.performance.mark(T+"-start");break;case 0:break;default:Uk(Q,"unknown trace type")}};
  2130. rIH=function(T){var Q=DZ();switch(Q){case 1:cd.h5vcc.traceEvent.traceEnd("YTLR",T);break;case 2:Q=T+"-start";var k=T+"-end";cd.performance.mark(k);cd.performance.measure(T,Q,k);break;case 0:break;default:Uk(Q,"unknown trace type")}};
  2131. cIC=function(T){var Q,k;(k=(Q=window).onerror)==null||k.call(Q,T.message,"",0,0,T)};
  2132. DIH=function(T){var Q=this;var k=k===void 0?0:k;var l=l===void 0?g.iu():l;this.L=k;this.scheduler=l;this.S=new g.Zb;this.T=T;for(T={fX:0};T.fX<this.T.length;T={Lj:void 0,fX:T.fX},T.fX++)T.Lj=this.T[T.fX],k=function(v){return function(){v.Lj.SH();Q.T[v.fX].VT=!0;Q.T.every(function(L){return L.VT===!0})&&Q.S.resolve()}}(T),l=F4(k,uv(this,T.Lj)),this.T[T.fX]=Object.assign({},T.Lj,{SH:k,
  2133. jobId:l})};
  2134. a0t=function(T){var Q=Array.from(T.T.keys()).sort(function(l,v){return uv(T,T.T[v])-uv(T,T.T[l])});
  2135. Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=T.T[k.value],k.jobId===void 0||k.VT||(T.scheduler.wC(k.jobId),F4(k.SH,10))};
  2136. uv=function(T,Q){var k;return(k=Q.priority)!=null?k:T.L};
  2137. KZ=function(T){this.state=T;this.plugins=[];this.L=void 0;this.Y={};nZ&&a$(this.state)};
  2138. uHu=function(T,Q){var k=Q.filter(function(v){return x_(T,v)===10}),l=Q.filter(function(v){return x_(T,v)!==10});
  2139. return T.Y.Spq?function(){var v=g.HT.apply(0,arguments);return g.a(function(L){if(L.S==1)return g.c(L,T.BcV.apply(T,[k].concat(g.ZH(v))),2);T.C2.apply(T,[l].concat(g.ZH(v)));g.BT(L)})}:function(){var v=g.HT.apply(0,arguments);
  2140. T.NcH.apply(T,[k].concat(g.ZH(v)));T.C2.apply(T,[l].concat(g.ZH(v)))}};
  2141. x_=function(T,Q){var k,l;return(l=(k=T.L)!=null?k:Q.priority)!=null?l:0};
  2142. Pd=function(T){nZ&&T&&a$(T)};
  2143. Hd=function(T){nZ&&T&&rIH(T)};
  2144. Kab=function(T,Q,k){ni5&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+T.constructor.name+"] '"+T.state+"' to '"+Q+"'"),console.log("with message: ",k),console.groupEnd())};
  2145. tu=function(T){if(g.hH("web_lifecycle_error_handling_killswitch"))return T();try{return T()}catch(Q){cIC(Q)}};
  2146. Oq=function(T){KZ.call(this,T===void 0?"none":T);this.T=null;this.L=10;this.transitions=[{from:"none",to:"application_navigating",action:this.N},{from:"application_navigating",to:"none",action:this.B},{from:"application_navigating",to:"application_navigating",action:function(){}},
  2147. {from:"none",to:"none",action:function(){}}]};
  2148. xIT=function(){pZ||(pZ=new Oq);return pZ};
  2149. Wd=function(){var T=this;this.store={};this.T=0;this.S={};this.dn={pA_:function(){return T.T}}};
  2150. eV=function(T,Q){var k=$_(Q);if(T.S[k])return T.S[k];var l=Object.keys(T.store)||[];if(l.length<=1&&$_(Q)===l[0])return l;for(var v=[],L=0;L<l.length;L++){var q=l[L].split("/");if(Ju(Q.auth,q[0])){var Y=Q.isJspb;Ju(Y===void 0?"undefined":Y?"true":"false",q[1])&&Ju(Q.cttAuthInfo,q[2])&&(Y=Q.tier,Y=Y===void 0?"undefined":JSON.stringify(Y),Ju(Y,q[3])&&v.push(l[L]))}}return T.S[k]=v};
  2151. Ju=function(T,Q){return T===void 0||T==="undefined"?!0:T===Q};
  2152. $_=function(T){return[T.auth===void 0?"undefined":T.auth,T.isJspb===void 0?"undefined":T.isJspb,T.cttAuthInfo===void 0?"undefined":T.cttAuthInfo,T.tier===void 0?"undefined":T.tier].join("/")};
  2153. Fr=function(){this.Y=this.T=this.S=0;this.L=!1};
  2154. Eq=function(){var T=g.jA("yt.logging.ims");T||(T=new Wd,g.Tv("yt.logging.ims",T));return T};
  2155. tmu=function(){if(rJ5()&&!PKb){var T=function(k){k=k.data;if(k.op==="serializedGelBatch"){var l=yz.get(k.key);l&&(Hef(k.serializedBatch,l.client,l.resolve,l.networklessOptions,l.isIsolated,l.useVSSEndpoint,l.dangerousLogToVisitorSession,l.requestsOutstanding),yz.delete(k.key))}},Q=Cj();
  2156. Q&&(Q.addEventListener("message",T),Q.onerror=function(){yz.clear()});
  2157. PKb=!0}};
  2158. edX=function(T,Q){if(T.endpoint==="log_event"){iv(T);var k=Vz(T),l=OeJ(T.payload)||"",v=pN5(l),L=200;if(v){if(v.enabled===!1&&!g.hH("web_payload_policy_disabled_killswitch"))return;L=Wat(v.tier);if(L===400){$Iu(T,Q);return}}T$[k]=!0;k={cttAuthInfo:k,isJspb:!1,tier:L};Eq().storePayload(k,T.payload);JI5(Q,!1,k,QU(l))}};
  2159. EiT=function(T,Q,k){if(Q.endpoint==="log_event"){iv(void 0,Q);var l=Vz(Q,!0),v=pN5(T),L=200;if(v){if(v.enabled===!1&&!g.hH("web_payload_policy_disabled_killswitch"))return;L=Wat(v.tier);if(L===400){Fau(T,Q,k);return}}T$[l]=!0;l={cttAuthInfo:l,isJspb:!0,tier:L};Eq().storePayload(l,$y(Q.payload));JI5(k,!0,l,QU(T))}};
  2160. JI5=function(T,Q,k,l){function v(){jT({writeThenSend:!0},Q,k.tier)}
  2161. Q=Q===void 0?!1:Q;l=l===void 0?!1:l;T&&(ku=new T);T=g.sG("tvhtml5_logging_max_batch_ads_fork")||g.sG("tvhtml5_logging_max_batch")||g.sG("web_logging_max_batch")||100;var L=(0,g.XY)(),q=lA(Q,k.tier),Y=q.Y;l&&(q.L=!0);l=0;k&&(l=Eq().getSequenceCount(k));l>=1E3?v():l>=T?oP||(oP=vx(function(){v();oP=void 0},0)):L-Y>=10&&(yI6(Q,k.tier),q.Y=L)};
  2162. $Iu=function(T,Q){if(T.endpoint==="log_event"){g.hH("more_accurate_gel_parser")&&Eq().storePayload({isJspb:!1},T.payload);iv(T);var k=Vz(T),l=new Map;l.set(k,[T.payload]);var v=OeJ(T.payload)||"";Q&&(ku=new Q);return new g.rc(function(L,q){ku&&ku.isReady()?ieJ(l,ku,L,q,{bypassNetworkless:!0},!0,QU(v)):L()})}};
  2163. Fau=function(T,Q,k){if(Q.endpoint==="log_event"){iv(void 0,Q);var l=Vz(Q,!0),v=new Map;v.set(l,[$y(Q.payload)]);k&&(ku=new k);return new g.rc(function(L){ku&&ku.isReady()?Vm5(v,ku,L,{bypassNetworkless:!0},!0,QU(T)):L()})}};
  2164. Vz=function(T,Q){var k="";if(T.dangerousLogToVisitorSession)k="visitorOnlyApprovedKey";else if(T.cttAuthInfo){if(Q===void 0?0:Q){Q=T.cttAuthInfo.token;k=T.cttAuthInfo;var l=new HN;k.videoId?l.setVideoId(k.videoId):k.playlistId&&mn(l,2,L9,Nr(k.playlistId));q8[Q]=l}else Q=T.cttAuthInfo,k={},Q.videoId?k.videoId=Q.videoId:Q.playlistId&&(k.playlistId=Q.playlistId),gB[T.cttAuthInfo.token]=k;k=T.cttAuthInfo.token}return k};
  2165. jT=function(T,Q,k){T=T===void 0?{}:T;Q=Q===void 0?!1:Q;new g.rc(function(l,v){var L=lA(Q,k),q=L.L;L.L=!1;M8(L.S);M8(L.T);L.T=0;ku&&ku.isReady()?k===void 0&&g.hH("enable_web_tiered_gel")?TVg(l,v,T,Q,300,q):TVg(l,v,T,Q,k,q):(yI6(Q,k),l())})};
  2166. TVg=function(T,Q,k,l,v,L){var q=ku;k=k===void 0?{}:k;l=l===void 0?!1:l;v=v===void 0?200:v;L=L===void 0?!1:L;var Y=new Map,U=new Map,R={isJspb:l,cttAuthInfo:void 0,tier:v},Z={isJspb:l,cttAuthInfo:void 0};if(l){Q=g.B(Object.keys(T$));for(v=Q.next();!v.done;v=Q.next())v=v.value,U=g.hH("enable_web_tiered_gel")?Eq().smartExtractMatchingEntries({keys:[R,Z],sizeLimit:1E3}):Eq().extractMatchingEntries({isJspb:!0,cttAuthInfo:v}),U.length>0&&Y.set(v,U),(g.hH("web_fp_via_jspb_and_json")&&k.writeThenSend||!g.hH("web_fp_via_jspb_and_json"))&&
  2167. delete T$[v];Vm5(Y,q,T,k,!1,L)}else{Y=g.B(Object.keys(T$));for(R=Y.next();!R.done;R=Y.next())R=R.value,Z=g.hH("enable_web_tiered_gel")?Eq().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:R,tier:v},{isJspb:!1,cttAuthInfo:R}],sizeLimit:1E3}):Eq().extractMatchingEntries({isJspb:!1,cttAuthInfo:R}),Z.length>0&&U.set(R,Z),(g.hH("web_fp_via_jspb_and_json")&&k.writeThenSend||!g.hH("web_fp_via_jspb_and_json"))&&delete T$[R];ieJ(U,q,T,Q,k,!1,L)}};
  2168. yI6=function(T,Q){function k(){jT({writeThenSend:!0},T,Q)}
  2169. T=T===void 0?!1:T;Q=Q===void 0?200:Q;var l=lA(T,Q),v=l===QUT||l===jUf?5E3:kOJ;g.hH("web_gel_timeout_cap")&&!l.T&&(v=vx(function(){k()},v),l.T=v);
  2170. M8(l.S);v=g.$i("LOGGING_BATCH_TIMEOUT",g.sG("web_gel_debounce_ms",1E4));g.hH("shorten_initial_gel_batch_timeout")&&Yu&&(v=lq5);v=vx(function(){g.sG("gel_min_batch_size")>0?Eq().getSequenceCount({cttAuthInfo:void 0,isJspb:T,tier:Q})>=o5t&&k():k()},v);
  2171. l.S=v};
  2172. ieJ=function(T,Q,k,l,v,L,q){v=v===void 0?{}:v;var Y=Math.round((0,g.XY)()),U=T.size,R=v5J(q);T=g.B(T);var Z=T.next();for(q={};!Z.done;q={jH:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Vr:void 0,fN:void 0},Z=T.next()){var f=g.B(Z.value);Z=f.next().value;f=f.next().value;q.batchRequest=g.my({context:g.Yr(Q.config_||g.MU())});if(!g.o_(f)&&!g.hH("throw_err_when_logevent_malformed_killswitch")){l();break}q.batchRequest.events=f;(f=gB[Z])&&L6u(q.batchRequest,Z,f);delete gB[Z];q.dangerousLogToVisitorSession=
  2173. Z==="visitorOnlyApprovedKey";qGf(q.batchRequest,Y,q.dangerousLogToVisitorSession);g5g(v);q.Vr=function(G){g.hH("start_client_gcf")&&g.P0.oD(function(){return g.a(function(m){return g.c(m,MSu(G),0)})});
  2174. U--;U||k()};
  2175. q.jH=0;q.fN=function(G){return function(){G.jH++;if(v.bypassNetworkless&&G.jH===1)try{g.Fh(Q,R,G.batchRequest,U2({writeThenSend:!0},G.dangerousLogToVisitorSession,G.Vr,G.fN,L)),Yu=!1}catch(m){g.FH(m),l()}U--;U||k()}}(q);
  2176. try{g.Fh(Q,R,q.batchRequest,U2(v,q.dangerousLogToVisitorSession,q.Vr,q.fN,L)),Yu=!1}catch(G){g.FH(G),l()}}};
  2177. Vm5=function(T,Q,k,l,v,L){l=l===void 0?{}:l;var q=Math.round((0,g.XY)()),Y={value:T.size},U=new Map([].concat(g.ZH(T)));U=g.B(U);for(var R=U.next();!R.done;R=U.next()){var Z=g.B(R.value).next().value,f=T.get(Z);R=new taI;var G=Q.config_||g.MU(),m=new ab,I=new dE;xM(I,1,G.Ke);xM(I,2,G.IZ);HS(I,16,G.xg);xM(I,17,G.innertubeContextClientVersion);if(G.rz){var z=G.rz,w=new XH;z.coldConfigData&&xM(w,1,z.coldConfigData);z.appInstallData&&xM(w,6,z.appInstallData);z.coldHashData&&xM(w,3,z.coldHashData);z.hotHashData&&
  2178. w.sE(z.hotHashData);Ns(I,XH,62,w)}(z=g.VC.devicePixelRatio)&&z!=1&&lq(I,65,Yy(z));z=SS();z!==""&&xM(I,54,z);z=Ch();if(z.length>0){w=new bK;for(var r=0;r<z.length;r++){var A=new NI;xM(A,1,z[r].key);mn(A,2,YGb,Nr(z[r].value));bq(w,15,NI,A)}Ns(m,bK,5,w)}Zbg(G,I);f5y(m);Geb(I);mN6(G,I);I5b(I);g.hH("start_client_gcf")&&hK6(I);g.$i("DELEGATED_SESSION_ID")&&!g.hH("pageid_as_header_web")&&(G=new D0,xM(G,3,g.$i("DELEGATED_SESSION_ID")));!g.hH("fill_delegate_context_in_gel_killswitch")&&(z=g.$i("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
  2179. (w=Cg(m,D0,3)||new D0,G=m,z=xM(w,18,z),Ns(G,D0,3,z));G=I;z=g.B(Object.entries(QI(g.$i("DEVICE",""))));for(w=z.next();!w.done;w=z.next())r=g.B(w.value),w=r.next().value,r=r.next().value,w==="cbrand"?xM(G,12,r):w==="cmodel"?xM(G,13,r):w==="cbr"?xM(G,87,r):w==="cbrver"?xM(G,88,r):w==="cos"?xM(G,18,r):w==="cosver"?xM(G,19,r):w==="cplatform"&&HS(G,42,iiy(r));m.HP(I);Ns(R,ab,1,m);if(I=q8[Z])a:{if(I.Dg())m=1;else if(I.getPlaylistId())m=2;else break a;Ns(R,HN,4,I);I=Cg(R,ab,1)||new ab;G=Cg(I,D0,3)||new D0;
  2180. z=new cN;z.setToken(Z);HS(z,1,m);bq(G,12,cN,z);Ns(I,D0,3,G)}delete q8[Z];Z=Z==="visitorOnlyApprovedKey";RP()||Kg(R,2,q);!Z&&(m=g.$i("EVENT_ID"))&&(I=U2J(),G=new PN,xM(G,1,m),Kg(G,2,I),Ns(R,PN,5,G));g5g(l);if(g.hH("jspb_serialize_with_worker")&&(m=Cj())&&l.writeThenSend){yz.set(Zh,{client:Q,resolve:k,networklessOptions:l,isIsolated:v,useVSSEndpoint:L,dangerousLogToVisitorSession:Z,requestsOutstanding:Y});m.postMessage({op:"gelBatchToSerialize",batchRequest:$y(R),clientEvents:f,key:Zh});Zh++;break}if(f){m=
  2181. [];for(I=0;I<f.length;I++)try{m.push(new xi(f[I]))}catch(D){g.FH(new g.Wy("Transport failed to deserialize "+String(f[I])))}f=m}else f=[];f=g.B(f);for(m=f.next();!m.done;m=f.next())bq(R,3,xi,m.value);f={startTime:(0,g.XY)(),ticks:{},infos:{}};R=R.xo();f.ticks.geljspc=(0,g.XY)();g.hH("log_jspb_serialize_latency")&&hx("gel_jspb_serialize",f,{sampleRate:.1});Hef(R,Q,k,l,v,L,Z,Y)}};
  2182. Hef=function(T,Q,k,l,v,L,q,Y){l=l===void 0?{}:l;Y=Y===void 0?{value:0}:Y;L=v5J(L);l=U2(l,q,function(U){g.hH("start_client_gcf")&&g.P0.oD(function(){return g.a(function(R){return g.c(R,MSu(U),0)})});
  2183. Y.value--;Y.value||k()},function(){Y.value--;
  2184. Y.value||k()},v);
  2185. l.headers["Content-Type"]="application/json+protobuf";l.postBodyFormat="JSPB";l.postBody=T;g.Fh(Q,L,"",l);Yu=!1};
  2186. g5g=function(T){g.hH("always_send_and_write")&&(T.writeThenSend=!1)};
  2187. U2=function(T,Q,k,l,v){T={retry:!0,onSuccess:k,onError:l,networklessOptions:T,dangerousLogToVisitorSession:Q,bte:!!v,headers:{},postBodyFormat:"",postBody:"",compress:g.hH("compress_gel")||g.hH("compress_gel_lr")};RP()&&(T.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.XY)())));return T};
  2188. qGf=function(T,Q,k){RP()||(T.requestTimeMs=String(Q));g.hH("unsplit_gel_payloads_in_logs")&&(T.unsplitGelPayloadsInLogs=!0);!k&&(Q=g.$i("EVENT_ID"))&&(k=U2J(),T.serializedClientEventId={serializedEventId:Q,clientCounter:String(k)})};
  2189. U2J=function(){var T=g.$i("BATCH_CLIENT_COUNTER")||0;T||(T=Math.floor(Math.random()*65535/2));T++;T>65535&&(T=1);WN("BATCH_CLIENT_COUNTER",T);return T};
  2190. L6u=function(T,Q,k){if(k.videoId)var l="VIDEO";else if(k.playlistId)l="PLAYLIST";else return;T.credentialTransferTokenTargetId=k;T.context=T.context||{};T.context.user=T.context.user||{};T.context.user.credentialTransferTokens=[{token:Q,scope:l}]};
  2191. iv=function(T,Q){var k=g.jA("yt.logging.transport.enableScrapingForTest"),l=IU("il_payload_scraping");l=(l!==void 0?String(l):"")==="enable_il_payload_scraping";if(!k)if(l)f9=[],g.Tv("yt.logging.transport.enableScrapingForTest",!0),g.Tv("yt.logging.transport.scrapedPayloadsForTesting",f9),g.Tv("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Tv("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
  2192. g.Tv("yt.logging.transport.scrapeClientEvent",!0);else return;k=g.jA("yt.logging.transport.scrapedPayloadsForTesting");l=g.jA("yt.logging.transport.payloadToScrape");Q&&(Q=Q.payload,(Q=g.jA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Q)())&&k.push(Q));Q=g.jA("yt.logging.transport.scrapeClientEvent");if(l&&l.length>=1)for(var v=0;v<l.length;v++)if(T&&T.payload[l[v]])if(Q)k.push(T.payload);else{var L=void 0;k.push(((L=T)==null?void 0:L.payload)[l[v]])}g.Tv("yt.logging.transport.scrapedPayloadsForTesting",
  2193. k)};
  2194. RP=function(){return g.hH("use_request_time_ms_header")||g.hH("lr_use_request_time_ms_header")};
  2195. vx=function(T,Q){return g.hH("transport_use_scheduler")===!1?g.Zq(T,Q):g.hH("logging_avoid_blocking_during_navigation")||g.hH("lr_logging_avoid_blocking_during_navigation")?g.Er(0,function(){if(xIT().currentState==="none")T();else{var k={};xIT().install((k.none={callback:T},k))}},Q):F4(T,0,Q)};
  2196. M8=function(T){g.hH("transport_use_scheduler")?g.P0.wC(T):g.GO(T)};
  2197. MSu=function(T){var Q,k,l,v,L,q,Y,U,R,Z;return g.a(function(f){return f.S==1?(l=(Q=T)==null?void 0:(k=Q.responseContext)==null?void 0:k.globalConfigGroup,v=g.t(l,RIu),q=(L=l)==null?void 0:L.hotHashData,Y=g.t(l,Zh5),R=(U=l)==null?void 0:U.coldHashData,(Z=r1().resolve(w1(qU)))?q?v?g.c(f,M_t(Z,q,v),2):g.c(f,M_t(Z,q),2):f.Ym(2):f.return()):R?Y?g.c(f,Y7J(Z,R,Y),0):g.c(f,Y7J(Z,R),0):f.Ym(0)})};
  2198. lA=function(T,Q){Q=Q===void 0?200:Q;return T?Q===300?QUT:fqt:Q===300?jUf:GO5};
  2199. pN5=function(T){if(g.hH("enable_web_tiered_gel")){T=m2J[T||""];var Q,k,l,v=r1().resolve(w1(qU))==null?void 0:(Q=g7())==null?void 0:(k=Q.loggingHotConfig)==null?void 0:(l=k.eventLoggingConfig)==null?void 0:l.payloadPolicies;if(v)for(Q=0;Q<v.length;Q++)if(v[Q].payloadNumber===T)return v[Q]}};
  2200. OeJ=function(T){T=Object.keys(T);T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,m2J[Q])return Q};
  2201. Wat=function(T){switch(T){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
  2202. QU=function(T){return T==="gelDebuggingEvent"};
  2203. v5J=function(T){return(T===void 0?0:T)&&g.hH("vss_through_gel_video_stats")?"video_stats":"log_event"};
  2204. mA=function(T,Q,k,l){l=l===void 0?{}:l;var v={},L=Math.round(l.timestamp||(0,g.XY)());v.eventTimeMs=L<Number.MAX_SAFE_INTEGER?L:0;v[T]=Q;T=Bd();v.context={lastActivityMs:String(l.timestamp||!isFinite(T)?-1:T)};l.sequenceGroup&&!g.hH("web_gel_sequence_info_killswitch")&&(T=v.context,Q=l.sequenceGroup,Q={index:IqC(Q),groupKey:Q},T.sequence=Q,l.endOfSequence&&delete G$[l.sequenceGroup]);g.hH("web_tag_automated_log_events")&&(v.context.automatedLogEventSource=l.automatedLogEventSource);(l.sendIsolatedPayload?
  2205. $Iu:edX)({endpoint:"log_event",payload:v,cttAuthInfo:l.cttAuthInfo,dangerousLogToVisitorSession:l.dangerousLogToVisitorSession},k)};
  2206. IqC=function(T){G$[T]=T in G$?G$[T]+1:0;return G$[T]};
  2207. g.LM=function(T,Q,k){k=k===void 0?{}:k;var l=g.ez;g.$i("ytLoggingEventsDefaultDisabled",!1)&&g.ez===g.ez&&(l=null);mA(T,Q,l,k)};
  2208. IP=function(T){this.T=T};
  2209. g.ha=function(T){return new IP({trackingParams:T})};
  2210. sUX=function(T,Q,k,l,v,L){var q=hIy++;return new IP({veType:T,veCounter:q,elementIndex:k,dataElement:Q,youtubeData:l,jspbYoutubeData:v,loggingDirectives:L})};
  2211. SGH=function(T){return g.$i("client-screen-nonce-store",{})[T===void 0?0:T]};
  2212. CCu=function(T,Q){Q=Q===void 0?0:Q;var k=g.$i("client-screen-nonce-store");k||(k={},WN("client-screen-nonce-store",k));k[Q]=T};
  2213. s2=function(T){T=T===void 0?0:T;return T===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+T};
  2214. BVf=function(T){return g.$i(s2(T===void 0?0:T))};
  2215. g.ST=function(T){return(T=BVf(T===void 0?0:T))?new IP({veType:T,youtubeData:void 0,jspbYoutubeData:void 0}):null};
  2216. zIJ=function(){var T=g.$i("csn-to-ctt-auth-info");T||(T={},WN("csn-to-ctt-auth-info",T));return T};
  2217. XDJ=function(){return Object.values(g.$i("client-screen-nonce-store",{})).filter(function(T){return T!==void 0})};
  2218. g.C9=function(T){T=SGH(T===void 0?0:T);if(!T&&!g.$i("USE_CSN_FALLBACK",!0))return null;T||(T="UNDEFINED_CSN");return T?T:null};
  2219. d2g=function(T){for(var Q=g.B(Object.values(wDJ)),k=Q.next();!k.done;k=Q.next())if(g.C9(k.value)===T)return!0;return!1};
  2220. NVH=function(T,Q,k){var l=zIJ();(k=g.C9(k))&&delete l[k];Q&&(l[T]=Q)};
  2221. Bx=function(T){return zIJ()[T]};
  2222. bhH=function(T,Q,k,l){k=k===void 0?0:k;if(T!==SGH(k)||Q!==g.$i(s2(k)))if(NVH(T,l,k),CCu(T,k),WN(s2(k),Q),Q=function(){setTimeout(function(){T&&g.LM("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:AHX,clientScreenNonce:T})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Q)}catch(v){Q()}else Q()};
  2223. z$=function(T,Q){var k=k===void 0?!0:k;var l=g.$i("VALID_SESSION_TEMPDATA_DOMAINS",[]),v=g.Rq(window.location.href);v&&l.push(v);v=g.Rq(T);if(g.CW(l,v)||!v&&AV(T,"/"))if(l=document.createElement("a"),g.YP(l,T),T=l.href)if(T=fI(T),T=OO5(T))if(k&&!Q.csn&&(Q.itct||Q.ved)&&(Q=Object.assign({csn:g.C9()},Q)),L){var L=parseInt(L,10);isFinite(L)&&L>0&&rH5(T,Q,L)}else rH5(T,Q)};
  2224. rH5=function(T,Q,k){T=cHC(T);Q=Q?g.h3(Q):"";k=k||5;Qe()&&g.aU(T,Q,k)};
  2225. cHC=function(T){for(var Q=g.B(D2T),k=Q.next();!k.done;k=Q.next())T=wy(T,k.value);return"ST-"+Do(T).toString(36)};
  2226. aqb=function(T){if(T.name==="JavaException")return!0;T=T.stack;return T.includes("chrome://")||T.includes("-extension://")||T.includes("webkit-masked-url://")};
  2227. uwu=function(T){if(!T.stack)return!0;var Q=!T.stack.includes("\n");return Q&&T.stack.includes("ErrorType: ")||Q&&T.stack.includes("Anonymous function (Unknown script")||T.stack.toLowerCase()==="not available"||T.fileName==="user-script"||T.fileName.startsWith("user-script:")?!0:!1};
  2228. n5C=function(){this.Uk=[];this.qk=[]};
  2229. wB=function(){if(!Xf){var T=Xf=new n5C;T.qk.length=0;T.Uk.length=0;K6g(T,x2t)}return Xf};
  2230. K6g=function(T,Q){Q.qk&&T.qk.push.apply(T.qk,Q.qk);Q.Uk&&T.Uk.push.apply(T.Uk,Q.Uk)};
  2231. PCb=function(T){function Q(){return T.charCodeAt(l++)}
  2232. var k=T.length,l=0;do{var v=dB(Q);if(v===Infinity)break;var L=v>>3;switch(v&7){case 0:v=dB(Q);if(L===2)return v;break;case 1:if(L===2)return;l+=8;break;case 2:v=dB(Q);if(L===2)return T.substr(l,v);l+=v;break;case 5:if(L===2)return;l+=4;break;default:return}}while(l<k)};
  2233. dB=function(T){var Q=T(),k=Q&127;if(Q<128)return k;Q=T();k|=(Q&127)<<7;if(Q<128)return k;Q=T();k|=(Q&127)<<14;if(Q<128)return k;Q=T();return Q<128?k|(Q&127)<<21:Infinity};
  2234. Hht=function(T,Q,k,l){if(T)if(Array.isArray(T)){var v=l;for(l=0;l<T.length&&!(T[l]&&(v+=N8(l,T[l],Q,k),v>500));l++);l=v}else if(typeof T==="object")for(v in T){if(T[v]){var L=v;var q=T[v],Y=Q,U=k;L=typeof q!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"?0:(q=PCb(atob(q.replace(/-/g,"+").replace(/_/g,"/"))))?N8(L+".ve",q,Y,U):0;l+=L;l+=N8(v,T[v],Q,k);if(l>500)break}}else k[Q]=Aa(T),l+=k[Q].length;else k[Q]=Aa(T),l+=k[Q].length;return l};
  2235. N8=function(T,Q,k,l){k+="."+T;T=Aa(Q);l[k]=T;return k.length+T.length};
  2236. Aa=function(T){try{return(typeof T==="string"?T:String(JSON.stringify(T))).substr(0,500)}catch(Q){return"unable to serialize "+typeof T+" ("+Q.message+")"}};
  2237. ve=function(T){g.bA(T)};
  2238. g.rB=function(T){g.bA(T,"WARNING")};
  2239. g.bA=function(T,Q){var k=k===void 0?{}:k;k.name=g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",1);k.version=g.$i("INNERTUBE_CONTEXT_CLIENT_VERSION");Q=Q===void 0?"ERROR":Q;var l=!1;Q=Q===void 0?"ERROR":Q;l=l===void 0?!1:l;if(T){T.hasOwnProperty("level")&&T.level&&(Q=T.level);if(g.hH("console_log_js_exceptions")){var v=[];v.push("Name: "+T.name);v.push("Message: "+T.message);T.hasOwnProperty("params")&&v.push("Error Params: "+JSON.stringify(T.params));T.hasOwnProperty("args")&&v.push("Error args: "+JSON.stringify(T.args));
  2240. v.push("File name: "+T.fileName);v.push("Stacktrace: "+T.stack);window.console.log(v.join("\n"),T)}if(!(tSb>=5)){v=[];for(var L=g.B(Oh6),q=L.next();!q.done;q=L.next()){q=q.value;try{q()&&v.push(q())}catch(z){}}v=[].concat(g.ZH(pDC),g.ZH(v));var Y=oE5(T);L=Y.message||"Unknown Error";q=Y.name||"UnknownError";var U=Y.stack||T.S||"Not available";if(U.startsWith(q+": "+L)){var R=U.split("\n");R.shift();U=R.join("\n")}R=Y.lineNumber||"Not available";Y=Y.fileName||"Not available";var Z=0;if(T.hasOwnProperty("args")&&
  2241. T.args&&T.args.length)for(var f=0;f<T.args.length&&!(Z=Hht(T.args[f],"params."+f,k,Z),Z>=500);f++);else if(T.hasOwnProperty("params")&&T.params){var G=T.params;if(typeof T.params==="object")for(f in G){if(G[f]){var m="params."+f,I=Aa(G[f]);k[m]=I;Z+=m.length+I.length;if(Z>500)break}}else k.params=Aa(G)}if(v.length)for(f=0;f<v.length&&!(Z=Hht(v[f],"params.context."+f,k,Z),Z>=500);f++);navigator.vendor&&!k.hasOwnProperty("vendor")&&(k["device.vendor"]=navigator.vendor);k={message:L,name:q,lineNumber:R,
  2242. fileName:Y,stack:U,params:k,sampleWeight:1};f=Number(T.columnNumber);isNaN(f)||(k.lineNumber=k.lineNumber+":"+f);if(T.level==="IGNORED")T=0;else a:{T=wB();f=g.B(T.qk);for(v=f.next();!v.done;v=f.next())if(v=v.value,k.message&&k.message.match(v.zR)){T=v.weight;break a}T=g.B(T.Uk);for(f=T.next();!f.done;f=T.next())if(f=f.value,f.callback(k)){T=f.weight;break a}T=1}k.sampleWeight=T;T=g.B(W65);for(f=T.next();!f.done;f=T.next())if(f=f.value,f.hU[k.name])for(L=g.B(f.hU[k.name]),v=L.next();!v.done;v=L.next())if(q=
  2243. v.value,v=k.message.match(q.oB)){k.params["params.error.original"]=v[0];L=q.groups;q={};for(R=0;R<L.length;R++)q[L[R]]=v[R+1],k.params["params.error."+L[R]]=v[R+1];k.message=f.w3(q);break}k.params||(k.params={});T=wB();k.params["params.errorServiceSignature"]="msg="+T.qk.length+"&cb="+T.Uk.length;k.params["params.serviceWorker"]="false";g.VC.document&&g.VC.document.querySelectorAll&&(k.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new yw(Ek,"sample")).constructor!==
  2244. yw&&(k.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(k);if(k.sampleWeight!==0&&!$25.has(k.message)){if(l&&g.hH("web_enable_error_204"))JH6(Q===void 0?"ERROR":Q,k);else{Q=Q===void 0?"ERROR":Q;Q==="ERROR"?(cx.publish("handleError",k),g.hH("record_app_crashed_web")&&eI5===0&&k.sampleWeight===1&&(eI5++,l={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.hH("report_client_error_with_app_crash_ks")||(l.systemHealth={crashData:{clientError:{logMessage:{message:k.message}}}}),
  2245. g.LM("appCrashed",l)),F6g++):Q==="WARNING"&&cx.publish("handleWarning",k);if(g.hH("kevlar_gel_error_routing")){l=Q;T=void 0;T=T===void 0?{}:T;b:{f=g.B(E5f);for(v=f.next();!v.done;v=f.next())if(g.tH(v.value.toLowerCase())){f=!0;break b}f=!1}if(f)T=void 0;else{v={stackTrace:k.stack};k.fileName&&(v.filename=k.fileName);f=k.lineNumber&&k.lineNumber.split?k.lineNumber.split(":"):[];f.length!==0&&(f.length!==1||isNaN(Number(f[0]))?f.length!==2||isNaN(Number(f[0]))||isNaN(Number(f[1]))||(v.lineNumber=Number(f[0]),
  2246. v.columnNumber=Number(f[1])):v.lineNumber=Number(f[0]));f={level:"ERROR_LEVEL_UNKNOWN",message:k.message,errorClassName:k.name,sampleWeight:k.sampleWeight};l==="ERROR"?f.level="ERROR_LEVEL_ERROR":l==="WARNING"&&(f.level="ERROR_LEVEL_WARNNING");v={isObfuscated:!0,browserStackInfo:v};T.pageUrl=window.location.href;T.kvPairs=[];g.$i("FEXP_EXPERIMENTS")&&(T.experimentIds=g.$i("FEXP_EXPERIMENTS"));L=g.$i("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!JI("web_disable_gel_stp_ecatcher_killswitch")&&L)for(q=
  2247. g.B(Object.keys(L)),R=q.next();!R.done;R=q.next())R=R.value,T.kvPairs.push({key:R,value:String(L[R])});if(L=k.params)for(q=g.B(Object.keys(L)),R=q.next();!R.done;R=q.next())R=R.value,T.kvPairs.push({key:"client."+R,value:String(L[R])});L=g.$i("SERVER_NAME");q=g.$i("SERVER_VERSION");L&&q&&(T.kvPairs.push({key:"server.name",value:L}),T.kvPairs.push({key:"server.version",value:q}));T={errorMetadata:T,stackTrace:v,logMessage:f}}if(T&&(g.LM("clientError",T),l==="ERROR"||g.hH("errors_flush_gel_always_killswitch")))a:{if(g.hH("web_fp_via_jspb")){l=
  2248. !0;l=l===void 0?!1:l;T=yH6;yH6=[];if(T)for(T=g.B(T),f=T.next();!f.done;f=T.next())f=f.value,l?mA(f.payloadName,f.payload,g.ez,f.options):g.LM(f.payloadName,f.payload,f.options);jT(void 0,!0);if(!g.hH("web_fp_via_jspb_and_json"))break a}jT(void 0,!1)}}g.hH("suppress_error_204_logging")||JH6(Q,k)}try{$25.add(k.message)}catch(z){}tSb++}}}};
  2249. JH6=function(T,Q){var k=Q.params||{};T={urlParams:{a:"logerror",t:"jserror",type:Q.name,msg:Q.message.substr(0,250),line:Q.lineNumber,level:T,"client.name":k.name},postParams:{url:g.$i("PAGE_NAME",window.location.href),file:Q.fileName},method:"POST"};k.version&&(T["client.version"]=k.version);if(T.postParams){Q.stack&&(T.postParams.stack=Q.stack);Q=g.B(Object.keys(k));for(var l=Q.next();!l.done;l=Q.next())l=l.value,T.postParams["client."+l]=k[l];if(k=g.$i("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Q=
  2250. g.B(Object.keys(k)),l=Q.next();!l.done;l=Q.next())l=l.value,T.postParams[l]=k[l];(k=g.$i("LAVA_VERSION"))&&(T.postParams["lava.version"]=k);k=g.$i("SERVER_NAME");Q=g.$i("SERVER_VERSION");k&&Q&&(T.postParams["server.name"]=k,T.postParams["server.version"]=Q)}g.zO(g.$i("ECATCHER_REPORT_HOST","")+"/error_204",T)};
  2251. ihI=function(T){var Q=g.HT.apply(1,arguments);T.args||(T.args=[]);Array.isArray(T.args)&&T.args.push.apply(T.args,g.ZH(Q))};
  2252. uA=function(T){var Q=g.t(T,Dh);if(Q)return Q;if((Q=g.t(T,VSg))&&Q.commands)return Tib(Q.commands);if((Q=g.t(T,Q1t))&&Q.commands)return Tib(Q.commands);if((T=g.t(T,j15))&&T.identifier&&T.command&&(aP||(aP=[]),!aP.includes(T.identifier)))return aP.push(T.identifier),g.t(T.command,Dh)};
  2253. Tib=function(T){if(T.length!==0){var Q=[];T=g.B(T);for(var k=T.next();!k.done;k=T.next())(k=uA(k.value))&&Q.push(k);return{commandExecutorCommand:{commands:Q}}}};
  2254. g.n9=function(T,Q,k){k===void 0?delete T[Q.name]:T[Q.name]=k};
  2255. kLI=function(T){for(var Q=0,k=0;k<T.length;k++)Q=Q*31+T.charCodeAt(k),k<T.length-1&&(Q%=0x800000000000);return Q%1E5};
  2256. K9=function(T){RK.call(this,1,arguments);this.csn=T};
  2257. oqH=function(T,Q,k,l,v,L,q,Y){var U=lkb(),R=new IP({veType:Q,youtubeData:L,jspbYoutubeData:void 0});L=xu({},U);v&&(L.cttAuthInfo=v);v={csn:U,pageVe:R.getAsJson()};g.hH("expectation_logging")&&Y&&Y.screenCreatedLoggingExpectations&&(v.screenCreatedLoggingExpectations=Y.screenCreatedLoggingExpectations);k&&k.visualElement?(v.implicitGesture={parentCsn:k.clientScreenNonce,gesturedVe:k.visualElement.getAsJson()},q&&(v.implicitGesture.gestureType=q)):k&&g.rB(new g.Wy("newScreen() parent element does not have a VE - rootVe",
  2258. Q));l&&(v.cloneCsn=l);T?mA("screenCreated",v,T,L):g.LM("screenCreated",v,L);GP(zK5,new K9(U));Px.clear();Hx.clear();ta.clear();return U};
  2259. g.p9=function(T,Q,k,l,v,L){L=L===void 0?{}:L;g.O2(T,Q,k,[l],v===void 0?!1:v,L)};
  2260. g.O2=function(T,Q,k,l,v,L){v=v===void 0?!1:v;L=L===void 0?{}:L;Object.assign(L,xu({cttAuthInfo:Bx(Q)||void 0},Q));for(var q=g.B(l),Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var U=Y.getAsJson();(g.Rs(U)||!U.trackingParams&&!U.veType)&&g.rB(Error("Child VE logged with no data"));if(g.hH("no_client_ve_attach_unless_shown")){var R=Wx(Y,Q);if(U.veType&&!Hx.has(R)&&!ta.has(R)&&!v){if(!g.hH("il_attach_cache_limit")||Px.size<1E3){Px.set(R,[T,Q,k,Y]);return}g.hH("il_attach_cache_limit")&&Px.size>1E3&&g.rB(new g.Wy("IL Attach cache exceeded limit"))}Y=
  2261. Wx(k,Q);Px.has(Y)?$u(k,Q):ta.set(Y,!0)}}l=l.filter(function(Z){Z.csn!==Q?(Z.csn=Q,Z=!0):Z=!1;return Z});
  2262. k={csn:Q,parentVe:k.getAsJson(),childVes:g.IQ(l,function(Z){return Z.getAsJson()})};
  2263. Q==="UNDEFINED_CSN"?Ja("visualElementAttached",L,k):T?mA("visualElementAttached",k,T,L):g.LM("visualElementAttached",k,L)};
  2264. vq5=function(T,Q,k,l,v){eT(k,Q);l=xu({cttAuthInfo:Bx(Q)||void 0},Q);k={csn:Q,ve:k.getAsJson(),eventType:1};v&&(k.clientData=v);Q==="UNDEFINED_CSN"?Ja("visualElementShown",l,k):T?mA("visualElementShown",k,T,l):g.LM("visualElementShown",k,l)};
  2265. Ldy=function(T,Q,k,l){var v=(l=l===void 0?!1:l)?16:8;l=xu({cttAuthInfo:Bx(Q)||void 0,endOfSequence:l},Q);k={csn:Q,ve:k.getAsJson(),eventType:v};Q==="UNDEFINED_CSN"?Ja("visualElementHidden",l,k):T?mA("visualElementHidden",k,T,l):g.LM("visualElementHidden",k,l)};
  2266. Ff=function(T,Q,k,l,v){qrt(T,Q,k,void 0,l,v)};
  2267. qrt=function(T,Q,k,l,v){eT(k,Q);l=l||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var L=xu({cttAuthInfo:Bx(Q)||void 0},Q);k={csn:Q,ve:k.getAsJson(),gestureType:l};v&&(k.clientData=v);Q==="UNDEFINED_CSN"?Ja("visualElementGestured",L,k):T?mA("visualElementGestured",k,T,L):g.LM("visualElementGestured",k,L)};
  2268. gqT=function(){var T=I$(16);for(var Q=[],k=0;k<T.length;k++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(T[k]&63));return Q.join("")};
  2269. Ja=function(T,Q,k){E2.push({payloadName:T,payload:k,f_9:void 0,options:Q});yU||(yU=AJ5())};
  2270. dNg=function(T){if(E2){for(var Q=g.B(E2),k=Q.next();!k.done;k=Q.next())k=k.value,k.payload&&(k.payload.csn=T.csn,g.LM(k.payloadName,k.payload,k.options));E2.length=0}yU=0};
  2271. Wx=function(T,Q){return""+T.getAsJson().veType+T.getAsJson().veCounter+Q};
  2272. eT=function(T,Q){if(g.hH("no_client_ve_attach_unless_shown")){var k=Wx(T,Q);Hx.set(k,!0);$u(T,Q)}};
  2273. $u=function(T,Q){T=Wx(T,Q);Px.has(T)&&(Q=Px.get(T)||[],g.p9(Q[0],Q[1],Q[2],Q[3],!0),Px.delete(T))};
  2274. xu=function(T,Q){g.hH("log_sequence_info_on_gel_web")&&(T.sequenceGroup=Q);return T};
  2275. g.iA=function(T,Q,k,l){g.E4(vq5)(void 0,T,Q,k,l,void 0)};
  2276. g.VU=function(T,Q){g.E4(function(){g.EA(Q,function(k){eT(k,T);var l=xu({cttAuthInfo:Bx(T)||void 0},T);k={csn:T,ve:k.getAsJson(),eventType:4};T==="UNDEFINED_CSN"?Ja("visualElementShown",l,k):g.LM("visualElementShown",k,l)})})()};
  2277. g.TI=function(T,Q){g.E4(function(){g.EA(Q,function(k){Ldy(void 0,T,k)})})()};
  2278. g.Q6=function(T,Q,k){g.E4(Ff)(void 0,T,Q,k,void 0)};
  2279. jx=function(T,Q,k,l){g.E4(qrt)(void 0,T,Q,k,l,void 0)};
  2280. lD=function(T,Q,k,l,v,L){k=k===void 0?{}:k;this.componentType=T;this.renderer=Q===void 0?null:Q;this.macros=k;this.layoutId=l;this.interactionLoggingClientData=v;this.T=L;this.id=k8(T)};
  2281. k8=function(T){var Q=":"+(Pq.getInstance().T++).toString(36);return T+Q};
  2282. g.ox=function(T){T=T===void 0?!1:T;g.x.call(this);this.b7=new g.XE(T);g.P(this,this.b7)};
  2283. vZ=function(){var T="ytp-id-"+MGX.toString();MGX++;return T};
  2284. g.LD=function(T){g.x.call(this);this.Gg={};this.OW={};this.element=this.createElement(T)};
  2285. q1=function(T,Q,k,l){if(l.substring(0,2)==="{{")T.OW[l]=[Q,k];else return l};
  2286. Yr6=function(T,Q){var k=[];if(!Q)return k;Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())if(l=l.value,l!=null){var v=l.nodeType;v===1||v===3?k.push(l):l&&typeof l.X==="string"?k.push(T.createElement(l)):l.element?k.push(l.element):typeof l==="string"&&l.indexOf("\n")!==-1?l.split("\n").forEach(function(L,q){q>0&&k.push(g.fO("BR"));k.push(g.G8(L))}):k.push(g.G8(l))}return k};
  2287. gD=function(T,Q,k,l){if(k==="child"){g.IO(Q);var v;l===void 0?v=void 0:v=!Array.isArray(l)||l&&typeof l.X==="string"?[l]:l;k=Yr6(T,v);k=g.B(k);for(T=k.next();!T.done;T=k.next())Q.appendChild(T.value)}else k==="style"?g.W2(Q,"cssText",l?l:""):l===null||l===void 0?Q.removeAttribute(k):(T=l.toString(),k==="href"&&(T=g.lX(g.Ll(T))),Q.setAttribute(k,T))};
  2288. g.p=function(T){g.LD.call(this,T);this.Sr=!0;this.N=!1;this.listeners=[]};
  2289. g.M1=function(T){g.p.call(this,T);this.u9=new g.ox;g.P(this,this.u9)};
  2290. Y8=function(T,Q,k,l,v,L,q){q=q===void 0?null:q;g.M1.call(this,Q);this.api=T;this.macros={};this.componentType=k;this.C=this.j=null;this.Tg=q;this.layoutId=l;this.interactionLoggingClientData=v;this.G9=L;this.p_=null;this.U5=new ZZ(this.element);g.P(this,this.U5);this.zg=this.Z(this.element,"click",this.onClick);this.xm=[];this.hj=new fZ(this.onClick,this);g.P(this,this.hj);this.QR=!1;this.e6=this.z9=null};
  2291. UC=function(T,Q){T=T===void 0?null:T;Q=Q===void 0?null:Q;if(T==null)return g.rB(Error("Got null or undefined adText object")),"";var k=g.cX(T.text);if(!T.isTemplated)return k;if(Q==null)return g.rB(Error("Missing required parameters for a templated message")),k;T=g.B(Object.entries(Q));for(Q=T.next();!Q.done;Q=T.next()){var l=g.B(Q.value);Q=l.next().value;l=l.next().value;k=k.replace("{"+Q+"}",l)}return k};
  2292. U5T=function(T){T=T===void 0?null:T;return T!=null&&(T=T.thumbnail,T!=null&&T.thumbnails!=null&&T.thumbnails.length!=0&&T.thumbnails[0].url!=null)?g.cX(T.thumbnails[0].url):""};
  2293. RYt=function(T){T=T===void 0?null:T;return T!=null&&(T=T.thumbnail,T!=null&&T.thumbnails!=null&&T.thumbnails.length!=0&&T.thumbnails[0].width!=null&&T.thumbnails[0].height!=null)?new g.Ji(T.thumbnails[0].width||0,T.thumbnails[0].height||0):new g.Ji(0,0)};
  2294. g.Rx=function(T){if(T.simpleText)return T.simpleText;if(T.runs){var Q=[];T=g.B(T.runs);for(var k=T.next();!k.done;k=T.next())k=k.value,k.text&&Q.push(k.text);return Q.join("")}return""};
  2295. g.ZF=function(T){if(T.simpleText)return T=document.createTextNode(T.simpleText),T;var Q=[];if(T.runs)for(var k=0;k<T.runs.length;k++){var l=T.runs[k];if(l.text){var v=Q,L=v.push,q=null;var Y=l.text;l.bold&&(q=ZM("B",null,q||Y));l.italics&&(q=ZM("I",null,q||Y));l.strikethrough&&(q=ZM("STRIKE",null,q||Y));l.navigationEndpoint&&l.navigationEndpoint.urlEndpoint&&(l=l.navigationEndpoint.urlEndpoint,q=ZM("A",null,q||Y),g.YP(q,l.url),l.target=="TARGET_NEW_WINDOW"&&(q.target="_blank"));Y=q||ZM("SPAN",null,
  2296. Y);L.call(v,Y)}}return Q.length==1?Q[0]:ZM("SPAN",null,Q)};
  2297. g.ZYI=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
  2298. fill:"#fff"}}]}};
  2299. fD=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",K:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
  2300. g.GI=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{X:"path",K:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
  2301. g.mM=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{X:"path",K:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
  2302. fkt=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{X:"path",K:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{X:"path",K:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
  2303. GL5=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
  2304. m5C=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
  2305. g.Ix=function(){return{X:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
  2306. hc=function(){return{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z",
  2307. fill:"white"}}]}};
  2308. Ikb=function(){return{X:"svg",K:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",K:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
  2309. hYT=function(){return{X:"svg",K:{viewBox:"0 0 24 24"},W:[{X:"path",K:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",K:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
  2310. s16=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
  2311. SrX=function(){return{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
  2312. fill:"white","fill-rule":"evenodd"}}]}};
  2313. Cut=function(){return{X:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{X:"path",K:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",K:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
  2314. Bi6=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
  2315. zY5=function(){return{X:"svg",K:{viewBox:"0 0 24 24"},W:[{X:"path",K:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",K:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
  2316. sC=function(){return{X:"svg",K:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",K:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
  2317. Xyf=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
  2318. Sx=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
  2319. g.CD=function(){return{X:"svg",K:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{X:"path",K:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
  2320. BZ=function(){return{X:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{X:"path",K:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",K:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
  2321. wyg=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
  2322. d5t=function(){return{X:"svg",K:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},W:[{X:"path",K:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z",
  2323. fill:"white"}}]}};
  2324. NiX=function(){return{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",J:"ytp-svg-fill",K:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
  2325. AgI=function(){return{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
  2326. fill:"white"}}]}};
  2327. bY6=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
  2328. zI=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
  2329. Xc=function(){return{X:"svg",K:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},W:[{X:"path",K:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z",
  2330. fill:"white"}}]}};
  2331. rgf=function(){return{X:"svg",K:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{X:"path",K:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{X:"path",K:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",
  2332. fill:"#fff","fill-rule":"nonzero"}}]}};
  2333. cgg=function(){return{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"rect",K:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"rect",K:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"path",K:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
  2334. fill:"white"}},{X:"defs",W:[{X:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{X:"stop",K:{offset:"0.3","stop-color":"#E1002D"}},{X:"stop",K:{offset:"0.9","stop-color":"#E01378"}}]}]}]}};
  2335. D5f=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
  2336. ak6=function(){return{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}};
  2337. g.wD=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
  2338. u45=function(){return{X:"svg",K:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},W:[{X:"path",K:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z",
  2339. fill:"white"}}]}};
  2340. g.dD=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
  2341. fill:"#fff"}}]}};
  2342. g.N1=function(){return{X:"svg",K:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{X:"path",K:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
  2343. nqu=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
  2344. Kdb=function(){return{X:"svg",K:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},W:[{X:"path",K:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z",
  2345. fill:"white"}}]}};
  2346. x56=function(){return{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
  2347. fill:"white"}}]}};
  2348. Ac=function(){return{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
  2349. bD=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?!1:k;if(!T)return null;switch(T.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return k?{X:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:BZ();case "CHECK_BOX":return{X:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",K:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
  2350. fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{X:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{X:"path",K:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Ix();case "INFO_OUTLINE":return Q?{X:"svg",K:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},W:[{X:"path",K:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
  2351. Cut();case "REMOVE_CIRCLE":return{X:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",K:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return Sx();case "SKIP_NEXT_NEW":return{X:"svg",K:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},W:[{X:"path",K:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return zY5();
  2352. case "DISLIKE":return hYT();default:return g.rB(new g.Wy("Unexpected icon:",T)),null}};
  2353. rD=function(T,Q,k,l,v,L,q,Y,U){v=v===void 0?[]:v;q=q===void 0?!1:q;U=U===void 0?!1:U;v={X:"button",Rk:["ytp-ad-button"].concat(v)};Y!=null&&(v.K={tabindex:Y});Y8.call(this,T,v,L===void 0?"button":L,Q,k,l);this.T=this.S=this.L=null;this.B=q;this.Y=U;this.hide()};
  2354. PuI=function(T){var Q=null;T.T!=null&&(Q=[T.T.serviceEndpoint,T.T.navigationEndpoint].filter(function(k){return k!=null}),T.T.command&&(Q=Q.concat(T.T.command)));
  2355. return Q||[]};
  2356. cZ=function(){g.x.call(this);var T=this;this.T=new Map;this.S=J8C(function(Q){if(Q.target&&(Q=T.T.get(Q.target))&&Q)for(var k=0;k<Q.length;k++)g.uM(Q[k])})};
  2357. HYy=function(){DF==null&&(DF=new cZ);return DF};
  2358. ax=function(T,Q){if(T.simpleText){a:{T=T.simpleText;if(Q&&(Q=tG5(T))){Q=ZM("SPAN",null,Q);break a}Q=g.G8(T)}return Q}var k=[];if(T.runs)for(var l=0;l<T.runs.length;l++){var v=T.runs[l];v.text&&k.push(OYC(v,Q))}return k.length==1?k[0]:ZM("SPAN",null,k)};
  2359. OYC=function(T,Q){var k=null,l=T.text;Q&&(l=tG5(l)||l);T.bold&&(k=ZM("B",null,k||l));T.italics&&(k=ZM("I",null,k||l));T.strikethrough&&(k=ZM("STRIKE",null,k||l));T.navigationEndpoint&&g.t(T.navigationEndpoint,g.uD)&&(Q=g.t(T.navigationEndpoint,g.uD),k=ZM("A",null,k||l),g.YP(k,Q.url),Q.target=="TARGET_NEW_WINDOW"&&(k.target="_blank"),T=T.navigationEndpoint.loggingUrls)&&(T=T.map(function(v){return v.baseUrl}),HYy().register(k,T),g.oF(k,"ytp-ad-has-logging-urls"));
  2360. return k||ZM("SPAN",null,l)};
  2361. tG5=function(T){T=T.split(/(?:\r\n|\r|\n)/g);if(T.length>1){for(var Q=[T[0]],k=1;k<T.length;k++)Q.push(ZM("BR")),Q.push(T[k]);return Q}return null};
  2362. nD=function(T,Q,k,l,v,L,q,Y,U){L=L===void 0?!1:L;q=q===void 0?[]:q;U=U===void 0?!1:U;Y8.call(this,T,{X:"span",Rk:["ytp-ad-hover-text-button"].concat(q)},Y===void 0?"ad-hover-text-button":Y,Q,k,l);this.button=this.S=null;this.D=L;this.B=v;this.L=U;this.hide()};
  2363. KD=function(T){return T&&T.thumbnails&&(T.thumbnails||null).length!=0&&T.thumbnails[0].url?g.cX(T.thumbnails[0].url):""};
  2364. x8=function(T,Q,k,l,v,L){L=L===void 0?!1:L;Y8.call(this,T,{X:"img",J:"ytp-ad-image"},"ad-image",Q,k,l,v===void 0?null:v);this.T=L;this.hide()};
  2365. PZ=function(T,Q,k,l,v,L){v=v===void 0?[]:v;Y8.call(this,T,{X:"div",Rk:["ytp-ad-confirm-dialog-background"],W:[{X:"div",J:"ytp-ad-confirm-dialog-container",W:[{X:"div",Rk:["ytp-ad-confirm-dialog"].concat(v),K:{role:"dialog",tabindex:"-1"},W:[{X:"div",J:"ytp-ad-confirm-dialog-title",S6:"{{title}}"},{X:"div",J:"ytp-ad-confirm-dialog-messages"},{X:"div",J:"ytp-ad-confirm-dialog-confirm-container",W:[{X:"button",J:"ytp-ad-confirm-dialog-cancel-button",S6:"{{cancelLabel}}"},{X:"button",J:"ytp-ad-confirm-dialog-confirm-button",
  2366. S6:"{{confirmLabel}}"}]}]}]},{X:"button",Rk:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{X:"span",J:"ytp-ad-button-icon",W:[g.Ix()]}]}]},L===void 0?"confirm-dialog":L,Q,k,l);this.D=this.L_("ytp-ad-confirm-dialog-close-overlay-button");this.Y=this.L_("ytp-ad-confirm-dialog-cancel-button");this.B=this.L_("ytp-ad-confirm-dialog-confirm-button");this.qO=this.L_("ytp-ad-confirm-dialog-messages");this.L=null;this.T=new wi;g.P(this,this.T);this.S=null;this.hide()};
  2367. py5=function(T,Q){if(Q.title){var k=g.Rx(Q.title);T.updateValue("title",k)}if(Q.dialogMessages){k=g.B(Q.dialogMessages);for(var l=k.next();!l.done;l=k.next())l=ax(l.value),T.qO.appendChild(l)}Q.cancelLabel&&(k=g.Rx(Q.cancelLabel),T.updateValue("cancelLabel",k),T.T.Z(T.Y,"click",function(v){return T.Xf(v)}));
  2368. Q.confirmLabel&&(Q=g.Rx(Q.confirmLabel),T.updateValue("confirmLabel",Q),T.T.Z(T.B,"click",function(v){return T.t0(v)}));
  2369. T.T.Z(T.D,"click",function(v){return T.us(v)})};
  2370. HZ=function(T,Q,k,l,v,L){v=v===void 0?[]:v;L=L===void 0?"toggle-button":L;var q=k8("ytp-ad-toggle-button-input"),Y={role:"button","aria-label":"{{tooltipText}}"};T.G().experiments.Wd("fix_h5_toggle_button_a11y")&&(Y.tabindex="0");Y.role="checkbox";Y8.call(this,T,{X:"div",Rk:["ytp-ad-toggle-button"].concat(v),W:[{X:"label",J:"ytp-ad-toggle-button-label",K:{"for":q},W:[{X:"span",J:"ytp-ad-toggle-button-icon",K:Y,W:[{X:"span",J:"ytp-ad-toggle-button-untoggled-icon",S6:"{{untoggledIconTemplateSpec}}"},
  2371. {X:"span",J:"ytp-ad-toggle-button-toggled-icon",S6:"{{toggledIconTemplateSpec}}"}]},{X:"input",J:"ytp-ad-toggle-button-input",K:{id:q,type:"checkbox"}},{X:"span",J:"ytp-ad-toggle-button-text",S6:"{{buttonText}}"},{X:"span",J:"ytp-ad-toggle-button-tooltip",S6:"{{tooltipText}}"}]}]},L,Q,k,l);this.Y=this.L_("ytp-ad-toggle-button");this.T=this.L_("ytp-ad-toggle-button-input");this.S=this.L_("ytp-ad-toggle-button-icon");this.D=this.L_("ytp-ad-toggle-button-untoggled-icon");this.B=this.L_("ytp-ad-toggle-button-toggled-icon");
  2372. this.i9=this.L_("ytp-ad-toggle-button-text");this.L=null;this.qO=!1;this.hide()};
  2373. tc=function(T){T.qO&&(T.isToggled()?(g.kj(T.D,!1),g.kj(T.B,!0),T.S.setAttribute("aria-checked",!0)):(g.kj(T.D,!0),g.kj(T.B,!1),T.S.setAttribute("aria-checked",!1)))};
  2374. Wd5=function(T,Q){var k=null;T.L&&(k=(Q?[T.L.defaultServiceEndpoint,T.L.defaultNavigationEndpoint]:[T.L.toggledServiceEndpoint]).filter(function(l){return l!=null}));
  2375. return k||[]};
  2376. $56=function(T,Q,k){this.actionType=Q;this.id=k;this.content=T};
  2377. OC=function(T){wi.call(this);this.T=T;this.Z(this.T,"onAdUxUpdate",this.N)};
  2378. pD=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-feedback-dialog-background",W:[{X:"div",J:"ytp-ad-feedback-dialog-container",W:[{X:"div",J:"ytp-ad-feedback-dialog-form",K:{role:"dialog",tabindex:"-1"},W:[{X:"div",J:"ytp-ad-feedback-dialog-title",W:[{X:"span",S6:"{{title}}"}]},{X:"span",J:"ytp-ad-info-dialog-feedback-options-title",S6:"{{reasonsTitle}}"},{X:"div",J:"ytp-ad-info-dialog-feedback-options"},{X:"div",J:"ytp-ad-feedback-dialog-confirm-container",W:[{X:"button",J:"ytp-ad-feedback-dialog-cancel-button",
  2379. S6:"{{cancelLabel}}"},{X:"button",J:"ytp-ad-feedback-dialog-confirm-button",S6:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",Q,k,l);this.Y=[];this.T=null;this.B=this.L_("ytp-ad-feedback-dialog-cancel-button");this.D=this.L_("ytp-ad-feedback-dialog-confirm-button");this.qO=this.L_("ytp-ad-info-dialog-feedback-options");this.i9=this.L_("ytp-ad-feedback-dialog-title");this.L=this.S=null;this.hide()};
  2380. Eqg=function(T,Q){var k=Q.cancelRenderer&&Q.cancelRenderer.buttonRenderer||null;k&&(T.T=new rD(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,["ytp-ad-feedback-dialog-close-button"],"button"),g.P(T,T.T),T.T.init(k8("button"),k,T.macros),T.T.listen("click",T.PN,T),T.T.XB(T.element));Q.title&&(k=g.Rx(Q.title),T.updateValue("title",k));Q.reasonsTitle&&(k=g.Rx(Q.reasonsTitle),T.updateValue("reasonsTitle",k));Q.reasons&&Jgt(T,Q.reasons);Q.cancelLabel&&(k=g.Rx(Q.cancelLabel),T.updateValue("cancelLabel",
  2381. k),g.SG(T.B,"click",function(){return T.PN()}));
  2382. Q.confirmLabel&&(k=g.Rx(Q.confirmLabel),T.updateValue("confirmLabel",k),g.SG(T.D,"click",function(){return eYJ(T)}));
  2383. Q.undoRenderer&&FdT(T,Q.undoRenderer)};
  2384. Jgt=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){var l=k.value;k=l.reason;if(k==null)g.rB(Error("AdFeedbackReason.reason was not set."));else if(l=l.endpoint,l==null)g.rB(Error("AdFeedbackReason.endpoint was not set."));else{k=new WZ(k,l);g.P(T,k);l=T.qO;var v=k.xB();l.appendChild(v);T.Y.push(k)}}};
  2385. FdT=function(T,Q){if(Q=Q&&Q.buttonRenderer||null)Q.serviceEndpoint?(T.S=new rD(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.P(T,T.S),T.S.init(k8("ad-feedback-undo-mute-button"),Q,T.macros),T.S.listen("click",T.FFO,T),T.S.XB(T.i9)):g.rB(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
  2386. eYJ=function(T){var Q=T.Y.filter(function(k){return k.isChecked()});
  2387. Q.length!==0&&(Q=Q[0].getCommand(),T.layoutId?T.G9.executeCommand(Q,T.layoutId):g.bA(Error("Missing layoutId for ad feedback dialog.")),T.api.onAdUxClicked("ad-feedback-dialog-confirm-button",T.layoutId),T.publish("a"),T.hide())};
  2388. WZ=function(T,Q){this.S=Q;this.T=new g.M1({X:"label",J:"ytp-ad-feedback-dialog-reason-label",W:[{X:"input",J:"ytp-ad-feedback-dialog-reason-input",K:{type:"radio",name:"feedback-reason-group"}},{X:"span",J:"ytp-ad-feedback-dialog-reason-text",S6:g.Rx(T)}]});this.L=this.T.L_("ytp-ad-feedback-dialog-reason-input")};
  2389. $8=function(T,Q,k,l){PZ.call(this,T,Q,k,l,[],"ad-mute-confirm-dialog")};
  2390. Jc=function(T,Q,k,l,v){Y8.call(this,T,{X:"div",J:"ytp-ad-info-dialog-background",W:[{X:"div",J:"ytp-ad-info-dialog-container",W:[{X:"div",J:"ytp-ad-info-dialog-form",K:{role:"dialog",tabindex:"-1"},W:[{X:"div",J:"ytp-ad-info-dialog-title",S6:"{{title}}"},{X:"ul",J:"ytp-ad-info-dialog-ad-reasons"},{X:"div",J:"ytp-ad-info-dialog-message"},{X:"div",J:"ytp-ad-info-dialog-mute-container"},{X:"div",J:"ytp-ad-info-dialog-confirm-container",W:[{X:"button",J:"ytp-ad-info-dialog-confirm-button",S6:"{{confirmLabel}}"}]}]}]}]},
  2391. "ad-info-dialog",Q,k,l);this.T=this.S=null;this.D=this.L_("ytp-ad-info-dialog-confirm-button");this.K_=this.L_("ytp-ad-info-dialog-mute-container");this.Jj=this.L_("ytp-ad-info-dialog-message");this.Bd=this.L_("ytp-ad-info-dialog-ad-reasons");this.Y=this.L=null;this.i9=v;this.B=null;this.sK=!1;this.qO=null;this.hide()};
  2392. ygt=function(T,Q){if(Q=Q.content&&Q.content.adFeedbackRenderer||null)T.S=new pD(T.api,T.layoutId,T.interactionLoggingClientData,T.G9),g.P(T,T.S),T.S.init(k8("ad-feedback-dialog"),Q,T.macros),T.S.XB(T.i9),T.S.subscribe("a",function(){return T.publish("c")})};
  2393. iYT=function(T,Q){if(Q=Q.content&&Q.content.confirmDialogRenderer||null)T.Y=new $8(T.api,T.layoutId,T.interactionLoggingClientData,T.G9),g.P(T,T.Y),T.Y.init(k8("ad-mute-confirm-dialog"),Q,T.macros),T.Y.XB(T.i9),T.Y.subscribe("b",function(){return T.publish("c")})};
  2394. VGg=function(T){T.T&&T.T.listen("click",T.L8,T);g.SG(T.D,"click",function(){return T.L8()})};
  2395. ex=function(T,Q,k,l,v,L,q){nD.call(this,T,Q,k,l,L===void 0?!0:L,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",q===void 0?!1:q);this.T=null;this.Y=v;this.hide()};
  2396. Qpf=function(T,Q,k){Q=Q.dialog&&g.t(Q.dialog,Tm6)||null;Q==null?g.bA(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(T.T=new Jc(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.Y),g.P(T,T.T),T.T.init(k8("ad-info-dialog"),Q,k),T.T.XB(T.Y),T.T.subscribe("d",function(){return T.publish("f")}),T.T.subscribe("c",function(){return T.publish("e")}))};
  2397. lA5=function(T,Q,k){T.button==null?g.bA(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(T.S&&g.oF(T.S.element,"ytp-ad-info-hover-text-short"),(Q=Q&&Q.serviceEndpoint&&g.t(Q.serviceEndpoint,jp5)||null)?(Qpf(T,Q,k),T.button.listen("click",function(){T.T&&!T.T.Sr&&(T.T.show(),kBg(T))})):T.button.listen("click",function(){return kBg(T)}))};
  2398. kBg=function(T){T.api.onAdUxClicked("ad-info-icon-button",T.layoutId)};
  2399. Fc=function(T,Q,k,l,v,L){Y8.call(this,T,{X:"div",J:"ytp-ad-text"},L===void 0?"ad-text":L,Q,k,l,v===void 0?null:v);this.T=null;this.hide()};
  2400. EC=function(T,Q){Q&&g.CO(T.element,UC(T.T,Q))};
  2401. y6=function(T,Q,k,l,v,L,q){Y8.call(this,T,Q,k,l,v,L);this.T=q;g.P(this,this.T);this.sK=this.D=-1};
  2402. iD=function(T){T.T&&T.D===-1&&(T.D=T.T.subscribe("h",T.yb,T),T.sK=T.T.subscribe("g",T.yF,T),T.yb())};
  2403. V6=function(T){T.T!=null&&T.D!==-1&&(T.T.Y_(T.D),T.T.Y_(T.sK),T.sK=-1,T.D=-1)};
  2404. g.TZ=function(T,Q,k,l,v,L){g.x.call(this);this.element=T;this.state=null;k||T.hide();this.S=Q;this.L=l===void 0?Q:l;this.T=L;this.onHidden=v;this.delay=new g.FA(this.cK,0,this);g.P(this,this.delay)};
  2405. Qr=function(T,Q){T=T.element.element;Q?T.setAttribute("aria-hidden","true"):T.removeAttribute("aria-hidden")};
  2406. jM=function(T,Q,k,l,v,L){y6.call(this,T,{X:"div",J:"ytp-ad-preview-slot"},"ad-preview",Q,k,l,v);var q=this;this.K_=-1;this.Y=this.api.G().experiments.Wd("enable_modern_skip_button_on_web");this.S=new g.M1({X:"span",J:"ytp-ad-preview-container"});this.Y&&this.S.element.classList.add("ytp-ad-preview-container-detached");g.P(this,this.S);this.L=this.Y?new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-preview-text-modern"):new Fc(this.api,this.layoutId,this.interactionLoggingClientData,
  2407. this.G9,"ytp-ad-preview-text");g.P(this,this.L);this.L.XB(this.S.element);this.i9=this.Y?new g.M1({X:"span",J:"ytp-ad-preview-image-modern"}):new g.M1({X:"span",J:"ytp-ad-preview-image"});g.P(this,this.i9);this.B=new x8(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.B);this.B.XB(this.i9.element);this.i9.XB(this.S.element);this.S.XB(this.element);this.qO=new g.TZ(this.S,400,!1,100,function(){return q.hide()});
  2408. g.P(this,this.qO);this.Bd=0;this.Jj=!1;this.f_=L;this.hide()};
  2409. kX=function(T,Q,k,l,v,L){y6.call(this,T,{X:"div",Rk:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{X:"div",J:"ytp-flyout-cta-icon-container"},{X:"div",J:"ytp-flyout-cta-body",W:[{X:"div",J:"ytp-flyout-cta-text-container",W:[{X:"div",J:"ytp-flyout-cta-headline-container"},{X:"div",J:"ytp-flyout-cta-description-container"}]},{X:"div",J:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",Q,k,l,v);this.L=new x8(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-flyout-cta-icon");
  2410. g.P(this,this.L);this.L.XB(this.L_("ytp-flyout-cta-icon-container"));this.L.element.classList.add("ytp-flyout-cta-icon-rounded");this.B=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-flyout-cta-headline");g.P(this,this.B);this.B.XB(this.L_("ytp-flyout-cta-headline-container"));this.Y=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-flyout-cta-description");g.P(this,this.Y);this.Y.XB(this.L_("ytp-flyout-cta-description-container"));T=["ytp-flyout-cta-action-button"];
  2411. this.api.G().V("web_modern_buttons")&&T.push("ytp-flyout-cta-action-button-rounded");this.S=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,T);g.P(this,this.S);this.S.XB(this.L_("ytp-flyout-cta-action-button-container"));this.S.element.setAttribute("tabIndex","-1");te(this.S.element);this.qO=null;this.i9=0;this.Bd=L;this.hide()};
  2412. lP=function(T,Q,k,l,v){Y8.call(this,T,{X:"div",J:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",Q,k,l,v===void 0?null:v);var L=this;this.T=null;this.L=new HZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-instream-user-sentiment-like-button"]);g.P(this,this.L);this.L.XB(this.element);this.S=new HZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-instream-user-sentiment-dislike-button"]);g.P(this,this.S);this.S.XB(this.element);
  2413. this.Y=new g.TZ(this,400,!1,500,function(){return L.hide()});
  2414. g.P(this,this.Y);this.hide()};
  2415. oY=function(T,Q,k,l,v,L){v=v===void 0?0:v;L=L===void 0?!1:L;g.x.call(this);this.S=T;this.L=!1;this.D=l;this.z9=L;this.B=!1;this.T=null;Q>0&&(this.T=new g.FA(this.lP,Q,this),g.P(this,this.T));this.N=new g.FA(this.lP,k,this);g.P(this,this.N);this.j=rzt(this.S,v,1,l);g.P(this,this.j);this.C=rzt(this.S,0,l,1);g.P(this,this.C);this.Y=new wi;g.P(this,this.Y)};
  2416. v8=function(T,Q,k){this.S=T;this.isAsync=Q;this.T=k};
  2417. on6=function(T){switch(T){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Uk(T,"unknown result type")}};
  2418. vnu=function(T,Q){var k=1;T.isTrusted===!1&&(k=0);WN("ISDSTAT",k);LN(k,"i.s_",{triggerContext:"sk",metadata:Q});return k};
  2419. LpC=function(T,Q){var k=[];Q?Q.isTrusted===!0?k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Q.isTrusted===!1?k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");LN(0,"a.s_",{metadata:T,states:k});WN("ASDSTAT",0)};
  2420. LN=function(T,Q,k){Q=qYX[Q];var l,v,L={detected:T===0,source:""+Q.S+((l=k.triggerContext)!=null?l:"")+((v=k.IJ)!=null?v:""),detectionStates:k.states,durationMs:k.bT};k.metadata&&(L.contentCpn=k.metadata.contentCpn,L.adCpn=k.metadata.adCpn);g.LM("biscottiBasedDetection",L);Q.T!==void 0&&(k=Number(g.$i("CATSTAT",0)),Q.T!==void 0?(Q=Q.T,T=on6(T),T=k&~(3<<Q)|T<<Q):T=k,WN("CATSTAT",T))};
  2421. qH=function(T){return T?"layout: "+T.layoutType:""};
  2422. g3=function(T,Q,k){return T?!0:(g.rB(new g.Wy("Assertion: "+Q,k)),!1)};
  2423. MH=function(T,Q,k,l,v){l=l===void 0?{}:l;if(!v||Math.random()<5E-4){Q=Q||null;k=k||null;T=T instanceof Error?T:new g.Wy(T);if(T.args)for(var L=g.B(T.args),q=L.next();!q.done;q=L.next())q=q.value,q instanceof Object&&(l=Object.assign({},q,l));l.category="H5 Ads Control Flow";Q&&(l.slot=Q?"slot: "+Q.slotType:"");k&&(l.layout=qH(k),l.layoutId=k.layoutId);v&&(l.known_error_aggressively_sampled=!0);T.args=[l];g.rB(T)}};
  2424. g.YX=function(T,Q){this.state=T;this.oldState=Q};
  2425. Ue=function(T,Q){return g.J(T.state,Q)&&!g.J(T.oldState,Q)?1:!g.J(T.state,Q)&&g.J(T.oldState,Q)?-1:0};
  2426. g.RY=function(T,Q){return Ue(T,Q)>0};
  2427. ZV=function(T,Q,k,l,v,L){y6.call(this,T,{X:"div",J:"ytp-ad-skip-button-slot"},"skip-button",Q,k,l,v);var q=this;this.qO=null;this.i9=!1;this.Jj=L;this.B=this.api.G().experiments.Wd("enable_modern_skip_button_on_web");this.K_=!1;this.Y=new g.M1({X:"span",Rk:["ytp-ad-skip-button-container"]});this.B&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.P(this,this.Y);this.Y.XB(this.element);this.S=this.L=null;this.f_=new g.TZ(this.Y,500,!1,100,function(){return q.hide()});
  2428. g.P(this,this.f_);this.Bd=new oY(this.Y.element,15E3,5E3,.5,.5,this.B);g.P(this,this.Bd);this.hide()};
  2429. Mou=function(T){T=T.qO&&T.qO.adRendererCommands;return(T&&T.clickCommand&&g.t(T.clickCommand,g.fN)&&g.t(T.clickCommand,g.fN).commands||[]).some(function(Q){return Q.adLifecycleCommand?gnT(Q.adLifecycleCommand):!1})};
  2430. gnT=function(T){return T.action==="END_LINEAR_AD"||T.action==="END_LINEAR_AD_PLACEMENT"};
  2431. GZ=function(T,Q,k,l,v,L){y6.call(this,T,{X:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",Q,k,l,v);this.qO=L;this.Y=!1;this.B=0;this.L=this.S=null;this.hide()};
  2432. YY6=function(T,Q){T.Y||(T.Y=!0,T.S&&(Q?T.S.qO.hide():T.S.hide()),Q?(T=T.L,T.f_.show(),T.show()):T.L.show())};
  2433. mP=function(T,Q,k,l){rD.call(this,T,Q,k,l,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
  2434. IY=function(T,Q,k,l,v,L,q){L=L===void 0?!1:L;q=q===void 0?!1:q;Y8.call(this,T,{X:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Q,k,l);this.L=v;this.T=this.L_("ytp-ad-simple-ad-badge");(this.S=L)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");q&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
  2435. h$=function(T,Q,k,l,v){v=v===void 0?!1:v;lD.call(this,"player-overlay",T,{},Q,l);this.videoAdDurationSeconds=k;this.interactionLoggingClientData=l;this.kq=v};
  2436. se=function(T,Q){g.ox.call(this);this.api=T;this.durationMs=Q;this.T=null;this.Qp=new wi(this);g.P(this,this.Qp);this.S=UhC;this.Qp.Z(this.api,"presentingplayerstatechange",this.c8);this.T=this.Qp.Z(this.api,"onAdPlaybackProgress",this.bC)};
  2437. SM=function(T){g.ox.call(this);this.T=!1;this.l8=0;this.Qp=new wi(this);g.P(this,this.Qp);this.durationMs=T;this.timer=new g.x3(100);g.P(this,this.timer);this.Qp.Z(this.timer,"tick",this.bC);this.S={seekableStart:0,seekableEnd:T/1E3,current:0};this.start()};
  2438. g.CN=function(T,Q){var k=Math.abs(Math.floor(T)),l=Math.floor(k/86400),v=Math.floor(k%86400/3600),L=Math.floor(k%3600/60);k=Math.floor(k%60);if(Q){Q="";l>0&&(Q+=" "+l+" \u5929");if(l>0||v>0)Q+=" "+v+" \u5c0f\u65f6";Q+=" "+L+" \u5206\u949f";Q+=" "+k+" \u79d2";l=Q.trim()}else{Q="";l>0&&(Q+=l+":",v<10&&(Q+="0"));if(l>0||v>0)Q+=v+":",L<10&&(Q+="0");Q+=L+":";k<10&&(Q+="0");l=Q+k}return T>=0?l:"-"+l};
  2439. g.B8=function(T){return(!("button"in T)||typeof T.button!=="number"||T.button===0)&&!("shiftKey"in T&&T.shiftKey)&&!("altKey"in T&&T.altKey)&&!("metaKey"in T&&T.metaKey)&&!("ctrlKey"in T&&T.ctrlKey)};
  2440. zZ=function(T,Q,k,l,v,L,q){y6.call(this,T,{X:"span",J:q?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Q,k,l,v);this.videoAdDurationSeconds=L;this.S=null;q&&this.api.G().S&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),We&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()};
  2441. X8=function(T,Q,k,l){Fc.call(this,T,Q,k,l,"ytp-video-ad-top-bar-title","ad-title")};
  2442. w3=function(T){this.content=T.content;if(T.commandRuns){T=g.B(T.commandRuns);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.loggingDirectives=g.t(Q,Rpf),Q.onTap&&(this.interaction={onTap:Q.onTap})}};
  2443. d3=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",Q,k,l);this.hide()};
  2444. NH=function(T,Q,k,l,v){Y8.call(this,T,{X:"span",J:v?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Q,k,l);this.S=v;this.adBadgeText=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);this.adBadgeText.XB(this.element);g.P(this,this.adBadgeText);v?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),We&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
  2445. A$=function(T,Q,k,l){Y8.call(this,T,{X:"span",J:"ytp-ad-pod-index"},"ad-pod-index",Q,k,l);this.api.G().S&&(this.element.classList.add("ytp-ad-pod-index--mweb"),We&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()};
  2446. bP=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Q,k,l);this.hide()};
  2447. r3=function(T,Q){this.S=T;this.T=Q};
  2448. ZMC=function(T,Q){return T.S+Q*(T.T-T.S)};
  2449. c8=function(T,Q,k){return T.T-T.S?g.ti((Q-T.S)/(T.T-T.S),0,1):k!=null?k:Infinity};
  2450. DV=function(T,Q,k,l){l=l===void 0?!1:l;g.M1.call(this,{X:"div",J:"ytp-ad-persistent-progress-bar-container",W:[{X:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=T;this.S=Q;this.L=k;l&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.P(this,this.S);this.progressBar=this.L_("ytp-ad-persistent-progress-bar");this.T=-1;this.Z(T,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
  2451. aY=function(T,Q,k,l,v,L){Y8.call(this,T,{X:"div",J:"ytp-ad-player-overlay",W:[{X:"div",J:"ytp-ad-player-overlay-flyout-cta"},{X:"div",J:"ytp-ad-player-overlay-instream-info"},{X:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",J:"ytp-ad-player-overlay-progress-bar"},{X:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Q,k,l);this.D=L;this.B=this.L_("ytp-ad-player-overlay-flyout-cta");this.B.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
  2452. this.T=this.L_("ytp-ad-player-overlay-instream-info");this.Y=null;fA5(this)&&(T=ZM("div"),g.oF(T,"ytp-ad-player-overlay-top-bar-gradients"),Q=this.T,Q.parentNode&&Q.parentNode.insertBefore(T,Q),(Q=this.api.getVideoData(2))&&Q.isListed&&Q.title&&(k=new X8(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),k.XB(T),k.init(k8("ad-title"),{text:Q.title},this.macros),g.P(this,k)),this.Y=T);this.L=null;this.sK=this.L_("ytp-ad-player-overlay-skip-or-preview");this.Bd=this.L_("ytp-ad-player-overlay-progress-bar");
  2453. this.i9=this.L_("ytp-ad-player-overlay-instream-user-sentiment");this.qO=this.L_("ytp-ad-player-overlay-ad-disclosure-banner");this.S=v;g.P(this,this.S);this.hide()};
  2454. fA5=function(T){T=T.api.G();return g.uP(T)&&T.S};
  2455. g.nN=function(T){T&=16777215;var Q=[(T&16711680)>>16,(T&65280)>>8,T&255];T=Q[0];var k=Q[1];Q=Q[2];T=Number(T);k=Number(k);Q=Number(Q);if(T!=(T&255)||k!=(k&255)||Q!=(Q&255))throw Error('"('+T+","+k+","+Q+'") is not a valid RGB color');k=T<<16|k<<8|Q;return T<16?"#"+(16777216|k).toString(16).slice(1):"#"+k.toString(16)};
  2456. g.KN=function(){};
  2457. mht=function(T){var Q=new Mw;var k=new gI;k=xM(k,1,"botguard");T=xM(k,2,T);this.T=Dnu(Q,gI,1,GB5,T)};
  2458. xX=function(T){this.T=new NN(T)};
  2459. IAg=function(){var T=!1;try{T=!!window.sessionStorage.getItem("session_logininfo")}catch(Q){T=!0}return(g.$i("INNERTUBE_CLIENT_NAME")==="WEB"||g.$i("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&T};
  2460. P8=function(){var T=T===void 0?!0:T;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");WN("LOGIN_INFO","");T&&window.sessionStorage.setItem("from_switch_account","1");T=!0;T=T===void 0?!1:T;var Q,k=hpX;k||(k=document.querySelector("#persist_identity"));if(Q=k){var l=Q.src?(new URL(Q.src)).origin:"*";if(T){var v;(v=Q.contentWindow)==null||v.postMessage({action:"clear"},l)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
  2461. 2)){var L=window.sessionStorage.getItem("session_logininfo");if(L){var q;(q=Q.contentWindow)==null||q.postMessage({loginInfo:L},l)}}}}catch(Y){}};
  2462. H8=function(T){T&&(T.startsWith("https://accounts.google.com/AddSession")?P8():T.startsWith("https://accounts.google.com/ServiceLogin")?P8():T.startsWith("https://myaccount.google.com")&&g.RZ(T).S.endsWith("/youtubeoptions")&&P8());if(g.$i("LOGGED_IN",!0)&&IAg()){var Q=g.$i("VALID_SESSION_TEMPDATA_DOMAINS",[]);var k=g.Rq(window.location.href);k&&Q.push(k);k=g.Rq(T);g.CW(Q,k)||!k&&AV(T,"/")?(Q=fI(T),(Q=OO5(Q))?(Q=cHC(Q),Q=(Q=g.uC(Q)||null)?QI(Q):{}):Q=null):Q=null;Q==null&&(Q={});k=Q;var l=void 0;
  2463. IAg()?(l||(l=g.$i("LOGIN_INFO")),l?(k.session_logininfo=l,k=!0):k=!1):k=!1;k&&z$(T,Q)}};
  2464. g.SYt=function(T){var Q=Q===void 0?{}:Q;var k=k===void 0?"":k;var l=l===void 0?window:l;T=g.sD(T,Q);H8(T);k=g.Ll(T+k);l=l.location;k=Mn(k);k!==void 0&&(l.href=k)};
  2465. g.t$=function(T,Q,k){Q=Q===void 0?{}:Q;k=k===void 0?!1:k;var l=g.$i("EVENT_ID");l&&(Q.ei||(Q.ei=l));Q&&z$(T,Q);k||(H8(T),g.SYt(T))};
  2466. g.Oe=function(T,Q,k,l,v){v=v===void 0?!1:v;k&&z$(T,k);k=g.Ll(T);var L=g.lX(k);T!=L&&iK(Error("Unsafe window.open URL: "+T));T=L;Q=Q||Do(T).toString(36);try{if(v)return v=T,v=MmI(v),H8(v),g.GH(window,v,Q,"attributionsrc")}catch(q){g.FH(q)}H8(T);return g.GH(window,k,Q,l)};
  2467. CnJ=function(T){pN=T};
  2468. BmC=function(T){W8=T};
  2469. zp5=function(T){$X=T};
  2470. wef=function(){XeC=$X=W8=pN=null};
  2471. Nm5=function(){var T=T===void 0?window.location.href:T;if(g.hH("kevlar_disable_theme_param"))return null;var Q=Zz(T);if(g.hH("enable_dark_theme_only_on_shorts")&&Q!=null&&Q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var k=g.k5(T).theme;return dhT.get(k)||null}catch(l){}return null};
  2472. J$=function(){this.T={};if(this.S=mSJ()){var T=g.uC("CONSISTENCY");T&&AFT(this,{encryptedTokenJarContents:T})}};
  2473. AFT=function(T,Q){if(Q.encryptedTokenJarContents&&(T.T[Q.encryptedTokenJarContents]=Q,typeof Q.expirationSeconds==="string")){var k=Number(Q.expirationSeconds);setTimeout(function(){delete T.T[Q.encryptedTokenJarContents]},k*1E3);
  2474. T.S&&g.aU("CONSISTENCY",Q.encryptedTokenJarContents,k,void 0,!0)}};
  2475. F8=function(){this.S=-1;var T=g.$i("LOCATION_PLAYABILITY_TOKEN");g.$i("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=eM(this))&&(T=this.localStorage.get("yt-location-playability-token"));T&&(this.locationPlayabilityToken=T,this.T=void 0)};
  2476. eM=function(T){return T.localStorage===void 0?new QH("yt-client-location"):T.localStorage};
  2477. g.Ee=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?!1:k;var l=g.$i("INNERTUBE_CONTEXT");if(!l)return g.bA(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};l=g.my(l);g.hH("web_no_tracking_params_in_shell_killswitch")||delete l.clickTracking;l.client||(l.client={});var v=l.client;v.clientName==="MWEB"&&v.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(v.clientFormFactor=g.$i("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");v.screenWidthPoints=window.innerWidth;v.screenHeightPoints=
  2478. window.innerHeight;v.screenPixelDensity=Math.round(window.devicePixelRatio||1);v.screenDensityFloat=window.devicePixelRatio||1;v.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=L===void 0?!1:L;g.xq();var q="USER_INTERFACE_THEME_LIGHT";g.Py(0,165)?q="USER_INTERFACE_THEME_DARK":g.Py(0,174)?q="USER_INTERFACE_THEME_LIGHT":!g.hH("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
  2479. (q="USER_INTERFACE_THEME_DARK");L=L?q:Nm5()||q;v.userInterfaceTheme=L;if(!Q){if(L=kmC())v.connectionType=L;g.hH("web_log_effective_connection_type")&&(L=oQb())&&(l.client.effectiveConnectionType=L)}var Y;if(g.hH("web_log_memory_total_kbytes")&&((Y=g.VC.navigator)==null?0:Y.deviceMemory)){var U;Y=(U=g.VC.navigator)==null?void 0:U.deviceMemory;l.client.memoryTotalKbytes=""+Y*1E6}g.hH("web_gcf_hashes_innertube")&&(L=UNg())&&(U=L.coldConfigData,Y=L.coldHashData,L=L.hotHashData,l.client.configInfo=l.client.configInfo||
  2480. {},U&&(l.client.configInfo.coldConfigData=U),Y&&(l.client.configInfo.coldHashData=Y),L&&(l.client.configInfo.hotHashData=L));U=g.k5(g.VC.location.href);!g.hH("web_populate_internal_geo_killswitch")&&U.internalcountrycode&&(v.internalGeo=U.internalcountrycode);v.clientName==="MWEB"||v.clientName==="WEB"?(v.mainAppWebInfo||(v.mainAppWebInfo={}),v.mainAppWebInfo.graftUrl=g.VC.location.href,g.hH("kevlar_woffle")&&E2f.instance&&(U=E2f.instance,v.mainAppWebInfo.pwaInstallabilityStatus=!U.T&&U.S?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
  2481. "PWA_INSTALLABILITY_STATUS_UNKNOWN"),v.mainAppWebInfo.webDisplayMode=uu(),v.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):v.clientName==="TVHTML5"&&(!g.hH("web_lr_app_quality_killswitch")&&(U=g.$i("LIVING_ROOM_APP_QUALITY"))&&(v.tvAppInfo=Object.assign(v.tvAppInfo||{},{appQuality:U})),U=g.$i("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(v.tvAppInfo=Object.assign(v.tvAppInfo||{},{certificationScope:U}));if(!g.hH("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
  2482. "undefined")try{var R=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(K){}R=void 0}R&&(v.timeZone=R)}(R=SS())?v.experimentsToken=R:delete v.experimentsToken;R=Ch();J$.instance||(J$.instance=new J$);l.request=Object.assign({},l.request,{internalExperimentFlags:R,consistencyTokenJars:os(J$.instance.T)});!g.hH("web_prequest_context_killswitch")&&(R=g.$i("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(l.request.externalPrequestContext=R);v=g.xq();R=g.Py(0,58);v=v.get("gsml","");l.user=Object.assign({},
  2483. l.user);R&&(l.user.enableSafetyMode=R);v&&(l.user.lockedSafetyMode=!0);g.hH("warm_op_csn_cleanup")?k&&(Q=g.C9())&&(l.clientScreenNonce=Q):!Q&&(Q=g.C9())&&(l.clientScreenNonce=Q);T&&(l.clickTracking={clickTrackingParams:T});if(T=g.jA("yt.mdx.remote.remoteClient_"))l.remoteClient=T;F8.getInstance().setLocationOnInnerTubeContext(l);try{var Z=Y5(),f=Z.bid;delete Z.bid;l.adSignalsInfo={params:[],bid:f};for(var G=g.B(Object.entries(Z)),m=G.next();!m.done;m=G.next()){var I=g.B(m.value),z=I.next().value,
  2484. w=I.next().value;Z=z;f=w;T=void 0;(T=l.adSignalsInfo.params)==null||T.push({key:Z,value:""+f})}var r,A;if(((r=l.client)==null?void 0:r.clientName)==="TVHTML5"||((A=l.client)==null?void 0:A.clientName)==="TVHTML5_UNPLUGGED"){var D=g.$i("INNERTUBE_CONTEXT");D.adSignalsInfo&&(l.adSignalsInfo.advertisingId=D.adSignalsInfo.advertisingId,l.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",l.adSignalsInfo.limitAdTracking=D.adSignalsInfo.limitAdTracking)}}catch(K){g.bA(K)}return l};
  2485. cFT=function(T,Q){if(!T)return!1;var k,l=(k=g.t(T,bM6))==null?void 0:k.signal;if(l&&Q.x6)return!!Q.x6[l];var v;if((k=(v=g.t(T,rF5))==null?void 0:v.request)&&Q.Jc)return!!Q.Jc[k];for(var L in T)if(Q.e$[L])return!0;return!1};
  2486. Dhy=function(T){var Q={"Content-Type":"application/json"};g.$i("EOM_VISITOR_DATA")?Q["X-Goog-EOM-Visitor-Id"]=g.$i("EOM_VISITOR_DATA"):g.$i("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=g.$i("VISITOR_DATA"));Q["X-Youtube-Bootstrap-Logged-In"]=g.$i("LOGGED_IN",!1);g.$i("DEBUG_SETTINGS_METADATA")&&(Q["X-Debug-Settings-Metadata"]=g.$i("DEBUG_SETTINGS_METADATA"));T!=="cors"&&((T=g.$i("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Q["X-Youtube-Client-Name"]=T),(T=g.$i("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Q["X-Youtube-Client-Version"]=
  2487. T),(T=g.$i("CHROME_CONNECTED_HEADER"))&&(Q["X-Youtube-Chrome-Connected"]=T),(T=g.$i("DOMAIN_ADMIN_STATE"))&&(Q["X-Youtube-Domain-Admin-State"]=T),g.$i("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(T=g.$i("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=T));return Q};
  2488. aAt=function(){this.T={}};
  2489. yr=function(){this.mappings=new aAt};
  2490. iP=function(T){return function(){return new T}};
  2491. nnH=function(T){var Q=Q===void 0?"UNKNOWN_INTERFACE":Q;if(T.length===1)return T[0];var k=uYy[Q];if(k){k=new RegExp(k);for(var l=g.B(T),v=l.next();!v.done;v=l.next())if(v=v.value,k.exec(v))return v}var L=[];Object.entries(uYy).forEach(function(q){var Y=g.B(q);q=Y.next().value;Y=Y.next().value;Q!==q&&L.push(Y)});
  2492. k=new RegExp(L.join("|"));T.sort(function(q,Y){return q.length-Y.length});
  2493. l=g.B(T);for(v=l.next();!v.done;v=l.next())if(v=v.value,!k.exec(v))return v;return T[0]};
  2494. g.Vr=function(T){return"/youtubei/v1/"+nnH(T)};
  2495. TC=function(){};
  2496. Qi=function(){};
  2497. jK=function(){};
  2498. ks=function(T){return g.jA("ytcsi."+(T||"")+"data_")||Kp5(T)};
  2499. xh5=function(){var T=ks();T.info||(T.info={});return T.info};
  2500. lU=function(T){T=ks(T);T.metadata||(T.metadata={});return T.metadata};
  2501. oo=function(T){T=ks(T);T.tick||(T.tick={});return T.tick};
  2502. vP=function(T){T=ks(T);if(T.gel){var Q=T.gel;Q.gelInfos||(Q.gelInfos={});Q.gelTicks||(Q.gelTicks={})}else T.gel={gelTicks:{},gelInfos:{}};return T.gel};
  2503. PnH=function(T){T=vP(T);T.gelInfos||(T.gelInfos={});return T.gelInfos};
  2504. LG=function(T){var Q=ks(T).nonce;Q||(Q=g.hu(16),ks(T).nonce=Q);return Q};
  2505. Kp5=function(T){var Q={tick:{},info:{}};g.Tv("ytcsi."+(T||"")+"data_",Q);return Q};
  2506. qL=function(){var T=g.jA("ytcsi.debug");T||(T=[],g.Tv("ytcsi.debug",T),g.Tv("ytcsi.reference",{}));return T};
  2507. gS=function(T){T=T||"";var Q=HM5();if(Q[T])return Q[T];var k=qL(),l={timerName:T,info:{},tick:{},span:{},jspbInfo:[]};k.push(l);return Q[T]=l};
  2508. toT=function(T){T=T||"";var Q=HM5();Q[T]&&delete Q[T];var k=qL(),l={timerName:T,info:{},tick:{},span:{},jspbInfo:[]};k.push(l);Q[T]=l};
  2509. HM5=function(){var T=g.jA("ytcsi.reference");if(T)return T;qL();return g.jA("ytcsi.reference")};
  2510. ML=function(T){return OMC[T]||"LATENCY_ACTION_UNKNOWN"};
  2511. Ys=function(T,Q){RK.call(this,1,arguments);this.timer=Q};
  2512. UH=function(){this.T=0};
  2513. Ro=function(){UH.instance||(UH.instance=new UH);return UH.instance};
  2514. fG=function(T,Q){Zy[Q]=Zy[Q]||{count:0};var k=Zy[Q];k.count++;k.time=(0,g.XY)();T.T||(T.T=g.Er(0,function(){var l=(0,g.XY)(),v;for(v in Zy)Zy[v]&&l-Zy[v].time>6E4&&delete Zy[v];T&&(T.T=0)},5E3));
  2515. return k.count>5?(k.count===6&&Math.random()*1E5<1&&(k=new g.Wy("CSI data exceeded logging limit with key",Q.split("_")),Q.indexOf("plev")>=0||g.rB(k)),!0):!1};
  2516. pef=function(){this.timing={};this.clearResourceTimings=function(){};
  2517. this.webkitClearResourceTimings=function(){};
  2518. this.mozClearResourceTimings=function(){};
  2519. this.msClearResourceTimings=function(){};
  2520. this.oClearResourceTimings=function(){}};
  2521. Wpy=function(){var T;if(g.hH("csi_use_performance_navigation_timing")){var Q,k,l,v=GC==null?void 0:(T=GC.getEntriesByType)==null?void 0:(Q=T.call(GC,"navigation"))==null?void 0:(k=Q[0])==null?void 0:(l=k.toJSON)==null?void 0:l.call(k);v?(v.requestStart=mB(v.requestStart),v.responseEnd=mB(v.responseEnd),v.redirectStart=mB(v.redirectStart),v.redirectEnd=mB(v.redirectEnd),v.domainLookupEnd=mB(v.domainLookupEnd),v.connectStart=mB(v.connectStart),v.connectEnd=mB(v.connectEnd),v.responseStart=mB(v.responseStart),
  2522. v.secureConnectionStart=mB(v.secureConnectionStart),v.domainLookupStart=mB(v.domainLookupStart),v.isPerformanceNavigationTiming=!0,T=v):T=GC.timing}else T=g.hH("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(GC.timing)):GC.timing;return T};
  2523. mB=function(T){return Math.round(Io()+T)};
  2524. Io=function(){return(g.hH("csi_use_time_origin")||g.hH("csi_use_time_origin_tvhtml5"))&&GC.timeOrigin?Math.floor(GC.timeOrigin):GC.timing.navigationStart};
  2525. sH=function(T,Q){ht("_start",T,Q)};
  2526. SK=function(T,Q){if(!g.hH("web_csi_action_sampling_enabled")||!ks(Q).actionDisabled){var k=gS(Q||"");Y_(k.info,T);T.loadType&&(k=T.loadType,lU(Q).loadType=k);Y_(PnH(Q),T);k=LG(Q);Q=ks(Q).cttAuthInfo;Ro().info(T,k,Q)}};
  2527. $hg=function(){var T,Q,k,l;return((l=r1().resolve(w1(qU))==null?void 0:(T=g7())==null?void 0:(Q=T.loggingHotConfig)==null?void 0:(k=Q.csiConfig)==null?void 0:k.debugTicks)!=null?l:[]).map(function(v){return Object.values(v)[0]})};
  2528. ht=function(T,Q,k){if(!g.hH("web_csi_action_sampling_enabled")||!ks(k).actionDisabled){var l=LG(k),v;if(v=g.hH("web_csi_debug_sample_enabled")&&l){(r1().resolve(w1(qU))==null?0:g7())&&!JFT&&(JFT=!0,ht("gcfl",(0,g.XY)(),k));var L,q,Y;v=(r1().resolve(w1(qU))==null?void 0:(L=g7())==null?void 0:(q=L.loggingHotConfig)==null?void 0:(Y=q.csiConfig)==null?void 0:Y.debugSampleWeight)||0;if(L=v!==0)b:{L=$hg();if(L.length>0)for(q=0;q<L.length;q++)if(T===L[q]){L=!0;break b}L=!1}L?(v=kLI(l)%v!==0,ks(k).debugTicksExcludedLogged||
  2529. (L={},L.debugTicksExcluded=v,SK(L,k)),ks(k).debugTicksExcludedLogged=!0):v=!1}if(!v){if(T[0]!=="_"&&(v=T,L=Q,GC.mark))if(v.startsWith("mark_")||(v="mark_"+v),k&&(v+=" ("+k+")"),L===void 0||g.hH("web_csi_disable_alt_time_performance_mark"))GC.mark(v);else{L=g.hH("csi_use_performance_navigation_timing")?L-GC.timeOrigin:L-(GC.timeOrigin||GC.timing.navigationStart);try{GC.mark(v,{startTime:L})}catch(U){}}v=gS(k||"");v.tick[T]=Q||(0,g.XY)();if(v.callback&&v.callback[T])for(v=g.B(v.callback[T]),L=v.next();!L.done;L=
  2530. v.next())L=L.value,L();v=vP(k);v.gelTicks&&(v.gelTicks[T]=!0);L=oo(k);v=Q||(0,g.XY)();g.hH("log_repeated_ytcsi_ticks")?T in L||(L[T]=v):L[T]=v;L=ks(k).cttAuthInfo;T==="_start"?(T=Ro(),fG(T,"baseline_"+l)||g.LM("latencyActionBaselined",{clientActionNonce:l},{timestamp:Q,cttAuthInfo:L})):Ro().tick(T,l,Q,L);epT(k);return v}}};
  2531. Fpg=function(){var T,Q=(T=GC.getEntriesByType)==null?void 0:T.call(GC,"mark");Q&&Q.forEach(function(k){if(k.name.startsWith("mark_")){var l;(l=GC.clearMarks)==null||l.call(GC,k.name)}})};
  2532. Enb=function(){switch(K_b()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
  2533. yFT=function(T){function Q(L,q,Y){q=q.match("_rid")?q.split("_rid")[0]:q;typeof Y==="number"&&(Y=JSON.stringify(Y));L.requestIds?L.requestIds.push({endpoint:q,id:Y}):L.requestIds=[{endpoint:q,id:Y}]}
  2534. var k={};T=g.B(Object.entries(T));for(var l=T.next();!l.done;l=T.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;switch(l){case "GetBrowse_rid":Q(k,l,v);break;case "GetGuide_rid":Q(k,l,v);break;case "GetHome_rid":Q(k,l,v);break;case "GetPlayer_rid":Q(k,l,v);break;case "GetSearch_rid":Q(k,l,v);break;case "GetSettings_rid":Q(k,l,v);break;case "GetTrending_rid":Q(k,l,v);break;case "GetWatchNext_rid":Q(k,l,v);break;case "yt_red":k.isRedSubscriber=!!v;break;case "yt_ad":k.isMonetized=!!v}}return k};
  2535. iMy=function(T,Q){T=document.querySelector(T);if(!T)return!1;var k="",l=T.nodeName;l==="SCRIPT"?(k=T.src,k||(k=T.getAttribute("data-timing-href"))&&(k=window.location.protocol+k)):l==="LINK"&&(k=T.href);mI(document)&&T.setAttribute("nonce",mI(document));return k?(T=GC.getEntriesByName(k))&&T[0]&&(T=T[0],k=Io(),ht("rsf_"+Q,k+Math.round(T.fetchStart)),ht("rse_"+Q,k+Math.round(T.responseEnd)),T.transferSize!==void 0&&T.transferSize===0)?!0:!1:!1};
  2536. VoX=function(){var T=window.location.protocol,Q=GC.getEntriesByType("resource");Q=g.bl(Q,function(k){return k.name.indexOf(T+"//fonts.gstatic.com/s/")===0});
  2537. (Q=so(Q,function(k,l){return l.duration>k.duration?l:k},{duration:0}))&&Q.startTime>0&&Q.responseEnd>0&&(ht("wffs",mB(Q.startTime)),ht("wffe",mB(Q.responseEnd)))};
  2538. T75=function(T,Q,k){GC&&GC.measure&&(T.startsWith("measure_")||(T="measure_"+T),k?GC.measure(T,Q,k):Q?GC.measure(T,Q):GC.measure(T))};
  2539. QKy=function(T){var Q=CG("aft",T);if(Q)return Q;Q=g.$i((T||"")+"TIMING_AFT_KEYS",["ol"]);for(var k=Q.length,l=0;l<k;l++){var v=CG(Q[l],T);if(v)return v}return NaN};
  2540. BP=function(T,Q){g.Tv("ytglobal.timing"+(Q||"")+"ready_",T)};
  2541. CG=function(T,Q){if(T=oo(Q)[T])return typeof T==="number"?T:T[T.length-1]};
  2542. epT=function(T){var Q=CG("_start",T),k=QKy(T),l=!jKH;Q&&k&&l&&(GP(kP6,new Ys(Math.round(k-Q),T)),jKH=!0)};
  2543. l2C=function(){if(GC.getEntriesByType){var T=GC.getEntriesByType("paint");if(T=g.sA(T,function(k){return k.name==="first-paint"}))return mB(T.startTime)}var Q;
  2544. g.hH("csi_use_performance_navigation_timing")?Q=GC.getEntriesByType("first-paint")[0].startTime:Q=GC.timing.FPd;return Q?Math.max(0,Q):0};
  2545. zC=function(T){Kp5(T);or6();Fpg();T||(g.$i("TIMING_ACTION")&&WN("PREVIOUS_ACTION",g.$i("TIMING_ACTION")),WN("TIMING_ACTION",""))};
  2546. vrX=function(){var T=["pbs","pbu"];g.E4(function(){gS("").info.actionType="watch";T&&WN("TIMING_AFT_KEYS",T);WN("TIMING_ACTION","watch");var Q=yFT(g.$i("TIMING_INFO",{}));Object.keys(Q).length>0&&SK(Q);Q={isNavigation:!0,actionType:ML(g.$i("TIMING_ACTION"))};var k=g.$i("PREVIOUS_ACTION");k&&(Q.previousAction=ML(k));if(k=g.$i("CLIENT_PROTOCOL"))Q.httpProtocol=k;if(k=g.$i("CLIENT_TRANSPORT"))Q.transportProtocol=k;(k=g.C9())&&k!=="UNDEFINED_CSN"&&(Q.clientScreenNonce=k);k=Enb();if(k===1||k===-1)Q.isVisible=
  2547. !0;k=lU().loadType==="cold";var l=xh5();k||(k=l.yt_lt==="cold");if(k){Q.loadType="cold";k=xh5();l=Wpy();var v=Io(),L=g.$i("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!g.hH("embeds_web_enable_csi_start_override_killswitch")&&(v=L);v&&(ht("srt",l.responseStart),k.prerender!==1&&sH(v));k=l2C();k>0&&ht("fpt",k);k=Wpy();k.isPerformanceNavigationTiming&&SK({performanceNavigationTiming:!0},void 0);ht("nreqs",k.requestStart,void 0);ht("nress",k.responseStart,void 0);ht("nrese",k.responseEnd,void 0);k.redirectEnd-
  2548. k.redirectStart>0&&(ht("nrs",k.redirectStart,void 0),ht("nre",k.redirectEnd,void 0));k.domainLookupEnd-k.domainLookupStart>0&&(ht("ndnss",k.domainLookupStart,void 0),ht("ndnse",k.domainLookupEnd,void 0));k.connectEnd-k.connectStart>0&&(ht("ntcps",k.connectStart,void 0),ht("ntcpe",k.connectEnd,void 0));k.secureConnectionStart>=Io()&&k.connectEnd-k.secureConnectionStart>0&&(ht("nstcps",k.secureConnectionStart,void 0),ht("ntcpe",k.connectEnd,void 0));GC&&"getEntriesByType"in GC&&VoX();k=[];if(document.querySelector&&
  2549. GC&&GC.getEntriesByName)for(var q in XP)XP.hasOwnProperty(q)&&(l=XP[q],iMy(q,l)&&k.push(l));if(k.length>0)for(Q.resourceInfo=[],q=g.B(k),k=q.next();!k.done;k=q.next())Q.resourceInfo.push({resourceCache:k.value})}SK(Q);Q=vP();Q.preLoggedGelInfos||(Q.preLoggedGelInfos=[]);q=Q.preLoggedGelInfos;Q=PnH();k=void 0;for(l=0;l<q.length;l++)if(v=q[l],v.loadType){k=v.loadType;break}if(lU().loadType==="cold"&&(Q.loadType==="cold"||k==="cold")){k=oo();l=vP();l=l.gelTicks?l.gelTicks:l.gelTicks={};for(var Y in k)if(!(Y in
  2550. l))if(typeof k[Y]==="number")ht(Y,CG(Y));else if(g.hH("log_repeated_ytcsi_ticks"))for(v=g.B(k[Y]),L=v.next();!L.done;L=v.next())ht(Y.slice(1),L.value);Y={};k=!1;q=g.B(q);for(l=q.next();!l.done;l=q.next())k=l.value,Y_(Q,k),Y_(Y,k),k=!0;k&&SK(Y)}BP(!0);Y=g.$i("TIMING_ACTION");g.jA("ytglobal.timingready_")&&Y&&wS()&&QKy()&&epT()})()};
  2551. L4T=function(){var T=T===void 0?{}:T;g.E4(function(){wS()&&dS("aa",void 0,void 0);toT();zC();BP(!1);T.cttAuthInfo&&(ks().cttAuthInfo=T.cttAuthInfo);WN("TIMING_AFT_KEYS",[]);T.tP6?g.NL({loadType:"hot"}):g.NL({loadType:"warm"});WN("TIMING_ACTION","");delete g.$i("TIMING_INFO",{}).yt_lt;g.E4(sH)(T.startTime,void 0)})()};
  2552. At=function(T,Q){Q=Q===void 0?{}:Q;g.E4(function(){qSt(T);var k=Q.sampleRate;if(!g.hH("web_csi_action_sampling_enabled")||k===void 0||k<=1)k=!1;else{var l=LG(T);k=kLI(l)%k!==0}k&&(ks(T).actionDisabled=!0);gS(T||"").info.actionType=T;Q.cttAuthInfo&&(ks(T).cttAuthInfo=Q.cttAuthInfo);WN(T+"TIMING_ACTION",T);g.E4(sH)(Q.startTime,T);k={actionType:ML(T)};Q.SEK&&(k.previousAction=ML(g.$i("TIMING_ACTION")));(l=g.C9())&&l!=="UNDEFINED_CSN"&&(k.clientScreenNonce=l);g.NL(k,T);BP(!0,T)})()};
  2553. qSt=function(T){g.E4(function(){wS(T)&&dS("aa",void 0,T);toT(T);zC(T)})()};
  2554. wS=function(T){return g.E4(function(){return bU("_start",T)})()};
  2555. g.NL=function(T,Q,k){g.E4(SK)(T,Q,k===void 0?!1:k)};
  2556. dS=function(T,Q,k){return g.E4(ht)(T,Q,k)};
  2557. grI=function(T){g.E4(T75)("action_finished",T,void 0)};
  2558. bU=function(T,Q){return g.E4(function(){var k=oo(Q);return T in k})()};
  2559. YS5=function(T){if(!g.hH("universal_csi_network_ticks"))return"";T=Zz(T)||"";for(var Q=Object.keys(Mz5),k=0;k<Q.length;k++){var l=Q[k];if(T.includes(l))return l}return""};
  2560. RAX=function(T){if(!g.hH("universal_csi_network_ticks"))return function(){};
  2561. var Q=Mz5[T];return Q?(rS(Q),function(){var k=g.hH("universal_csi_network_ticks")?(k=UU5[T])?rS(k):!1:!1;return k}):function(){}};
  2562. rS=function(T,Q,k){return g.E4(function(){if(bU(T,k))return!1;dS(T,Q,k);return!0})()};
  2563. cP=function(T,Q,k){g.E4(function(){if(!wS(k)||bU(T,k))return!1;dS(T,Q,k);return!0})()};
  2564. Zjg=function(){g.E4(function(){var T=LG();requestAnimationFrame(function(){setTimeout(function(){T===LG()&&dS("ftl",void 0,void 0)},0)})})()};
  2565. Dy=function(T,Q,k,l){this.SG=T;this.Kd=Q;this.T=k;this.Y=l;this.L=void 0;this.S=new Map;T.x6||(T.x6={});T.x6=Object.assign({},f2C,T.x6)};
  2566. GPu=function(T,Q,k,l){if(Dy.instance!==void 0){if(l=Dy.instance,T=[T!==l.SG,Q!==l.Kd,k!==l.T,!1,!1,!1,void 0!==l.L],T.some(function(v){return v}))throw new g.Wy("InnerTubeTransportService is already initialized",T);
  2567. }else Dy.instance=new Dy(T,Q,k,l)};
  2568. ao=function(T,Q,k){var l=l===void 0?US:l;var v=mUt(T,Q);return v?new g.rc(function(L,q){var Y,U,R,Z,f;return g.a(function(G){switch(G.S){case 1:return g.c(G,v,2);case 2:Y=G.T;U=Y.N(Q,k,l);if(!U){q(new g.Wy("Error: Failed to build request for command.",Q));G.Ym(0);break}H8(U.input);Z=((R=U.Om)==null?void 0:R.mode)==="cors"?"cors":void 0;if(T.T.T8){f=I2T(T,U.config,Z);G.Ym(4);break}return g.c(G,hAJ(T,U.config,Z),5);case 5:f=G.T;case 4:L(sK5(T,U,f)),g.BT(G)}})}):aS(new g.Wy("Error: No request builder found for command.",
  2569. Q))};
  2570. g.uU=function(T,Q,k,l,v){function L(){}
  2571. v=v===void 0?{gZ:{identity:US}}:v;var q=q===void 0?!0:q;L=RAX(YS5(k));Q.context||(Q.context=g.Ee(l,q));return new g.rc(function(Y){var U,R,Z,f,G;return g.a(function(m){if(m.S==1)return U=Kh(k),R=vD(U)?"same-origin":"cors",T.T.T8?(Z=I2T(T,v,R),m.Ym(2)):g.c(m,hAJ(T,v,R),3);m.S!=2&&(Z=m.T);f=Ib5(Kh(k));G={input:f,Om:x5(f),Ys:Q,config:v};Y(sK5(T,G,Z,L));g.BT(m)})})};
  2572. CMy=function(T,Q,k){var l;if(Q&&!(Q==null?0:(l=Q.sequenceMetaData)==null?0:l.skipProcessing)&&T.Y){l=g.B(SSg);for(var v=l.next();!v.done;v=l.next())v=v.value,T.Y[v]&&T.Y[v].handleResponse(Q,k)}};
  2573. sK5=function(T,Q,k,l){l=l===void 0?function(){}:l;
  2574. var v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ,g6,QC,A5,Et,QJ,I_,g$$;return g.a(function(cT){switch(cT.S){case 1:cT.Ym(2);break;case 3:if((v=cT.T)&&!v.isExpired())return cT.return(Promise.resolve(v.T()));case 2:if(!((L=Q)==null?0:(q=L.Ys)==null?0:q.context)){cT.Ym(4);break}Y=Q.Ys.context;cT.Ym(5);break;case 5:U=g.B([]),R=U.next();case 8:if(R.done){cT.Ym(4);break}Z=R.value;return g.c(cT,Z.j3d(Y),9);case 9:R=U.next();cT.Ym(8);break;case 4:if((f=T.L)==null||!f.TSK(Q.input,Q.Ys)){cT.Ym(12);break}return g.c(cT,
  2575. T.L.zCK(Q.input,Q.Ys),13);case 13:return G=cT.T,CMy(T,G,Q),cT.return(G);case 12:return(z=(I=Q.config)==null?void 0:I.Ib)&&T.S.has(z)?m=T.S.get(z):(w=JSON.stringify(Q.Ys),D=(A=(r=Q.Om)==null?void 0:r.headers)!=null?A:{},Q.Om=Object.assign({},Q.Om,{headers:Object.assign({},D,k)}),K=Object.assign({},Q.Om),Q.Om.method==="POST"&&(K=Object.assign({},K,{body:w})),((O=Q.config)==null?0:O.mLm)&&dS(Q.config.mLm),E=function(){return T.Kd.fetch(Q.input,K,Q.config)},m=E(),z&&T.S.set(z,m)),g.c(cT,m,14);
  2576. case 14:(e=cT.T)&&g.hH("web_streaming_player")&&Array.isArray(e)&&(e=e[0].playerResponse);if(e&&"error"in e&&((vT=e)==null?0:(f5=vT.error)==null?0:f5.details))for(qJ=e.error.details,g6=g.B(qJ),QC=g6.next();!QC.done;QC=g6.next())A5=QC.value,(Et=A5["@type"])&&B75.indexOf(Et)>-1&&(delete A5["@type"],e=A5);z&&T.S.has(z)&&T.S.delete(z);((QJ=Q.config)==null?0:QJ.Xk9)&&dS(Q.config.Xk9);if(e||(I_=T.L)==null||!I_.I6d(Q.input,Q.Ys)){cT.Ym(15);break}return g.c(cT,T.L.yYV(Q.input,Q.Ys),16);case 16:e=cT.T;case 15:return CMy(T,
  2577. e,Q),((g$$=Q.config)==null?0:g$$.MYH)&&dS(Q.config.MYH),l(),cT.return(e||void 0)}})};
  2578. mUt=function(T,Q){a:{T=T.SG;var k,l=(k=g.t(Q,bM6))==null?void 0:k.signal;if(l&&T.x6&&(k=T.x6[l])){var v=k();break a}var L;if((k=(L=g.t(Q,rF5))==null?void 0:L.request)&&T.Jc&&(L=T.Jc[k])){v=L();break a}for(v in Q)if(T.e$[v]&&(Q=T.e$[v])){v=Q();break a}v=void 0}if(v!==void 0)return Promise.resolve(v)};
  2579. hAJ=function(T,Q,k){var l,v,L,q,Y,U,R;return g.a(function(Z){if(Z.S==1){L=((l=Q)==null?void 0:(v=l.gZ)==null?void 0:v.identity)||US;U=(q=Q)==null?void 0:(Y=q.gZ)==null?void 0:Y.sessionIndex;var f=g.DT(T.T.LP(L,{sessionIndex:U}));return g.c(Z,f,2)}R=Z.T;return Z.return(Promise.resolve(Object.assign({},Dhy(k),R)))})};
  2580. I2T=function(T,Q,k){var l,v=(Q==null?void 0:(l=Q.gZ)==null?void 0:l.identity)||US,L;Q=Q==null?void 0:(L=Q.gZ)==null?void 0:L.sessionIndex;T=T.T.LP(v,{sessionIndex:Q});return Object.assign({},Dhy(k),T)};
  2581. nG=function(){};
  2582. KG=function(){};
  2583. xs=function(T){this.B=T};
  2584. PP=function(){};
  2585. HP=function(){};
  2586. tt=function(){};
  2587. OH=function(){};
  2588. g.pG=function(T,Q){var k=g.HT.apply(2,arguments);T=T===void 0?0:T;g.Wy.call(this,Q,k);this.errorType=T;Object.setPrototypeOf(this,this.constructor.prototype)};
  2589. WP=function(T,Q,k,l){this.T=T;this.S=Q;this.L=k;this.Y=l};
  2590. zAb=function(T,Q,k){if(T.T){var l=Zz(wy(Q,"key"))||"/UNKNOWN_PATH";T.T.start(l)}l=k;g.hH("wug_networking_gzip_request")&&(l=ObH(k));var v;return new ((v=T.Y)!=null?v:window.Request)(Q,l)};
  2591. g.Jt=function(T,Q){if(!$s){var k=r1();d1(k,{mj:Xlt,pT:WP});var l={e$:{feedbackEndpoint:iP(PP),modifyChannelNotificationPreferenceEndpoint:iP(HP),playlistEditEndpoint:iP(tt),shareEntityEndpoint:iP(xs),subscribeEndpoint:iP(nG),unsubscribeEndpoint:iP(KG),webPlayerShareEntityServiceEndpoint:iP(OH)}},v=F8.getInstance(),L={};v&&(L.client_location=v);T===void 0&&(T=y8t());Q===void 0&&(Q=k.resolve(Xlt));GPu(l,Q,T,L);d1(k,{mj:wlu,u3:Dy.instance});$s=k.resolve(wlu)}return $s};
  2592. dU6=function(T){var Q=new Up;if(T.interpreterJavascript){var k=DFy(T.interpreterJavascript);k=hi(k).toString();var l=new MS;xM(l,6,k);Ns(Q,MS,1,l,F1)}else T.interpreterUrl&&(k=Ce(T.interpreterUrl),k=jN(k).toString(),l=new Y2,xM(l,4,k),Ns(Q,Y2,2,l,F1));T.interpreterHash&&PS(Q,3,T.interpreterHash,F1);T.program&&PS(Q,4,T.program,F1);T.globalName&&PS(Q,5,T.globalName,F1);T.clientExperimentsStateBlob&&PS(Q,7,T.clientExperimentsStateBlob,F1);return Q};
  2593. eK=function(T){var Q={};T=T.split("&");T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value.split("="),k.length===2&&(Q[k[0]]=k[1]);return Q};
  2594. r7g=function(){if(g.hH("bg_st_hr"))return"havuokmhhs-0";var T,Q=((T=performance)==null?void 0:T.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Q)};
  2595. FP=function(T){this.T=T};
  2596. N7X=function(){return new Promise(function(T){var Q=window.top;Q.ntpevasrs!==void 0?T(new FP(Q.ntpevasrs)):(Q.ntpqfbel===void 0&&(Q.ntpqfbel=[]),Q.ntpqfbel.push(function(k){T(new FP(k))}))})};
  2597. rxb=function(){if(Qe()){var T=g.$i("PLAYER_VARS",{});if(g.ZW(T,"privembed",!1)!="1"&&!z15(T)){var Q=function(){EH=!0;"google_ad_status"in window?WN("DCLKSTAT",1):WN("DCLKSTAT",2)};
  2598. try{g.LZ(Axf,Q)}catch(k){}bj6.push(g.P0.oD(function(){if(!(EH||"google_ad_status"in window)){try{if(Axf.toString()&&Q){var k=""+g.qp(Q),l=BE5[k];l&&g.o$(l)}}catch(v){}EH=!0;WN("DCLKSTAT",3)}},5E3))}}};
  2599. yi=function(){var T=Number(g.$i("DCLKSTAT",0));return isNaN(T)?0:T};
  2600. Q8=function(T,Q,k){var l=this;this.network=T;this.options=Q;this.S=k;this.T=null;if(Q.xTd){var v=new g.Zb;this.T=v.promise;g.VC.ytAtRC&&F4(function(){var L,q;return g.a(function(Y){if(Y.S==1){if(!g.VC.ytAtRC)return Y.return();L=iU(null);return g.c(Y,Vi(l,L),2)}q=Y.T;g.VC.ytAtRC&&g.VC.ytAtRC(JSON.stringify(q));g.BT(Y)})},2);
  2601. N7X().then(function(L){var q,Y,U,R;return g.a(function(Z){if(Z.S==1)return L.bindInnertubeChallengeFetcher(function(f){return Vi(l,iU(f))}),g.c(Z,Ty(),2);
  2602. q=Z.T;Y=L.getLatestChallengeResponse();U=Y.challenge;if(!U)throw Error("BGE_MACIL");R={challenge:U,wA:eK(U),FI:q,bgChallenge:new Up};v.resolve(R);L.registerChallengeFetchedCallback(function(f){f=f.challenge;if(!f)throw Error("BGE_MACR");f={challenge:f,wA:eK(f),FI:q,bgChallenge:new Up};l.T=Promise.resolve(f)});
  2603. g.BT(Z)})})}else Q.preload&&cxu(this,new Promise(function(L){g.Er(0,function(){L(TU(l))},0)}))};
  2604. iU=function(T){var Q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};T&&(Q.interpreterHash=T);return Q};
  2605. TU=function(T,Q){Q=Q===void 0?0:Q;var k,l,v,L,q,Y,U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:k=iU(m_().T);if(g.hH("att_fet_ks"))return g.z5(I,7),g.c(I,Vi(T,k),9);g.z5(I,4);return g.c(I,DU5(T,k),6);case 6:q=I.T;v=q.VY9;L=q.wnm;l=q;g.d6(I,3);break;case 4:return g.by(I),g.rB(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),jZ(T,864E5),I.return({challenge:"",wA:{},FI:void 0,bgChallenge:void 0});case 9:l=I.T;if(!l)throw Error("Fetching Attestation challenge returned falsy");
  2606. if(!l.challenge)throw Error("Missing Attestation challenge");v=l.challenge;L=eK(v);if("c1a"in L&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.d6(I,3);break;case 7:Y=g.by(I);g.rB(Y);Q++;if(Q>=5)return g.rB(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),jZ(T,864E5),I.return({challenge:"",wA:{},FI:void 0,bgChallenge:void 0});U=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return I.return(new Promise(function(z){g.Er(0,
  2607. function(){z(TU(T,Q))},U)}));
  2608. case 3:R=Number(L.t)||7200;jZ(T,R*1E3);Z=void 0;if(!("c1a"in L&&l.bgChallenge)){I.Ym(10);break}f=dU6(l.bgChallenge);g.z5(I,11);return g.c(I,ro6(m_(),f),13);case 13:g.d6(I,12);break;case 11:return G=g.by(I),g.rB(G),I.return({challenge:v,wA:L,FI:Z,bgChallenge:f});case 12:return g.z5(I,14),Z=new fi({challenge:f,uA:{XJ:"aGIf"}}),g.c(I,Z.S5,16);case 16:g.d6(I,10);break;case 14:m=g.by(I),g.rB(m),Z=void 0;case 10:return I.return({challenge:v,wA:L,FI:Z,bgChallenge:f})}})};
  2609. Vi=function(T,Q){var k;return g.a(function(l){k=T.S;if(!k||k.In())return l.return(Vi(T.network,Q));cP("att_pna",void 0,"attestation_challenge_fetch");return l.return(new Promise(function(v){k.XC("publicytnetworkstatus-online",function(){Vi(T.network,Q).then(v)})}))})};
  2610. a2b=function(T){if(!T)throw Error("Fetching Attestation challenge returned falsy");if(!T.challenge)throw Error("Missing Attestation challenge");var Q=T.challenge,k=eK(Q);if("c1a"in k&&(!T.bgChallenge||!T.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},T,{VY9:Q,wnm:k})};
  2611. DU5=function(T,Q){var k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:k=void 0,l=0,v={};case 2:if(!(l<5)){Y.Ym(4);break}if(!(l>0)){Y.Ym(5);break}v.bP=1E3*Math.pow(2,l-1)+Math.random()*1E3;return g.c(Y,new Promise(function(U){return function(R){g.Er(0,function(){R(void 0)},U.bP)}}(v)),5);
  2612. case 5:return g.z5(Y,7),g.c(Y,Vi(T,Q),9);case 9:return L=Y.T,Y.return(a2b(L));case 7:k=q=g.by(Y),q instanceof Error&&g.rB(q);case 8:l++;v={bP:void 0};Y.Ym(2);break;case 4:throw k;}})};
  2613. cxu=function(T,Q){T.T=Q};
  2614. uhg=function(T){var Q,k,l;return g.a(function(v){if(v.S==1)return g.c(v,Promise.race([T.T,null]),2);Q=v.T;var L=TU(T);T.T=L;(k=Q)==null||(l=k.FI)==null||l.dispose();g.BT(v)})};
  2615. jZ=function(T,Q){function k(){var v;return g.a(function(L){v=l-Date.now();return v<1E3?g.c(L,uhg(T),0):(F4(k,0,Math.min(v,6E4)),L.Ym(0))})}
  2616. var l=Date.now()+Q;k()};
  2617. nrI=function(T,Q){return new Promise(function(k){g.Er(0,function(){k(Q())},T)})};
  2618. g.K45=function(T,Q){var k;return g.a(function(l){var v=g.jA("yt.aba.att");return(k=v?v:Q8.instance!==void 0?Q8.instance.L.bind(Q8.instance):null)?l.return(k("ENGAGEMENT_TYPE_PLAYBACK",T,Q)):l.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
  2619. g.xUC=function(){var T;return(T=(T=g.jA("yt.aba.att2"))?T:Q8.instance!==void 0?Q8.instance.Y.bind(Q8.instance):null)?T():Promise.resolve(!1)};
  2620. Hj5=function(T,Q){var k=g.jA("ytDebugData.callbacks");k||(k={},g.Tv("ytDebugData.callbacks",k));if(g.hH("web_dd_iu")||PMC.includes(T))k[T]=Q};
  2621. kl=function(){var T=tz5;var Q=Q===void 0?[]:Q;var k=k===void 0?[]:k;Q=dFC.apply(null,[Ncu.apply(null,g.ZH(Q))].concat(g.ZH(k)));this.store=bLX(T,void 0,Q)};
  2622. g.l3=function(T,Q,k){for(var l=Object.assign({},T),v=g.B(Object.keys(Q)),L=v.next();!L.done;L=v.next()){L=L.value;var q=T[L],Y=Q[L];if(Y===void 0)delete l[L];else if(q===void 0)l[L]=Y;else if(Array.isArray(Y)&&Array.isArray(q))l[L]=k?[].concat(g.ZH(q),g.ZH(Y)):Y;else if(!Array.isArray(Y)&&g.vm(Y)&&!Array.isArray(q)&&g.vm(q))l[L]=g.l3(q,Y,k);else if(typeof Y===typeof q)l[L]=Y;else return Q=new g.Wy("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:L,Bv_:q,updateValue:Y}),g.bA(Q),
  2623. T}return l};
  2624. oV=function(T){var Q=this;T=T===void 0?[]:T;this.T=[];this.L=this.S=0;this.Y=void 0;this.totalLength=0;T.forEach(function(k){Q.append(k)})};
  2625. Oj5=function(T,Q){return T.T.length===0?!1:(T=T.T[T.T.length-1])&&T.buffer===Q.buffer&&T.byteOffset+T.length===Q.byteOffset};
  2626. v3=function(T,Q){Q=g.B(Q.T);for(var k=Q.next();!k.done;k=Q.next())T.append(k.value)};
  2627. Lx=function(T,Q,k){return T.split(Q).ow.split(k).Rz};
  2628. qg=function(T){T.Y=void 0;T.S=0;T.L=0};
  2629. g5=function(T,Q,k){T.isFocused(Q);return Q-T.L+k<=T.T[T.S].length};
  2630. plJ=function(T){if(!T.Y){var Q=T.T[T.S];T.Y=new DataView(Q.buffer,Q.byteOffset,Q.length)}return T.Y};
  2631. W4f=function(T,Q,k){Q=Q===void 0?0:Q;k=k===void 0?-1:k;if(!T.totalLength||!k)return new DataView(new ArrayBuffer(0));k<0&&(k=T.totalLength-Q);T.focus(Q);if(!g5(T,Q,k)){var l=T.S,v=T.L;T.focus(Q+k-1);v=new Uint8Array(T.L+T.T[T.S].length-v);for(var L=0,q=l;q<=T.S;q++)v.set(T.T[q],L),L+=T.T[q].length;T.T.splice(l,T.S-l+1,v);qg(T);T.focus(Q)}l=T.T[T.S];return new DataView(l.buffer,l.byteOffset+Q-T.L,k)};
  2632. Mg=function(T,Q,k){T=W4f(T,Q===void 0?0:Q,k===void 0?-1:k);return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)};
  2633. Yl=function(T,Q,k){T=Mg(T,Q===void 0?0:Q,k===void 0?-1:k);Q=new Uint8Array(T.length);try{Q.set(T)}catch(l){for(k=0;k<T.length;k++)Q[k]=T[k]}return Q};
  2634. Uj=function(T,Q){T.focus(Q);return T.T[T.S][Q-T.L]};
  2635. $Uu=function(T,Q){T.focus(Q);return g5(T,Q,4)?plJ(T).getUint32(Q-T.L):256*(256*(256*Uj(T,Q)+Uj(T,Q+1))+Uj(T,Q+2))+Uj(T,Q+3)};
  2636. Jx5=function(T){for(var Q=new Uint8Array(T.length),k=0;k<T.length;k++)Q[k]=T.charCodeAt(k);return Q};
  2637. ZC=function(T){return T.length?RV?RV.decode(T):String.fromCharCode.apply(null,T):""};
  2638. g.GU=function(T){if(!T.length)return"";try{if(RV)return RV.decode(T);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(T)}catch(q){}for(var Q=0,k=[],l=T.length;Q<l;){for(var v=0;v<1024&&Q<l;){var L=T[Q++];if(L<128)fx[v++]=L;else{if(L<224)L=(L&31)<<6|T[Q++]&63;else if(L<240)L=(L&15)<<12|(T[Q++]&63)<<6|T[Q++]&63;else{if(v+1===1024){--Q;break}L=(L&7)<<18|(T[Q++]&63)<<12|(T[Q++]&63)<<6|T[Q++]&63;L-=65536;fx[v++]=55296|L>>10;L=56320|L&1023}fx[v++]=L}}L=String.fromCharCode.apply(String,fx);
  2639. v<1024&&(L=L.substring(0,v));k.push(L)}return k.join("")};
  2640. IV=function(T,Q){var k;if((k=mQ)==null?0:k.encodeInto)return Q=mQ.encodeInto(T,Q),Q.read<T.length?T.length*4:Q.written;for(var l=k=0;l<T.length;l++){var v=T.charCodeAt(l);v<128?Q[k++]=v:(v<2048?Q[k++]=v>>6|192:((v&64512)===55296&&l+1<T.length&&(T.charCodeAt(l+1)&64512)===56320?(v=65536+((v&1023)<<10)+(T.charCodeAt(++l)&1023),Q[k++]=v>>18|240,Q[k++]=v>>12&63|128):Q[k++]=v>>12|224,Q[k++]=v>>6&63|128),Q[k++]=v&63|128)}return k};
  2641. hl=function(T){if(mQ)return mQ.encode(T);var Q=new Uint8Array(Math.ceil(T.length*1.2)),k=IV(T,Q);Q.length<k&&(Q=new Uint8Array(k),k=IV(T,Q));Q.length>k&&(Q=Q.subarray(0,k));return Q};
  2642. sj=function(T){this.T=T;this.pos=0;this.S=-1};
  2643. SZ=function(T){var Q=Uj(T.T,T.pos);++T.pos;if(Q<128)return Q;for(var k=Q&127,l=1;Q>=128;)Q=Uj(T.T,T.pos),++T.pos,l*=128,k+=(Q&127)*l;return k};
  2644. Cx=function(T,Q){var k=T.S;for(T.S=-1;T.pos+1<=T.T.totalLength;){k<0&&(k=SZ(T));var l=k>>3,v=k&7;if(l===Q)return!0;if(l>Q){T.S=k;break}k=-1;switch(v){case 0:SZ(T);break;case 1:T.pos+=8;break;case 2:l=SZ(T);T.pos+=l;break;case 5:T.pos+=4}}return!1};
  2645. B3=function(T,Q){if(Cx(T,Q))return SZ(T)};
  2646. eAT=function(T,Q){if(Cx(T,Q))return Q=Mg(T.T,T.pos,8),T.pos+=8,(new DataView(Q.buffer,Q.byteOffset,Q.byteLength)).getFloat64(0,!0)};
  2647. zU=function(T,Q){if(Cx(T,Q))return!!SZ(T)};
  2648. X0=function(T,Q){if(Cx(T,Q)){Q=SZ(T);var k=Mg(T.T,T.pos,Q);T.pos+=Q;return k}};
  2649. w5=function(T,Q){if(T=X0(T,Q))return g.GU(T)};
  2650. d5=function(T,Q,k){if(T=X0(T,Q))return k(new sj(new oV([T])))};
  2651. Ng=function(T,Q){for(var k=[];Cx(T,Q);)k.push(SZ(T));return k.length?k:void 0};
  2652. Al=function(T,Q,k){for(var l=[],v;v=X0(T,Q);)l.push(k(new sj(new oV([v]))));return l.length?l:void 0};
  2653. b3=function(T,Q){T=T instanceof Uint8Array?new oV([T]):T;return Q(new sj(T))};
  2654. F45=function(T,Q){T=new Uint8Array(T);Q&&T.set(Q);return T};
  2655. Er5=function(T){this.pos=0;this.S=[];this.T=F45(T===void 0?4096:T);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)};
  2656. tl=function(T,Q){Q=T.pos+Q;if(!(T.T.length>=Q)){for(var k=T.T.length*2;k<Q;)k*=2;T.T=F45(k,T.T.subarray(0,T.pos));T.view=new DataView(T.T.buffer,T.T.byteOffset,T.T.byteLength)}};
  2657. Oj=function(T,Q){if(Q>268435455){tl(T,4);for(var k=Q&1073741823,l=0;l<4;l++)T.view.setUint8(T.pos,k&127|128),k>>=7,T.pos+=1;Q=Math.floor(Q/268435456)}for(tl(T,4);Q>127;)T.view.setUint8(T.pos,Q&127|128),Q>>=7,T.pos+=1;T.view.setUint8(T.pos,Q);T.pos+=1};
  2658. px=function(T,Q,k){k!==void 0&&(Oj(T,Q*8),Oj(T,k))};
  2659. W3=function(T,Q,k){k!==void 0&&px(T,Q,k?1:0)};
  2660. $l=function(T,Q,k){k!==void 0&&(Oj(T,Q*8+2),Q=k.length,Oj(T,Q),tl(T,Q),T.T.set(k,T.pos),T.pos+=Q)};
  2661. Jl=function(T,Q,k){k!==void 0&&(yxg(T,Q,Math.ceil(Math.log2(k.length*4+2)/7)),tl(T,k.length*1.2),Q=IV(k,T.T.subarray(T.pos)),T.pos+Q>T.T.length&&(tl(T,Q),Q=IV(k,T.T.subarray(T.pos))),T.pos+=Q,ijI(T))};
  2662. yxg=function(T,Q,k){k=k===void 0?2:k;Oj(T,Q*8+2);T.S.push(T.pos);T.S.push(k);T.pos+=k};
  2663. ijI=function(T){for(var Q=T.S.pop(),k=T.S.pop(),l=T.pos-k-Q;Q--;){var v=Q?128:0;T.view.setUint8(k++,l&127|v);l>>=7}};
  2664. eZ=function(T,Q,k,l,v){k&&(yxg(T,Q,v===void 0?3:v),l(T,k),ijI(T))};
  2665. g.F0=function(T,Q){var k=new Er5(4096);Q(k,T);return new Uint8Array(k.T.buffer,k.T.byteOffset,k.pos)};
  2666. g.Ej=function(T){var Q=new sj(new oV([Am(decodeURIComponent(T))]));T=w5(Q,2);Q=B3(Q,4);var k=VzX[Q];if(typeof k==="undefined")throw T=new g.Wy("Failed to recognize field number",{name:"EntityKeyHelperError",xAj:Q}),g.bA(T),T;return{Su:Q,entityType:k,entityId:T}};
  2667. g.y8=function(T,Q){var k=k===void 0?0:k;var l=new Er5;$l(l,2,hl(T));T=T1T[Q];if(typeof T==="undefined")throw k=new g.Wy("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Q}),g.bA(k),k;px(l,4,T);px(l,5,1);Q=new Uint8Array(l.T.buffer,l.T.byteOffset,l.pos);return encodeURIComponent(g.dJ(Q,k))};
  2668. i3=function(T,Q,k,l){if(l===void 0)return l=Object.assign({},T[Q]||{}),k=(delete l[k],l),l={},Object.assign({},T,(l[Q]=k,l));var v={},L={};return Object.assign({},T,(L[Q]=Object.assign({},T[Q],(v[k]=l,v)),L))};
  2669. Q$b=function(T,Q,k,l,v){var L=T[Q];if(L==null||!L[k])return T;l=g.l3(L[k],l,v==="REPEATED_FIELDS_MERGE_OPTION_APPEND");v={};L={};return Object.assign({},T,(L[Q]=Object.assign({},T[Q],(v[k]=l,v)),L))};
  2670. j$y=function(T,Q){T=T===void 0?{}:T;switch(Q.type){case "ENTITY_LOADED":return Q.payload.reduce(function(l,v){var L,q=(L=v.options)==null?void 0:L.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return l;if(!v.entityKey)return g.bA(Error("Missing entity key")),l;if(v.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!v.payload)return v=new g.Wy("REPLACE entity mutation is missing a payload",{entityKey:v.entityKey}),g.bA(v),l;var Y=g.kZ(v.payload);
  2671. return i3(l,Y,v.entityKey,v.payload[Y])}if(v.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{v=v.entityKey;try{var U=g.Ej(v).entityType;Y=i3(l,U,v);break a}catch(f){if(f instanceof Error){v=new g.Wy("Failed to deserialize entity key",{entityKey:v,originalMessage:f.message});g.bA(v);Y=l;break a}throw f;}Y=void 0}return Y}if(v.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!v.payload)return v=new g.Wy("UPDATE entity mutation is missing a payload",{entityKey:v.entityKey}),g.bA(v),l;Y=g.kZ(v.payload);var R,Z;return Q$b(l,
  2672. Y,v.entityKey,v.payload[Y],(R=v.fieldMask)==null?void 0:(Z=R.mergeOptions)==null?void 0:Z.repeatedFieldsMergeOption)}return l},T);
  2673. case "REPLACE_ENTITY":var k=Q.payload;return i3(T,k.entityType,k.key,k.To);case "REPLACE_ENTITIES":return Object.keys(Q.payload).reduce(function(l,v){var L=Q.payload[v];return Object.keys(L).reduce(function(q,Y){return i3(q,v,Y,L[Y])},l)},T);
  2674. case "UPDATE_ENTITY":return k=Q.payload,Q$b(T,k.entityType,k.key,k.To,k.EQH);default:return T}};
  2675. V8=function(T,Q,k){return T[Q]?T[Q][k]||null:null};
  2676. TF=function(T){return window.Int32Array?new Int32Array(T):Array(T)};
  2677. vQ=function(T){g.x.call(this);this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.T=16;if(!kA6){var Q,k=new Uint8Array(256),l=new Uint8Array(256);var v=1;for(Q=0;Q<256;Q++)k[v]=Q,l[Q]=v,v^=v<<1^(v>>7&&283);Qj=new Uint8Array(256);j6=TF(256);kt=TF(256);lb=TF(256);oW=TF(256);for(var L=0;L<256;L++){v=L?l[255^k[L]]:0;v^=v<<1^v<<2^v<<3^v<<4;v=v&255^v>>>8^99;Qj[L]=v;Q=v<<1^(v>>7&&283);var q=Q^v;j6[L]=Q<<24|v<<16|v<<8|q;kt[L]=q<<24|j6[L]>>>8;lb[L]=v<<24|kt[L]>>>8;oW[L]=v<<24|lb[L]>>>8}kA6=!0}v=TF(44);for(k=
  2678. 0;k<4;k++)v[k]=T[4*k]<<24|T[4*k+1]<<16|T[4*k+2]<<8|T[4*k+3];for(l=1;k<44;k++)T=v[k-1],k%4||(T=(Qj[T>>16&255]^l)<<24|Qj[T>>8&255]<<16|Qj[T&255]<<8|Qj[T>>>24],l=l<<1^(l>>7&&283)),v[k]=v[k-4]^T;this.key=v};
  2679. lZ5=function(T){for(var Q=T.key,k=T.counter[0]^Q[0],l=T.counter[1]^Q[1],v=T.counter[2]^Q[2],L=T.counter[3]^Q[3],q=3;q>=0&&!(T.counter[q]=-~T.counter[q]);q--);for(var Y,U,R=4;R<40;)q=j6[k>>>24]^kt[l>>16&255]^lb[v>>8&255]^oW[L&255]^Q[R++],Y=j6[l>>>24]^kt[v>>16&255]^lb[L>>8&255]^oW[k&255]^Q[R++],U=j6[v>>>24]^kt[L>>16&255]^lb[k>>8&255]^oW[l&255]^Q[R++],L=j6[L>>>24]^kt[k>>16&255]^lb[l>>8&255]^oW[v&255]^Q[R++],k=q,l=Y,v=U;T=T.S;q=Q[40];T[0]=Qj[k>>>24]^q>>>24;T[1]=Qj[l>>16&255]^q>>16&255;T[2]=Qj[v>>8&255]^
  2680. q>>8&255;T[3]=Qj[L&255]^q&255;q=Q[41];T[4]=Qj[l>>>24]^q>>>24;T[5]=Qj[v>>16&255]^q>>16&255;T[6]=Qj[L>>8&255]^q>>8&255;T[7]=Qj[k&255]^q&255;q=Q[42];T[8]=Qj[v>>>24]^q>>>24;T[9]=Qj[L>>16&255]^q>>16&255;T[10]=Qj[k>>8&255]^q>>8&255;T[11]=Qj[l&255]^q&255;q=Q[43];T[12]=Qj[L>>>24]^q>>>24;T[13]=Qj[k>>16&255]^q>>16&255;T[14]=Qj[l>>8&255]^q>>8&255;T[15]=Qj[v&255]^q&255};
  2681. gG=function(){if(!LT&&!g.$n){if(q9)return q9;var T;q9=(T=window.crypto)==null?void 0:T.subtle;var Q,k,l;if(((Q=q9)==null?0:Q.importKey)&&((k=q9)==null?0:k.sign)&&((l=q9)==null?0:l.encrypt))return q9;q9=void 0}};
  2682. g.Ua=function(T){var Q=gG();Q&&(this.T=new M9(T,Q));this.S=new g.Yt(T)};
  2683. M9=function(T,Q){this.S=T;this.subtleCrypto=Q};
  2684. o_g=function(T,Q,k){var l,v;return g.a(function(L){switch(L.S){case 1:if(T.T){L.Ym(2);break}return g.c(L,T.subtleCrypto.importKey("raw",T.S,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:T.T=L.T;case 2:return l={name:"AES-CTR",counter:k,length:128},g.c(L,T.subtleCrypto.encrypt(l,T.T,Q),4);case 4:return v=L.T,L.return(new Uint8Array(v))}})};
  2685. g.Yt=function(T){this.S=T};
  2686. RW=function(T){this.N=new Uint8Array(64);this.L=new Uint8Array(64);this.Y=0;this.B=new Uint8Array(64);this.S=0;this.N.set(T);this.L.set(T);for(T=0;T<64;T++)this.N[T]^=92,this.L[T]^=54;this.reset()};
  2687. v_H=function(T,Q,k){for(var l=T.C,v=T.T[0],L=T.T[1],q=T.T[2],Y=T.T[3],U=T.T[4],R=T.T[5],Z=T.T[6],f=T.T[7],G,m,I,z=0;z<64;)z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=f+Zn[z]+I+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&R^~U&Z),m=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&L^v&q^L&q),f=G+m,Y+=G,z++,z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=
  2688. l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=Z+Zn[z]+I+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&U^~Y&R),m=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&v^f&L^v&L),Z=G+m,q+=G,z++,z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=R+Zn[z]+I+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&Y^
  2689. ~q&U),m=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&f^Z&v^f&v),R=G+m,L+=G,z++,z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=U+Zn[z]+I+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&q^~L&Y),m=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&Z^R&f^Z&f),I=f,f=Y,Y=I,I=Z,Z=q,q=I,I=R,R=L,L=I,U=v+G,v=G+m,z++;T.T[0]=v+T.T[0]|0;T.T[1]=L+T.T[1]|0;T.T[2]=q+T.T[2]|0;T.T[3]=
  2690. Y+T.T[3]|0;T.T[4]=U+T.T[4]|0;T.T[5]=R+T.T[5]|0;T.T[6]=Z+T.T[6]|0;T.T[7]=f+T.T[7]|0};
  2691. qqT=function(T){var Q=new Uint8Array(32),k=64-T.S;T.S>55&&(k+=64);var l=new Uint8Array(k);l[0]=128;for(var v=T.Y*8,L=1;L<9;L++){var q=v%256;l[k-L]=q;v=(v-q)/256}T.update(l);for(k=0;k<8;k++)Q[k*4]=T.T[k]>>>24,Q[k*4+1]=T.T[k]>>>16&255,Q[k*4+2]=T.T[k]>>>8&255,Q[k*4+3]=T.T[k]&255;Lbt(T);return Q};
  2692. Lbt=function(T){T.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];T.C=[];T.C.length=64;T.Y=0;T.S=0};
  2693. g_g=function(T){this.T=T};
  2694. MVg=function(T,Q,k){T=new RW(T.T);T.update(Q);T.update(k);Q=qqT(T);T.update(T.N);T.update(Q);Q=qqT(T);T.reset();return Q};
  2695. YqC=function(T){this.S=T};
  2696. UEt=function(T,Q,k,l){var v,L,q;return g.a(function(Y){switch(Y.S){case 1:if(T.T){Y.Ym(2);break}return g.c(Y,l.importKey("raw",T.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:T.T=Y.T;case 2:return v=new Uint8Array(Q.length+k.length),v.set(Q),v.set(k,Q.length),L={name:"HMAC",hash:"SHA-256"},g.c(Y,l.sign(L,T.T,v),4);case 4:return q=Y.T,Y.return(new Uint8Array(q))}})};
  2697. RZg=function(T,Q,k){T.L||(T.L=new g_g(T.S));return MVg(T.L,Q,k)};
  2698. ZZ6=function(T,Q,k){var l,v;return g.a(function(L){if(L.S==1){l=gG();if(!l)return L.return(RZg(T,Q,k));g.z5(L,3);return g.c(L,UEt(T,Q,k,l),5)}if(L.S!=3)return L.return(L.T);v=g.by(L);g.rB(v);LT=!0;return L.return(RZg(T,Q,k))})};
  2699. GAX=function(T){for(var Q="",k=0;k<T.length;k++){var l=T[k];if(k===0)l="M "+l.x.toFixed(1)+","+l.y.toFixed(1);else{var v=fZ5(T[k-1],T[k-2],l),L=fZ5(l,T[k-1],T[k+1],!0);l=" C "+(v.x.toFixed(1)+","+v.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1)+" "+l.x.toFixed(1)+","+l.y.toFixed(1))}Q+=l}return Q};
  2700. fZ5=function(T,Q,k,l){l=l===void 0?!1:l;Q=new mEt(Q||T,k||T);return{x:T.x+((l===void 0?0:l)?Q.T*-1:Q.T)*.2,y:T.y+((l===void 0?0:l)?Q.S*-1:Q.S)*.2}};
  2701. mEt=function(T,Q){this.S=this.T=0;this.T=Q.x-T.x;this.S=Q.y-T.y};
  2702. s$b=function(T,Q){var k,l,v;return g.a(function(L){if(L.S==1)return k={context:g.Ee(),settingItemIds:Q},l=g.Vr(IZ5),g.c(L,g.uU(T,k,l),2);v=L.T;return!v||v.errorMetadata?(hZ6("GetSettingValuesRequest",v),L.return(void 0)):L.return(v.settingValues)})};
  2703. Cvy=function(T,Q,k){var l,v,L;g.a(function(q){if(q.S==1)return l={context:g.Ee(),settingItemId:Q,newValue:k},v=g.Vr(Squ),g.c(q,g.uU(T,l,v),2);L=q.T;if(!L||L.errorMetadata)return hZ6("SetSettingRequest",L),q.return(void 0);g.BT(q)})};
  2704. hZ6=function(T,Q){Q?Q.errorMetadata&&g.rB(new g.Wy(T+" failed with status "+Q.errorMetadata.status)):g.rB(new g.Wy(T+" failed with empty response"))};
  2705. B1b=function(T){return Bf(T,0,"gclid",T.search(zg))>=0||Bf(T,0,"gad_source",T.search(zg))>=0};
  2706. zZC=function(){this.T=new Map};
  2707. wdH=function(T,Q){var k=r1().resolve(Xdb);if(B1b(Q)){var l=X6(Q,"gclid");Q={handleEvent:function(Y){T&&!T.closed&&typeof T.postMessage==="function"&&Y&&Y.origin&&Y.source===T&&Y.data&&Y.data.action==="gcl_setup"&&T.postMessage(Object.assign({},{action:"gcl_transfer"},l&&{gclid:l},{gadSource:2}),Y.origin)}};
  2708. for(var v=g.B(k.T),L=v.next();!L.done;L=v.next()){var q=g.B(L.value);L=q.next().value;q=q.next().value;if(L.closed)try{window.removeEventListener("message",q),k.T.delete(L)}catch(Y){g.bA(Y)}}T&&k.T.size<15&&(k.T.set(T,Q),window.addEventListener("message",Q))}};
  2709. fT=function(T,Q,k){if(!Q)return T.length>=1?T[T.length-1]:null;for(var l=g.B(T),v=l.next();!v.done;v=l.next())if(v=v.value,v.width&&v.height&&(k&&v.width>=Q||!k&&v.height>=Q))return v;for(Q=T.length-1;Q>=0;Q--)if(k&&T[Q].width||!k&&T[Q].height)return T[Q];return T[0]};
  2710. GF=function(){this.state=1;this.FI=null;this.fz=void 0};
  2711. N15=function(T,Q,k,l,v,L){var q=q===void 0?"trayride":q;k?(T.OH(2),g.LZ(g.BN(k),function(){if(window[q])dEb(T,l,q,v);else{T.OH(3);var Y=CKf(k),U=document.getElementById(Y);U&&(sb6(Y),U.parentNode.removeChild(U));g.rB(new g.Wy("BL:ULB",""+k))}},L)):Q?(L=g.fO("SCRIPT"),Q instanceof IT?(L.textContent=hi(Q),sk(L)):L.textContent=Q,L.nonce=mI(document),document.head.appendChild(L),document.head.removeChild(L),window[q]?dEb(T,l,q,v):(T.OH(4),g.rB(new g.Wy("BL:ULBJ")))):g.rB(new g.Wy("BL:ULV"))};
  2712. dEb=function(T,Q,k,l){T.OH(5);var v=!!T.fz&&AuX.includes(g.Rq(T.fz)||"");try{var L=new fi({program:Q,globalName:k,uA:{disable:!g.hH("att_web_record_metrics")||!g.hH("att_skip_metrics_for_cookieless_domains_ks")&&v,XJ:"aGIf"}});L.S5.then(function(){T.OH(6);l&&l(Q)});
  2713. T.t2(L)}catch(q){T.OH(7),q instanceof Error&&g.rB(q)}};
  2714. mS=function(){var T=g.jA("yt.abuse.playerAttLoader");return T&&["bgvma","bgvmb","bgvmc"].every(function(Q){return Q in T})?T:null};
  2715. IW=function(){GF.apply(this,arguments)};
  2716. h6=function(){};
  2717. bZt=function(T,Q,k){for(var l=!1,v=g.B(T.sF.entries()),L=v.next();!L.done;L=v.next())L=g.B(L.value).next().value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.Ik==="core"&&(l=!0);if(l){a:if(!k){T=g.B(T.sF.entries());for(k=T.next();!k.done;k=T.next())if(l=g.B(k.value),k=l.next().value,l=l.next().value,k.slotType==="SLOT_TYPE_IN_PLAYER"&&k.Ik==="core"){k=l.layoutId;break a}k=void 0}k?Q.xO(k):MH("No triggering layout ID available when attempting to mute.")}};
  2718. sa=function(T,Q){this.O1=T;this.c5=Q};
  2719. S6=function(){};
  2720. CT=function(){};
  2721. cuy=function(T){g.x.call(this);var Q=this;this.yp=T;this.T=new Map;BQ(this,"commandExecutorCommand",function(k,l,v){ruJ(Q,k.commands,l,v)});
  2722. BQ(this,"clickTrackingParams",function(){})};
  2723. DEy=function(T,Q){BQ(T,Q.CS(),function(k,l,v){Q.Gm(k,l,v)})};
  2724. BQ=function(T,Q,k){T.wd();T.T.get(Q)&&g.bA(Error("Extension name "+Q+" already registered"));T.T.set(Q,k)};
  2725. ruJ=function(T,Q,k,l){Q=Q===void 0?[]:Q;T.wd();var v=[],L=[];Q=g.B(Q);for(var q=Q.next();!q.done;q=Q.next())q=q.value,g.t(q,aZy)||g.t(q,urC)?v.push(q):L.push(q);v=g.B(v);for(Q=v.next();!Q.done;Q=v.next())zF(T,Q.value,k,l);L=g.B(L);for(v=L.next();!v.done;v=L.next())zF(T,v.value,k,l)};
  2726. zF=function(T,Q,k,l){T.wd();Q.loggingUrls&&n_C(T,"loggingUrls",Q.loggingUrls,k,l);Q=g.B(Object.entries(Q));for(var v=Q.next();!v.done;v=Q.next()){var L=g.B(v.value);v=L.next().value;L=L.next().value;v==="openPopupAction"?T.yp.get().bu("innertubeCommand",{openPopupAction:L}):v==="confirmDialogEndpoint"?T.yp.get().bu("innertubeCommand",{confirmDialogEndpoint:L}):Kbt.hasOwnProperty(v)||n_C(T,v,L,k,l)}};
  2727. n_C=function(T,Q,k,l,v){if((T=T.T.get(Q))&&typeof T==="function")try{T(k,l,v)}catch(L){g.bA(L)}else Q=new g.Wy("Unhandled field",Q),g.rB(Q)};
  2728. X2=function(T,Q,k){this.Fj=T;this.T=Q;this.Vq=k;d1(r1(),{mj:Xdb,pT:zZC})};
  2729. wG=function(T){this.value=T};
  2730. dG=function(T){this.value=T};
  2731. N9=function(T){this.value=T};
  2732. A6=function(T){this.value=T};
  2733. bb=function(T){this.value=T};
  2734. rG=function(T){this.value=T};
  2735. cQ=function(T){this.value=T};
  2736. Dn=function(){wG.apply(this,arguments)};
  2737. aW=function(T){this.value=T};
  2738. ub=function(T){this.value=T};
  2739. nT=function(T){this.value=T};
  2740. KT=function(T){this.value=T};
  2741. xt=function(T){this.value=T};
  2742. PQ=function(T){this.value=T};
  2743. HQ=function(T){this.value=T};
  2744. t6=function(T){this.value=T};
  2745. Oa=function(T){this.value=T};
  2746. pT=function(T){this.value=T};
  2747. WQ=function(){wG.apply(this,arguments)};
  2748. $t=function(T){this.value=T};
  2749. J6=function(T){this.value=T};
  2750. e6=function(T){this.value=T};
  2751. F2=function(T){this.value=T};
  2752. Ea=function(T){this.value=T};
  2753. yj=function(T){this.value=T};
  2754. ib=function(T){this.value=T};
  2755. Vj=function(T){this.value=T};
  2756. Tp=function(T){this.value=T};
  2757. QZ=function(T){this.value=T};
  2758. jE=function(T){this.value=T};
  2759. ke=function(T){this.value=T};
  2760. l2=function(T){this.value=T};
  2761. oH=function(T){this.value=T};
  2762. vz=function(T){this.value=T};
  2763. Lp=function(T){this.value=T};
  2764. qu=function(T){this.value=T};
  2765. gn=function(T){this.value=T};
  2766. Mu=function(T){this.value=T};
  2767. Ye=function(T){this.value=T};
  2768. U9=function(T){this.value=T};
  2769. RH=function(T){this.value=T};
  2770. Zi=function(T){this.value=T};
  2771. fp=function(T){this.value=T};
  2772. Gp=function(T){this.value=T};
  2773. mU=function(T){this.value=T};
  2774. IH=function(T){this.value=T};
  2775. hj=function(T){this.value=T};
  2776. s9=function(T){this.value=T};
  2777. SE=function(T){this.value=T};
  2778. Cp=function(T){this.value=T};
  2779. Bz=function(T){this.value=T};
  2780. zp=function(T){this.value=T};
  2781. XN=function(T){this.value=T};
  2782. wn=function(T){this.value=T};
  2783. dn=function(T){this.value=T};
  2784. Nu=function(T){this.value=T};
  2785. Aj=function(T){this.value=T};
  2786. b2=function(T){this.value=T};
  2787. rn=function(){wG.apply(this,arguments)};
  2788. cz=function(T){this.value=T};
  2789. Di=function(){wG.apply(this,arguments)};
  2790. aH=function(){wG.apply(this,arguments)};
  2791. u2=function(){wG.apply(this,arguments)};
  2792. np=function(){wG.apply(this,arguments)};
  2793. Kp=function(){wG.apply(this,arguments)};
  2794. xe=function(T){this.value=T};
  2795. Pz=function(T){this.value=T};
  2796. Hz=function(T){this.value=T};
  2797. tj=function(T){this.value=T};
  2798. O9=function(T){this.value=T};
  2799. Wz=function(T,Q,k){if(k&&!k.includes(T.layoutType))return!1;Q=g.B(Q);for(k=Q.next();!k.done;k=Q.next())if(!pp(T.clientMetadata,k.value))return!1;return!0};
  2800. $e=function(){return""};
  2801. xEt=function(T,Q){switch(T){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return Q(T),8}};
  2802. Jj=function(T,Q,k,l){l=l===void 0?!1:l;Gv.call(this,T);this.Cp=k;this.q5=l;this.args=[];Q&&this.args.push(Q)};
  2803. F=function(T,Q,k,l){l=l===void 0?!1:l;Gv.call(this,T);this.Cp=k;this.q5=l;this.args=[];Q&&this.args.push(Q)};
  2804. eE=function(T){var Q=new Map;T.forEach(function(k){Q.set(k.T(),k)});
  2805. this.T=Q};
  2806. pp=function(T,Q){return T.T.has(Q)};
  2807. FN=function(T,Q){T=T.T.get(Q);if(T!==void 0)return T.get()};
  2808. E9=function(T){return Array.from(T.T.keys())};
  2809. yZ=function(T,Q,k){if(k&&k!==T.slotType)return!1;Q=g.B(Q);for(k=Q.next();!k.done;k=Q.next())if(!pp(T.clientMetadata,k.value))return!1;return!0};
  2810. HZg=function(T){var Q;return((Q=Pvu.get(T))==null?void 0:Q.RT)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
  2811. VZ=function(T,Q){var k={type:Q.slotType,controlFlowManagerLayer:tVu.get(Q.Ik)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q.slotEntryTrigger&&(k.entryTriggerType=Q.slotEntryTrigger.triggerType);Q.slotPhysicalPosition!==1&&(k.slotPhysicalPosition=Q.slotPhysicalPosition);if(T){k.debugData={slotId:Q.slotId};if(T=Q.slotEntryTrigger)k.debugData.slotEntryTriggerData=i2(T);T=Q.slotFulfillmentTriggers;k.debugData.fulfillmentTriggerData=[];T=g.B(T);for(var l=T.next();!l.done;l=T.next())k.debugData.fulfillmentTriggerData.push(i2(l.value));
  2812. Q=Q.slotExpirationTriggers;k.debugData.expirationTriggerData=[];Q=g.B(Q);for(T=Q.next();!T.done;T=Q.next())k.debugData.expirationTriggerData.push(i2(T.value))}return k};
  2813. OZC=function(T,Q){var k={type:Q.layoutType,controlFlowManagerLayer:tVu.get(Q.Ik)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};T&&(k.debugData={layoutId:Q.layoutId});return k};
  2814. i2=function(T,Q){var k={type:T.triggerType};Q!=null&&(k.category=Q);T.triggeringSlotId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedSlotId=T.triggeringSlotId);T.triggeringLayoutId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedLayoutId=T.triggeringLayoutId);return k};
  2815. pdt=function(T,Q,k,l){Q={opportunityType:Q};T&&(l||k)&&(l=g.IQ(l||[],function(v){return VZ(T,v)}),Q.debugData=Object.assign({},k&&k.length>0?{associatedSlotId:k}:{},l.length>0?{slots:l}:{}));
  2816. return Q};
  2817. Q0=function(T,Q){return function(k){return Wbu(T4(T),Q.slotId,Q.slotType,Q.slotPhysicalPosition,Q.Ik,Q.slotEntryTrigger,Q.slotFulfillmentTriggers,Q.slotExpirationTriggers,k.layoutId,k.layoutType,k.Ik)}};
  2818. Wbu=function(T,Q,k,l,v,L,q,Y,U,R,Z){return{adClientDataEntry:{slotData:VZ(T,{slotId:Q,slotType:k,slotPhysicalPosition:l,Ik:v,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:Y,clientMetadata:new eE([])}),layoutData:OZC(T,{layoutId:U,layoutType:R,Ik:Z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],EG:new Map,clientMetadata:new eE([]),ZP:{}})}}};
  2819. kd=function(T){this.Qq=T;T=Math.random();var Q=this.Qq.get();Q=g.jj(Q.U.G().experiments,"html5_debug_data_log_probability");Q=Number.isFinite(Q)&&Q>=0&&Q<=1?Q:0;this.T=T<Q};
  2820. T4=function(T){return T.T||T.Qq.get().U.G().V("html5_force_debug_data_for_client_tmp_logs")};
  2821. lh=function(T,Q,k,l){g.x.call(this);this.S=Q;this.A3=k;this.Qq=l;this.T=T(this,this,this,this,this);g.P(this,this.T);T=g.B(Q);for(Q=T.next();!Q.done;Q=T.next())g.P(this,Q.value)};
  2822. oD=function(T,Q){T.S.add(Q)};
  2823. vI=function(T,Q){T.S.delete(Q)};
  2824. qo=function(T,Q,k,l){MH(k,Q,void 0,void 0,k.q5);k.Cp?T.A3.dA(l,k.Cp,Q):MH("adsClientErrorMessage is missing.",Q);LF(T,Q,!0)};
  2825. Juy=function(T,Q,k){if(g2(T.T,Q))if(Mo(T.T,Q).Y=k?"filled":"not_filled",k===null){T.A3.Xw("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",Q);k=g.B(T.S);for(var l=k.next();!l.done;l=k.next())l.value.ul(Q);LF(T,Q,!1)}else{T.A3.Xw("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",Q,k);T.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Q,k);var v,L=(v=k.h_)!=null?v:FN(k.clientMetadata,"metadata_type_sub_layouts");if(L)for(v=g.B(L),L=v.next();!L.done;L=v.next())T.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
  2826. Q,L.value);v=g.B(T.S);for(L=v.next();!L.done;L=v.next())L.value.Oh(Q);if(g2(T.T,Q))if(Mo(T.T,Q).N)LF(T,Q,!1);else{T.A3.Xw("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",Q,k);try{l=T.T;if(!Mo(l,Q))throw new Jj("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.Df.Em.get(Q.slotType))throw new Jj("No LayoutRenderingAdapterFactory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
  2827. if(k.layoutExitNormalTriggers.length==0&&k.layoutExitSkipTriggers.length==0&&k.layoutExitMuteTriggers.length==0&&k.layoutExitUserInputSubmittedTriggers.length==0&&k.uC.length==0)throw new Jj("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");Yd(l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",k.layoutExitNormalTriggers);Yd(l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",k.layoutExitSkipTriggers);Yd(l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",k.layoutExitMuteTriggers);
  2828. Yd(l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",k.layoutExitUserInputSubmittedTriggers);Yd(l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",k.uC)}catch(R){R instanceof Jj?T.ke(Q,k,R,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):T.ke(Q,k,new Jj("Unexpected error: "+R,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");LF(T,Q,!0);return}Mo(T.T,Q).B=!0;try{var q=T.T,Y=Mo(q,Q),U=q.Df.Em.get(Q.slotType).get().build(q.Y,q.S,Q,k);U.init();Y.layout=
  2829. k;if(Y.L)throw new Jj("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");Y.L=U;UI(q,Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",k.layoutExitNormalTriggers);UI(q,Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",k.layoutExitSkipTriggers);UI(q,Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",k.layoutExitMuteTriggers);UI(q,Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",k.layoutExitUserInputSubmittedTriggers);UI(q,Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
  2830. k.uC)}catch(R){RD(T,Q);R instanceof Jj?T.ke(Q,k,R,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):T.ke(Q,k,new Jj("Unexpected error: "+R,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");LF(T,Q,!0);return}T.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,k);l=g.B(T.S);for(q=l.next();!q.done;q=l.next())q.value.il(Q,k);RD(T,Q);$E5(T,Q)}else T=T.Qq.get(),g.ZX(T.U.G())||fF(T.U.G())||g.G4(T.U.G())?T=!0:(MH("Composite VOD on legacy path."),T=!1),T&&MH("slot is unscheduled after been fulfilled.",
  2831. Q,k)}};
  2832. eZ5=function(T,Q,k){Q.Ik!=="core"&&T.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Q,k,void 0)};
  2833. Fb5=function(T,Q,k){T.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,k,void 0);T=g.B(T.S);for(var l=T.next();!l.done;l=T.next())l.value.il(Q,k)};
  2834. E_f=function(T,Q,k){T=g.B(T.S);for(var l=T.next();!l.done;l=T.next())l.value.Ry(Q,k)};
  2835. m2=function(T,Q,k){T.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,k,void 0);T=g.B(T.S);for(var l=T.next();!l.done;l=T.next())l.value.y4(Q,k)};
  2836. ID=function(T,Q,k,l){T.A3.Xw(HZg(l),Q,k,void 0);T=g.B(T.S);for(var v=T.next();!v.done;v=T.next())v.value.N2(Q,k,l)};
  2837. RD=function(T,Q){if(g2(T.T,Q)){Mo(T.T,Q).B=!1;var k=h0;Q=Mo(T.T,Q);var l=[].concat(g.ZH(Q.j));B6g(Q.j);k(T,l)}};
  2838. h0=function(T,Q){Q.sort(function(L,q){function Y(U){MH("TriggerCategoryOrder enum does not contain trigger category: "+U)}
  2839. return L.category===q.category?L.trigger.triggerId.localeCompare(q.trigger.triggerId):xEt(L.category,Y)-xEt(q.category,Y)});
  2840. var k=new Map;Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())if(l=l.value,g2(T.T,l.slot))if(Mo(T.T,l.slot).B)Mo(T.T,l.slot).j.push(l);else{T.A3.Rm("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",l.slot,l,l.layout);var v=k.get(l.category);v||(v=[]);v.push(l);k.set(l.category,v)}Q=g.B(yu5);for(l=Q.next();!l.done;l=Q.next())v=g.B(l.value),l=v.next().value,v=v.next().value,(l=k.get(l))&&iZy(T,l,v);(Q=k.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&VVg(T,Q);(Q=k.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&TBy(T,
  2841. Q);(k=k.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&QPX(T,k)};
  2842. iZy=function(T,Q,k){Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())l=l.value,l.layout&&sI(T.T,l.slot)&&jPI(T,l.slot,l.layout,k)};
  2843. VVg=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())LF(T,k.value.slot,!1)};
  2844. TBy=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;a:switch(Mo(T.T,k.slot).Y){case "not_filled":var l=!0;break a;default:l=!1}l&&(T.A3.XE("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",k.slot),T.T.gH(k.slot))}};
  2845. QPX=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;T.A3.XE("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",k.slot);for(var l=g.B(T.S),v=l.next();!v.done;v=l.next())v.value.PT(k.slot);try{var L=T.T,q=k.slot,Y=Mo(L,q);if(!Y)throw new F("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!Y.S)throw new F("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(Y.T!=="scheduled")throw new F("Tried to enter a slot from stage: "+
  2846. Y.T,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(Sj(Y))throw new F("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var U=g.B(CF(L,q.slotType+"_"+q.slotPhysicalPosition).values()),R=U.next();!R.done;R=U.next()){var Z=R.value;if(Y!==Z&&Sj(Z))throw new F("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:Z.T},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(f){f instanceof F&&f.Cp?(T.A3.dA("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
  2847. f.Cp,k.slot),MH(f,k.slot,BI(T.T,k.slot),void 0,f.q5)):(T.A3.dA("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",k.slot),MH(f,k.slot));LF(T,k.slot,!0);continue}k=Mo(T.T,k.slot);k.T!=="scheduled"&&z4(k.slot,k.T,"enterSlot");k.T="enter_requested";k.S.eQ()}};
  2848. $E5=function(T,Q){if(g2(T.T,Q)&&Sj(Mo(T.T,Q))&&BI(T.T,Q)&&!sI(T.T,Q)){var k;T.A3.Xw("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Q,(k=BI(T.T,Q))!=null?k:void 0);T=Mo(T.T,Q);T.T!=="entered"&&z4(T.slot,T.T,"enterLayoutForSlot");T.T="rendering";T.L.startRendering(T.layout)}};
  2849. jPI=function(T,Q,k,l){if(g2(T.T,Q)){var v=T.A3,L=v.Xw,q;var Y=((q=Pvu.get(l))==null?void 0:q.h7)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";L.call(v,Y,Q,k);T=Mo(T.T,Q);T.T!=="rendering"&&z4(T.slot,T.T,"exitLayout");T.T="rendering_stop_requested";T.L.oK(k,l)}};
  2850. LF=function(T,Q,k){if(g2(T.T,Q)){a:switch(Mo(T.T,Q).T){case "exit_requested":var l=!0;break a;default:l=!1}if(!l)a:switch(Mo(T.T,Q).T){case "rendering_stop_requested":l=!0;break a;default:l=!1}if(l&&(Mo(T.T,Q).N=!0,!k))return;if(Sj(Mo(T.T,Q)))Mo(T.T,Q).N=!0,k$5(T,Q,k);else{a:switch(Mo(T.T,Q).Y){case "fill_requested":k=!0;break a;default:k=!1}if(k)Mo(T.T,Q).N=!0,g2(T.T,Q)&&(T.A3.XE("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Q),Q=Mo(T.T,Q),Q.Y="fill_cancel_requested",Q.C.F5());else{k=
  2851. BI(T.T,Q);(l=T.Qq.get().U.G().experiments.Wd("h5_enable_layout_unscheduling_events"))&&(k?T.Ry(Q,k):MH(Error("Layout is null for LayoutUnscheduled event."),Q,k,void 0,!1));T.A3.XE("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Q);var v=Mo(T.T,Q),L=Q.slotEntryTrigger,q=v.hj.get(L.triggerId);q&&(q.hs(L),v.hj.delete(L.triggerId));L=g.B(Q.slotFulfillmentTriggers);for(q=L.next();!q.done;q=L.next()){q=q.value;var Y=v.z9.get(q.triggerId);Y&&(Y.hs(q),v.z9.delete(q.triggerId))}L=g.B(Q.slotExpirationTriggers);
  2852. for(q=L.next();!q.done;q=L.next())if(q=q.value,Y=v.D.get(q.triggerId))Y.hs(q),v.D.delete(q.triggerId);v.layout!=null&&(L=v.layout,Xt(v,L.layoutExitNormalTriggers),Xt(v,L.layoutExitSkipTriggers),Xt(v,L.layoutExitMuteTriggers),Xt(v,L.layoutExitUserInputSubmittedTriggers),Xt(v,L.uC));v.C=void 0;v.S!=null&&(v.S.release(),v.S=void 0);v.L!=null&&(v.L.release(),v.L=void 0);v=T.T;Mo(v,Q)&&(v=CF(v,Q.slotType+"_"+Q.slotPhysicalPosition))&&v.delete(Q.slotId);T.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
  2853. Q);T=g.B(T.S);for(v=T.next();!v.done;v=T.next())v=v.value,v.vT(Q),k&&!l&&v.Ry(Q,k)}}}};
  2854. k$5=function(T,Q,k){if(g2(T.T,Q)&&Sj(Mo(T.T,Q))){var l=BI(T.T,Q);if(l&&sI(T.T,Q))jPI(T,Q,l,k?"error":"abandoned");else{T.A3.XE("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",Q);try{var v=Mo(T.T,Q);if(!v)throw new F("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");v.T!=="enter_requested"&&v.T!=="entered"&&v.T!=="rendering"&&z4(v.slot,v.T,"exitSlot");v.T="exit_requested";if(v.S===void 0)throw v.T="scheduled",new F("Cannot exit slot because adapter is not defined",
  2855. void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");v.S.Ck()}catch(L){L instanceof F&&L.Cp?(T.A3.dA("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",L.Cp,Q),MH(L,Q,void 0,void 0,L.q5)):(T.A3.dA("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),MH(L,Q))}}}};
  2856. lh6=function(T){this.slot=T;this.hj=new Map;this.z9=new Map;this.D=new Map;this.qO=new Map;this.L=this.layout=this.S=this.C=void 0;this.B=this.N=!1;this.j=[];this.T="not_scheduled";this.Y="not_filled"};
  2857. Sj=function(T){return T.T==="enter_requested"||T.isActive()};
  2858. w2=function(T,Q,k,l,v,L){g.x.call(this);this.Df=T;this.L=Q;this.N=k;this.Y=l;this.S=v;this.Qq=L;this.T=new Map};
  2859. CF=function(T,Q){return(T=T.T.get(Q))?T:new Map};
  2860. Mo=function(T,Q){return CF(T,Q.slotType+"_"+Q.slotPhysicalPosition).get(Q.slotId)};
  2861. oub=function(T){var Q=[];T.T.forEach(function(k){k=g.B(k.values());for(var l=k.next();!l.done;l=k.next())Q.push(l.value.slot)});
  2862. return Q};
  2863. g2=function(T,Q){return Mo(T,Q)!=null};
  2864. sI=function(T,Q){T=Mo(T,Q);if(Q=T.layout!=null)a:switch(T.T){case "rendering":case "rendering_stop_requested":Q=!0;break a;default:Q=!1}return Q};
  2865. BI=function(T,Q){(T=Mo(T,Q))?T.layout!=null&&!T.layout&&MH("Unexpected empty layout",Q):MH("Unexpected undefined slotState",Q);return(T==null?void 0:T.layout)||null};
  2866. d2=function(T,Q,k){if(k.length==0)throw new F("No "+vuu.get(Q)+" triggers found for slot.",void 0,LAT(Q));k=g.B(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,!T.Df.Fm.get(l.triggerType))throw new F("No trigger adapter registered for "+Q+" trigger of type: "+l.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
  2867. LAT=function(T){switch(T){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
  2868. Yd=function(T,Q,k){k=g.B(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,!T.Df.Fm.get(l.triggerType))throw new Jj("No trigger adapter registered for "+vuu.get(Q)+" trigger of type: "+l.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
  2869. UI=function(T,Q,k,l){l=g.B(l);for(var v=l.next();!v.done;v=l.next()){v=v.value;var L=T.Df.Fm.get(v.triggerType);L.gJ(k,v,Q.slot,Q.layout?Q.layout:null);Q.qO.set(v.triggerId,L)}};
  2870. Xt=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=T.qO.get(k.triggerId);l&&(l.hs(k),T.qO.delete(k.triggerId))}};
  2871. z4=function(T,Q,k){MH("Slot stage was "+Q+" when calling method "+k,T)};
  2872. q2I=function(T){return No(T.g9).concat(No(T.Fm)).concat(No(T.Vo)).concat(No(T.y$)).concat(No(T.Em))};
  2873. No=function(T){var Q=[];T=g.B(T.values());for(var k=T.next();!k.done;k=T.next())k=k.value,k.Ld&&Q.push(k);return Q};
  2874. A0=function(T){g.x.call(this);var Q=this;this.T=T;this.instance=null;this.addOnDisposeCallback(function(){g.od(Q.instance);Q.instance=null})};
  2875. bh=function(T){return new A0(T)};
  2876. r2=function(T){g.x.call(this);this.T=T;this.S=guI(this)};
  2877. guI=function(T){var Q=new lh(function(k,l,v,L){return new w2(T.T.Df,k,l,v,L,T.T.Qq)},new Set(q2I(T.T.Df).concat(T.T.listeners)),T.T.A3,T.T.Qq);
  2878. g.P(T,Q);return Q};
  2879. cI=function(T){this.T=T};
  2880. DX=function(T,Q,k){ruJ(T.T(),Q,k)};
  2881. aD=function(T,Q,k,l){(T=T.T())||MH("Could not initiate a command router instance.");zF(T,Q,k,l)};
  2882. uh=function(){this.listeners=new Set};
  2883. nF=function(T){this.Qq=T};
  2884. MTy=function(T,Q){var k=Q.bgp&&Q.bgub,l=!!Q.upb;Q.siub&&Q.scs&&(k||l)&&(l&&KF(T.Qq.get(),"html5_export_sodar_snapshot")?Ty().then(function(v){v=v.snapshot.bind(v);g.Tv("yt.abuse.playerAttLoaderRun",v);A7y(Q.siub,Q.scs,Q.bgub,Q.bgp,Q.upb)}):A7y(Q.siub,Q.scs,Q.bgub,Q.bgp,Q.upb))};
  2885. Y2X=function(T,Q,k,l,v){this.callback=T;this.slot=Q;this.S=k;this.dc=l;this.Qq=v;this.T=null};
  2886. RU5=function(T,Q,k,l){T.T&&MH("Currently active request ongoing for slot. This should never happen",T.slot);T.T=Q();T.T.then(function(v){T.T=null;l&&l(v);var L=v.Oi?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",q=T.S.get(),Y=T.slot.slotId,U=Q0(T.dc.get(),{slotId:T.slot.slotId,slotType:T.slot.slotType,slotPhysicalPosition:T.slot.slotPhysicalPosition,Ik:T.slot.Ik,slotEntryTrigger:T.slot.slotEntryTrigger,slotFulfillmentTriggers:T.slot.slotFulfillmentTriggers,slotExpirationTriggers:T.slot.slotExpirationTriggers}),
  2887. R=xd(q.S.get(),L,Y),Z={layoutId:R,layoutType:L,Ik:"core"};v={layoutId:R,layoutType:L,EG:new Map,layoutExitNormalTriggers:[new U8T(q.T,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new dn(v)]),ZP:U(Z)};Juy(T.callback,T.slot,v)},function(v){T.T=null;
  2888. k&&k();v instanceof KL||qo(T.callback,T.slot,new F(v,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
  2889. Z9X=function(T){if(T.T==null)T.callback.DQ(T.slot);else try{T.T.cancel(),T.T=null,T.callback.DQ(T.slot)}catch(Q){T.T=null,qo(T.callback,T.slot,new F(Q,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
  2890. PI=function(T,Q,k,l){!T&&(k===void 0?0:k)&&g.rB(Error("Player URL validator detects invalid url. "+(l===void 0?"":l)+": "+Q));return T};
  2891. HI=function(T,Q){return Q&&Q.test(T)?!0:!1};
  2892. G$C=function(T){return(T=fhT&&fhT.exec(T))?T[0]:""};
  2893. t0=function(T){var Q=Q===void 0?!1:Q;return PI(HI(T,m85),T,Q,"Trusted Stream URL")};
  2894. g.OI=function(T){var Q=Q===void 0?!1:Q;return PI(HI(T,IhX),T,Q,"Trusted Image URL")};
  2895. sPb=function(T){var Q=Q===void 0?!1:Q;return PI(HI(T,hUJ),T,Q,"Trusted Promoted Video Domain URL")};
  2896. CA5=function(T){var Q=Q===void 0?!1:Q;return PI(HI(T,S25),T,Q,"Drm Licensor URL")};
  2897. zUg=function(T,Q){Q=Q===void 0?!1:Q;return PI(HI(T,BB5),T,Q,"Captions URL")};
  2898. Xx5=function(T){T=new g.lN(T);g.oZ(T,document.location.protocol);g.v0(T,document.location.hostname);document.location.port&&g.LV(T,document.location.port);return T.toString()};
  2899. pF=function(T){T=new g.lN(T);g.oZ(T,document.location.protocol);return T.toString()};
  2900. g.$d=function(T,Q,k){k=k===void 0?{}:k;this.start=T;this.end=Q;this.active=!0;this.color="";this.S=wxT++;this.id=k.id||"";this.priority=k.priority||9;this.visible=k.visible||!1;this.style=k.style||WI.AD_MARKER;this.namespace=k.namespace||"";if(T=k.color)T=T.toString(16),this.color="#"+Array(7-T.length).join("0")+T;this.tooltip=k.tooltip;this.icons=k.icons?k.icons.filter(function(l){return g.hm(l.thumbnails,function(v){return g.OI(v.url)})}):null;
  2901. this.associatedClipId=k.associatedClipId;this.markerPositionMs=k.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start};
  2902. d85=function(T){return T===-0x8000000000000?"BEFORE_MEDIA_START":T===0?"MEDIA_START":T===0x7ffffffffffff?"MEDIA_END":T===0x8000000000000?"AFTER_MEDIA_END":T.toString()};
  2903. NBg=function(T,Q){switch(T.style){case WI.CHAPTER_MARKER:return Q?8:5;case WI.AD_MARKER:return 6;case WI.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
  2904. g.J0=function(T,Q){return T.start-Q.start||T.priority-Q.priority||T.S-Q.S};
  2905. g.ej=function(T){return"crn_"+T};
  2906. g.Ft=function(T){return"crx_"+T};
  2907. EI=function(T,Q,k,l,v,L,q,Y,U){this.slot=Q;this.S=k;this.Vq=q;this.UK=Y;this.iC=U;this.T=new Y2X(T,Q,l,v,L)};
  2908. Aab=function(T){var Q;(Q=T.iC)==null||Q.get().eM(FN(T.slot.clientMetadata,"metadata_type_cue_point").identifier)};
  2909. y0=function(T,Q,k,l,v,L){this.slot=Q;this.T=k;this.S=new Y2X(T,Q,l,v,L)};
  2910. ih=function(T,Q){this.callback=T;this.slot=Q};
  2911. V0=function(T,Q){return yZ(T,Q.YM,Q.slotType)?!0:!1};
  2912. T1=function(){};
  2913. Q1=function(T,Q,k,l,v,L,q){this.T=T;this.S=Q;this.dc=k;this.Qq=l;this.Vq=v;this.UK=L;this.iC=q};
  2914. jB=function(){};
  2915. b9b=function(T,Q,k,l,v,L){this.callback=T;this.slot=Q;this.layout=k;this.L=l;this.T=v;this.S=L};
  2916. ca5=function(T){if(FN(T.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var Q=raf(T,T.slot);kp(T.T.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[Q]})}};
  2917. D8b=function(T){if(FN(T.slot.clientMetadata,"metadata_type_prefetch_metadata")){var Q=raf(T,T.slot);kp(T.T.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[Q]})}};
  2918. raf=function(T,Q){var k=lE(T.S.get(),T.slot.slotType),l=Object,v=l.assign;T=T.slot;if(Q.slotEntryTrigger){var L=Q.slotId;var q=Q.slotEntryTrigger;L=q.triggeringSlotId!=null&&q.triggeringSlotId===L?q.clone(k):q}else L=void 0;return v.call(l,{},T,{slotId:k,slotEntryTrigger:L,slotFulfillmentTriggers:ahb(Q.slotId,k,Q.slotFulfillmentTriggers),slotExpirationTriggers:ahb(Q.slotId,k,Q.slotExpirationTriggers)})};
  2919. ahb=function(T,Q,k){var l=[];k=g.B(k);for(var v=k.next();!v.done;v=k.next()){var L=l,q=L.push;var Y=T;var U=Q;v=v.value;Y=v.triggeringSlotId!=null&&v.triggeringSlotId===Y?v.clone(U):v;q.call(L,Y)}return l};
  2920. g.o0=function(T,Q){for(var k=g.B(Object.keys(Q)),l=k.next(),v={};!l.done;v={placeholder:void 0},l=k.next())l=l.value,v.placeholder=Q[l],T=T.replace(new RegExp("\\$"+l,"gi"),function(L){return function(){return L.placeholder}}(v));
  2921. return T};
  2922. ufu=function(T,Q,k){this.T=T;this.slot=Q;this.layout=k};
  2923. vk=function(T,Q,k){Q.layoutId!==T.layout.layoutId?T.T.ke(T.slot,Q,new Jj("Unknown layout received. Required LayoutId: "+T.layout.layoutId+("and LayoutType: "+T.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):k()};
  2924. LB=function(T,Q,k,l){g.ox.call(this);this.callback=T;this.L=l;this.T=[];this.S=new ufu(T,Q,k)};
  2925. gv=function(T,Q,k,l,v,L,q,Y){l=l||FN(k.clientMetadata,L);T=qP(T);var U=u5(function(){v.y4(Q,k)});
  2926. Y.push(q(l,T,k.layoutId,{adsClientData:k.ZP},function(){U()}))};
  2927. Yp=function(T,Q,k,l,v,L,q,Y,U){if(Q===T)if(U){if(U===Y.layoutId){a:{T=g.B(k.keys());for(Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L===k.get(Q).layoutId){k=!0;break a}k=!1}k?MP(l,1):v?v():MH("Tried to call engagePingCallback but it is null",q,Y)}}else MH("Companion AdUxClick received without a layoutId",q,Y)};
  2928. UP=function(T){var Q,k,l,v,L;return!((Q=T.get("active_view_viewable"))==null||!Q.length)||!((k=T.get("active_view_measurable"))==null||!k.length)||!((l=T.get("active_view_fully_viewable_audible_half_duration"))==null||!l.length)||!((v=T.get("audio_audible"))==null||!v.length)||!((L=T.get("audio_measurable"))==null||!L.length)};
  2929. R0=function(T){var Q,k;return(k=T==null?void 0:(Q=T.activeViewTracking)==null?void 0:Q.trafficType)!=null?k:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
  2930. nuH=function(T){var Q;return T==null?void 0:(Q=T.activeViewTracking)==null?void 0:Q.identifier};
  2931. ZJ=function(T){var Q,k;return new Map([["impression",T.impressionPings||[]],["error",T.errorPings||[]],["mute",T.mutePings||[]],["unmute",T.unmutePings||[]],["pause",T.pausePings||[]],["rewind",T.rewindPings||[]],["resume",T.resumePings||[]],["skip",T.skipPings||[]],["swipe",T.swipePings||[]],["close",T.closePings||[]],["progress",T.progressPings||[]],["clickthrough",T.clickthroughPings||[]],["fullscreen",T.fullscreenPings||[]],["active_view_viewable",T.activeViewViewablePings||[]],["active_view_measurable",
  2932. T.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",T.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((Q=T.activeViewTracking)==null?void 0:Q.activeViewAudioAudiblePings)||[]],["audio_measurable",((k=T.activeViewTracking)==null?void 0:k.activeViewAudioMeasurablePings)||[]],["end_fullscreen",T.endFullscreenPings||[]],["channel_clickthrough",T.channelClickthroughPings||[]],["abandon",T.abandonPings||[]],["start",T.startPings||[]],["first_quartile",
  2933. T.firstQuartilePings||[]],["midpoint",T.secondQuartilePings||[]],["third_quartile",T.thirdQuartilePings||[]],["complete",T.completePings||[]],["unmuted_impression",T.unmutedImpressionPings||[]],["unmuted_error",T.unmutedErrorPings||[]],["unmuted_mute",T.unmutedMutePings||[]],["unmuted_unmute",T.unmutedUnmutePings||[]],["unmuted_pause",T.unmutedPausePings||[]],["unmuted_resume",T.unmutedResumePings||[]],["unmuted_close",T.unmutedClosePings||[]],["unmuted_progress",T.unmutedProgressPings||[]],["unmuted_clickthrough",
  2934. T.unmutedClickthroughPings||[]],["unmuted_fullscreen",T.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",T.unmutedEndFullscreenPings||[]],["unmuted_abandon",T.unmutedAbandonPings||[]],["unmuted_start",T.unmutedStartPings||[]],["unmuted_first_quartile",T.unmutedFirstQuartilePings||[]],["unmuted_midpoint",T.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",T.unmutedThirdQuartilePings||[]],["unmuted_complete",T.unmutedCompletePings||[]],["unmuted_skip",T.unmutedSkipPings||[]]])};
  2935. KAJ=function(T){switch(T){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
  2936. case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
  2937. case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
  2938. default:return null}};
  2939. fB=function(T,Q,k,l,v){v=v===void 0?null:v;this.L=T;this.Vq=Q;this.layoutId=l;this.Y=0;this.B=null;this.N=void 0;this.T=new Set;this.S=Array.from(this.L.get("progress")||[]);this.S.sort(function(L,q){return(L.offsetMilliseconds||0)-(q.offsetMilliseconds||0)});
  2940. this.C={adPlacementConfig:k,F4:v}};
  2941. G1=function(){return["metadata_type_ad_placement_config"]};
  2942. qP=function(T){var Q=T.Vq.get();return mj(Q,T.C)};
  2943. hM=function(T,Q,k){k=k===void 0?!1:k;T.T.has(Q)?I0(T,Q,[]):T.Wx(Q,k)};
  2944. sP=function(T,Q,k){for(k=k===void 0?!1:k;T.Y<T.S.length;){var l=T.S[T.Y];if(l.offsetMilliseconds<=Q||k)I0(T,"progress",[l]),T.Y++;else break}};
  2945. SB=function(T,Q){return T.T.has(Q)};
  2946. CB=function(T){return T.S.every(function(Q){return Q.hasOwnProperty("offsetMilliseconds")})};
  2947. x8C=function(T,Q,k){T.B=Q;T.N=k};
  2948. I0=function(T,Q,k){var l;PAu(T.Vq.get(),T.layoutId,Q,k,(l=T.B)!=null?l:void 0,T.N)};
  2949. H9I=function(T,Q,k,l,v){lD.call(this,"ads-engagement-panel-layout",T,Q,k,l,v)};
  2950. Bk=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2951. tTt=function(){var T=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2952. return{YM:T,zH:["LAYOUT_TYPE_PANEL"]}};
  2953. O9C=function(T,Q,k,l,v){lD.call(this,"banner-image",T,Q,k,l,v)};
  2954. z1=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);this.adPlacementConfig=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,this.adPlacementConfig,k.layoutId)};
  2955. pxJ=function(){var T=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2956. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
  2957. XS=function(T,Q,k,l,v){lD.call(this,"action-companion",T,Q,k,l,v)};
  2958. wv=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2959. WA5=function(){var T=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2960. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2961. $8y=function(T,Q,k,l,v){lD.call(this,"image-companion",T,Q,k,l,v)};
  2962. dv=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2963. Ja5=function(){var T=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2964. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
  2965. eUf=function(T,Q,k,l,v){lD.call(this,"shopping-companion",T,Q,k,l,v)};
  2966. NP=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2967. FAt=function(){var T=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2968. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
  2969. Eu5=function(T){var Q;if(((Q=T.adVideoOffset)==null?void 0:Q.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var k;return((k=T.adVideoOffset)==null?void 0:k.percent)!=null};
  2970. yaC=function(T){var Q;if(((Q=T.adVideoOffset)==null?void 0:Q.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var k;return((k=T.adVideoOffset)==null?void 0:k.milliseconds)!=null&&!isNaN(Number(T.adVideoOffset.milliseconds))};
  2971. i9y=function(T,Q,k,l){this.er=T;this.layoutId=k;this.N=l;this.S=[];this.T=[];this.L=this.Y=0;T=g.B(Q);for(Q=T.next();!Q.done;Q=T.next())switch(Q=Q.value,k=void 0,(k=Q.adVideoOffset)==null?void 0:k.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":Eu5(Q)?this.S.push(Q):MH("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":yaC(Q)?this.T.push(Q):MH("Invalid AdVideoProgressMillisecondsCommand");break;default:MH("Unknown or invalid AdVideoProgressOffSet kind")}this.S.sort(function(v,
  2972. L){return v.adVideoOffset.percent-L.adVideoOffset.percent});
  2973. this.T.sort(function(v,L){return Number(v.adVideoOffset.milliseconds)-Number(L.adVideoOffset.milliseconds)})};
  2974. AM=function(T,Q,k){k=k===void 0?!1:k;var l=T.N();if(l){for(;T.Y<T.S.length;){var v=T.S[T.Y];if(v.adVideoOffset.percent*l<=Q||k)T.er.get().executeCommand(v.command,T.layoutId),T.Y++;else break}for(;T.L<T.T.length;)if(l=T.T[T.L],Number(l.adVideoOffset.milliseconds)<=Q||k)T.er.get().executeCommand(l.command,T.layoutId),T.L++;else break}};
  2975. bE=function(T,Q,k,l,v,L){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.Ld=!0;oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2976. VTI=function(){var T=["metadata_type_action_companion_ad_renderer"];G1().forEach(function(Q){T.push(Q)});
  2977. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2978. TDH=function(T,Q,k,l,v,L,q,Y){this.callback=T;this.slot=Q;this.layout=k;this.UK=l;this.Vq=v;this.Qq=q;this.kB=Y;this.T=!1;T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId);var U;T=((U=FN(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:U.progressCommands)||[];var R=FN(k.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.S=new i9y(L,T,k.layoutId,function(){return R*1E3})};
  2979. rv=function(T,Q,k,l,v,L){LB.call(this,T,Q,k,l);this.UK=v;this.N=L;this.Y=!1};
  2980. ck=function(T,Q,k,l,v){lD.call(this,"top-banner-image-text-icon-buttoned",T,Q,k,l,v)};
  2981. DJ=function(T,Q,k,l,v,L){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.Ld=!0;oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2982. Qxu=function(){var T=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];G1().forEach(function(Q){T.push(Q)});
  2983. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2984. a0=function(T,Q,k){lD.call(this,"display-underlay-text-grid-cards",T,{},Q,k);this.interactionLoggingClientData=k};
  2985. uE=function(T,Q,k,l,v,L){LB.call(this,T,Q,k,l);this.Vq=v;this.Y=L;this.N=FN(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
  2986. nB=function(T,Q,k,l,v,L){v=v===void 0?!1:v;L=L===void 0?!1:L;lD.call(this,"ad-action-interstitial",T,Q,k,l);this.interactionLoggingClientData=l;this.Hv=v;this.kq=L};
  2987. KB=function(T,Q,k,l,v){LB.call(this,T,Q,k,l);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,v,T,k.layoutId)};
  2988. jxX=function(){var T=["metadata_type_ad_action_interstitial_renderer"];G1().forEach(function(Q){T.push(Q)});
  2989. return{YM:T,zH:["LAYOUT_TYPE_ENDCAP"]}};
  2990. xp=function(T,Q){return Wz(T,Q.YM,Q.zH)?!0:!1};
  2991. Pk=function(T,Q,k){this.S=T;this.L=Q;this.T=k};
  2992. kI5=function(T,Q,k,l,v){lD.call(this,"ads-engagement-panel",T,Q,k,l,v)};
  2993. Hk=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  2994. lFC=function(){var T=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2995. return{YM:T,zH:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
  2996. tM=function(T,Q,k,l,v,L,q,Y){LB.call(this,T,Q,k,l);this.Vq=v;this.EH=L;this.B=Y;this.Ld=!0;this.Y=null;this.N=FN(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id");oD(this.EH(),this);this.adPlacementConfig=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,this.adPlacementConfig,k.layoutId)};
  2997. o8y=function(){var T=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];G1().forEach(function(Q){T.push(Q)});
  2998. return{YM:T,zH:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2999. v8T=function(T,Q,k,l,v){this.h6=T;this.Vq=Q;this.EH=k;this.T=l;this.kB=v};
  3000. LMt=function(T,Q,k){this.h6=T;this.Vq=Q;this.T=k};
  3001. qC6=function(T,Q,k,l,v){this.callback=T;this.slot=Q;this.layout=k;this.Vq=l;this.g8=v;T=FN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  3002. g8f=function(){var T=["metadata_type_client_forecasting_ad_renderer"];G1().forEach(function(Q){T.push(Q)});
  3003. return{YM:T,zH:["LAYOUT_TYPE_FORECASTING"]}};
  3004. MxX=function(T,Q,k,l,v){this.callback=T;this.slot=Q;this.layout=k;this.Vq=l;this.g8=v;T=FN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  3005. OP=function(T,Q,k,l){this.Qq=T;this.Vq=Q;this.g8=k;this.kB=l};
  3006. YCt=function(T,Q){return pp(T.clientMetadata,"metadata_type_ad_info_ad_metadata")?FN(T.clientMetadata,"metadata_type_ad_info_ad_metadata"):Q?{channelId:Q.hH,channelThumbnailUrl:Q.profilePicture,channelTitle:Q.author,videoTitle:Q.title}:(MH("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
  3007. U1J=function(T,Q){return pp(T.clientMetadata,"metadata_ad_video_is_listed")?FN(T.clientMetadata,"metadata_ad_video_is_listed"):Q?Q.isListed:(MH("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
  3008. Rif=function(T,Q,k,l){lD.call(this,"player-overlay-layout",T,{},k,l);this.videoAdDurationSeconds=Q;this.interactionLoggingClientData=l};
  3009. pB=function(T,Q,k,l,v,L,q,Y,U){LB.call(this,T,Q,k,l);this.UK=v;this.Vq=L;this.B=q;this.N=Y;this.Qq=U;this.Y=!1;this.C=FN(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
  3010. ZDu=function(T){if(T.layout.renderingContent){var Q;return(Q=FN(T.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current}return FN(T.layout.clientMetadata,"metadata_type_player_bytes_callback")};
  3011. Wk=function(T,Q,k,l,v,L,q,Y,U){LB.call(this,T,Q,k,l);this.UK=v;this.Vq=L;this.B=q;this.N=Y;this.Qq=U;this.Y=!1;this.C=FN(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
  3012. fFJ=function(){return{YM:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],zH:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
  3013. $p=function(T){if(T.layout.renderingContent){var Q;return(Q=FN(T.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current}return FN(T.layout.clientMetadata,"metadata_type_player_bytes_callback")};
  3014. GII=function(T,Q,k){lD.call(this,"ad-message",T,void 0,Q,k)};
  3015. JM=function(T,Q,k,l,v,L){LB.call(this,k,T,Q,l);this.UK=v;this.Qq=L};
  3016. m1f=function(){return{YM:["metadata_type_valid_ad_message_renderer"],zH:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
  3017. IFt=function(T,Q,k,l){lD.call(this,"video-interstitial-buttoned-centered",T,Q,k,l);this.interactionLoggingClientData=l};
  3018. eB=function(T,Q,k,l,v){LB.call(this,T,Q,k,l);T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,v,T,k.layoutId)};
  3019. V1=function(T,Q,k,l,v,L,q,Y,U){return xp(k,fFJ())||k.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.t(k.renderingContent,FS)!==void 0?new Wk(T,Q,k,l,v,L,q,Y,U):xp(k,{YM:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],zH:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||k.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.t(k.renderingContent,EP)!==void 0?
  3020. new pB(T,Q,k,l,v,L,q,Y,U):xp(k,jxX())||k.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.t(k.renderingContent,y1)!==void 0?new KB(T,Q,k,l,L):xp(k,m1f())?new JM(Q,k,T,l,v,U):xp(k,{YM:["metadata_type_instream_ad_player_overlay_renderer"],zH:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new rv(T,Q,k,l,v,Y):k.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.t(k.renderingContent,iE)!==void 0?new eB(T,Q,k,l,L):null};
  3021. hi6=function(T,Q,k,l,v,L){this.h6=T;this.UK=Q;this.Vq=k;this.S=l;this.T=v;this.Qq=L};
  3022. TX=function(T){return!T.oldState.isPlaying()&&T.state.isPlaying()};
  3023. Q4=function(T,Q,k){return T<Q?!1:k!=null?k<=Q:T<=Q+1};
  3024. jI=function(T,Q,k,l,v,L,q,Y){this.callback=T;this.slot=Q;this.layout=k;this.UK=l;this.Vq=v;this.Qq=L;this.kB=q;this.l9=Y;this.T=!1;T=FN(k.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId)};
  3025. k9=function(T,Q){T.T||(T.n_.Wx(Q),T.T=!0)};
  3026. sx6=function(T,Q,k,l,v,L){this.UK=T;this.Vq=Q;this.er=k;this.Qq=l;this.kB=v;this.l9=L};
  3027. lk=function(){this.currentState=1;this.T="unknown"};
  3028. oE=function(T,Q){if(T.currentState>1){g.rB(new g.Wy("Exit already started",{current:T.currentState}));var k=!1}else k=!0;if(!k)return!1;T.currentState=2;T.T=Q;return!0};
  3029. vj=function(T){if(T.currentState!==2)return!1;T.currentState=3;return!0};
  3030. SCf=function(T,Q){var k=new Map;T=g.B(T);for(var l=T.next();!l.done;l=T.next()){l=l.value;if(l.layoutType==="LAYOUT_TYPE_MEDIA")var v="v";else l.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(v=FN(l.clientMetadata,"metadata_type_linked_in_player_layout_type"),v=v==="LAYOUT_TYPE_ENDCAP"||v==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":v==="LAYOUT_TYPE_SURVEY"?"s":v==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):v="u";k.set(l.layoutId,v);if(v==="u"){var L={};v=Q;l=(L.c=l.layoutId,L);v.U.T9("uct",l)}}T=
  3031. Q.Zs();Lu={contentCpn:T,ZY:k};l={};k=(l.ct=k.size,l.c=T,l);Q.U.T9("acc",k)};
  3032. CD6=function(){Lu={contentCpn:"",ZY:new Map}};
  3033. q$=function(T){var Q;return(Q=Lu.ZY.get(T))!=null?Q:"u"};
  3034. gC=function(T,Q,k){T.U.T9(Q,k);BDC(T)};
  3035. ziI=function(T){var Q=T.layoutId,k=T.fS;if(T.yl){var l={};gC(T.Fj,"slso",(l.ec=Q,l.is=k,l.ctp=q$(Q),l))}};
  3036. M$=function(T){var Q=T.layoutId,k=T.fS;if(T.yl){var l={};gC(T.Fj,"slse",(l.ec=Q,l.is=k,l.ctp=q$(Q),l))}};
  3037. XZy=function(T){var Q=T.layoutId,k=T.fS,l=T.Fj;T.yl&&(T={},gC(l,"sleo",(T.xc=Q,T.is=k,T.ctp=q$(Q),T)),BDC(l))};
  3038. wZI=function(T){var Q=T.cpn,k=T.Fj;T=T.fS;var l=k.Zs(),v={};gC(k,"ce",(v.ec=Q,v.ia=Q!==l,v.r=Lu.ZY.has(Q),v.is=T,v.ctp=q$(Q),v))};
  3039. BDC=function(T){if(T.Zs()!==Lu.contentCpn){var Q={};Q=(Q.c=Lu.contentCpn,Q);T.U.T9("ccm",Q)}};
  3040. d1b=function(T){var Q=T.cpn,k=T.Fj;T=T.fS;var l=k.Zs(),v={};gC(k,"cx",(v.xc=Q,v.ia=Q!==l,v.r=Lu.ZY.has(Q),v.is=T,v.ctp=q$(Q),v))};
  3041. NDX=function(T){this.params=T;this.T=new Set};
  3042. AcT=function(T,Q,k){if(!T.T.has(Q)){T.T.add(Q);var l={};T.params.mx.Fs(Q,Object.assign({},k,(l.p_ac=T.params.adCpn,l.p_isv=T.params.Ra&&T.params.bK,l)))}};
  3043. U_=function(T,Q,k){if(Y9(T.params.mx.Qq.get(),!0)){var l=k.flush,v={};AcT(T,Q,(v.cts=k.currentTimeSec,v.f=l,v))}};
  3044. bDI=function(T,Q){this.Fj=T;this.Qq=Q};
  3045. RE=function(T){var Q=[];if(T){T=g.B(Object.entries(T));for(var k=T.next();!k.done;k=T.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;l!==void 0&&(l=typeof l==="boolean"?""+ +l:(""+l).replace(/[:,=]/g,"_"),Q.push(k+"."+l))}}return Q.join(";")};
  3046. g.ZK=function(T,Q,k){Q=Q===void 0?{}:Q;this.errorCode=T;this.details=Q;this.severity=k===void 0?0:k};
  3047. fu=function(T){return T===1||T===2};
  3048. GX=function(T,Q){Q=Q===void 0?0:Q;if(T instanceof g.ZK)return T;T=T&&T instanceof Error?T:Error(""+T);fu(Q)?g.bA(T):g.rB(T);return new g.ZK(Q===1?"player.fatalexception":"player.exception",{name:""+T.name,message:""+T.message},Q)};
  3049. rcb=function(T,Q){function k(){var l=g.HT.apply(0,arguments);T.removeEventListener("playing",k);Q.apply(null,g.ZH(l))}
  3050. T.addEventListener("playing",k)};
  3051. mD=function(){var T=g.jA("yt.player.utils.videoElement_");T||(T=g.fO("VIDEO"),g.Tv("yt.player.utils.videoElement_",T));return T};
  3052. IE=function(T){var Q=mD();return!!(Q&&Q.canPlayType&&Q.canPlayType(T))};
  3053. s_=function(T){if(/opus/.test(T)&&g.hW&&!ze("38")&&!g.ph())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(T);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(T);if(/webm/.test(T)&&!s5f())return!1;T==='audio/mp4; codecs="mp4a.40.2"'&&(T='video/mp4; codecs="avc1.4d401f"');return!!IE(T)};
  3054. ccT=function(T){try{var Q=s_('video/mp4; codecs="avc1.42001E"')||s_('video/webm; codecs="vp9"');return(s_('audio/mp4; codecs="mp4a.40.2"')||s_('audio/webm; codecs="opus"'))&&(Q||!T)||IE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(k){return"html5.missingapi"}};
  3055. SI=function(){var T=mD();return!(!T.webkitSupportsPresentationMode||typeof T.webkitSetPresentationMode!=="function")};
  3056. Cu=function(){var T=mD();try{var Q=T.muted;T.muted=!Q;return T.muted!==Q}catch(k){}return!1};
  3057. D15=function(){var T;return((T=navigator.connection)==null?void 0:T.type)||""};
  3058. g.Bj=function(){wi.apply(this,arguments)};
  3059. zX=function(T,Q,k,l,v,L,q,Y){this.sampleRate=T===void 0?0:T;this.numChannels=Q===void 0?0:Q;this.spatialAudioType=k===void 0?"SPATIAL_AUDIO_TYPE_NONE":k;this.T=l===void 0?!1:l;this.L=v;this.Y=L;this.audioQuality=q===void 0?"AUDIO_QUALITY_UNKNOWN":q;this.S=Y===void 0?!1:Y};
  3060. dC=function(T,Q,k,l,v,L,q,Y,U){this.width=T;this.height=Q;this.quality=L||XL(T,Q);this.qualityOrdinal=g.wC[this.quality];this.fps=k||0;this.stereoLayout=!v||l!=null&&l!=="UNKNOWN"&&l!=="RECTANGULAR"?0:v;this.projectionType=l?l==="EQUIRECTANGULAR"&&v===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":l:"UNKNOWN";(T=q)||(T=g.wC[this.quality],T===0?T="\u81ea\u52a8":(Q=this.fps,k=this.projectionType,T=T.toString()+(k==="EQUIRECTANGULAR"||k==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||k==="MESH"?"s":"p")+(Q>55?"60":Q>
  3061. 49?"50":Q>39?"48":"")));this.qualityLabel=T;this.T=Y||"";this.primaries=U||""};
  3062. XL=function(T,Q){var k=Math.max(T,Q);T=Math.min(T,Q);Q=N$[0];for(var l=0;l<N$.length;l++){var v=N$[l],L=g.wC[v];if(k>=Math.floor(L*16/9)*1.3||T>=L*1.3)return Q;Q=v}return"tiny"};
  3063. rC=function(T,Q,k){k=k===void 0?{}:k;this.id=T;this.mimeType=Q;k.qY>0||(k.qY=16E3);Object.assign(this,k);T=g.B(this.id.split(";"));this.itag=T.next().value;this.T=T.next().value;this.containerType=AW(Q);this.yR=bk[this.itag]||""};
  3064. cj=function(T){return T.yR==="9"||T.yR==="("||T.yR==="9h"||T.yR==="(h"};
  3065. aF5=function(T){return T.yR==="H"||T.yR==="h"};
  3066. DK=function(T){return T.yR==="9h"||T.yR==="(h"};
  3067. ucI=function(T){return!!T.jY&&!!T.jY.fairplay&&(T.yR==="("||T.yR==="(h"||T.yR==="A"||T.yR==="MEAC3")||aE&&!!T.jY&&T.yR==="1e"};
  3068. uk=function(T){return T.yR==="1"||T.yR==="1h"||aE&&T.yR==="1e"};
  3069. nu=function(T){return T.yR==="mac3"||T.yR==="meac3"||T.yR==="m"||T.yR==="i"};
  3070. Ku=function(T){return T.yR==="MAC3"||T.yR==="MEAC3"||T.yR==="M"||T.yR==="I"};
  3071. g.x9=function(T){return T.containerType===1};
  3072. n8b=function(T){return T.yR==="("||T.yR==="(h"||T.yR==="H"||aE&&T.yR==="1e"};
  3073. Pj=function(T){return T.mimeType==="application/x-mpegURL"};
  3074. g.Hj=function(T,Q){return{itag:+T.itag,lmt:Q?0:T.lastModified,xtags:T.T||""}};
  3075. KMt=function(T){var Q=navigator.mediaCapabilities;if(Q==null||!Q.decodingInfo||T.yR==="f")return Promise.resolve();var k={type:T.audio&&T.video?"file":"media-source"};T.video&&(k.video={contentType:T.mimeType,width:T.video.width||640,height:T.video.height||360,bitrate:T.qY*8||1E6,framerate:T.video.fps||30});T.audio&&(k.audio={contentType:T.mimeType,channels:""+(T.audio.numChannels||2),bitrate:T.qY*8||128E3,samplerate:T.audio.sampleRate||44100});return Q.decodingInfo(k).then(function(l){T.S=l})};
  3076. tW=function(T){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(T)};
  3077. pu=function(T){return/(vp9|vp09|vp8|avc1|av01)/.test(T)};
  3078. Wj=function(T){return T.includes("vtt")||T.includes("text/mp4")};
  3079. AW=function(T){return T.indexOf("/mp4")>=0?1:T.indexOf("/webm")>=0?2:T.indexOf("/x-flv")>=0?3:T.indexOf("/vtt")>=0?4:0};
  3080. $9=function(T,Q,k,l,v,L){var q=new zX;Q in g.wC||(Q="small");Q==="light"&&(Q="tiny");l&&v?(v=Number(v),l=Number(l)):(v=g.wC[Q],l=Math.round(v*16/9));L=new dC(l,v,0,null,void 0,Q,L);T=unescape(T.replace(/&quot;/g,'"'));return new rC(k,T,{audio:q,video:L})};
  3081. JW=function(T){var Q="id="+T.id;T.video&&(Q+=", res="+T.video.qualityLabel);var k,l;return Q+", byterate=("+((k=T.S2)==null?void 0:k.toFixed(0))+", "+((l=T.qY)==null?void 0:l.toFixed(0))+")"};
  3082. eI=function(T,Q){return{start:function(k){return T[k]},
  3083. end:function(k){return Q[k]},
  3084. length:T.length}};
  3085. x1f=function(T,Q,k){for(var l=[],v=[],L=0;L<T.length;L++)l.push(T.start(L)),v.push(T.end(L));l.push(Q);v.push(k);l.sort(function(q,Y){return q-Y});
  3086. v.sort(function(q,Y){return q-Y});
  3087. return eI(l,v)};
  3088. FL=function(T,Q,k){Q=Q===void 0?",":Q;k=k===void 0?T?T.length:0:k;var l=[];if(T)for(k=Math.max(T.length-k,0);k<T.length;k++)l.push(T.start(k).toFixed(3)+"-"+T.end(k).toFixed(3));return l.join(Q)};
  3089. E_=function(T,Q){if(!T)return-1;try{for(var k=0;k<T.length;k++)if(T.start(k)<=Q&&T.end(k)>=Q)return k}catch(l){}return-1};
  3090. y4=function(T,Q){return E_(T,Q)>=0};
  3091. PDJ=function(T,Q){if(!T)return NaN;Q=E_(T,Q);return Q>=0?T.start(Q):NaN};
  3092. ik=function(T,Q){if(!T)return NaN;Q=E_(T,Q);return Q>=0?T.end(Q):NaN};
  3093. V4=function(T){return T&&T.length?T.end(T.length-1):NaN};
  3094. TN=function(T){return V4(T)>0};
  3095. Qd=function(T,Q){T=ik(T,Q);return T>=0?T-Q:0};
  3096. jt=function(T,Q,k){for(var l=[],v=[],L=0;L<T.length;L++)T.end(L)<Q||T.start(L)>k||(l.push(Math.max(Q,T.start(L))-Q),v.push(Math.min(k,T.end(L))-Q));return eI(l,v)};
  3097. kT=function(T,Q,k,l){g.ox.call(this);var v=this;this.kM=T;this.start=Q;this.end=k;this.isActive=l;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.WO={error:function(){!v.wd()&&v.isActive&&v.publish("error",v)},
  3098. updateend:function(){!v.wd()&&v.isActive&&v.publish("updateend",v)}};
  3099. this.kM.L7(this.WO);this.tA=this.isActive};
  3100. oL=function(T,Q,k,l,v,L){g.ox.call(this);var q=this;this.jr=T;this.fd=Q;this.id=k;this.containerType=l;this.yR=v;this.bK=L;this.Qj=this.LO=this.Qy=null;this.gL=!1;this.appendWindowStart=this.timestampOffset=0;this.hc=eI([],[]);this.CQ=!1;this.hL=[];this.Rj=le?[]:void 0;this.Qp=function(U){return q.publish(U.type,q)};
  3101. var Y;if((Y=this.jr)==null?0:Y.addEventListener)this.jr.addEventListener("updateend",this.Qp),this.jr.addEventListener("error",this.Qp)};
  3102. vM=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
  3103. Ld=function(T,Q){this.Xs=T;this.T=Q===void 0?!1:Q;this.S=!1};
  3104. q3=function(T,Q,k){k=k===void 0?!1:k;g.x.call(this);this.mediaElement=T;this.j6=Q;this.isView=k;this.B=0;this.Y=!1;this.N=!0;this.D=0;this.callback=null;this.j=!1;this.j6||(this.fd=this.mediaElement.xB());this.events=new g.Bj(this);g.P(this,this.events);this.L=new Ld(this.j6?window.URL.createObjectURL(this.j6):this.fd.webkitMediaSourceURL,!0);T=this.j6||this.fd;di(this.events,T,["sourceopen","webkitsourceopen"],this.qMH);di(this.events,T,["sourceclose","webkitsourceclose"],this.zvm);this.C={updateend:this.oL}};
  3105. HDg=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
  3106. txC=function(T,Q){gf(T)?g.Ad(function(){Q(T)}):T.callback=Q};
  3107. ODy=function(T,Q,k){if(M3){var l;UM(T.mediaElement,{l:"mswssb",sr:(l=T.mediaElement.yq)==null?void 0:l.e1()},!1);Q.L7(T.C,T);k.L7(T.C,T)}T.T=Q;T.S=k;g.P(T,Q);g.P(T,k)};
  3108. RL=function(T){return!!T.T||!!T.S};
  3109. gf=function(T){try{return Zl(T)==="open"}catch(Q){return!1}};
  3110. Zl=function(T){if(T.j6)return T.j6.readyState;switch(T.fd.webkitSourceState){case T.fd.SOURCE_OPEN:return"open";case T.fd.SOURCE_ENDED:return"ended";default:return"closed"}};
  3111. fd=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
  3112. pZt=function(T){gf(T)&&(T.j6?T.j6.endOfStream():T.fd.webkitSourceEndOfStream(T.fd.EOS_NO_ERROR))};
  3113. WMT=function(T,Q,k,l){if(!T.T||!T.S)return null;var v=T.T.isView()?T.T.kM:T.T,L=T.S.isView()?T.S.kM:T.S,q=new q3(T.mediaElement,T.j6,!0);q.L=T.L;ODy(q,new kT(v,Q,k,l),new kT(L,Q,k,l));gf(T)||T.T.FL(T.T.Px());return q};
  3114. $1I=function(T){var Q;(Q=T.T)==null||Q.YR();var k;(k=T.S)==null||k.YR();T.N=!1};
  3115. GN=function(){var T=this;this.qh=this.LR=sIu;this.promise=new g.rc(function(Q,k){T.LR=Q;T.qh=k})};
  3116. ml=function(){g.x.call(this);this.wz=!1;this.Xs=null;this.C=this.B=!1;this.Y=new g.fL;this.yq=null;g.P(this,this.Y)};
  3117. IL=function(T){T=T.MD();return T.length<1?NaN:T.end(T.length-1)};
  3118. Jc5=function(T){!T.S&&HDg()&&(T.L?T.L.then(function(){return Jc5(T)}):T.Cz()||(T.S=T.JH()))};
  3119. ei5=function(T){T.S&&(T.S.dispose(),T.S=void 0)};
  3120. UM=function(T,Q,k){var l;((l=T.yq)==null?0:l.J3())&&T.yq.T9("rms",Q,k===void 0?!1:k)};
  3121. FMt=function(T,Q,k){T.isPaused()||T.getCurrentTime()>Q||k>10||(T.play(),g.Zq(function(){FMt(T,T.getCurrentTime(),k+1)},500))};
  3122. E85=function(T,Q){T.Xs&&T.Xs.equals(Q)||(T.Xs&&T.Xs.dispose(),T.Xs=Q)};
  3123. hB=function(T){return Qd(T.Q8(),T.getCurrentTime())};
  3124. ycb=function(T,Q){if(T.Nm()===0||T.hasError())return!1;var k=T.getCurrentTime()>0;return Q>=0&&(T=T.MD(),T.length||!k)?y4(T,Q):k};
  3125. sM=function(T){T.Cz()&&(T.yq&&T.yq.Sl("rs_s"),We&&T.getCurrentTime()>0&&T.seekTo(0),T.Kj(),T.load(),E85(T,null));delete T.L};
  3126. St=function(T){switch(T.SZ()){case 2:return"progressive.net.retryexhausted";case 3:return T=T.dw(),(T==null?0:T.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||iDX&&(T==null?0:T.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
  3127. g.Cd=function(T,Q,k){this.ge=Q===void 0?null:Q;this.seekSource=k===void 0?null:k;this.state=T||64};
  3128. BM=function(T,Q,k){k=k===void 0?!1:k;return Vx5(T,Q.getCurrentTime(),(0,g.XY)(),hB(Q),k)};
  3129. zN=function(T,Q,k,l){if(!(Q===T.state&&k===T.ge&&l===T.seekSource||Q!==void 0&&(Q&128&&!k||Q&2&&Q&16))){var v;if(v=Q)v=Q||T.state,v=!!(v&16||v&32);T=new g.Cd(Q,k,v?l?l:T.seekSource:null)}return T};
  3130. wf=function(T,Q,k){return zN(T,T.state|Q,null,k===void 0?null:k)};
  3131. df=function(T,Q){return zN(T,T.state&~Q,null,null)};
  3132. N3=function(T,Q,k,l){return zN(T,(T.state|Q)&~k,null,l===void 0?null:l)};
  3133. g.J=function(T,Q){return!!(T.state&Q)};
  3134. g.AB=function(T,Q){return Q.state===T.state&&Q.ge===T.ge};
  3135. be=function(T){return T.isPlaying()&&!g.J(T,16)&&!g.J(T,32)};
  3136. rf=function(T){return g.J(T,128)?-1:g.J(T,2)?0:g.J(T,2048)?3:g.J(T,64)?-1:g.J(T,1)&&!g.J(T,32)?3:g.J(T,8)?1:g.J(T,4)?2:-1};
  3137. Dl=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w){g.x.call(this);var r=this;this.xU=T;this.slot=Q;this.layout=k;this.Vq=l;this.kB=v;this.l9=L;this.UK=q;this.eV=Y;this.er=U;this.z6=R;this.position=f;this.B=G;this.Qq=m;this.Th=I;this.QD=z;this.context=w;this.Ld=!0;this.N=!1;this.q2="not_rendering";this.S=!1;this.L=new lk;T=FN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId);var A;T=((A=cM(this))==null?void 0:A.progressCommands)||[];this.Y=new i9y(U,
  3138. T,k.layoutId,function(){return r.On()});
  3139. this.T=new NDX({adCpn:this.layout.layoutId,mx:w.mx,Ra:this.Th,bK:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
  3140. aL=function(T){return{layoutId:T.v0(),fS:T.Th,Fj:T.l9.get(),yl:T.Zg()}};
  3141. ue=function(T,Q){return Q.layoutId!==T.layout.layoutId?(T.xU.ke(T.slot,Q,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+T.layout.layoutId+("and LayoutType: "+T.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
  3142. nd=function(T){T.q2="rendering_start_requested";T.z6(-1)};
  3143. cM=function(T){return FN(T.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
  3144. T3g=function(T){MH("Received layout exit signal when not in layout exit flow.",T.slot,T.layout)};
  3145. QYu=function(T){var Q;return((Q=Kd(T.l9.get(),2))==null?void 0:Q.clientPlaybackNonce)||""};
  3146. xT=function(T,Q){switch(Q){case "normal":T.Wx("complete");break;case "skipped":T.Wx("skip");break;case "abandoned":SB(T.n_,"impression")&&T.Wx("abandon")}};
  3147. PM=function(T,Q){T.N||(Q=new g.YX(Q.state,new g.Cd),T.N=!0);return Q};
  3148. HM=function(T,Q){TX(Q)?T.z6(1):g.RY(Q,4)&&!g.RY(Q,2)&&T.Cg();Ue(Q,4)<0&&!(Ue(Q,2)<0)&&T.Je()};
  3149. jYH=function(T){T.position===0&&(T.eV.get(),T=FN(T.layout.clientMetadata,"metadata_type_ad_placement_config").kind,T={adBreakType:tB(T)},dS("ad_bl"),g.NL(T))};
  3150. OM=function(T,Q){hM(T.n_,Q,!T.S)};
  3151. lVt=function(T){var Q;return(((Q=cM(T))==null?void 0:Q.progressCommands)||[]).findIndex(function(k){return!!g.t(k==null?void 0:k.command,kZC)})!==-1};
  3152. pd=function(T,Q){var k=FN(T.clientMetadata,"metadata_type_eligible_for_ssap");return k===void 0?(MH("Expected SSAP eligibility in PlayerBytes factory",T),!1):Q.Zg(k)};
  3153. WM=function(T,Q){if(!KF(Q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(T){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return MH("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return MH("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:T}),3;default:Uk(T,"unknown layoutExitReason")}};
  3154. oXg=function(T){MH("getExitReason: unexpected reason",void 0,void 0,{reason:T})};
  3155. $T=function(T,Q){if(KF(Q.get(),"html5_ssap_pass_transition_reason"))switch(T){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return oXg(T),"abandoned";case 3:case 1:return oXg(T),"error";default:Uk(T,"unexpected transition reason")}else switch(T){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return MH("getExitReason: unexpected reason",void 0,void 0,{reason:T}),"error";default:Uk(T,"unexpected transition reason")}};
  3156. g.JB=function(T,Q,k){bU(T,k)||cP(T,Q,k);bU(T,"video_to_ad")||cP(T,Q,"video_to_ad");bU(T,"ad_to_video")||cP(T,Q,"ad_to_video");bU(T,"ad_to_ad")||cP(T,Q,"ad_to_ad")};
  3157. et=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r){Dl.call(this,T,Q,k,l,v,L,q,Y,R,Z,f,G,m,I,z,w,r);var A=this;this.yp=U;this.FQ=f;this.Iz=!0;this.FX=this.l8=0;this.EN=u5(function(){ziI(aL(A));A.xU.y4(A.slot,A.layout)});
  3158. this.bG=u5(function(){XZy(aL(A));A.q2!=="rendering_stop_requested"&&A.FQ(A);A.layoutExitReason?A.xU.N2(A.slot,A.layout,A.layoutExitReason):T3g(A)});
  3159. this.timer=new g.x3(200);this.timer.listen("tick",function(){A.bC()});
  3160. g.P(this,this.timer)};
  3161. EM=function(T){T.FX=Date.now();FR(T,T.l8);T.timer.start()};
  3162. vXC=function(T){T.l8=T.On();T.ey(T.l8/1E3,!0);FR(T,T.l8)};
  3163. FR=function(T,Q){Q={current:Q/1E3,duration:T.On()/1E3};T.yp.get().bu("onAdPlaybackProgress",Q)};
  3164. yd=function(T){et.call(this,T.xU,T.slot,T.jk,T.Vq,T.kB,T.l9,T.UK,T.eV,T.yp,T.er,T.z6,T.FQ,T.QF,T.lU,T.Qq,T.Th,T.QD,T.context)};
  3165. ie=function(T){et.call(this,T.xU,T.slot,T.jk,T.Vq,T.kB,T.l9,T.UK,T.eV,T.yp,T.er,T.z6,T.FQ,T.QF,T.lU,T.Qq,T.Th,T.QD,T.context)};
  3166. Vd=function(){ie.apply(this,arguments)};
  3167. LPT=function(T){return pd(T.slot,T.Qq.get())?new Vd(T):new yd(T)};
  3168. jn=function(T){Dl.call(this,T.callback,T.slot,T.jk,T.Vq,T.kB,T.l9,T.UK,T.eV,T.er,T.z6,T.FQ,T.QF,T.lU,T.Qq,T.Th,T.QD,T.context);var Q=this;this.adCpn="";this.JR=this.dF=0;this.EN=u5(function(){ziI(aL(Q));Q.xU.y4(Q.slot,Q.layout)});
  3169. this.bG=u5(function(){XZy(aL(Q));Q.q2!=="rendering_stop_requested"&&Q.FQ(Q);Q.layoutExitReason?Q.xU.N2(Q.slot,Q.layout,Q.layoutExitReason):T3g(Q)});
  3170. this.q_=T.q_;this.UH=T.UH;this.Xk=T.Xk;this.yp=T.yp;this.Og=T.Og;this.FQ=T.FQ;if(!this.Zg()){KF(this.Qq.get(),"html5_disable_media_load_timeout")||(this.QL=new g.FA(function(){Q.wP("load_timeout",new Jj("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
  3171. T=Tn(this.Qq.get());var k=QG(this.Qq.get());T&&k&&(this.pM=new g.FA(function(){var l=FN(Q.layout.clientMetadata,"metadata_type_preload_player_vars");l&&Q.UH.get().U.preloadVideoByPlayerVars(l,2,300)}))}};
  3172. gXf=function(T,Q){var k=FN(Q.clientMetadata,"metadata_type_ad_video_id"),l=FN(Q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");k&&l&&T.Og.get().U.G().Bd.add(k,{Hy:l});(Q=FN(Q.clientMetadata,"metadata_type_sodar_extension_data"))&&MTy(T.q_.get(),Q);qeJ(T.UK.get(),!1)};
  3173. MM6=function(T){qeJ(T.UK.get(),!0);var Q;((Q=T.shrunkenPlayerBytesConfig)==null?0:Q.shouldRequestShrunkenPlayerBytes)&&T.UK.get().uX(!1)};
  3174. Ye5=function(T){return new kJ(T)};
  3175. lZ=function(){jn.apply(this,arguments)};
  3176. kJ=function(){lZ.apply(this,arguments)};
  3177. UHu=function(T){return LPT(Object.assign({},T,{xU:T.callback,z6:function(){}}))};
  3178. RB5=function(T){return new jn(Object.assign({},T,{z6:function(Q){T.yp.get().bu("onAdIntroStateChange",Q)}}))};
  3179. ZNf=function(T){function Q(k){T.yp.get().xA(k)}
  3180. return pd(T.slot,T.Qq.get())?Ye5(Object.assign({},T,{z6:Q})):new jn(Object.assign({},T,{z6:Q}))};
  3181. oN=function(T){for(var Q=T.jk,k=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],l=g.B(G1()),v=l.next();!v.done;v=l.next())k.push(v.value);if(xp(Q,{YM:k,zH:["LAYOUT_TYPE_MEDIA_BREAK"]}))return UHu(T);Q=T.jk;k=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];l=g.B(G1());for(v=l.next();!v.done;v=l.next())k.push(v.value);if(xp(Q,{YM:k,zH:["LAYOUT_TYPE_MEDIA"]}))return pp(T.jk.clientMetadata,"metadata_type_ad_intro")?RB5(T):ZNf(T)};
  3182. GZy=function(T){var Q=FN(T.clientMetadata,"metadata_type_ad_placement_config").kind,k=FN(T.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:T.layoutId,adType:fVu(k),adBreakType:tB(Q)}};
  3183. tB=function(T){switch(T){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
  3184. fVu=function(T){switch(T){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
  3185. mHH=function(T){try{return new vE(T.Ka,T.slot,T.layout,T.ZC,T.CG,T.l9,T.iC,T.UH,T.EH,T.UK,T.F0H,T)}catch(Q){}};
  3186. vE=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){g.x.call(this);this.Ka=T;this.slot=Q;this.layout=k;this.ZC=l;this.CG=v;this.l9=L;this.iC=q;this.UH=Y;this.EH=U;this.UK=R;this.params=f;this.Ld=!0;T=oN(Z);if(!T)throw Error("Invalid params for sublayout");this.M2=T};
  3187. IVt=function(){this.T=1;this.S=new lk};
  3188. Lw=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){g.x.call(this);this.callback=T;this.l9=Q;this.iC=k;this.UH=l;this.UK=v;this.B1=L;this.eV=q;this.ih=Y;this.slot=U;this.layout=R;this.ZC=Z;this.g8=f;this.EH=G;this.Qq=m;this.Ld=!0;this.HV=!1;this.k_=[];this.x3=-1;this.uY=!1;this.FD=new IVt};
  3189. hBX=function(T){var Q;return(Q=T.layout.h_)!=null?Q:FN(T.layout.clientMetadata,"metadata_type_sub_layouts")};
  3190. ql=function(T){return{Fj:T.l9.get(),fS:!1,yl:T.Zg()}};
  3191. sYf=function(T,Q,k){if(T.jf()===T.k_.length-1){var l,v;MH("Unexpected skip requested during the last sublayout",(l=T.oy())==null?void 0:l.t3(),(v=T.oy())==null?void 0:v.b9(),{requestingSlot:Q,requestingLayout:k})}};
  3192. SeH=function(T,Q,k){return k.layoutId!==gM(T,Q,k)?(MH("onSkipRequested for a PlayerBytes layout that is not currently active",T.t3(),T.b9()),!1):!0};
  3193. CPt=function(T){T.jf()===T.k_.length-1&&MH("Unexpected skip with target requested during the last sublayout")};
  3194. B3y=function(T,Q,k){return k.renderingContent===void 0&&k.layoutId!==gM(T,Q,k)?(MH("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",T.t3(),T.b9(),{requestingSlot:Q,requestingLayout:k}),!1):!0};
  3195. zB5=function(T,Q,k,l){var v=FN(Q.b9().clientMetadata,"metadata_type_ad_pod_skip_target");if(v&&v>0&&v<T.k_.length){a:{for(var L=v;L<T.k_.length;){if(v===FN(T.k_[L].b9().clientMetadata,"metadata_type_ad_pod_skip_index")){T=L;break a}L++}T=void 0}if(T===void 0)MH("Skip-to-index was requested but target index was not found",Q.t3(),Q.b9(),{requestingSlot:k,requestingLayout:l});else return T}else MH("Invalid ad pod skip target index",Q.t3(),Q.b9(),{requestingSlot:k,requestingLayout:l})};
  3196. gM=function(T,Q,k){var l=FN(T.b9().clientMetadata,"metadata_type_linked_in_player_layout_id");return l?l:(MH("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",T.t3(),T.b9(),{requestingSlot:Q,requestingLayout:k}),null)};
  3197. w8I=function(T,Q,k,l){X8b(T,Q,k,"skipped",function(){Ml(T,l)})};
  3198. X8b=function(T,Q,k,l,v){if(!T.uY){var L=T.oy();if(L){L.b9().layoutId!==k.layoutId&&MH("SubLayout mismatch in exitSubLayout",Q,k,{exitingSubLayout:k.layoutId,activeSubLayout:L.b9().layoutId});T.uY=!0;L.oK(L.b9(),l);L=Object.assign({},ql(T),{layoutId:k.layoutId,layoutExitReason:l});var q=L.layoutId,Y=L.layoutExitReason;if(L.yl){var U={};gC(L.Fj,"wrsx",(U.xc=q,U.ler=Y,U.ctp=q$(q),U))}T.lI(Q,k,l);T.uY=!1;T.E8?(T.E8(),T.Zg()||YJ(T.eV.get())):v()}else MH("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
  3199. Q,k)}};
  3200. Ml=function(T,Q){if(T.jf()===T.k_.length-1)T.x3++,UW(T.g8,T.layout,"normal"),T.Zg()||YJ(T.eV.get());else a:{if(T.jf()===-1&&(T.callback.y4(T.slot,T.layout),Q>0)){MH("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",T.slot,T.layout,{indexToPlay:Q,layoutId:T.layout.layoutId});break a}T.x3=Q;Q=T.oy();if(T.jf()>0&&!T.Zg()){var k=T.eV.get();k.S=!1;var l={};k.T&&k.videoId&&(l.cttAuthInfo={token:k.T,videoId:k.videoId});At("ad_to_ad",l)}k=g.t(Q.b9().renderingContent,y1);if(k==null?0:
  3201. k.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var v;k=!((v=T.B1.get().ICB.get(k.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&v)}else k=!1;k?Ml(T,T.jf()+1):T.LT(Q)}};
  3202. RN=function(T){Lw.call(this,T.Ka,T.l9,T.iC,T.UH,T.UK,T.B1,T.eV,T.ih,T.slot,T.layout,T.ZC,T.g8,T.EH,T.Qq)};
  3203. dHC=function(T){(T=T.oy())&&T.z4()};
  3204. ZY=function(T){Lw.call(this,T.Ka,T.l9,T.iC,T.UH,T.UK,T.B1,T.eV,T.ih,T.slot,T.layout,T.ZC,T.g8,T.EH,T.Qq);this.Au=void 0};
  3205. N3I=function(T,Q){T.Mp()&&!vj(T.FD.S)||T.callback.N2(T.slot,T.layout,Q)};
  3206. fw=function(T){return KF(T.Qq.get(),"html5_ssap_pass_transition_reason")};
  3207. A$J=function(T,Q,k){Q.n7().currentState<2&&(k=$T(k,T.Qq),Q.oK(Q.b9(),k));k=Q.n7().T;T.lI(T.slot,Q.b9(),k)};
  3208. bNf=function(T,Q){if(T.FD.S.currentState<2){var k=$T(Q,T.Qq);k==="error"?T.callback.ke(T.slot,T.layout,new Jj("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):UW(T.g8,T.layout,k)}};
  3209. Gn=function(T,Q,k){Q.n7().currentState>=2||(Q.oK(Q.b9(),k),vj(Q.n7())&&(ID(T.ih,T.slot,Q.b9(),k),T.Au=void 0))};
  3210. r$y=function(T,Q){T.FD.T===2&&Q!==T.Zs()&&MH("onClipEntered: unknown cpn",T.slot,T.layout,{cpn:Q})};
  3211. c$5=function(T,Q){var k=T.oy();if(k){var l=k.b9().layoutId,v=T.jf()+1;T.Mp()?Gn(T,k,Q):k.oK(k.b9(),Q);v>=0&&v<T.k_.length?(k=T.k_[v].b9().layoutId,fw(T)&&(["normal","skipped"].includes(Q)||MH("exitActiveLayoutAndPlayNext: unexpected exit reason",T.slot,T.layout,{exitReason:Q})),T.iC.get().finishSegmentByCpn(l,k,WM(Q,T.Qq))):v===T.k_.length?UW(T.g8,T.layout,"normal"):MH("unexpected index",T.slot,T.layout,{index:v})}else MH("exitActiveLayoutAndPlayNext: no active adapter",T.slot,T.layout)};
  3212. DH5=function(T,Q){MH(Q+": undefined adapter",T.slot,T.layout)};
  3213. aVu=function(T){return pd(T.slot,T.Qq.get())?new ZY(T):new RN(T)};
  3214. m1=function(T,Q,k,l,v,L,q){g.x.call(this);this.callback=T;this.UH=Q;this.UK=k;this.eV=l;this.M2=v;this.EH=L;this.Qq=q;this.Ld=!0;this.HV=!1};
  3215. u85=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E){function e(){var g6=oN(Object.assign({},qJ,{callback:{y4:T.y4.bind(T),N2:T.N2.bind(T),XV:function(){},
  3216. ke:T.ke.bind(T)},slot:k,jk:l,FQ:function(){UW(q,l,"normal")},
  3217. QF:0,lU:1,Th:!0}));return g6?new m1(T,Z,G,z,g6,v,D):g6}
  3218. function vT(){var g6=Object.assign({},qJ,{callback:{y4:function(){},
  3219. N2:function(){},
  3220. XV:function(){return void UW(q,l,"normal")},
  3221. ke:function(){}},
  3222. slot:k,jk:l,FQ:function(){},
  3223. QF:0,lU:1,Th:!0});return mHH({Ka:T,slot:k,layout:l,ZC:L,CG:q,l9:f,iC:K,UH:Z,EH:v,UK:G,F0H:g6,context:O})}
  3224. function f5(){var g6,QC=(g6=l.h_)!=null?g6:FN(l.clientMetadata,"metadata_type_sub_layouts");g6=aVu({Ka:T,l9:f,iC:K,UH:Z,UK:G,B1:m,eV:z,ih:Q,slot:k,layout:l,ZC:L,g8:q,EH:v,Qq:D});for(var A5=[],Et={Du:0};Et.Du<QC.length;Et={Du:Et.Du},Et.Du++){var QJ=oN(Object.assign({},qJ,{callback:{y4:g6.Fn.bind(g6),N2:g6.im.bind(g6),XV:g6.XV.bind(g6),ke:g6.Y8.bind(g6)},slot:k,jk:QC[Et.Du],FQ:function(I_){return function(g$$){g$$.oK(QC[I_.Du],"normal")}}(Et),
  3225. QF:Et.Du,lU:QC.length,Th:!1}));if(!QJ)return;A5.push(QJ)}g6.k_=A5;return g6}
  3226. var qJ={Vq:Y,kB:U,q_:R,UH:Z,l9:f,UK:G,B1:m,Xk:I,eV:z,yp:w,er:r,Og:A,Qq:D,context:O,QD:E};Y=xp(l,{YM:["metadata_type_sub_layouts"],zH:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||l.h_!==void 0&&l.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";U=pd(k,D.get())&&xp(l,{YM:[],zH:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});R=xp(l,{YM:[],zH:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(Y)return f5();if(U)return vT();if(R)return e()};
  3227. IN=function(T,Q,k,l,v,L,q,Y,U,R){this.callback=T;this.slot=Q;this.layout=k;this.l9=l;this.iC=v;this.DC=L;this.UK=q;this.n_=Y;this.Vq=U;this.N=R;this.driftRecoveryMs=FN(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.Y=FN(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
  3228. KPt=function(T){var Q=FN(T.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=FN(T.layout.clientMetadata,"metadata_type_layout_exit_ms");T=T.DC.get();Q=nXI(T.L,Q,k);return Math.min(k,Q!==null?Q:Infinity)};
  3229. sW=function(T,Q){var k;hQ(T.Vq.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(k=T.l9.get().Vh)==null?void 0:k.clientPlaybackNonce,adClientData:T.layout.ZP.adClientDataEntry},Q)})};
  3230. Sn=function(T,Q,k,l,v,L,q,Y,U,R,Z){IN.call(this,T,Q,k,l,v,L,q,Y,U,R);this.L=Z;this.S=this.T=null;T=g.B(this.L);for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,pp(Q.b9().clientMetadata,"metadata_type_survey_overlay")&&(this.S=Q.b9().layoutId)};
  3231. PPH=function(T,Q){var k=xHu(T,Q);k||MH("Expected subLRA found by layout ID",T.slot,T.layout,{layoutId:Q});T.T={UU:k};k?k.startRendering(k.b9()):Q===T.S&&MH("Failed to find rendering adapter for survey media layout",T.slot,T.layout,{surveyMediaLayoutId:Q})};
  3232. xHu=function(T,Q){return Q==null?null:T.L.find(function(k){return k.b9().layoutId===Q})||null};
  3233. HNT=function(T,Q,k,l,v,L,q,Y,U,R){var Z=v-l,f,G=((f=T.fulfilledLayout||FN(T.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:FN(f.clientMetadata,"metadata_type_ssdai_ads_config"))||"",m,I;(f=(m=FN(T.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(I=m.current)==null?void 0:I.identifier)||MH("Cue point identifier is undefined",T,Q,U());if(!Z)return q.vU(k,G,2,L,l,v,T.slotId,f),Cw(R,"ads_iraot","slid."+Q.layoutId+";enterMs."+l+";exitMs."+v+";vid."+k.video_id),null;Z=
  3234. q.XK(k,G,2,L,l,v,T.slotId,f);Cw(R,"ads_atct","slid."+Q.layoutId+";enterMs."+l+";exitMs."+v+";vid."+k.video_id+";pid."+Z);if(!Z)return MH("Unexpected failure to add to playback timeline",T,Q,U()),null;T=T.slotId;Q=Q.layoutId;Z?(Y.T.has(Z)&&MH("Unexpected remap of timeline playback"),Y.T.set(Z,{slotId:T,layoutId:Q})):MH("Invalid timeline playback ID");l+L>v&&q.AA(Z,v-l);return Z};
  3235. tMg=function(T,Q,k){var l=FN(Q.clientMetadata,"metadata_type_sodar_extension_data");if(l)try{MTy(k,l)}catch(v){MH("Unexpected error when loading Sodar",T,Q,{error:v})}};
  3236. ONf=function(T,Q,k,l,v,L,q){BE(T,Q,new g.YX(k,new g.Cd),l,v,q,!1,L)};
  3237. BE=function(T,Q,k,l,v,L,q,Y){q=q===void 0?!0:q;TX(k)&&Q4(v,0,null)&&(!SB(T,"impression")&&Y&&Y(),T.Wx("impression"));SB(T,"impression")&&(g.RY(k,4)&&!g.RY(k,2)&&T.Fw("pause"),Ue(k,4)<0&&!(Ue(k,2)<0)&&T.Fw("resume"),g.RY(k,16)&&v>=.5&&T.Fw("seek"),q&&g.RY(k,2)&&zn(T,k.state,Q,l,v,L))};
  3238. zn=function(T,Q,k,l,v,L,q,Y,U){SB(T,"impression")&&(L?(L=v-l,L=L>=-1&&L<=2):L=Math.abs(l-v)<=1,Xk(T,Q,L?l:v,k,l,q,Y&&L),L&&!U&&T.Wx("complete"))};
  3239. Xk=function(T,Q,k,l,v,L,q){sP(T,k*1E3,q);v<=0||k<=0||(Q==null?0:g.J(Q,16))||(Q==null?0:g.J(Q,32))||(Q4(k,v*.25,l)&&(L&&!SB(T,"first_quartile")&&L("first"),T.Wx("first_quartile")),Q4(k,v*.5,l)&&(L&&!SB(T,"midpoint")&&L("second"),T.Wx("midpoint")),Q4(k,v*.75,l)&&(L&&!SB(T,"third_quartile")&&L("third"),T.Wx("third_quartile")))};
  3240. p8t=function(T,Q){SB(T,"impression")&&T.Fw(Q?"fullscreen":"end_fullscreen")};
  3241. WPI=function(T){SB(T,"impression")&&T.Fw("clickthrough")};
  3242. $H5=function(T){T.Fw("active_view_measurable")};
  3243. J$f=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("active_view_fully_viewable_audible_half_duration")};
  3244. eB5=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("active_view_viewable")};
  3245. FPT=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("audio_audible")};
  3246. EXg=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("audio_measurable")};
  3247. y$C=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){this.callback=T;this.slot=Q;this.layout=k;this.iC=l;this.n_=v;this.UK=L;this.fU=q;this.kB=Y;this.q_=U;this.Qq=R;this.Vq=Z;this.l9=f;this.Xk=G;this.Iz=!0;this.lC=this.q2=null;this.adCpn=void 0;this.T=!1};
  3248. iNy=function(T,Q,k){var l;Cw(T.Vq.get(),"ads_qua","cpn."+FN(T.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=Kd(T.l9.get(),2))==null?void 0:l.clientPlaybackNonce)+";qt."+Q+";clr."+k)};
  3249. VMy=function(T,Q){var k,l;Cw(T.Vq.get(),"ads_imp","cpn."+FN(T.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=Kd(T.l9.get(),2))==null?void 0:k.clientPlaybackNonce)+";clr."+Q+";skp."+!!g.t((l=FN(T.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:l.skipOrPreviewRenderer,wM))};
  3250. dM=function(T){return{enterMs:FN(T.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:FN(T.clientMetadata,"metadata_type_layout_exit_ms")}};
  3251. Nl=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){IN.call(this,T,Q,k,l,v,q,Y,U,R,f);this.fU=L;this.q_=Z;this.kB=G;this.Qq=m;this.lC=this.q2=null};
  3252. TSt=function(T,Q){var k;Cw(T.Vq.get(),"ads_imp","acpn."+((k=Kd(T.l9.get(),2))==null?void 0:k.clientPlaybackNonce)+";clr."+Q)};
  3253. Qou=function(T,Q,k){var l;Cw(T.Vq.get(),"ads_qua","cpn."+FN(T.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=Kd(T.l9.get(),2))==null?void 0:l.clientPlaybackNonce)+";qt."+Q+";clr."+k)};
  3254. AQ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O){this.EH=T;this.ZC=Q;this.g8=k;this.l9=l;this.iC=v;this.UK=L;this.B1=q;this.Vq=Y;this.fU=U;this.DC=R;this.kB=Z;this.q_=f;this.UH=G;this.Xk=m;this.eV=I;this.yp=z;this.er=w;this.Og=r;this.Qq=A;this.T=D;this.context=K;this.QD=O};
  3255. bZ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A){this.EH=T;this.ZC=Q;this.g8=k;this.Vq=l;this.kB=v;this.q_=L;this.UH=q;this.l9=Y;this.UK=U;this.B1=R;this.Xk=Z;this.eV=f;this.yp=G;this.er=m;this.Og=I;this.Qq=z;this.iC=w;this.context=r;this.QD=A};
  3256. jo5=function(T,Q,k,l){lD.call(this,"survey-interstitial",T,Q,k,l)};
  3257. rM=function(T,Q,k,l,v){LB.call(this,k,T,Q,l);this.Vq=v;T=FN(Q.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(Q.EG,v,T,Q.layoutId)};
  3258. cE=function(T){return Math.round(T.width)+"x"+Math.round(T.height)};
  3259. aN=function(T,Q,k){k=k===void 0?DY:k;k.width<DY.width&&(k=DY);if(T.width<k.width||T.height<k.height)return{Wr:3,GU:501,errorMessage:"ad("+cE(k)+") larger than container("+cE(T)+")."};if(k.width*k.height>T.width*T.height*.2)return{Wr:3,GU:501,errorMessage:"ad("+cE(k)+") to container("+cE(T)+") ratio exceeds limit."};if(k.height>T.height/3-Q)return{Wr:3,GU:501,errorMessage:"ad("+cE(k)+") covers container("+cE(T)+") center."}};
  3260. kCy=function(T,Q){var k=FN(T.clientMetadata,"metadata_type_ad_placement_config");return new fB(T.EG,Q,k,T.layoutId)};
  3261. uZ=function(T){return FN(T.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
  3262. nw=function(T,Q,k,l){lD.call(this,"invideo-overlay",T,Q,k,l);this.interactionLoggingClientData=l};
  3263. Kw=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){LB.call(this,L,T,Q,v);this.Vq=k;this.Y=q;this.UK=Y;this.er=U;this.Qq=R;this.B=Z;this.N=f;this.n_=kCy(Q,k)};
  3264. lyb=function(){var T=["metadata_type_invideo_overlay_ad_renderer"];G1().forEach(function(Q){T.push(Q)});
  3265. return{YM:T,zH:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
  3266. xJ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){LB.call(this,L,T,Q,v);this.Vq=k;this.Y=q;this.j=Y;this.UK=U;this.er=R;this.Qq=Z;this.B=f;this.N=G;this.n_=kCy(Q,k)};
  3267. os5=function(){for(var T=["metadata_type_invideo_overlay_ad_renderer"],Q=g.B(G1()),k=Q.next();!k.done;k=Q.next())T.push(k.value);return{YM:T,zH:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
  3268. PE=function(T){this.UK=T;this.T=!1};
  3269. vsC=function(T,Q,k){lD.call(this,"survey",T,{},Q,k)};
  3270. HE=function(T,Q,k,l,v,L,q){LB.call(this,k,T,Q,l);this.Y=v;this.UK=L;this.Qq=q};
  3271. LBf=function(T,Q,k,l,v,L,q,Y,U,R){this.h6=T;this.UK=Q;this.Vq=k;this.Y=l;this.kB=v;this.S=L;this.L=q;this.er=Y;this.Qq=U;this.T=R};
  3272. qHH=function(T,Q,k,l,v,L,q,Y,U,R){this.h6=T;this.UK=Q;this.Vq=k;this.Y=l;this.kB=v;this.S=L;this.L=q;this.er=Y;this.Qq=U;this.T=R};
  3273. tQ=function(T,Q,k,l,v,L,q,Y,U,R){Wk.call(this,T,Q,k,l,v,L,q,U);this.eR=Y;this.l9=R};
  3274. gsX=function(){var T=fFJ();T.YM.push("metadata_type_ad_info_ad_metadata");return T};
  3275. MKC=function(T,Q,k,l,v,L,q){this.h6=T;this.UK=Q;this.Vq=k;this.S=l;this.eR=v;this.T=L;this.l9=q};
  3276. YHJ=function(T,Q,k,l,v,L,q,Y){this.h6=T;this.UK=Q;this.Vq=k;this.S=l;this.eR=v;this.T=L;this.Qq=q;this.l9=Y};
  3277. OW=function(T,Q){this.slotId=Q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=T(this.triggerType)};
  3278. pw=function(T,Q){this.adPodIndex=T;this.T=Q.length;this.adBreakLengthSeconds=Q.reduce(function(l,v){return l+v},0);
  3279. var k=0;for(T+=1;T<Q.length;T++)k+=Q[T];this.adBreakRemainingLengthSeconds=k};
  3280. WE=function(T,Q,k){this.hk=Q;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=k||T(this.triggerType)};
  3281. $J=function(T,Q,k){this.T=Q;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=k||T(this.triggerType)};
  3282. JQ=function(T,Q,k,l){this.hk=Q;this.visible=k;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=l||T(this.triggerType)};
  3283. ULb=function(T){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=T(this.triggerType)};
  3284. Ry5=function(T){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=T(this.triggerType)};
  3285. en=function(T,Q,k){this.triggeringLayoutId=Q;this.slotId=k;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=T(this.triggerType)};
  3286. Fk=function(T,Q,k){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=k||T(this.triggerType)};
  3287. EW=function(T,Q,k,l){this.triggeringLayoutId=Q;this.T=k;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=l||T(this.triggerType)};
  3288. ZGT=function(T){switch(T){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new F("Invalid layout exit reason: "+
  3289. T)}};
  3290. yG=function(T,Q,k){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=k||T(this.triggerType)};
  3291. iZ=function(T,Q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=Q||T(this.triggerType)};
  3292. VG=function(T,Q){this.breakDurationMs=T;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=Q||""};
  3293. Tb=function(T,Q){this.breakDurationMs=T;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=Q||""};
  3294. QM=function(T,Q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=Q||T(this.triggerType)};
  3295. fyf=function(T){this.triggerId=T;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
  3296. GCb=function(T,Q,k,l,v){this.hk=Q;this.T=k;this.visible=l;this.layoutId=v;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=T(this.triggerType)};
  3297. jg=function(T,Q,k,l,v){this.hk=Q;this.T=k;this.visible=l;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=v||T(this.triggerType)};
  3298. kK=function(T,Q){this.breakDurationMs=T;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=Q||""};
  3299. mLb=function(T,Q,k){this.hk=Q;this.T=k;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=T(this.triggerType)};
  3300. lQ=function(T,Q,k,l,v){this.T=Q;this.slotType=k;this.layoutType=l;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=v||T(this.triggerType)};
  3301. oB=function(T,Q){this.T=Q;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=T(this.triggerType)};
  3302. vO=function(T,Q,k){this.layoutId=Q;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=k||T(this.triggerType)};
  3303. L7=function(T,Q,k){this.T=Q;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=k||T(this.triggerType)};
  3304. U8T=function(T,Q){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=Q;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=T(this.triggerType)};
  3305. Iyt=function(T,Q){this.T=T;this.index=Q};
  3306. hy5=function(T){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=T(this.triggerType)};
  3307. qA=function(T,Q){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=Q||T(this.triggerType)};
  3308. so5=function(T,Q,k){this.layoutId=Q;this.offsetMs=k;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=T(this.triggerType)};
  3309. SHJ=function(T,Q){this.layoutId=Q;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=T(this.triggerType)};
  3310. CUb=function(T,Q,k){this.layoutId=Q;this.offsetMs=k;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=T(this.triggerType)};
  3311. gO=function(T,Q,k){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=k||T(this.triggerType)};
  3312. MA=function(T,Q,k){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=k||T(this.triggerType)};
  3313. YK=function(T,Q,k){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=k||T(this.triggerType)};
  3314. UR=function(T,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=T(this.triggerType)};
  3315. RB=function(T,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=T(this.triggerType)};
  3316. Zw=function(T,Q,k){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=k||T(this.triggerType)};
  3317. f7=function(T,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=T(this.triggerType)};
  3318. Gb=function(T,Q,k){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=k||T(this.triggerType)};
  3319. zb=function(T,Q,k,l){this.durationMs=Q;this.triggeringLayoutId=k;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=l||T(this.triggerType)};
  3320. Xj=function(T,Q,k,l){this.category=T;this.trigger=Q;this.slot=k;this.layout=l};
  3321. wO=function(T){return(T==null?void 0:T.layoutId)!=null&&(T==null?void 0:T.layoutType)!=null};
  3322. BSH=function(T){if(!wO(T.adLayoutMetadata))return!1;T=T.renderingContent;return g.t(T,dO)||g.t(T,NA)||g.t(T,Ak)||g.t(T,bQ)||g.t(T,rO)||g.t(T,cO)?!0:!1};
  3323. zyH=function(T){return(T==null?void 0:T.durationMs)!=null&&(T==null?void 0:T.durationMs)>0};
  3324. Dw=function(T){return!!(T.LC&&T.slot&&T.layout)};
  3325. aB=function(T){var Q,k=(Q=T.config)==null?void 0:Q.adPlacementConfig;T=T.renderer;return!(!k||k.kind==null||!T)};
  3326. wPH=function(T){if(!wO(T.adLayoutMetadata))return!1;T=T.renderingContent;return g.t(T,y1)||g.t(T,iE)||g.t(T,XP5)||g.t(T,FS)||g.t(T,EP)?!0:!1};
  3327. uQ=function(T){return T.playerVars!==void 0&&T.pings!==void 0&&T.externalVideoId!==void 0};
  3328. OR=function(T){if(!wO(T.adLayoutMetadata))return!1;T=T.renderingContent;var Q=g.t(T,n7);return Q?K7(Q):(Q=g.t(T,xK))?uQ(Q):(Q=g.t(T,PO))?Q.playerVars!==void 0:(Q=g.t(T,y1))?Q.durationMilliseconds!==void 0:g.t(T,HO)||g.t(T,tk)?!0:!1};
  3329. K7=function(T){T=(T.sequentialLayouts||[]).map(function(Q){return g.t(Q,p7)});
  3330. return T.length>0&&T.every(OR)};
  3331. $K=function(T){return wO(T.adLayoutMetadata)?(T=g.t(T.renderingContent,WO))&&T.pings?!0:!1:!1};
  3332. ctT=function(T){if(!wO(T.adLayoutMetadata))return!1;if(g.t(T.renderingContent,dL5)||g.t(T.renderingContent,NSu))return!0;var Q=g.t(T.renderingContent,Jk);return g.t(T.renderingContent,eg)||g.t(Q==null?void 0:Q.sidePanel,Atu)||g.t(Q==null?void 0:Q.sidePanel,bGI)||g.t(Q==null?void 0:Q.sidePanel,rtf)?!0:!1};
  3333. KBu=function(T){var Q;(Q=!T)||(Q=T.adSlotMetadata,Q=!((Q==null?void 0:Q.slotId)!==void 0&&(Q==null?void 0:Q.slotType)!==void 0));if(Q||!(DL5(T)||T.slotEntryTrigger&&T.slotFulfillmentTriggers&&T.slotExpirationTriggers))return!1;var k;T=(k=T.fulfillmentContent)==null?void 0:k.fulfilledLayout;return(k=g.t(T,p7))?OR(k):(k=g.t(T,Fj))?ctT(k):(k=g.t(T,ayT))?wPH(k):(k=g.t(T,uP6))?BSH(k):(k=g.t(T,ns5))?wO(k.adLayoutMetadata)?g.t(k.renderingContent,dO)?!0:!1:!1:(T=g.t(T,ER))?$K(T):!1};
  3334. DL5=function(T){var Q;T=g.t((Q=T.fulfillmentContent)==null?void 0:Q.fulfilledLayout,Fj);var k;return T&&((k=T.adLayoutMetadata)==null?void 0:k.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&T.layoutExitNormalTriggers===void 0};
  3335. xL5=function(T){var Q;return(T==null?void 0:(Q=T.adSlotMetadata)==null?void 0:Q.slotType)==="SLOT_TYPE_IN_PLAYER"};
  3336. HG5=function(T,Q){var k;if((k=T.questions)==null||!k.length||!T.playbackCommands||(Q===void 0||!Q)&&T.questions.length!==1)return!1;T=g.B(T.questions);for(Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var l=k=void 0,v=((k=g.t(Q,yM))==null?void 0:k.surveyAdQuestionCommon)||((l=g.t(Q,iQ))==null?void 0:l.surveyAdQuestionCommon);if(!PU5(v))return!1}return!0};
  3337. tKu=function(T){T=((T==null?void 0:T.playerOverlay)||{}).instreamSurveyAdRenderer;var Q;if(T)if(T.playbackCommands&&T.questions&&T.questions.length===1){var k,l=((Q=g.t(T.questions[0],yM))==null?void 0:Q.surveyAdQuestionCommon)||((k=g.t(T.questions[0],iQ))==null?void 0:k.surveyAdQuestionCommon);Q=PU5(l)}else Q=!1;else Q=!1;return Q};
  3338. PU5=function(T){if(!T)return!1;T=g.t(T.instreamAdPlayerOverlay,VM);var Q=g.t(T==null?void 0:T.skipOrPreviewRenderer,wM),k=g.t(T==null?void 0:T.adInfoRenderer,TT);return(g.t(T==null?void 0:T.skipOrPreviewRenderer,QN)||Q)&&k?!0:!1};
  3339. OGy=function(T){return T.linearAds!=null&&wO(T.adLayoutMetadata)};
  3340. pPC=function(T){return T.linearAd!=null&&T.adVideoStart!=null};
  3341. WBC=function(T){if(isNaN(Number(T.timeoutSeconds))||!T.text||!T.ctaButton||!g.t(T.ctaButton,g.jw)||!T.brandImage)return!1;var Q;return T.backgroundImage&&g.t(T.backgroundImage,kN)&&((Q=g.t(T.backgroundImage,kN))==null?0:Q.landscape)?!0:!1};
  3342. l1=function(T,Q,k,l,v,L,q,Y){g.x.call(this);this.Qq=T;this.T=Q;this.S=l;this.l9=v;this.Y=L;this.L=q;this.UH=Y};
  3343. eyC=function(T,Q,k){var l,v=((l=k.adSlots)!=null?l:[]).map(function(Y){return g.t(Y,oA)});
  3344. if(k.Oi)if(FN(Q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId);
  3345. else{if(T.Qq.get().U.G().V("h5_check_forecasting_renderer_for_throttled_midroll")){var L=k.yh.filter(function(Y){var U;return((U=Y.renderer)==null?void 0:U.clientForecastingAdRenderer)!=null});
  3346. L.length!==0?$LI(T.L,L,v,Q.slotId,k.ssdaiAdsConfig):kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId)}else kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId);
  3347. JtC(T.Y,Q)}else{var q;l={xQ:Math.round(((L=FN(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.xQ)||0),i$:(q=FN(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:q.i$};L=FN(Q.clientMetadata,"metadata_type_cue_point");$LI(T.L,k.yh,v,Q.slotId,k.ssdaiAdsConfig,l,L)}};
  3348. ytg=function(T,Q,k,l,v,L,q,Y){var U=Kd(T.l9.get(),1);if(FBf(T.Qq.get())){var R=vh(T.S.get(),k,l,v,U.clientPlaybackNonce,U.Y$,U.daiEnabled,U,L,q);EsT(T,R);kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return R},Q)}else kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return vh(T.S.get(),k,l,v,U.clientPlaybackNonce,U.Y$,U.daiEnabled,U,L,q,Y)},Q)};
  3349. EsT=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){var l=k.value;if(l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.fulfilledLayout)if(k=void 0,l.fulfilledLayout.renderingContent)k=FN(l.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(l.fulfilledLayout.h_){l=g.B(l.fulfilledLayout.h_);for(var v=l.next();!v.done&&(v=v.value,!v.renderingContent||!(k=FN(v.clientMetadata,"metadata_type_player_vars")));v=l.next());}}else k=void 0;if(k){T.UH.get().U.preloadVideoByPlayerVars(k,
  3350. 2,300);break}}};
  3351. VK6=function(T,Q,k,l,v,L,q){Q=iGC(Q,L,Number(l.prefetchMilliseconds)||0,q);T=Q instanceof F?Q:L1(T,l,v,Q,k);return T instanceof F?T:[T]};
  3352. T5C=function(T,Q,k,l,v){var L=lE(T.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");l=[new wn({getAdBreakUrl:l.getAdBreakUrl,xQ:0,i$:0}),new Hz(!0)];T=Q.pauseDurationMs?Q.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Zw(T.T,L),slotFulfillmentTriggers:[new Ry5(T.T)],slotExpirationTriggers:[new L7(T.T,v),new YK(T.T,L)],Ik:"core",clientMetadata:new eE(l),adSlotLoggingData:k}:new F("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new F("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
  3353. return T instanceof F?T:[T]};
  3354. QVg=function(T){var Q,k;return((Q=T.renderer)==null?void 0:(k=Q.adBreakServiceRenderer)==null?void 0:k.getAdBreakUrl)!==void 0};
  3355. qy=function(T,Q,k){if(T.beforeContentVideoIdStartedTrigger)T=T.beforeContentVideoIdStartedTrigger?new WE($e,Q,T.id):new F("Not able to create BeforeContentVideoIdStartedTrigger");else{if(T.layoutIdExitedTrigger){var l;Q=(l=T.layoutIdExitedTrigger)!=null&&l.triggeringLayoutId?new yG($e,T.layoutIdExitedTrigger.triggeringLayoutId,T.id):new F("Not able to create LayoutIdExitedTrigger")}else{if(T.layoutExitedForReasonTrigger){var v,L;((v=T.layoutExitedForReasonTrigger)==null?0:v.triggeringLayoutId)&&((L=
  3356. T.layoutExitedForReasonTrigger)==null?0:L.layoutExitReason)?(Q=ZGT(T.layoutExitedForReasonTrigger.layoutExitReason),T=Q instanceof F?Q:new EW($e,T.layoutExitedForReasonTrigger.triggeringLayoutId,[Q],T.id)):T=new F("Not able to create LayoutIdExitedForReasonTrigger")}else{if(T.onLayoutSelfExitRequestedTrigger){var q;Q=(q=T.onLayoutSelfExitRequestedTrigger)!=null&&q.triggeringLayoutId?new vO($e,T.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,T.id):new F("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(T.onNewPlaybackAfterContentVideoIdTrigger)T=
  3357. T.onNewPlaybackAfterContentVideoIdTrigger?new L7($e,Q,T.id):new F("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(T.skipRequestedTrigger){var Y;Q=(Y=T.skipRequestedTrigger)!=null&&Y.triggeringLayoutId?new gO($e,T.skipRequestedTrigger.triggeringLayoutId,T.id):new F("Not able to create SkipRequestedTrigger")}else if(T.slotIdEnteredTrigger){var U;Q=(U=T.slotIdEnteredTrigger)!=null&&U.triggeringSlotId?new MA($e,T.slotIdEnteredTrigger.triggeringSlotId,T.id):new F("Not able to create SlotIdEnteredTrigger")}else if(T.slotIdExitedTrigger){var R;
  3358. Q=(R=T.slotIdExitedTrigger)!=null&&R.triggeringSlotId?new YK($e,T.slotIdExitedTrigger.triggeringSlotId,T.id):new F("Not able to create SkipRequestedTrigger")}else if(T.surveySubmittedTrigger){var Z;Q=(Z=T.surveySubmittedTrigger)!=null&&Z.triggeringLayoutId?new Gb($e,T.surveySubmittedTrigger.triggeringLayoutId,T.id):new F("Not able to create SurveySubmittedTrigger")}else{if(T.mediaResumedTrigger)T=T.mediaResumedTrigger&&T.id?new fyf(T.id):new F("Not able to create MediaResumedTrigger");else{if(T.closeRequestedTrigger){var f;
  3359. Q=(f=T.closeRequestedTrigger)!=null&&f.triggeringLayoutId?new $J($e,T.closeRequestedTrigger.triggeringLayoutId,T.id):new F("Not able to create CloseRequestedTrigger")}else if(T.slotIdScheduledTrigger){var G;Q=(G=T.slotIdScheduledTrigger)!=null&&G.triggeringSlotId?new Zw($e,T.slotIdScheduledTrigger.triggeringSlotId,T.id):new F("Not able to create SlotIdScheduledTrigger")}else{if(T.mediaTimeRangeTrigger){var m;l=Number((m=T.mediaTimeRangeTrigger)==null?void 0:m.offsetStartMilliseconds);var I;q=Number((I=
  3360. T.mediaTimeRangeTrigger)==null?void 0:I.offsetEndMilliseconds);isFinite(l)&&isFinite(q)?(I=q,I===-1&&(I=k),k=l>I?new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:l,offsetEndMs:I},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",I===k&&l-500<=I):new Cb(l,I),T=k instanceof F?k:new jg($e,Q,k,!1,T.id)):T=new F("Not able to create MediaTimeRangeTrigger")}else if(T.contentVideoIdEndedTrigger)T=T.contentVideoIdEndedTrigger?new JQ($e,Q,!1,T.id):new F("Not able to create ContentVideoIdEndedTrigger");
  3361. else{if(T.layoutIdEnteredTrigger){var z;Q=(z=T.layoutIdEnteredTrigger)!=null&&z.triggeringLayoutId?new Fk($e,T.layoutIdEnteredTrigger.triggeringLayoutId,T.id):new F("Not able to create LayoutIdEnteredTrigger")}else if(T.timeRelativeToLayoutEnterTrigger){var w;Q=(w=T.timeRelativeToLayoutEnterTrigger)!=null&&w.triggeringLayoutId?new zb($e,Number(T.timeRelativeToLayoutEnterTrigger.durationMs),T.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,T.id):new F("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(T.onDifferentLayoutIdEnteredTrigger){var r;
  3362. Q=(r=T.onDifferentLayoutIdEnteredTrigger)!=null&&r.triggeringLayoutId&&T.onDifferentLayoutIdEnteredTrigger.slotType&&T.onDifferentLayoutIdEnteredTrigger.layoutType?new lQ($e,T.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,T.onDifferentLayoutIdEnteredTrigger.slotType,T.onDifferentLayoutIdEnteredTrigger.layoutType,T.id):new F("Not able to create CloseRequestedTrigger")}else{if(T.liveStreamBreakStartedTrigger)T=T.liveStreamBreakStartedTrigger&&T.id?new QM($e,T.id):new F("Not able to create LiveStreamBreakStartedTrigger");
  3363. else if(T.liveStreamBreakEndedTrigger)T=T.liveStreamBreakEndedTrigger&&T.id?new iZ($e,T.id):new F("Not able to create LiveStreamBreakEndedTrigger");else{if(T.liveStreamBreakScheduledDurationMatchedTrigger){var A;Q=(A=T.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&A.breakDurationMs?new VG(Number(T.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,T.id):new F("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(T.liveStreamBreakScheduledDurationNotMatchedTrigger){var D;
  3364. Q=(D=T.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&D.breakDurationMs?new Tb(Number(T.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,T.id):new F("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(T.newSlotScheduledWithBreakDurationTrigger){var K;Q=(K=T.newSlotScheduledWithBreakDurationTrigger)!=null&&K.breakDurationMs?new kK(Number(T.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,T.id):new F("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Q=
  3365. T.prefetchCacheExpiredTrigger?new qA($e,T.id):new F("Not able to convert an AdsControlflowTrigger.");T=Q}Q=T}T=Q}Q=T}T=Q}Q=T}T=Q}Q=T}T=Q}Q=T}T=Q}return T};
  3366. gH=function(T,Q){Q.T>=2&&(T.slot_pos=Q.adPodIndex);T.autoplay="1"};
  3367. kU5=function(T,Q,k,l,v,L,q,Y){return Q===null?new F("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Q,ActionCompanionAdRenderer:l}):[jVH(T,Q,q,L,function(U){var R=U.slotId;U=Y(U);var Z=l.adLayoutLoggingData,f=new eE([new dG(l),new PQ(v)]);R=xd(k.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",R);var G={layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ik:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",EG:new Map,
  3368. layoutExitNormalTriggers:[new L7(k.T,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:f,ZP:U(G),adLayoutLoggingData:Z}})]};
  3369. lCf=function(T,Q,k,l,v,L,q,Y){return Q===null?new F("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Q,TopBannerImageTextIconButtonedLayoutViewModel:l}):[jVH(T,Q,q,L,function(U){var R=U.slotId;U=Y(U);var Z=l.adLayoutLoggingData,f=new eE([new N9(l),new PQ(v)]);R=xd(k.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",R);var G={layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ik:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
  3370. EG:new Map,layoutExitNormalTriggers:[new L7(k.T,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:f,ZP:U(G),adLayoutLoggingData:Z}})]};
  3371. qjg=function(T,Q,k,l,v,L){if(!L)for(Q=g.B(Q),L=Q.next();!L.done;L=Q.next())L=L.value,My(T,L.renderer,L.config.adPlacementConfig.kind);T=Array.from(T.values()).filter(function(Z){return olt(Z)});
  3372. Q=[];L=g.B(T);for(var q=L.next(),Y={};!q.done;Y={Yf:void 0},q=L.next()){Y.Yf=q.value;q=g.B(Y.Yf.pW);for(var U=q.next(),R={};!U.done;R={sY:void 0},U=q.next())R.sY=U.value,U=function(Z,f){return function(G){return Z.sY.I5(G,f.Yf.instreamVideoAdRenderer.elementId,Z.sY.nW)}}(R,Y),R.sY.isContentVideoCompanion?Q.push(vl6(k,l,v,Y.Yf.instreamVideoAdRenderer.elementId,R.sY.associatedCompositePlayerBytesLayoutId,R.sY.adSlotLoggingData,U)):T.length>1?Q.push(LQb(k,l,v,Y.Yf.instreamVideoAdRenderer.elementId,R.sY.adSlotLoggingData,
  3373. function(Z,f){return function(G){return Z.sY.I5(G,f.Yf.instreamVideoAdRenderer.elementId,Z.sY.nW,Z.sY.associatedCompositePlayerBytesLayoutId)}}(R,Y))):Q.push(LQb(k,l,v,Y.Yf.instreamVideoAdRenderer.elementId,R.sY.adSlotLoggingData,U))}return Q};
  3374. My=function(T,Q,k){if(Q=glg(Q)){Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())if((l=l.value)&&l.externalVideoId){var v=YN(T,l.externalVideoId);v.instreamVideoAdRenderer||(v.instreamVideoAdRenderer=l,v.D3=k)}else MH("InstreamVideoAdRenderer without externalVideoId")}};
  3375. glg=function(T){var Q=[],k=T.sandwichedLinearAdRenderer&&T.sandwichedLinearAdRenderer.linearAd&&g.t(T.sandwichedLinearAdRenderer.linearAd,xK);if(k)return Q.push(k),Q;if(T.instreamVideoAdRenderer)return Q.push(T.instreamVideoAdRenderer),Q;if(T.linearAdSequenceRenderer&&T.linearAdSequenceRenderer.linearAds){T=g.B(T.linearAdSequenceRenderer.linearAds);for(k=T.next();!k.done;k=T.next())k=k.value,g.t(k,xK)&&Q.push(g.t(k,xK));return Q}return null};
  3376. olt=function(T){if(T.instreamVideoAdRenderer===void 0)return MH("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Q=g.B(T.pW),k=Q.next();!k.done;k=Q.next()){k=k.value;if(k.I5===void 0)return!1;if(k.nW===void 0)return MH("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(T.D3===void 0||k.JT===void 0||T.D3!==k.JT&&k.JT!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(T.instreamVideoAdRenderer.elementId===void 0)return MH("InstreamVideoAdRenderer has no elementId",
  3377. void 0,void 0,{kind:T.D3,"matching APSR kind":k.JT}),!1}return!0};
  3378. YN=function(T,Q){T.has(Q)||T.set(Q,{instreamVideoAdRenderer:void 0,D3:void 0,adVideoId:Q,pW:[]});return T.get(Q)};
  3379. Ug=function(T,Q,k,l,v,L,q,Y,U){v?YN(T,v).pW.push({ChV:Q,JT:k,isContentVideoCompanion:l,nW:q,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:Y,I5:U}):MH("Companion AdPlacementSupportedRenderer without adVideoId")};
  3380. RA=function(T){var Q=0;T=g.B(T.questions);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k=g.t(k,yM)||g.t(k,iQ)){var l=void 0;Q+=((l=k.surveyAdQuestionCommon)==null?void 0:l.durationMilliseconds)||0}return Q};
  3381. ZD=function(T){var Q,k,l,v,L=((k=g.t((Q=T.questions)==null?void 0:Q[0],yM))==null?void 0:k.surveyAdQuestionCommon)||((v=g.t((l=T.questions)==null?void 0:l[0],iQ))==null?void 0:v.surveyAdQuestionCommon),q;Q=[].concat(g.ZH(((q=T.playbackCommands)==null?void 0:q.instreamAdCompleteCommands)||[]),g.ZH((L==null?void 0:L.timeoutCommands)||[]));var Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ;return{impressionCommands:(Y=T.playbackCommands)==null?void 0:Y.impressionCommands,errorCommands:(U=T.playbackCommands)==
  3382. null?void 0:U.errorCommands,muteCommands:(R=T.playbackCommands)==null?void 0:R.muteCommands,unmuteCommands:(Z=T.playbackCommands)==null?void 0:Z.unmuteCommands,pauseCommands:(f=T.playbackCommands)==null?void 0:f.pauseCommands,rewindCommands:(G=T.playbackCommands)==null?void 0:G.rewindCommands,resumeCommands:(m=T.playbackCommands)==null?void 0:m.resumeCommands,skipCommands:(I=T.playbackCommands)==null?void 0:I.skipCommands,progressCommands:(z=T.playbackCommands)==null?void 0:z.progressCommands,nUK:(w=
  3383. T.playbackCommands)==null?void 0:w.clickthroughCommands,fullscreenCommands:(r=T.playbackCommands)==null?void 0:r.fullscreenCommands,activeViewViewableCommands:(A=T.playbackCommands)==null?void 0:A.activeViewViewableCommands,activeViewMeasurableCommands:(D=T.playbackCommands)==null?void 0:D.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(K=T.playbackCommands)==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(O=T.playbackCommands)==
  3384. null?void 0:(E=O.activeViewTracking)==null?void 0:E.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(e=T.playbackCommands)==null?void 0:(vT=e.activeViewTracking)==null?void 0:vT.activeViewAudioMeasurableCommands,endFullscreenCommands:(f5=T.playbackCommands)==null?void 0:f5.endFullscreenCommands,abandonCommands:(qJ=T.playbackCommands)==null?void 0:qJ.abandonCommands,completeCommands:Q}};
  3385. YjT=function(T,Q,k,l,v,L,q){return function(Y,U){return MZH(T,U.slotId,Y,L,function(R,Z){var f=U.layoutId;R=q(R);return f1(Q,f,Z,v,R,"LAYOUT_TYPE_SURVEY",[new jE(k),l],k.adLayoutLoggingData)})}};
  3386. ZxC=function(T,Q,k,l,v,L,q){if(!Ugb(T))return new F("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:T});var Y=T.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Rby(L,Q,k,l,function(U){var R=U.slotId;U=q(U);R=xd(v.S.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",R);var Z={layoutId:R,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ik:"core"},f=new yG(v.T,l);return{layoutId:R,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[f],
  3387. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new ke(Y)]),ZP:U(Z)}})]};
  3388. Ugb=function(T){T=g.t(T==null?void 0:T.additionalPlayerOverlay,fCt);if(!T)return!1;var Q=T.slidingMessages;return T.title&&Q&&Q.length!==0?!0:!1};
  3389. mgg=function(T,Q,k,l,v){var L;if((L=T.playerOverlay)==null||!L.instreamSurveyAdRenderer)return function(){return[]};
  3390. if(!tKu(T))return function(){return new F("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:T})};
  3391. var q=T.playerOverlay.instreamSurveyAdRenderer,Y=RA(q);return Y<=0?function(){return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:q})}:function(U,R){var Z=GUH(U,k,l,function(f){var G=f.slotId;
  3392. f=R(f);var m=ZD(q);G=xd(v.S.get(),"LAYOUT_TYPE_SURVEY",G);var I={layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",Ik:"core"},z=new yG(v.T,l),w=new gO(v.T,G),r=new Gb(v.T,G),A=new hy5(v.T);return{layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",EG:new Map,layoutExitNormalTriggers:[z,A],layoutExitSkipTriggers:[w],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[r],uC:[],Ik:"core",clientMetadata:new eE([new QZ(q),new PQ(Q),new Aj(Y/1E3),new Di(m)]),ZP:f(I),adLayoutLoggingData:q.adLayoutLoggingData}});
  3393. U=ZxC(T,k,Z.slotId,l,v,U,R);return U instanceof F?U:[Z].concat(g.ZH(U))}};
  3394. zb6=function(T,Q,k,l,v,L,q){q=q===void 0?!1:q;var Y=[];try{var U=[];if(k.renderer.linearAdSequenceRenderer)var R=function(z){z=ICg(z.slotId,k,Q,v(z),l,L,q);U=z.d_H;return z.jh};
  3395. else if(k.renderer.instreamVideoAdRenderer)R=function(z){var w=z.slotId;z=v(z);var r=q,A=k.config.adPlacementConfig,D=hbC(A),K=D.Kf,O=D.uQ;D=k.renderer.instreamVideoAdRenderer;var E;if(D==null?0:(E=D.playerOverlay)==null?0:E.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var e=GT(D,r);E=Math.min(K+e.videoLengthSeconds*1E3,O);r=new pw(0,[e.videoLengthSeconds]);O=e.videoLengthSeconds;var vT=e.playerVars,f5=e.instreamAdPlayerOverlayRenderer,qJ=e.playerOverlayLayoutRenderer,
  3396. g6=e.adVideoId,QC=sVT(k),A5=e.EG;e=e.Tm;var Et=D==null?void 0:D.adLayoutLoggingData;D=D==null?void 0:D.sodarExtensionData;w=xd(Q.S.get(),"LAYOUT_TYPE_MEDIA",w);var QJ={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",Ik:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",EG:A5,layoutExitNormalTriggers:[new iZ(Q.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new $t(l),new Zi(O),new fp(vT),new IH(K),new hj(E),f5&&
  3397. new J6(f5),qJ&&new e6(qJ),new PQ(A),new WQ(g6),new HQ(r),new zp(QC),D&&new mU(D),new gn({current:null}),new SE({}),new np(e)].filter(Sjf)),ZP:z(QJ),adLayoutLoggingData:Et}};
  3398. else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var Z=C36(T,l,k.adSlotLoggingData,R);Y.push(Z);for(var f=g.B(U),G=f.next();!G.done;G=f.next()){var m=G.value,I=m(T,v);if(I instanceof F)return I;Y.push.apply(Y,g.ZH(I))}}catch(z){return new F(z,{errorMessage:z.message,AdPlacementRenderer:k,numberOfSurveyRenderers:B5X(k)})}return Y};
  3399. B5X=function(T){T=(T.renderer.linearAdSequenceRenderer||{}).linearAds;return T!=null&&T.length?T.filter(function(Q){var k,l;return((k=g.t(Q,xK))==null?void 0:(l=k.playerOverlay)==null?void 0:l.instreamSurveyAdRenderer)!=null}).length:0};
  3400. ICg=function(T,Q,k,l,v,L,q){var Y=Q.config.adPlacementConfig,U=hbC(Y),R=U.Kf,Z=U.uQ;U=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;if(U==null||!U.length)throw new TypeError("Expected linear ads");var f=[],G={xa:R,QF:0,Ygq:f};U=U.map(function(I){return X3X(T,I,G,k,l,Y,v,Z,q)}).map(function(I,z){z=new pw(z,f);
  3401. return I(z)});
  3402. var m=U.map(function(I){return I.bN});
  3403. return{jh:w3J(k,T,R,m,Y,sVT(Q),l,Z,L),d_H:U.map(function(I){return I.ii9})}};
  3404. X3X=function(T,Q,k,l,v,L,q,Y,U){var R=GT(g.t(Q,xK),U),Z=k.xa,f=k.QF,G=Math.min(Z+R.videoLengthSeconds*1E3,Y);k.xa=G;k.QF++;k.Ygq.push(R.videoLengthSeconds);var m,I,z=(m=g.t(Q,xK))==null?void 0:(I=m.playerOverlay)==null?void 0:I.instreamSurveyAdRenderer;if(R.adVideoId==="nPpU29QrbiU"&&z==null)throw new TypeError("Survey slate media has no survey overlay");return function(w){gH(R.playerVars,w);var r,A,D=R.videoLengthSeconds,K=R.playerVars,O=R.EG,E=R.Tm,e=R.instreamAdPlayerOverlayRenderer,vT=R.playerOverlayLayoutRenderer,
  3405. f5=R.adVideoId,qJ=(r=g.t(Q,xK))==null?void 0:r.adLayoutLoggingData;r=(A=g.t(Q,xK))==null?void 0:A.sodarExtensionData;A=xd(l.S.get(),"LAYOUT_TYPE_MEDIA",T);var g6={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ik:"adapter"};w={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",EG:O,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"adapter",clientMetadata:new eE([new $t(q),new Zi(D),new fp(K),new IH(Z),new hj(G),new s9(f),new gn({current:null}),
  3406. e&&new J6(e),vT&&new e6(vT),new PQ(L),new WQ(f5),new HQ(w),r&&new mU(r),z&&new u2(z),new SE({}),new np(E)].filter(Sjf)),ZP:v(g6),adLayoutLoggingData:qJ};D=mgg(g.t(Q,xK),L,q,w.layoutId,l);return{bN:w,ii9:D}}};
  3407. GT=function(T,Q){if(!T)throw new TypeError("Expected instream video ad renderer");if(!T.playerVars)throw new TypeError("Expected player vars in url encoded string");var k=QI(T.playerVars),l=Number(k.length_seconds);if(isNaN(l))throw new TypeError("Expected valid length seconds in player vars");var v=Number(T.trimmedMaxNonSkippableAdDurationMs);l=isNaN(v)?l:Math.min(l,v/1E3);v=T.playerOverlay||{};v=v.instreamAdPlayerOverlayRenderer===void 0?null:v.instreamAdPlayerOverlayRenderer;var L=T.playerOverlay||
  3408. {};L=L.playerOverlayLayoutRenderer===void 0?null:L.playerOverlayLayoutRenderer;var q=k.video_id;q||(q=(q=T.externalVideoId)?q:void 0);if(!q)throw new TypeError("Expected valid video id in IVAR");if(Q&&l===0){var Y;Q=(Y=dgt[q])!=null?Y:l}else Q=l;return{playerVars:k,videoLengthSeconds:Q,instreamAdPlayerOverlayRenderer:v,playerOverlayLayoutRenderer:L,adVideoId:q,EG:T.pings?ZJ(T.pings):new Map,Tm:R0(T.pings)}};
  3409. sVT=function(T){T=Number(T.driftRecoveryMs);return isNaN(T)||T<=0?null:T};
  3410. hbC=function(T){var Q=T.adTimeOffset||{};T=Q.offsetEndMilliseconds;Q=Number(Q.offsetStartMilliseconds);if(isNaN(Q))throw new TypeError("Expected valid start offset");T=Number(T);if(isNaN(T))throw new TypeError("Expected valid end offset");return{Kf:Q,uQ:T}};
  3411. N5I=function(T){var Q,k=(Q=FN(T.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!k)return null;Q=FN(T.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var l=T.layoutId,v=FN(T.clientMetadata,"metadata_type_content_cpn"),L=FN(T.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q=FN(T.clientMetadata,"metadata_type_player_underlay_renderer"),Y=FN(T.clientMetadata,"metadata_type_ad_placement_config"),U=FN(T.clientMetadata,"metadata_type_video_length_seconds");
  3412. var R=pp(T.clientMetadata,"metadata_type_layout_enter_ms")&&pp(T.clientMetadata,"metadata_type_layout_exit_ms")?(FN(T.clientMetadata,"metadata_type_layout_exit_ms")-FN(T.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MA:l,contentCpn:v,n3:k,ud:Q,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:q,adPlacementConfig:Y,videoLengthSeconds:U,Es:R,inPlayerLayoutId:FN(T.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FN(T.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
  3413. rlb=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I){l=lE(l,"SLOT_TYPE_PLAYER_BYTES");T=AlT(v,T,q,k,l,U,R);if(T instanceof F)return T;var z;R=(z=FN(T.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:z.layoutId;if(!R)return new F("Invalid adNotify layout");Q=bxX(R,v,L,k,Y,Q,U,Z,f,G,m,I,q);return Q instanceof F?Q:[T].concat(g.ZH(Q))};
  3414. bxX=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){k=clC(Q,k,l,L,q,Y,U,R,Z,f,G);if(k instanceof F)return k;T=DgI(Q,T,q,v,k);return T instanceof F?T:[].concat(g.ZH(T.GH),[T.DK])};
  3415. u05=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){Q=clC(T,Q,k,v,L,Y,U,R,Z,f,G,m);if(Q instanceof F)return Q;T=aCC(T,k,L,q,l,Y.Cc,Q);return T instanceof F?T:T.GH.concat(T.DK)};
  3416. clC=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){var G=mZ(l,k,R);return G instanceof Jj?new F(G):R.U.G().experiments.Wd("html5_refactor_in_player_slot_generation")?function(m){var I=new pw(0,[G.IG]);m=nlH(Q,G.layoutId,G.Ny,k,IA(G.playerVars,G.iz,L,U,I),G.IG,v,I,q(m),Y.get(G.Ny.externalVideoId),f);I=[];if(G.Ny.playerOverlay.instreamAdPlayerOverlayRenderer){var z=N5I(m);if(!z)return MH("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,m),{layout:m,GH:[]};
  3417. I=[KQb(T,z.contentCpn,z.MA,function(r){return hC(Q,r.slotId,"core",z,Q0(Z,r))},z.inPlayerSlotId)].concat(g.ZH(I));
  3418. if(z.instreamAdPlayerUnderlayRenderer&&sg(R)){var w=z.instreamAdPlayerUnderlayRenderer;I=[xgT(T,z.contentCpn,z.MA,function(r){return P3H(Q,r.slotId,w,z.adPlacementConfig,z.MA,Q0(Z,r))})].concat(g.ZH(I))}}return{layout:m,
  3419. GH:I}}:function(m){var I=new pw(0,[G.IG]);
  3420. return{layout:nlH(Q,G.layoutId,G.Ny,k,IA(G.playerVars,G.iz,L,U,I),G.IG,v,I,q(m),Y.get(G.Ny.externalVideoId),f),GH:[]}}};
  3421. mZ=function(T,Q,k){if(!T.playerVars)return new Jj("No playerVars available in InstreamVideoAdRenderer.");var l,v;if(T.elementId==null||T.playerVars==null||T.playerOverlay==null||((l=T.playerOverlay)==null?void 0:l.instreamAdPlayerOverlayRenderer)==null&&((v=T.playerOverlay)==null?void 0:v.playerOverlayLayoutRenderer)==null||T.pings==null||T.externalVideoId==null)return new Jj("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:T});l=QI(T.playerVars);v=Number(l.length_seconds);
  3422. isNaN(v)&&(v=0,MH("Expected valid length seconds in player vars but got NaN"));if(k.Zg(Q.kind==="AD_PLACEMENT_KIND_START")){if(T.layoutId===void 0)return new Jj("Expected server generated layout ID in instreamVideoAdRenderer");Q=T.layoutId}else Q=T.elementId;return{layoutId:Q,Ny:T,playerVars:l,iz:T.playerVars,IG:v}};
  3423. IA=function(T,Q,k,l,v){T.iv_load_policy=l;Q=QI(Q);if(Q.cta_conversion_urls)try{T.cta_conversion_urls=JSON.parse(Q.cta_conversion_urls)}catch(L){MH(L)}k.w8&&(T.ctrl=k.w8);k.SO&&(T.ytr=k.SO);k.jg&&(T.ytrcc=k.jg);k.isMdxPlayback&&(T.mdx="1");T.vvt&&(T.vss_credentials_token=T.vvt,k.Yz&&(T.vss_credentials_token_type=k.Yz),k.mdxEnvironment&&(T.mdx_environment=k.mdxEnvironment));gH(T,v);return T};
  3424. Hx6=function(T){var Q=new Map;T=g.B(T);for(var k=T.next();!k.done;k=T.next())(k=k.value.renderer.remoteSlotsRenderer)&&k.hostElementId&&Q.set(k.hostElementId,k);return Q};
  3425. Sw=function(T){return T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
  3426. tZu=function(T){return T!=null};
  3427. FQ5=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I){for(var z=[],w=g.B(T),r=w.next();!r.done;r=w.next())if(r=r.value,!DL5(r)&&!xL5(r)){var A=Sw(r)&&!!r.slotEntryTrigger.beforeContentVideoIdStartedTrigger,D=U.Zg(A),K=Ox5(r,R,l,k.Y$,D);if(K instanceof F)return K;var O=void 0,E={slotId:r.adSlotMetadata.slotId,slotType:r.adSlotMetadata.slotType,slotPhysicalPosition:(O=r.adSlotMetadata.slotPhysicalPosition)!=null?O:1,Ik:"core",slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,
  3428. slotExpirationTriggers:K.slotExpirationTriggers},e=g.t(r.fulfillmentContent.fulfilledLayout,p7);if(e){if(!OR(e))return new F("Invalid PlayerBytesAdLayoutRenderer");O=f&&!(Sw(r)&&r.slotEntryTrigger.beforeContentVideoIdStartedTrigger);K=K.slotFulfillmentTriggers.some(function(vT){return vT instanceof VG});
  3429. D=O?p3u(E,r.adSlotMetadata.triggerEvent,e,k,l,L,R,T,D,G,K,m):WQH(E,r.adSlotMetadata.triggerEvent,e,Q,k,l,v,L,q,Y,U,R,T,Z,D,r.adSlotMetadata.triggeringSourceLayoutId);if(D instanceof F)return D;K=[];I?K.push(new RH({current:I})):K.push(new RH({current:null}));Sw(r)&&K.push(new tj({qp:Sw(r)&&!!r.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));O&&K.push(new SE({}));k.Cc&&K.push(new aH({}));K.push(new Pz(A));r=Object.assign({},E,{clientMetadata:new eE(K),fulfilledLayout:D.layout,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});
  3430. z.push.apply(z,g.ZH(D.GH));z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,Fj)){if(!ctT(A))return new F("Invalid PlayerUnderlayAdLayoutRenderer");A=$gI(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent,r.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,uP6)){if(!BSH(A))return new F("Invalid AboveFeedAdLayoutRenderer");
  3431. A=JlI(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent,r.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,ns5)){if(!wO(A.adLayoutMetadata)||!g.t(A.renderingContent,dO))return new F("Invalid BelowPlayerAdLayoutRenderer");A=JlI(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent,r.adSlotMetadata.triggeringSourceLayoutId);
  3432. if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,ER)){if(!$K(A))return new F("Invalid PlayerBytesSequenceItemAdLayoutRenderer");A=eb6(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent);if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else return new F("Unable to retrieve a client slot ["+
  3433. E.slotType+"] from a given AdSlotRenderer")}return z};
  3434. eb6=function(T,Q,k,l,v,L){var q={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"};Q=C1(T,Q,k);return Q instanceof F?Q:(k=g.t(T.renderingContent,WO))&&k.pings?Object.assign({},q,{renderingContent:T.renderingContent,EG:ZJ(k.pings)},Q,{ZP:Q0(l,v)(q),clientMetadata:new eE([new PQ(Bh(L))]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData}):new F("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")};
  3435. JlI=function(T,Q,k,l,v,L,q){var Y={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"};Q=C1(T,Q,k);if(Q instanceof F)return Q;k=[];k.push(new PQ(Bh(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&q!==void 0&&k.push(new l2(q));return Object.assign({},Y,{renderingContent:T.renderingContent,EG:new Map([["impression",El5(T)]])},Q,{ZP:Q0(l,v)(Y),clientMetadata:new eE(k),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})};
  3436. $gI=function(T,Q,k,l,v,L,q){if(T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(q=g.t(T.renderingContent,Jk))if(q=g.t(q.sidePanel,bGI)){var Y={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"};Q=C1(T,Q,k);T=Q instanceof F?Q:Object.assign({},Y,{renderingContent:T.renderingContent,EG:new Map([["impression",q.impressionPings||[]],["resume",q.resumePings||[]]])},Q,{ZP:Q0(l,v)(Y),clientMetadata:new eE([new PQ(Bh(L))]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})}else T=
  3437. new F("DismissablePanelTextPortraitImageRenderer is missing");else T=new F("SqueezebackPlayerSidePanelRenderer is missing");else T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.t(T.renderingContent,dL5)?(q={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"},Q=C1(T,Q,k),T=Q instanceof F?Q:Object.assign({},q,{renderingContent:T.renderingContent,EG:new Map},Q,{ZP:Q0(l,v)(q),clientMetadata:new eE([new PQ(Bh(L))]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})):
  3438. T=new F("CounterfactualRenderer is missing"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?T=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?T=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.t(T.renderingContent,eg)?(L={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,
  3439. Ik:"core"},Q=C1(T,Q,k),T=Q instanceof F?Q:q?Object.assign({},L,{renderingContent:T.renderingContent,EG:new Map},Q,{ZP:Q0(l,v)(L),clientMetadata:new eE([new l2(q)]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData}):new F("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):T=new F("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.t(T.renderingContent,NSu)?
  3440. (L={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"},Q=C1(T,Q,k),T=Q instanceof F?Q:Object.assign({},L,{renderingContent:T.renderingContent,EG:new Map([])},Q,{ZP:Q0(l,v)(L),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new eE([])})):T=new F("AdsEngagementPanelSectionListViewModel is missing"):T=new F("LayoutType ["+T.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return T};
  3441. p3u=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){if((f==null?void 0:f.xQ)===void 0||(f==null?void 0:f.i$)===void 0)return new F("Cached ad break range from cue point is missing");var G=C1(k,v,l.Y$);if(G instanceof F)return G;G={layoutExitMuteTriggers:[],layoutExitNormalTriggers:G.layoutExitNormalTriggers,layoutExitSkipTriggers:[],uC:[],layoutExitUserInputSubmittedTriggers:[]};if(g.t(k.renderingContent,xK))return T=yl5(T,Q,k,G,v,L,Y,U,l.Y$,q,f.xQ,f.i$),T instanceof F?T:T.pY===void 0?new F("Expecting associatedInPlayerSlot for single DAI media layout"):
  3442. {layout:T.layout,GH:[T.pY]};var m=g.t(k.renderingContent,n7);if(m){if(!wO(k.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!K7(m))return new F("Invalid sequential layout");m=m.sequentialLayouts.map(function(I){return I.playerBytesAdLayoutRenderer});
  3443. T=ix6(T,Q,k,G,m,v,l,L,q,U,Y,R,f.xQ,f.i$,Z);return T instanceof F?T:{layout:T.sQ,GH:T.GH}}return new F("Not able to convert a sequential layout")};
  3444. ix6=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I){var z=VZ5(v,G,m);if(z instanceof F)return z;var w=[],r=[];z=g.B(z);for(var A=z.next();!A.done;A=z.next()){var D=A.value;A=T;var K=v[D.QF],O=D,E=Q;D=L;var e=q,vT=Y,f5=U,qJ=R,g6=Z,QC=zT(K);if(QC instanceof F)A=QC;else{var A5={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,Ik:"adapter"};O=TGg(E,K,O,D);O instanceof F?A=O:(A=Object.assign({},A5,Xu,{EG:QC,renderingContent:K.renderingContent,clientMetadata:new eE(O),ZP:Q0(vT,A)(A5),
  3445. adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData}),A=(K=wH(g6,A,D,e.Y$,vT,f5,qJ,void 0,!0))?K instanceof F?K:{layout:A,pY:K}:new F("Expecting associatedInPlayerSlot"))}if(A instanceof F)return A;w.push(A.layout);r.push(A.pY)}v={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,Ik:"core"};Q=[new zp(Number(k.driftRecoveryMs)),new IH(G),new hj(m),new PQ(Bh(Q)),new xe(f),new SE({})];I&&Q.push(new O9({}));return{sQ:Object.assign({},v,l,{h_:w,EG:new Map,clientMetadata:new eE(Q),
  3446. ZP:Q0(Y,T)(v)}),GH:r}};
  3447. yl5=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){if(!OR(k))return new F("Invalid PlayerBytesAdLayoutRenderer");var G=zT(k);if(G instanceof F)return G;var m={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,Ik:"core"},I=g.t(k.renderingContent,xK);if(!I)return new F("Invalid rendering content for DAI media layout");I=GT(I,!1);Z={YL:I,QF:0,xa:Z,q0:Math.min(Z+I.videoLengthSeconds*1E3,f),jo:new pw(0,[I.videoLengthSeconds])};var z;f=(z=Number(k.driftRecoveryMs))!=null?z:void 0;Q=TGg(Q,
  3448. k,Z,v,f);if(Q instanceof F)return Q;T=Object.assign({},m,l,{EG:G,renderingContent:k.renderingContent,clientMetadata:new eE(Q),ZP:Q0(L,T)(m),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});return(v=wH(q,T,v,U,L,R,Y,void 0,!0))?v instanceof F?v:{layout:T,pY:v}:new F("Expecting associatedInPlayerSlot")};
  3449. WQH=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z){var w=C1(k,L,v.Y$);if(w instanceof F)return w;if(g.t(k.renderingContent,xK)){U=QWu([k],v,U);if(U instanceof F)return U;if(U.length!==1)return new F("Only expected one media layout.");T=jWX(T,Q,k,w,U[0],void 0,"core",l,L,q,Y,R,G,m,I,v.Y$,f,void 0,z);return T instanceof F?T:{layout:T.layout,GH:T.pY?[T.pY]:[]}}var r=g.t(k.renderingContent,n7);if(r){if(!wO(k.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!K7(r))return new F("Invalid sequential layout");
  3450. r=r.sequentialLayouts.map(function(A){return A.playerBytesAdLayoutRenderer});
  3451. T=kFt(T,Q,k.adLayoutMetadata,w,r,l,L,v,U,q,Y,R,Z,f,I,G,m,z);return T instanceof F?T:{layout:T.sQ,GH:T.GH}}return new F("Not able to convert a sequential layout")};
  3452. kFt=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r){var A=new pT({current:null}),D=QWu(v,Y,U);if(D instanceof F)return D;U=[];for(var K=[],O=void 0,E=0;E<v.length;E++){var e=v[E];if(g.t(e.renderingContent,xK)){O=Tn(G)&&QG(G)?D[E+1]:void 0;O=jWX(T,Q,e,Xu,D[E],O,"adapter",L,q,R,Z,f,z,w,I,Y.Y$,m,A,r);if(O instanceof F)return O;U.push(O.layout);O.pY&&K.push(O.pY);O=D[E]}else if(g.t(e.renderingContent,PO)){var vT=T,f5=Z;if(OR(e)){var qJ=g.t(e.renderingContent,PO);if(qJ&&qJ.playerVars!==void 0){var g6={layoutId:e.adLayoutMetadata.layoutId,
  3453. layoutType:e.adLayoutMetadata.layoutType,Ik:"adapter"};qJ=QI(qJ.playerVars);qJ.autoplay="1";e=Object.assign({},g6,Xu,{renderingContent:e.renderingContent,clientMetadata:new eE([new Cp({}),new PQ({kind:"AD_PLACEMENT_KIND_START"}),new gn({current:null}),new fp(qJ)]),EG:new Map,ZP:Q0(f5,vT)(g6),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}else e=new F("Invalid ad intro renderer")}else e=new F("Invalid PlayerBytesAdLayoutRenderer");if(e instanceof F)return e;U.push(e)}else if(g.t(e.renderingContent,
  3454. y1))if(w){e=ln5(T,e,Z,Bh(Q),O);if(e instanceof F)return e;U.push(e);e=wH(z,e,q,Y.Y$,Z,m,I,A,!1);if(e instanceof F)return e;if(e)K.push(e);else return new F("Not able to retrieve InPlayer slot for endcap")}else{a:{vT=e.adLayoutMetadata.layoutId;f5=g.B(L);for(g6=f5.next();!g6.done;g6=f5.next()){g6=g6.value;var QC=qJ=void 0,A5=((qJ=g6.renderer)==null?void 0:(QC=qJ.linearAdSequenceRenderer)==null?void 0:QC.linearAds)||[];qJ=g.B(A5);for(QC=qJ.next();!QC.done;QC=qJ.next())if((QC=g.t(QC.value,y1))&&QC.inPlayerSlotId!==
  3455. void 0&&QC.inPlayerLayoutId!==void 0&&QC.associatedPlayerBytesLayoutId!==void 0&&QC.associatedPlayerBytesLayoutId===vT){vT={Vs:QC,adPlacementConfig:g6.config.adPlacementConfig};break a}}vT=new F("Not able to find associated InPlayer slot for endcap")}if(vT instanceof F)return vT;e=ln5(T,e,Z,vT.adPlacementConfig,O);if(e instanceof F)return e;U.push(e);e=ot5(e.layoutId,m,q,vT,A,Z);if(e instanceof F)return e;K.push(e)}}Q={layoutId:k.layoutId,layoutType:k.layoutType,Ik:"core"};return{sQ:Object.assign({},
  3456. Q,l,{h_:U,EG:new Map,clientMetadata:new eE([A]),ZP:Q0(Z,T)(Q)}),GH:K}};
  3457. jWX=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A){if(!OR(k))return new F("Invalid PlayerBytesAdLayoutRenderer");var D=zT(k);if(D instanceof F)return D;q={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,Ik:q};a:{var K=k.adLayoutMetadata.layoutId,O=g.t(k.renderingContent,xK);if(O&&uQ(O)){var E=[];if(m)E.push(new PQ(Bh(Q)));else{b:{Y=g.B(Y);for(Q=Y.next();!Q.done;Q=Y.next()){Q=Q.value;var e=glg(Q.renderer)||[],vT=g.B(e);for(e=vT.next();!e.done;e=vT.next())if(e=e.value,
  3458. e.associatedPlayerBytesLayoutId===K){e.associatedPlayerBytesLayoutId?(Y=e.playerOverlay,vT=Y!==void 0&&Y.playerOverlayLayoutRenderer!==void 0&&Y.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&Y.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,Y=Y!==void 0&&Y.instreamAdPlayerOverlayRenderer!==void 0&&Y.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&Y.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||vT):Y=!1;Q=Y?{instreamVideoAdRenderer:e,adPlacementConfig:Q.config.adPlacementConfig}:
  3459. new F("Invalid InPlayer shim");break b}}Q=new F("Not able to find associated InPlayer slot")}if(Q instanceof F){L=Q;break a}Y=Q.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;e=Q.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var f5;vT=(f5=Y==null?void 0:Y.inPlayerSlotId)!=null?f5:e==null?void 0:e.inPlayerSlotId;var qJ;f5=(qJ=Y==null?void 0:Y.inPlayerLayoutId)!=null?qJ:e==null?void 0:e.inPlayerLayoutId;if(vT===void 0){L=new F("InPlayer shim slot id is undefined");
  3460. break a}if(f5===void 0){L=new F("InPlayer shim layout id is undefined");break a}E.push(new oH(f5),new Lp(vT),new s9(v.jo.adPodIndex),new PQ(Q.adPlacementConfig));Y&&E.push(new J6(Y));e&&E.push(new e6(e))}E.push(new HQ(v.jo),new WQ(O.externalVideoId),new $t(U),new Di({impressionCommands:O.impressionCommands,abandonCommands:O.onAbandonCommands,completeCommands:O.completeCommands,progressCommands:O.adVideoProgressCommands}),new fp(v.BM),new gn({current:null}),new Zi(v.KFd.IG),new np(R0(O.pings)),new t6(v.jo.adPodIndex));
  3461. A&&E.push(new l2(A));(v=vtI(K,G))&&E.push(new Ea(v));L&&E.push(new Gp(L.BM));O.adNextParams&&E.push(new rG(O.adNextParams));O.clickthroughEndpoint&&E.push(new cQ(O.clickthroughEndpoint));O.legacyInfoCardVastExtension&&E.push(new rn(O.legacyInfoCardVastExtension));O.sodarExtensionData&&E.push(new mU(O.sodarExtensionData));r&&O.adPodSkipTarget&&O.adPodSkipTarget>0&&(E.push(r),E.push(new Oa(O.adPodSkipTarget)));(L=R.get(O.externalVideoId))&&E.push(new Nu(L));L=E}else L=new F("Invalid vod media renderer")}if(L instanceof
  3462. F)return L;T=Object.assign({},q,l,{EG:D,renderingContent:k.renderingContent,clientMetadata:new eE(L),ZP:Q0(Z,T)(q),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});k=g.t(k.renderingContent,xK);if(!k||!uQ(k))return new F("Invalid meida renderer");f=YN(f,k.externalVideoId);f.instreamVideoAdRenderer=k;f.D3="AD_PLACEMENT_KIND_START";return m?(U=wH(G,T,U,z,Z,w,I,r,!1),U instanceof F?U:vtI(T.layoutId,G)&&U?{layout:Object.assign({},T,{clientMetadata:new eE(L.concat(new yj(U)))})}:{layout:T,pY:U}):
  3463. {layout:T}};
  3464. ln5=function(T,Q,k,l,v){if(!OR(Q))return new F("Invalid PlayerBytesAdLayoutRenderer");var L=g.t(Q.renderingContent,y1);if(!L||L.durationMilliseconds===void 0)return new F("Invalid endcap renderer");var q={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Ik:"adapter"};l=[new b2(L.durationMilliseconds),new Di({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new PQ(l),
  3465. new vz("LAYOUT_TYPE_ENDCAP")];if(v){l.push(new t6(v.jo.adPodIndex-1));l.push(new s9(v.jo.adPodIndex));var Y;l.push(new Oa((Y=v.adPodSkipTarget)!=null?Y:-1))}return Object.assign({},q,Xu,{renderingContent:Q.renderingContent,clientMetadata:new eE(l),EG:L.skipPings?new Map([["skip",L.skipPings]]):new Map,ZP:Q0(k,T)(q),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})};
  3466. wH=function(T,Q,k,l,v,L,q,Y,U){T=T.filter(function(f){return f.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&f.adSlotMetadata.triggeringSourceLayoutId===Q.layoutId});
  3467. if(T.length!==0){if(T.length!==1)return new F("Invalid InPlayer slot association for the given PlayerBytes layout");T=T[0];q=Ox5(T,L,k,l,q);if(q instanceof F)return q;var R;L={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(R=T.adSlotMetadata.slotPhysicalPosition)!=null?R:1,Ik:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:q.slotExpirationTriggers};R=g.t(T.fulfillmentContent.fulfilledLayout,
  3468. ayT);if(!R||!wPH(R))return new F("Invalid InPlayerAdLayoutRenderer");q={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Ik:"core"};k=C1(R,k,l);if(k instanceof F)return k;l=[];var Z=R.adLayoutMetadata.layoutType;U&&l.push(new SE({}));if(Z==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")l.push.apply(l,g.ZH(LSH(T.adSlotMetadata.triggerEvent,Q)));else if(Z==="LAYOUT_TYPE_ENDCAP"||Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){l.push(new PQ(Bh(T.adSlotMetadata.triggerEvent)));
  3469. if(Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new F("Cannot parse endcap layout since AdUxReadyApi is not provided");Y&&l.push(Y)}else return new F("Not able to parse an SDF InPlayer layout");v=Object.assign({},q,k,{renderingContent:R.renderingContent,EG:new Map,ZP:Q0(v,L)(q),clientMetadata:new eE(l),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},L,{fulfilledLayout:v,clientMetadata:new eE([])})}};
  3470. LSH=function(T,Q){var k=[];k.push(new PQ(Bh(T)));k.push(new l2(Q.layoutId));(T=FN(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&k.push(new gn(T));(T=FN(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&k.push(new pT(T));(T=FN(Q.clientMetadata,"metadata_type_remote_slots_data"))&&k.push(new Nu(T));(T=FN(Q.clientMetadata,"metadata_type_ad_next_params"))&&k.push(new rG(T));(T=FN(Q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&k.push(new cQ(T));(T=
  3471. FN(Q.clientMetadata,"metadata_type_ad_pod_info"))&&k.push(new HQ(T));(Q=FN(Q.clientMetadata,"metadata_type_ad_video_id"))&&k.push(new WQ(Q));return k};
  3472. ot5=function(T,Q,k,l,v,L){function q(R){return dH(Q,R)}
  3473. var Y=l.Vs.inPlayerSlotId,U={layoutId:l.Vs.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ik:"core"};k={slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:new Fk(q,T),slotFulfillmentTriggers:[new MA(q,Y)],slotExpirationTriggers:[new YK(q,Y),new L7(q,k)]};T=Object.assign({},U,{layoutExitNormalTriggers:[new yG(q,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],EG:new Map,clientMetadata:new eE([new Vj(l.Vs),
  3474. new PQ(l.adPlacementConfig),v]),ZP:Q0(L,k)(U),adLayoutLoggingData:l.Vs.adLayoutLoggingData});return Object.assign({},k,{clientMetadata:new eE([new XN(T)])})};
  3475. vtI=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())if(k=k.value,k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var l=g.t(k.fulfillmentContent.fulfilledLayout,Fj);if(l&&(l=g.t(l.renderingContent,Jk))&&l.associatedPlayerBytesLayoutId===T)return k}};
  3476. Ox5=function(T,Q,k,l,v){var L=qaf(qy(T.slotEntryTrigger,k,l),v,T,Q);if(L instanceof F)return L;for(var q=[],Y=g.B(T.slotFulfillmentTriggers),U=Y.next();!U.done;U=Y.next()){U=qy(U.value,k,l);if(U instanceof F)return U;q.push(U)}q=gtC(q,v,T,Q);Q=[];T=g.B(T.slotExpirationTriggers);for(v=T.next();!v.done;v=T.next()){v=qy(v.value,k,l);if(v instanceof F)return v;Q.push(v)}return{slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:Q}};
  3477. qaf=function(T,Q,k,l){return Q&&k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T instanceof WE?new OW(function(v){return dH(l,v)},k.adSlotMetadata.slotId):T};
  3478. gtC=function(T,Q,k,l){return Q&&k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?T.map(function(v){return v instanceof MA?new Zw(function(L){return dH(l,L)},k.adSlotMetadata.slotId):v}):T};
  3479. C1=function(T,Q,k){for(var l=[],v=g.B(T.layoutExitNormalTriggers||[]),L=v.next();!L.done;L=v.next()){L=qy(L.value,Q,k);if(L instanceof F)return L;l.push(L)}v=[];L=g.B(T.layoutExitSkipTriggers||[]);for(var q=L.next();!q.done;q=L.next()){q=qy(q.value,Q,k);if(q instanceof F)return q;v.push(q)}L=[];q=g.B(T.layoutExitMuteTriggers||[]);for(var Y=q.next();!Y.done;Y=q.next()){Y=qy(Y.value,Q,k);if(Y instanceof F)return Y;L.push(Y)}q=[];T=g.B(T.layoutExitUserInputSubmittedTriggers||[]);for(Y=T.next();!Y.done;Y=
  3480. T.next()){Y=qy(Y.value,Q,k);if(Y instanceof F)return Y;q.push(Y)}return{layoutExitNormalTriggers:l,layoutExitSkipTriggers:v,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:q,uC:[]}};
  3481. zT=function(T){var Q=g.t(T.renderingContent,xK);if(Q==null?0:Q.pings)return ZJ(Q.pings);T=g.t(T.renderingContent,y1);return(T==null?0:T.skipPings)?new Map([["skip",T.skipPings]]):new Map};
  3482. TGg=function(T,Q,k,l,v){Q=g.t(Q.renderingContent,xK);if(!Q)return new F("Invalid rendering content for DAI media layout");T=[new $t(l),new Zi(k.YL.videoLengthSeconds),new fp(k.YL.playerVars),new IH(k.xa),new hj(k.q0),new s9(k.QF),new PQ(Bh(T)),new WQ(k.YL.adVideoId),new HQ(k.jo),Q.sodarExtensionData&&new mU(Q.sodarExtensionData),new gn({current:null}),new SE({}),new np(R0(Q.pings))].filter(tZu);v!==void 0&&T.push(new zp(v));return T};
  3483. VZ5=function(T,Q,k){T=T.map(function(U){return GT(g.t(U.renderingContent,xK),!1)});
  3484. var l=T.map(function(U){return U.videoLengthSeconds}),v=l.map(function(U,R){return new pw(R,l)}),L=Q,q=k,Y=[];
  3485. T.forEach(function(U,R){q=Math.min(L+U.videoLengthSeconds*1E3,k);gH(U.playerVars,v[R]);Y.push({YL:U,xa:L,q0:q,QF:R,jo:v[R]});L=q});
  3486. return Y};
  3487. QWu=function(T,Q,k){for(var l=[],v=g.B(T),L=v.next();!L.done;L=v.next())if(L=g.t(L.value.renderingContent,xK)){if(!uQ(L))return new F("Invalid vod media renderer");l.push(M6f(L))}v=l.map(function(f){return f.IG});
  3488. L=[];for(var q=0,Y=0;Y<T.length;Y++){var U=g.t(T[Y].renderingContent,xK);if(U){var R=new pw(q,v),Z=IA(l[q].playerVars,l[q].iz,Q,k,R);L[Y]={jo:R,adPodSkipTarget:U.adPodSkipTarget,KFd:l[q],BM:Z};q++}}return L};
  3489. M6f=function(T){var Q=QI(T.playerVars),k=Number(Q.length_seconds);isNaN(k)&&(k=0,MH("Expected valid length seconds in player vars but got NaN"));return{playerVars:Q,iz:T.playerVars,IG:k}};
  3490. Bh=function(T){switch(T){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
  3491. El5=function(T){if(g.t(T.renderingContent,Ak)){var Q;return((Q=g.t(T.renderingContent,Ak))==null?void 0:Q.impressionPings)||[]}if(g.t(T.renderingContent,dO)){var k;return((k=g.t(T.renderingContent,dO))==null?void 0:k.impressionPings)||[]}if(g.t(T.renderingContent,NA)){var l;return((l=g.t(T.renderingContent,NA))==null?void 0:l.impressionPings)||[]}return[]};
  3492. U9X=function(T,Q,k,l,v,L,q,Y,U){var R=k.pings;return R?[Yaf(T,L,Y,v,function(Z){var f=Z.slotId;Z=U(Z);var G=k.adLayoutLoggingData,m=k.progressCommands;f=xd(Q.S.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",f);var I={layoutId:f,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ik:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",EG:ZJ(R),layoutExitNormalTriggers:[new L7(Q.T,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
  3493. uC:[],Ik:"core",clientMetadata:new eE([new PQ(l),new np(R0(R)),new Kp(nuH(R)),new Zi(q/1E3),new Di({progressCommands:m}),new Aj(q/1E3)]),ZP:Z(I),adLayoutLoggingData:G}})]:new F("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:k})};
  3494. ZTf=function(T,Q,k,l,v,L,q,Y){T=RP5(T,k,L,q,l,function(U){var R=U.slotId;U=Y(U);R=xd(Q.S.get(),"LAYOUT_TYPE_FORECASTING",R);var Z={layoutId:R,layoutType:"LAYOUT_TYPE_FORECASTING",Ik:"core"},f=new Map,G=v.impressionUrls;G&&f.set("impression",G);return{layoutId:R,layoutType:"LAYOUT_TYPE_FORECASTING",EG:f,layoutExitNormalTriggers:[new vO(Q.T,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new Bz(v),new PQ(k)]),ZP:U(Z)}});
  3495. return T instanceof F?T:[T]};
  3496. GFI=function(T,Q,k,l,v,L,q){return[fnC(T,L,l,function(Y){var U=Y.slotId;Y=q(Y);U=xd(Q.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",U);var R={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ik:"core"};return{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[new L7(Q.T,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new J6(v),new PQ(k)]),ZP:Y(R),
  3497. adLayoutLoggingData:v.adLayoutLoggingData}})]};
  3498. InI=function(T,Q,k,l,v,L,q,Y){T=m9y(T,k,L,q,l,function(U,R){var Z=U.slotId;U=Y(U);var f=v.contentSupportedRenderer;f?f.textOverlayAdContentRenderer?(f=xd(Q.S.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",Z),R=Ny(Q,f,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",v,k,U,AC(Q,R,Z))):f.enhancedTextOverlayAdContentRenderer?(f=xd(Q.S.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",Z),R=Ny(Q,f,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",v,k,U,AC(Q,R,Z))):f.imageOverlayAdContentRenderer?(f=xd(Q.S.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
  3499. Z),R=AC(Q,R,Z),R.push(new zb(Q.T,45E3,f)),R=Ny(Q,f,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",v,k,U,R)):R=new Jj("InvideoOverlayAdRenderer without appropriate sub renderer"):R=new Jj("InvideoOverlayAdRenderer without contentSupportedRenderer");return R});
  3500. return T instanceof F?T:[T]};
  3501. Sau=function(T,Q,k,l,v,L,q,Y,U){var R=Number(l.durationMilliseconds);return isNaN(R)?new F("Expected valid duration for AdActionInterstitialRenderer."):function(Z){return hPC(Q,Z.slotId,k,l,R,{impressionCommands:void 0,abandonCommands:l.abandonCommands?[{commandExecutorCommand:l.abandonCommands}]:void 0,completeCommands:l.completionCommands},l.skipPings?new Map([["skip",l.skipPings]]):new Map,q(Z),function(f){return sW5(T,f,v,function(G,m){var I=G.slotId;G=q(G);I=xd(Q.S.get(),"LAYOUT_TYPE_ENDCAP",
  3502. I);return f1(Q,I,m,k,G,"LAYOUT_TYPE_ENDCAP",[new Vj(l),Y],l.adLayoutLoggingData)})},U,L-1,l.adLayoutLoggingData,L)}};
  3503. Cb5=function(T,Q,k,l){if(!k.playerVars)return new F("No playerVars available in AdIntroRenderer.");var v=QI(k.playerVars);v.autoplay="1";return function(L){var q=L.slotId;L=l(L);q=xd(T.S.get(),"LAYOUT_TYPE_MEDIA",q);var Y={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",Ik:"adapter"};return{jk:{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",EG:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"adapter",clientMetadata:new eE([new Cp({}),
  3504. new PQ(Q),new gn({current:null}),new fp(v)]),ZP:L(Y)},Cv:[new EW(T.T,q,["error"])],s4:[],Un:[],Xc:[]}}};
  3505. zPf=function(T,Q,k,l,v,L,q,Y,U,R){R=R===void 0?!1:R;var Z=RA(v);if(!HG5(v,R))return new F("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:v});if(Z<=0)return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:v});var f=YjT(T,Q,v,L,k,l,q);return f instanceof F?f:function(G){return BGu(Q,G.slotId,k,Z,v,ZD(v),q(G),f,Y,U)}};
  3506. XQy=function(T,Q,k,l,v,L,q,Y){function U(f){return sW5(T,f,l,R)}
  3507. function R(f,G){var m=f.slotId;f=q(f);m=xd(Q.S.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",m);return f1(Q,m,G,k,f,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Tp(v),L],v.adLayoutLoggingData)}
  3508. if(!WBC(v))return new F("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:v});var Z=v.timeoutSeconds*1E3;return function(f){var G=f.slotId,m={impressionCommands:v.impressionCommands,completeCommands:v.timeoutCommands,skipCommands:v.dismissCommands};f=q(f);G=b1(Q,G,k,Z,m,new Map,f,U,void 0,rH(Q,k,v.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));m=new oH(G.TK);f=new t6(Y);return{jk:{layoutId:G.layoutId,layoutType:G.layoutType,EG:G.EG,layoutExitNormalTriggers:[],
  3509. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:G.Ik,clientMetadata:new eE([].concat(g.ZH(G.dN),[m,f])),ZP:G.ZP,adLayoutLoggingData:G.adLayoutLoggingData},Cv:[],s4:G.layoutExitMuteTriggers,Un:G.layoutExitUserInputSubmittedTriggers,Xc:G.uC,pY:G.pY}}};
  3510. d95=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z){T=lE(T,"SLOT_TYPE_PLAYER_BYTES");l=AlT(Q,q,l,v,T,R,Z);if(l instanceof F)return l;var w;q=(w=FN(l.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:w.layoutId;if(!q)return new F("Invalid adNotify layout");Q=wQ6(q,Q,k,v,L,U,Y,R,f,G,m,I,z);return Q instanceof F?Q:[l].concat(g.ZH(Q))};
  3511. wQ6=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){k=NGt(Q,k,l,L,q,Y,U,R,Z,f,G);A6C(L)?(l=bTt(Q,T),T=lE(Q.S.get(),"SLOT_TYPE_IN_PLAYER"),L=xd(Q.S.get(),"LAYOUT_TYPE_SURVEY",T),Y=ch(Q,l,Y),Q=[].concat(g.ZH(Y.slotExpirationTriggers),[new $J(Q.T,L)]),T=k({slotId:Y.slotId,slotType:Y.slotType,slotPhysicalPosition:Y.slotPhysicalPosition,slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers,slotExpirationTriggers:Q,Ik:Y.Ik},{slotId:T,layoutId:L}),v=T instanceof F?T:{DK:Object.assign({},
  3512. Y,{slotExpirationTriggers:Q,clientMetadata:new eE([new XN(T.layout)]),adSlotLoggingData:v}),GH:T.GH}):v=DgI(Q,T,Y,v,k);return v instanceof F?v:[].concat(g.ZH(v.GH),[v.DK])};
  3513. c6T=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){Q=NGt(T,Q,k,v,L,q,U,R,Z,f,G,m);A6C(v)?(v=r6t(T,k,q,Y),v instanceof F?T=v:(Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),U=xd(T.S.get(),"LAYOUT_TYPE_SURVEY",Y),q=[].concat(g.ZH(v.slotExpirationTriggers),[new $J(T.T,U)]),Y=Q({slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,Ik:v.Ik,slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:q},{slotId:Y,layoutId:U}),T=Y instanceof F?Y:{DK:{slotId:v.slotId,
  3514. slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:DD(T,k,v.slotId,v.slotEntryTrigger),slotFulfillmentTriggers:aA(T,k,v.slotId,v.slotFulfillmentTriggers),slotExpirationTriggers:q,Ik:v.Ik,clientMetadata:new eE([new Pz(u1(k)),new XN(Y.layout),new tj({qp:T.qp(k)})]),adSlotLoggingData:l},GH:Y.GH})):T=aCC(T,k,q,Y,l,U.Cc,Q);return T instanceof F?T:T.GH.concat(T.DK)};
  3515. A6C=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(g.t(Q.value,HO))return!0;return!1};
  3516. NGt=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){return function(G,m){if(Tn(Z)&&QG(Z))a:{var I=D9t(l,k,Z);if(I instanceof F)m=I;else{for(var z=0,w=[],r=[],A=[],D=[],K=[],O=[],E=new Mu({current:null}),e=new pT({current:null}),vT=!1,f5=[],qJ=0,g6=[],QC=0;QC<l.length;QC++){var A5=l[QC],Et=g.t(A5,xK);if(Et){Et=mZ(Et,k,Z);if(Et instanceof Jj){m=new F(Et);break a}var QJ=new pw(qJ,I),I_=IA(Et.playerVars,Et.iz,q,R,QJ);qJ++;g6[QC]={renderer:A5,data:Et,jo:QJ,BM:I_}}}qJ=-1;for(I=0;I<l.length;I++)if(QC=l[I],A5=g.t(QC,PO)){QC=
  3517. Cb5(Q,k,A5,Y);if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);r=[].concat(g.ZH(QC.Cv),g.ZH(r));A=[].concat(g.ZH(QC.s4),g.ZH(A));QC.pY&&(f5=[QC.pY].concat(g.ZH(f5)))}else if(g.t(QC,xK))A5=g6[I],qJ=A5.data,QC=A5.jo,A5=A5.BM,Et=g6[I+1],QJ=void 0,Et&&(QJ=Et.BM),QC=anJ(Q,qJ.layoutId,qJ.Ny,k,A5,qJ.IG,L,QC,Y(G),e,U.get(qJ.Ny.externalVideoId),QJ,f),z++,w.push(QC.jk),r=[].concat(g.ZH(QC.Cv),g.ZH(r)),A=[].concat(g.ZH(QC.s4),g.ZH(A)),vT||(O.push(e),vT=!0),qJ=(qJ=qJ.Ny.adPodSkipTarget)&&qJ>0?qJ:-1;else if(A5=
  3518. g.t(QC,y1)){QC=Sau(T,Q,k,A5,L,z,Y,e,qJ);if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);r=[].concat(g.ZH(QC.Cv),g.ZH(r));A=[].concat(g.ZH(QC.s4),g.ZH(A));QC.pY&&(f5=[QC.pY].concat(g.ZH(f5)))}else if(A5=g.t(QC,HO)){if(m===void 0){m=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:A5});break a}QC=zPf(T,Q,k,L,A5,E,Y,m,z,KF(Z,"supports_multi_step_on_desktop"));if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);QC.pY&&f5.push(QC.pY);
  3519. r=[].concat(g.ZH(QC.Cv),g.ZH(r));A=[].concat(g.ZH(QC.s4),g.ZH(A));D=[].concat(g.ZH(QC.Un),g.ZH(D));K=[].concat(g.ZH(QC.Xc),g.ZH(K));O=[E].concat(g.ZH(O))}else if(QC=g.t(QC,tk)){QC=XQy(T,Q,k,L,QC,E,Y,z);if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);QC.pY&&f5.push(QC.pY);A=[].concat(g.ZH(QC.s4),g.ZH(A))}else{m=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={h_:w,layoutExitSkipTriggers:r,layoutExitUserInputSubmittedTriggers:D,uC:K,layoutExitMuteTriggers:A,dN:O,GH:f5}}}else a:if(z=
  3520. D9t(l,k,Z),z instanceof F)m=z;else{w=0;r=[];A=[];D=[];K=[];O=[];E=[];e=new Mu({current:null});vT=new pT({current:null});f5=!1;g6=[];qJ=-1;I=g.B(l);for(QC=I.next();!QC.done;QC=I.next())if(QC=QC.value,g.t(QC,PO)){QC=Cb5(Q,k,g.t(QC,PO),Y);if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));QC.pY&&(g6=[QC.pY].concat(g.ZH(g6)))}else if(g.t(QC,xK)){qJ=mZ(g.t(QC,xK),k,Z);if(qJ instanceof Jj){m=new F(qJ);break a}QC=new pw(w,z);QC=anJ(Q,
  3521. qJ.layoutId,qJ.Ny,k,IA(qJ.playerVars,qJ.iz,q,R,QC),qJ.IG,L,QC,Y(G),vT,U.get(qJ.Ny.externalVideoId),void 0,f);w++;r.push(QC.jk);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));f5||(E.push(vT),f5=!0);qJ=(qJ=qJ.Ny.adPodSkipTarget)&&qJ>0?qJ:-1}else if(g.t(QC,y1)){QC=Sau(T,Q,k,g.t(QC,y1),L,w,Y,vT,qJ);if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));QC.pY&&(g6=[QC.pY].concat(g.ZH(g6)))}else if(g.t(QC,HO)){if(m===
  3522. void 0){m=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.t(QC,HO)});break a}QC=zPf(T,Q,k,L,g.t(QC,HO),e,Y,m,w,KF(Z,"supports_multi_step_on_desktop"));if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);QC.pY&&g6.push(QC.pY);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));K=[].concat(g.ZH(QC.Un),g.ZH(K));O=[].concat(g.ZH(QC.Xc),g.ZH(O));E=[e].concat(g.ZH(E))}else if(g.t(QC,tk)){QC=XQy(T,Q,k,L,g.t(QC,tk),e,Y,w);if(QC instanceof
  3523. F){m=QC;break a}QC=QC(G);r.push(QC.jk);QC.pY&&g6.push(QC.pY);D=[].concat(g.ZH(QC.s4),g.ZH(D))}else{m=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={h_:r,layoutExitSkipTriggers:A,layoutExitUserInputSubmittedTriggers:K,uC:O,layoutExitMuteTriggers:D,dN:E,GH:g6}}m instanceof F?G=m:(O=G.slotId,z=m.h_,w=m.layoutExitSkipTriggers,r=m.layoutExitMuteTriggers,A=m.layoutExitUserInputSubmittedTriggers,D=m.dN,G=Y(G),K=v?v.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",O=v?v.layoutId:
  3524. xd(Q.S.get(),K,O),E={layoutId:O,layoutType:K,Ik:"core"},G={layout:{layoutId:O,layoutType:K,EG:new Map,layoutExitNormalTriggers:[new vO(Q.T,O)],layoutExitSkipTriggers:w,layoutExitMuteTriggers:r,layoutExitUserInputSubmittedTriggers:A,uC:[],Ik:"core",clientMetadata:new eE([new Ye(z)].concat(g.ZH(D))),ZP:G(E)},GH:m.GH});return G}};
  3525. D9t=function(T,Q,k){var l=[];T=g.B(T);for(var v=T.next();!v.done;v=T.next())if(v=v.value,g.t(v,xK)){v=mZ(g.t(v,xK),Q,k);if(v instanceof Jj)return new F(v);l.push(v.IG)}return l};
  3526. ntb=function(T,Q,k,l,v,L,q,Y){if(!HG5(k,Y===void 0?!1:Y))return new F("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:k});var U=RA(k);if(U<=0)return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k});var R=new Mu({current:null}),Z=YjT(T,Q,k,R,l,L,q);return u2T(T,l,L,U,v,function(f,G){var m=f.slotId,I=ZD(k);f=q(f);var z,w=(z=rH(Q,l,k.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?z:
  3527. xd(Q.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",m);m={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ik:"core"};z=Z(w,G);var r=FN(z.clientMetadata,"metadata_type_fulfilled_layout");r||MH("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");I=[new PQ(l),new b2(U),new Di(I),R];r&&I.push(new vz(r.layoutType));return{qKK:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",EG:new Map,layoutExitNormalTriggers:[new vO(Q.T,w)],layoutExitSkipTriggers:[new gO(Q.T,
  3528. G.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Gb(Q.T,G.layoutId)],uC:[],Ik:"core",clientMetadata:new eE(I),ZP:f(m)},gx:z}})};
  3529. KSH=function(T){if(!pPC(T))return!1;var Q=g.t(T.adVideoStart,n1);return Q?g.t(T.linearAd,xK)&&Dw(Q)?!0:(MH("Invalid Sandwich with notify"),!1):!1};
  3530. x9C=function(T){if(T.linearAds==null)return!1;T=g.t(T.adStart,n1);return T?Dw(T)?!0:(MH("Invalid LASR with notify"),!1):!1};
  3531. Pbf=function(T){if(!OGy(T))return!1;T=g.t(T.adStart,n1);return T?Dw(T)?!0:(MH("Invalid LASR with notify"),!1):!1};
  3532. K1=function(T,Q,k,l,v,L,q,Y,U,R){this.Y=T;this.S=Q;this.T=k;this.Qq=l;this.dc=v;this.L=L;this.UK=q;this.zP=Y;this.yy=U;this.loadPolicy=R===void 0?1:R};
  3533. vh=function(T,Q,k,l,v,L,q,Y,U,R,Z){var f=[];if(Q.length===0&&l.length===0&&k.length===0)return f;Q=Q.filter(aB);var G=k.filter(KBu),m=l.filter(aB),I=new Map,z=Hx6(Q),w=k.some(function(QJ){var I_;return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),r=k.some(function(QJ){var I_;
  3534. return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=k.some(function(QJ){var I_;
  3535. return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_IN_PLAYER"}),D=k.some(function(QJ){var I_,g$$;
  3536. return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(QJ==null?void 0:(g$$=QJ.adSlotMetadata)==null?void 0:g$$.slotType)==="SLOT_TYPE_ABOVE_FEED"});
  3537. k=k.some(function(QJ){var I_;return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
  3538. if(w||r||A||D||k)R=FQ5(G,Q,Y,v,z,T.dc.get(),T.loadPolicy,I,T.Qq.get(),T.Y.get(),A,q,U,R,Z),R instanceof F?MH(R,void 0,void 0,{contentCpn:v}):f.push.apply(f,g.ZH(R));R=g.B(Q);for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,k=HTT(T,I,Z,v,L,q,w,Y,z,U,G),k instanceof F?MH(k,void 0,void 0,{renderer:Z.renderer,config:Z.config.adPlacementConfig,kind:Z.config.adPlacementConfig.kind,contentCpn:v,daiEnabled:q}):f.push.apply(f,g.ZH(k));t6I(T.Qq.get())||(L=OT5(T,m,v,Y,z,I),f.push.apply(f,g.ZH(L)));if(T.L===null||
  3539. q&&!Y.VB){var K,O,E;T=Y.Cc&&Q.length===1&&((K=Q[0].config)==null?void 0:(O=K.adPlacementConfig)==null?void 0:O.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((E=Q[0].renderer)==null?void 0:E.adBreakServiceRenderer);if(!f.length&&!T){var e,vT,f5,qJ;MH("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:v,"first APR kind":(e=Q[0])==null?void 0:(vT=e.config)==null?void 0:(f5=vT.adPlacementConfig)==null?void 0:f5.kind,renderer:(qJ=
  3540. Q[0])==null?void 0:qJ.renderer})}return f}K=l.filter(aB);f.push.apply(f,g.ZH(qjg(I,K,T.S.get(),T.L,v,w)));if(!f.length){var g6,QC,A5,Et;MH("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:v,daiEnabled:q.toString(),"first APR kind":(g6=Q[0])==null?void 0:(QC=g6.config)==null?void 0:(A5=QC.adPlacementConfig)==null?void 0:A5.kind,renderer:(Et=Q[0])==null?void 0:Et.renderer})}return f};
  3541. OT5=function(T,Q,k,l,v,L){function q(G){return Q0(T.dc.get(),G)}
  3542. var Y=[];Q=g.B(Q);for(var U=Q.next();!U.done;U=Q.next()){U=U.value;var R=U.renderer,Z=R.sandwichedLinearAdRenderer,f=R.linearAdSequenceRenderer;Z&&KSH(Z)?(MH("Found AdNotify with SandwichedLinearAdRenderer"),f=g.t(Z.adVideoStart,n1),Z=g.t(Z.linearAd,xK),My(L,R,U.config.adPlacementConfig.kind),R=void 0,f=bxX((R=f)==null?void 0:R.layout.layoutId,T.S.get(),T.T.get(),U.config.adPlacementConfig,U.adSlotLoggingData,Z,k,l,q,v,T.loadPolicy,T.Qq.get(),T.dc.get()),f instanceof F?MH(f):Y.push.apply(Y,g.ZH(f))):
  3543. f&&(!f.adLayoutMetadata&&x9C(f)||f.adLayoutMetadata&&Pbf(f))&&(MH("Found AdNotify with LinearAdSequenceRenderer"),My(L,R,U.config.adPlacementConfig.kind),R=void 0,Z=wQ6((R=g.t(f.adStart,n1))==null?void 0:R.layout.layoutId,T.S.get(),T.T.get(),U.config.adPlacementConfig,U.adSlotLoggingData,f.linearAds,wO(f.adLayoutMetadata)?f.adLayoutMetadata:void 0,k,l,q,v,T.loadPolicy,T.Qq.get()),Z instanceof F?MH(Z):Y.push.apply(Y,g.ZH(Z)))}return Y};
  3544. HTT=function(T,Q,k,l,v,L,q,Y,U,R,Z){function f(r){return Q0(T.dc.get(),r)}
  3545. var G=k.renderer,m=k.config.adPlacementConfig,I=m.kind,z=k.adSlotLoggingData,w=Y.VB&&I==="AD_PLACEMENT_KIND_START";w=L&&!w;if(G.adsEngagementPanelRenderer!=null)return Ug(Q,k.elementId,I,G.adsEngagementPanelRenderer.isContentVideoEngagementPanel,G.adsEngagementPanelRenderer.adVideoId,G.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.adsEngagementPanelRenderer;r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
  3546. new A6(e),A,D,e.impressionPings,r,G.adsEngagementPanelRenderer.adLayoutLoggingData,K)}),[];
  3547. if(G.adsEngagementPanelLayoutViewModel)return Ug(Q,k.elementId,I,G.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,G.adsEngagementPanelLayoutViewModel.adVideoId,G.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.adsEngagementPanelLayoutViewModel;r=Q0(T.dc.get(),r);return Ph(O,E,"LAYOUT_TYPE_PANEL",new bb(e),A,D,r,G.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,K)}),[];
  3548. if(G.actionCompanionAdRenderer!=null){if(G.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return kU5(T.S.get(),T.L,T.T.get(),G.actionCompanionAdRenderer,m,z,l,f);Ug(Q,k.elementId,I,G.actionCompanionAdRenderer.isContentVideoCompanion,G.actionCompanionAdRenderer.adVideoId,G.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.actionCompanionAdRenderer;r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
  3549. new dG(e),A,D,e.impressionPings,r,G.actionCompanionAdRenderer.adLayoutLoggingData,K)})}else if(G.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(G.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return lCf(T.S.get(),T.L,T.T.get(),G.topBannerImageTextIconButtonedLayoutViewModel,m,z,l,f);
  3550. Ug(Q,k.elementId,I,G.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,G.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,G.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.topBannerImageTextIconButtonedLayoutViewModel;r=Q0(T.dc.get(),r);return Ph(O,E,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new N9(e),A,D,r,G.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,K)})}else if(G.imageCompanionAdRenderer)Ug(Q,
  3551. k.elementId,I,G.imageCompanionAdRenderer.isContentVideoCompanion,G.imageCompanionAdRenderer.adVideoId,G.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.imageCompanionAdRenderer;
  3552. r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new aW(e),A,D,e.impressionPings,r,G.imageCompanionAdRenderer.adLayoutLoggingData,K)});
  3553. else if(G.bannerImageLayoutViewModel)Ug(Q,k.elementId,I,G.bannerImageLayoutViewModel.isContentVideoCompanion,G.bannerImageLayoutViewModel.adVideoId,G.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.bannerImageLayoutViewModel;r=Q0(T.dc.get(),r);return Ph(O,E,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ub(e),A,D,r,G.bannerImageLayoutViewModel.adLayoutLoggingData,K)});
  3554. else if(G.shoppingCompanionCarouselRenderer)Ug(Q,k.elementId,I,G.shoppingCompanionCarouselRenderer.isContentVideoCompanion,G.shoppingCompanionCarouselRenderer.adVideoId,G.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.shoppingCompanionCarouselRenderer;r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new nT(e),A,D,e.impressionPings,r,G.shoppingCompanionCarouselRenderer.adLayoutLoggingData,K)});
  3555. else if(G.adBreakServiceRenderer){if(!QVg(k))return[];if(I==="AD_PLACEMENT_KIND_PAUSE")return T5C(T.S.get(),m,z,k.renderer.adBreakServiceRenderer,l);if(I!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&I!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return VK6(T.S.get(),m,z,k.renderer.adBreakServiceRenderer,l,v,L);Y.Cc||MH("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:I,adPlacementConfig:m,daiEnabledForContentVideo:String(L),isServedFromLiveInfra:String(Y.Cc),clientPlaybackNonce:Y.clientPlaybackNonce});
  3556. if(I==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!T.UK)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!T.yy)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");T.yy.aX({adPlacementRenderer:k,contentCpn:l,Y$:v});v=T.UK.get().getCurrentTimeSec(1,!1);return pQC(T.S.get(),k.renderer.adBreakServiceRenderer,m,v,l,z,L)}if(!T.zP)return new F("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
  3557. T.zP.aX({adPlacementRenderer:k,contentCpn:l,Y$:v})}else{if(G.clientForecastingAdRenderer)return ZTf(T.S.get(),T.T.get(),m,z,G.clientForecastingAdRenderer,l,v,f);if(G.invideoOverlayAdRenderer)return InI(T.S.get(),T.T.get(),m,z,G.invideoOverlayAdRenderer,l,v,f);if(G.instreamAdPlayerOverlayRenderer)return GFI(T.S.get(),T.T.get(),m,z,G.instreamAdPlayerOverlayRenderer,l,f);if((G.linearAdSequenceRenderer||G.instreamVideoAdRenderer)&&w)return zb6(T.S.get(),T.T.get(),k,l,f,R,!T.Qq.get().U.G().V("html5_override_ad_video_length_killswitch"));
  3558. if(G.linearAdSequenceRenderer&&!w){if(q)return[];My(Q,G,I);if(G.linearAdSequenceRenderer.adLayoutMetadata){if(!OGy(G.linearAdSequenceRenderer))return new F("Received invalid LinearAdSequenceRenderer.")}else if(G.linearAdSequenceRenderer.linearAds==null)return new F("Received invalid LinearAdSequenceRenderer.");if(g.t(G.linearAdSequenceRenderer.adStart,n1)){MH("Found AdNotify in LinearAdSequenceRenderer");k=g.t(G.linearAdSequenceRenderer.adStart,n1);if(!zyH(k))return new F("Invalid AdMessageRenderer.");
  3559. L=G.linearAdSequenceRenderer.linearAds;return d95(T.Y.get(),T.S.get(),T.T.get(),T.dc.get(),m,z,k,wO(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,l,v,Y,f,U,T.loadPolicy,T.Qq.get())}return c6T(T.S.get(),T.T.get(),m,z,G.linearAdSequenceRenderer.linearAds,wO(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,l,v,Y,f,U,T.loadPolicy,T.Qq.get(),Z)}if(!G.remoteSlotsRenderer||L){if(G.instreamVideoAdRenderer&&
  3560. !w){if(q)return[];My(Q,G,I);return u05(T.S.get(),T.T.get(),m,z,G.instreamVideoAdRenderer,l,v,Y,f,U,T.loadPolicy,T.Qq.get(),T.dc.get(),Z)}if(G.instreamSurveyAdRenderer)return ntb(T.S.get(),T.T.get(),G.instreamSurveyAdRenderer,m,z,l,f,KF(T.Qq.get(),"supports_multi_step_on_desktop"));if(G.sandwichedLinearAdRenderer!=null)return pPC(G.sandwichedLinearAdRenderer)?g.t(G.sandwichedLinearAdRenderer.adVideoStart,n1)?(MH("Found AdNotify in SandwichedLinearAdRenderer"),k=g.t(G.sandwichedLinearAdRenderer.adVideoStart,
  3561. n1),zyH(k)?(L=g.t(G.sandwichedLinearAdRenderer.linearAd,xK))?rlb(k,L,m,T.Y.get(),T.S.get(),T.T.get(),T.dc.get(),z,l,v,Y,f,U,T.loadPolicy,T.Qq.get()):new F("Missing IVAR from Sandwich"):new F("Invalid AdMessageRenderer.")):c6T(T.S.get(),T.T.get(),m,z,[G.sandwichedLinearAdRenderer.adVideoStart,G.sandwichedLinearAdRenderer.linearAd],void 0,l,v,Y,f,U,T.loadPolicy,T.Qq.get()):new F("Received invalid SandwichedLinearAdRenderer.");if(G.videoAdTrackingRenderer!=null)return U9X(T.S.get(),T.T.get(),G.videoAdTrackingRenderer,
  3562. m,z,l,v,Y.aD,f)}}return[]};
  3563. Hh=function(T,Q,k,l,v,L,q,Y){g.x.call(this);var U=this;this.S=T;this.L=Q;this.DC=l;this.UK=v;this.Qq=L;this.Vq=q;this.iC=Y;this.T=null;k.get().addListener(this);this.addOnDisposeCallback(function(){k.wd()||k.get().removeListener(U)});
  3564. l.get().addListener(this);this.addOnDisposeCallback(function(){l.wd()||l.get().removeListener(U)})};
  3565. p1=function(T,Q,k){var l=T.UK.get().getCurrentTimeSec(1,!1);T.Qq.get().U.G().J3()&&Cw(T.Vq.get(),"sdai","onopp.1;evt."+k.event+";start."+k.startSecs.toFixed(3)+";d."+k.bf.toFixed(3));kp(T.S.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var v=T.L.get(),L=Q.adPlacementRenderer.renderer.adBreakServiceRenderer,q=Q.contentCpn,Y=Q.adPlacementRenderer.adSlotLoggingData;tC(T.Qq.get());var U=T.Vq;var R=v.Qq.get();R=g.jj(R.U.G().experiments,"max_prefetch_window_sec_for_livestream_optimization");
  3566. var Z=v.Qq.get();var f=g.jj(Z.U.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");Z=k.startSecs*1E3;Z={hp:new Cb(Z,Z+k.bf*1E3),BY:!1,cueProcessedMs:l*1E3};var G=k.startSecs+k.bf;if(l===0)Z.D6=new Cb(0,G*1E3);else{f=k.startSecs-f;var m=f-l;Z.D6=m<=0?new Cb(f*1E3,G*1E3):new Cb(Math.floor(l+Math.random()*Math.min(m,R))*1E3,G*1E3)}L=L1(v,L,q,Z,Y,[new U9(k)]);Og(v.Qq.get())&&Cw(U.get(),"abrsm","cpi."+k.identifier+";cps."+k.startSecs+";cpd."+k.bf+";cts."+l+";rbf."+Z.D6.start);U.get().U.Gh(k.startSecs-
  3567. l,Z.D6.start/1E3-l);return[L]})};
  3568. Wh=function(T){var Q,k=(Q=FN(T.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!k)return null;Q=FN(T.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var l=T.layoutId,v=FN(T.clientMetadata,"metadata_type_content_cpn"),L=FN(T.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q=FN(T.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Y=FN(T.clientMetadata,"metadata_type_player_underlay_renderer"),U=FN(T.clientMetadata,
  3569. "metadata_type_ad_placement_config"),R=FN(T.clientMetadata,"metadata_type_video_length_seconds");var Z=pp(T.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?FN(T.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):pp(T.clientMetadata,"metadata_type_layout_enter_ms")&&pp(T.clientMetadata,"metadata_type_layout_exit_ms")?(FN(T.clientMetadata,"metadata_type_layout_exit_ms")-FN(T.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MA:l,contentCpn:v,n3:k,ud:Q,instreamAdPlayerOverlayRenderer:L,
  3570. playerOverlayLayoutRenderer:q,instreamAdPlayerUnderlayRenderer:Y,adPlacementConfig:U,videoLengthSeconds:R,Es:Z,inPlayerLayoutId:FN(T.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FN(T.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
  3571. $9C=function(T,Q){return WSI(T,Q)};
  3572. J66=function(T,Q){Q=WSI(T,Q);if(!Q)return null;var k;Q.Es=(k=FN(T.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:k.adBreakRemainingLengthSeconds;return Q};
  3573. WSI=function(T,Q){var k,l=(k=FN(T.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current;if(!l)return null;k=U1J(T,Q);return{j_:YCt(T,Q),adPlacementConfig:FN(T.clientMetadata,"metadata_type_ad_placement_config"),KZ:k,contentCpn:FN(T.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:FN(T.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FN(T.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:FN(T.clientMetadata,
  3574. "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Es:void 0,n3:l,MA:T.layoutId,videoLengthSeconds:FN(T.clientMetadata,"metadata_type_video_length_seconds")}};
  3575. $N=function(T,Q,k,l,v,L,q,Y,U){g.x.call(this);this.Y=T;this.B=Q;this.N=k;this.L=l;this.T=v;this.S=L;this.dc=q;this.Qq=Y;this.l9=U;this.Ld=!0};
  3576. ePJ=function(T,Q,k){return xgT(T.T.get(),Q.contentCpn,Q.MA,function(l){return P3H(T.S.get(),l.slotId,k,Q.adPlacementConfig,Q.MA,Q0(T.dc.get(),l))})};
  3577. JC=function(T,Q,k,l,v,L,q,Y){g.x.call(this);this.S=T;this.T=Q;this.L=k;this.Qq=l;this.Y=v;this.l9=L;this.UK=q;this.eV=Y};
  3578. ew=function(T){g.x.call(this);this.T=T};
  3579. kp=function(T,Q,k,l){T.T().v1(Q,l);k=k();T=T.T();T.A3.hT("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Q,l,k);Q=g.B(k);for(k=Q.next();!k.done;k=Q.next())a:{l=T;k=k.value;l.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",k);l.A3.XE("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",k);try{var v=l.T;if(g.bB(k.slotId))throw new F("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Mo(v,k))throw new F("Duplicate registration for slot.",{slotId:k.slotId,slotEntryTriggerType:k.slotEntryTrigger.triggerType},
  3580. "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!v.Df.Vo.has(k.slotType))throw new F("No fulfillment adapter factory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!v.Df.y$.has(k.slotType))throw new F("No SlotAdapterFactory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");d2(v,"TRIGGER_CATEGORY_SLOT_ENTRY",k.slotEntryTrigger?[k.slotEntryTrigger]:[]);d2(v,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
  3581. k.slotFulfillmentTriggers);d2(v,"TRIGGER_CATEGORY_SLOT_EXPIRATION",k.slotExpirationTriggers);var L=l.T,q=k.slotType+"_"+k.slotPhysicalPosition,Y=CF(L,q);if(Mo(L,k))throw new F("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");Y.set(k.slotId,new lh6(k));L.T.set(q,Y)}catch(vT){vT instanceof F&&vT.Cp?(l.A3.dA("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",vT.Cp,k),MH(vT,k,void 0,void 0,vT.q5)):(l.A3.dA("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
  3582. k),MH(vT,k));break a}Mo(l.T,k).B=!0;try{var U=l.T,R=Mo(U,k),Z=k.slotEntryTrigger,f=U.Df.Fm.get(Z.triggerType);f&&(f.gJ("TRIGGER_CATEGORY_SLOT_ENTRY",Z,k,null),R.hj.set(Z.triggerId,f));for(var G=g.B(k.slotFulfillmentTriggers),m=G.next();!m.done;m=G.next()){var I=m.value,z=U.Df.Fm.get(I.triggerType);z&&(z.gJ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",I,k,null),R.z9.set(I.triggerId,z))}for(var w=g.B(k.slotExpirationTriggers),r=w.next();!r.done;r=w.next()){var A=r.value,D=U.Df.Fm.get(A.triggerType);D&&(D.gJ("TRIGGER_CATEGORY_SLOT_EXPIRATION",
  3583. A,k,null),R.D.set(A.triggerId,D))}var K=U.Df.Vo.get(k.slotType).get().build(U.L,k);R.C=K;var O=U.Df.y$.get(k.slotType).get().build(U.N,k);O.init();R.S=O}catch(vT){vT instanceof F&&vT.Cp?(l.A3.dA("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",vT.Cp,k),MH(vT,k,void 0,void 0,vT.q5)):(l.A3.dA("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",k),MH(vT,k));LF(l,k,!0);break a}l.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",k);l.T.HT(k);for(var E=g.B(l.S),e=E.next();!e.done;e=
  3584. E.next())e.value.HT(k);RD(l,k)}};
  3585. Fu=function(T,Q,k,l,v){g.x.call(this);var L=this;this.S=T;this.L=Q;this.Xk=k;this.context=v;this.T=new Map;l.get().addListener(this);this.addOnDisposeCallback(function(){l.wd()||l.get().removeListener(L)})};
  3586. JtC=function(T,Q){var k=0x8000000000000,l=0,v=0x8000000000000;var L=g.B(Q.slotFulfillmentTriggers);for(var q=L.next();!q.done;q=L.next())if(q=q.value,q instanceof jg){var Y=q.T.start;k=Math.min(k,Y);l=Math.max(l,q.T.end);q.visible&&(v=Math.min(v,Y))}else MH("Found unexpected fulfillment trigger for throttled slot.",Q,null,{fulfillmentTrigger:q});L=k;v=v<0x8000000000000&&k<v?v:void 0;k="throttledadcuerange:"+Q.slotId;T.T.set(k,Q);Q=KF(T.context.Qq.get(),"use_cue_range_marker_position")?v:void 0;T.Xk.get().addCueRange(k,
  3587. L,l,!1,T,void 0,void 0,void 0,Q);Y9(T.context.Qq.get())&&(Q={},T.context.mx.Fs("tcrr",(Q.cid=k,Q.sm=L,Q.em=l,Q)))};
  3588. Eg=function(){g.x.apply(this,arguments);this.Ld=!0;this.sF=new Map;this.T=new Map};
  3589. yN=function(T,Q){T=g.B(T.sF.values());for(var k=T.next();!k.done;k=T.next())if(k.value.layoutId===Q)return!0;return!1};
  3590. i1=function(T,Q){T=g.B(T.T.values());for(var k=T.next();!k.done;k=T.next()){k=g.B(k.value);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.layoutId===Q)return l}MH("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.bB(Q)),layoutId:Q})};
  3591. FSb=function(){this.T=new Map};
  3592. EtC=function(T,Q){this.callback=T;this.slot=Q};
  3593. VN=function(){};
  3594. y6T=function(T,Q,k){this.callback=T;this.slot=Q;this.UK=k};
  3595. iTy=function(T,Q,k){this.callback=T;this.slot=Q;this.UK=k;this.S=!1;this.T=0};
  3596. V66=function(T,Q,k){this.callback=T;this.slot=Q;this.UK=k};
  3597. TE=function(T){this.UK=T};
  3598. Qh=function(T){g.x.call(this);this.UJ=T;this.w5=new Map};
  3599. js=function(T,Q){for(var k=[],l=g.B(T.w5.values()),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.trigger;L instanceof Gb&&L.triggeringLayoutId===Q&&k.push(v)}k.length?h0(T.UJ(),k):MH("Survey is submitted but no registered triggers can be activated.")};
  3600. kS=function(T,Q,k){Qh.call(this,T);var l=this;this.Qq=k;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.wd()||Q.get().removeListener(l)})};
  3601. l8=function(T){g.x.call(this);this.T=T;this.Ld=!0;this.w5=new Map;this.N=new Set;this.L=new Set;this.Y=new Set;this.B=new Set;this.S=new Set};
  3602. or=function(T){g.x.call(this);this.T=T;this.w5=new Map};
  3603. vC=function(T,Q){for(var k=[],l=g.B(T.w5.values()),v=l.next();!v.done;v=l.next())v=v.value,v.trigger.T===Q.layoutId&&k.push(v);k.length&&h0(T.T(),k)};
  3604. LQ=function(T,Q,k){g.x.call(this);var l=this;this.T=T;this.context=k;this.w5=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.wd()||Q.get().removeListener(l)})};
  3605. qZ=function(T,Q,k,l,v){g.x.call(this);var L=this;this.S=T;this.Xk=Q;this.UK=k;this.l9=l;this.context=v;this.Ld=!0;this.w5=new Map;this.T=new Set;k.get().addListener(this);this.addOnDisposeCallback(function(){k.wd()||k.get().removeListener(L)})};
  3606. TnJ=function(T,Q,k,l,v,L,q,Y,U,R){if(Kd(T.l9.get(),1).clientPlaybackNonce!==U)throw new F("Cannot register CueRange-based trigger for different content CPN",{trigger:k});T.w5.set(k.triggerId,{wI:new Xj(Q,k,l,v),cueRangeId:L});T.Xk.get().addCueRange(L,q,Y,R,T);Y9(T.context.Qq.get())&&(U={},T.context.mx.Fs("crr",(U.ca=Q,U.tt=k.triggerType,U.st=l.slotType,U.lt=v==null?void 0:v.layoutType,U.cid=L,U.sm=q,U.em=Y,U)))};
  3607. QHg=function(T,Q){T=g.B(T.w5.entries());for(var k=T.next();!k.done;k=T.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;if(Q===l.cueRangeId)return k}return""};
  3608. gq=function(T,Q){g.x.call(this);var k=this;this.Y=T;this.S=new Map;this.L=new Map;this.T=null;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.wd()||Q.get().removeListener(k)});
  3609. var l;this.T=((l=Q.get().Vh)==null?void 0:l.slotId)||null};
  3610. jH5=function(T,Q){var k=[];T=g.B(T.values());for(var l=T.next();!l.done;l=T.next())l=l.value,l.slot.slotId===Q&&k.push(l);return k};
  3611. MZ=function(T){g.x.call(this);this.T=T;this.Ld=!0;this.w5=new Map};
  3612. UW=function(T,Q,k){Q=Q.layoutId;for(var l=[],v=g.B(T.w5.values()),L=v.next();!L.done;L=v.next())if(L=L.value,L.trigger instanceof vO){var q;if(q=L.trigger.layoutId===Q){q=k;var Y=yu5.get(L.category);q=Y?Y===q:!1}q&&l.push(L)}l.length&&h0(T.T(),l)};
  3613. YS=function(T){g.x.call(this);this.T=T;this.Ld=!0;this.w5=new Map};
  3614. Un=function(T,Q,k,l,v,L){g.x.call(this);var q=this;this.B=T;this.DC=Q;this.UK=k;this.Vq=l;this.zP=L;this.T=null;this.Y=!1;this.Ld=!0;this.w5=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.wd()||Q.get().removeListener(q)});
  3615. v.get().addListener(this);this.addOnDisposeCallback(function(){v.wd()||v.get().removeListener(q)})};
  3616. oe5=function(T){T.T&&(T.Y=!0,T.S&&(T.S.stop(),T.S.start()),kpJ(T,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),Cw(T.Vq.get(),"ads_ce","bdc."+liT(T).length))};
  3617. kpJ=function(T,Q){for(var k=[],l=g.B(T.w5.values()),v=l.next();!v.done;v=l.next())v=v.value,v.trigger.triggerType===Q&&k.push(v);k.length>0&&h0(T.B(),k)};
  3618. Rr=function(T,Q,k,l,v){for(var L=[],q=g.B(T.w5.values()),Y=q.next();!Y.done;Y=q.next()){var U=Y=Y.value,R=U.trigger;U=U.slot;if(R.triggerType===Q){if(R instanceof VG||R instanceof Tb||R instanceof kK){if(v&&R.breakDurationMs!==k)continue;if(!v&&R.breakDurationMs===k)continue;if(l.has(U.slotId))continue}L.push(Y)}}L.length>0&&h0(T.B(),L)};
  3619. veJ=function(T,Q){Q=(Q.bf+1)*1E3;var k=void 0;T=g.B(T.w5.values());for(var l=T.next();!l.done;l=T.next()){var v=l.value;l=v.trigger;v=v.slot;l instanceof VG&&l.breakDurationMs<=Q&&(!k||l.breakDurationMs>k.trigger.breakDurationMs)&&(k={slot:v,trigger:l})}return k};
  3620. LU6=function(T){T=T.adPlacementRenderer.config.adPlacementConfig;if(!T.prefetchModeConfig||!T.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;T=Number(T.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(T)||T<=0?0:Math.floor(Math.random()*T)};
  3621. q9H=function(T){T=T.adPlacementRenderer.config.adPlacementConfig;if(T.prefetchModeConfig&&T.prefetchModeConfig.cacheFetchRefreshDurationMs&&(T=Number(T.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(T)||T<=0)))return T};
  3622. ZQ=function(T){T.T=null;T.w5.clear();T.S&&T.S.stop();T.N&&T.N.stop();var Q;(Q=T.L)==null||Q.stop();delete T.L};
  3623. liT=function(T){var Q=[];T=g.B(T.w5.values());for(var k=T.next();!k.done;k=T.next())k=k.value.trigger,k instanceof VG&&Q.push(k.breakDurationMs);return Q};
  3624. fQ=function(T){g.x.call(this);this.L=T;this.Ld=!0;this.w5=new Map;this.T=new Map;this.S=new Map};
  3625. geg=function(T,Q){var k=[];if(Q=T.T.get(Q.layoutId)){Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())(l=T.S.get(l.value.triggerId))&&k.push(l)}return k};
  3626. GE=function(T){g.x.call(this);this.T=T;this.w5=new Map};
  3627. MEt=function(T,Q){for(var k=[],l=g.B(T.w5.values()),v=l.next();!v.done;v=l.next())v=v.value,v.trigger instanceof OW&&v.trigger.slotId===Q&&k.push(v);k.length>=1&&h0(T.T(),k)};
  3628. Y9X=function(T,Q){var k={slotId:lE(Q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ik:"surface",clientMetadata:new eE([])},l=Object,v=l.assign;Q=xd(Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",k.slotId);Q={layoutId:Q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"surface",
  3629. clientMetadata:new eE([]),ZP:Wbu(!1,k.slotId,k.slotType,k.slotPhysicalPosition,k.Ik,k.slotEntryTrigger,k.slotFulfillmentTriggers,k.slotExpirationTriggers,Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return v.call(l,{},T,{LC:!0,slot:k,layout:Q})};
  3630. iGC=function(T,Q,k,l){var v=T.kind;l=l?!1:!T.hideCueRangeMarker;switch(v){case "AD_PLACEMENT_KIND_START":return l={hp:new Cb(-0x8000000000000,-0x8000000000000),BY:l},k!=null&&(l.D6=new Cb(-0x8000000000000,-0x8000000000000)),l;case "AD_PLACEMENT_KIND_END":return l={hp:new Cb(0x7ffffffffffff,0x8000000000000),BY:l},k!=null&&(l.D6=new Cb(Math.max(0,Q-k),0x8000000000000)),l;case "AD_PLACEMENT_KIND_MILLISECONDS":v=T.adTimeOffset;v.offsetStartMilliseconds||MH("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
  3631. v.offsetEndMilliseconds||MH("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");T=Number(v.offsetStartMilliseconds);v=Number(v.offsetEndMilliseconds);v===-1&&(v=Q);if(Number.isNaN(T)||Number.isNaN(v)||T>v)return new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:T,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===Q&&T-500<=v);l={hp:new Cb(T,v),BY:l};if(k!=null){T=Math.max(0,T-k);if(T===v)return l;l.D6=new Cb(T,v)}return l;
  3632. default:return new F("AdPlacementKind not supported in convertToRange.",{kind:v,adPlacementConfig:T})}};
  3633. Uug=function(T){if(!T||!T.adPlacements&&!T.adSlots)return!1;for(var Q=g.B(T.adPlacements||[]),k=Q.next();!k.done;k=Q.next())if(k=k.value)if(k=k.adPlacementRenderer,k!=null&&(k.config&&k.config.adPlacementConfig&&k.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;T=g.B(T.adSlots||[]);for(Q=T.next();!Q.done;Q=T.next()){var l=k=void 0;if(((k=g.t(Q.value,oA))==null?void 0:(l=k.adSlotMetadata)==null?void 0:l.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
  3634. mx=function(T){this.Qq=T;this.S=new Map;this.T=new Map;this.L=new Map};
  3635. lE=function(T,Q){if(Ir(T.Qq.get())){var k=T.S.get(Q)||0;k++;T.S.set(Q,k);return Q+"_"+k}return g.hu(16)};
  3636. xd=function(T,Q,k){if(Ir(T.Qq.get())){var l=T.T.get(Q)||0;l++;T.T.set(Q,l);return k+"_"+Q+"_"+l}return g.hu(16)};
  3637. dH=function(T,Q){if(Ir(T.Qq.get())){var k=T.L.get(Q)||0;k++;T.L.set(Q,k);return Q+"_"+k}return g.hu(16)};
  3638. Rn5=function(T){var Q=[new l2(T.MA),new qu(T.n3),new PQ(T.adPlacementConfig),new Zi(T.videoLengthSeconds),new Aj(T.Es)];T.instreamAdPlayerOverlayRenderer&&Q.push(new J6(T.instreamAdPlayerOverlayRenderer));T.playerOverlayLayoutRenderer&&Q.push(new e6(T.playerOverlayLayoutRenderer));T.ud&&Q.push(new pT(T.ud));return Q};
  3639. Zp5=function(T,Q,k,l,v,L){T=k.inPlayerLayoutId?k.inPlayerLayoutId:xd(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",T);var q,Y,U=k.instreamAdPlayerOverlayRenderer?(q=k.instreamAdPlayerOverlayRenderer)==null?void 0:q.adLayoutLoggingData:(Y=k.playerOverlayLayoutRenderer)==null?void 0:Y.adLayoutLoggingData;q={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ik:Q};return{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[new yG(function(R){return dH(L,
  3640. R)},k.MA)],
  3641. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:Q,clientMetadata:l,ZP:v(q),adLayoutLoggingData:U}};
  3642. h1=function(T,Q){var k=this;this.S=T;this.Qq=Q;this.T=function(l){return dH(k.S.get(),l)}};
  3643. P3H=function(T,Q,k,l,v,L){k=new eE([new F2(k),new PQ(l)]);Q=xd(T.S.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Q);l={layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ik:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",EG:new Map,layoutExitNormalTriggers:[new yG(function(q){return dH(T.S.get(),q)},v)],
  3644. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:k,ZP:L(l),adLayoutLoggingData:void 0}};
  3645. hC=function(T,Q,k,l,v){var L=Rn5(l);return Zp5(Q,k,l,new eE(L),v,T.S.get())};
  3646. fiy=function(T,Q,k,l,v){var L=Rn5(l);L.push(new KT(l.j_));L.push(new xt(l.KZ));return Zp5(Q,k,l,new eE(L),v,T.S.get())};
  3647. xN=function(T,Q,k,l,v,L,q,Y,U,R){Q=xd(T.S.get(),k,Q);var Z={layoutId:Q,layoutType:k,Ik:"core"},f=new Map;q&&f.set("impression",q);q=[new lQ(T.T,v,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];R&&q.push(new EW(T.T,R,["normal"]));return{layoutId:Q,layoutType:k,EG:f,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([l,new PQ(L),new l2(v)]),ZP:Y(Z),adLayoutLoggingData:U}};
  3648. Ph=function(T,Q,k,l,v,L,q,Y,U){Q=xd(T.S.get(),k,Q);var R={layoutId:Q,layoutType:k,Ik:"core"},Z=[new lQ(T.T,v,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];U&&Z.push(new EW(T.T,U,["normal"]));return{layoutId:Q,layoutType:k,EG:new Map,layoutExitNormalTriggers:Z,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([l,new PQ(L),new l2(v)]),ZP:q(R),adLayoutLoggingData:Y}};
  3649. AC=function(T,Q,k){var l=[];l.push(new oB(T.T,k));Q&&l.push(Q);return l};
  3650. Ny=function(T,Q,k,l,v,L,q){var Y={layoutId:Q,layoutType:k,Ik:"core"};return{layoutId:Q,layoutType:k,EG:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[new $J(T.T,Q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new Dn(l),new PQ(v)]),ZP:L(Y),adLayoutLoggingData:l.adLayoutLoggingData}};
  3651. f1=function(T,Q,k,l,v,L,q,Y){var U={layoutId:Q,layoutType:L,Ik:"core"};return{layoutId:Q,layoutType:L,EG:new Map,layoutExitNormalTriggers:[new yG(T.T,k)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new PQ(l)].concat(g.ZH(q))),ZP:v(U),adLayoutLoggingData:Y}};
  3652. rH=function(T,Q,k,l){if(T.Qq.get().Zg(Q.kind==="AD_PLACEMENT_KIND_START"))if(k===void 0)MH("Expected SSAP layout ID in renderer",void 0,void 0,{caller:l});else return k};
  3653. hPC=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){T=b1(T,Q,k,v,L,q,Y,U,f,rH(T,k,l.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),G);Q=T.dN;k=new oH(T.TK);l=T.layoutExitSkipTriggers;R>0&&(Q.push(k),Q.push(new Oa(R)),l=[]);Q.push(new t6(Z));return{jk:{layoutId:T.layoutId,layoutType:T.layoutType,EG:T.EG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:T.Ik,clientMetadata:new eE(Q),ZP:T.ZP,adLayoutLoggingData:T.adLayoutLoggingData},
  3654. Cv:l,s4:T.layoutExitMuteTriggers,Un:T.layoutExitUserInputSubmittedTriggers,Xc:T.uC,pY:T.pY}};
  3655. BGu=function(T,Q,k,l,v,L,q,Y,U,R){Q=b1(T,Q,k,l,L,new Map,q,function(Z){return Y(Z,U)},void 0,rH(T,k,v.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
  3656. T=new Gb(T.T,Q.TK);k=new oH(Q.TK);R=new t6(R);return{jk:{layoutId:Q.layoutId,layoutType:Q.layoutType,EG:Q.EG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:Q.Ik,clientMetadata:new eE([].concat(g.ZH(Q.dN),[k,R])),ZP:Q.ZP,adLayoutLoggingData:Q.adLayoutLoggingData},Cv:Q.layoutExitSkipTriggers,s4:Q.layoutExitMuteTriggers,Un:[].concat(g.ZH(Q.layoutExitUserInputSubmittedTriggers),[T]),Xc:Q.uC,pY:Q.pY}};
  3657. b1=function(T,Q,k,l,v,L,q,Y,U,R,Z){Q=R!=null?R:xd(T.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",Q);R={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ik:"adapter"};Y=Y(Q);var f=FN(Y.clientMetadata,"metadata_type_fulfilled_layout");f||MH("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var G=f?f.layoutId:"";k=[new PQ(k),new b2(l),new Di(v)];f&&k.push(new vz(f.layoutType));Z&&k.push(new s9(Z));return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
  3658. EG:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new gO(T.T,G)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"adapter",dN:k,ZP:q(R),adLayoutLoggingData:U,pY:Y,TK:G}};
  3659. nlH=function(T,Q,k,l,v,L,q,Y,U,R,Z){T=Gp5(T,Q,"core",k,l,v,L,q,Y,U,R,void 0,Z);return{layoutId:T.layoutId,layoutType:T.layoutType,EG:T.EG,layoutExitNormalTriggers:T.layoutExitNormalTriggers,layoutExitSkipTriggers:T.layoutExitSkipTriggers,layoutExitMuteTriggers:T.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:T.layoutExitUserInputSubmittedTriggers,uC:T.uC,Ik:T.Ik,clientMetadata:new eE(T.zf),ZP:T.ZP,adLayoutLoggingData:T.adLayoutLoggingData}};
  3660. anJ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){Q=Gp5(T,Q,"adapter",k,l,v,L,q,Y,U,Z,f,G);l=Q.layoutExitSkipTriggers;v=Q.zf;k.adPodSkipTarget&&k.adPodSkipTarget>0&&(v.push(R),v.push(new Oa(k.adPodSkipTarget)),l=[]);v.push(new t6(Y.adPodIndex));k.isCritical&&(l=[new EW(T.T,Q.layoutId,["error"])].concat(g.ZH(l)));return{jk:{layoutId:Q.layoutId,layoutType:Q.layoutType,EG:Q.EG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:Q.Ik,
  3661. clientMetadata:new eE(v),ZP:Q.ZP,adLayoutLoggingData:Q.adLayoutLoggingData},Cv:l,s4:Q.layoutExitMuteTriggers,Un:Q.layoutExitUserInputSubmittedTriggers,Xc:Q.uC}};
  3662. Gp5=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){var m={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",Ik:k};v=[new PQ(v),new HQ(U),new WQ(l.externalVideoId),new $t(Y),new Di({impressionCommands:l.impressionCommands,abandonCommands:l.onAbandonCommands,completeCommands:l.completeCommands,progressCommands:l.adVideoProgressCommands}),new fp(L),new gn({current:null}),new Zi(q)];(L=l.playerOverlay.instreamAdPlayerOverlayRenderer)&&v.push(new J6(L));(q=l.playerOverlay.playerOverlayLayoutRenderer)&&v.push(new e6(q));
  3663. f&&v.push(new Gp(f));(f=l.playerUnderlay)&&v.push(new F2(f));Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");f=(f=L?L.elementId:q==null?void 0:q.layoutId)?f:xd(T.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Y);v.push(new oH(f));v.push(new Lp(Y));v.push(new s9(U.adPodIndex));l.adNextParams&&v.push(new rG(l.adNextParams));l.shrunkenPlayerBytesConfig&&v.push(new ib(l.shrunkenPlayerBytesConfig));l.clickthroughEndpoint&&v.push(new cQ(l.clickthroughEndpoint));l.legacyInfoCardVastExtension&&v.push(new rn(l.legacyInfoCardVastExtension));
  3664. l.sodarExtensionData&&v.push(new mU(l.sodarExtensionData));Z&&v.push(new Nu(Z));v.push(new np(R0(l.pings)));U=ZJ(l.pings);if(G){a:{G=g.B(G);for(Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(L=g.t(Z.fulfillmentContent.fulfilledLayout,Fj))&&(L=g.t(L.renderingContent,Jk))&&L.associatedPlayerBytesLayoutId===Q){G=Z;break a}G=void 0}G&&v.push(new Ea(G))}return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",EG:U,layoutExitNormalTriggers:[new vO(T.T,Q)],layoutExitSkipTriggers:l.skipOffsetMilliseconds?
  3665. [new gO(T.T,f)]:[],layoutExitMuteTriggers:[new gO(T.T,f)],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:k,zf:v,ZP:R(m),adLayoutLoggingData:l.adLayoutLoggingData}};
  3666. w3J=function(T,Q,k,l,v,L,q,Y,U){l.every(function(Z){return Wz(Z,[],["LAYOUT_TYPE_MEDIA"])})||MH("Unexpect subLayout type for DAI composite layout");
  3667. Q=xd(T.S.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Q);var R={layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ik:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",EG:new Map,layoutExitNormalTriggers:[new iZ(T.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new IH(k),new hj(Y),new Ye(l),new PQ(v),new zp(L),new SE({}),new xe(U)]),ZP:q(R)}};
  3668. Sjf=function(T){return T!=null};
  3669. sn=function(T,Q,k){var l=this;this.S=T;this.L=Q;this.Qq=k;this.T=function(v){return dH(l.S.get(),v)}};
  3670. pQC=function(T,Q,k,l,v,L,q){if(!k.prefetchModeConfig)return new F("AdPlacementConfig for Live Prefetch is missing prefetch_config");k=k.prefetchModeConfig;l*=1E3;var Y=[];if(!k.breakLengthMs)return new F("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var U=g.B(k.breakLengthMs),R=U.next();!R.done;R=U.next())if(R=R.value,Number(R)>0){var Z=l+Number(k.startTimeOffsetMs),f=Z+Number(k.cacheFetchSmearingDurationMs);R={hp:new Cb(f,f+Number(R)),BY:!1,D6:new Cb(Math.floor(Z+Math.random()*
  3671. Number(k.cacheFetchSmearingDurationMs)),f),cueProcessedMs:l?l:Z};Z=[];Z.push(new O9({}));f=[];f.push(new qA(T.T));f.push(new ULb(T.T));q&&Z.push(new SE({}));Y.push(L1(T,Q,v,R,L,Z,f))}return Y};
  3672. L1=function(T,Q,k,l,v,L,q){L=L===void 0?[]:L;var Y=lE(T.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");q||(q=[],l.D6&&l.D6.start!==l.hp.start&&q.push(new jg(T.T,k,new Cb(l.D6.start,l.hp.start),!1)),q.push(new jg(T.T,k,new Cb(l.hp.start,l.hp.end),l.BY)));l={getAdBreakUrl:Q.getAdBreakUrl,xQ:l.hp.start,i$:l.hp.end,cueProcessedMs:l.cueProcessedMs};Q=new RB(T.T,Y);L=[new wn(l)].concat(g.ZH(L));return{slotId:Y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:q,
  3673. slotExpirationTriggers:[new L7(T.T,k),new YK(T.T,Y),new UR(T.T,Y)],Ik:"core",clientMetadata:new eE(L),adSlotLoggingData:v}};
  3674. Ii5=function(T,Q,k){var l=[];k=g.B(k);for(var v=k.next();!v.done;v=k.next())l.push(muI(T,Q,v.value));return l};
  3675. muI=function(T,Q,k){return k.triggeringSlotId!=null&&k.triggeringSlotId===T?k.clone(Q):k};
  3676. MZH=function(T,Q,k,l,v){return hnf(T,Q,k,l,v)};
  3677. sW5=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");return hnf(T,v,Q,k,l)};
  3678. hnf=function(T,Q,k,l,v){var L=new Fk(T.T,k),q=[new MA(T.T,Q)];T=[new YK(T.T,Q),new L7(T.T,l)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(v({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T},k))]),adSlotLoggingData:void 0}};
  3679. u2T=function(T,Q,k,l,v,L){var q=lE(T.S.get(),"SLOT_TYPE_PLAYER_BYTES"),Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),U=xd(T.S.get(),"LAYOUT_TYPE_SURVEY",Y);l=Ss(T,Q,k,l);var R=[new MA(T.T,q)];k=[new YK(T.T,q),new L7(T.T,k),new $J(T.T,U)];if(l instanceof F)return l;Y=L({slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:R,slotExpirationTriggers:k},{slotId:Y,layoutId:U});L=Y.qKK;Y=Y.gx;return[{slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
  3680. slotEntryTrigger:DD(T,Q,q,l),slotFulfillmentTriggers:aA(T,Q,q,R),slotExpirationTriggers:k,Ik:"core",clientMetadata:new eE([new XN(L),new Pz(u1(Q)),new tj({qp:T.qp(Q)})]),adSlotLoggingData:v},Y]};
  3681. u1=function(T){return T.kind==="AD_PLACEMENT_KIND_START"};
  3682. KQb=function(T,Q,k,l,v){v=v?v:lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");k=new Fk(T.T,k);var L=[new MA(T.T,v)];T=[new L7(T.T,Q),new YK(T.T,v)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T}))])}};
  3683. xgT=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_PLAYER_UNDERLAY");k=new Fk(T.T,k);var L=[new MA(T.T,v)];T=[new L7(T.T,Q),new YK(T.T,v)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T}))])}};
  3684. AlT=function(T,Q,k,l,v,L,q){var Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),U=xd(T.S.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Y);l=sHg(T,l,L,q,U);if(l instanceof F)return l;q=[new MA(T.T,Y)];v=[new L7(T.T,L),new MA(T.T,v),new f7(T.T,v)];k=Q0(k,{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:q,slotExpirationTriggers:v});T=T.L.get();L={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ik:"core"};Q={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
  3685. EG:new Map,layoutExitNormalTriggers:[new so5(T.T,U,Q.durationMs)],layoutExitSkipTriggers:[new CUb(T.T,U,Q.durationMs)],uC:[new SHJ(T.T,U)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ik:"core",clientMetadata:new eE([new cz(Q)]),ZP:k(L)};return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:q,slotExpirationTriggers:v,clientMetadata:new eE([new XN(Q)])}};
  3686. m9y=function(T,Q,k,l,v,L){Q=Ss(T,Q,k,l);if(Q instanceof F)return Q;var q=Q instanceof jg?new mLb(T.T,k,Q.T):null;l=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");var Y=[new MA(T.T,l)];T=[new L7(T.T,k),new YK(T.T,l)];L=L({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:Y,slotExpirationTriggers:T},q);return L instanceof Jj?new F(L):{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:Y,slotExpirationTriggers:T,
  3687. Ik:"core",clientMetadata:new eE([new XN(L)]),adSlotLoggingData:v}};
  3688. fnC=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),L=new WE(T.T,Q),q=[new Zw(T.T,v)];T=[new L7(T.T,Q),new YK(T.T,v)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T}))]),adSlotLoggingData:k}};
  3689. GUH=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");k=new Fk(T.T,k);var L=[new MA(T.T,v)],q=[new YK(T.T,v),new L7(T.T,Q)];L={slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:q};return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:[new MA(T.T,v)],slotExpirationTriggers:[new L7(T.T,Q),new YK(T.T,v)],Ik:"core",clientMetadata:new eE([new XN(l(L))])}};
  3690. Rby=function(T,Q,k,l,v){var L=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");k=new en(T.T,l,k);l=[new MA(T.T,L)];T=[new L7(T.T,Q)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:l,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(v({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:l,slotExpirationTriggers:T}))])}};
  3691. LQb=function(T,Q,k,l,v,L){var q=lE(T.S.get(),Q);return CQ(T,q,Q,new Fk(T.T,l),[new L7(T.T,k),new YK(T.T,q),new EW(T.T,l,["error"])],v,L)};
  3692. vl6=function(T,Q,k,l,v,L,q){var Y=lE(T.S.get(),Q);return CQ(T,Y,Q,new EW(T.T,v,["normal"]),[new L7(T.T,k),new YK(T.T,Y),new EW(T.T,l,["error"])],L,q)};
  3693. jVH=function(T,Q,k,l,v){var L=lE(T.S.get(),Q);return CQ(T,L,Q,new WE(T.T,k),[new L7(T.T,k),new YK(T.T,L)],l,v)};
  3694. Yaf=function(T,Q,k,l,v){k=k?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var L=lE(T.S.get(),k);Q=new WE(T.T,Q);var q=[new MA(T.T,L)];T=[new YK(T.T,L)];return{slotId:L,slotType:k,slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(v({slotId:L,slotType:k,slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:q,slotExpirationTriggers:T}))]),adSlotLoggingData:l}};
  3695. C36=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new QM(T.T),q=[new Zw(T.T,v)];T=[new L7(T.T,Q)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T})),new SE({})]),adSlotLoggingData:k}};
  3696. bTt=function(T,Q){return t6I(T.Qq.get())?new EW(T.T,Q,["normal","error","skipped"]):new EW(T.T,Q,["normal"])};
  3697. DgI=function(T,Q,k,l,v){Q=bTt(T,Q);T=ch(T,Q,k);v=v({slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers,Ik:T.Ik});return v instanceof F?v:{DK:Object.assign({},T,{clientMetadata:new eE([new XN(v.layout)]),adSlotLoggingData:l}),GH:v.GH}};
  3698. aCC=function(T,Q,k,l,v,L,q){k=r6t(T,Q,k,l);if(k instanceof F)return k;q=q({slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:k.slotEntryTrigger,slotFulfillmentTriggers:k.slotFulfillmentTriggers,slotExpirationTriggers:k.slotExpirationTriggers,Ik:k.Ik});if(q instanceof F)return q;l=[new Pz(u1(Q)),new XN(q.layout),new tj({qp:T.qp(Q)})];L&&l.push(new aH({}));return{DK:{slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:DD(T,
  3699. Q,k.slotId,k.slotEntryTrigger),slotFulfillmentTriggers:aA(T,Q,k.slotId,k.slotFulfillmentTriggers),slotExpirationTriggers:k.slotExpirationTriggers,Ik:k.Ik,clientMetadata:new eE(l),adSlotLoggingData:v},GH:q.GH}};
  3700. DD=function(T,Q,k,l){return T.Qq.get().Zg(u1(Q))?new OW(T.T,k):l};
  3701. aA=function(T,Q,k,l){return T.Qq.get().Zg(u1(Q))?[new Zw(T.T,k)]:l};
  3702. ch=function(T,Q,k){var l=lE(T.S.get(),"SLOT_TYPE_PLAYER_BYTES"),v=[new MA(T.T,l)];T=[new YK(T.T,l),new L7(T.T,k)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:v,slotExpirationTriggers:T,Ik:"core"}};
  3703. r6t=function(T,Q,k,l){Q=Ss(T,Q,k,l);return Q instanceof F?Q:ch(T,Q,k)};
  3704. RP5=function(T,Q,k,l,v,L){var q=lE(T.S.get(),"SLOT_TYPE_FORECASTING");Q=Ss(T,Q,k,l);if(Q instanceof F)return Q;l=[new MA(T.T,q)];T=[new YK(T.T,q),new L7(T.T,k)];return{slotId:q,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:l,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(L({slotId:q,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:l,slotExpirationTriggers:T}))]),adSlotLoggingData:v}};
  3705. S95=function(T,Q,k,l,v){var L=!Q.hideCueRangeMarker;switch(Q.kind){case "AD_PLACEMENT_KIND_START":return new WE(T.T,k);case "AD_PLACEMENT_KIND_MILLISECONDS":return T=iGC(Q,l),T instanceof F?T:v(T.hp,L);case "AD_PLACEMENT_KIND_END":return new JQ(T.T,k,L);default:return new F("Cannot construct entry trigger",{kind:Q.kind})}};
  3706. sHg=function(T,Q,k,l,v){return S95(T,Q,k,l,function(L,q){return new GCb(T.T,k,L,q,v)})};
  3707. Ss=function(T,Q,k,l){return S95(T,Q,k,l,function(v,L){return new jg(T.T,k,v,L)})};
  3708. CQ=function(T,Q,k,l,v,L,q){T=[new Zw(T.T,Q)];return{slotId:Q,slotType:k,slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:T,slotExpirationTriggers:v,Ik:"core",clientMetadata:new eE([new XN(q({slotId:Q,slotType:k,slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:T,slotExpirationTriggers:v}))]),adSlotLoggingData:L}};
  3709. BC=function(T,Q){g.x.call(this);this.Qq=T;this.T=Q;this.eventCount=0};
  3710. zE=function(T,Q,k,l){BC.call(this,T,Q);this.Qq=T;this.l9=k;this.context=l};
  3711. Xv=function(){this.T=new Map};
  3712. wq=function(T){this.T="pending";this.S=[];this.L=[];try{T(this.Y.bind(this),this.reject.bind(this))}catch(Q){this.reject(Q)}};
  3713. C2H=function(){var T,Q;return{AM:new wq(function(k,l){T=k;Q=l}),
  3714. resolve:T,reject:Q}};
  3715. A1=function(T){return dq(T)?T:NZ(T)?new wq(function(Q,k){T.then(Q,k)}):new wq(function(Q){Q(T)})};
  3716. b8=function(T){return new wq(function(Q,k){k(T)})};
  3717. rq=function(T){try{return A1(T())}catch(Q){return b8(Q)}};
  3718. DQ=function(T,Q,k){var l=C2H(),v=l.AM,L=l.resolve,q=l.reject;T.S.push(function(Y){if(Q)try{var U=Q(Y);L(U)}catch(R){q(R)}else L(Y)});
  3719. T.L.push(function(Y){if(k)try{var U=k(Y);L(U)}catch(R){q(R)}else q(Y)});
  3720. cC(T);return v};
  3721. ar=function(T,Q){return DQ(T,void 0,Q)};
  3722. Bnb=function(T,Q){DQ(T,function(k){return DQ(A1(Q()),function(){return k})},function(k){return DQ(A1(Q()),function(){return b8(k)})})};
  3723. cC=function(T){if(T.T==="fulfilled"){var Q=T.S;T.S=[];T.L=[];Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,k(T.result)}else if(T.T==="rejected")for(Q=T.L,T.S=[],T.L=[],Q=g.B(Q),k=Q.next();!k.done;k=Q.next())k=k.value,k(T.error)};
  3724. u8=function(T,Q){return zn5(Q.call(T))};
  3725. nQ=function(T){return function k(){return PT(k,function(l){if(l.S==1)return g.Xg(l,2),g.c(l,{AM:A1(T)},4);if(l.S!=2)return l.return(l.T);g.aI(l);return g.n5(l,0)})}()};
  3726. zn5=function(T){return rq(function(){return KQ(T,T.next())})};
  3727. KQ=function(T,Q){return Q.done?A1(Q.value):ar(DQ(Q.value.AM,function(k){return KQ(T,T.next(k))}),function(k){return KQ(T,T.throw(k))})};
  3728. xS=function(T,Q){if(T.length===0)return A1(NaN);var k=C2H(),l=k.AM,v=k.resolve,L=T.length;T=g.B(T.entries());var q=T.next();for(k={};!q.done;k={Jg:void 0},q=T.next()){var Y=g.B(q.value);q=Y.next().value;Y=Y.next().value;k.Jg=q;Bnb(Y,function(U){return function(){l.T==="pending"&&(Xzg(Q)&&Q(U.Jg)&&l.T==="pending"?v(U.Jg):(--L,L===0&&v(NaN)))}}(k))}return l};
  3729. PC=function(T){return T.map(function(Q){return A1(Q)})};
  3730. t1=function(T){var Q=T.hours||0;var k=T.minutes||0,l=T.seconds||0;Q=l+k*60+Q*3600+(T.days||0)*86400+(T.weeks||0)*604800+(T.months||0)*2629800+(T.years||0)*31557600;Q<=0?Q={hours:0,minutes:0,seconds:0}:(T=Q,Q=Math.floor(T/3600),T%=3600,k=Math.floor(T/60),l=Math.floor(T%60),Q={hours:Q,minutes:k,seconds:l});var v=Q.hours===void 0?0:Q.hours;k=Q.minutes===void 0?0:Q.minutes;T=Q.seconds===void 0?0:Q.seconds;l=v>0;Q=[];if(l){v=(new Intl.NumberFormat("en-u-nu-latn")).format(v);var L=["fr"],q="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
  3731. v="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(HC)?v.replace(",","\u00a0"):L.includes(HC)?v.replace(",","\u202f"):q.includes(HC)?v.replace(",","."):v;Q.push(v)}l=l===void 0?!1:l;k=(["af","be","lt"].includes(HC)||l)&&k<10?wz6().format(k):(new Intl.NumberFormat("en-u-nu-latn")).format(k);Q.push(k);k=wz6().format(T);Q.push(k);k=":";"da fi id si sr sr-Latn".split(" ").includes(HC)&&(k=".");return Q.join(k)};
  3732. wz6=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
  3733. duy=function(T,Q){var k,l;T=((k=T.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(l=k.videoAuthorizationToken)==null?void 0:l.credentialTransferTokens)||[];for(k=0;k<T.length;++k)if(T[k].scope===Q)return T[k].token||void 0};
  3734. On=function(T){if(T&&T.simpleText)return T.simpleText;var Q="";if(T&&T.runs)for(var k=0;k<T.runs.length;k++)T.runs[k].text&&(Q+=T.runs[k].text);return Q};
  3735. pQ=function(T){return T?function(){try{return T.apply(this,arguments)}catch(Q){g.bA(Q)}}:T};
  3736. WC=function(){this.L=new Set;this.S=new Set;this.Y=new Map;this.client=void 0;this.csn=null};
  3737. $S=function(){WC.instance||(WC.instance=new WC);return WC.instance};
  3738. J1=function(){};
  3739. es=function(){this.C=[];this.j=[];this.T=[];this.qO=[];this.N=[];this.D=[];this.L=new Map;this.B=new Map;this.S=new Set;this.hj=new Map};
  3740. Fv=function(){es.instance||(es.instance=new es);return es.instance};
  3741. En=function(T,Q,k,l){l=l===void 0?{}:l;g.E4(function(){Nn5.includes(Q)||(g.rB(new g.Wy("createClientScreen() called with a non-page VE",Q)),Q=83769);l.isHistoryNavigation||(T.qO=[],T.T.push({rootVe:Q,key:l.key||""}));T.C=[];T.j=[];l.wB?Aju(T,Q,k,l):bpu(T,Q,k,l)})()};
  3742. rjC=function(T,Q,k){k=k===void 0?0:k;g.E4(function(){Q.then(function(l){T.S.has(k)&&T.Y&&T.Y();var v=g.C9(k),L=g.ST(k);if(v&&L){var q={automatedLogEventSource:3},Y;(l==null?0:(Y=l.response)==null?0:Y.trackingParams)&&g.p9(T.client,v,L,g.ha(l.response.trackingParams),!1,q);var U;(l==null?0:(U=l.playerResponse)==null?0:U.trackingParams)&&g.p9(T.client,v,L,g.ha(l.playerResponse.trackingParams),!1,q)}})})()};
  3743. i8=function(T){var Q=Fv();g.E4(function(){var k=g.ha(T);yh(Q,k);return k})()};
  3744. cjy=function(T){var Q={veType:253246};return g.E4(function(){if(!Q.veType)return ve(new g.Wy("Error: Trying to graft a client VE without a veType.")),null;if(Q.visibilityTypes){var k=Q.visibilityTypes.reduce(function(l,v){return l|v});
  3745. k={visibility:{types:String(k)}}}k=sUX(Q.veType,Q.visualElement,Q.elementIndex,Q.clientYouTubeData,void 0,k);return yh(T,k)?k:null})()};
  3746. yh=function(T,Q,k,l){l=l===void 0?0:l;return g.E4(function(){if(T.S.has(l))return T.C.push([Q,k]),!0;var v=g.C9(l),L=k||g.ST(l);if(v&&L){if(g.hH("combine_ve_grafts")){var q=T.L.get(L.toString());q?q.push(Q):(T.B.set(L.toString(),L),T.L.set(L.toString(),[Q]));T.z9||(T.z9=g.Er(0,function(){Vh(T,v)},1200))}else g.p9(T.client,v,L,Q);
  3747. return!0}return!1})()};
  3748. Dug=function(T,Q,k,l){l=l===void 0?0:l;var v=g.C9(l);Q=Q||g.ST(l);v&&Q&&(T=T.client,l=xu({cttAuthInfo:Bx(v)||void 0},v),k={csn:v,ve:Q.getAsJson(),clientData:k},v==="UNDEFINED_CSN"?Ja("visualElementStateChanged",l,k):T?mA("visualElementStateChanged",k,T,l):g.LM("visualElementStateChanged",k,l))};
  3749. Aju=function(T,Q,k,l){l=l===void 0?{}:l;T.S.add(l.layer||0);T.Y=function(){bpu(T,Q,k,l);var q=g.ST(l.layer);if(q){for(var Y=g.B(T.C),U=Y.next();!U.done;U=Y.next())U=U.value,yh(T,U[0],U[1]||q,l.layer);q=g.B(T.j);for(Y=q.next();!Y.done;Y=q.next())Y=Y.value,Dug(T,Y[0],Y[1])}};
  3750. k||g.C9(l.layer)||T.Y();if(l.wB)for(var v=g.B(l.wB),L=v.next();!L.done;L=v.next())rjC(T,L.value,l.layer);else g.bA(Error("Delayed screen needs a data promise."))};
  3751. bpu=function(T,Q,k,l){l=l===void 0?{}:l;var v=void 0;l.layer||(l.layer=0);v=l.parentLayer!==void 0?l.parentLayer:l.layer;var L=g.C9(v);v=g.ST(v);var q=k||v,Y;q&&(l.parentCsn!==void 0?Y={clientScreenNonce:l.parentCsn,visualElement:q}:L&&L!=="UNDEFINED_CSN"&&(Y={clientScreenNonce:L,visualElement:q}));var U,R=g.$i("EVENT_ID");L==="UNDEFINED_CSN"&&R&&(U={servletData:{serializedServletEventId:R}});g.hH("combine_ve_grafts")&&L&&Vh(T,L);g.hH("no_client_ve_attach_unless_shown")&&q&&L&&$u(q,L);try{var Z=oqH(T.client,
  3752. Q,Y,l.Xv,l.cttAuthInfo,U,l.implicitGestureType,l.loggingExpectations)}catch(m){ihI(m,{tO:Q,rootVe:v,wzd:k,OtO:L,VnO:Y,Xv:l.Xv});g.bA(m);return}bhH(Z,Q,l.layer,l.cttAuthInfo);L&&L!=="UNDEFINED_CSN"&&v&&!d2g(L)&&Ldy(T.client,L,v,!0);T.T[T.T.length-1]&&!T.T[T.T.length-1].csn&&(T.T[T.T.length-1].csn=Z||"");g.NL({clientScreenNonce:Z});J1.instance||(J1.instance=new J1);g.E4($S().T).bind($S())();var f=g.ST(l.layer);L&&L!=="UNDEFINED_CSN"&&f&&(g.hH("web_mark_root_visible")||g.hH("music_web_mark_root_visible"))&&
  3753. g.iA(Z,f);T.S.delete(l.layer||0);T.Y=void 0;var G;(G=T.hj.get(l.layer))==null||G.forEach(function(m,I){m?yh(T,I,m,l.layer):f&&yh(T,I,f,l.layer)});
  3754. aiu(T)};
  3755. aiu=function(T){for(var Q=0;Q<T.N.length;Q++){var k=T.N[Q];try{k()}catch(l){g.bA(l)}}for(Q=T.N.length=0;Q<T.D.length;Q++){k=T.D[Q];try{k()}catch(l){g.bA(l)}}};
  3756. Vh=function(T,Q){if(Q===void 0)for(var k=XDJ(),l=0;l<k.length;l++)k[l]!==void 0&&Vh(T,k[l]);else T.L.forEach(function(v,L){(L=T.B.get(L))&&g.O2(T.client,Q,L,v)}),T.L.clear(),T.B.clear(),T.z9=void 0};
  3757. Tq=function(){};
  3758. uN5=function(){Tq.instance||(Tq.instance=new Tq);return Tq.instance};
  3759. neX=function(T,Q,k){var l=new XMLHttpRequest;if(k==null?0:k.Hw)l.onreadystatechange=function(L){k.Hw(l,L)};
  3760. var v;l.open((v=Q.method)!=null?v:"GET",T,!0);l.responseType="text";l.withCredentials=!0;if(Q.headers)for(T=g.B(Object.entries(Q.headers)),Q=T.next();!Q.done;Q=T.next())v=g.B(Q.value),Q=v.next().value,v=v.next().value,l.setRequestHeader(Q,v);return l};
  3761. Qp=function(){};
  3762. KUI=function(){var T=navigator;return new Promise(function(Q,k){var l;(l=T.webkitTemporaryStorage)!=null&&l.queryUsageAndQuota?T.webkitTemporaryStorage.queryUsageAndQuota(function(v,L){Q({usage:v,quota:L})},function(v){k(v)}):k(Error("webkitTemporaryStorage is not supported."))})};
  3763. op=function(T,Q){var k=this;this.handleError=T;this.T=Q;this.S=!1;self.document===void 0||self.addEventListener("beforeunload",function(){k.S=!0});
  3764. this.L=Math.random()<=.2};
  3765. P25=function(T,Q){Qp.getInstance().estimate().then(function(k){k=Object.assign({},Q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:xuJ(k==null?void 0:k.usage),deviceStorageQuotaMbytes:xuJ(k==null?void 0:k.quota)});T.T("idbQuotaExceeded",k)})};
  3766. xuJ=function(T){return typeof T==="undefined"?"-1":String(Math.ceil(T/1048576))};
  3767. tEy=function(){g.xq();return g.Py(0,192)?g.Py(0,190):!(g.hH("web_watch_cinematics_disabled_by_default")||g.hH("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Hp5())};
  3768. pzg=function(T,Q){OpJ(T.program,Q.SWB)&&(cP("bg_i",void 0,"player_att"),g.jX.initialize(T,function(){cP("bg_l",void 0,"player_att");kg=(0,g.XY)()},Q.cspNonce,Q.fz))};
  3769. WUT=function(T){T=T===void 0?{}:T;return g.jX.invoke(T)};
  3770. OpJ=function(T,Q){if(T){var k;g.jX.isLoading()?k=!1:k=!kg||(0,g.XY)()-kg>Q;T=k}else T=!1;return T};
  3771. g.ld=function(T,Q){return T.fz+"timedtext_video?ref=player&v="+Q.videoId};
  3772. g.$ug=function(T){var Q=this;this.videoData=T;T={};this.T=(T.c1a=function(){var k=[];if(g.jX.isInitialized()){var l="";Q.videoData&&Q.videoData.d_&&(l=Q.videoData.d_+("&r1b="+Q.videoData.clientPlaybackNonce));var v={};l=(v.atr_challenge=l,v);cP("bg_v",void 0,"player_att");(l=WUT(l))?(cP("bg_s",void 0,"player_att"),k.push("r1a="+l)):(cP("bg_e",void 0,"player_att"),k.push("r1c=2"))}else cP("bg_e",void 0,"player_att"),window.trayride||window.botguard?k.push("r1c=1"):k.push("r1c=4");k.push("r1d="+g.jX.getState());
  3773. return k.join("&")},T.c6a=function(k){return"r6a="+(Number(k.c)^yi())},T.c6b=function(k){return"r6b="+(Number(k.c)^Number(g.$i("CATSTAT",0)))},T);
  3774. this.videoData&&this.videoData.d_?this.wA=QI(this.videoData.d_):this.wA={}};
  3775. g.Jjb=function(T){if(T.videoData&&T.videoData.d_){for(var Q=[T.videoData.d_],k=g.B(Object.keys(T.T)),l=k.next();!l.done;l=k.next())l=l.value,T.wA[l]&&T.T[l]&&(l=T.T[l](T.wA))&&Q.push(l);return Q.join("&")}return null};
  3776. g.o3=function(T,Q){pzg(T,{SWB:g.jj(Q.experiments,"bg_vm_reinit_threshold"),cspNonce:Q.cspNonce,fz:Q.fz||""})};
  3777. en5=function(){var T=XMLHttpRequest.prototype.fetch;return!!T&&T.length===3};
  3778. FUC=function(T){T=T[M[19]](M[29]);vr[M[67]](T,12);vr[M[2]](T,64);vr[M[12]](T,2);vr[M[67]](T,26);return T[M[60]](M[29])};
  3779. ip6=function(T,Q){eZ(T,2,Q.Ly,LP,3);eZ(T,3,Q.innertubeRequest,Ee5,3);$l(T,4,Q.onesieUstreamerConfig);$l(T,9,Q.Vl);eZ(T,10,Q.iU,qQ,3);eZ(T,15,Q.reloadPlaybackParams,yjC,3)};
  3780. T26=function(T,Q){eZ(T,1,Q.formatId,gt,3);px(T,2,Q.startTimeMs);px(T,3,Q.durationMs);px(T,4,Q.CB);px(T,5,Q.iH);eZ(T,9,Q.Jp6,VEb,3);eZ(T,11,Q.eC6,MQ,1);eZ(T,12,Q.AG,MQ,1)};
  3781. QDX=function(T,Q){Jl(T,1,Q.videoId);px(T,2,Q.lmt)};
  3782. VEb=function(T,Q){if(Q.iP)for(var k=0;k<Q.iP.length;k++)eZ(T,1,Q.iP[k],QDX,3)};
  3783. gt=function(T,Q){px(T,1,Q.itag);px(T,2,Q.lmt);Jl(T,3,Q.xtags)};
  3784. Yg=function(T){return{itag:B3(T,1),lmt:B3(T,2),xtags:w5(T,3)}};
  3785. MQ=function(T,Q){px(T,1,Q.startTicks);px(T,2,Q.fQ);px(T,3,Q.timescale)};
  3786. jDb=function(T){return{startTicks:B3(T,1),fQ:B3(T,2),timescale:B3(T,3)}};
  3787. k4b=function(T,Q){px(T,1,Q.defaultPolicy);px(T,2,Q.smooth);px(T,3,Q.visibility);px(T,4,Q.qR);px(T,5,Q.performance);px(T,6,Q.speed)};
  3788. odT=function(T,Q){if(Q.authorizedFormats)for(var k=0;k<Q.authorizedFormats.length;k++)eZ(T,1,Q.authorizedFormats[k],lX6,1);$l(T,2,Q.sabrLicenseConstraint)};
  3789. lX6=function(T,Q){px(T,1,Q.trackType);W3(T,2,Q.isHdr)};
  3790. LP=function(T,Q){px(T,13,Q.timeSinceLastManualFormatSelectionMs);var k=Q.lastManualDirection;k!==void 0&&(Oj(T,112),Oj(T,k<<1^k>>31));px(T,16,Q.sC);px(T,17,Q.detailedNetworkType);px(T,18,Q.SL);px(T,19,Q.Tf);px(T,21,Q.Eej);px(T,23,Q.fZ);px(T,28,Q.tG);px(T,29,Q.w1e);px(T,34,Q.visibility);k=Q.playbackRate;if(k!==void 0){var l=new ArrayBuffer(4);(new Float32Array(l))[0]=k;k=(new Uint32Array(l))[0];if(k!==void 0)for(Oj(T,285),tl(T,4),l=0;l<4;)T.view.setUint8(T.pos,k&255),k>>=8,T.pos+=1,l+=1}px(T,36,Q.vS);
  3791. eZ(T,38,Q.mediaCapabilities,vd5,3);px(T,39,Q.VkK);px(T,40,Q.HU);px(T,44,Q.playerState);W3(T,46,Q.pF);px(T,48,Q.Ft);px(T,50,Q.h1);px(T,51,Q.NU);px(T,54,Q.GG);if(Q.Cb)for(k=0;k<Q.Cb.length;k++)px(T,55,Q.Cb[k]);W3(T,56,Q.Qk9);px(T,57,Q.iN);W3(T,58,Q.Ql);px(T,59,Q.ID);px(T,60,Q.AX);W3(T,61,Q.isPrefetch);px(T,62,Q.qM);$l(T,63,Q.sabrLicenseConstraint);px(T,64,Q.Jm);px(T,66,Q.l2);px(T,67,Q.hC9);px(T,68,Q.OC);Jl(T,69,Q.audioTrackId);W3(T,71,Q.FO);eZ(T,72,Q.zZq,k4b,1);px(T,73,Q.xu);px(T,74,Q.eE);px(T,75,Q.sS);
  3792. px(T,76,Q.cxH);eZ(T,79,Q.O8,odT,3)};
  3793. vd5=function(T,Q){if(Q.videoFormatCapabilities)for(var k=0;k<Q.videoFormatCapabilities.length;k++)eZ(T,1,Q.videoFormatCapabilities[k],L2u,1);if(Q.audioFormatCapabilities)for(k=0;k<Q.audioFormatCapabilities.length;k++)eZ(T,2,Q.audioFormatCapabilities[k],qIt,1);eZ(T,4,Q.perPlaybackAttributes,gd5,3);px(T,5,Q.hdrModeBitmask)};
  3794. L2u=function(T,Q){px(T,1,Q.videoCodec);px(T,3,Q.maxHeight);px(T,4,Q.maxWidth);px(T,11,Q.maxFramerate);px(T,12,Q.maxBitrateBps);W3(T,15,Q.is10BitSupported)};
  3795. qIt=function(T,Q){px(T,1,Q.audioCodec);px(T,2,Q.numChannels);px(T,3,Q.maxBitrateBps);px(T,6,Q.spatialCapabilityBitmask)};
  3796. gd5=function(T,Q){if(Q.itagDenylist)for(var k=0;k<Q.itagDenylist.length;k++)px(T,1,Q.itagDenylist[k])};
  3797. qQ=function(T,Q){eZ(T,1,Q.clientInfo,MjT,3);$l(T,2,Q.ip);$l(T,3,Q.playbackCookie);$l(T,4,Q.Vl);if(Q.k6)for(var k=0;k<Q.k6.length;k++)eZ(T,5,Q.k6[k],YIH,3);if(Q.Mt)for(k=0;k<Q.Mt.length;k++)px(T,6,Q.Mt[k]);Jl(T,7,Q.ybK);eZ(T,8,Q.cw,UoJ,3)};
  3798. R35=function(T,Q){px(T,1,Q.a_q);px(T,2,Q.LPd)};
  3799. ZF5=function(T,Q){var k=Q.code;k!==void 0&&(Oj(T,8),Oj(T,k<<1^k>>31));Jl(T,2,Q.message)};
  3800. fXb=function(T,Q){px(T,1,Q.clientState);eZ(T,2,Q.kRe,R35,1)};
  3801. UoJ=function(T,Q){$l(T,1,Q.ZYk);eZ(T,2,Q.Jhd,ZF5,3);eZ(T,3,Q.coldStartInfo,fXb,3)};
  3802. YIH=function(T,Q){px(T,1,Q.type);$l(T,2,Q.value)};
  3803. MjT=function(T,Q){Jl(T,1,Q.hl);Jl(T,12,Q.deviceMake);Jl(T,13,Q.deviceModel);px(T,16,Q.clientName);Jl(T,17,Q.clientVersion);Jl(T,18,Q.osName);Jl(T,19,Q.osVersion)};
  3804. G4X=function(T,Q){Jl(T,1,Q.name);Jl(T,2,Q.value)};
  3805. UV=function(T,Q){Jl(T,1,Q.url);if(Q.lY)for(var k=0;k<Q.lY.length;k++)eZ(T,2,Q.lY[k],G4X,3);$l(T,3,Q.postBody);W3(T,4,Q.HG_);W3(T,6,Q.Xt)};
  3806. Ee5=function(T,Q){$l(T,2,Q.ye);$l(T,5,Q.encryptedClientKey);$l(T,6,Q.iv);$l(T,7,Q.tv);W3(T,10,Q.bGk);W3(T,13,Q.Dp);W3(T,14,Q.jL);$l(T,16,Q.PHq);W3(T,17,Q.Hd9)};
  3807. moI=function(T){return{RE:B3(T,1),httpStatus:B3(T,2),body:X0(T,4)}};
  3808. yjC=function(T,Q){Jl(T,1,Q.token)};
  3809. IXH=function(T){return{token:w5(T,1)}};
  3810. h3C=function(T){return{WA:B3(T,1),cu9:B3(T,2)}};
  3811. ChH=function(T,Q){eZ(T,1,Q.Ly,LP,3);if(Q.xX)for(var k=0;k<Q.xX.length;k++)eZ(T,2,Q.xX[k],gt,3);if(Q.Yc)for(k=0;k<Q.Yc.length;k++)eZ(T,3,Q.Yc[k],T26,3);$l(T,5,Q.videoPlaybackUstreamerConfig);if(Q.Mm)for(k=0;k<Q.Mm.length;k++)eZ(T,6,Q.Mm[k],sD5,3);if(Q.vY)for(k=0;k<Q.vY.length;k++)eZ(T,16,Q.vY[k],gt,3);if(Q.Dn)for(k=0;k<Q.Dn.length;k++)eZ(T,17,Q.Dn[k],gt,3);if(Q.fV)for(k=0;k<Q.fV.length;k++)eZ(T,18,Q.fV[k],gt,3);eZ(T,19,Q.iU,qQ,3);eZ(T,21,Q.gV,R3,3);px(T,22,Q.CC);px(T,23,Q.e3);if(Q.Bu)for(k=0;k<Q.Bu.length;k++)eZ(T,
  3812. 24,Q.Bu[k],R3,3);if(Q.tP)for(k=0;k<Q.tP.length;k++)eZ(T,1E3,Q.tP[k],SIT,3)};
  3813. sD5=function(T,Q){eZ(T,1,Q.formatId,gt,3);px(T,2,Q.Qw);px(T,3,Q.sequenceNumber);eZ(T,4,Q.Z2,MQ,1);px(T,5,Q.tR);px(T,6,Q.PR)};
  3814. R3=function(T,Q){if(Q.Hm)for(var k=0;k<Q.Hm.length;k++)Jl(T,1,Q.Hm[k]);$l(T,2,Q.D4);Jl(T,3,Q.e2);px(T,4,Q.dK);px(T,5,Q.tI);Jl(T,6,Q.Wv);Jl(T,7,Q.cuepointId);px(T,8,Q.rE)};
  3815. SIT=function(T,Q){if(Q.xX)for(var k=0;k<Q.xX.length;k++)eZ(T,1,Q.xX[k],gt,3);if(Q.Yc)for(k=0;k<Q.Yc.length;k++)eZ(T,2,Q.Yc[k],T26,3);Jl(T,3,Q.clipId)};
  3816. g.Zc=function(T,Q){eZ(T,1,Q.Ly,LP,3);$l(T,3,Q.videoPlaybackUstreamerConfig);eZ(T,5,Q.iU,qQ,3);eZ(T,6,Q.gV,R3,3)};
  3817. XIT=function(T,Q){Jl(T,1,Q.cpn);px(T,2,Q.sequenceNumber);Jl(T,3,Q.serializedWatchEndpointLoggingContext);if(Q.decoderInfo)for(var k=0;k<Q.decoderInfo.length;k++)eZ(T,6,Q.decoderInfo[k],B2C,3);Jl(T,9,Q.playerResponseCpn);px(T,10,Q.transitionStitchType);px(T,12,Q.timestampOffsetMsecs);px(T,15,Q.remoteControlMode);if(Q.remoteConnectedDevices)for(k=0;k<Q.remoteConnectedDevices.length;k++)eZ(T,16,Q.remoteConnectedDevices[k],z35,3);$l(T,17,Q.serializedHouseBrandPlayerServiceLoggingContext)};
  3818. B2C=function(T,Q){px(T,1,Q.elapsedTimeMs);Jl(T,3,Q.videoDecoderName)};
  3819. z35=function(T,Q){px(T,1,Q.deviceInterface);Jl(T,2,Q.deviceVersion);W3(T,3,Q.isSleeping)};
  3820. do5=function(T){return{Bn:d5(T,1,wIH),trackType:B3(T,2),qE:B3(T,3)}};
  3821. wIH=function(T){return{type:B3(T,1),event:B3(T,2),syd:eAT(T,3),JK:eAT(T,4),Ao:w5(T,5),identifier:w5(T,6),CB:B3(T,9)}};
  3822. N2X=function(T){return{first:B3(T,1),rb:B3(T,2)}};
  3823. A0C=function(T){return{bitrate:B3(T,6),width:B3(T,7),height:B3(T,8),fps:B3(T,25),averageBitrate:B3(T,31),audioSampleRate:B3(T,45),audioChannels:B3(T,46)}};
  3824. fP=function(T){return{itagDenylist:Ng(T,1)}};
  3825. c05=function(T){return{ev_:B3(T,1),itag:w5(T,3),rf:d5(T,4,bFC),lmt:B3(T,5),mAe:B3(T,7),xtags:w5(T,15),Tdq:d5(T,23,r0b),AN:d5(T,34,fP)}};
  3826. bFC=function(T){return{iv:X0(T,5),Yt:zU(T,7)}};
  3827. Dob=function(T){return{vj:Ng(T,2),videoId:w5(T,3),Od:B3(T,4)}};
  3828. r0b=function(T){return{videoId:w5(T,2)}};
  3829. aXI=function(T){return{pP:B3(T,3),Sd:B3(T,4),Dk:B3(T,5),nMK:zU(T,8),jYV:B3(T,10),RC:B3(T,12),BN:B3(T,13),oC:B3(T,14),ED:B3(T,15),Dw:B3(T,16)}};
  3830. utb=function(T){return{targetAudioReadaheadMs:B3(T,1),targetVideoReadaheadMs:B3(T,2),backoffTimeMs:B3(T,4),playbackCookie:X0(T,7),videoId:w5(T,8)}};
  3831. ndu=function(T){return{minBandwidthBytesPerSec:B3(T,1),minReadaheadMs:B3(T,2)}};
  3832. K2f=function(T){return{startMinReadaheadPolicy:Al(T,1,ndu),resumeMinReadaheadPolicy:Al(T,2,ndu)}};
  3833. xoX=function(T){return{label:w5(T,1),text:w5(T,2)}};
  3834. PhC=function(T){return{videoId:w5(T,1),formatId:d5(T,2,Yg),debugInfo:Al(T,3,xoX)}};
  3835. HFT=function(T){return{ao:Al(T,1,PhC)}};
  3836. tjf=function(T){return{CN:B3(T,1),Fb:B3(T,2),minReadaheadMs:B3(T,3)}};
  3837. OFI=function(T){return{j0:B3(T,1),items:Al(T,2,tjf),Vm:B3(T,3)}};
  3838. pIb=function(T){return{token:w5(T,1),videoId:w5(T,2)}};
  3839. W2t=function(T){return{Up:B3(T,1)}};
  3840. $o5=function(T){return{Uz:w5(T,1),action:B3(T,2),mM:d5(T,3,W2t)}};
  3841. Gq=function(T){return{Nh:B3(T,1),V7:B3(T,2),seekSource:B3(T,3)}};
  3842. e36=function(T){return{kmq:Al(T,1,J0I),Q99:w5(T,2)}};
  3843. F2T=function(T){return{s9k:w5(T,1),C$K:B3(T,2),qE9:B3(T,3),Ha9:B3(T,4),gQK:B3(T,5),l0B:B3(T,6)}};
  3844. Ed5=function(T){return{oQm:B3(T,1)}};
  3845. J0I=function(T){return{clipId:w5(T,1),Rcj:d5(T,2,F2T),dk_:d5(T,3,Ed5)}};
  3846. y0g=function(T){return{type:B3(T,1),scope:B3(T,2),value:X0(T,3),sendByDefault:zU(T,4),writePolicy:B3(T,5)}};
  3847. Vj5=function(T){iFf=2592E3*(T||1)};
  3848. mk=function(T){T=T===void 0?iFf:T;if(T>0&&!(F_f()>(0,g.XY)()-T*1E3))return 0;T=g.cy("yt-player-quality");if(typeof T==="string"){if(T=g.wC[T],T>0)return T}else if(T instanceof Object)return T.quality;return 0};
  3849. I3=function(){var T=g.cy("yt-player-proxima-pref");return T==null?null:T};
  3850. Tvy=function(){var T=g.cy("yt-player-quality");if(T instanceof Object&&T.quality&&T.previousQuality){if(T.quality>T.previousQuality)return 1;if(T.quality<T.previousQuality)return-1}return 0};
  3851. Q0X=function(){var T={values:{},jP:{}};try{var Q=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);T.values=Q.values;T.halfLives=Q.halfLives}catch(k){}return T};
  3852. h_=function(){return g.cy("yt-player-performance-cap")||{}};
  3853. sV=function(){var T;return(T=g.cy("yt-player-performance-cap-active-set"))!=null?T:[]};
  3854. j0y=function(T){(T===void 0?0:T)?(T=sV().filter(function(Q){return Q.startsWith("1")}),g.ri("yt-player-performance-cap-active-set",T,2592E3)):g.ri("yt-player-performance-cap-active-set",[],2592E3)};
  3855. k15=function(T){g.ri("yt-player-watch-later-pending",T)};
  3856. lJb=function(){return!!g.cy("yt-player-headers-readable")};
  3857. opf=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(T){return 0}};
  3858. g.SX=function(){var T=g.cy("yt-player-caption-language-preferences");return T?T:[]};
  3859. CP=function(){var T=g.cy("yt-player-user-settings"),Q=new Map;if(T){T=g.B(Object.entries(T));for(var k=T.next();!k.done;k=T.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;Q.set(k,l)}}return Q};
  3860. vpC=function(){var T;return(T=g.cy("yt-player-voice-boost"))!=null?T:void 0};
  3861. Ljf=function(){var T;return(T=g.cy("yt-player-audio-quality-setting"))!=null?T:2};
  3862. zq=function(){try{var T=window.navigator;if(T.getAutoplayPolicy&&typeof T.getAutoplayPolicy==="function"){var Q=document.getElementsByClassName(g.Br.k0q);var k=Q.length>0&&Q[0]?T.getAutoplayPolicy(Q[0]):T.getAutoplayPolicy("mediaelement");if(qPJ[k])return qPJ[k]}}catch(l){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
  3863. XQ=function(T){return T.ek||T.dO||T.mutedAutoplay};
  3864. gpt=function(T,Q){return XQ(T)?Q!==1&&Q!==2&&Q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":T.BK?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
  3865. MBt=function(T,Q,k){var l=Q.G();T.thirdParty||(T.thirdParty={});l.ancestorOrigins&&(T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{ancestorOrigins:l.ancestorOrigins}));l.V("embeds_enable_autoplay_and_visibility_signals")&&(l.XU!=null&&(T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(l.XU)})),l.U1&&(T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{visibilityFractionSource:l.U1})),
  3866. T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:zq(),autoplayIntended:XQ(Q),autoplayStatus:gpt(Q,k)}))};
  3867. YPu=function(T){var Q=[];T=g.B(T.split(","));for(var k=T.next();!k.done;k=T.next()){var l=k.value;l&&((k=l.startsWith("!"))&&(l=l.substring(1)),l=l.split("-"),l.length<3||Q.push({Pu:l[0],platform:l[1],deviceVersion:l[2],QX:k}))}return Q};
  3868. ZBC=function(T){return YPu(T).map(function(Q){return{deviceInterface:UPT[RFu[Q.Pu]]||0,deviceVersion:Q.deviceVersion||"",isSleeping:Q.QX}})};
  3869. g.wt=function(T,Q){this.id=T;this.MY=Q;this.captionTracks=[];this.L=this.Y=null;this.xtags="";this.N=!1;this.T=null;this.S="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";T=this.MY.id.split(".");T.length>1&&(this.N=T[1]==="2")};
  3870. dt=function(T,Q,k,l,v){this.S=T;this.T=Q;this.L=k;this.reason=l;this.qY=v===void 0?0:v};
  3871. g.NQ=function(T,Q,k,l){return new dt(g.wC[T]||0,g.wC[Q]||0,k,l)};
  3872. bd=function(T){if(A_&&T.qY)return!1;var Q=g.wC.auto;return T.S===Q&&T.T===Q};
  3873. cr=function(T){return rt[T.T||T.S]||"auto"};
  3874. fJf=function(T,Q){Q=g.wC[Q];return T.S<=Q&&(!T.T||T.T>=Q)};
  3875. Dc=function(T){return"["+T.S+"-"+T.T+", override: "+(T.L+", reason: "+T.reason+"]")};
  3876. a3=function(T,Q,k){this.videoInfos=T;this.T=Q;this.audioTracks=[];if(this.T){T=new Set;k==null||k({ainfolen:this.T.length});Q=g.B(this.T);for(var l=Q.next();!l.done;l=Q.next())if(l=l.value,!l.MY||T.has(l.MY.id)){var v=void 0,L=void 0,q=void 0;(q=k)==null||q({atkerr:!!l.MY,itag:l.itag,xtag:l.T,lang:((v=l.MY)==null?void 0:v.name)||"",langid:((L=l.MY)==null?void 0:L.id)||""})}else v=new g.wt(l.id,l.MY),T.add(l.MY.id),this.audioTracks.push(v);k==null||k({atklen:this.audioTracks.length})}};
  3877. ud=function(){g.x.apply(this,arguments);this.T=null};
  3878. hFC=function(T,Q,k,l,v,L,q){if(T.T)return T.T;var Y={},U=new Set,R={};if(nP(l)){for(var Z in l.T)l.T.hasOwnProperty(Z)&&(T=l.T[Z],R[T.info.yR]=[T.info]);return R}Z=G1X(Q,l,Y);L&&v({aftsrt:KP(Z)});for(var f={},G=g.B(Object.keys(Z)),m=G.next();!m.done;m=G.next()){m=m.value;for(var I=g.B(Z[m]),z=I.next();!z.done;z=I.next()){z=z.value;var w=z.itag,r=void 0,A=m+"_"+(((r=z.video)==null?void 0:r.fps)||0);f.hasOwnProperty(A)?f[A]===!0?R[m].push(z):Y[w]=f[A]:(r=xg(Q,z,k,l.isLive,U),r!==!0?(q.add(m),Y[w]=r,
  3879. r==="disablevp9hfr"&&(f[A]="disablevp9hfr")):(R[m]=R[m]||[],R[m].push(z),f[A]=!0))}}L&&v({bfflt:KP(R)});for(var D in R)R.hasOwnProperty(D)&&(l=D,R[l]&&R[l][0].bK()&&(R[l]=R[l],R[l]=mPb(Q,R[l],Y),R[l]=IJf(R[l],Y)));L&&Object.keys(Y).length>0&&v({rjr:RE(Y)});Q=g.B(U.values());for(l=Q.next();!l.done;l=Q.next())(l=k.Y.get(l.value))&&--l.k5;L&&v({aftflt:KP(R)});T.T=g.Ts(R,function(K){return!!K.length});
  3880. return T.T};
  3881. SPu=function(T,Q,k,l,v,L,q,Y){Y=Y===void 0?!1:Y;if(Q.gt&&q&&q.length>1&&!(Q.ID>0||Q.j)){for(var U=Q.S||!!v,R=U&&Q.OG?L:void 0,Z=G1X(Q,l),f=[],G=[],m={},I=0;I<q.length;I++){var z=q[I],w=l.L.get(z);if(w&&w.info){var r=w.info;w=r.yR;if(xg(Q,r,k,l.isLive)){z=r.bK()?f:G;r=g.B(Z[w]);for(var A=r.next();!A.done;A=r.next()){A=A.value;var D=void 0,K=w+"_"+(((D=A.video)==null?void 0:D.fps)||0);m.hasOwnProperty(K)?m[K]===!0&&z.push(A):xg(Q,A,k,l.isLive)&&(z.push(A),m[K]=!0)}}else U&&L({opfu:z})}}if(f.length&&
  3882. G.length)return U&&L({opfm:f[0].itag+","+G[0].itag}),rV(new a3(f,G,R))}return s06(T,Q,k,l,v,L,Y)};
  3883. s06=function(T,Q,k,l,v,L,q){function Y(K){return!!f[K]}
  3884. var U=Q.S||!!v,R=U&&Q.OG?L:void 0,Z=new Set,f=hFC(T,Q,k,l,L,U,Z);Pr(l)&&(f=CEu(k,f,v,U,L,Q),U&&L({enflt:KP(f)}));Q.zg=Bv5(f,Q);if(nP(l))return L=g.sA(Object.values(f),function(K){return!!K.length&&!!K[0].audio}),U=g.sA(Object.values(f),function(K){return!!K.length&&!!K[0].video}),L&&U||bC(),rV(new a3(U,L,R));
  3885. v=zF5(Q);T=f.a;var G=!1;Q.p_&&v[0]!=="a"&&Xk5(T)&&(v.unshift("a"),G=!0);U&&(L({audioPrefOrder:v.join("_")}),L({preferHighQualityAudio:Q.p_}),L({forcedAacForHqa:G}));T=[];if(Q.Fk){v=g.bl(v,Y);G=new Set;for(var m=g.B(v),I=m.next();!I.done;I=m.next()){var z=new Set;I=g.B(f[I.value]);for(var w=I.next();!w.done;w=I.next()){w=w.value;var r=void 0,A=(r=w.MY)==null?void 0:r.id;A&&(G.has(A)?z.has(A)&&T.push(w):(z.add(A),G.add(A),T.push(w)))}}if(T.length===0){if(v.length===0)return U&&L({noaudio:1}),bC();T=
  3886. f[v[0]]}}else{T=g.sA(v,Y);if(!T)return U&&L({noaudio:1}),bC();T=f[T]}f["9"]&&f.h&&l.Cc&&!Q.sK&&(U&&L({dltvp9:1}),delete f["9"]);if(q){U&&L({bfsflt:KP(f),bfsflta:Hr(k)});wk5(k,Z);U&&L({bfsfltb:Hr(k)});for(var D in f)if(f.hasOwnProperty(D)&&(q=D,!(q==="f"||Q.i9===0&&dPy.has(q))))for(Z=g.B(f[q]),v=Z.next();!v.done;v=Z.next())v=v.value,Q.F_?NvH(k,q,v):AMy(k,q,v);U&&L({aftsflt:Hr(k)})}q=f["1h"]?"1h":"1";k=f["9h"]?"9h":"9";v=f[q];G=f[k];v&&v.length&&(Q.T.highestAv1Resolution=v[v.length-1].video.qualityOrdinal);
  3887. G&&G.length&&(Q.T.highestVp9Resolution=G[G.length-1].video.qualityOrdinal);D=[];Z=[];if(Q.iK&&v)D=v,Z=[q],L({forceAv1:q});else if(Q.j&&!Q.Ql)for(Z=bBy(l)?f["1h"]||f["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],U&&L({newhybpref:Z.join(".")}),v=g.B(Z),G=v.next();!G.done;G=v.next())D=D.concat(f[G.value]).filter(function(K){return K});
  3888. else Q.ID>0&&G&&v&&(Z=[q,k],D=v.concat(G).filter(function(K){return K}));
  3889. if(D.length&&!Q.Ql){t_(D,Z);if(U){U=[];Q=g.B(D);for(l=Q.next();!l.done;l=Q.next())U.push(l.value.itag);L({hbdfmt:U.join(".")})}return rV(new a3(D,T,R))}D=rMH(Q);D=g.sA(D,Y);if(!D){if(f[q])return L=f[q],t_(L),rV(new a3(L,T,R));U&&L({novideo:1});return bC()}Q.t6&&(D==="1"||D==="1h")&&f[k]&&(q=OV(f[D]),Z=OV(f[k]),Z>q?D=k:Z===q&&cMH(f[k])&&(D=k));D==="9"&&f.h&&OV(f.h)>OV(f["9"])&&(D="h");Q.QR&&l.isLive&&D==="("&&f.H&&OV(f["("])<1440&&(D="H");U&&L({vfmly:pP(D)});Q=f[D];if(!Q.length)return U&&L({novfmly:pP(D)}),
  3890. bC();t_(Q);return rV(new a3(Q,T,R))};
  3891. Bv5=function(T,Q){var k=!(!T.m&&!T.M),l=!(!T.mac3&&!T.MAC3),v=!(!T.meac3&&!T.MEAC3);T=!(!T.i&&!T.I);Q.Ah=T;return k||l||v||T};
  3892. cMH=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.itag&&DPH.has(Q.itag))return!0;return!1};
  3893. Xk5=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1};
  3894. pP=function(T){switch(T){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return T}};
  3895. KP=function(T){var Q=[],k;for(k in T)if(T.hasOwnProperty(k)){var l=k;Q.push(pP(l));l=g.B(T[l]);for(var v=l.next();!v.done;v=l.next())Q.push(v.value.itag)}return Q.join(".")};
  3896. CEu=function(T,Q,k,l,v,L){var q={},Y={};g.VJ(Q,function(U,R){U=U.filter(function(Z){var f=Z.itag;if(!Z.jY)return Y[f]="noenc",!1;if(L.Gg&&Z.yR==="(h"&&L.Tg)return Y[f]="lichdr",!1;if(!T.N&&Z.yR==="1e")return Y[f]="noav1enc",!1;if(Z.yR==="("||Z.yR==="(h"){if(T.L&&k&&k.flavor==="widevine"){var G=Z.mimeType+"; experimental=allowed";(G=!!Z.jY[k.flavor]&&!!k.T[G])||(Y[f]=Z.jY[k.flavor]?"unspt":"noflv");return G}if(!Wr(T,$g.CRYPTOBLOCKFORMAT)&&!T.i9||T.hj)return Y[f]=T.hj?"disvp":"vpsub",!1}return k&&Z.jY[k.flavor]&&
  3897. k.T[Z.mimeType]?!0:(Y[f]=k?Z.jY[k.flavor]?"unspt":"noflv":"nosys",!1)});
  3898. U.length&&(q[R]=U)});
  3899. l&&Object.entries(Y).length&&v({rjr:RE(Y)});return q};
  3900. IJf=function(T,Q){var k=so(T,function(l,v){return v.video.fps>32?Math.min(l,v.video.width):l},Infinity);
  3901. k<Infinity&&(T=T.filter(function(l){if(l.video.fps>32||l.video.width<k)return!0;Q[l.itag]="hfrfirst";return!1}));
  3902. $5()&&(T=T.filter(function(l){if(l.itag!=="299")return!0;Q[l.itag]="ps3hfr1080";return!1}));
  3903. return T};
  3904. mPb=function(T,Q,k){return Q=Q.filter(function(l){if(l.video.qualityOrdinal<=T.DP)return!0;k[l.itag]="maxquality";return!1})};
  3905. G1X=function(T,Q,k){var l={},v;for(v in Q.T)if(Q.T.hasOwnProperty(v)){var L=Q.T[v].info;if(T.C&&L.video&&L.video.qualityOrdinal<T.C)k&&(k[L.itag]="min"+T.C);else{var q=L.yR;l[q]=l[q]||[];l[q].push(L)}}T=g.B(Object.keys(l));for(Q=T.next();!Q.done;Q=T.next())t_(l[Q.value]);return l};
  3906. OV=function(T){return so(T,function(Q,k){return Math.max(Q,k.video.qualityOrdinal)},0)};
  3907. xg=function(T,Q,k,l,v){v=v===void 0?new Set:v;if(Q.yR==="")return"unkn";if((Q.itag==="304"||Q.itag==="266")&&T.qO)return"blk2khfr";if(T.B&&Q.video&&Q.video.qualityOrdinal>T.B)return"max"+T.B;if(T.f_&&Q.yR==="h"&&Q.video&&Q.video.qualityOrdinal>1080)return"blkhigh264";if(Q.yR==="(h"&&!k.C)return"enchdr";if((l===void 0?0:l)&&Ku(Q)&&!T.Bd)return"blk51live";if((Q.yR==="MAC3"||Q.yR==="mac3")&&!T.Y)return"blkac3";if((Q.yR==="MEAC3"||Q.yR==="meac3")&&!T.N)return"blkeac3";if(Q.yR==="M"||Q.yR==="m")return"blkaac51";
  3908. if((Q.yR==="so"||Q.yR==="sa")&&!T.z9)return"blkamb";if(!T.Gg&&ucI(Q)&&(!k.N||Q.yR!=="1e"))return"cbc";if(!k.N&&ucI(Q)&&Q.yR==="1e")return"cbcav1";if((Q.yR==="i"||Q.yR==="I")&&!T.Ig)return"blkiamf";var L;if(T.d5&&((L=Q.audio)==null?void 0:L.S)===!0)return"blkvbcabr";var q,Y;if(T.u9&&(Q.yR==="1"||Q.yR==="1h"||k.N&&Q.yR==="1e")&&((q=Q.video)==null?0:q.qualityOrdinal)&&((Y=Q.video)==null?void 0:Y.qualityOrdinal)>T.u9)return"av1cap";l=k.Y.get(Q.yR);if(!T.h3&&l&&l.k5>0)return v.add(Q.yR),"byerr";var U;
  3909. if((U=Q.video)==null?0:U.fps>32){if(!k.xm&&!Wr(k,$g.FRAMERATE))return"capHfr";if(T.K_&&Q.video.qualityOrdinal>=4320)return"blk8khfr";if(cj(Q)&&T.YP&&Q.jY&&Q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(T.qY&&Q.qY>T.qY)return"ratecap";if(T.hj>0&&Q.bK()&&Q.video.height>T.hj)return"mvhcap";T=aJt(k,Q);return T!==!0?T:!0};
  3910. t_=function(T,Q){Q=Q===void 0?[]:Q;g.JT(T,function(k,l){var v=l.qY-k.qY;if(!k.bK()||!l.bK())return v;var L=l.video.height*l.video.width-k.video.height*k.video.width;!L&&Q&&Q.length>0&&(k=Q.indexOf(k.yR)+1,l=Q.indexOf(l.yR)+1,L=k===0||l===0?l||-1:k-l);L||(L=v);return L})};
  3911. g.J_=function(T,Q){this[M[22]]=T;this[M[13]]=Q===void 0?!1:Q;this[M[30]]=this[M[31]]=this[M[28]]=M[29];this[M[5]]={};this[M[15]]=M[29]};
  3912. FQ=function(T){eX(T);return T[M[30]]};
  3913. EV=function(T){return T[M[22]]?T[M[22]][M[9]](M[41]):T[M[28]]===M[41]};
  3914. uS5=function(T){eX(T);return g.jP(T[M[5]],function(Q){return Q!==null})};
  3915. yp=function(T){eX(T);var Q=decodeURIComponent(T[M[20]](M[42])||M[29])[M[19]](M[38]);return T[M[31]]===M[18]&&Q[M[24]]>1&&!!Q[1]};
  3916. id=function(T,Q){Q=Q===void 0?!1:Q;eX(T);if(T[M[31]]!==M[18]){var k=T[M[3]]();k[M[10]](M[82],M[0]);return k}var l=T[M[76]]();k=new g.lN(l);var v=T[M[20]](M[78]),L=decodeURIComponent(T[M[20]](M[42])||M[29])[M[19]](M[38]);if(v&&L&&L[M[24]]>1&&L[1])return l=k.T,T=l[M[53]](/^[^.]*/,M[29]),g.v0(k,(l[M[14]](M[77])===0?M[77]:M[50])+v+M[68]+L[1]+T),k=new g.J_(k[M[54]]()),k[M[10]](M[49],M[0]),k;if(Q)return k=T[M[3]](),k[M[10]](M[49],M[0]),k;v=k.T[M[75]](M[6]);k.T[M[75]](M[34])?(g.v0(k,M[25]),l=k[M[54]]()):
  3917. k.T[M[75]](M[61])?(g.v0(k,M[71]),l=k[M[54]]()):(k=Xx5(l),t0(k)&&(l=k));k=new g.J_(l);k[M[10]](M[36],M[0]);v&&k[M[10]](M[35],M[85]);return k};
  3918. eX=function(T){if(T[M[22]]){if(!(t0(T[M[22]])||T[M[22]][M[9]](M[41])||T[M[22]][M[9]](M[64])||T[M[22]][M[9]](M[58])))throw new g.Wy(M[91],T[M[22]]);var Q=g.RZ(T[M[22]]);T[M[28]]=Q.N;T[M[30]]=Q.T+(Q.L!=null?M[66]+Q.L:M[29]);var k=Q.S;if(k[M[9]](M[18]))T[M[31]]=M[18],k=k[M[21]](14);else if(k[M[9]](M[52]))T[M[31]]=M[52],k=k[M[21]](13);else if(k[M[9]](M[48])){var l=k[M[14]](M[62],12),v=k[M[14]](M[62],l+1);l>0&&v>0?(T[M[31]]=k[M[21]](0,v),k=k[M[21]](v+1)):(T[M[31]]=k,k=M[29])}else T[M[31]]=k,k=M[29];l=
  3919. T[M[5]];T[M[5]]=npb(k);Object[M[40]](T[M[5]],KjJ(Q.Y.toString()));Object[M[40]](T[M[5]],l);T[M[5]][M[59]]===M[90]&&(delete T[M[5]][M[59]],T[M[31]]+=M[81]);T[M[22]]=M[29];T[M[15]]=M[29];T[M[13]]&&(eX(T),Q=T[M[5]][M[80]]||null)&&(Q=xPb[0](Q),T[M[10]](M[80],Q))}};
  3920. PE5=function(T){eX(T);var Q=T[M[28]]+(T[M[28]]?M[79]:M[70])+T[M[30]]+T[M[31]];if(uS5(T)){var k=[];g.VJ(T[M[5]],function(l,v){l!==null&&k[M[32]](v+M[65]+l)});
  3921. Q+=M[87]+k[M[60]](M[47])}return Q};
  3922. npb=function(T){T=T[M[19]](M[62]);var Q=0;T[0]||Q++;for(var k={};Q<T[M[24]];Q+=2)T[Q]&&HBt(k,T[Q],T[Q+1]);return k};
  3923. KjJ=function(T){T=T[M[19]](M[47]);for(var Q={},k=0;k<T[M[24]];k++){var l=T[k],v=l[M[14]](M[65]);v>0?HBt(Q,l[M[21]](0,v),l[M[21]](v+1)):l&&(Q[l]=M[29])}return Q};
  3924. HBt=function(T,Q,k){if(Q===M[23]){var l;(l=k[M[14]](M[65]))>=0?(Q=M[17]+k[M[21]](0,l),k=k[M[21]](l+1)):(l=k[M[14]](M[1]))>=0&&(Q=M[17]+k[M[21]](0,l),k=k[M[21]](l+3))}T[Q]=k};
  3925. Vp=function(T){var Q=g.t(T,tB6)||T[M[84]];T={vO:!1,rI:M[29],Fq:M[29],s:M[29]};if(!Q)return T;Q=QI(Q);T[M[27]]=!0;T[M[86]]=Q[M[15]];T[M[72]]=Q[M[4]];T[M[26]]=Q[M[26]];return T};
  3926. T7=function(T,Q,k,l,v,L,q,Y,U){this.NO=T;this.startTime=Q;this.duration=k;this.ingestionTime=l;this.sourceURL=v;this.Bn=U;this.endTime=Q+k;this.T=q||0;this.range=L||null;this.pending=Y||!1;this.Bn=U||null};
  3927. g.Qn=function(){this.segments=[];this.T=null;this.S=!0;this.L=""};
  3928. OBu=function(T,Q){if(Q>T.a_())T.segments=[];else{var k=hT(T.segments,function(l){return l.NO>=Q},T);
  3929. k>0&&T.segments.splice(0,k)}};
  3930. jv=function(T,Q,k,l,v){v=v===void 0?!1:v;this.data=T;this.offset=Q;this.size=k;this.type=l;this.T=(this.S=v)?0:8;this.dataOffset=this.offset+this.T};
  3931. kc=function(T){var Q=T.data.getUint8(T.offset+T.T);T.T+=1;return Q};
  3932. lx=function(T){var Q=T.data.getUint16(T.offset+T.T);T.T+=2;return Q};
  3933. ot=function(T){var Q=T.data.getInt32(T.offset+T.T);T.T+=4;return Q};
  3934. vt=function(T){var Q=T.data.getUint32(T.offset+T.T);T.T+=4;return Q};
  3935. Lo=function(T){var Q=T.data;var k=T.offset+T.T;Q=Q.getUint32(k)*4294967296+Q.getUint32(k+4);T.T+=8;return Q};
  3936. q6=function(T,Q){Q=Q===void 0?NaN:Q;if(isNaN(Q))var k=T.size;else for(k=T.T;k<T.size&&T.data.getUint8(T.offset+k)!==Q;)++k;Q=new Uint8Array(T.data.buffer,T.offset+T.T+T.data.byteOffset,k-T.T);T.T=Math.min(k+1,T.size);return ZC(Q)};
  3937. pkg=function(T){return new Uint8Array(T.data.buffer,T.offset+T.data.byteOffset,T.size)};
  3938. WjT=function(T){this.offset=0;this.data=new DataView(new ArrayBuffer(T))};
  3939. g8=function(T,Q,k,l){(new Uint8Array(T.data.buffer,T.offset,l)).set(new Uint8Array(Q.buffer,k+Q.byteOffset,l));T.offset+=l};
  3940. M6=function(T,Q,k,l,v,L){this.startSecs=T;this.bf=Q;this.context=k;this.identifier=l;this.event=v;this.T=L};
  3941. Uw=function(T,Q){this.data=T;this.uri=Q||"http://youtube.com/streaming/metadata/segment/102015";this.qB=Yc(this,"Sequence-Number");this.Y=Yc(this,"Segment-Count");this.N=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Yc(this,"Ingestion-Walltime-Us")/1E6;this.T=(Yc(this,"First-Frame-Time-Us")+Yc(this,"First-Frame-Uncertainty-Us"))/1E6;this.hW=Yc(this,"Target-Duration-Us")/1E6;this.Dq=this.data["Stream-Finished"]==="T";this.L=this.data.Streamable==="T";this.cryptoPeriodIndex=Yc(this,"Crypto-Period-Index");
  3942. this.S=Yc(this,"Crypto-Period-Seconds")};
  3943. JMb=function(T){return T.data["Cuepoint-Type"]?new M6(-(Number(T.data["Cuepoint-Playhead-Time-Sec"])||0),Number(T.data["Cuepoint-Total-Duration-Sec"])||0,T.data["Cuepoint-Context"],T.data["Cuepoint-Identifier"]||"",$P6[T.data["Cuepoint-Event"]||""]||"unknown",(Number(T.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
  3944. eFf=function(T){return Number(T.data["Start-Media-Time-Us"])/1E6||0};
  3945. Yc=function(T,Q){return Number(T.data[Q])||0};
  3946. FjC=function(T){return T.data["Stitched-Video-Cpn"]?T.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
  3947. g.Epu=function(T){return T.data["Serialized-State"]?T.data["Serialized-State"]:""};
  3948. g.yMX=function(T){switch(T.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
  3949. iBX=function(T,Q){this.T=T;this.duration=Q};
  3950. VBC=function(T,Q,k,l,v){this.S=v;this.T=T||0;this.pitch=Q||0;this.yaw=k||0;this.roll=l||0;this.crc=v.getUint32(4)};
  3951. Rt=function(T){var Q={};T=T.split("\r\n");for(var k=0;k<T.length;k++){if(T[k].length===0)return Q;var l=T[k].match(/([^:]+):\s+([\S\s]+)/);l!=null&&(Q[l[1]]=l[2])}return null};
  3952. TC6=function(T,Q){var k=g.Z8(T,0,1952868452);T=g.Z8(T,0,1953658222);if(k&&T){k.skip(1);var l=kc(k)<<16|lx(k);k.skip(4);l&1&&k.skip(8);l&2&&k.skip(4);if(l&8){l=k.T;var v=vt(k);k.data.setUint32(k.offset+l,Q>1?Math.ceil(v*Q):Math.floor(v*Q))}T.skip(1);k=kc(T)<<16|lx(T);if(k&256){l=k&1;v=k&4;var L=k&512,q=k&1024,Y=k&2048;k=vt(T);l&&T.skip(4);v&&T.skip(4);l=(L?4:0)+(q?4:0)+(Y?4:0);for(v=0;v<k;v++)L=T.T,q=vt(T),T.data.setUint32(T.offset+L,Q>1?Math.ceil(q*Q):Math.floor(q*Q)),T.skip(l)}}};
  3953. G7=function(T){T=new DataView(T.buffer,T.byteOffset,T.byteLength);return(T=g.Z8(T,0,1836476516))?g.fo(T):NaN};
  3954. QEt=function(T){var Q=g.Z8(T,0,1937011556);if(!Q)return null;Q=mu(T,Q.dataOffset+8,1635148593)||mu(T,Q.dataOffset+8,1635135537);if(!Q)return null;var k=mu(T,Q.dataOffset+78,1936995172),l=mu(T,Q.dataOffset+78,1937126244);if(!l)return null;Q=null;if(k)switch(k.skip(4),kc(k)){default:Q=0;break;case 1:Q=2;break;case 2:Q=1;break;case 3:Q=255}var v=k=null,L=null;if(l=mu(T,l.dataOffset,1886547818)){var q=mu(T,l.dataOffset,1886546020),Y=mu(T,l.dataOffset,2037673328);if(!Y&&(Y=mu(T,l.dataOffset,1836279920),
  3955. !Y))return null;q&&(q.skip(4),k=ot(q)/65536,L=ot(q)/65536,v=ot(q)/65536);T=pkg(Y);T=new DataView(T.buffer,T.byteOffset+8,T.byteLength-8);return new VBC(Q,k,L,v,T)}return null};
  3956. mu=function(T,Q,k){for(;It(T,Q);){var l=hw(T,Q);if(l.type===k)return l;Q+=l.size}return null};
  3957. g.Z8=function(T,Q,k){for(;It(T,Q);){var l=hw(T,Q);if(l.type===k)return l;Q=Sv(l.type)?Q+8:Q+l.size}return null};
  3958. g.Co=function(T){if(T.data.getUint8(T.dataOffset)){var Q=T.data;T=T.dataOffset+4;Q=Q.getUint32(T)*4294967296+Q.getUint32(T+4)}else Q=T.data.getUint32(T.dataOffset+4);return Q};
  3959. hw=function(T,Q){var k=T.getUint32(Q),l=T.getUint32(Q+4);return new jv(T,Q,k,l)};
  3960. g.fo=function(T){var Q=T.data.getUint8(T.dataOffset)?20:12;return T.data.getUint32(T.dataOffset+Q)};
  3961. jE5=function(T){T=new jv(T.data,T.offset,T.size,T.type,T.S);var Q=kc(T);T.skip(7);var k=vt(T);if(Q===0){Q=vt(T);var l=vt(T)}else Q=Lo(T),l=Lo(T);T.skip(2);for(var v=lx(T),L=[],q=[],Y=0;Y<v;Y++){var U=vt(T);L.push(U);q.push(vt(T));T.skip(4)}return{timescale:k,WS:Q,NR:l,qW6:L,YC:q}};
  3962. It=function(T,Q){if(T.byteLength-Q<8)return!1;var k=T.getUint32(Q);if(k<8||T.byteLength-Q<k)return!1;for(k=4;k<8;k++){var l=T.getInt8(Q+k);if(l<48||l>122)return!1}return!0};
  3963. Sv=function(T){return T===1701082227||T===1836019558||T===1836019574||T===1835297121||T===1835626086||T===1937007212||T===1953653094||T===1953653099||T===1836475768};
  3964. kXT=function(T){T.skip(4);return{sdj:q6(T,0),value:q6(T,0),timescale:vt(T),AY9:vt(T),eventDuration:vt(T),id:vt(T),d0:q6(T),offset:T.offset}};
  3965. g.lK6=function(T){var Q=mu(T,0,1701671783);if(!Q)return null;var k=kXT(Q),l=k.sdj;k=Rt(k.d0);if(T=mu(T,Q.offset+Q.size,1701671783))if(T=kXT(T),T=Rt(T.d0),k&&T){Q=g.B(Object.keys(T));for(var v=Q.next();!v.done;v=Q.next())v=v.value,k[v]=T[v]}return k?new Uw(k,l):null};
  3966. Bt=function(T,Q){for(var k=mu(T,0,Q);k;){var l=k;l.type=1936419184;l.data.setUint32(l.offset+4,1936419184);k=mu(T,k.offset+k.size,Q)}};
  3967. g.z7=function(T,Q){for(var k=0,l=[];It(T,k);){var v=hw(T,k);v.type===Q&&l.push(v);k=Sv(v.type)?k+8:k+v.size}return l};
  3968. o9C=function(T,Q){var k=g.Z8(T,0,1937011556),l=g.Z8(T,0,1953654136);if(!k||!l||T.getUint32(k.offset+12)>=2)return null;var v=new DataView(Q.buffer,Q.byteOffset,Q.length),L=g.Z8(v,0,1937011556);if(!L)return null;Q=v.getUint32(L.dataOffset+8);l=v.getUint32(L.dataOffset+12);if(l!==1701733217&&l!==1701733238)return null;l=new WjT(T.byteLength+Q);g8(l,T,0,k.offset+12);l.data.setInt32(l.offset,2);l.offset+=4;g8(l,T,k.offset+16,k.size-16);g8(l,v,v.byteOffset+L.dataOffset+8,Q);g8(l,T,k.offset+k.size,T.byteLength-
  3969. (k.offset+k.size));k=g.B([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(v=k.next();!v.done;v=k.next())v=g.Z8(T,0,v.value),l.data.setUint32(v.offset,v.size+Q);T=g.Z8(l.data,0,1953654136);l.data.setUint32(T.offset+16,2);return l.data};
  3970. v9b=function(T){var Q=g.Z8(T,0,1937011556);if(!Q)return null;var k=T.getUint32(Q.dataOffset+12);if(k!==1701733217&&k!==1701733238)return null;Q=mu(T,Q.offset+24+(k===1701733217?28:78),1936289382);if(!Q)return null;k=mu(T,Q.offset+8,1935894637);if(!k||T.getUint32(k.offset+12)!==1667392371)return null;Q=mu(T,Q.offset+8,1935894633);if(!Q)return null;Q=mu(T,Q.offset+8,1952804451);if(!Q)return null;k=new Uint8Array(16);for(var l=0;l<16;l++)k[l]=T.getInt8(Q.offset+16+l);return k};
  3971. Xo=function(T,Q){this.T=T;this.pos=0;this.start=Q||0};
  3972. w8=function(T){return T.pos>=T.T.byteLength};
  3973. r8=function(T,Q,k){var l=new Xo(k);if(!d8(l,T))return!1;l=N6(l);if(!Aw(l,Q))return!1;for(T=0;Q;)Q>>>=8,T++;Q=l.start+l.pos;var v=bx(l,!0);l=T+(l.start+l.pos-Q)+v;l=l>9?LDT(l-9,8):LDT(l-2,1);T=Q-T;k.setUint8(T++,236);for(Q=0;Q<l.length;Q++)k.setUint8(T++,l[Q]);return!0};
  3974. q_b=function(T){var Q=new Xo(T);Q.H5();if(d8(Q,[408125543,374648427,174,224]))Q=N6(Q);else return null;for(var k=T=null;!w8(Q);){var l=bx(Q,!1);if(l===21432)switch(ct(Q)){default:T=0;break;case 1:T=1;break;case 3:T=2;break;case 15:T=255}else l===30320?k=N6(Q):D8(Q)}if(!k)return null;for(var v,L=l=Q=null;!w8(k);)switch(bx(k,!1)){case 30321:if(ct(k)!==3)return null;break;case 30324:Q=at(k);break;case 30323:L=at(k);break;case 30325:l=at(k);break;case 30322:v=bx(k,!0);v=ux(k,v);v=new DataView(v.buffer,
  3975. v.byteOffset,v.byteLength);break;default:D8(k)}return v?new VBC(T,Q,L,l,v):null};
  3976. N6=function(T){var Q=bx(T,!0),k=T.T.byteOffset+T.pos;k=new DataView(T.T.buffer,k,Math.min(Q,T.T.buffer.byteLength-k));k=new Xo(k,T.start+T.pos);T.pos+=Q;return k};
  3977. ct=function(T){for(var Q=bx(T,!0),k=no(T),l=1;l<Q;l++)k=k*256+no(T);return k};
  3978. at=function(T){var Q=bx(T,!0),k=0;Q===4?k=T.T.getFloat32(T.pos):Q===8&&(k=T.T.getFloat64(T.pos));T.pos+=Q;return k};
  3979. g95=function(T){var Q=bx(T,!0);return ZC(ux(T,Q))};
  3980. no=function(T){return T.T.getUint8(T.pos++)};
  3981. bx=function(T,Q){var k=no(T);if(k===1){for(Q=k=0;Q<7;Q++)k=k*256+no(T);return k}for(var l=128,v=0;v<6&&l>k;v++)k=k*256+no(T),l*=128;return Q?k-l:k};
  3982. D8=function(T){var Q=bx(T,!0);T.pos+=Q};
  3983. MIy=function(T){if(!Aw(T,440786851,!0))return null;var Q=T.pos;bx(T,!1);var k=bx(T,!0)+T.pos-Q;T.pos=Q+k;if(!Aw(T,408125543,!1))return null;bx(T,!0);if(!Aw(T,357149030,!0))return null;var l=T.pos;bx(T,!1);var v=bx(T,!0)+T.pos-l;T.pos=l+v;if(!Aw(T,374648427,!0))return null;var L=T.pos;bx(T,!1);var q=bx(T,!0)+T.pos-L,Y=new Uint8Array(k+12+v+q),U=new DataView(Y.buffer);Y.set(new Uint8Array(T.T.buffer,T.T.byteOffset+Q,k));U.setUint32(k,408125543);U.setUint32(k+4,33554431);U.setUint32(k+8,4294967295);
  3984. Y.set(new Uint8Array(T.T.buffer,T.T.byteOffset+l,v),k+12);Y.set(new Uint8Array(T.T.buffer,T.T.byteOffset+L,q),k+12+v);return Y};
  3985. Ko=function(T){var Q=T.pos;T.pos=0;var k=1E6;d8(T,[408125543,357149030,2807729])&&(k=ct(T));T.pos=Q;return k};
  3986. Y_6=function(T,Q){var k=T.pos;T.pos=0;if(T.T.getUint8(T.pos)!==160&&!xc(T)||!Aw(T,160))return T.pos=k,NaN;bx(T,!0);var l=T.pos;if(!Aw(T,161))return T.pos=k,NaN;bx(T,!0);no(T);var v=no(T)<<8|no(T);T.pos=l;if(!Aw(T,155))return T.pos=k,NaN;l=ct(T);T.pos=k;return(v+l)*Q/1E9};
  3987. xc=function(T){if(!U$f(T)||!Aw(T,524531317))return!1;bx(T,!0);return!0};
  3988. U$f=function(T){if(T.H5()){if(!Aw(T,408125543))return!1;bx(T,!0)}return!0};
  3989. d8=function(T,Q){for(var k=0;k<Q.length;k++){if(!Aw(T,Q[k]))return!1;k!==Q.length-1&&bx(T,!0)}return!0};
  3990. Aw=function(T,Q,k){k=k===void 0?!1:k;if(w8(T))return!1;for(var l=T.pos;bx(T,!1)!==Q;)if(D8(T),l=T.pos,w8(T))return!1;k&&(T.pos=l);return!0};
  3991. LDT=function(T,Q){Q||(Q=Math.ceil(Math.log(T+2)/Math.log(2)/7));for(var k=1<<8-Q,l=[];l.length<Q-1;)l.unshift(T%256),T=Math.floor(T/256);l.unshift(T|k);return l};
  3992. ux=function(T,Q){var k=new Uint8Array(T.T.buffer,T.T.byteOffset+T.pos,Q);T.pos+=Q;return k};
  3993. Pt=function(T){this.LB=T;this.T={};this.url=""};
  3994. RX6=function(T,Q){var k=Q.indexOf("?");if(k>0){var l=KjJ(Q.substring(k+1));g.VJ(l,function(v,L){this.set(L,v)},T);
  3995. Q=Q.substring(0,k)}Q=npb(Q);g.VJ(Q,function(v,L){this.set(L,v)},T)};
  3996. Zu5=function(T){var Q=T.LB.IK(),k=[];g.VJ(T.T,function(v,L){k.push(L+"="+v)});
  3997. if(!k.length)return Q;var l=k.join("&");T=uS5(T.LB)?"&":"?";return Q+T+l};
  3998. Ht=function(T,Q){var k=new g.J_(Q);(Q=k.get("req_id"))&&T.set("req_id",Q);g.VJ(T.T,function(l,v){k["set"](v,null)});
  3999. return k};
  4000. fKJ=function(){this.Y=this.L=this.T=this.timedOut=this.started=this.N=this.S=0};
  4001. tw=function(T){T.N=(0,g.XY)();T.started=0;T.timedOut=0;T.T=0};
  4002. Ow=function(T,Q){var k=T.started+T.T*4;Q&&(k+=T.L);k=Math.max(0,k-3);return Math.pow(1.6,k)};
  4003. po=function(T,Q){T[Q]||(T[Q]=new fKJ);return T[Q]};
  4004. Wt=function(T){this.D=this.C=this.N=this.L=0;this.j=this.B=!1;this.T=T;this.S=T.clone()};
  4005. GXf=function(T,Q,k){if(EV(T.T))return!1;var l=po(k,FQ(T.T));if(l.timedOut<1&&l.T<1)return!1;l=l.timedOut+l.T;T=$c(T,Q);k=po(k,FQ(T));return k.timedOut+k.T+0<l};
  4006. Jw=function(T,Q,k){T=Q?$c(T,k):T.T;return new Pt(T)};
  4007. $c=function(T,Q){Q=Q?Q.NE:!1;T.Y||(T.Y=id(T.S,Q));return T.Y};
  4008. ev=function(T,Q,k){return FQ(Q?$c(T,k):T.T)};
  4009. Fo=function(T,Q,k,l){(l===void 0?0:l)>1?Q=Q.L9:(k=po(k,ev(T,T.YE(Q,k),Q)),Q=Math.max(T.N,k.timedOut)+Q.V9*(T.L-T.N)+.25*T.C,Q=Q>3?1E3*Math.pow(1.6,Q-3):0);return Q===0?!0:T.D+Q<(0,g.XY)()};
  4010. m$X=function(T,Q,k){T.T.set(Q,k);T.S.set(Q,k);T.Y&&T.Y.set(Q,k)};
  4011. IKb=function(T,Q,k,l,v){++T.L;Q&&++T.N;FQ(k.LB).startsWith("redirector.")&&(T.T=T.S.clone(),delete T.Y,l.N4&&delete v[FQ(T.T)])};
  4012. Ew=function(T){return T?(T.itag||"")+";"+(T.lmt||0)+";"+(T.xtags||""):""};
  4013. yn=function(T,Q,k,l){this.initRange=k;this.indexRange=l;this.T=null;this.L=!1;this.B=0;this.Y=this.vM=this.S=null;this.info=Q;this.Xs=new Wt(T)};
  4014. ix=function(T,Q){this.start=T;this.end=Q;this.length=Q-T+1};
  4015. Vn=function(T){T=T.split("-");var Q=Number(T[0]),k=Number(T[1]);if(!isNaN(Q)&&!isNaN(k)&&T.length===2&&(T=new ix(Q,k),!isNaN(T.start)&&!isNaN(T.end)&&!isNaN(T.length)&&T.length>0))return T};
  4016. T3=function(T,Q){return new ix(T,T+Q-1)};
  4017. hXt=function(T){return T.end==null?{start:String(T.start)}:{start:String(T.start),end:String(T.end)}};
  4018. Qb=function(T){if(!T)return new ix(0,0);var Q=Number(T.start);T=Number(T.end);if(!isNaN(Q)&&!isNaN(T)&&(Q=new ix(Q,T),Q.length>0))return Q};
  4019. jq=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){l=l===void 0?"":l;this.type=T;this.T=Q;this.range=k;this.source=l;this.Qw=Z;this.clipId=f===void 0?"":f;this.D=[];this.C="";this.NO=-1;this.z9=0;this.C=l;this.NO=v>=0?v:-1;this.startTime=L||0;this.duration=q||0;this.S=Y||0;this.L=U>=0?U:this.range?this.range.length:NaN;this.Y=this.range?this.S+this.L===this.range.length:R===void 0?!!this.L:R;this.range?(this.N=this.startTime+this.duration*this.S/this.range.length,this.j=this.duration*this.L/this.range.length,this.B=
  4020. this.N+this.j):sET(this)};
  4021. sET=function(T){T.N=T.startTime;T.j=T.duration;T.B=T.N+T.j};
  4022. S_T=function(T,Q,k){var l=!(!Q||Q.T!==T.T||Q.type!==T.type||Q.NO!==T.NO);return k?l&&!!Q&&(T.range&&Q.range?Q.range.end===T.range.end:Q.range===T.range)&&Q.S+Q.L===T.S+T.L:l};
  4023. k0=function(T){return T.type===1||T.type===2};
  4024. l7=function(T){return T.type===3||T.type===6};
  4025. oX=function(T,Q){return T.T===Q.T?T.range&&Q.range?T.range.start+T.S+T.L===Q.range.start+Q.S:T.NO===Q.NO?T.S+T.L===Q.S:T.NO+1===Q.NO&&Q.S===0&&T.Y:!1};
  4026. BCH=function(T,Q){return T.NO!==Q.NO&&Q.NO!==T.NO+1||T.type!==Q.type?!1:oX(T,Q)?!0:Math.abs(T.N-Q.N)<=1E-6&&T.NO===Q.NO?!1:Cky(T,Q)};
  4027. Cky=function(T,Q){return oX(T,Q)||Math.abs(T.B-Q.N)<=1E-6||T.NO+1===Q.NO&&Q.S===0&&T.Y?!0:!1};
  4028. v9=function(T){return T.NO+(T.Y?1:0)};
  4029. zXg=function(T){T.length===1||g.hm(T,function(k){return!!k.range});
  4030. for(var Q=1;Q<T.length;Q++);Q=T[T.length-1];return new ix(T[0].range.start+T[0].S,Q.range.start+Q.S+Q.L-1)};
  4031. Xjy=function(T){for(var Q=1;Q<T.length;Q++)if(!oX(T[Q-1],T[Q]))return!1;return!0};
  4032. wju=function(T){var Q=0;T=g.B(T);for(var k=T.next();!k.done;k=T.next())Q+=k.value.range.length;return Q};
  4033. Ly=function(T){var Q={};Q.itag=T.T.info.itag;Q.type=""+T.type;Q.src=""+T.source;Q.segsrc=T.C;Q.seg=String(T.NO);T.range&&(Q.range=T.range.start+T.S+"-"+(T.range.start+T.S+T.L-1));Q.time=T.N.toFixed(1)+"-"+(T.N+T.j).toFixed(1);Q.off=String(T.S);Q.len=String(T.L);T.Y&&(Q.end="1");T.Dq()&&(Q.eos="1");T.clipId&&(Q.cid=T.clipId);return Q};
  4034. d$X=function(T){return new jq(T.type,T.T,T.range,"getEmptyStubBefore"+T.C,T.NO,T.startTime,0,T.S,0)};
  4035. NC5=function(T){return new jq(T.type,T.T,T.range,"getEmptyStubAfter"+T.C,T.NO,T.startTime+T.duration,0,T.S+T.L,0)};
  4036. AWg=function(T,Q,k,l){return new jq(T.type,T.T,T.range,"reslice"+T.C,T.NO,T.startTime,T.duration,Q,k,l,T.Qw,T.clipId)};
  4037. buC=function(T,Q){return T.T!==Q.T?!1:T.range&&Q.range?T.range.start+T.S>=Q.range.start+Q.S&&T.range.start+T.S+T.L<=Q.range.start+Q.S+Q.L:T.NO===Q.NO&&T.S>=Q.S&&(T.S+T.L<=Q.S+Q.L||Q.Y)};
  4038. rWX=function(T,Q){return T.T!==Q.T?!1:T.type===4&&Q.type===3&&T.T.ZG()?(T=T.T.Ui(T),$4(T,function(k){return rWX(k,Q)})):T.NO===Q.NO&&!!Q.L&&Q.S+Q.L>T.S&&Q.S+Q.L<=T.S+T.L};
  4039. qt=function(T,Q){var k=Q.NO;T.C="updateWithSegmentInfo";T.NO=k;if(T.startTime!==Q.startTime||T.duration!==Q.duration)T.startTime=Q.startTime+0,T.duration=Q.duration,sET(T)};
  4040. gd=function(T,Q){var k=this;this.MO=T;this.Y=this.T=null;this.N=this.Jx=NaN;this.YE=this.requestId=null;this.dn={m3K:function(){return k.range}};
  4041. this.Xs=T[0].T.Xs;this.S=Q||"";this.MO[0].range&&this.MO[0].L>0&&(Xjy(T)?(this.range=zXg(T),this.L=this.range.length):(this.range=this.MO[this.MO.length-1].range,this.L=wju(T)))};
  4042. Mt=function(T){return!k0(T.MO[T.MO.length-1])};
  4043. Y0=function(T){return T.MO[T.MO.length-1].type===4};
  4044. g.UE=function(T,Q,k){k=T.YE===null?T.Xs.YE(Q,k,T.MO[0].type):T.YE;if(T.T){Q=k?id(T.T,Q.NE):T.T;var l=new Pt(Q);l.get("alr")||l.set("alr","yes");T.S&&RX6(l,T.S)}else/http[s]?:\/\//.test(T.S)?l=new Pt(new g.J_(T.S)):(l=Jw(T.Xs,k,Q),T.S&&RX6(l,T.S));(Q=T.range)?l.set("range",Q.toString()):T.MO[0].T.Sp()&&T.MO.length===1&&T.MO[0].S&&l.set("range",T.MO[0].S+"-");T.requestId&&l.set("req_id",T.requestId);isNaN(T.Jx)||l.set("headm",T.Jx.toString());isNaN(T.N)||l.set("mffa",T.N+"ms");T.urlParams&&g.VJ(T.urlParams,
  4045. function(v,L){l.set(L,v)});
  4046. return l};
  4047. cWC=function(T){if(T.range)return T.L;T=T.MO[0];return Math.round(T.j*T.T.info.qY)};
  4048. D$6=function(T,Q){return Math.max(0,T.MO[0].N-Q)};
  4049. RX=function(T,Q,k,l,v,L){L=L===void 0?0:L;yn.call(this,T,Q,l,void 0);this.N=k;this.hW=L;this.index=v||new g.Qn};
  4050. aKf=function(T,Q,k,l,v){this.NO=T;this.startSecs=Q;this.bf=k;this.T=l||NaN;this.S=v||NaN};
  4051. Zj=function(T,Q,k){for(;T;T=T.parentNode)if(T.attributes&&(!k||T.nodeName===k)){var l=T.getAttribute(Q);if(l)return l}return""};
  4052. fy=function(T,Q){for(;T;T=T.parentNode){var k=T.getElementsByTagName(Q);if(k.length>0)return k[0]}return null};
  4053. uLb=function(T){if(!T)return 0;var Q=T.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Q?(Number(Q[2])|0)*3600+(Number(Q[4])|0)*60+(Number(Q[6])|0):Number(T)|0};
  4054. n9t=function(T){return T.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?T+"Z":T};
  4055. G3=function(){this.T=[];this.S=null;this.B=0;this.L=[];this.N=!1;this.C="";this.Y=-1};
  4056. KDH=function(T){var Q=T.L;T.L=[];return Q};
  4057. x$T=function(){this.Y=[];this.T=null;this.S={};this.L={}};
  4058. Ou6=function(T,Q){var k=[];Q=Array.from(Q.getElementsByTagName("SegmentTimeline"));Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var v=l.parentNode.parentNode,L=null;v.nodeName==="Period"?L=PkI(T):v.nodeName==="AdaptationSet"?(v=v.getAttribute("id")||v.getAttribute("mimetype")||"",L=Hu5(T,v)):v.nodeName==="Representation"&&(v=v.getAttribute("id")||"",L=tI5(T,v));if(L==null)return;L.update(l);g.cm(k,KDH(L))}g.cm(T.Y,k);dJf(T.Y,function(q){return q.startSecs*1E3+q.T})};
  4059. pjT=function(T){T.T&&(T.T.T=[]);g.VJ(T.S,function(Q){Q.T=[]});
  4060. g.VJ(T.L,function(Q){Q.T=[]})};
  4061. PkI=function(T){T.T||(T.T=new G3);return T.T};
  4062. Hu5=function(T,Q){T.S[Q]||(T.S[Q]=new G3);return T.S[Q]};
  4063. tI5=function(T,Q){T.L[Q]||(T.L[Q]=new G3);return T.L[Q]};
  4064. IX=function(T){var Q=T===void 0?{}:T;T=Q.hW===void 0?0:Q.hW;var k=Q.ly===void 0?!1:Q.ly;var l=Q.Bf===void 0?0:Q.Bf;var v=Q.sW===void 0?0:Q.sW;var L=Q.Kz===void 0?Infinity:Q.Kz;var q=Q.P$===void 0?0:Q.P$;var Y=Q.KY===void 0?!1:Q.KY;Q=Q.Ic===void 0?!1:Q.Ic;g.Qn.call(this);this.GW=this.hV=-1;this.bH=T;this.Bf=l;this.ly=k;this.sW=v;this.Kz=L;this.P$=q;((this.KY=Y)||isFinite(L)&&this.Kz>0)&&k&&mN&&(this.S=!1,this.L="postLive");this.Ic=Q};
  4065. hq=function(T,Q){return pW(T.segments,function(k){return Q-k.NO})};
  4066. sE=function(T,Q,k){k=k===void 0?{}:k;RX.call(this,T,Q,"",void 0,void 0,k.hW||0);this.index=new IX(k)};
  4067. Sq=function(T,Q,k){yn.call(this,T,Q);this.N=k;T=this.index=new g.Qn;T.S=!1;T.L="d"};
  4068. WDI=function(T,Q,k){var l=T.index.qb(Q),v=T.index.getStartTime(Q),L=T.index.getDuration(Q);k?L=k=0:k=T.info.qY*L;return new gd([new jq(3,T,void 0,"otfCreateRequestInfoForSegment",Q,v,L,0,k)],l)};
  4069. $$b=function(T,Q){if(!T.index.isLoaded()){var k=[],l=Q.Y;Q=Q.N.split(",").filter(function(Z){return Z.length>0});
  4070. for(var v=0,L=0,q=0,Y=/^(\d+)/,U=/r=(\d+)/,R=0;R<l;R++){if(q<=0)if(q=Q.shift(),L=(L=Y.exec(q))?+L[1]/1E3:0)q=(q=U.exec(q))?+q[1]:0,q+=1;else return;k.push(new T7(R,v,L,NaN,"sq/"+(R+1)));v+=L;q--}T.index.append(k)}};
  4071. g.Cy=function(T){this.tag=T};
  4072. JWJ=function(T,Q){B9.apply(null,[6,T,Q].concat(g.ZH(g.HT.apply(2,arguments))))};
  4073. eXT=function(T,Q){B9.apply(null,[5,T,Q].concat(g.ZH(g.HT.apply(2,arguments))))};
  4074. B9=function(T,Q,k){var l=g.HT.apply(3,arguments),v=T===6?"ERROR":"WARNING",L="b"+k;g.bA(new (Function.prototype.bind.apply(g.Wy,[null,L].concat(g.ZH(l)))),v);l.unshift(L);l=l.join(", ");v=FD5.get(Q);if(!v){v="ytplog."+Q;L=5;try{window.localStorage&&!isNaN(+window.localStorage[v])&&(L=+window.localStorage[v]),window.sessionStorage&&!isNaN(+window.sessionStorage[v])&&(L=+window.sessionStorage[v])}catch(U){}FD5.set(Q,L);v=L}if(!(T<v)){v=E95;L=v.T.get(Q);L||(L=new yWu,v.T.set(Q,L));v=L;L=Date.now();var q=
  4075. Math.floor((L-v.S)*.01);q>0&&(v.T=Math.min(v.T+q,10),v.S=L);v.T>0?(v.T--,v=!0):v=!1;if(v)typeof l==="function"&&(l=l()),console.log("plyr."+Q,l);else{var Y;l=((Y=iu5.get(Q))!=null?Y:0)+1;iu5.set(Q,l);l%100===1&&console.warn("plyr","plyr."+Q+" is chatty, dropping logs.")}}};
  4076. yWu=function(){this.T=10;this.S=Date.now()};
  4077. z3=function(T,Q){this.info=T;this.S=Q;this.T=null;this.Y=this.L=-1;this.timestampOffset=0;this.isLocked=this.B=!1;this.N=this.info.T.sj()&&!this.info.S};
  4078. g.XG=function(T){return W4f(T.S)};
  4079. VIC=function(T,Q){Q=Math.min(Q,T.info.L);var k=T.S.split(Q),l=k.ow;k=new z3(new jq(T.info.type,T.info.T,T.info.range,T.info.C,T.info.NO,T.info.startTime,T.info.duration,T.info.S,Q,!1,T.info.Qw,T.info.clipId),k.Rz);k.Y=T.Y;k.L=T.L;Q=new z3(new jq(T.info.type,T.info.T,T.info.range,T.info.C,T.info.NO,T.info.startTime,T.info.duration,T.info.S+Q,T.info.L-Q,T.info.Y,T.info.Qw,T.info.clipId),l);Q.Y=T.Y;Q.L=T.L;return[k,Q]};
  4080. g.wd=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?0:l;if(T.isLocked||Q.isLocked||!oX(T.info,Q.info)||T.info.Y)return null;if(l){if(T.S.totalLength+Q.S.totalLength>l)return null}else if(k&&(k=T.S,l=Q.S,k=!(l.T.length?Oj5(k,l.T[0]):1)),k)return null;k=new jq(T.info.type,T.info.T,T.info.range,T.info.C,T.info.NO,T.info.startTime,T.info.duration,T.info.S,T.info.L,T.info.Y,T.info.Qw,T.info.clipId);l=Q.info;k.L+=l.L;k.range&&(k.j+=l.j);k.B=l.B;k.Y=l.Y;l=new oV;v3(l,T.S);v3(l,Q.S);k=new z3(k,l);k.T!=
  4081. null&&Q.T!=null&&(new g.Cy("dash")).T(414627957,"merged slice emsg overridden; prev: "+k.T.t5()+" next: "+Q.T.t5());k.T=Q.T||T.T;k.L=T.L!==-1?T.L:Q.L;k.Y=T.Y!==-1?T.Y:Q.Y;return k};
  4082. g.dd=function(T){g.x9(T.info.T.info)||T.info.T.info.Rd();if(T.L!==-1)return T.L;if(T.T&&eFf(T.T))return T.L=eFf(T.T),T.L;if(g.x9(T.info.T.info)){var Q=g.XG(T);for(var k=T.info.T.T,l=NaN,v=NaN,L=0;It(Q,L);){var q=hw(Q,L);q.type===1936286840?v=q.data.getUint32(q.dataOffset+8):q.type===1836476516?v=g.fo(q):q.type===1952867444&&isNaN(l)&&(l=g.Co(q));L=Sv(q.type)?L+8:L+q.size}!v&&k&&(v=G7(k));Q=l/v}else Q=new Xo(g.XG(T)),k=T.N?Q:new Xo(new DataView(T.info.T.T.buffer)),l=Ko(k),k=Q.pos,Q.pos=0,xc(Q)?Aw(Q,
  4083. 231)?(l=ct(Q)*l/1E9,Q.pos=k,Q=l):(Q.pos=k,Q=NaN):(Q.pos=k,Q=NaN);T.L=Q||T.info.N;return T.L};
  4084. QL5=function(T,Q){T.timestampOffset>0&&(Q-=T.timestampOffset);var k=g.dd(T)+Q;TfI(T,k);T.timestampOffset=Q};
  4085. TfI=function(T,Q){g.x9(T.info.T.info)||T.info.T.info.Rd();T.L=Q;if(g.x9(T.info.T.info)){var k=g.XG(T);T=T.info.T.T;for(var l=NaN,v=NaN,L=0;It(k,L);){var q=hw(k,L);isNaN(l)&&(q.type===1936286840?l=q.data.getUint32(q.dataOffset+8):q.type===1836476516&&(l=g.fo(q)));if(q.type===1952867444){!l&&T&&(l=G7(T));var Y=g.Co(q);isNaN(v)&&(v=Math.round(Q*l)-Y);var U=q;Y+=v;if(U.data.getUint8(U.dataOffset)){var R=U.data;U=U.dataOffset+4;R.setUint32(U,Math.floor(Y/4294967296));R.setUint32(U+4,Y&4294967295)}else U.data.setUint32(U.dataOffset+
  4086. 4,Y)}L=Sv(q.type)?L+8:L+q.size}return!0}k=new Xo(g.XG(T));T=T.N?k:new Xo(new DataView(T.info.T.T.buffer));l=Ko(T);T=k.pos;k.pos=0;if(xc(k)&&Aw(k,231))if(v=bx(k,!0),Q=Math.floor(Q*1E9/l),Math.ceil(Math.log(Q)/Math.log(2)/8)>v)Q=!1;else{for(l=v-1;l>=0;l--)k.T.setUint8(k.pos+l,Q&255),Q>>>=8;k.pos=T;Q=!0}else Q=!1;return Q};
  4087. Aq=function(T,Q){Q=Q===void 0?!1:Q;var k=Nt(T);T=Q?0:T.info.j;return k||T};
  4088. Nt=function(T){g.x9(T.info.T.info)||T.info.T.info.Rd();if(T.T&&T.info.type===6)return T.T.hW;if(g.x9(T.info.T.info)){var Q=g.XG(T);var k=0;Q=g.z7(Q,1936286840);Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())l=jE5(l.value),k+=l.YC[0]/l.timescale;k=k||NaN;if(!(k>=0))a:{k=g.XG(T);Q=T.info.T.T;for(var v=l=0,L=0;It(k,l);){var q=hw(k,l);if(q.type===1836476516)v=g.fo(q);else if(q.type===1836019558){!v&&Q&&(v=G7(Q));if(!v){k=NaN;break a}var Y=mu(q.data,q.dataOffset,1953653094),U=Y;Y=v;var R=mu(U.data,U.dataOffset,
  4089. 1952868452);U=mu(U.data,U.dataOffset,1953658222);var Z=ot(R);ot(R);Z&2&&ot(R);R=Z&8?ot(R):0;var f=ot(U),G=f&1;Z=f&4;var m=f&256,I=f&512,z=f&1024;f&=2048;var w=vt(U);G&&ot(U);Z&&ot(U);for(var r=G=0;r<w;r++){var A=m?ot(U):R;I&&ot(U);Z&&r===0||!z||ot(U);f&&ot(U);G+=A}L+=G/Y}l=Sv(q.type)?l+8:l+q.size}k=L||NaN}k||g.rB(new g.Wy("Missing duration while parsing bmff",T.info.Bh()))}else k=new Xo(g.XG(T)),T=T.N?k:new Xo(new DataView(T.info.T.T.buffer)),k=Y_6(k,Ko(T));return k};
  4090. g.jLC=function(T){if(T.info.T.tH())return T.info.duration;T.Y===-1&&(T.Y=Nt(T));return T.Y||T.info.duration};
  4091. kNC=function(T){var Q=g.XG(T);var k=(k=g.Z8(Q,0,1936286840))?k.data.getUint32(k.dataOffset+8):NaN;isNaN(k)&&(T=T.info.T.T,k=(Q=g.Z8(Q,0,1836476516))?g.fo(Q):T?G7(T):NaN);return k};
  4092. ll6=function(T){return T.info.T.info.Rd()&&Uj(T.S,0)===160};
  4093. oTC=function(T){if(!T.T){g.x9(T.info.T.info)||T.info.T.info.Rd();if(g.x9(T.info.T.info))var Q=g.lK6(g.XG(T));else{Q=new Xo(g.XG(T));var k=Q.pos;Q.pos=0;var l=null,v=null;if(d8(Q,[408125543,307544935]))for(var L=Q.pos+bx(Q,!0);Q.pos<L;)if(bx(Q,!1)!==29555)D8(Q);else for(var q=Q.pos+bx(Q,!0);Q.pos<q;)if(bx(Q,!1)!==26568)D8(Q);else for(var Y=Q.pos+bx(Q,!0);Q.pos<Y;){var U=bx(Q,!1);if(U===17543){if(U=g95(Q),U=Rt(U))if(v)for(var R=g.B(Object.keys(U)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,v[Z]=U[Z];else v=
  4094. U}else U===17827?(U=g95(Q),l||(l=U)):D8(Q)}Q.pos=k;Q=v?new Uw(v,l):null}T.T=Q}};
  4095. vTT=function(T){if(g.x9(T.info.T.info))Bt(g.XG(T),1836019574),Bt(g.XG(T),1718909296);else{var Q=new Xo(g.XG(T));U$f(Q);Aw(Q,524531317,!0);T.S=T.S.split(Q.start+Q.pos).ow}T.N=!1};
  4096. b7=function(T){if(!T.B){if(g.x9(T.info.T.info)){var Q=g.XG(T);var k=mu(Q,0,1836019574);if(k){k=k.offset+k.size;var l=new Uint8Array(k);l.set(new Uint8Array(Q.buffer,Q.byteOffset,k));Q=l}else Q=null}else Q=MIy(new Xo(g.XG(T)));Q&&(T.info.T.T=Q,T.B=!0)}};
  4097. g.rd=function(){this.count=0;this.T=1;this.S=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
  4098. Llb=function(T,Q){return Q+1<T.count||T.S?T.offsets[Q+1]-T.offsets[Q]:-1};
  4099. c9=function(T){T.offsets.length<T.count+1&&T.resize(T.offsets.length*2)};
  4100. Dj=function(T,Q,k,l){yn.call(this,T,Q,k,l);var v=this;this.N=null;this.dn={lk:function(L,q,Y,U){return v.lk(L,q,Y,U)}};
  4101. this.index=new g.rd};
  4102. qMu=function(T,Q,k,l,v,L){this.displayName=T;this.vssId=Q;this.languageCode=k;this.kind=l===void 0?"":l;this.xtags=v===void 0?"":v;this.id=L===void 0?"":L};
  4103. MtH=function(T){if(T=T.colorInfo)if(T=T.transferCharacteristics)return gTI[T];return null};
  4104. g.aX=function(T,Q,k){this.name=T;this.id=Q;this.isDefault=k};
  4105. YMy=function(T){return u7(function(Q,k){return g.N2(Q,k,4,1E3)},T,{format:"RAW",
  4106. method:"GET",withCredentials:!0})};
  4107. g.U35=function(T){var Q;T.responseType&&T.responseType!=="text"?T.responseType==="arraybuffer"&&(Q=ZC(new Uint8Array(T.response))):Q=T.responseText;return!Q||Q.length>2048?"":Q.indexOf("https://")===0?Q:""};
  4108. u7=function(T,Q,k){Q.match(Rjf);return T(Q,k).then(function(l){var v=g.U35(l.xhr);return v?u7(T,v,k):l.xhr})};
  4109. P9=function(T,Q,k){T=T===void 0?"":T;Q=Q===void 0?null:Q;k=k===void 0?!1:k;g.ox.call(this);var l=this;this.sourceUrl=T;this.isLivePlayback=k;this.Jj=this.duration=0;this.isPremiere=this.KY=this.Y=this.isLiveHeadPlayable=this.isLive=this.S=!1;this.Kz=this.sW=0;this.isOtf=this.Cc=!1;this.Bd=(0,g.XY)();this.z9=Infinity;this.T={};this.L=new Map;this.state=this.W1=0;this.timeline=null;this.isManifestless=!1;this.hj=[];this.B=null;this.i9=0;this.N="";this.e6=NaN;this.xm=this.d5=this.timestampOffset=this.C=
  4110. 0;this.mK=this.Jp=NaN;this.Ig=0;this.sK=this.D=!1;this.p_=[];this.u9={};this.qO=NaN;this.dn={l6k:function(Y){ny(l,Y)}};
  4111. var v;this.K_=(v=Q)==null?void 0:v.Wd("html5_use_network_error_code_enums");Zd6=!!Q&&Q.Wd("html5_modern_vp9_mime_type");var L;Ky=!((L=Q)==null||!L.Wd("html5_enable_flush_during_seek"))&&g.ph();var q;x0=!((q=Q)==null||!q.Wd("html5_enable_reset_audio_decoder"))&&g.ph()};
  4112. flC=function(T){return g.jP(T.T,function(Q){return!!Q.info.video&&Q.info.video.qualityOrdinal>=2160})};
  4113. bBy=function(T){return g.jP(T.T,function(Q){return!!Q.info.video&&Q.info.video.isHdr()})};
  4114. Pr=function(T){return g.jP(T.T,function(Q){return!!Q.info.jY})};
  4115. g.GNg=function(T){return g.jP(T.T,function(Q){return Wj(Q.info.mimeType)})};
  4116. m3t=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR":!1})};
  4117. IlC=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
  4118. hj5=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.projectionType==="MESH":!1})};
  4119. sL5=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.stereoLayout===1:!1})};
  4120. SMX=function(T){return c5T(T.T,function(Q){return Q.info.video?Q.K3():!0})};
  4121. nP=function(T){return g.jP(T.T,function(Q){return EV(Q.Xs.T)})};
  4122. ny=function(T,Q){T.T[Q.info.id]=Q;T.L.set(Ew(g.Hj(Q.info,T.Cc)),Q)};
  4123. OE=function(T,Q,k){k=k===void 0?0:k;var l=T.mimeType||"",v=T.itag;var L=T.xtags;v=v?v.toString():"";L&&(v+=";"+L);L=v;if(pu(l)){var q=T.width||640;v=T.height||360;var Y=T.fps,U=T.qualityLabel,R=T.colorInfo,Z=T.projectionType,f;T.stereoLayout&&(f=Cef[T.stereoLayout]);var G=MtH(T)||void 0;if(R==null?0:R.primaries)var m=Bfb[R.primaries]||void 0;q=new dC(q,v,Y,Z,f,void 0,U,G,m);l=H9(l,q,bk[T.itag||""]);Ky&&(l+="; enableflushduringseek=true");x0&&(l+="; enableresetaudiodecoder=true")}var I;if(tW(l)){var z=
  4124. T.audioSampleRate;f=T.audioTrack;z=new zX(z?+z:void 0,T.audioChannels,T.spatialAudioType,T.isDrc,T.loudnessDb,T.trackAbsoluteLoudnessLkfs,T.audioQuality||"AUDIO_QUALITY_UNKNOWN",T.isVb);f&&(m=f.displayName,v=f.id,f=f.audioIsDefault,m&&(I=new g.aX(m,v||"",!!f)))}var w;T.captionTrack&&(U=T.captionTrack,f=U.displayName,m=U.vssId,v=U.languageCode,Y=U.kind,U=U.id,f&&m&&v&&(w=new qMu(f,m,v,Y,T.xtags,U)));f=Number(T.bitrate)/8;m=Number(T.contentLength);v=Number(T.lastModified);U=T.drmFamilies;Y=T.type;k=
  4125. k&&m?m/k:0;T=Number(T.approxDurationMs);if(Q&&U){var r={};U=g.B(U);for(R=U.next();!R.done;R=U.next())(R=tq[R.value])&&(r[R]=Q[R])}return new rC(L,l,{audio:z,video:q,MY:I,jY:r,qY:f,S2:k,contentLength:m,lastModified:v,captionTrack:w,streamType:Y,approxDurationMs:T})};
  4126. py=function(T,Q,k){k=k===void 0?0:k;var l=T.type;var v=T.itag;var L=T.xtags;L&&(v=T.itag+";"+L);if(pu(l)){var q=(T.size||"640x360").split("x");q=new dC(+q[0],+q[1],+T.fps,T.projection_type,+T.stereo_layout,void 0,T.quality_label,T.eotf,T.primaries);l=H9(l,q,bk[T.itag]);Ky&&(l+="; enableflushduringseek=true");x0&&(l+="; enableresetaudiodecoder=true")}var Y;if(tW(l)){var U=new zX(+T.audio_sample_rate||void 0,+T.audio_channels||0,T.spatial_audio_type,!!T.drc);T.name&&(Y=new g.aX(T.name,T.audio_track_id,
  4127. T.isDefault==="1"))}var R;T.caption_display_name&&T.caption_vss_id&&T.caption_language_code&&(R=new qMu(T.caption_display_name,T.caption_vss_id,T.caption_language_code,T.caption_kind,T.xtags,T.caption_id));L=Number(T.bitrate)/8;var Z=Number(T.clen),f=Number(T.lmt);k=k&&Z?Z/k:0;if(Q&&T.drm_families){var G={};for(var m=g.B(T.drm_families.split(",")),I=m.next();!I.done;I=m.next())I=I.value,G[I]=Q[I]}return new rC(v,l,{audio:U,video:q,MY:Y,jY:G,qY:L,S2:k,contentLength:Z,lastModified:f,captionTrack:R,
  4128. streamType:T.stream_type,approxDurationMs:Number(T.approx_duration_ms)})};
  4129. zjH=function(T){return $4(T,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
  4130. XM5=function(T){return $4(T,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
  4131. wMX=function(T,Q){return T.timeline?nW(T.timeline.Y,Q):T.hj.length?nW(T.hj,Q):[]};
  4132. W9=function(T,Q,k){Q=Q===void 0?"":Q;k=k===void 0?"":k;T=new g.J_(T,!0);T.set("alr","yes");k&&(k=FUC(decodeURIComponent(k)),T[M[10]](Q,encodeURIComponent(k)));return T};
  4133. bdC=function(T,Q){var k=Zj(Q,"id");k=k.replace(":",";");var l=Zj(Q,"mimeType"),v=Zj(Q,"codecs");l=v?l+'; codecs="'+v+'"':l;v=Number(Zj(Q,"bandwidth"))/8;var L=Number(fy(Q,"BaseURL").getAttribute(T.N+":contentLength")),q=T.duration&&L?L/T.duration:0;if(pu(l)){var Y=Number(Zj(Q,"width"));var U=Number(Zj(Q,"height")),R=Number(Zj(Q,"frameRate")),Z=d3C(Zj(Q,T.N+":projectionType"));a:switch(Zj(Q,T.N+":stereoLayout")){case "layout_left_right":var f=1;break a;case "layout_top_bottom":f=2;break a;default:f=
  4134. 0}Y=new dC(Y,U,R,Z,f)}if(tW(l)){var G=Number(Zj(Q,"audioSamplingRate"));var m=Number(Zj(Q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));U=Nf5(Zj(Q,T.N+":spatialAudioType"));G=new zX(G,m,U);a:{m=Zj(Q,"lang")||"und";if(U=fy(Q,"Role"))if(Z=Zj(U,"value")||"",g.MM(AB5,Z)){U=m+"."+AB5[Z];R=Z==="main";T=Zj(Q,T.N+":langName")||m+" - "+Z;m=new g.aX(T,U,R);break a}m=void 0}}if(Q=fy(Q,"ContentProtection"))if(Q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var I={};for(Q=
  4135. Q.firstChild;Q!=null;Q=Q.nextSibling)Q instanceof Element&&/SystemURL/.test(Q.nodeName)&&(T=Q.getAttribute("type"),U=Q.textContent,T&&U&&(I[T]=U.trim()))}else I=void 0;return new rC(k,l,{audio:G,video:Y,MY:m,jY:I,qY:v,S2:q,contentLength:L})};
  4136. d3C=function(T){switch(T){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
  4137. Nf5=function(T){switch(T){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
  4138. cBJ=function(T,Q){Q=Q===void 0?"":Q;T.state=1;T.Bd=(0,g.XY)();return YMy(Q||T.sourceUrl).then(function(k){if(!T.wd()){T.W1=k.status;k=k.responseText;var l=new DOMParser;k=da(l,u_5(k),"text/xml").getElementsByTagName("MPD")[0];T.z9=uLb(Zj(k,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(k.attributes){l=g.B(k.attributes);for(var v=l.next();!v.done;v=l.next())if(v=v.value,v.value==="http://youtube.com/yt/2012/10/10"){l=v.name.split(":")[1];break b}}l=""}T.N=l;T.isLive=T.z9<Infinity&&T.isLivePlayback;T.Jj=
  4139. Number(Zj(k,T.N+":earliestMediaSequence"))||0;if(l=Date.parse(n9t(Zj(k,T.N+":mpdResponseTime"))))T.i9=((0,g.XY)()-l)/1E3;T.isLive&&k.getElementsByTagName("SegmentTimeline").length<=0||g.hm(k.getElementsByTagName("Period"),T.NtH,T);T.state=2;T.publish("loaded");rB6(T)}return T}).kE(function(k){if(k instanceof wV){var l=k.xhr;
  4140. T.W1=l.status}T.state=3;T.publish("loaderror");return aS(l)})};
  4141. D3H=function(T,Q,k){return cBJ(new P9(T,Q,k),T)};
  4142. $0=function(T){return T.isLive&&(0,g.XY)()-T.Bd>=T.z9};
  4143. aly=function(T){T.B&&T.B.stop()};
  4144. rB6=function(T){var Q=T.z9;isFinite(Q)&&($0(T)?T.refresh():(Q=Math.max(0,T.Bd+Q-(0,g.XY)()),T.B||(T.B=new g.FA(T.refresh,Q,T),g.P(T,T.B)),T.B.start(Q)))};
  4145. uR6=function(T){T=T.T;for(var Q in T){var k=T[Q].index;if(k.isLoaded())return k.a_()+1}return 0};
  4146. Jq=function(T){return T.d5?T.d5-(T.C||T.timestampOffset):0};
  4147. eq=function(T){return T.xm?T.xm-(T.C||T.timestampOffset):0};
  4148. FG=function(T){if(!isNaN(T.e6))return T.e6;var Q=T.T,k;for(k in Q){var l=Q[k].index;if(l.isLoaded()&&!Wj(Q[k].info.mimeType)){Q=0;for(k=l.p7();k<=l.a_();k++)Q+=l.getDuration(k);Q/=l.DL();Q=Math.round(Q/.5)*.5;l.DL()>10&&(T.e6=Q);return Q}if(T.isLive&&(l=Q[k],l.hW))return l.hW}return NaN};
  4149. nTt=function(T,Q){T=aHf(T.T,function(l){return l.index.isLoaded()});
  4150. if(!T)return NaN;T=T.index;var k=T.ll(Q);return T.getStartTime(k)===Q?Q:k<T.a_()?T.getStartTime(k+1):NaN};
  4151. Kl5=function(T,Q){if(!T.T["0"]){var k=new rC("0","fakesb",{video:new dC(0,0,0,void 0,void 0,"auto")});T.T["0"]=Q?new RX(new g.J_("http://www.youtube.com/videoplayback"),k,"fake"):new Dj(new g.J_("http://www.youtube.com/videoplayback"),k,new ix(0,0),new ix(0,0))}};
  4152. EE=function(T){if(T.isManifestless)for(var Q in T.T)T.T[Q].index.segments=[]};
  4153. yb=function(T,Q,k){for(var l in T.T){var v=Wj(T.T[l].info.mimeType)||T.T[l].info.bK();if(k===v&&(v=T.T[l].index)!=null){var L=hq(v,Q);L>=0&&v.segments.splice(L,1)}}};
  4154. x35=function(T){for(var Q in T.T)Wj(T.T[Q].info.mimeType)||OBu(T.T[Q].index,Infinity)};
  4155. i7=function(T,Q,k){for(var l in T.T){var v=T.T[l].index,L=Q,q=k;v.ly&&(L&&(v.hV=Math.max(v.hV,L)),q&&(v.GW=Math.max(v.GW||0,q)))}k&&(T.qO=k/1E3)};
  4156. Peu=function(T){T.xm=0;T.d5=0;T.Ig=0};
  4157. Vb=function(T){return T.sK&&T.isManifestless?T.isLiveHeadPlayable:T.isLive};
  4158. H9=function(T,Q,k){T6===null&&(T6=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(Zd6&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return T6||k!=="9"&&k!=="("?T6||k!=="9h"&&k!=="(h"||(T='video/webm; codecs="vp9.2"'):T='video/webm; codecs="vp9"',T;if(!T6&&!Qa||T!=='video/webm; codecs="vp9"'&&T!=='video/webm; codecs="vp9.2"')return T;
  4159. k="00";var l="08",v="01",L="01",q="01";T==='video/webm; codecs="vp9.2"'&&(k="02",l="10",Q.primaries==="bt2020"&&(q=v="09"),Q.T==="smpte2084"&&(L="16"),Q.T==="arib-std-b67"&&(L="18"));return'video/webm; codecs="'+["vp09",k,"51",l,"01",v,L,q,"00"].join(".")+'"'};
  4160. km=function(T,Q,k){T=""+T+(Q>49?"p60":Q>32?"p48":"");Q=h_()[T];if(Q!=null&&Q>0)return Q;Q=j4.get(T);if(Q!=null&&Q>0)return Q;k=k==null?void 0:k.get(T);return k!=null&&k>0?k:8192};
  4161. Hdy=function(T){this.FB=T;this.Z8=this.Ql=this.e6=this.N=this.Y=this.p_=this.Jj=this.z9=!1;this.C=this.B=0;this.f_=!1;this.qO=!0;this.K_=!1;this.ID=0;this.jF=this.xm=!1;this.t6=!0;this.sK=this.Bd=!1;this.T={};this.h3=this.d5=this.Fk=this.disableAv1=this.Tg=this.Ah=this.zg=this.QR=this.S=this.j=!1;this.hj=0;this.vn=this.FB.V("html5_disable_aac_preference");this.DP=Infinity;this.i9=0;this.OG=this.FB.J3();this.Gg=this.FB.experiments.Wd("html5_enable_vp9_fairplay");this.iK=this.FB.V("html5_force_av1_for_testing");
  4162. this.u9=g.jj(this.FB.experiments,"html5_av1_ordinal_cap");this.YP=this.FB.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.gt=this.FB.V("html5_account_onesie_format_selection_during_format_filter");this.qY=g.jj(this.FB.experiments,"html5_max_byterate");this.Ig=this.FB.V("html5_enable_iamf_audio");this.F_=this.FB.experiments.Wd("html5_allow_capability_merge");this.Hn=this.FB.V("html5_enable_encrypted_av1");this.hj=g.jj(this.FB.experiments,"html5_hard_cap_max_vertical_resolution")};
  4163. rMH=function(T){if(T.Jj)return["f"];if(g.tH("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var Q=["9h","9","h","8"];T.Hn&&Q.push("1e");Q=Q.concat(["(h","(","H","*"]);T.xm&&(Q.unshift("1"),Q.unshift("1h"));T.Ql&&Q.unshift("h");T.D&&(Q=(ttt[T.D]||[T.D]).concat(Q));return Q};
  4164. zF5=function(T){var Q=["o","a","A"];T.i9===1&&(T.Y&&(Q=["mac3","MAC3"].concat(Q)),T.N&&(Q=["meac3","MEAC3"].concat(Q)),T.Ig&&(Q=["i","I"].concat(Q)));T.z9&&(Q=["so","sa"].concat(Q));!T.Z8||T.e6||T.L||T.vn||Q.unshift("a");T.L&&(Q=(ttt[T.L]||[T.L]).concat(Q));return Q};
  4165. lc=function(T,Q,k,l){Q=Q===void 0?{}:Q;if(l===void 0?0:l)return Q.disabled=1,0;if(Wr(T.N,$g.AV1_CODECS)&&Wr(T.N,$g.HEIGHT)&&Wr(T.N,$g.BITRATE))return Q.isCapabilityUsable=1,8192;try{var v=opf();if(v&&!T.V("disable_av1_setting"))return Q.localPref=v}catch(Y){}l=1080;v=navigator.hardwareConcurrency;v<=2&&(l=480);Q.coreCount=v;if(v=g.jj(T.experiments,"html5_default_av1_threshold"))l=Q["default"]=v;!T.V("html5_disable_av1_arm_check")&&h1y()&&(Q.isArm=1,l=240);if(T=T.N.qO)Q.mcap=T,l=Math.max(l,T);if(k){var L,
  4166. q;if(T=(L=k.videoInfos.find(function(Y){return uk(Y)}))==null?void 0:(q=L.S)==null?void 0:q.powerEfficient)l=8192,Q.isEfficient=1;
  4167. k=k.videoInfos[0].video;L=Math.min(km("1",k.fps),km("1",30));Q.perfCap=L;l=Math.min(l,L);k.isHdr()&&!T&&(Q.hdr=1,l*=.75)}else k=km("1",30),Q.perfCap30=k,l=Math.min(l,k),k=km("1",60),Q.perfCap60=k,l=Math.min(l,k);return Q.av1Threshold=l};
  4168. on=function(T,Q,k,l){this.flavor=T;this.keySystem=Q;this.S=k;this.experiments=l;this.T={};this.Jj=this.keySystemAccess=null;this.Gt=this.Ps=-1;this.RM=null;this.L=!!l&&l.Wd("edge_nonprefixed_eme");l&&l.Wd("html5_enable_vp9_fairplay")};
  4169. Lc=function(T){return T.L?!1:!T.keySystemAccess&&!!vL()&&T.keySystem==="com.microsoft.playready"};
  4170. qx=function(T){return T.keySystem==="com.microsoft.playready"};
  4171. gx=function(T){return!T.keySystemAccess&&!!vL()&&T.keySystem==="com.apple.fps.1_0"};
  4172. Mx=function(T){return T.keySystem==="com.youtube.fairplay"};
  4173. Ym=function(T){return T.keySystem==="com.youtube.fairplay.sbdl"};
  4174. g.Ud=function(T){return T.flavor==="fairplay"};
  4175. vL=function(){var T=window,Q=T.MSMediaKeys;JH()&&!Q&&(Q=T.WebKitMediaKeys);return Q&&Q.isTypeSupported?Q:null};
  4176. ZE=function(T){return navigator.requestMediaKeySystemAccess?g.hW&&!g.ph()?ze("45"):g.$n||g.RF?T.Wd("edge_nonprefixed_eme"):g.Rn?ze("47"):g.mp&&T.Wd("html5_enable_safari_fairplay")?!1:!0:!1};
  4177. OdH=function(T,Q,k,l){var v=WD(),L=(k=v||k&&JH())?["com.youtube.fairplay"]:["com.widevine.alpha"];Q&&L.unshift("com.youtube.widevine.l3");v&&l&&L.unshift("com.youtube.fairplay.sbdl");return k?L:T?[].concat(g.ZH(L),g.ZH(fc.playready)):[].concat(g.ZH(fc.playready),g.ZH(L))};
  4178. G6=function(T,Q,k,l,v){l=l===void 0?!1:l;g.x.call(this);this.FB=Q;this.useCobaltWidevine=l;this.T9=v;this.S=[];this.L={};this.T={};this.callback=null;this.N=!1;this.Y=[];this.initialize(T,!k)};
  4179. Wl5=function(T,Q){T.callback=Q;T.Y=[];ZE(T.FB.experiments)?m0(T):pMy(T)};
  4180. m0=function(T){if(!T.wd())if(T.S.length===0)T.callback(T.Y);else{var Q=T.S[0],k=T.L[Q],l=$3y(T,k);if(In&&In.keySystem===Q&&In.iGq===JSON.stringify(l))T.T9("remksa",{re:!0}),JB5(T,k,In.keySystemAccess);else{var v,L;T.T9("remksa",{re:!1,ok:(L=(v=In)==null?void 0:v.keySystem)!=null?L:""});In=void 0;navigator.requestMediaKeySystemAccess(Q,l).then(pQ(function(q){JB5(T,k,q,l)}),pQ(function(){T.N=!T.N&&T.L[T.S[0]].flavor==="widevine";
  4181. T.N||T.S.shift();m0(T)}))}}};
  4182. JB5=function(T,Q,k,l){if(!T.wd()){l&&(In={keySystem:Q.keySystem,keySystemAccess:k,iGq:JSON.stringify(l)});Q.keySystemAccess=k;if(qx(Q)){k=mD();l=g.B(Object.keys(T.T[Q.flavor]));for(var v=l.next();!v.done;v=l.next())v=v.value,Q.T[v]=!!k.canPlayType(v)}else{k=Q.keySystemAccess.getConfiguration();if(k.audioCapabilities)for(l=g.B(k.audioCapabilities),v=l.next();!v.done;v=l.next())Q.T[v.value.contentType]=!0;if(k.videoCapabilities)for(k=g.B(k.videoCapabilities),l=k.next();!l.done;l=k.next())Q.T[l.value.contentType]=
  4183. !0}T.Y.push(Q);T.useCobaltWidevine||T.V("html5_enable_vp9_fairplay")&&Ym(Q)?(T.S.shift(),m0(T)):T.callback(T.Y)}};
  4184. $3y=function(T,Q){var k={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(T.V("html5_enable_vp9_fairplay")&&Mx(Q))return k.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),k.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[k];qx(Q)&&(k.initDataTypes=["keyids","cenc"]);for(var l=g.B(Object.keys(T.T[Q.flavor])),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.indexOf("audio/")===0,q=L?k.audioCapabilities:k.videoCapabilities;Q.flavor!==
  4185. "widevine"||T.N?q.push({contentType:v}):L?q.push({contentType:v,robustness:"SW_SECURE_CRYPTO"}):(g.hW&&g.tH("windows nt")&&!T.V("html5_drm_enable_moho")||q.push({contentType:v,robustness:"HW_SECURE_ALL"}),L=v,T.FB.N.L&&v.includes("vp09")&&(L=v+"; experimental=allowed"),q.push({contentType:L,robustness:"SW_SECURE_DECODE"}),hS(T.FB)==="MWEB"&&(VI()||OG())&&(T.T9("swcrypto",{}),q.push({contentType:v,robustness:"SW_SECURE_CRYPTO"})))}return[k]};
  4186. pMy=function(T){if(vL()&&(g.mp||Fw))T.Y.push(new on("fairplay","com.apple.fps.1_0","",T.FB.experiments));else{var Q=ejt(),k=g.sA(T.S,function(l){var v=T.L[l],L=!1,q=!1,Y;for(Y in T.T[v.flavor])Q(Y,l)&&(v.T[Y]=!0,L=L||Y.indexOf("audio/")===0,q=q||Y.indexOf("video/")===0);return L&&q});
  4187. k&&T.Y.push(T.L[k]);T.S=[]}T.callback(T.Y)};
  4188. ejt=function(){var T=vL();if(T){var Q=T.isTypeSupported;return function(l,v){return Q(v,l)}}var k=mD();
  4189. return k&&(k.addKey||k.webkitAddKey)?function(l,v){return!!k.canPlayType(l,v)}:function(){return!1}};
  4190. Fly=function(T){this.experiments=T;this.T=2048;this.Y=0;this.z9=(this.C=this.V("html5_streaming_resilience"))?.5:.25;var Q=Q===void 0?0:Q;this.L=g.jj(this.experiments,"html5_media_time_weight_prop")||Q;this.D=(this.N=this.experiments.Wd("html5_consider_end_stall"))&&sd;this.S=this.experiments.Wd("html5_measure_max_progress_handling");this.j=this.V("html5_treat_requests_pre_elbow_as_metadata");this.B=this.V("html5_media_time_weight")||!!this.L;this.V("html5_sabr_live_audio_early_return_fix")&&sd&&
  4191. (this.T=65536)};
  4192. ETC=function(T,Q){this.T=void 0;this.experimentIds=T?T.split(","):[];this.flags=Vt(Q||"","&");T={};Q=g.B(this.experimentIds);for(var k=Q.next();!k.done;k=Q.next())T[k.value]=!0;this.experiments=T};
  4193. g.jj=function(T,Q){T=T.flags[Q];JSON.stringify(T);return Number(T)||0};
  4194. S4=function(T,Q){return(T=T.flags[Q])?T.toString():""};
  4195. yBC=function(T){if(T=T.flags.html5_web_po_experiment_ids)if(T=T.replace(/\[ *(.*?) *\]/,"$1"))return T.split(",").map(Number);return[]};
  4196. id5=function(T){if(T.T)return T.T;if(T.experimentIds.length<=1)return T.T=T.experimentIds,T.T;var Q=[].concat(g.ZH(T.experimentIds)).map(function(l){return Number(l)});
  4197. Q.sort();for(var k=Q.length-1;k>0;--k)Q[k]-=Q[k-1];T.T=Q.map(function(l){return l.toString()});
  4198. T.T.unshift("v1");return T.T};
  4199. TMI=function(T){return VtJ.then(T)};
  4200. Cc=function(T,Q,k){this.experiments=T;this.xm=Q;this.i9=k===void 0?!1:k;this.D=!!g.jA("cast.receiver.platform.canDisplayType");this.j={};this.z9=!1;this.Y=new Map;this.C=!0;this.S=this.L=!1;this.T=new Map;this.qO=0;this.hj=this.experiments.Wd("html5_disable_vp9_encrypted");this.N=this.experiments.Wd("html5_enable_encrypted_av1");T=g.jA("cast.receiver.platform.getValue");this.B=!this.D&&T&&T("max-video-resolution-vpx")||null;QNI(this);this.L=!!(WD()&&HD()>=21)};
  4201. aJt=function(T,Q,k){k=k===void 0?1:k;var l=Q.itag;if(l==="0")return!0;var v=Q.mimeType;if(Q.yR==="1e"&&!T.N)return"dav1enc";if(uk(Q)&&T.z9)return"dav1";if(Q.video&&(Q.video.isHdr()||Q.video.primaries==="bt2020")&&!(Wr(T,$g.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(l==="338"&&!(g.hW?ze(53):g.Rn&&ze(64)))return"dopus";var L=k;L=L===void 0?1:
  4202. L;k={};Q.video&&(Q.video.width&&(k[$g.WIDTH.name]=Q.video.width),Q.video.height&&(k[$g.HEIGHT.name]=Q.video.height),Q.video.fps&&(k[$g.FRAMERATE.name]=Q.video.fps*L),Q.video.T&&(k[$g.EOTF.name]=Q.video.T),Q.qY&&(k[$g.BITRATE.name]=Q.qY*8*L),Q.yR==="("&&(k[$g.CRYPTOBLOCKFORMAT.name]="subsample"),Q.video.projectionType==="EQUIRECTANGULAR"||Q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Q.video.projectionType==="MESH")&&(k[$g.DECODETOTEXTURE.name]="true");Q.audio&&Q.audio.numChannels&&
  4203. (k[$g.CHANNELS.name]=Q.audio.numChannels);T.L&&cj(Q)&&(k[$g.EXPERIMENTAL.name]="allowed");L=g.B(Object.keys($g));for(var q=L.next();!q.done;q=L.next()){q=$g[q.value];var Y;if(Y=k[q.name])if(Y=!(q===$g.EOTF&&Q.mimeType.indexOf("vp09.02")>0)){Y=q;var U=Q;Y=!(T.experiments.Wd("html5_ignore_h264_framerate_cap")&&Y===$g.FRAMERATE&&aF5(U))}if(Y)if(Wr(T,q))if(T.B){if(T.B[q.name]<k[q.name])return q.name}else v=v+"; "+q.name+"="+k[q.name];else if(DK(Q)&&q===$g.EOTF)return"dvp92"}T.D&&Q.video&&Q.video.qualityOrdinal>
  4204. 1080&&Q.jY&&(v+="; hdcp=2.2");return l==="227"?"hqcenc":l!=="585"&&l!=="588"&&l!=="583"&&l!=="586"&&l!=="584"&&l!=="587"&&l!=="591"&&l!=="592"||T.experiments.Wd("html5_enable_new_hvc_enc")?WD()&&HD()>=21&&g.tH("appletv5")&&(l==="410"||l==="845")?!0:T.isTypeSupported(v)?!0:"tpus":"newhvc"};
  4205. BL=function(){var T=OG()&&!ze(29),Q=g.tH("google tv")&&g.tH("chrome")&&!ze(30);return T||Q?!1:HDg()};
  4206. jNC=function(T,Q,k){var l=480;Q=g.B(Q);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;var L=v.video.qualityOrdinal;L<=1080&&L>l&&aJt(T,v,k)===!0&&(l=L)}return l};
  4207. g.z6=function(T,Q){Q=Q===void 0?!1:Q;return BL()&&T.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Q&&T.canPlayType(mD(),"application/x-mpegURL")?!0:!1};
  4208. lYg=function(T){kn6(function(){for(var Q=g.B(Object.keys($g)),k=Q.next();!k.done;k=Q.next())Wr(T,$g[k.value])})};
  4209. Wr=function(T,Q){Q.name in T.j||(T.j[Q.name]=oJf(T,Q));return T.j[Q.name]};
  4210. oJf=function(T,Q){if(T.B)return!!T.B[Q.name];if(Q===$g.BITRATE&&T.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!T.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Q===$g.AV1_CODECS)return T.isTypeSupported("video/mp4; codecs="+Q.valid)&&!T.isTypeSupported("video/mp4; codecs="+Q.P4);if(Q.video){var k='video/webm; codecs="vp9"';T.isTypeSupported(k)||(k='video/mp4; codecs="avc1.4d401e"')}else k='audio/webm; codecs="opus"',
  4211. T.isTypeSupported(k)||(k='audio/mp4; codecs="mp4a.40.2"');return T.isTypeSupported(k+"; "+Q.name+"="+Q.valid)&&!T.isTypeSupported(k+"; "+Q.name+"="+Q.P4)};
  4212. vJI=function(T,Q){var k=0;T.Y.has(Q)&&(k=T.Y.get(Q).dl);T.Y.set(Q,{dl:k+1,k5:Math.pow(2,k+1)});T.S=!0};
  4213. Hr=function(T){for(var Q=[],k=g.B(T.T.keys()),l=k.next();!l.done;l=k.next()){l=l.value;var v=T.T.get(l);Q.push(l+"_"+v.maxWidth+"_"+v.maxHeight)}return Q.join(".")};
  4214. wk5=function(T,Q){for(var k=new Map,l=g.B(T.T.keys()),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.split("_")[0];Q.has(L)||k.set(v,T.T.get(v))}T.T=k};
  4215. NvH=function(T,Q,k){var l,v=((l=k.video)==null?void 0:l.fps)||0;l=Q+"_"+v;var L=!!k.audio,q={itag:k.itag,yR:Q,uH:L};if(L)q.numChannels=k.audio.numChannels;else{var Y=k.video;q.maxWidth=Y==null?void 0:Y.width;q.maxHeight=Y==null?void 0:Y.height;q.maxFramerate=v;Wr(T,$g.BITRATE)&&(q.maxBitrateBps=k.qY*8);q.HQ=Y==null?void 0:Y.isHdr()}Y=T.T.get(l);Y?L||(k=Math.max(Y.maxWidth||0,Y.maxHeight||0)>Math.max(q.maxWidth||0,q.maxHeight||0)?Y:q,Q={itag:k.itag,yR:Q,uH:L,maxWidth:Math.max(Y.maxWidth||0,q.maxWidth||
  4216. 0),maxHeight:Math.max(Y.maxHeight||0,q.maxHeight||0),maxFramerate:v,HQ:k.HQ},Wr(T,$g.BITRATE)&&(Q.maxBitrateBps=k.maxBitrateBps),T.T.set(l,Q)):T.T.set(l,q)};
  4217. AMy=function(T,Q,k){var l,v=((l=k.video)==null?void 0:l.fps)||0;l=Q+"_"+v;var L=!!k.audio,q=T.T.get(l);a:{var Y=T.T.get(l),U=!!k.audio;if(Y){if(U){var R=!1;break a}var Z;if(!U&&((R=k.video)==null?0:R.height)&&Y.maxHeight&&Y.maxHeight>=((Z=k.video)==null?void 0:Z.height)){R=!1;break a}}R=!0}R&&(R=k.itag,Q=q?q:{itag:R,yR:Q,uH:L},L?Q.numChannels=k.audio.numChannels:(L=k.video,Q.maxWidth=L==null?void 0:L.width,Q.maxHeight=L==null?void 0:L.height,Q.maxFramerate=v,Wr(T,$g.BITRATE)&&(Q.maxBitrateBps=k.qY*
  4218. 8),Q.HQ=L==null?void 0:L.isHdr()),T.T.set(l,Q))};
  4219. QNI=function(T){var Q;(Q=navigator.mediaCapabilities)!=null&&Q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(k){k.smooth&&k.powerEfficient&&(T.qO=2160)})};
  4220. XK=function(){g.ox.call(this);this.items={}};
  4221. wx=function(T,Q){this.T=T;this.cipher=this.T.exports.AES128CTRCipher_create(Q.byteOffset)};
  4222. Nx=function(){this.S=this.kf=0;this.T=Array.from({length:dx.length}).fill(0)};
  4223. L15=function(){};
  4224. qWf=function(){this.startTimeMs=(0,g.XY)();this.T=!1};
  4225. gJH=function(){this.T=new L15};
  4226. Mng=function(T,Q,k,l){l=l===void 0?1:l;k>=0&&(Q in T.T||(T.T[Q]=new Nx),T.T[Q].zW(k,l))};
  4227. YWI=function(T,Q,k,l,v){var L=(0,g.XY)(),q=v?v(Q):void 0,Y;v=(Y=q==null?void 0:q.kf)!=null?Y:1;if(v!==0){var U;Y=(U=q==null?void 0:q.profile)!=null?U:k;Mng(T,Y,L-l,v)}return Q};
  4228. UlI=function(T,Q,k,l,v){if(Q&&typeof Q==="object"){var L=function(q){return YWI(T,q,k,l,v)};
  4229. if(NZ(Q))return Q.then(L);if(dq(Q))return DQ(Q,L)}return YWI(T,Q,k,l,v)};
  4230. RGf=function(){};
  4231. Gnt=function(T,Q){return u8(Zw5,function(){var k=this;return function v(){var L,q,Y;return PT(v,function(U){switch(U.S){case 1:g.Xg(U,2);if(!k.Y)throw"wasm.ps.ns";L=T;q=t5;return C5(U,nQ(fYg(k,Q)),4);case 4:Y=q(U.T);if(!Y)throw"wasm.ps.um";try{return U.return(new WebAssembly.Instance(Y,L))}catch(R){}return C5(U,nQ(WebAssembly.instantiate(Y,L)),5);case 5:return U.return(U.T);case 2:g.aI(U),g.n5(U,0)}})}()})};
  4232. mlJ=function(T,Q){T.T||(T.T=DQ(rq(function(){return fetch(Q)}),function(k){return k.arrayBuffer()}),ar(T.T,function(k){T.T=void 0;
  4233. throw"wasm.ps.f: "+k;}))};
  4234. fYg=function(T,Q){if(T.S)return T.S;T.S=IY5(T,Q);ar(T.S,function(k){T.S=void 0;throw"wasm.ps.c: "+k;});
  4235. return T.S};
  4236. IY5=function(T,Q){return u8(T,function(){var k=this;return function v(){var L,q,Y,U,R,Z,f,G,m,I,z,w,r,A;return PT(v,function(D){switch(D.S){case 1:g.Xg(D,2);L=[];q=window.ywc;if(!q){D.Ym(4);break}Y=q[Q];if(!Y){D.Ym(4);break}if(Y.mod)return D.return(Y.mod);if(!Y.modP){D.Ym(6);break}g.z5(D,7);U=t5;return C5(D,nQ(Y.modP),9);case 9:return D.return(U(D.T));case 7:g.by(D),L.unshift("pcm");case 6:if(Y.bin){k.T=A1(Y.bin);D.Ym(4);break}if(!Y.binP){D.Ym(4);break}g.z5(D,12);R=wq;Z=A1;f=t5;return C5(D,nQ(Y.binP),
  4237. 14);case 14:k.T=Z.call(R,f(D.T));g.d6(D,4);break;case 12:g.by(D),k.T=void 0,L.unshift("pfb");case 4:if(!k.T){D.Ym(15);break}g.z5(D,16);G=t5;return C5(D,nQ(k.T),18);case 18:m=G(D.T);if(k.L)try{return D.return(new WebAssembly.Module(m))}catch(K){k.L=!1,L.unshift("f0cs")}I=t5;return C5(D,nQ(WebAssembly.compile(m)),19);case 19:return D.return(I(D.T));case 16:g.by(D),k.T=void 0,L.unshift("f0ca");case 15:return g.z5(D,20),mlJ(k,Q),z=t5,C5(D,nQ(k.T),22);case 22:w=z(D.T);if(k.L)try{return D.return(new WebAssembly.Module(w))}catch(K){k.L=
  4238. !1,L.unshift("f1cs")}r=t5;return C5(D,nQ(WebAssembly.compile(w)),23);case 23:return D.return(r(D.T));case 20:A=g.by(D),k.T=void 0,k.Y=!1,L.unshift("f1ca: "+A);case 21:throw"["+L.map(function(K){return'"'+K+'"'}).join(", ")+"]";
  4239. case 2:g.aI(D),g.n5(D,0)}})}()})};
  4240. hGt=function(){};
  4241. sNT=function(){var T=this;this.proc_exit=function(){};
  4242. this.fd_write=function(Q,k,l){if(!T.exports)return 1;Q=new Uint32Array(T.exports.memory.buffer,k,l*2);k=[];for(var v=0;v<l;++v){var L=new Uint8Array(T.exports.memory.buffer,Q[v*2],Q[v*2+1]);L=g.GU(L);k.push(L)}return k.reduce(function(q,Y){return q+Y.length},0)}};
  4243. SWg=function(){this.env=new hGt;this.wasi_snapshot_preview1=new sNT};
  4244. AS=function(T,Q,k){this.instance=T;this.T=k;this.exports=this.instance.exports;Q.wasi_snapshot_preview1.exports=this.exports;T=Math.floor(Math.random()*256);Q=Math.floor(Math.random()*256);k=0;try{k=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,k,16)).fill(T);if(this.exports.sentinel(k,16,Q)!==Q*16%256)throw"wasm.wm.vi";for(var l=new Uint8Array(this.exports.memory.buffer,k,16),v=0;v<16;v++)if(l[v]!==(T+Q)%256)throw"wasm.wm.vi"+v;}finally{k!==0&&this.exports.free(k)}};
  4245. CZg=function(T,Q,k){var l=l===void 0?!0:l;return u8(void 0,function(){return function L(){var q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e;return PT(L,function(vT){switch(vT.S){case 1:g.Xg(vT,2);q=bc.Ya();if(!(T&&rx||Q))return U={},(Y=k)==null||Y("wasmns",(U.p=T?"1":"0",U.a=Q?"1":"0",U.s=rx?"1":"0",U)),vT.return(b8(Error("wasm.wm.ns")));R=new SWg;if(!T){vT.Ym(4);break}g.z5(vT,5);Z=t5;return C5(vT,nQ(Gnt(R,T)),7);case 7:return f=Z(vT.T),G=new AS(f,R,!1,l),bc.AS("winit",q),(m=k)==null||m("wasmsw",{}),vT.return(G);
  4246. case 5:if(I=g.by(vT),w={},(z=k)==null||z("wasmerrw",(w.e=""+I,w)),!Q)throw Error("wasm.wm.iw: "+I);case 4:if(!Q)throw Error("wasm.wm.xx");g.z5(vT,8);r=t5;return C5(vT,nQ(Q(R)),10);case 10:return A=r(vT.T),D=new AS({exports:A},R,!0,l),bc.AS("winitjs",q),(K=k)==null||K("wasmsa",{}),vT.return(D);case 8:throw O=g.by(vT),e={},(E=k)==null||E("wasmerra",(e.e=""+O,e)),Error("wasm.wm.ia: "+O);case 2:g.aI(vT),g.n5(vT,0)}})}()})};
  4247. cL=function(T,Q,k){this.T=T;this.L=!1;Q=this.T.RH(Q);this.S=new wx(T,Q);this.T.free(Q.byteOffset);this.Y=this.T.RH(k)};
  4248. BMT=function(T,Q,k){k=T.T.RH(k);var l=T.S;l.T.exports.AES128CTRCipher_setCounter(l.cipher,k.byteOffset);T.T.free(k.byteOffset);Q=T.T.RH(Q);T.S.encrypt(Q);return Q};
  4249. zGT=function(T,Q,k){g.x.call(this);this.encryptedClientKey=Q;this.B=k;this.S=new Uint8Array(T.buffer,0,16);this.L=new Uint8Array(T.buffer,16)};
  4250. XE5=function(T){T.Y||(T.Y=new g.Ua(T.S));return T.Y};
  4251. DE=function(T){try{return Am(T)}catch(Q){return null}};
  4252. wEu=function(T,Q){g.x.call(this);if(!Q&&T)try{Q=JSON.parse(T)}catch(v){}if(Q){T=Q.clientKey?DE(Q.clientKey):null;var k=Q.encryptedClientKey?DE(Q.encryptedClientKey):null,l=Q.keyExpiresInSeconds?Number(Q.keyExpiresInSeconds)*1E3+(0,g.XY)():null;T&&k&&l&&(this.T=new zGT(T,k,l),g.P(this,this.T));Q.onesieUstreamerConfig&&(this.onesieUstreamerConfig=DE(Q.onesieUstreamerConfig)||void 0);this.baseUrl=Q.baseUrl}};
  4253. uc=function(){this.data=new Uint8Array(2048);this.pos=0;an||(an=hl("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
  4254. nc=function(T,Q){T.add(Q==null||isNaN(Q)?0:Q+1)};
  4255. Kc=function(T){this.T=this.S=0;this.alpha=Math.exp(Math.log(.5)/T)};
  4256. xm=function(T){this.S=T===void 0?15:T;this.values=new Float64Array(176);this.T=new Float64Array(11);this.L=new Float64Array(16)};
  4257. PL=function(T,Q,k,l){k=k===void 0?.5:k;l=l===void 0?0:l;this.resolution=Q;this.S=0;this.L=!1;this.RY=!0;this.T=Math.round(T*this.resolution);this.values=Array(this.T);for(T=0;T<this.T;T++)this.values[T]=Infinity;this.N=dlT(this);this.Y=k;this.B=l};
  4258. dlT=function(T){for(var Q=Array(T.T),k=0;k<T.T;k++)Q[k]=k;return Q};
  4259. HL=function(T,Q,k){g.x.call(this);this.policy=T;this.S=Q;this.nA=k;this.hj=this.Jj=0;this.qO=-1;this.xm=this.N=0;this.z9=!1;this.interruptions=[];this.Y=[{stamp:0,net:0,max:0}];this.Bd=this.B=(0,g.XY)();this.j=new PL(4,1,.6,.4);this.i9=new PL(4,1,.6,.4);this.C=new PL(20,1,.5,.4);T.qO?this.L=new xm(T.T):T.S?this.L=new Kc(T.T):this.L=new PL(T.T,20,.5,.4);this.e6=new PL(5,1,.25);this.D=new PL(30,1,.5);T=g.cy("yt-player-bandwidth")||{};Q=this.policy.L;if(T.byterate>0)Q=T.byterate,this.z9=!0;else{var l;
  4260. k=(((l=navigator.connection)==null?void 0:l.downlink)||0)*64*1024;k>0&&(Q=k,this.z9=!0)}this.L.Q1(this.policy.B,Q);T.delay>0&&this.j.Q1(1,Math.min(T.delay,2));T.stall>0&&this.C.Q1(1,T.stall);T.init>0&&(this.Bd=Math.min(T.init,this.Bd));T.interruptions&&(this.Y=this.Y.concat(T.interruptions),this.Y.length>16&&this.Y.pop());this.qO=(0,g.XY)();this.policy.C>0&&(this.sK=new g.FA(this.p_,this.policy.C,this),g.P(this,this.sK),this.sK.start())};
  4261. tS=function(T,Q,k,l){T.L.Q1(l===void 0?Q:l,k/Q);T.B=(0,g.XY)()};
  4262. NMf=function(T){T.N||(T.N=(0,g.XY)());T.policy.D&&(T.B=(0,g.XY)())};
  4263. AQ5=function(T,Q){if(T.N){var k=Q-T.N;if(k<6E4){if(k>1E3){var l=T.interruptions;l.push(Math.ceil(k));l.sort(function(v,L){return L-v});
  4264. l.length>16&&l.pop()}T.xm+=k}}T.N=Q};
  4265. Od=function(T,Q,k,l,v,L){L=L===void 0?!1:L;T.e6.Q1(Q,k/Q);T.B=(0,g.XY)();v||T.D.Q1(1,Q-l);L||(T.N=0);T.qO>-1&&(0,g.XY)()-T.qO>3E4&&bwI(T)};
  4266. pc=function(T,Q,k){Q=Math.max(Q,T.S.T);T.C.Q1(1,k/Q)};
  4267. WL=function(T){T=T.j.hx()+T.i9.hx()||0;T=isNaN(T)?.5:T;return T=Math.min(T,5)};
  4268. $m=function(T,Q,k){isNaN(k)||(T.hj+=k);isNaN(Q)||(T.Jj+=Q)};
  4269. JS=function(T){T=T.L.hx();return T>0?T:1};
  4270. e4=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?1048576:k;var l=JS(T);l=1/((T.C.hx()||0)*T.policy.z9+1/l);var v=T.e6.hx();v=v>0?v:1;var L=Math.max(l,v);T.policy.N>0&&v<l&&(L=Math.min(T.policy.N,1),L=(1-L)*l+L*v);if(!Q)return L;Q=1E-9+WL(T);k=L*Math.min(1,k/(L*Q));T.policy.Y||(T=((T.D.percentile(.98)||0)-1)/2,T=Math.max(0,Math.min(1,T)),k*=1-.5*T);return k};
  4271. rQf=function(T){var Q={delay:WL(T),stall:T.C.hx()||0,byterate:JS(T),init:T.Bd},k=T.Y[0];k.stamp=Math.round(T.B/36E5)*36E5;k.net=Math.ceil(T.xm);k.max=T.interruptions[0]||0;Q.interruptions=T.Y;return Q};
  4272. bwI=function(T){var Q=rQf(T);g.ri("yt-player-bandwidth",Q,2592E3);T.qO=(0,g.XY)();T.z9=!0};
  4273. FK=function(T){return(0,g.XY)()-T.B>=4E3};
  4274. cQg=function(T){this.experiments=T;this.T=17;this.L=13E4;this.B=.5;this.Y=this.S=!1;this.qO=this.V("html5_use_histogram_for_bandwidth");this.N=g.jj(this.experiments,"html5_auxiliary_estimate_weight");this.z9=g.jj(this.experiments,"html5_stall_factor")||1;this.C=g.jj(this.experiments,"html5_check_for_idle_network_interval_ms");this.j=this.experiments.Wd("html5_trigger_loader_when_idle_network");this.D=this.experiments.Wd("html5_sabr_fetch_on_idle_network_preloaded_players")};
  4275. aYy=function(T,Q){T=T===void 0?{}:T;Q=Q===void 0?{}:Q;g.x.call(this);var k=this;this.values=T;this.jP=Q;this.S={};this.L=this.T=0;this.Y=new g.FA(function(){Dlf(k)},1E4);
  4276. g.P(this,this.Y)};
  4277. Ed=function(T,Q){ukg(T,Q);return T.values[Q]&&T.jP[Q]?T.values[Q]/Math.pow(2,T.T/T.jP[Q]):0};
  4278. ukg=function(T,Q){T.values[Q]||(Q=Q0X(),T.values=Q.values||{},T.jP=Q.halfLives||{},T.S=Q.values?Object.assign({},Q.values):{})};
  4279. Dlf=function(T){var Q=Q0X();if(Q.values){Q=Q.values;for(var k={},l=g.B(Object.keys(T.values)),v=l.next();!v.done;v=l.next())v=v.value,Q[v]&&T.S[v]&&(T.values[v]+=Q[v]-T.S[v]),k[v]=Ed(T,v);T.S=k}Q=T.jP;k={};k.values=T.S;k.halfLives=Q;g.ri("yt-player-memory",k,2592E3)};
  4280. fn=function(T,Q,k,l,v){g.x.call(this);this.webPlayerContextConfig=Q;this.wJ=l;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.b7=this.QR=this.vn=this.NV=this.userDisplayName=this.userDisplayImage=this.Hl="";this.T={};this.d5={};this.controlsType="0";this.Fk=NaN;this.f_=!1;this.Wk=(0,g.XY)();this.h3=0;this.eO=this.Ct=!1;this.dC=!0;this.preferGapless=this.RM=this.uK=this.L=this.pG=!1;this.Dz=[];this.OW=!1;this.wV=0;T=T?g.Gs(T):{};Q&&Q.csiPageType&&(this.csiPageType=Q.csiPageType);Q&&Q.csiServiceName&&
  4281. (this.csiServiceName=Q.csiServiceName);Q&&Q.preferGapless&&(this.preferGapless=Q.preferGapless);this.experiments=new ETC(Q?Q.serializedExperimentIds:T.fexp,Q?Q.serializedExperimentFlags:T.fflags);this.forcedExperiments=Q?Q.serializedForcedExperimentIds:o1("",T.forced_experiments)||void 0;this.cspNonce=(Q==null?0:Q.cspNonce)?Q.cspNonce:o1("",T.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var L=document.location.toString()}catch(vT){L=""}this.iK=L;this.ancestorOrigins=(l=window.location.ancestorOrigins)?
  4282. Array.from(l):[];this.Y=jG(!1,Q?Q.isEmbed:T.is_embed);if(Q&&Q.device){if(l=Q.device,l.androidOsExperience&&(this.T.caoe=""+l.androidOsExperience),l.androidPlayServicesVersion&&(this.T.capsv=""+l.androidPlayServicesVersion),l.brand&&(this.T.cbrand=l.brand),l.browser&&(this.T.cbr=l.browser),l.browserVersion&&(this.T.cbrver=l.browserVersion),l.cobaltReleaseVehicle&&(this.T.ccrv=""+l.cobaltReleaseVehicle),this.T.c=l.interfaceName||"WEB",this.T.cver=l.interfaceVersion||"html5",l.interfaceTheme&&(this.T.ctheme=
  4283. l.interfaceTheme),this.T.cplayer=l.interfacePlayerType||"UNIPLAYER",l.model&&(this.T.cmodel=l.model),l.network&&(this.T.cnetwork=l.network),l.os&&(this.T.cos=l.os),l.osVersion&&(this.T.cosver=l.osVersion),l.platform&&(this.T.cplatform=l.platform),L=S4(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),L==="all"||L==="once")l.chipset&&(this.d5.cchip=l.chipset),l.cobaltAppVersion&&(this.d5.ccappver=l.cobaltAppVersion),l.firmwareVersion&&(this.d5.cfrmver=l.firmwareVersion),l.deviceYear&&(this.d5.crqyear=
  4284. l.deviceYear)}else this.T.c=T.c||"web",this.T.cver=T.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=Q?this.Y||nJ5(this)&&Q.loaderUrl?Q.loaderUrl||"":this.iK:this.Y||nJ5(this)&&T.loaderUrl?o1("",T.loaderUrl):this.iK;this.Y&&g.Tv("yt.embedded_player.embed_url",this.loaderUrl);this.j=HI(this.loaderUrl,K1f);l=this.loaderUrl;var q=q===void 0?!1:q;this.R0=PI(HI(l,xlu),l,q,"Trusted Ad Domain URL");this.OG=jG(!1,T.privembed);this.protocol=this.iK.indexOf("http:")===0?"http":"https";this.fz=G$C((Q?
  4285. Q.customBaseYoutubeUrl:T.BASE_YT_URL)||"")||G$C(this.iK)||this.protocol+"://www.youtube.com/";q=Q?Q.eventLabel:T.el;l="detailpage";q==="adunit"?l=this.Y?"embedded":"detailpage":q==="embedded"||this.j?l=kq(l,q,PZg):q&&(l="embedded");this.i9=l;NE6();q=null;l=Q?Q.playerStyle:T.ps;L=g.CW(Hw5,l);!l||L&&!this.j||(q=l);this.playerStyle=q;this.B=g.CW(Hw5,this.playerStyle);this.houseBrandUserStatus=Q==null?void 0:Q.houseBrandUserStatus;this.qO=this.B&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
  4286. this.XQ=!this.qO;this.sK=jG(!1,T.disableplaybackui);this.disablePaidContentOverlay=jG(!1,Q==null?void 0:Q.disablePaidContentOverlay);this.disableSeek=jG(!1,Q==null?void 0:Q.disableSeek);this.enableSpeedOptions=(Q==null?void 0:Q.enableSpeedOptions)||(mD().defaultPlaybackRate?ya||g.iC||ic?g.Rn&&ze("20")||g.hW&&ze("4")||g.Va&&ze("11")||eS():!(g.Va&&!g.tH("chrome")||ya||g.tH("android")||g.tH("silk")):!1);this.Z6=jG(!1,T.enable_faster_speeds);var Y;this.supportsVarispeedExtendedFeatures=(Y=Q==null?void 0:
  4287. Q.supportsVarispeedExtendedFeatures)!=null?Y:!1;this.S=jG(this.playerStyle==="blazer",T.is_html5_mobile_device||Q&&Q.isMobileDevice);this.Jj=yI()||VI();this.xs=this.V("mweb_allow_background_playback")?!1:this.S&&!this.B;this.e6=Cu();this.SP=g.TW;var U;this.s1=!!(Q==null?0:(U=Q.embedsHostFlags)==null?0:U.optOutApiDeprecation);var R;Q?Q.hideInfo!==void 0&&(R=!Q.hideInfo):R=T.showinfo;this.UY=g.Qk(this)&&!this.s1||jG(!jF(this)&&!kL(this)&&!this.B,R);this.xz=Q?!!Q.mobileIphoneSupportsInlinePlayback:jG(!1,
  4288. T.playsinline);Y=this.S&&lF&&ou!=null&&ou>0&&ou<=2.3;U=Q?Q.useNativeControls:T.use_native_controls;this.C=g.Qk(this)&&this.S;R=this.S&&!this.C;U=g.vB(this)||!Y&&jG(R,U)?"3":"1";this.disableOrganicUi=!(Q==null||!Q.disableOrganicUi);R=Q?Q.controlsType:T.controls;this.controlsType=this.disableOrganicUi||R==="0"||R===0?"0":U;this.xE=this.S;this.color=kq("red",Q?Q.progressBarColor:T.color,tn6);this.Hf=this.controlsType==="3";this.Ig=!this.Y;this.Rx=(U=!this.Ig&&!kL(this)&&!this.qO&&!this.B&&!jF(this))&&
  4289. !this.Hf&&this.controlsType==="1";this.gt=g.Ln(this)&&U&&this.controlsType==="0"&&!this.Rx&&!(Q==null?0:Q.embedsEnableEmc3ds);this.hn=this.vz=Y;this.t6=(this.controlsType==="3"||this.S||jG(!1,T.use_media_volume))&&!this.C;this.BH=Fw&&!g.HX(601)?!1:!0;this.Qm=this.Y||!1;this.DP=kL(this)?"":(this.loaderUrl||T.post_message_origin||"").substring(0,128);this.widgetReferrer=o1("",Q?Q.widgetReferrer:T.widget_referrer);var Z;Q?Q.disableCastApi&&(Z=!1):Z=T.enablecastapi;Z=!this.j||jG(!0,Z);Y=!0;Q&&Q.disableMdxCast&&
  4290. (Y=!1);this.cg=this.V("enable_cast_for_web_unplugged")&&g.q0(this)&&Y||g.uP(this)&&Y||Z&&Y&&this.controlsType==="1"&&!this.S&&(kL(this)||g.Ln(this)||g.gj(this));this.QV=!!window.document.pictureInPictureEnabled||SI();Z=Q?!!Q.supportsAutoplayOverride:jG(!1,T.autoplayoverride);this.ek=!(this.S&&!g.Qk(this))&&!g.tH("nintendo wiiu")||Z;this.NK=(Q?!!Q.enableMutedAutoplay:jG(!1,T.mutedautoplay))&&!1;Z=(kL(this)||jF(this))&&this.playerStyle==="blazer";this.E4=Q?!!Q.disableFullscreen:!jG(!0,T.fs);Y=g.gi(g.M0(this))&&
  4291. g.Qk(this);this.Tg=!this.E4&&(Z||g.GL())&&!Y;this.Wz=this.V("html5_picture_in_picture_logging_onresize");var f;this.OE=(f=g.jj(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?f:.33;this.xF=this.V("html5_picture_in_picture_blocking_onresize");this.iy=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.u$=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.dV=this.V("html5_picture_in_picture_blocking_standard_api");f=OG()&&ze(58)&&!VI();Z=We||typeof MediaSource===
  4292. "undefined";this.i5=this.V("uniplayer_block_pip")&&(f||Z)||this.xF||this.iy||this.dV;f=g.Qk(this)&&!this.s1;var G;Q?Q.disableRelatedVideos!==void 0&&(G=!Q.disableRelatedVideos):G=T.rel;this.Hn=f||jG(!this.B,G);this.Ek=jG(!1,Q?Q.enableContentOwnerRelatedVideos:T.co_rel);this.D=VI()&&ou>0&&ou<=4.4?"_top":"_blank";this.m0=g.gj(this);this.iS=jG(this.playerStyle==="blazer",Q?Q.enableCsiLogging:T.enablecsi);switch(this.playerStyle){case "blogger":G="bl";break;case "gmail":G="gm";break;case "gac":G="ga";
  4293. break;case "ads-preview":G="ap";break;case "books":G="gb";break;case "docs":case "flix":G="gd";break;case "duo":G="gu";break;case "google-live":G="gl";break;case "google-one":G="go";break;case "play":case "play-ads":G="gp";break;case "chat":G="hc";break;case "hangouts-meet":G="hm";break;case "photos-edu":case "picasaweb":G="pw";break;default:G="yt"}this.z9=G;this.hj=o1("",Q?Q.authorizedUserIndex:T.authuser);this.Gg=g.Qk(this)&&(this.OG||!mSJ()||this.Jj);var m;Q?Q.disableWatchLater!==void 0&&(m=!Q.disableWatchLater):
  4294. m=T.showwatchlater;this.Tw=((G=!this.Gg)||!!this.hj&&G)&&jG(!this.qO,this.j?m:void 0);this.YP=Q?Q.isMobileDevice||!!Q.disableKeyboardControls:jG(!1,T.disablekb);this.loop=jG(!1,T.loop);this.pageId=o1("",Q?Q.initialDelegatedSessionId:T.pageid);this.cf=jG(!0,T.canplaylive);m=g.jj(this.experiments,"html5_default_audio_quality_setting_lr");var I;this.xu=(I=Ow6[Ow6[m]])!=null?I:0;this.zg=jG(!1,T.livemonitor);this.disableSharing=jG(this.B,Q?Q.disableSharing:T.ss);(I=Q&&this.V("fill_video_container_size_override_from_wpcc")?
  4295. Q.videoContainerOverride:T.video_container_override)?(m=I.split("x"),m.length!==2?I=null:(I=Number(m[0]),m=Number(m[1]),I=isNaN(I)||isNaN(m)||I*m<=0?null:new g.Ji(I,m))):I=null;this.NE=I;this.mute=Q?!!Q.startMuted:jG(!1,T.mute);this.storeUserVolume=!this.mute&&jG(this.controlsType!=="0",Q?Q.storeUserVolume:T.store_user_volume);I=Q?Q.annotationsLoadPolicy:T.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:kq(void 0,I,YL);this.captionsLanguagePreference=Q?Q.captionsLanguagePreference||
  4296. "":o1("",T.cc_lang_pref);I=kq(2,Q?Q.captionsLanguageLoadPolicy:T.cc_load_policy,YL);this.controlsType==="3"&&I===2&&(I=3);this.mK=I;this.F_=Q?Q.hl||"en_US":o1("en_US",T.hl);this.region=Q?Q.contentRegion||"US":o1("US",T.cr);this.hostLanguage=Q?Q.hostLanguage||"en":o1("en",T.host_language);this.Jp=!this.OG&&Math.random()<g.jj(this.experiments,"web_player_api_logging_fraction");this.p_=!this.OG;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(Q==null||!Q.deviceIsAudioOnly);this.Fk=lu(this.Fk,
  4297. T.ismb);this.XQ?(I=T.vss_host||"s.youtube.com",I==="s.youtube.com"&&(I=U8(this.fz)||"www.youtube.com")):I="video.google.com";this.VF=I;Ru(this,T,!0);this.Bd=new XK;g.P(this,this.Bd);m=Q?Q.innertubeApiKey:o1("",T.innertube_api_key);G=Q?Q.innertubeApiVersion:o1("",T.innertube_api_version);I=Q?Q.innertubeContextClientVersion:o1("",T.innertube_context_client_version);m=g.$i("INNERTUBE_API_KEY")||m;G=g.$i("INNERTUBE_API_VERSION")||G;f=g.$i("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");Z=hS(this);Y=typeof this.T.c===
  4298. "number"?Number(this.T.c):Object.keys(pEI).indexOf(this.T.c);this.Lp={innertubeApiKey:m,innertubeApiVersion:G,rz:f,bY:Z,xg:Y,innertubeContextClientVersion:g.$i("INNERTUBE_CONTEXT_CLIENT_VERSION")||I,Ke:this.hostLanguage,IZ:this.region,XR:g.$i("INNERTUBE_HOST_OVERRIDE")||"",U8:!!g.$i("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),S3:!!g.$i("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Xm=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.N=new Cc(this.experiments,this.V("html5_force_hfr_support")?
  4299. !0:fF(this)||$5()||s5f()||W15(this),g.hW&&g.HX(56)||g.Rn&&g.HX(54)||this.V("html5_force_vp9_subsample_encryption_support")||W15(this));I=g.G4(this);m=this.Fk;G=this.experiments;f=new cQg(G);I&&(f.S=!0,f.B=.1);G.Wd("html5_media_time_weight")&&(f.S=!1);m&&(f.L=m/8);f.Y=mk()>=480;this.schedule=new HL(f,new Fly(this.experiments),v);g.P(this,this.schedule);var z;this.enableSafetyMode=(z=Q==null?void 0:Q.initialEnableSafetyMode)!=null?z:jG(!1,T.enable_safety_mode);v=this.sK?!1:kL(this)&&this.playerStyle!==
  4300. "blazer";var w;Q?Q.disableAutonav!=null&&(w=!Q.disableAutonav):w=T.allow_autonav;this.Ah=jG(v,!this.qO&&w);this.sendVisitorIdHeader=Q?!!Q.sendVisitorIdHeader:jG(!1,T.send_visitor_id_header);var r;this.playerStyle==="docs"&&(Q?r=Q.disableNativeContextMenu:r=T.disable_native_context_menu);this.disableNativeContextMenu=jG(!1,r);this.W5=fF(this)&&this.V("enable_skip_intro_button");this.embedConfig=o1("",Q?Q.serializedEmbedConfig:T.embed_config);this.xm=q5(T,g.Qk(this));this.L=this.xm==="EMBEDDED_PLAYER_MODE_PFL";
  4301. this.embedsErrorLinks=!(Q==null||!Q.embedsErrorLinks);this.QE=jG(!1,T.full_window);var A;this.u9=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var D;this.livingRoomAppMode=kq("LIVING_ROOM_APP_MODE_UNSPECIFIED",T.living_room_app_mode||(Q==null?void 0:(D=Q.device)==null?void 0:D.livingRoomAppMode),$lC);var K;w=lu(NaN,Q==null?void 0:(K=Q.device)==null?void 0:K.deviceYear);isNaN(w)||(this.deviceYear=w);this.transparentBackground=Q?!!Q.transparentBackground:jG(!1,T.transparent_background);this.showMiniplayerButton=
  4302. Q?!!Q.showMiniplayerButton:jG(!1,T.show_miniplayer_button);var O;g.Qk(this)&&!(Q==null?0:(O=Q.embedsHostFlags)==null?0:O.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=Q?!!Q.externalFullscreen:jG(!1,T.external_fullscreen);this.showMiniplayerUiWhenMinimized=Q?!!Q.showMiniplayerUiWhenMinimized:jG(!1,T.use_miniplayer_ui);var E;this.dC=(E=T.show_loop_video_toggle)!=null?E:!0;this.bX=Math.random()<1E-4;if(T.onesie_hot_config||(Q==null?0:Q.onesieHotConfig))this.Z8=new wEu(T.onesie_hot_config,
  4303. Q==null?void 0:Q.onesieHotConfig),g.P(this,this.Z8);this.isTectonic=Q?!!Q.isTectonic:!!T.isTectonic;this.playerCanaryState=k;this.playerCanaryStage=Q==null?void 0:Q.canaryStage;this.nG=new aYy;g.P(this,this.nG);this.datasyncId=(Q==null?void 0:Q.datasyncId)||g.$i("DATASYNC_ID");this.kh=g.$i("LOGGED_IN",!1);this.A9=(Q==null?void 0:Q.allowWoffleManagement)||!1;this.FU=Infinity;this.Yh=NaN;this.livingRoomPoTokenId=Q==null?void 0:Q.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.uK=!0:
  4304. this.uK=Math.random()*100<g.jj(this.experiments,"html5_high_res_logging_percent");var e;this.RM=!!(Q==null?0:(e=Q.embedsHostFlags)==null?0:e.allowRcat);this.Ap=!g.q0(this)&&!Ze(this);T=T.embedded_player_response?JSON.parse(T.embedded_player_response).trackingParams:void 0;T&&(this.dJ=T)};
  4305. g.M0=function(T){var Q,k;if(!((Q=T.webPlayerContextConfig)==null?0:(k=Q.embedsHostFlags)==null?0:k.enableLiteUx)||T.OG||T.B||T.L||T.xm==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";T=g.jj(T.experiments,"embeds_web_lite_mode");return T===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":T>=0&&T<JQH.length?JQH[T]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
  4306. Ru=function(T,Q,k){k=k===void 0?!1:k;T.QR=o1(T.QR,Q.video_id);T.vn=o1(T.vn,Q.eventid);T.vn&&(GA=T.vn);for(var l=[],v=g.B(Object.keys(eGy)),L=v.next();!L.done;L=v.next()){L=eGy[L.value];var q=Q[L];q!=null&&(q!==T.T[L]&&l.push(L),T.T[L]=q)}!k&&l.length>0&&T.bX&&(l.sort(),g.rB(new g.Wy("Player client parameters changed after startup",l)));T.userAge=lu(T.userAge,Q.user_age);T.Hl=o1(T.Hl,Q.user_display_email);T.userDisplayImage=o1(T.userDisplayImage,Q.user_display_image);g.OI(T.userDisplayImage)||(T.userDisplayImage=
  4307. "");T.userDisplayName=o1(T.userDisplayName,Q.user_display_name);T.NV=o1(T.NV,Q.user_gender);T.csiPageType=o1(T.csiPageType,Q.csi_page_type);T.csiServiceName=o1(T.csiServiceName,Q.csi_service_name);T.iS=jG(T.iS,Q.enablecsi);T.pageId=o1(T.pageId,Q.pageid);if(k=Q.enabled_engage_types)T.enabledEngageTypes=new Set(k.split(","));Q.living_room_session_po_token&&(T.vk=Q.living_room_session_po_token.toString())};
  4308. GW=function(T,Q){return!T.B&&OG()&&ze(55)&&T.controlsType==="3"&&!Q};
  4309. g.mq=function(T){T=U8(T.fz);return T==="www.youtube-nocookie.com"?"www.youtube.com":T};
  4310. Iu=function(T,Q,k){return T.protocol+"://i1.ytimg.com/vi/"+Q+"/"+(k||"hqdefault.jpg")};
  4311. h9=function(T){return kL(T)&&!g.q0(T)};
  4312. g.vB=function(T){return T.V("html5_local_playsinline")?Fw&&!g.HX(602)&&!("playsInline"in mD()):Fw&&!T.xz||g.tH("nintendo wiiu")?!0:!1};
  4313. hS=function(T){return T.T.c};
  4314. g.G4=function(T){return/^TVHTML5/.test(hS(T))};
  4315. g.s8=function(T){return hS(T)==="TVHTML5"};
  4316. nJ5=function(T){return hS(T)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
  4317. W15=function(T){return T.T.cmodel==="CHROMECAST ULTRA/STEAK"||T.T.cmodel==="CHROMECAST/STEAK"};
  4318. g.SF=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
  4319. fF=function(T){return/web/i.test(hS(T))};
  4320. g.Cn=function(T){return hS(T).toUpperCase()==="WEB"};
  4321. Ze=function(T){return hS(T)==="WEB_KIDS"};
  4322. g.q0=function(T){return hS(T)==="WEB_UNPLUGGED"};
  4323. BB=function(T){return hS(T)==="TVHTML5_UNPLUGGED"};
  4324. g.ZX=function(T){return g.q0(T)||hS(T)==="TV_UNPLUGGED_CAST"||BB(T)};
  4325. g.uP=function(T){return hS(T)==="WEB_REMIX"};
  4326. g.zW=function(T){return hS(T)==="WEB_MUSIC_INTEGRATIONS"};
  4327. g.XT=function(T){return hS(T)==="WEB_EMBEDDED_PLAYER"};
  4328. g.dj=function(T){return(T.deviceIsAudioOnly||!g.hW||We||T.controlsType==="3"?!1:g.iC?T.Y&&g.HX(51):!0)||(T.deviceIsAudioOnly||!g.Rn||We||T.controlsType==="3"?!1:g.iC?T.Y&&g.HX(48):g.HX(38))||(T.deviceIsAudioOnly||!g.Va||We||T.controlsType==="3"?!1:g.iC?T.Y&&g.HX(37):g.HX(27))||!T.deviceIsAudioOnly&&g.wj&&!CHg()&&g.HX(11)||!T.deviceIsAudioOnly&&g.mp&&g.HX("604.4")};
  4329. F1t=function(T){if(g.Ln(T)&&lF)return!1;if(g.Rn){if(!g.HX(47)||!g.HX(52)&&g.HX(51))return!1}else if(g.mp)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
  4330. yQH=function(T,Q){return T.enabledEngageTypes.has(Q.toString())||EJu.includes(Q)};
  4331. kL=function(T){return T.i9==="detailpage"};
  4332. g.Ln=function(T){return T.i9==="embedded"};
  4333. N0=function(T){return T.i9==="leanback"};
  4334. jF=function(T){return T.i9==="adunit"||T.playerStyle==="gvn"};
  4335. g.gj=function(T){return T.i9==="profilepage"};
  4336. g.Qk=function(T){return T.Y&&g.Ln(T)&&!jF(T)&&!T.B};
  4337. A9=function(T){if(!T.userDisplayImage)return"";var Q=T.userDisplayImage.split("/");if(Q.length===5)return T=Q[Q.length-1].split("="),T[1]="s20-c",Q[Q.length-1]=T.join("="),Q.join("/");if(Q.length===8)return Q.splice(7,0,"s20-c"),Q.join("/");if(Q.length===9)return Q[7]+="-s20-c",Q.join("/");g.rB(new g.Wy("Profile image not a FIFE URL.",T.userDisplayImage));return T.userDisplayImage};
  4338. g.bF=function(T){var Q=g.mq(T);iwX.includes(Q)&&(Q="www.youtube.com");return T.protocol+"://"+Q};
  4339. g.rj=function(T,Q){Q=Q===void 0?"":Q;if(T.wJ){var k=new GN,l,v=T.wJ();v.signedOut?l="":v.token?l=v.token:v.pendingResult.then(function(L){v.signedOut?k.resolve(""):k.resolve(L.token)},function(L){g.rB(new g.Wy("b189348328_oauth_callback_failed",{error:L}));
  4340. k.resolve(Q)});
  4341. return l!==void 0?rV(l):new AH(k)}return rV(Q)};
  4342. cB=function(T,Q){Q=Q===void 0?"":Q;return T.kh?A1(!0):ar(DQ(A1(g.rj(T,Q)),function(k){return A1(!!k)}),function(){return A1(!1)})};
  4343. VnJ=function(T,Q){Q==null||DQ(Q,function(k){T.VD=k;var l,v;(l=T.Z8)!=null&&(v=l.T)!=null&&(v.T=new cL(k,v.S,v.L),g.P(v,v.T))})};
  4344. U8=function(T){var Q=g.Rq(T);return(T=Number(g.UD(T)[4]||null)||null)?Q+":"+T:Q};
  4345. De=function(T,Q){Q=Q===void 0?!1:Q;var k=bk[T],l=TOt[k],v=QB6[T];if(!v||!l)return null;Q=new dC(Q?v.height:v.width,Q?v.width:v.height,v.fps);l=H9(l,Q,k);return new rC(T,l,{video:Q,qY:v.bitrate/8})};
  4346. kb5=function(T){var Q=TOt[bk[T]],k=jB5[T];return k&&Q?new rC(T,Q,{audio:new zX(k.audioSampleRate,k.numChannels)}):null};
  4347. au=function(T){this.T=T};
  4348. uF=function(T,Q,k,l){if(k)return bC();k={};var v=mD();Q=g.B(Q);for(var L=Q.next();!L.done;L=Q.next())if(L=L.value,T.canPlayType(v,L.getInfo().mimeType)||l){var q=L.T.video.quality;if(!k[q]||k[q].getInfo().Rd())k[q]=L}T=[];k.auto&&T.push(k.auto);l=g.B(N$);for(v=l.next();!v.done;v=l.next())(v=k[v.value])&&T.push(v);return T.length?rV(T):bC()};
  4349. lwT=function(T){this.itag=T.itag;this.url=T.url;this.codecs=T.codecs;this.width=T.width;this.height=T.height;this.fps=T.fps;this.bitrate=T.bitrate;var Q;this.S=((Q=T.audioItag)==null?void 0:Q.split(","))||[];this.qo=T.qo;this.jY=T.jY||"";this.MY=T.MY;this.audioChannels=T.audioChannels;this.T=""};
  4350. oKJ=function(T,Q,k,l){Q=Q===void 0?!1:Q;k=k===void 0?!0:k;l=l===void 0?{}:l;var v={};T=g.B(T);for(var L=T.next();!L.done;L=T.next()){L=L.value;if(Q&&MediaSource&&MediaSource.isTypeSupported){var q=L.type;L.audio_channels&&(q=q+"; channels="+L.audio_channels);if(!MediaSource.isTypeSupported(q)){l[L.itag]="tpus";continue}}if(k||!L.drm_families||L.eotf!=="smpte2084"&&L.eotf!=="arib-std-b67"){q=void 0;var Y={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},U=L.type.match(/codecs="([^"]*)"/);
  4351. U=U?U[1]:"";L.audio_track_id&&(q=new g.aX(L.name,L.audio_track_id,!!L.is_default));var R=L.eotf;L=new lwT({itag:L.itag,url:L.url,codecs:U,width:Number(L.width),height:Number(L.height),fps:Number(L.fps),bitrate:Number(L.bitrate),audioItag:L.audio_itag,qo:R?Y[R]:void 0,jY:L.drm_families,MY:q,audioChannels:Number(L.audio_channels)});v[L.itag]=v[L.itag]||[];v[L.itag].push(L)}else l[L.itag]="enchdr"}return v};
  4352. vK5=function(T,Q,k,l,v){this.L=T;this.S=Q;this.N=k;this.cpn=l;this.B=v;this.Y=0;this.T=""};
  4353. LE6=function(T,Q){T.L.some(function(k){var l;return((l=k.MY)==null?void 0:l.getId())===Q});
  4354. T.T=Q};
  4355. nn=function(T,Q,k){T.cpn&&(Q=g.sD(Q,{cpn:T.cpn}));k&&(Q=g.sD(Q,{paired:k}));return Q};
  4356. qR6=function(T,Q){T=T.itag.toString();Q!==null&&(T+=Q.itag.toString());return T};
  4357. gK5=function(T){for(var Q=[],k=[],l=g.B(T.S),v=l.next();!v.done;v=l.next())v=v.value,v.bitrate<=T.Y?Q.push(v):k.push(v);Q.sort(function(L,q){return q.bitrate-L.bitrate});
  4358. k.sort(function(L,q){return L.bitrate-q.bitrate});
  4359. T.S=Q.concat(k)};
  4360. Kn=function(T,Q,k){this.T=T;this.S=Q;this.expiration=k;this.Xs=null};
  4361. Mgu=function(T,Q){if(!(We||JH()||WD()))return null;T=oKJ(Q,T.V("html5_filter_fmp4_in_hls"));if(!T)return null;Q=[];for(var k={},l=g.B(Object.keys(T)),v=l.next();!v.done;v=l.next()){v=g.B(T[v.value]);for(var L=v.next();!L.done;L=v.next()){var q=L.value;q.MY&&(L=q.MY.getId(),k[L]||(q=new g.wt(L,q.MY),k[L]=q,Q.push(q)))}}return Q.length>0?Q:null};
  4362. fwC=function(T,Q,k,l,v,L,q){if(!(We||JH()||WD()))return bC();var Y={},U=YRt(k),R=oKJ(k,T.V("html5_filter_fmp4_in_hls"),T.N.C,Y);if(!R)return q({noplst:1}),bC();UAg(R);k={};var Z=(k.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",k),f;k=[];var G=[],m=[],I=null,z="";l=l&&l.match(/hls_timedtext_playlist/)?new lwT({itag:"0",url:l,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,MY:new g.aX("English","en",!1)}):null;for(var w=g.B(Object.keys(R)),r=w.next();!r.done;r=w.next())if(r=r.value,!T.V("html5_disable_drm_hfr_1080")||
  4363. r!=="383"&&r!=="373"){r=g.B(R[r]);for(var A=r.next();!A.done;A=r.next())if(A=A.value,A.width){for(var D=g.B(A.S),K=D.next();!K.done;K=D.next())if(K=K.value,R[K]){A.T=K;break}A.T||(A.T=Rr5(R,A));if(D=R[A.T])if(k.push(A),A.jY==="fairplay"&&(f=Z),K="",A.qo==="PQ"?K="smpte2084":A.qo==="HLG"&&(K="arib-std-b67"),K&&(z=K),m.push(Z7f(D,[A],l,L,A.itag,A.width,A.height,A.fps,U,void 0,void 0,f,K)),!I||A.width*A.height*A.fps>I.width*I.height*I.fps)I=A}else G.push(A)}else Y[r]="disdrmhfr";m.reduce(function(O,
  4364. E){return E.getInfo().isEncrypted()&&O},!0)&&(f=Z);
  4365. v=Math.max(v,0);Z=I||{};R=Z.fps===void 0?0:Z.fps;I=Z.width===void 0?0:Z.width;Z=Z.height===void 0?0:Z.height;w=T.V("html5_native_audio_track_switching");m.push(Z7f(G,k,l,L,"93",I,Z,R,U,"auto",v,f,z,w));Object.entries(Y).length&&q(Y);return uF(T.N,m,GW(T,Q),!1)};
  4366. Z7f=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){for(var I=0,z="",w=g.B(T),r=w.next();!r.done;r=w.next())r=r.value,z||(z=r.itag),r.audioChannels&&r.audioChannels>I&&(I=r.audioChannels,z=r.itag);v=new rC(v,"application/x-mpegURL",{audio:new zX(0,I),video:new dC(L,q,Y,null,void 0,R,void 0,G),jY:f,Xb:z});T=new vK5(T,Q,k?[k]:[],l,!!m);T.Y=Z?Z:1369843;return new Kn(v,T,U)};
  4367. YRt=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.url&&(Q=Q.url.split("expire/"),!(Q.length<=1)))return+Q[1].split("/")[0];return NaN};
  4368. Rr5=function(T,Q){for(var k=g.B(Object.keys(T)),l=k.next();!l.done;l=k.next()){l=l.value;var v=T[l][0];if(!v.width&&v.jY===Q.jY&&!v.audioChannels)return l}return""};
  4369. UAg=function(T){for(var Q=new Set,k=g.B(Object.values(T)),l=k.next();!l.done;l=k.next())l=l.value,l.length&&(l=l[0],l.height&&l.codecs.startsWith("vp09")&&Q.add(l.height));k=[];if(Q.size){l=g.B(Object.keys(T));for(var v=l.next();!v.done;v=l.next())if(v=v.value,T[v].length){var L=T[v][0];L.height&&Q.has(L.height)&&!L.codecs.startsWith("vp09")&&k.push(v)}}Q=g.B(k);for(k=Q.next();!k.done;k=Q.next())delete T[k.value]};
  4370. xL=function(T,Q){this.T=T;this.S=Q};
  4371. Gb5=function(T,Q,k,l){var v=[];k=g.B(k);for(var L=k.next();!L.done;L=k.next()){var q=L.value;if(q.url){L=new g.J_(q.url,!0);if(q.s){var Y=L,U=q.sp,R=FUC(decodeURIComponent(q.s));Y[M[10]](U,encodeURIComponent(R))}Y=g.B(Object.keys(l));for(U=Y.next();!U.done;U=Y.next())U=U.value,L.set(U,l[U]);q=$9(q.type,q.quality,q.itag,q.width,q.height);v.push(new xL(q,L))}}return uF(T.N,v,GW(T,Q),!1)};
  4372. PB=function(T,Q){this.T=T;this.S=Q};
  4373. mAX=function(T,Q,k){var l=[];k=g.B(k);for(var v=k.next();!v.done;v=k.next())if((v=v.value)&&v.url){var L=$9(v.type,"medium","0");l.push(new PB(L,v.url))}return uF(T.N,l,GW(T,Q),!1)};
  4374. Iwy=function(T,Q){var k=[],l=$9(Q.type,"auto",Q.itag);k.push(new PB(l,Q.url));return uF(T.N,k,!1,!0)};
  4375. sBy=function(T){return T&&hrb[T]?hrb[T]:null};
  4376. SR5=function(T){switch(T){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return T;default:return"sabr.config"}};
  4377. CQI=function(T){if(T=T.commonConfig)this.url=T.url,this.urlQueryOverride=T.urlQueryOverride,T.ustreamerConfig&&(this.Vl=DE(T.ustreamerConfig)||void 0)};
  4378. BO6=function(T,Q){var k;if(Q=Q==null?void 0:(k=Q.watchEndpointSupportedOnesieConfig)==null?void 0:k.html5PlaybackOnesieConfig)T.zK=new CQI(Q)};
  4379. g.HB=function(T){T=T===void 0?{}:T;this.languageCode=T.languageCode||"";this.languageName=T.languageName||null;this.kind=T.kind||"";this.name=T.name===void 0?null:T.name;this.displayName=T.displayName||null;this.id=T.id||null;this.T=T.is_servable||!1;this.isTranslateable=T.is_translateable||!1;this.url=T.url||null;this.vssId=T.vss_id||"";this.isDefault=T.is_default||!1;this.translationLanguage=T.translationLanguage||null;this.xtags=T.xtags||"";this.captionId=T.captionId||""};
  4380. g.O8=function(T){var Q={languageCode:T.languageCode,languageName:T.languageName,displayName:g.t9(T),kind:T.kind,name:T.name,id:T.id,is_servable:T.T,is_default:T.isDefault,is_translateable:T.isTranslateable,vss_id:T.vssId};T.xtags&&(Q.xtags=T.xtags);T.captionId&&(Q.captionId=T.captionId);T.translationLanguage&&(Q.translationLanguage=T.translationLanguage);return Q};
  4381. g.pn=function(T){return T.translationLanguage?T.translationLanguage.languageCode:T.languageCode};
  4382. g.zrg=function(T){var Q=T.vssId;T.translationLanguage&&Q&&(Q="t"+Q+"."+g.pn(T));return Q};
  4383. g.t9=function(T){var Q=[];if(T.displayName)Q.push(T.displayName);else{var k=T.languageName||"";Q.push(k);T.kind==="asr"&&k.indexOf("(")===-1&&Q.push(" (\u81ea\u52a8\u751f\u6210\u7684\u5b57\u5e55)");T.name&&Q.push(" - "+T.name)}T.translationLanguage&&Q.push(" >> "+T.translationLanguage.languageName);return Q.join("")};
  4384. NOb=function(T,Q,k,l){T||(T=Q&&XO5.hasOwnProperty(Q)&&wOT.hasOwnProperty(Q)?wOT[Q]+"_"+XO5[Q]:void 0);Q=T;if(!Q)return null;T=Q.match(dAg);if(!T||T.length!==5)return null;if(T=Q.match(dAg)){var v=Number(T[3]),L=[7,8,10,5,6];T=!(Number(T[1])===1&&v===8)&&L.indexOf(v)>=0}else T=!1;return k||l||T?Q:null};
  4385. WB=function(T,Q){for(var k={},l=g.B(Object.keys(Aku)),v=l.next();!v.done;v=l.next()){v=v.value;var L=Q?Q+v:v;L=T[L+"_webp"]||T[L];g.OI(L)&&(k[Aku[v]]=L)}return k};
  4386. $L=function(T){var Q={};if(!T||!T.thumbnails)return Q;T=T.thumbnails.filter(function(Y){return!!Y.url});
  4387. T.sort(function(Y,U){return Y.width-U.width||Y.height-U.height});
  4388. for(var k=g.B(Object.keys(b7J)),l=k.next();!l.done;l=k.next()){var v=Number(l.value);l=b7J[v];for(var L=g.B(T),q=L.next();!q.done;q=L.next())if(q=q.value,q.width>=v){v=rkC(q.url);g.OI(v)&&(Q[l]=v);break}}(T=T.pop())&&T.width>=1280&&(T=rkC(T.url),g.OI(T)&&(Q["maxresdefault.jpg"]=T));return Q};
  4389. rkC=function(T){return T.startsWith("//")?"https:"+T:T};
  4390. J9=function(T){return T&&T.baseUrl||""};
  4391. eF=function(T){T=g.k5(T);for(var Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next()){k=k.value;var l=T[k];T[k]=Array.isArray(l)?l[0]:l}return T};
  4392. ckC=function(T,Q){T.botguardData=Q.playerAttestationRenderer.botguardData;Q=Q.playerAttestationRenderer.challenge;Q!=null&&(T.d_=Q)};
  4393. ujy=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=k.interstitials.map(function(q){var Y=g.t(q,DAH);if(Y)return{is_yto_interstitial:!0,raw_player_response:Y};if(q=g.t(q,awX))return Object.assign({is_yto_interstitial:!0},QI(q))});
  4394. l=g.B(l);for(var v=l.next();!v.done;v=l.next())switch(v=v.value,k.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":T.interstitials=T.interstitials.concat({time:0,playerVars:v,Lv:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":T.interstitials=T.interstitials.concat({time:0x7ffffffffffff,playerVars:v,Lv:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var L=Number(k.podConfig.timeToInsertAtMillis);T.interstitials=T.interstitials.concat({time:L,playerVars:v,
  4395. Lv:L===0?5:7})}}};
  4396. nKJ=function(T,Q){if(Q=Q.find(function(k){return!(!k||!k.tooltipRenderer)}))T.tooltipRenderer=Q.tooltipRenderer};
  4397. KEg=function(T,Q){Q.subscribeCommand&&(T.subscribeCommand=Q.subscribeCommand);Q.unsubscribeCommand&&(T.unsubscribeCommand=Q.unsubscribeCommand);Q.addToWatchLaterCommand&&(T.addToWatchLaterCommand=Q.addToWatchLaterCommand);Q.removeFromWatchLaterCommand&&(T.removeFromWatchLaterCommand=Q.removeFromWatchLaterCommand);Q.getSharePanelCommand&&(T.getSharePanelCommand=Q.getSharePanelCommand)};
  4398. xA5=function(T,Q){Q!=null?(T.v5=Q,T.hh=!0):(T.v5="",T.hh=!1)};
  4399. FT=function(T,Q){this.type=T||"";this.id=Q||""};
  4400. E8=function(T){return new FT(T.substring(0,2),T.substring(2))};
  4401. yk=function(T,Q){this.FB=T;this.author="";this.y5=null;this.playlistLength=0;this.T=this.sessionData=null;this.j={};this.title="";if(Q){this.author=Q.author||Q.playlist_author||"";this.title=Q.playlist_title||"";if(T=Q.session_data)this.sessionData=Vt(T,"&");var k;this.T=((k=Q.thumbnail_ids)==null?void 0:k.split(",")[0])||null;this.j=WB(Q,"playlist_");this.videoId=Q.video_id||void 0;if(k=Q.list)switch(Q.listType){case "user_uploads":this.playlistId=(new FT("UU","PLAYER_"+k)).toString();break;default:if(T=
  4402. Q.playlist_length)this.playlistLength=Number(T)||0;this.playlistId=E8(k).toString();if(Q=Q.video)this.videoId=(Q[0]||null).video_id||void 0}else Q.playlist&&(this.playlistLength=Q.playlist.toString().split(",").length)}};
  4403. iF=function(T,Q){this.FB=T;this.o9=this.author="";this.y5=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.mO=this.lengthText="";this.sessionData=null;this.j={};this.title="";if(Q){this.ariaLabel=Q.aria_label||void 0;this.author=Q.author||"";this.o9=Q.o9||"";if(T=Q.endscreen_autoplay_session_data)this.y5=Vt(T,"&");this.rN=Q.rN;this.isLivePlayback=Q.live_playback==="1";this.isUpcoming=!!Q.isUpcoming;if(T=Q.length_seconds)this.lengthSeconds=typeof T==="string"?Number(T):T;this.lengthText=
  4404. Q.lengthText||"";this.mO=Q.mO||"";this.publishedTimeText=Q.publishedTimeText||void 0;if(T=Q.session_data)this.sessionData=Vt(T,"&");this.shortViewCount=Q.short_view_count_text||void 0;this.j=WB(Q);this.title=Q.title||"";this.videoId=Q.docid||Q.video_id||Q.videoId||Q.id||void 0;this.watchUrl=Q.watchUrl||void 0}};
  4405. PQ6=function(T){var Q,k,l=(Q=T.getWatchNextResponse())==null?void 0:(k=Q.contents)==null?void 0:k.twoColumnWatchNextResults,v,L,q,Y,U;T=(v=T.getWatchNextResponse())==null?void 0:(L=v.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:(Y=q.endScreen)==null?void 0:(U=Y.watchNextEndScreenRenderer)==null?void 0:U.results;if(!T){var R,Z;T=l==null?void 0:(R=l.endScreen)==null?void 0:(Z=R.endScreen)==null?void 0:Z.results}return T};
  4406. g.TV=function(T){var Q,k,l;T=g.t((Q=T.getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,Vk);return g.t(T==null?void 0:T.playerBar,H7C)};
  4407. tgg=function(T){this.T=T.playback_progress_0s_url;this.L=T.playback_progress_2s_url;this.S=T.playback_progress_10s_url};
  4408. O7H=function(){if(Qv===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Q){}a:{try{var T=!!self.localStorage}catch(Q){T=!1}if(T&&(T=g.uw(g.$q()+"::yt-player"))){Qv=new xX(T);break a}Qv=void 0}}return Qv};
  4409. g.j7=function(){var T=O7H();if(!T)return{};try{var Q=T.get("yt-player-lv");return JSON.parse(Q||"{}")}catch(k){return{}}};
  4410. g.pOJ=function(T){var Q=O7H();Q&&(T=JSON.stringify(T),Q.set("yt-player-lv",T))};
  4411. g.ka=function(T){return g.j7()[T]||0};
  4412. g.lO=function(T,Q){var k=g.j7();Q!==k[T]&&(Q!==0?k[T]=Q:delete k[T],g.pOJ(k))};
  4413. g.o8=function(T){return g.a(function(Q){return Q.return(g.tF(WEJ(),T))})};
  4414. Lt=function(T,Q,k,l,v,L,q,Y){var U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:return U=g.ka(T),U===4?I.return(4):g.c(I,g.EY(),2);case 2:R=I.T;if(!R)throw g.hF("wiac");if(!Y||q===void 0){I.Ym(3);break}return g.c(I,$A5(Y,q),4);case 4:q=I.T;case 3:return Z=k.lastModified||"0",g.c(I,g.o8(R),5);case 5:return f=I.T,g.z5(I,6),vv++,g.c(I,g.AF(f,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",r5:!0},function(z){if(L!==void 0&&q!==void 0){var w=""+T+"|"+Q.id+"|"+Z+"|"+String(L).padStart(10,
  4415. "0");w=g.bn(z.objectStore("media"),q,w)}else w=g.So.resolve(void 0);var r=JkI(T,Q.bK()),A=JkI(T,!Q.bK()),D={fmts:erH(l),format:k||{}};r=g.bn(z.objectStore("index"),D,r);var K=l.downloadedEndTime===-1;D=K?z.objectStore("index").get(A):g.So.resolve(void 0);var O={fmts:"music",format:{}};z=K&&v&&!Q.bK()?g.bn(z.objectStore("index"),O,A):g.So.resolve(void 0);return g.So.all([z,D,w,r]).then(function(E){E=g.B(E);E.next();E=E.next().value;vv--;var e=g.ka(T);if(e!==4&&K&&v||E!==void 0&&g.FET(E.fmts))e=1,g.lO(T,
  4416. e);return e})}),8);
  4417. case 8:return I.return(I.T);case 6:G=g.by(I);vv--;m=g.ka(T);if(m===4)return I.return(m);g.lO(T,4);throw G;}})};
  4418. g.EKI=function(T){var Q,k;return g.a(function(l){if(l.S==1)return g.c(l,g.EY(),2);if(l.S!=3){Q=l.T;if(!Q)throw g.hF("ri");return g.c(l,g.o8(Q),3)}k=l.T;return l.return(g.AF(k,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(v){var L=IDBKeyRange.bound(T+"|",T+"~");return v.objectStore("index").getAll(L).then(function(q){return q.map(function(Y){return Y?Y.format:{}})})}))})};
  4419. i7I=function(T,Q,k,l,v){var L,q,Y;return g.a(function(U){if(U.S==1)return g.c(U,g.EY(),2);if(U.S!=3){L=U.T;if(!L)throw g.hF("rc");return g.c(U,g.o8(L),3)}q=U.T;Y=g.AF(q,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(R){var Z=""+T+"|"+Q+"|"+k+"|"+String(l).padStart(10,"0");return R.objectStore("media").get(Z)});
  4420. return v?U.return(Y.then(function(R){if(R===void 0)throw Error("No data from indexDb");return yk6(v,R)}).catch(function(R){throw new g.Wy("Error while reading chunk: "+R.name+", "+R.message);
  4421. })):U.return(Y)})};
  4422. g.FET=function(T){return T?T==="music"?!0:T.includes("dlt=-1")||!T.includes("dlt="):!1};
  4423. JkI=function(T,Q){return""+T+"|"+(Q?"v":"a")};
  4424. erH=function(T){var Q={};return TO((Q.dlt=T.downloadedEndTime.toString(),Q.mket=T.maxKnownEndTime.toString(),Q.avbr=T.averageByteRate.toString(),Q))};
  4425. THH=function(T){var Q={},k={};T=g.B(T);for(var l=T.next();!l.done;l=T.next()){var v=l.value,L=v.split("|");v.match(g.VgJ)?(l=Number(L.pop()),isNaN(l)?k[v]="?":(L=L.join("|"),(v=Q[L])?(L=v[v.length-1],l===L.end+1?L.end=l:v.push({start:l,end:l})):Q[L]=[{start:l,end:l}])):k[v]="?"}T=g.B(Object.keys(Q));for(l=T.next();!l.done;l=T.next())l=l.value,k[l]=Q[l].map(function(q){return q.start+"-"+q.end}).join(",");
  4426. return k};
  4427. qY=function(T){g.ox.call(this);this.T=null;this.L=new xh;this.T=null;this.B=new Set;this.crossOrigin=T||""};
  4428. QAf=function(T,Q,k){for(k=g4(T,k);k>=0;){var l=T.levels[k];if(l.isLoaded(MY(l,Q))&&(l=g.Ya(l,Q)))return l;k--}return g.Ya(T.levels[0],Q)};
  4429. kT5=function(T,Q,k){k=g4(T,k);for(var l,v;k>=0;k--)if(l=T.levels[k],v=MY(l,Q),!l.isLoaded(v)){l=T;var L=k,q=L+"-"+v;l.B.has(q)||(l.B.add(q),l.L.enqueue(L,{Wo:L,w0:v}))}jAX(T)};
  4430. jAX=function(T){if(!T.T&&!T.L.isEmpty()){var Q=T.L.remove();T.T=lDy(T,Q)}};
  4431. lDy=function(T,Q){var k=document.createElement("img");T.crossOrigin&&(k.crossOrigin=T.crossOrigin);k.src=T.levels[Q.Wo].IK(Q.w0);k.onload=function(){var l=Q.Wo,v=Q.w0;T.T!==null&&(T.T.onload=null,T.T=null);l=T.levels[l];l.loaded.add(v);jAX(T);var L=l.columns*l.rows;v*=L;l=Math.min(v+L-1,l.nk()-1);v=[v,l];T.publish("l",v[0],v[1])};
  4432. return k};
  4433. g.Uy=function(T,Q,k,l){this.level=T;this.Y=Q;this.loaded=new Set;this.level=T;this.Y=Q;T=k.split("#");this.width=Math.floor(Number(T[0]));this.height=Math.floor(Number(T[1]));this.frameCount=Math.floor(Number(T[2]));this.columns=Math.floor(Number(T[3]));this.rows=Math.floor(Number(T[4]));this.T=Math.floor(Number(T[5]));this.L=T[6];this.signature=T[7];this.videoLength=l};
  4434. MY=function(T,Q){return Math.floor(Q/(T.columns*T.rows))};
  4435. g.Ya=function(T,Q){Q>=T.Bq()&&T.MU();var k=MY(T,Q),l=T.columns*T.rows,v=Q%l;Q=v%T.columns;v=Math.floor(v/T.columns);var L=T.MU()+1-l*k;if(L<T.columns){var q=L;l=1}else q=T.columns,l=L<l?Math.ceil(L/T.columns):T.rows;return{url:T.IK(k),column:Q,columns:q,row:v,rows:l,Z1:T.width*q,rh:T.height*l}};
  4436. R8=function(T,Q,k,l,v){l=l===void 0?!1:l;v=v===void 0?!1:v;qY.call(this,k);this.isLive=l;this.C=!!v;this.levels=this.S(T,Q);this.Y=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
  4437. oNJ=function(T,Q,k){return(T=T.levels[Q])?T.Fd(k):-1};
  4438. g4=function(T,Q){var k=T.Y.get(Q);if(k)return k;k=T.levels.length;for(var l=0;l<k;l++)if(T.levels[l].width>=Q)return T.Y.set(Q,l),l;T.Y.set(Q,k-1);return k-1};
  4439. Zd=function(T,Q,k,l){k=k.split("#");k=[k[1],k[2],0,k[3],k[4],-1,k[0],""].join("#");g.Uy.call(this,T,Q,k,0);this.S=null;this.N=l?2:0};
  4440. ft=function(T,Q,k,l){R8.call(this,T,0,void 0,Q,!(l===void 0||!l));for(T=0;T<this.levels.length;T++)this.levels[T].XN(k)};
  4441. vN5=function(T,Q,k){Q={cpn:Q};T.indexOf("/ibw/")===-1&&(Q.ibw=k?String(k):"1369843");return{url:g.sD(T,Q),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
  4442. g.mR=function(T,Q){g.ox.call(this);var k=this;this.FB=T;this.adaptiveFormats="";this.Ek=this.adQueryId=this.cf=null;this.mS={start:NaN,end:NaN};this.cueRanges=this.jY=null;this.ER=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.u$=void 0;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.sK="";this.QV=!1;this.iD=null;this.m0=this.E4=!1;this.Y=null;this.Rq=this.kh=!1;this.uK=NaN;
  4443. this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.Pp=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.UY=0;this.xE=!1;this.cycToken=null;this.author="";this.BK=!1;this.Ah=0;this.iy=!1;this.KR=null;this.fh=[];this.LX=this.DM=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Tg=this.vn="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=
  4444. this.QR=0;this.RM=this.Jj=this.S=null;this.Sg="";this.loading=!1;this.Fk=this.GT=0;this.Xd=this.pipable=this.nU=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.dO=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.zg=this.isPrivate=this.isListed=this.vk=!1;this.cQ="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.FK=this.hj=this.KY=!1;this.latencyClass="UNKNOWN";this.p9=this.IP=this.hd=this.Uf=
  4445. this.zB=this.IS=this.Et=this.h8=this.enableServerStitchedDai=this.Xj=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Gg=0;this.reloadReason="";this.m5=this.ek=!1;this.keywords={};this.Z8="";this.Y3=0;this.OR=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.uR=null;this.nR=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.f9=this.paygated=!1;this.OU=[];this.xF=!1;this.D=[];this.vl=null;
  4446. this.o6=this.racyCheckOk=!1;this.EV={};this.isProximaLatencyEligible=!1;this.tO=0;this.L=null;this.autonavState=1;this.J8=null;this.shortDescription="";this.qO=this.QO=!1;this.gt=this.h3=this.startSeconds=0;this.kH=this.wE=this.CH=GV;this.hn=this.suggestions=null;this.OE=this.vz=void 0;this.isExternallyHostedPodcast=!1;this.U1=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Zy=void 0;this.K_=[];this.NK=[];this.hlsFormats=this.Wk="";this.Ws=this.O6=this.Lp=this.t6=this.u9=
  4447. this.Z6=this.Yh=null;this.Yz="vvt";this.QE=!1;this.Mo=null;this.Cf="";this.bX=NaN;this.Hf=this.jy=this.XQ=this.A7=this.CR=this.eO=this.xs=this.IT=this.R0=this.bx="";this.s1=null;this.Tl=!1;this.clipStart=0;this.clipEnd=Infinity;this.hC=!1;this.heartbeatToken="";this.BC=this.p5=NaN;this.A9=this.Xm=this.Hl=this.hF=this.ew=!1;this.i5=!0;this.j={};this.captionTracks=[];this.B9=[];this.eF=0;this.uL=[];this.RS=[];this.U2=!1;this.Bs={};this.FU=new g.wt("und",new g.aX("Default","und",!0));this.Q5=0;this.N=
  4448. null;this.NE=[];this.TB=!1;this.qU=this.pG="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.e6=this.ES=this.cM=this.playerResponse=this.dL=this.Dy=this.dV=this.MV=null;this.qq=!1;this.F_=null;this.isInlinePlaybackNoAd=this.NV=this.HM=this.useCobaltWidevine=this.Er=this.B$=!1;this.L9=!0;this.nG=this.VD=NaN;this.defraggedFromSubfragments=this.nP=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.f_=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup=
  4449. this.Yb="";this.Qd=this.p_=this.OW=!1;this.interstitials=[];this.hh=this.LQ=!1;this.v5="";this.allowImaMonetization=!1;this.Mf="";this.iL=!1;this.Dz="";this.VF=[];this.mJ=[];this.lC="";this.tQ=this.C=this.OT=!1;this.wJ="";this.BH=this.PQ=this.xz=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.W5=!1;this.XU=this.Tw=!0;this.errorDetail=this.userGenderAge="";this.Re=this.No=this.getSharePanelCommand=this.removeFromWatchLaterCommand=
  4450. this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.by=this.errorReason=this.errorCode=null;this.jl=!1;this.Wz=[];this.Ig=this.xm=this.d5=this.Kz=this.sW=0;this.fetchType=null;this.Q_=!0;this.transitionEndpointAtEndOfStream=void 0;this.UR=this.N4=-1;this.dJ=this.Hn=!1;this.YP=null;this.z9="";this.watchUrl=null;this.O2=[];this.visibleOnLoadKeys=[];this.xj=[];this.inlineMetricEnabled=this.dC=!1;this.bR=this.embedsRctn=this.embedsRct="";this.o$=NaN;this.authorizedFormats=
  4451. [];this.ov=(0,g.XY)();this.Bt=this.Qm=0;this.Vl=null;this.dE=this.cg=!1;this.hQ=0;this.Rx={};this.H_=!1;this.OG=this.FB.experiments.Wd("html5_use_triple_equals");this.Sq=g.jj(this.FB.experiments,"html5_gapless_loop_seek_offset_in_milli");this.dn={setData:function(l){k.setData(l)},
  4452. MC:function(){k.MC()},
  4453. Tj:function(l){k.Tj(l)}};
  4454. this.Hn=this.V("web_new_autonav_countdown");this.dJ=this.V("web_new_big_thumbnail_endscreen");this.H_=this.FB.experiments.Wd("html5_audio_gain_null_coalescing");this.FB.dJ&&(this.Bd=this.FB.dJ);this.setData(Q);this.Ak=new ud;g.P(this,this.Ak)};
  4455. g.sy=function(T,Q,k){Q&&Q.cpn&&g.rB(new g.Wy("CPN provided in VideoData update",{mkB:Q.cpn,Bl:T.clientPlaybackNonce,ZS9:k}));k?(LY(Q),T.setData(Q),I8(T)&&T.MC()):(Q=Q||{},LZ5(T,Q),hL(T,Q),qgt(T,Q),T.publish("dataupdated"))};
  4456. qgt=function(T,Q){T.fflags=o1(T.fflags,Q.fflags);var k=Q.iv_invideo_url;k&&(T.sK=pF(k));T.QV=jG(T.QV,Q.iv_ads_only);if(k=Q.cta_conversion_urls)T.MH=k;T.isPharma=jG(T.isPharma,Q.is_pharma);T.author=o1(T.author,Q.author);T.vn=gN6(Q.ttsurl)||T.vn;T.iy=jG(T.iy,Q.cc_asr);T.Tg=o1(T.Tg,Q.channel_path);if(k=Q.profile_picture)T.profilePicture=o1(T.profilePicture,k);T.videoCountText=o1(T.videoCountText,Q.video_count_text);T.autonavState=kq(T.autonavState,Q.autonav_state,Mwg);T.clientPlaybackNonce=o1(T.clientPlaybackNonce,
  4457. Q.cpn);T.subscribed=jG(T.subscribed,Q.subscribed);T.rawViewCount=lu(T.rawViewCount,Q.view_count);T.shortViewCount=o1(T.shortViewCount,Q.short_view_count_text);T.publishedTimeText=o1(T.publishedTimeText||"",Q.publishedTimeText);T.lengthText=o1(T.lengthText||"",Q.lengthText);T.mO=o1(T.mO||"",Q.mO);T.o9=o1(T.o9||"",Q.o9);T.title=o1(T.title,Q.title);T.subtitle=o1(T.subtitle,Q.subtitle);T.expandedTitle=o1(T.expandedTitle,Q.expanded_title);T.expandedSubtitle=o1(T.expandedSubtitle,Q.expanded_subtitle);T.ypcPreview=
  4458. o1(T.ypcPreview,Q.ypc_preview);T.y3=o1(T.y3,Q.ypc_origin);T.QE=jG(T.QE,Q.ypc_is_premiere_trailer);T.wJ=o1(T.wJ,Q.ypc_clickwrap_message);T.paygated=jG(T.paygated,Q.paygated);T.Tl=jG(T.Tl,Q.requires_purchase);T.showShareButton=!jG(!T.showShareButton,Q.ss);T.Tw=jG(T.Tw,Q.showwatchlater);T.XU=jG(T.XU,Q.shownotifybutton);T.W5=jG(T.W5,Q.copy_share);if(k=Q.el)T.eventLabel=k;if(k=Q.keywords)T.keywords=YgC(k.split(","));if(k=Q.rvs)T.suggestions=jS(k).map(function(l){return l.playlist||l.list||l.api?new yk(T.FB,
  4459. l):new iF(T.FB,l)});
  4460. T.contentCheckOk=jG(T.contentCheckOk,Q.cco);T.racyCheckOk=jG(T.racyCheckOk,Q.rco);T.isLivingRoomDeeplink=jG(T.isLivingRoomDeeplink,Q.is_living_room_deeplink);T.oauthToken=o1(T.oauthToken,Q.oauth_token);T.Z8=o1(T.Z8,Q.kpt);T.visitorData=o1(T.visitorData,Q.visitor_data);if(k=Q.session_data)T.sessionData=Vt(k,"&");T.Bp=o1(T.Bp,Q.endscreen_ad_tracking_data);T.DT=jG(T.DT,Q.wait_for_vast_info_cards_xml);T.XZ=jG(T.XZ,Q.suppress_creator_endscreen);T.Lo=jG(T.Lo,Q.is_trueview_action);T.Ur=o1(T.Ur,Q.tracking_list);
  4461. Uy5(T,Q)};
  4462. hL=function(T,Q){var k=Q.raw_watch_next_response;if(!k){var l=Q.watch_next_response;l&&(k=JSON.parse(l))}if(k){T.e6=k;var v=T.e6.playerCueRangeSet;v&&g.S7(T,v);var L=T.e6.playerOverlays;if(L){var q=L.playerOverlayRenderer;if(q){var Y=q.autonavToggle;Y&&(T.autoplaySwitchButtonRenderer=g.t(Y,RDC),T.V("web_player_autonav_use_server_provided_state")&&Ct(T)&&(T.autonavState=T.autoplaySwitchButtonRenderer.enabled?2:1));var U=q.videoDetails;if(U){var R=U.embeddedPlayerOverlayVideoDetailsRenderer;var Z=U.playerOverlayVideoDetailsRenderer;
  4463. Z&&(Z.title&&(Q.title=g.Rx(Z.title)),Z.subtitle&&(Q.subtitle=g.Rx(Z.subtitle)))}g.Ln(T.FB)&&(T.Tw=!!q.addToMenu);Z1C(T,q.shareButton);q.startPosition&&q.endPosition&&(T.progressBarStartPosition=q.startPosition,T.progressBarEndPosition=q.endPosition);var f=q.gatedActionsOverlayRenderer;f&&(T.BZ=g.t(f,fDt));var G,m,I,z=g.t((G=T.getWatchNextResponse())==null?void 0:(m=G.playerOverlays)==null?void 0:(I=m.playerOverlayRenderer)==null?void 0:I.infoPanel,GTX);if(z){T.o$=Number(z==null?void 0:z.durationMs)||
  4464. NaN;if(z==null?0:z.infoPanelOverviewViewModel)T.iK=z==null?void 0:z.infoPanelOverviewViewModel;if(z==null?0:z.infoPanelDetailsViewModel)T.iS=z==null?void 0:z.infoPanelDetailsViewModel}T.showSeekingControls=!!q.showSeekingControls}}var w,r,A=(w=T.getWatchNextResponse())==null?void 0:(r=w.contents)==null?void 0:r.twoColumnWatchNextResults;if(A){var D=A.desktopOverlay&&g.t(A.desktopOverlay,myu);D&&(D.suppressShareButton&&(T.showShareButton=!1),D.suppressWatchLaterButton&&(T.Tw=!1))}R&&IDg(T,Q,R);var K=
  4465. lu(0,Q.autoplay_count),O=T.getWatchNextResponse(),E,e=(E=O.contents)==null?void 0:E.twoColumnWatchNextResults,vT,f5,qJ,g6=(vT=O.playerOverlays)==null?void 0:(f5=vT.playerOverlayRenderer)==null?void 0:(qJ=f5.autoplay)==null?void 0:qJ.playerOverlayAutoplayRenderer,QC=PQ6(T),A5,Et=(A5=O.contents)==null?void 0:A5.singleColumnWatchNextResults;if(Et){var QJ;if(((QJ=Et.autoplay)==null?0:QJ.autoplay)&&!Et.playlist){var I_=Et.autoplay.autoplay.sets,g$$={},cT=new iF(T.G()),vg=null,KW;if(I_){for(var Wm=g.B(I_),
  4466. LJ=Wm.next();!LJ.done;LJ=Wm.next()){var b=LJ.value.autoplayVideoRenderer;if(b&&b.compactVideoRenderer){vg=b.compactVideoRenderer;break}}if(KW=I_[0].autoplayVideo){var Hg=KW.clickTrackingParams;Hg&&(g$$.itct=Hg);g$$.autonav="1";g$$.playnext=String(K)}}else g$$.feature="related-auto";var D1=g.t(KW,g.Bv);if(vg){cT.videoId=vg.videoId;var kb=vg.shortBylineText;kb&&(cT.author=g.Rx(kb));var w$=vg.title;w$&&(cT.title=g.Rx(w$))}else D1!=null&&D1.videoId&&(cT.videoId=D1.videoId);cT.y5=g$$;T.suggestions=[];
  4467. T.hn=cT}}if(QC){for(var X=[],jf=g.B(QC),cg=jf.next();!cg.done;cg=jf.next()){var qn=cg.value,tT=void 0,ef=null;if(qn.endScreenVideoRenderer){var kE=qn.endScreenVideoRenderer,Qw=kE.title;ef=new iF(T.G());ef.videoId=kE.videoId;ef.lengthSeconds=kE.lengthInSeconds||0;var tV=kE.publishedTimeText;tV&&(ef.publishedTimeText=g.Rx(tV));var d=kE.shortBylineText;d&&(ef.author=g.Rx(d));var C=kE.shortViewCountText;C&&(ef.shortViewCount=g.Rx(C));if(Qw){ef.title=g.Rx(Qw);var N=Qw.accessibility;if(N){var u=N.accessibilityData;
  4468. u&&u.label&&(ef.ariaLabel=u.label)}}var H=kE.navigationEndpoint;if(H){tT=H.clickTrackingParams;var Ut=g.t(H,g.Bv),W=g.t(H,g.uD);Ut?ef.rN=Ut:W!=null&&(ef.watchUrl=W.url)}var V=kE.thumbnailOverlays;if(V)for(var n=g.B(V),uy=n.next();!uy.done;uy=n.next()){var p5=uy.value.thumbnailOverlayTimeStatusRenderer;if(p5)if(p5.style==="LIVE"){ef.isLivePlayback=!0;break}else if(p5.style==="UPCOMING"){ef.isUpcoming=!0;break}}ef.j=$L(kE.thumbnail)}else if(qn.endScreenPlaylistRenderer){var L5=qn.endScreenPlaylistRenderer,
  4469. UA=L5.navigationEndpoint;if(!UA)continue;var DH=g.t(UA,g.Bv);if(!DH)continue;var w6=DH.videoId;ef=new yk(T.G());ef.playlistId=L5.playlistId;ef.playlistLength=Number(L5.videoCount)||0;ef.T=w6||null;ef.videoId=w6;var k1=L5.title;k1&&(ef.title=g.Rx(k1));var Xd=L5.shortBylineText;Xd&&(ef.author=g.Rx(Xd));tT=UA.clickTrackingParams;ef.j=$L(L5.thumbnail)}ef&&(tT&&(ef.sessionData={itct:tT}),X.push(ef))}T.suggestions=X}if(g6){T.Q_=!!g6.preferImmediateRedirect;T.Hn=T.Hn||!!g6.webShowNewAutonavCountdown;T.dJ=
  4470. T.dJ||!!g6.webShowBigThumbnailEndscreen;if(T.Hn||T.dJ){var xE=e||null,NJ=new iF(T.G());NJ.videoId=g6.videoId;var z8=g6.videoTitle;if(z8){NJ.title=g.Rx(z8);var r6=z8.accessibility;if(r6){var a_=r6.accessibilityData;a_&&a_.label&&(NJ.ariaLabel=a_.label)}}var d$=g6.byline;d$&&(NJ.author=g.Rx(d$));var qM=g6.publishedTimeText;qM&&(NJ.publishedTimeText=g.Rx(qM));var Np=g6.shortViewCountText;Np&&(NJ.shortViewCount=g.Rx(Np));var jY=g6.thumbnailOverlays;if(jY)for(var lB=g.B(jY),$E=lB.next();!$E.done;$E=lB.next()){var uW=
  4471. $E.value.thumbnailOverlayTimeStatusRenderer;if(uW)if(uW.style==="LIVE"){NJ.isLivePlayback=!0;break}else if(uW.style==="UPCOMING"){NJ.isUpcoming=!0;break}else if(uW.style==="DEFAULT"&&uW.text){NJ.lengthText=g.Rx(uW.text);var Ai=uW.text.accessibility;if(Ai){var yP=Ai.accessibilityData;yP&&yP.label&&(NJ.mO=yP.label||"")}break}}NJ.j=$L(g6.background);var Ic=g6.nextButton;if(Ic){var HG=Ic.buttonRenderer;if(HG){var kA=HG.navigationEndpoint;if(kA){var lV=g.t(kA,g.Bv);lV&&(NJ.rN=lV)}}}if(g6.topBadges){var q_=
  4472. g6.topBadges[0];if(q_){var X3=g.t(q_,hDH);X3&&X3.style==="BADGE_STYLE_TYPE_PREMIUM"&&(NJ.MDq=!0)}}var n3=g6.alternativeTitle;n3&&(NJ.o9=g.Rx(n3));var iS={autonav:"1",playnext:String(K)};NJ.playlistId&&(iS.autoplay="1");if(xE){var K3,l5,hP,tP,BS=(K3=xE.autoplay)==null?void 0:(l5=K3.autoplay)==null?void 0:(hP=l5.sets)==null?void 0:(tP=hP[0])==null?void 0:tP.autoplayVideo;if(BS){var oy=BS.clickTrackingParams;oy&&(iS.itct=oy);var zd=g.t(BS,g.Bv);zd&&(NJ.J8=zd)}}else if(g6){var vW,L3,qW,gg=(vW=g6.nextButton)==
  4473. null?void 0:(L3=vW.buttonRenderer)==null?void 0:(qW=L3.navigationEndpoint)==null?void 0:qW.clickTrackingParams;gg&&(iS.itct=gg)}iS.itct||(iS.feature="related-auto");NJ.y5=iS;T.suggestions||(T.suggestions=[]);T.hn=NJ}g6.countDownSecs!=null&&(T.N4=g6.countDownSecs*1E3);g6.countDownSecsForFullscreen!=null&&(T.UR=g6.countDownSecsForFullscreen>=0?g6.countDownSecsForFullscreen*1E3:-1);T.V("web_autonav_color_transition")&&g6.watchToWatchTransitionRenderer&&(T.watchToWatchTransitionRenderer=g.t(g6.watchToWatchTransitionRenderer,
  4474. sAH))}var XV=PQ6(T);if(XV){var gJ,MW,mh,Id=XV==null?void 0:(gJ=XV[0])==null?void 0:(MW=gJ.endScreenVideoRenderer)==null?void 0:(mh=MW.navigationEndpoint)==null?void 0:mh.clickTrackingParams,Dt=g.zV(T);Id&&Dt&&(Dt.sessionData={itct:Id})}T.e6.currentVideoThumbnail&&(T.j=$L(T.e6.currentVideoThumbnail));var PW,HW,t7,v4,aj,Sl=(PW=T.e6)==null?void 0:(HW=PW.contents)==null?void 0:(t7=HW.twoColumnWatchNextResults)==null?void 0:(v4=t7.results)==null?void 0:(aj=v4.results)==null?void 0:aj.contents;if(Sl&&Sl[1]){var up,
  4475. LL,O6,wK,wL=(up=Sl[1].videoSecondaryInfoRenderer)==null?void 0:(LL=up.owner)==null?void 0:(O6=LL.videoOwnerRenderer)==null?void 0:(wK=O6.thumbnail)==null?void 0:wK.thumbnails;wL&&wL.length&&(T.profilePicture=wL[wL.length-1].url)}var O4=LY(Q),qF,ho=(qF=T.getWatchNextResponse())==null?void 0:qF.onResponseReceivedEndpoints;if(ho)for(var MF=g.B(ho),nH=MF.next();!nH.done;nH=MF.next()){var sB=nH.value;g.t(sB,XC)&&(T.xw=g.t(sB,XC));var Lj=g.t(sB,Sgb),O_=void 0;if((O_=Lj)==null?0:O_.entityKeys)T.O2=Lj.entityKeys||
  4476. [],Lj.visibleOnLoadKeys&&(T.visibleOnLoadKeys=Lj.visibleOnLoadKeys)}if(T.V("web_key_moments_markers")){var gs=g.w4.getState().entities,UJ=g.y8("visibility_override","markersVisibilityOverrideEntity");var pe=V8(gs,"markersVisibilityOverrideEntity",UJ);T.K_=(pe==null?void 0:pe.videoId)===(T.videoId||O4)&&(pe==null?0:pe.visibilityOverrideMarkersKey)?pe.visibilityOverrideMarkersKey:T.visibleOnLoadKeys;T.visibleOnLoadKeys=[].concat(g.ZH(T.K_))}}};
  4477. Ct=function(T){var Q;return((Q=T.autoplaySwitchButtonRenderer)==null?void 0:Q.enabled)!==void 0};
  4478. d4=function(T){return!!(T.L&&T.L.videoInfos&&T.L.videoInfos.length)};
  4479. g.Dd=function(T){var Q=T.C;T.V("html5_gapless_unlimit_format_selection")&&NY(T)&&(Q=!1);var k=!!T.T&&T.T.Cc,l=T.FB,v=T.vI(),L=AL(T),q=T.p_,Y=Q,U=T.isOtf();Q=T.jF();var R=T.zg,Z=T.getUserAudio51Preference(),f=bO(T),G=r4(T),m=new Hdy(l);if(l.J3()||l.V("html5_logging_format_selection"))m.S=!0;m.Jj=L;m.p_=q&&l.j;m.i9=Z;g.tH("windows nt 5.1")&&!g.Rn&&(m.Ql=!0);if(L=v)L=g.dj(l)?F1t(l):!1;L&&(m.z9=!0);Y&&(m.Ql=!0,m.Z8=!0);U&&!l.V("html5_otf_prefer_vp9")&&(m.Ql=!0);l.playerStyle==="picasaweb"&&(U&&(m.Ql=
  4480. !1),m.qO=!1);R&&(m.Ql=!0);Wr(l.N,$g.CHANNELS)&&(l.V("html5_enable_ac3")&&(m.Y=!0),l.V("html5_enable_eac3")&&(m.N=!0),l.V("html5_enable_ac3_gapless")&&(m.e6=!0));l.V("html5_block_8k_hfr")&&(m.K_=!0);m.B=g.jj(l.experiments,"html5_max_selectable_quality_ordinal");m.C=g.jj(l.experiments,"html5_min_selectable_quality_ordinal");ic&&(m.DP=480);if(k||v)m.qO=!1;m.f_=!1;m.disableAv1=f;k=lc(l,m.T,void 0,m.disableAv1);k>0&&k<2160&&(vM()||l.V("html5_format_hybridization"))&&(m.T.supportsChangeType=+vM(),m.ID=
  4481. k);k>=2160&&(m.xm=!0);opf()&&!l.V("disable_av1_setting")&&(m.T.serveVp9OverAv1IfHigherRes=0,m.t6=!1);m.jF=Q;m.sK=g.$n||TL()&&!Q?!1:!0;m.j=l.V("html5_format_hybridization");m.QR=l.V("html5_disable_encrypted_vp9_live_non_2k_4k");m.h3=G;cv(T)&&(m.Fk=T.V("html5_prefer_language_over_codec"));WD()&&T.playerResponse&&T.playerResponse.playerConfig&&T.playerResponse.playerConfig.webPlayerConfig&&T.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(m.Y=!0,m.N=!0);T.C&&T.isAd()&&(T.vz&&
  4482. (m.D=T.vz),T.OE&&(m.L=T.OE));m.Bd=T.isLivePlayback&&T.bl()&&T.FB.V("html5_drm_live_audio_51");m.Tg=T.HM;m.d5=!cv(T);return T.YP=m};
  4483. bO=function(T){return T.FB.V("html5_disable_av1")||T.V("html5_gapless_shorts_disable_av1")&&NY(T)?!0:!1};
  4484. C1T=function(T){dS("drm_pb_s",void 0,T.z9);T.Jj||T.T&&Pr(T.T);var Q={};T.T&&(Q=hFC(T.Ak,g.Dd(T),T.FB.N,T.T,function(k){return T.publish("ctmp","fmtflt",k)},!0,new Set));
  4485. Q=new G6(Q,T.FB,T.Er,T.useCobaltWidevine?WD()?a8(T):!1:!1,function(k,l){T.T9(k,l)});
  4486. g.P(T,Q);T.Xm=!1;T.loading=!0;Wl5(Q,function(k){dS("drm_pb_f",void 0,T.z9);for(var l=g.B(k),v=l.next();!v.done;v=l.next())switch(v=v.value,v.flavor){case "fairplay":v.Jj=T.Jj;v.Ps=T.Ps;v.Gt=T.Gt;break;case "widevine":v.RM=T.RM}T.NE=k;if(T.NE.length>0&&(T.N=T.NE[0],T.FB.J3())){k={};l=g.B(Object.entries(T.N.T));for(v=l.next();!v.done;v=l.next()){var L=g.B(v.value);v=L.next().value;L=L.next().value;var q="unk";(v=v.match(/(.*)codecs="(.*)"/))&&(q=v[2]);k[q]=L}T.T9("drmProbe",k)}T.MC()})};
  4487. BHg=function(T,Q){if(Q.length===0||uO(T))return null;T.FB.N.L&&(Qa=!0);var k=T.jY;var l=T.lengthSeconds,v=T.isLivePlayback,L=T.KY,q=T.FB,Y=XM5(Q);if(v||L){q=q.experiments;l=new P9("",q,!0);l.S=!L;l.Cc=!0;l.isManifestless=!0;l.isLive=!L;l.KY=L;Q=g.B(Q);for(v=Q.next();!v.done;v=Q.next()){var U=v.value;v=OE(U,k);Y=Vp(U);Y=W9(Y.rI||U.url||"",Y.Fq,Y.s);var R=Y.get("id");R&&R.includes("%7E")&&(l.D=!0);var Z=void 0;R=(Z=q)==null?void 0:Z.Wd("html5_max_known_end_time_rebase");Z=Number(U.targetDurationSec||
  4488. 5);U=Number(U.maxDvrDurationSec||14400);var f=Number(Y.get("mindsq")||Y.get("min_sq")||"0"),G=Number(Y.get("maxdsq")||Y.get("max_sq")||"0")||Infinity;l.sW=l.sW||f;l.Kz=l.Kz||G;var m=!Wj(v.mimeType);Y&&ny(l,new sE(Y,v,{hW:Z,ly:m,Bf:U,sW:f,Kz:G,P$:300,KY:L,Ic:R}))}k=l}else if(Y==="FORMAT_STREAM_TYPE_OTF"){l=l===void 0?0:l;L=new P9("",q.experiments,!1);L.duration=l||0;q=g.B(Q);for(l=q.next();!l.done;l=q.next())l=l.value,Q=OE(l,k,L.duration),v=Vp(l),(v=W9(v.rI||l.url||"",v.Fq,v.s))&&(Q.streamType==="FORMAT_STREAM_TYPE_OTF"?
  4489. ny(L,new Sq(v,Q,"sq/0")):ny(L,new Dj(v,Q,Qb(l.initRange),Qb(l.indexRange))));L.isOtf=!0;k=L}else{l=l===void 0?0:l;L=new P9("",q.experiments,!1);L.duration=l||0;q=g.B(Q);for(l=q.next();!l.done;l=q.next())Y=l.value,l=OE(Y,k,L.duration),Q=Qb(Y.initRange),v=Qb(Y.indexRange),R=Vp(Y),(Y=W9(R.rI||Y.url||"",R.Fq,R.s))&&ny(L,new Dj(Y,l,Q,v));k=L}L=T.isLivePlayback&&!T.KY&&!T.hj&&!T.isPremiere;T.V("html5_live_head_playable")&&(!nt(T)&&L&&T.T9("missingLiveHeadPlayable",{}),T.FB.z9==="yt"&&(k.sK=!0));return k};
  4490. uO=function(T){return WD()?!a8(T):JH()?!(!T.Jj||!T.V("html5_enable_safari_fairplay")&&BL()):!1};
  4491. a8=function(T){return T.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
  4492. g.S7=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())if(k=k.value,k.cueRangeSetIdentifier){var l=void 0;T.ER.set(k.cueRangeSetIdentifier,(l=k.playerCueRanges)!=null?l:[])}};
  4493. Kt=function(T){return!(!T.T||!T.T.isManifestless)};
  4494. xa=function(T){return T.OG?T.isLowLatencyLiveStream&&T.T!=null&&FG(T.T)>=5:T.isLowLatencyLiveStream&&T.T!=void 0&&FG(T.T)>=5};
  4495. zDT=function(T){return WD()&&a8(T)?!1:uO(T)&&(g.ZX(T.FB)?!T.isLivePlayback:T.hlsvp)||!BL()||T.DM?!0:!1};
  4496. dyJ=function(T){T.loading=!0;T.Hl=!1;if(XhX(T))g.EKI(T.videoId).then(function(l){whf(T,l)}).then(function(){T.MC()});
  4497. else{t0(T.DP)||g.rB(new g.Wy("DASH MPD Origin invalid: ",T.DP));var Q=T.DP,k=g.jj(T.FB.experiments,"dash_manifest_version")||4;Q=g.sD(Q,{mpd_version:k});T.isLowLatencyLiveStream&&T.latencyClass!=="NORMAL"||(Q=g.sD(Q,{pacing:0}));D3H(Q,T.FB.experiments,T.isLivePlayback).then(function(l){T.wd()||(Pv(T,l,!0),dS("mrc",void 0,T.z9),T.MC())},function(l){T.wd()||(T.loading=!1,T.publish("dataloaderror",new g.ZK("manifest.net.retryexhausted",{backend:"manifest",
  4498. rc:l.status},1)))});
  4499. dS("mrs",void 0,T.z9)}};
  4500. whf=function(T,Q){var k=Q.map(function(U){return U.itag}),l;
  4501. if((l=T.playerResponse)!=null&&l.streamingData){l=[];if(T.V("html5_offline_always_use_local_formats"))for(Q=g.B(Q),k=Q.next();!k.done;k=Q.next())k=Object.assign({},k.value),k.signatureCipher="",l.push(k);else for(var v=g.B(T.playerResponse.streamingData.adaptiveFormats),L=v.next(),q={};!L.done;q={i8:void 0},L=v.next())if(q.i8=L.value,T.V("html5_fix_multi_audio_offline_playback")){L=g.B(Q);for(var Y=L.next();!Y.done;Y=L.next())Y=Y.value,Y.itag===q.i8.itag&&Y.xtags===q.i8.xtags&&(q.i8=Object.assign({},
  4502. q.i8),q.i8.url=Q.find(function(U){return function(R){return R.itag===U.i8.itag}}(q)).url,q.i8.signatureCipher="",l.push(q.i8))}else k.includes(q.i8.itag)&&(q.i8=Object.assign({},q.i8),q.i8.url=Q.find(function(U){return function(R){return R.itag===U.i8.itag}}(q)).url,q.i8.signatureCipher="",l.push(q.i8));
  4503. l.length<2&&T.T9("offmlf",{len:l.length});l=BHg(T,l);AL(T)&&Kl5(l,!1);Pv(T,l);T.T9("dlr",{})}else T.T9("offsdm",{cotn:T.ES?T.ES.cotn:"0",cpn:T.clientPlaybackNonce})};
  4504. NHI=function(T){var Q;return!((Q=T.FB.getWebPlayerContextConfig())==null||!Q.enableProximaLowLatency)};
  4505. Hv=function(T){if(!T.isProximaLatencyEligible)return 0;var Q=I3();return NHI(T)?2:Q===1?1:T.V("html5_enable_proxima")?2:0};
  4506. Pv=function(T,Q,k){k=k===void 0?!1:k;T.X0=void 0;T.T=Q;g.P(T,Q);Q.sW=T.sW;Q.Kz=T.Kz;Q.xm=T.xm;Q.d5=T.d5;Q.Ig=T.Ig;T.Sf&&(Q.j=new Wt(T.Sf));(T.vI()||g.tL(T))&&T.D.push("webgl");T.T.isLive||(T.isLivePlayback=!1);var l=Q.sourceUrl.split("/");if(T.OG?l.indexOf("manifest_duration")!==-1:l.indexOf("manifest_duration")!=-1)T.uR=Number(l[l.indexOf("manifest_duration")+1]);if(Q.S||Q.isManifestless)Q.subscribe("clienttemp",T.T9,T),k?Q.subscribe("refresh",T.uO,T):Q.subscribe("cuepointsadded",T.a6,T);Pr(Q)?T.Xm=
  4507. !0:In=void 0;T.hj&&(Q.Y=T.hj,Q.isLive=!0,T.isLivePlayback=!0);Q.isPremiere=T.isPremiere;Q.isLiveHeadPlayable=T.isLiveHeadPlayable};
  4508. ACf=function(T,Q){var k=Q||zDT(T)||T.isExternallyHostedPodcast;if(!T.T||k)return T.T9("skipDash",{dm:!!T.T,air:Q,dd:T.DM,mss:BL(),"3pp":T.isExternallyHostedPodcast}),bC();AL(T)&&Kl5(T.T,T.isLivePlayback);return rV().then(function(){return SPu(T.Ak,g.Dd(T),T.FB.N,T.T,T.N,function(l){return T.publish("ctmp","fmtflt",l)},T.mJ,cv(T)&&T.V("html5_enable_server_format_filter")).then(function(l){T.Tj(l);
  4509. T.Ak.T=null;/^av/.test(T.clientPlaybackNonce)&&T.YP&&T.T9("av1",T.YP.T)})})};
  4510. rCX=function(T,Q){if(Q&&T.hlsvp)return bC();if(T.hlsFormats){Q=Oy(T.hlsFormats);var k;if(((k=T.YP)==null?0:k.S)&&Q){k=[];for(var l=g.B(Q),v=l.next();!v.done;v=l.next())k.push(v.value.itag);T.T9("hlsfmt",{itags:k.join(".")})}T.Yh=Mgu(T.FB,Q);T.Yh&&b15(T,T.Yh);k=T.clientPlaybackNonce;var L,q,Y,U;return fwC(T.FB,T.isAd(),Q,(U=(L=T.playerResponse)==null?void 0:(q=L.captions)==null?void 0:(Y=q.playerCaptionsRenderer)==null?void 0:Y.baseUrl)!=null?U:null,T.Fk,k,function(R){return T.publish("ctmp","hlsflt",
  4511. R)}).then(function(R){for(var Z=0,f=[],G=g.B(R),m=G.next();!m.done;m=G.next()){m=m.value;
  4512. var I=void 0;f.push((I=m.getInfo())==null?void 0:I.itag);var z=I=void 0;((I=m.getInfo())==null?void 0:(z=I.audio)==null?void 0:z.numChannels)>Z&&(Z=m.getInfo().audio.numChannels)}Z>2&&T.T9("hlschl",{mn:Z});var w;((w=T.YP)==null?0:w.S)&&T.T9("hlsfmtaf",{itags:f.join(".")});var r;if(T.V("html5_enable_vp9_fairplay")&&((r=T.N)==null?0:Ym(r)))for(T.T9("drm",{sbdlfbk:1}),Z=g.B(T.NE),f=Z.next();!f.done;f=Z.next())if(f=f.value,Mx(f)){T.N=f;break}pt(T,R)})}return bC()};
  4513. cCX=function(T){if(T.isExternallyHostedPodcast&&T.Wk){var Q=Oy(T.Wk);if(!Q[0])return bC();T.mKH=Q[0];return Iwy(T.FB,Q[0]).then(function(k){pt(T,k)})}return T.U1&&T.m5?mAX(T.FB,T.isAd(),T.U1).then(function(k){pt(T,k)}):bC()};
  4514. aDf=function(T){if(T.isExternallyHostedPodcast)return bC();var Q=Oy(T.Wk,T.Sg);if(T.hlsvp){var k=vN5(T.hlsvp,T.clientPlaybackNonce,T.Fk);Q.push(k)}return Gb5(T.FB,T.isAd(),Q,Dy5(T)).then(function(l){pt(T,l)})};
  4515. pt=function(T,Q){T.t6=Q;T.Tj(new a3(g.IQ(T.t6,function(k){return k.getInfo()})))};
  4516. Dy5=function(T){var Q={cpn:T.clientPlaybackNonce,c:T.FB.T.c,cver:T.FB.T.cver};T.f5&&(Q.ptk=T.f5,Q.oid=T.zX,Q.ptchn=T.y_,Q.pltype=T.qx,T.K5&&(Q.m=T.K5));return Q};
  4517. g.Wv=function(T){return uO(T)&&T.Jj?(T={},T.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",T):T.S&&T.S.jY||null};
  4518. uu5=function(T){var Q=$a(T);return Q&&Q.text?g.Rx(Q.text):T.paidContentOverlayText};
  4519. nNb=function(T){var Q=$a(T);return Q&&Q.durationMs?aT(Q.durationMs):T.paidContentOverlayDurationMs};
  4520. $a=function(T){var Q,k,l;return T.playerResponse&&T.playerResponse.paidContentOverlay&&T.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.t((Q=T.e6)==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.playerDisclosure,KZt)||null};
  4521. JL=function(T){var Q="";if(T.cQ)return T.cQ;T.isLivePlayback&&(Q=T.allowLiveDvr?"dvr":T.isPremiere?"lp":T.hj?"window":"live");T.KY&&(Q="post");return Q};
  4522. g.e7=function(T,Q){return typeof T.keywords[Q]!=="string"?null:T.keywords[Q]};
  4523. xyI=function(T){return!!T.E6||!!T.JA||!!T.aS||!!T.Mv||T.f9};
  4524. g.FC=function(T){return!!(T.DP||T.Wk||T.U1||T.hlsvp||T.Wm())};
  4525. I8=function(T){if(T.V("html5_onesie")&&T.errorCode)return!1;var Q=g.CW(T.D,"ypc");T.ypcPreview&&(Q=!1);return T.Hk()&&!T.loading&&(g.FC(T)||g.CW(T.D,"heartbeat")||Q)};
  4526. Oy=function(T,Q){T=jS(T);var k={};if(Q){Q=g.B(Q.split(","));for(var l=Q.next();!l.done;l=Q.next())(l=l.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(k[l[1]]={width:l[2],height:l[3]})}Q=g.B(T);for(l=Q.next();!l.done;l=Q.next()){l=l.value;var v=k[l.itag];v&&(l.width=v.width,l.height=v.height)}return T};
  4527. Z1C=function(T,Q){T.showShareButton=!!Q;var k,l,v=((k=g.t(Q,g.jw))==null?void 0:k.navigationEndpoint)||((l=g.t(Q,g.jw))==null?void 0:l.command);v&&(T.W5=!!g.t(v,P1y))};
  4528. LZ5=function(T,Q){var k=Q.raw_embedded_player_response;if(!k){var l=Q.embedded_player_response;l&&(k=JSON.parse(l))}k&&(T.MV=k);if(T.MV){T.embeddedPlayerConfig=T.MV.embeddedPlayerConfig||null;if(k=T.MV.videoFlags)k.playableInEmbed&&(T.allowEmbed=!0),k.isPrivate&&(T.isPrivate=!0),k.userDisplayName&&(Q.user_display_name=k.userDisplayName),k.userDisplayImage&&(Q.user_display_image=k.userDisplayImage);if(k=T.MV.embedPreview){k=k.thumbnailPreviewRenderer;xA5(T,k.controlBgHtml);if(l=k.defaultThumbnail)T.j=
  4529. $L(l);T.V("embeds_web_enable_search_button")&&k.searchButton&&(l=g.t(k.searchButton,g.jw))&&(T.h0d=g.t(l.navigationEndpoint,g.Ey));(l=g.t(k==null?void 0:k.videoDetails,H1I))&&IDg(T,Q,l);l=g.t(k==null?void 0:k.videoDetails,twu);T.Tw=!!k.addToWatchLaterButton;Z1C(T,k.shareButton);if(l==null?0:l.musicVideoType)T.musicVideoType=l.musicVideoType;var v,L,q,Y,U;if(l=g.t((v=T.getEmbeddedPlayerResponse())==null?void 0:(L=v.embedPreview)==null?void 0:(q=L.thumbnailPreviewRenderer)==null?void 0:(Y=q.playButton)==
  4530. null?void 0:(U=Y.buttonRenderer)==null?void 0:U.navigationEndpoint,g.Bv))BO6(T,l),T.videoId=l.videoId||T.videoId;k.videoDurationSeconds&&(T.lengthSeconds=aT(k.videoDurationSeconds));k.webPlayerActionsPorting&&KEg(T,k.webPlayerActionsPorting);if(v=g.t(k==null?void 0:k.playlist,O15)){T.xF=!0;L=[];q=Number(v.currentIndex);if(v.contents)for(Y=0,U=v.contents.length;Y<U;Y++)if(k=v.contents[Y].playlistPanelVideoRenderer){l=k.shortBylineText?g.Rx(k.shortBylineText):"";var R=k.title?g.Rx(k.title):"";L.push({author:l,
  4531. encrypted_id:k.videoId,title:R,channel_path:Y===q?Q.channel_path:"",profile_picture:Y===q?Q.profile_picture:"",is_private:Y===q?T.isPrivate:!0,is_dni:Y===q?T.hh:!1,dni_color:Y===q?T.v5:""})}Q={index:v.currentIndex,list:v.playlistId,playlist_length:v.totalVideos,video:L};v.titleText&&(Q.title=g.Rx(v.titleText));v.shortBylineText&&(Q.author=g.Rx(v.shortBylineText));T.dL=Q}var Z,f,G;if(Q=g.t((Z=T.getEmbeddedPlayerResponse())==null?void 0:(f=Z.embedPreview)==null?void 0:(G=f.thumbnailPreviewRenderer)==
  4532. null?void 0:G.infoPanel,GTX)){T.o$=Number(Q==null?void 0:Q.durationMs)||NaN;if(Q==null?0:Q.infoPanelOverviewViewModel)T.iK=Q==null?void 0:Q.infoPanelOverviewViewModel;if(Q==null?0:Q.infoPanelDetailsViewModel)T.iS=Q==null?void 0:Q.infoPanelDetailsViewModel}}if(T.MV.previewPlayabilityStatus){if(T.Dy=T.MV.previewPlayabilityStatus,Z=T.Dy,!["OK","LIVE_STREAM_OFFLINE"].includes(Z.status)){T.errorCode=sBy(Z.errorCode);f=Z.errorScreen;if(G=f==null?void 0:f.playerErrorMessageRenderer){T.gI=G;if(Q=G.reason)T.errorReason=
  4533. g.Rx(Q);if(G=G.subreason)T.by=g.Rx(G)}else T.errorReason=Z.reason||null;switch(Z.status){case "LOGIN_REQUIRED":T.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":T.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var m;(f==null?0:(m=f.playerKavRenderer)==null?0:m.kavUrl)?T.errorDetail="4":T.errorDetail="3";break;default:T.errorDetail=Z.isBlockedInRestrictedMode?"5":"0"}}}else T.MV.playabilityStatus&&(T.dV=T.MV.playabilityStatus,ph5(T)&&(T.errorDetail="0",T.dV&&((m=T.dV.embeddedPlayerErrorMessageRenderer)?
  4534. T.gI=g.t(m,WZu):T.errorReason=T.dV.reason||null)));(m=T.MV.attestation)&&ckC(T,m);(m=T.MV.permissions)&&m.allowImaMonetization&&(T.allowImaMonetization=!0)}};
  4535. IDg=function(T,Q,k){var l=k.channelThumbnail;l&&(l=l.thumbnails)&&(l=l[0])&&(Q.profile_picture=l.url);var v;if(l=g.t((v=g.t(k==null?void 0:k.channelThumbnailEndpoint,$yX))==null?void 0:v.urlEndpoint,g.uD))Q.channel_path=l.url;if(v=k.collapsedRenderer)if(v=g.t(v,JCg)){if(l=v.title)Q.title=g.Rx(l);if(v=v.subtitle)Q.subtitle=g.Rx(v)}if(k=k.expandedRenderer)if(k=g.t(k,eD5)){if(v=k.title)Q.expanded_title=g.Rx(v);if(v=k.subtitle)Q.expanded_subtitle=g.Rx(v);if(k=k.subscribeButton)T.subscribeButtonRenderer=
  4536. g.t(k,g.yv),T.subscribeButtonRenderer&&(Q.ucid=T.subscribeButtonRenderer.channelId,Q.subscribed=T.subscribeButtonRenderer.subscribed,T.XU=!!T.subscribeButtonRenderer.notificationPreferenceToggleButton,T.subscribeButtonRenderer.notificationPreferenceToggleButton&&T.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(Q=T.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,Q.isToggled?(T.No=Q.toggledServiceEndpoint||null,T.Re=Q.defaultServiceEndpoint||
  4537. null):(T.No=Q.defaultServiceEndpoint||null,T.Re=Q.toggledServiceEndpoint||null)))}};
  4538. g.iO=function(T){return nt(T)&&!T.allowLiveDvr};
  4539. Vv=function(T){return nt(T)&&T.allowLiveDvr};
  4540. nt=function(T){return T.V("html5_live_head_playable")&&Kt(T)&&T.FB.z9==="yt"?T.isLiveHeadPlayable:T.isLivePlayback};
  4541. b15=function(T,Q){Q.sort(function(k,l){return k.toString().localeCompare(l.toString(),T.FB.hostLanguage)})};
  4542. g.Th=function(T){return!!T.T&&m3t(T.T)};
  4543. g.Q5=function(T){return!!T.T&&IlC(T.T)};
  4544. g.j$=function(T){return!!T.T&&hj5(T.T)};
  4545. g.tL=function(T){return!!T.T&&sL5(T.T)};
  4546. g.FZH=function(T){if(T.XZ)return null;var Q=T.iD;Q||(Q=T.playerResponse&&T.playerResponse.endscreen&&T.playerResponse.endscreen.endscreenUrlRenderer&&T.playerResponse.endscreen.endscreenUrlRenderer.url);return Q||null};
  4547. g.ENy=function(T){return T.XZ?null:T.playerResponse&&T.playerResponse.endscreen&&T.playerResponse.endscreen.endscreenRenderer||null};
  4548. g.kD=function(T){return T.V("enable_wn_infocards")};
  4549. g.lt=function(T){var Q,k,l,v;return(g.kD(T)?(Q=T.e6)==null?void 0:(k=Q.cards)==null?void 0:k.cardCollectionRenderer:(l=T.playerResponse)==null?void 0:(v=l.cards)==null?void 0:v.cardCollectionRenderer)||null};
  4550. g.oa=function(T){if(!T.playerResponse||!T.playerResponse.annotations)return null;T=g.B(T.playerResponse.annotations);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.playerAnnotationsExpandedRenderer&&Q.playerAnnotationsExpandedRenderer.featuredChannel)return Q.playerAnnotationsExpandedRenderer;return null};
  4551. vi=function(T){return T.adFormat&&(T.OG?T.adFormat!=="1_5":T.adFormat!="1_5")?"adunit":T.eventLabel||T.FB.i9};
  4552. g.LX=function(T){return vi(T)==="shortspage"};
  4553. NY=function(T){return T.aD()&&T.G().supportsGaplessShorts()};
  4554. qf=function(T){if(T.isAd()&&(T.OG?T.videoId!==T.FB.QR:T.videoId!=T.FB.QR))return T.FB.QR};
  4555. Mf=function(T){return T.dO||vi(T)==="detailpage"||vi(T)==="shortspage"||T.mutedAutoplay};
  4556. yCg=function(T){var Q=vi(T)==="adunit"?T.nU:Mf(T)?vi(T)==="detailpage"||vi(T)==="shortspage"?T.isAutonav||T.Gg>0:T.vk?!1:T.FB.ek||T.FB.NK||!g.Qk(T.FB)?!0:!1:(T.vk?0:T.ek)&&g.Qk(T.FB)?!0:!1;T.V("html5_log_detailpage_autoplay")&&vi(T)==="detailpage"&&T.T9("autoplay_info",{autoplay:T.dO,autonav:T.isAutonav,wasDompaused:T.vk,result:Q});return Q};
  4557. g.YD=function(T){return T.oauthToken||T.FB.b7};
  4558. Vwu=function(T){if(T.V("html5_stateful_audio_normalization")){var Q=1,k=g.jj(T.FB.experiments,"html5_default_ad_gain");k&&T.isAd()&&(Q=k);var l,v;k=(v=(l=T.Y)==null?void 0:l.audio.Y)!=null?v:T.Pp;if(k==null||isNaN(k))T=i15(T);else{l=(0,g.XY)();T.UY=2;v=l-T.FB.Yh<=T.maxStatefulTimeThresholdSec*1E3;T.applyStatefulNormalization&&v?T.UY=4:v||(T.FB.FU=Infinity,T.FB.Yh=NaN);v=(T.UY===4?g.ti(T.FB.FU,T.minimumLoudnessTargetLkfs,T.loudnessTargetLkfs):T.loudnessTargetLkfs)-k;if(T.UY!==4){var L,q,Y,U,R=((L=
  4559. T.playerResponse)==null?void 0:(q=L.playerConfig)==null?void 0:(Y=q.audioConfig)==null?void 0:(U=Y.loudnessNormalizationConfig)==null?void 0:U.statelessLoudnessAdjustmentGain)||0;v+=R}v=Math.min(v,0);T.preserveStatefulLoudnessTarget&&(T.FB.FU=k+v,T.FB.Yh=l);T=Math.min(1,Math.pow(10,v/20))||Q}}else T=i15(T);return T};
  4560. i15=function(T){var Q=1,k=g.jj(T.FB.experiments,"html5_default_ad_gain");k&&T.isAd()&&(Q=k);if(T.H_){var l,v;k=((l=T.Y)==null?void 0:l.audio.L)!=null?(v=T.Y)==null?void 0:v.audio.L:T.uK}else{var L;k=((L=T.Y)==null?void 0:L.audio.L)||T.uK}isNaN(k)||(T.UY=1);return Math.min(1,Math.pow(10,-k/20))||Q};
  4561. AL=function(T){var Q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],k=hS(T.FB)==="TVHTML5_SIMPLY"&&T.FB.T.ctheme==="MUSIC";!T.OW&&(g.uP(T.FB)||g.zW(T.FB)||k)&&(Q.includes(T.musicVideoType)||T.isExternallyHostedPodcast)&&(T.OW=!0);if(Q=g.ph())Q=/Starboard\/([0-9]+)/.exec(g.KJ()),Q=(Q?parseInt(Q[1],10):NaN)<10;k=T.FB;k=(hS(k)==="TVHTML5_CAST"||hS(k)==="TVHTML5"&&(k.T.cver.startsWith("6.20130725")||k.T.cver.startsWith("6.20130726")))&&T.FB.T.ctheme==="MUSIC";var l;if(l=!T.OW)k||(k=
  4562. T.FB,k=hS(k)==="TVHTML5"&&k.T.cver.startsWith("7")),l=k;l&&!Q&&(Q=T.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",k=(T.V("cast_prefer_audio_only_for_atv_and_uploads")||T.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&T.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Q||k||T.isExternallyHostedPodcast)&&(T.OW=!0);return T.FB.deviceIsAudioOnly||T.OW&&T.FB.j};
  4563. r4=function(T){var Q,k,l;return((Q=T.playerResponse)==null?void 0:(k=Q.playerConfig)==null?void 0:(l=k.compositeVideoConfig)==null?void 0:l.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"};
  4564. TqT=function(T){var Q,k,l,v=(Q=T.playerResponse)==null?void 0:(k=Q.playerConfig)==null?void 0:(l=k.compositeVideoConfig)==null?void 0:l.sourceConfigs,L,q,Y;T=(L=T.playerResponse)==null?void 0:(q=L.playerConfig)==null?void 0:(Y=q.compositeVideoConfig)==null?void 0:Y.defaultActiveSourceVideoId;if(!v||!T)return"";v=g.B(v);for(L=v.next();!L.done;L=v.next())if(L=L.value,L.videoId===T&&L.audioTracks)for(L=g.B(L.audioTracks),q=L.next();!q.done;q=L.next())if(q=q.value,q.isDefaultForSource)return q.id||"";
  4565. return""};
  4566. g.Qrg=function(T){return T.Cc()&&cv(T)||r4(T)};
  4567. UU=function(T){var Q,k,l;return!!((Q=T.playerResponse)==null?0:(k=Q.playerConfig)==null?0:(l=k.mediaCommonConfig)==null?0:l.splitScreenEligible)};
  4568. Ra=function(T){var Q;return!((Q=T.playerResponse)==null||!Q.compositePlayabilityStatus)};
  4569. jrb=function(T){return isNaN(T)?0:Math.max((Date.now()-T)/1E3-30,0)};
  4570. kE5=function(T){return T.m0&&!T.LQ};
  4571. Z_=function(T){return!(!T.jl||!T.FB.j)&&T.Wm()};
  4572. fX=function(T){return T.IS&&T.enableServerStitchedDai};
  4573. lQg=function(T){return T.cg&&!T.Sf};
  4574. cv=function(T){var Q=T.V("html5_enable_sabr_on_drive")&&T.FB.z9==="gd";if(T.p9)return T.cg&&T.T9("fds",{fds:!0},!0),!1;if(T.FB.z9!=="yt"&&!Q)return T.cg&&T.T9("dsvn",{ns:T.FB.z9},!0),!1;if(T.cotn||!T.T||T.T.isOtf&&!T.V("html5_enable_sabr_otf_in_client")||T.L&&!T.L.T||T.Et&&!T.V("html5_enable_sabr_csdai"))return!1;if(T.V("html5_use_sabr_requests_for_debugging"))return!0;T.cg&&T.T9("esfw",{usbc:T.cg,hsu:!!T.Sf},!0);if(T.cg&&T.Sf)return!0;if(T.V("html5_remove_client_sabr_determination"))return!1;var k=
  4575. !T.T.Cc&&!T.bl();Q=k&&sd&&T.V("html5_enable_sabr_vod_streaming_xhr");k=k&&!sd&&T.V("html5_enable_sabr_vod_non_streaming_xhr");var l=Gh(T),v=T.V("html5_enable_sabr_drm_vod_streaming_xhr")&&sd&&T.bl()&&!T.T.Cc&&(T.drmProduct==="1"?!1:!0);(Q=Q||k||l||v)&&!T.Sf&&T.T9("sabr",{loc:"m"},!0);return Q&&!!T.Sf};
  4576. Gh=function(T){var Q;if(!(Q=sd&&T.Cc()&&T.bl()&&(T.drmProduct==="1"?!1:!0)&&T.V("html5_sabr_live_drm_streaming_xhr"))){Q=T.Cc()&&!T.bl()&&sd;var k=T.Cc()&&T.latencyClass!=="ULTRALOW"&&!T.isLowLatencyLiveStream&&T.V("html5_sabr_live_normal_latency_streaming_xhr"),l=T.isLowLatencyLiveStream&&T.V("html5_sabr_live_low_latency_streaming_xhr"),v=T.latencyClass==="ULTRALOW"&&T.V("html5_sabr_live_ultra_low_latency_streaming_xhr");Q=Q&&(k||l||v)}k=Q;Q=T.enableServerStitchedDai&&k&&T.V("html5_enable_sabr_ssdai_streaming_xhr");
  4577. k=!T.enableServerStitchedDai&&k;l=T.Cc()&&!sd&&T.V("html5_enable_sabr_live_non_streaming_xhr");T=sd&&(T.lf()||UU(T)&&T.V("html5_enable_sabr_for_lifa_eligible_streams"));return Q||k||l||T};
  4578. XhX=function(T){var Q;if(Q=!!T.cotn)Q=T.videoId,Q=!!Q&&g.ka(Q)===1;return Q&&!T.jl};
  4579. g.mK=function(T){if(!T.T||!T.S||!T.Y)return!1;var Q=T.T.T,k=!!Q[T.S.id]&&EV(Q[T.S.id].Xs.T);Q=!!Q[T.Y.id]&&EV(Q[T.Y.id].Xs.T);return(T.S.itag==="0"||k)&&Q};
  4580. Ia=function(T){return T.Dy?["OK","LIVE_STREAM_OFFLINE"].includes(T.Dy.status):!0};
  4581. ph5=function(T){return(T=T.dV)&&T.showError?T.showError:!1};
  4582. hy=function(T,Q){return T.V(Q)?!0:(T.fflags||"").includes(Q+"=true")};
  4583. Uy5=function(T,Q){Q.inlineMetricEnabled&&(T.inlineMetricEnabled=!0);Q.playback_progress_0s_url&&(T.Mv=new tgg(Q));if(Q=Q.video_masthead_ad_quartile_urls)T.JA=Q.quartile_0_url,T.K8=Q.quartile_25_url,T.PF=Q.quartile_50_url,T.n8=Q.quartile_75_url,T.hf=Q.quartile_100_url,T.aS=Q.quartile_0_urls,T.O3=Q.quartile_25_urls,T.vP=Q.quartile_50_urls,T.c9=Q.quartile_75_urls,T.WP=Q.quartile_100_urls};
  4584. YgC=function(T){var Q={};T=g.B(T);for(var k=T.next();!k.done;k=T.next()){k=k.value;var l=k.split("=");l.length===2?Q[l[0]]=l[1]:Q[k]=!0}return Q};
  4585. gN6=function(T){if(T){if(zUg(T))return T;T=Xx5(T);if(zUg(T,!0))return T}return""};
  4586. g.oSg=function(T){return T.captionsLanguagePreference||T.FB.captionsLanguagePreference||g.e7(T,"yt:cc_default_lang")||T.FB.F_};
  4587. sU=function(T){return!(!T.isLivePlayback||!T.hasProgressBarBoundaries())};
  4588. g.zV=function(T){var Q;return T.hn||((Q=T.suggestions)==null?void 0:Q[0])||null};
  4589. g.S$=function(T){var Q,k;return!!((Q=T.embeddedPlayerConfig)==null?0:(k=Q.embeddedPlayerFlags)==null?0:k.enableMusicUx)};
  4590. vS5=function(T){return T.C||T.V("web_player_media_session_infinity")&&T.isLivePlayback};
  4591. CX=function(T){return T.FB.Y&&T.isPrivate};
  4592. g.zh=function(T){var Q=T.G(),k=g.Bi(Q),l=Q.DP;(Q.V("embeds_web_enable_iframe_api_send_full_embed_url")||Q.V("embeds_web_enable_rcat_validation_in_havs")||Q.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Ln(Q)&&(l&&(k.thirdParty=Object.assign({},k.thirdParty,{embedUrl:l})),MBt(k,T));if(l=T.Bd)k.clickTracking={clickTrackingParams:l};else if(g.Ln(T.G())&&g.$i("EVENT_ID"))k.clickTracking={clickTrackingParams:g.$i("EVENT_ID")};else if(Q.V("html5_log_missing_itct")){var v;l=new g.Wy("Missing ITCT in InnerTubeContext",
  4593. {isAd:T.isAd(),Wfe:(v=Q.getWebPlayerContextConfig())==null?void 0:v.contextId});g.bA(l)}v=k.client||{};l="EMBED";var L=vi(T);L==="leanback"?l="WATCH":Q.V("gvi_channel_client_screen")&&L==="profilepage"?l="CHANNEL":T.zg?l="LIVE_MONITOR":L==="detailpage"?l="WATCH_FULL_SCREEN":L==="adunit"?l="ADUNIT":L==="sponsorshipsoffer"&&(l="UNKNOWN");v.clientScreen=l;if(Q=T.kidsAppInfo)v.kidsAppInfo=JSON.parse(Q);(l=T.Y3)&&!Q&&(v.kidsAppInfo={contentSettings:{ageUpMode:LxJ[l]}});if(Q=T.OR)v.unpluggedAppInfo={enableFilterMode:!0};
  4594. (l=T.unpluggedFilterModeType)&&!Q&&(v.unpluggedAppInfo={filterModeType:qn5[l]});if(Q=T.F_)v.unpluggedLocationInfo=Q;k.client=v;v=k.request||{};T.A9&&(v.isPrefetch=!0);if(Q=T.mdxEnvironment)v.mdxEnvironment=Q;if(Q=T.mdxControlMode)v.mdxControlMode=gSt[Q];k.request=v;v=k.user||{};if(Q=T.i9)v.credentialTransferTokens=[{token:Q,scope:"VIDEO"}];if(Q=T.Z8)v.delegatePurchases={oauthToken:Q},v.kidsParent={oauthToken:Q};k.user=v;if(v=T.contextParams)k.activePlayers=[{playerContextParams:v}];if(T=T.clientScreenNonce)k.clientScreenNonce=
  4595. T;return k};
  4596. g.Bi=function(T){var Q=g.Ee(),k=Q.client||{};if(T.forcedExperiments){var l=T.forcedExperiments.split(","),v=[];l=g.B(l);for(var L=l.next();!L.done;L=l.next())v.push(Number(L.value));k.experimentIds=v}if(v=T.homeGroupInfo)k.homeGroupInfo=JSON.parse(v);if(v=T.getPlayerType())k.playerType=v;if(v=T.T.ctheme)k.theme=v;if(v=T.livingRoomAppMode)k.tvAppInfo=Object.assign({},k.tvAppInfo,{livingRoomAppMode:v});v=T.deviceYear;T.V("html5_propagate_device_year")&&v&&(k.tvAppInfo=Object.assign({},k.tvAppInfo,{deviceYear:v}));
  4597. if(v=T.livingRoomPoTokenId)k.tvAppInfo=Object.assign({},k.tvAppInfo,{livingRoomPoTokenId:v});Q.client=k;k=Q.user||{};T.enableSafetyMode&&(k=Object.assign({},k,{enableSafetyMode:!0}));T.pageId&&(k=Object.assign({},k,{onBehalfOfUser:T.pageId}));Q.user=k;k=T.DP;T.V("embeds_web_enable_iframe_api_send_full_embed_url")||T.V("embeds_web_enable_rcat_validation_in_havs")||T.V("embeds_enable_autoplay_and_visibility_signals")||!k||(Q.thirdParty={embedUrl:k});return Q};
  4598. fQg=function(T,Q,k){var l=T.videoId,v=g.zh(T),L=T.G(),q={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Bd()),referer:document.location.toString(),signatureTimestamp:20297};g.xq();T.isAutonav&&(q.autonav=!0);g.Py(0,141)&&(q.autonavState=g.Py(0,140)?"STATE_OFF":"STATE_ON");q.autoCaptionsDefaultOn=g.Py(0,66);yCg(T)&&(q.autoplay=!0);L.j&&T.cycToken&&(q.cycToken=T.cycToken);L.enablePrivacyFilter&&(q.enablePrivacyFilter=!0);T.isFling&&(q.fling=!0);var Y=T.forceAdsUrl;if(Y){var U={},R=[];Y=
  4599. Y.split(",");Y=g.B(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;var f=Z.split("|");f.length!==3||Z.includes("=")||(f[0]="breaktype="+f[0],f[1]="offset="+f[1],f[2]="url="+f[2]);Z={adtype:"video_ad"};f=g.B(f);for(var G=f.next();!G.done;G=f.next()){var m=g.B(G.value.split("="));G=m.next().value;m=oby(m);Z[G]=m.join("=")}f=Z.url;G=Z.presetad;m=Z.viralresponseurl;var I=Number(Z.campaignid);if(Z.adtype==="in_display_ad")f&&(U.url=f),G&&(U.presetAd=G),m&&(U.viralAdResponseUrl=m),I&&(U.viralCampaignId=
  4600. String(I));else if(Z.adtype==="video_ad"){var z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(Z.offset)||0)}};if(Z=MsI[Z.breaktype])z.breakType=Z;f&&(z.url=f);G&&(z.presetAd=G);m&&(z.viralAdResponseUrl=m);I&&(z.viralCampaignId=String(I));R.push(z)}}q.forceAdParameters={videoAds:R,inDisplayAd:U}}T.isInlinePlaybackNoAd&&(q.isInlinePlaybackNoAd=!0);T.isLivingRoomDeeplink&&(q.isLivingRoomDeeplink=!0);U=T.rhH;if(U!=null){U={startWalltime:String(U)};if(R=T.uR)U.manifestDuration=String(R||14400);
  4601. q.liveContext=U}if(T.mutedAutoplay){q.mutedAutoplay=!0;U=L.getWebPlayerContextConfig();var w,r;(U==null?0:(w=U.embedsHostFlags)==null?0:w.allowMutedAutoplayDurationMode)&&(U==null?0:(r=U.embedsHostFlags)==null?0:r.allowMutedAutoplayDurationMode.includes(Ynu[T.mutedAutoplayDurationMode]))&&(q.mutedAutoplayDurationMode=Ynu[T.mutedAutoplayDurationMode])}if(T.vk?0:T.ek)q.splay=!0;w=T.vnd;w===5&&(q.vnd=w);w={};if(r=T.isMdxPlayback)w.triggeredByMdx=r;if(r=T.jg)w.skippableAdsSupported=r.split(",").includes("ska");
  4602. if(R=T.SO){r=T.oe;U=[];R=g.B(YPu(R));for(Y=R.next();!Y.done;Y=R.next()){Y=Y.value;Z=Y.platform;Y={applicationState:Y.QX?"INACTIVE":"ACTIVE",clientFormFactor:UZI[Z]||"UNKNOWN_FORM_FACTOR",clientName:RFu[Y.Pu]||"UNKNOWN_INTERFACE",clientVersion:Y.deviceVersion||"",platform:RE5[Z]||"UNKNOWN_PLATFORM"};Z={};if(r){f=void 0;try{f=JSON.parse(r)}catch(D){g.rB(D)}f&&(Z={params:[{key:"ms",value:f.ms}]},f.advertising_id&&(Z.advertisingId=f.advertising_id),f.limit_ad_tracking!==void 0&&f.limit_ad_tracking!==
  4603. null&&(Z.limitAdTracking=f.limit_ad_tracking),Y.osName=f.os_name,Y.userAgent=f.user_agent,Y.windowHeightPoints=f.window_height_points,Y.windowWidthPoints=f.window_width_points)}U.push({adSignalsInfo:Z,remoteClient:Y})}w.remoteContexts=U}r=T.sourceContainerPlaylistId;U=T.serializedMdxMetadata;if(r||U)R={},r&&(R.mdxPlaybackContainerInfo={sourceContainerPlaylistId:r}),U&&(R.serializedMdxMetadata=U),w.mdxPlaybackSourceContext=R;q.mdxContext=w;w=Q.width;w>0&&(q.playerWidthPixels=Math.round(w));if(Q=Q.height)q.playerHeightPixels=
  4604. Math.round(Q);k!==0&&(q.vis=k);if(k=L.widgetReferrer)q.widgetReferrer=k.substring(0,128);g.Qk(L)&&q&&(q.ancestorOrigins=L.ancestorOrigins);T.defaultActiveSourceVideoId&&(q.compositeVideoContext={defaultActiveSourceVideoId:T.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())q.encryptedHostFlags=L.encryptedHostFlags;l={videoId:l,context:v,playbackContext:{contentPlaybackContext:q}};if(T.Ct){var A;l.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(A=T.Ct)==null?void 0:A.reloadPlaybackParams}}T.contentCheckOk&&
  4605. (l.contentCheckOk=!0);if(A=T.clientPlaybackNonce)l.cpn=A;if(A=T.playerParams)l.params=A;if(A=T.playlistId)l.playlistId=A;T.racyCheckOk&&(l.racyCheckOk=!0);A=T.G();v=A.embedConfig;T.bR&&A.V("embeds_enable_per_video_embed_config")?l.serializedThirdPartyEmbedConfig=T.bR:v&&(l.serializedThirdPartyEmbedConfig=v);l.captionParams={};v=g.Py(g.xq(),65);T.deviceCaptionsOn!=null?l.captionParams.deviceCaptionsOn=T.deviceCaptionsOn:g.Cn(A)&&(l.captionParams.deviceCaptionsOn=v!=null?!v:!1);T.ys&&(l.captionParams.deviceCaptionsLangPref=
  4606. T.ys);T.fh.length?l.captionParams.viewerSelectedCaptionLangs=T.fh:g.Cn(A)&&(v=g.SX(),v==null?0:v.length)&&(l.captionParams.viewerSelectedCaptionLangs=v);v=T.fetchType==="onesie"&&T.V("html5_onesie_attach_po_token");q=T.fetchType!=="onesie"&&T.V("html5_non_onesie_attach_po_token");if(v||q)v=T.G(),v.vk&&(l.serviceIntegrityDimensions={},l.serviceIntegrityDimensions.poToken=v.vk);A.V("fetch_att_independently")&&(l.attestationRequest={omitBotguardData:!0});l.playbackContext||(l.playbackContext={});l.playbackContext.devicePlaybackCapabilities=
  4607. ZQ5(T);l.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&T.T9("noVp9",{});return l};
  4608. ZQ5=function(T){var Q=!(T==null?0:T.jF())&&(T==null?void 0:T.Cc())&&TL(),k;if(!(k=T==null)){k=g.Dd(T);T=T.G().N;var l=De("243");k=!(l&&xg(k,l,T,!0)===!0)}return{supportsVp9Encoding:!(k||Q),supportXhr:sd}};
  4609. mZ5=function(T,Q){var k,l,v;return g.a(function(L){if(L.S==1)return k={context:g.Bi(T.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:T.videoId,cpn:T.clientPlaybackNonce}}]},l=g.Vr(GEb),g.c(L,g.uU(Q,k,l),2);v=L.T;return L.return(v)})};
  4610. IQH=function(T,Q,k){var l=g.jj(Q.experiments,"bg_vm_reinit_threshold");(!kg||(0,g.XY)()-kg>l)&&mZ5(T,k).then(function(v){v&&(v=v.botguardData)&&g.o3(v,Q)},function(v){T.wd()||(v=GX(v),T.T9("attf",v.details))})};
  4611. XZ=function(T,Q){g.x.call(this);this.app=T;this.state=Q};
  4612. ds=function(T,Q,k){T.state.T.hasOwnProperty(Q)||ws(T,Q,k);T.state.C[Q]=function(){return k.apply(T,g.HT.apply(0,arguments))};
  4613. T.state.B.add(Q)};
  4614. Nf=function(T,Q,k){T.state.T.hasOwnProperty(Q)||ws(T,Q,k);T.app.G().j&&(T.state.j[Q]=function(){return k.apply(T,g.HT.apply(0,arguments))},T.state.B.add(Q))};
  4615. ws=function(T,Q,k){T.state.T[Q]=function(){return k.apply(T,g.HT.apply(0,arguments))}};
  4616. g.Ay=function(T,Q,k){return T.state.T[Q].apply(T.state.T,g.ZH(k))};
  4617. bt=function(){g.XE.call(this);this.N=new Map};
  4618. rs=function(){g.x.apply(this,arguments);this.element=null;this.B=new Set;this.C={};this.j={};this.T={};this.D=new Set;this.L=new bt;this.S=new bt;this.Y=new bt;this.N=new bt};
  4619. hEX=function(T,Q,k){typeof T==="string"&&(T={mediaContentUrl:T,startSeconds:Q,suggestedQuality:k});a:{if((Q=T.mediaContentUrl)&&(Q=/\/([ve]|embed)\/([^#?]+)/.exec(Q))&&Q[2]){Q=Q[2];break a}Q=null}T.videoId=Q;return ci(T)};
  4620. ci=function(T,Q,k){if(typeof T==="string")return{videoId:T,startSeconds:Q,suggestedQuality:k};Q={};k=g.B(srb);for(var l=k.next();!l.done;l=k.next())l=l.value,T[l]&&(Q[l]=T[l]);if(T=T.embedConfig||T.embed_config)if(typeof T==="string")Q.embed_config=T;else if(g.vm(T))try{var v=JSON.stringify(T);Q.embed_config=v}catch(L){console.error("Invalid embedConfig JSON",L)}return Q};
  4621. SnC=function(T,Q,k,l){if(g.vm(T)&&!Array.isArray(T)){Q="playlist list listType index startSeconds suggestedQuality".split(" ");k={};for(l=0;l<Q.length;l++){var v=Q[l];T[v]&&(k[v]=T[v])}return k}Q={index:Q,startSeconds:k,suggestedQuality:l};typeof T==="string"&&T.length===16?Q.list="PL"+T:Q.playlist=T;return Q};
  4622. D_=function(){XZ.apply(this,arguments)};
  4623. Bq6=function(T){ds(T,"cueVideoById",T.CF);ds(T,"loadVideoById",T.b2);ds(T,"cueVideoByUrl",T.Zp);ds(T,"loadVideoByUrl",T.GC);ds(T,"playVideo",T.jKV);ds(T,"pauseVideo",T.pauseVideo);ds(T,"stopVideo",T.L0j);ds(T,"clearVideo",T.clearVideo);ds(T,"getVideoBytesLoaded",T.SC);ds(T,"getVideoBytesTotal",T.c7);ds(T,"getVideoLoadedFraction",T.Cs);ds(T,"getVideoStartBytes",T.QJ);ds(T,"cuePlaylist",T.cuePlaylist);ds(T,"loadPlaylist",T.Am);ds(T,"nextVideo",T.YKq);ds(T,"previousVideo",T.vMe);ds(T,"playVideoAt",T.Ahq);
  4624. ds(T,"setShuffle",T.setShuffle);ds(T,"setLoop",T.setLoop);ds(T,"getPlaylist",T.qH);ds(T,"getPlaylistIndex",T.getPlaylistIndex);ds(T,"getPlaylistId",T.getPlaylistId);ds(T,"loadModule",T.a7);ds(T,"unloadModule",T.uv);ds(T,"setOption",T.Kq);ds(T,"getOption",T.DW);ds(T,"getOptions",T.MZ);ds(T,"mute",T.Fe9);ds(T,"unMute",T.IGK);ds(T,"isMuted",T.isMuted);ds(T,"setVolume",T.DL9);ds(T,"getVolume",T.getVolume);ds(T,"seekTo",T.Ju9);ds(T,"getPlayerMode",T.getPlayerMode);ds(T,"getPlayerState",T.yJ);ds(T,"getAvailablePlaybackRates",
  4625. T.getAvailablePlaybackRates);ds(T,"getPlaybackQuality",function(){return T.getPlaybackQuality(1)});
  4626. ds(T,"setPlaybackQuality",T.uIB);ds(T,"getAvailableQualityLevels",T.ju);ds(T,"getCurrentTime",T.PZ);ds(T,"getDuration",T.WZ);ds(T,"addEventListener",T.pZ);ds(T,"removeEventListener",T.Qde);ds(T,"getDebugText",T.tq);ds(T,"getVideoData",function(){return C85(T)});
  4627. ds(T,"addCueRange",T.Pj);ds(T,"removeCueRange",T.removeCueRange);ds(T,"setSize",T.setSize);ds(T,"getApiInterface",T.getApiInterface);ds(T,"destroy",T.destroy);ds(T,"mutedAutoplay",T.mutedAutoplay);var Q=T.app.G();Q.B||(ds(T,"getVideoEmbedCode",T.getVideoEmbedCode),ds(T,"getVideoUrl",T.k7));ds(T,"getMediaReferenceTime",T.fl);ds(T,"getSize",T.getSize);ds(T,"setFauxFullscreen",T.GH_);Q.V("embeds_enable_move_set_center_crop_to_public")&&ds(T,"setCenterCrop",T.setCenterCrop);Q.B||ds(T,"logImaAdEvent",
  4628. T.logImaAdEvent);ds(T,"preloadVideoById",T.u__);ds(T,"wakeUpControls",T.wakeUpControls)};
  4629. g.aa=function(T){return(T=zE5(T.app.Bx()))?T.nB():null};
  4630. nX=function(T){var Q=g.M0(T.app.G()),k,l=(k=T.app.getVideoData())==null?void 0:k.xF;T=ut(T.app);return g.gi(Q)&&!l||T?!1:!0};
  4631. C85=function(T,Q){var k={};if(Q=T.app.jD(Q===void 0?1:Q)){Q=Q.getVideoData();if(CX(Q))return{};k.video_id=Q.videoId;k.author=Q.author;k.title=Q.title;k.isPlayable=Ia(Q);k.errorCode=Q.errorCode;if(Q.S&&Q.S.video){k.video_quality=Q.S.video.quality;Q=Q.S.video;var l=[];Q.fps>32&&l.push("hfr");Q.isHdr()&&l.push("hdr");Q.primaries==="bt2020"&&l.push("wcg");k.video_quality_features=l}}if(T=T.getPlaylistId())k.list=T;return k};
  4632. KX=function(){D_.apply(this,arguments)};
  4633. xD=function(T,Q){var k={};if(T.app.G().qO){T=g.B(XCX);for(var l=T.next();!l.done;l=T.next())l=l.value,Q.hasOwnProperty(l)&&(k[l]=Q[l]);if(Q=k.qoe_cat)T="",typeof Q==="string"&&Q.length>0&&(T=Q.split(",").filter(function(v){return wC5.includes(v)}).join(",")),k.qoe_cat=T;
  4634. dZH(k)}else for(T=g.B(NqI),l=T.next();!l.done;l=T.next())l=l.value,Q.hasOwnProperty(l)&&(k[l]=Q[l]);return k};
  4635. dZH=function(T){var Q=T.raw_player_response;if(!Q){var k=T.player_response;k&&(Q=JSON.parse(k))}delete T.player_response;delete T.raw_player_response;if(Q){T.raw_player_response={streamingData:Q.streamingData,playerConfig:Q.playerConfig};var l;if((l=Q.playbackTracking)==null?0:l.qoeUrl)T.raw_player_response=Object.assign({},T.raw_player_response,{playbackTracking:{qoeUrl:Q.playbackTracking.qoeUrl}});Q.videoDetails&&(Q.videoDetails.videoId||Q.videoDetails.lengthSeconds)&&(k={},Q.videoDetails.videoId&&
  4636. (k.videoId=Q.videoDetails.videoId),Q.videoDetails.lengthSeconds&&(k.lengthSeconds=Q.videoDetails.lengthSeconds),T.raw_player_response=Object.assign({},T.raw_player_response,{videoDetails:k}))}};
  4637. Pi=function(T,Q,k){var l=T.app.xM(k);if(!l)return 0;T=l-T.app.getCurrentTime(k);return Q-T};
  4638. bQJ=function(T){var Q=Q===void 0?5:Q;return T?A1H[T]||Q:Q};
  4639. g.Hi=function(){KX.apply(this,arguments)};
  4640. r16=function(T){ws(T,"getInternalApiInterface",T.getInternalApiInterface);ws(T,"addEventListener",T.nZ);ws(T,"removeEventListener",T.EPk);ws(T,"cueVideoByPlayerVars",T.lN);ws(T,"loadVideoByPlayerVars",T.Ia);ws(T,"preloadVideoByPlayerVars",T.tYj);ws(T,"getAdState",T.getAdState);ws(T,"sendAbandonmentPing",T.sendAbandonmentPing);ws(T,"setLoopRange",T.setLoopRange);ws(T,"getLoopRange",T.getLoopRange);ws(T,"setAutonavState",T.setAutonavState);ws(T,"seekTo",T.ruO);ws(T,"seekBy",T.CK6);ws(T,"seekToLiveHead",
  4641. T.seekToLiveHead);ws(T,"requestSeekToWallTimeSeconds",T.requestSeekToWallTimeSeconds);ws(T,"seekToStreamTime",T.seekToStreamTime);ws(T,"prefetchKeyPlay",T.prefetchKeyPlay);ws(T,"startSeekCsiAction",T.startSeekCsiAction);ws(T,"getStreamTimeOffset",T.getStreamTimeOffset);ws(T,"getVideoData",T.o1);ws(T,"setInlinePreview",T.setInlinePreview);ws(T,"getAppState",T.getAppState);ws(T,"updateLastActiveTime",T.updateLastActiveTime);ws(T,"setBlackout",T.setBlackout);ws(T,"setUserEngagement",T.setUserEngagement);
  4642. ws(T,"updateSubtitlesUserSettings",T.updateSubtitlesUserSettings);ws(T,"getPresentingPlayerType",T.BO);ws(T,"canPlayType",T.canPlayType);ws(T,"updatePlaylist",T.updatePlaylist);ws(T,"updateVideoData",T.updateVideoData);ws(T,"updateEnvironmentData",T.updateEnvironmentData);ws(T,"sendVideoStatsEngageEvent",T.jd9);ws(T,"productsInVideoVisibilityUpdated",T.productsInVideoVisibilityUpdated);ws(T,"setSafetyMode",T.setSafetyMode);ws(T,"isAtLiveHead",function(Q){return T.isAtLiveHead(void 0,Q)});
  4643. ws(T,"getVideoAspectRatio",T.getVideoAspectRatio);ws(T,"getPreferredQuality",T.getPreferredQuality);ws(T,"getPlaybackQualityLabel",T.getPlaybackQualityLabel);ws(T,"setPlaybackQualityRange",T.tDH);ws(T,"onAdUxClicked",T.onAdUxClicked);ws(T,"getFeedbackProductData",T.getFeedbackProductData);ws(T,"getStoryboardFrame",T.getStoryboardFrame);ws(T,"getStoryboardFrameIndex",T.getStoryboardFrameIndex);ws(T,"getStoryboardLevel",T.getStoryboardLevel);ws(T,"getNumberOfStoryboardLevels",T.getNumberOfStoryboardLevels);
  4644. ws(T,"getCaptionWindowContainerId",T.getCaptionWindowContainerId);ws(T,"getAvailableQualityLabels",T.getAvailableQualityLabels);ws(T,"addCueRange",T.addCueRange);ws(T,"addUtcCueRange",T.addUtcCueRange);ws(T,"showAirplayPicker",T.showAirplayPicker);ws(T,"dispatchReduxAction",T.dispatchReduxAction);ws(T,"getPlayerResponse",T.MR);ws(T,"getWatchNextResponse",T.F2);ws(T,"getHeartbeatResponse",T.Oa);ws(T,"getCurrentTime",T.Go);ws(T,"getDuration",T.gU);ws(T,"getPlayerState",T.getPlayerState);ws(T,"getPlayerStateObject",
  4645. T.H7);ws(T,"getVideoLoadedFraction",T.getVideoLoadedFraction);ws(T,"getProgressState",T.getProgressState);ws(T,"getVolume",T.getVolume);ws(T,"setVolume",T.QY);ws(T,"isMuted",T.isMuted);ws(T,"mute",T.xx);ws(T,"unMute",T.JF);ws(T,"loadModule",T.loadModule);ws(T,"unloadModule",T.unloadModule);ws(T,"getOption",T.xl);ws(T,"getOptions",T.getOptions);ws(T,"setOption",T.setOption);ws(T,"loadVideoById",T.HN);ws(T,"loadVideoByUrl",T.y0);ws(T,"playVideo",T.GY);ws(T,"loadPlaylist",T.loadPlaylist);ws(T,"nextVideo",
  4646. T.nextVideo);ws(T,"previousVideo",T.previousVideo);ws(T,"playVideoAt",T.playVideoAt);ws(T,"getDebugText",T.getDebugText);ws(T,"getWebPlayerContextConfig",T.getWebPlayerContextConfig);ws(T,"notifyShortsAdSwipeEvent",T.notifyShortsAdSwipeEvent);ws(T,"getVideoContentRect",T.getVideoContentRect);ws(T,"setSqueezeback",T.setSqueezeback);ws(T,"toggleSubtitlesOn",T.toggleSubtitlesOn);ws(T,"isSubtitlesOn",T.isSubtitlesOn);ws(T,"reportPlaybackIssue",T.reportPlaybackIssue);ws(T,"setAutonav",T.setAutonav);ws(T,
  4647. "isNotServable",T.isNotServable);ws(T,"channelSubscribed",T.channelSubscribed);ws(T,"channelUnsubscribed",T.channelUnsubscribed);ws(T,"togglePictureInPicture",T.togglePictureInPicture);ws(T,"supportsGaplessAudio",T.supportsGaplessAudio);ws(T,"supportsGaplessShorts",T.supportsGaplessShorts);ws(T,"enqueueVideoByPlayerVars",function(Q){return void T.enqueueVideoByPlayerVars(Q)});
  4648. ws(T,"clearQueue",T.clearQueue);ws(T,"getAudioTrack",T.rl);ws(T,"setAudioTrack",T.IgV);ws(T,"getAvailableAudioTracks",T.Aq);ws(T,"getMaxPlaybackQuality",T.getMaxPlaybackQuality);ws(T,"getUserPlaybackQualityPreference",T.getUserPlaybackQualityPreference);ws(T,"getSubtitlesUserSettings",T.getSubtitlesUserSettings);ws(T,"resetSubtitlesUserSettings",T.resetSubtitlesUserSettings);ws(T,"setMinimized",T.setMinimized);ws(T,"setOverlayVisibility",T.setOverlayVisibility);ws(T,"confirmYpcRental",T.confirmYpcRental);
  4649. ws(T,"queueNextVideo",T.queueNextVideo);ws(T,"handleExternalCall",T.handleExternalCall);ws(T,"logApiCall",T.logApiCall);ws(T,"isExternalMethodAvailable",T.isExternalMethodAvailable);ws(T,"setScreenLayer",T.setScreenLayer);ws(T,"getCurrentPlaylistSequence",T.getCurrentPlaylistSequence);ws(T,"getPlaylistSequenceForTime",T.getPlaylistSequenceForTime);ws(T,"shouldSendVisibilityState",T.shouldSendVisibilityState);ws(T,"syncVolume",T.syncVolume);ws(T,"highlightSettingsMenuItem",T.highlightSettingsMenuItem);
  4650. ws(T,"openSettingsMenuItem",T.openSettingsMenuItem);ws(T,"getEmbeddedPlayerResponse",T.getEmbeddedPlayerResponse);ws(T,"getVisibilityState",T.getVisibilityState);ws(T,"isMutedByMutedAutoplay",T.isMutedByMutedAutoplay);ws(T,"isMutedByEmbedsMutedAutoplay",T.isMutedByEmbedsMutedAutoplay);ws(T,"setGlobalCrop",T.setGlobalCrop);ws(T,"setInternalSize",T.setInternalSize);ws(T,"setFauxFullscreen",T.setFauxFullscreen);ws(T,"setAppFullscreen",T.setAppFullscreen)};
  4651. OU=function(T,Q,k){T=g.ty(T.aK(),Q);return k?(k.addOnDisposeCallback(T),null):T};
  4652. g.pX=function(T,Q,k){return T.app.G().YP?Q:g.o0("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:Q,SHORTCUT:k})};
  4653. c1I=function(T){T.aK().element.setAttribute("aria-live","polite")};
  4654. g.Wi=function(T,Q){g.Hi.call(this,T,Q);r16(this);Nf(this,"addEventListener",this.uT);Nf(this,"removeEventListener",this.hZd);Nf(this,"cueVideoByPlayerVars",this.Jo);Nf(this,"loadVideoByPlayerVars",this.KC);Nf(this,"preloadVideoByPlayerVars",this.WFe);Nf(this,"loadVideoById",this.HN);Nf(this,"loadVideoByUrl",this.y0);Nf(this,"playVideo",this.GY);Nf(this,"loadPlaylist",this.loadPlaylist);Nf(this,"nextVideo",this.nextVideo);Nf(this,"previousVideo",this.previousVideo);Nf(this,"playVideoAt",this.playVideoAt);
  4655. Nf(this,"getVideoData",this.sy);Nf(this,"seekBy",this.lg9);Nf(this,"seekTo",this.ZGd);Nf(this,"showControls",this.showControls);Nf(this,"hideControls",this.hideControls);Nf(this,"cancelPlayback",this.cancelPlayback);Nf(this,"getProgressState",this.getProgressState);Nf(this,"isInline",this.isInline);Nf(this,"setInline",this.setInline);Nf(this,"setLoopVideo",this.setLoopVideo);Nf(this,"getLoopVideo",this.getLoopVideo);Nf(this,"getVideoContentRect",this.getVideoContentRect);Nf(this,"getVideoStats",this.Lu);
  4656. Nf(this,"getCurrentTime",this.uc);Nf(this,"getDuration",this.gU);Nf(this,"getPlayerState",this.zI);Nf(this,"getVideoLoadedFraction",this.Eu);Nf(this,"mute",this.xx);Nf(this,"unMute",this.JF);Nf(this,"setVolume",this.QY);Nf(this,"loadModule",this.loadModule);Nf(this,"unloadModule",this.unloadModule);Nf(this,"getOption",this.xl);Nf(this,"getOptions",this.getOptions);Nf(this,"setOption",this.setOption);Nf(this,"addCueRange",this.addCueRange);Nf(this,"getDebugText",this.getDebugText);Nf(this,"getStoryboardFormat",
  4657. this.getStoryboardFormat);Nf(this,"toggleFullscreen",this.toggleFullscreen);Nf(this,"isFullscreen",this.isFullscreen);Nf(this,"getPlayerSize",this.getPlayerSize);Nf(this,"toggleSubtitles",this.toggleSubtitles);Nf(this,"setCenterCrop",this.setCenterCrop);Nf(this,"setFauxFullscreen",this.setFauxFullscreen);Nf(this,"setSizeStyle",this.setSizeStyle);Nf(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Nf(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Bq6(this)};
  4658. g.$D=function(T){T=T.Bx();var Q=T.kP.get("endscreen");return Q&&Q.ox()?!0:T.E3()};
  4659. g.Jy=function(T,Q){T.getPresentingPlayerType()===3?T.publish("mdxautoplaycancel"):T.tj("onAutonavCancelled",Q)};
  4660. g.FZ=function(T){var Q=e$(T.Bx());return T.app.PG&&!T.isFullscreen()||T.getPresentingPlayerType()===3&&Q&&Q.G0()&&Q.E_()||!!T.getPlaylist()};
  4661. g.EU=function(T,Q){g.Ay(T,"addEmbedsConversionTrackingParams",[Q])};
  4662. g.V5=function(T){return(T=g.y5(T.Bx()))?T.gz():{}};
  4663. g.DZI=function(T){T=(T=T.getVideoData())&&T.S;return!!T&&!(!T.audio||!T.video)&&T.mimeType!=="application/x-mpegURL"};
  4664. g.TQ=function(T,Q,k){T=T.Hx().element;var l=pW(T.children,function(v){v=Number(v.getAttribute("data-layer"));return k-v||1});
  4665. l<0&&(l=-(l+1));hZ(T,Q,l);Q.setAttribute("data-layer",String(k))};
  4666. g.QS=function(T){var Q=T.G();if(!Q.Ah)return!1;var k=T.getVideoData();if(!k||T.getPresentingPlayerType()===3)return!1;var l=(!k.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay"))&&!sU(k);l=k.isLivePlayback&&(!Q.V("allow_live_autoplay")||!l);var v=k.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");T=T.getPlaylist();T=!!T&&T.G0();var L=k.e6&&k.e6.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=k.hh&&L;return!k.ypcPreview&&(!l||v)&&!g.CW(k.D,"ypc")&&
  4667. !T&&(!g.Qk(Q)||L)};
  4668. uvu=function(T,Q){T=aQX(T.app.vG().N);T=g.B(T);for(var k=T.next();!k.done;k=T.next()){k=k.value;var l=k.getAvailableAudioTracks(),v=null;l=g.B(l);for(var L=l.next();!L.done;L=l.next())if(L=L.value,L.getLanguageInfo().getId()===Q){v=L;break}v&&k.lx(v,!0)}};
  4669. jc=function(){nY.apply(this,arguments);this.requestHeaders={}};
  4670. lf=function(){kH||(kH=new jc);return kH};
  4671. oR=function(T,Q){Q?T.requestHeaders.Authorization="Bearer "+Q:delete T.requestHeaders.Authorization};
  4672. g.vR=function(T){g.x.call(this);var Q=this;this.yq=T;this.dn={Le:function(){return Q.yq}}};
  4673. g.LA=function(T,Q,k,l){l=l===void 0?!1:l;g.M1.call(this,Q);var v=this;this.U=T;this.hj=l;this.j=new g.Bj(this);this.fade=new g.TZ(this,k,!0,void 0,void 0,function(){v.Dh()});
  4674. g.P(this,this.j);g.P(this,this.fade)};
  4675. qz=function(T){var Q=T.U.getRootNode();return T.U.V("web_watch_pip")||T.U.V("web_shorts_pip")?Qf(Q):document};
  4676. nS6=function(T){T.S&&(document.activeElement&&g.SO(T.element,document.activeElement)&&T.S.focus(),T.S.setAttribute("aria-expanded","false"),T.S=void 0);g.N5(T.j);T.D=void 0};
  4677. gh=function(T,Q,k){T.n$()?T.sG():T.fA(Q,k)};
  4678. Mz=function(T,Q,k,l){l=new g.p({X:"div",Rk:["ytp-linked-account-popup-button"],S6:l,K:{role:"button",tabindex:"0"}});Q=new g.p({X:"div",J:"ytp-linked-account-popup",K:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{X:"div",J:"ytp-linked-account-popup-title",S6:Q},{X:"div",J:"ytp-linked-account-popup-description",S6:k},{X:"div",J:"ytp-linked-account-popup-buttons",W:[l]}]});g.LA.call(this,T,{X:"div",J:"ytp-linked-account-popup-container",W:[Q]},100);var v=this;this.dialog=Q;g.P(this,this.dialog);
  4679. l.listen("click",function(){v.sG()});
  4680. g.P(this,l);g.TQ(this.U,this.element,4);this.hide()};
  4681. g.UQ=function(T,Q,k,l){g.M1.call(this,T);this.priority=Q;k&&g.YH(this,k);l&&this.qF(l)};
  4682. g.RR=function(T,Q,k,l){T=T===void 0?{}:T;Q=Q===void 0?[]:Q;k=k===void 0?!1:k;l=l===void 0?!1:l;Q.push("ytp-menuitem");var v=T;"role"in v||(v.role="menuitem");k||(v=T,"tabindex"in v||(v.tabindex="0"));T={X:k?"a":"div",Rk:Q,K:T,W:[{X:"div",J:"ytp-menuitem-icon",S6:"{{icon}}"},{X:"div",J:"ytp-menuitem-label",S6:"{{label}}"},{X:"div",J:"ytp-menuitem-content",S6:"{{content}}"}]};l&&T.W.push({X:"div",J:"ytp-menuitem-secondary-icon",S6:"{{secondaryIcon}}"});return T};
  4683. g.YH=function(T,Q){T.updateValue("label",Q)};
  4684. ZR=function(T){g.UQ.call(this,g.RR({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Q=this;this.U=T;this.S=this.T=!1;this.YB=T.K$();T.createServerVe(this.element,this,!0);this.Z(this.U,"settingsMenuVisibilityChanged",function(k){Q.vx(k)});
  4685. this.Z(this.U,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()};
  4686. fA=function(T){return T?g.Rx(T):""};
  4687. GQ=function(T){g.x.call(this);this.api=T};
  4688. mW=function(T){GQ.call(this,T);var Q=this;ws(T,"setAccountLinkState",function(k){Q.setAccountLinkState(k)});
  4689. ws(T,"updateAccountLinkingConfig",function(k){Q.updateAccountLinkingConfig(k)});
  4690. T.addEventListener("videodatachange",function(k,l){Q.onVideoDataChange(l)});
  4691. T.addEventListener("settingsMenuInitialized",function(){Q.menuItem=new ZR(Q.api);g.P(Q,Q.menuItem)})};
  4692. Kxf=function(T){this.api=T;this.T={}};
  4693. IR=function(T,Q,k,l){Q in T.T||(k=new g.$d(k,l,{id:Q,priority:2,namespace:"appad"}),T.api.fY([k],1),T.T[Q]=k)};
  4694. hN=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(this);g.P(this,this.events);this.T=new Kxf(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){Q.T.T={}});
  4695. this.events.Z(this.api,"legacyadtrackingpingchange",function(k){var l=Q.T;IR(l,"part2viewed",1,0x8000000000000);IR(l,"engagedview",Math.max(1,k.QR*1E3),0x8000000000000);if(!k.isLivePlayback){var v=k.lengthSeconds*1E3;NY(k)&&l.api.V("html5_shorts_gapless_ads_duration_fix")&&(v=l.api.getProgressState().seekableEnd*1E3-k.Sq);IR(l,"videoplaytime25",v*.25,v);IR(l,"videoplaytime50",v*.5,v);IR(l,"videoplaytime75",v*.75,v);IR(l,"videoplaytime100",v,0x8000000000000);IR(l,"conversionview",v,0x8000000000000);
  4696. IR(l,"videoplaybackstart",1,v);IR(l,"videoplayback2s",2E3,v);IR(l,"videoplayback10s",1E4,v)}});
  4697. this.events.Z(this.api,g.ej("appad"),this.S);this.events.Z(this.api,g.Ft("appad"),this.S)};
  4698. tsu=function(T,Q,k){if(!(k in Q))return!1;Q=Q[k];Array.isArray(Q)||(Q=[Q]);Q=g.B(Q);for(k=Q.next();!k.done;k=Q.next()){k=k.value;var l={CPN:T.api.getVideoData().clientPlaybackNonce};k=g.Ae(k,l);l=void 0;l=l===void 0?!1:l;(l=PI(HI(k,xZC),k,l,"Active View 3rd Party Integration URL"))||(l=void 0,l=l===void 0?!1:l,l=PI(HI(k,P8t),k,l,"Google/YouTube Brand Lift URL"));l||(l=void 0,l=l===void 0?!1:l,l=PI(HI(k,HQt),k,l,"Nielsen OCR URL"));g.uM(k,void 0,l)}return!0};
  4699. sQ=function(T,Q){OQI(T,Q).then(function(k){g.uM(Q,void 0,void 0,k)})};
  4700. Sc=function(T,Q){Q.forEach(function(k){sQ(T,k)})};
  4701. OQI=function(T,Q){return g.G4(T.api.G())&&q2(Q)&&Lh(Q)?g.rj(T.api.G(),g.YD(T.api.getVideoData())).then(function(k){var l;k&&(l={Authorization:"Bearer "+k});return l},void 0):rV()};
  4702. pC5=function(T){GQ.call(this,T);this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"videoready",function(Q){if(T.getPresentingPlayerType()===1){var k,l,v={playerDebugData:{pmlSignal:!!((k=Q.getPlayerResponse())==null?0:(l=k.adPlacements)==null?0:l.some(function(L){var q;return L==null?void 0:(q=L.adPlacementRenderer)==null?void 0:q.renderer})),
  4703. contentCpn:Q.clientPlaybackNonce}};g.LM("adsClientStateChange",v)}})};
  4704. CA=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"getUserAudioQualitySetting",function(){return Q.getUserAudioQualitySetting()});
  4705. ws(this.api,"setUserAudioQualitySetting",function(k){Q.setUserAudioQualitySetting(k)});
  4706. ws(this.api,"hasHqaAudioTrack",function(){return Q.hasHqaAudioTrack()});
  4707. this.xu=Ljf();this.updateEnvironmentData()};
  4708. BR=function(T){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-autonav-toggle"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{X:"div",J:"ytp-autonav-toggle-button-container",W:[{X:"div",J:"ytp-autonav-toggle-button",K:{"aria-checked":"true"}}]}]});this.U=T;this.S=[];this.T=!1;this.isChecked=!0;T.createClientVe(this.element,this,
  4709. 113681);this.Z(T,"presentingplayerstatechange",this.P9);this.listen("click",this.onClick);this.U.G().V("web_player_autonav_toggle_always_listen")&&Wxg(this);OU(T,this.element,this);this.P9()};
  4710. Wxg=function(T){T.S.push(T.Z(T.U,"videodatachange",T.P9));T.S.push(T.Z(T.U,"videoplayerreset",T.P9));T.S.push(T.Z(T.U,"onPlaylistUpdate",T.P9));T.S.push(T.Z(T.U,"autonavchange",T.Uo))};
  4711. $Zu=function(T){T.isChecked=T.isChecked;T.L_("ytp-autonav-toggle-button").setAttribute("aria-checked",String(T.isChecked));var Q=T.isChecked?"\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\u5df2\u5f00\u542f":"\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\u5df2\u5173\u95ed";T.U.G().V("player_tooltip_data_title_killswitch")?T.update({title:Q,label:Q}):T.update({"data-tooltip-title":Q,label:Q});T.U.wO()};
  4712. J1T=function(T){return T.U.G().V("web_player_autonav_use_server_provided_state")&&Ct(T.mF())};
  4713. eEJ=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"standardControlsInitialized",function(){var k=new BR(T);g.P(Q,k);T.oN(k,"RIGHT_CONTROLS_LEFT")})};
  4714. zQ=function(T,Q){g.UQ.call(this,g.RR({role:"menuitemcheckbox","aria-checked":"false"}),Q,T,{X:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
  4715. Xe=function(T,Q){T.checked=Q;T.element.setAttribute("aria-checked",String(T.checked))};
  4716. FxH=function(T){var Q=!T.G().E4&&T.getPresentingPlayerType()!==3;return T.isFullscreen()||Q};
  4717. g.wh=function(T,Q,k,l){var v=T.currentTarget;if((k===void 0||!k)&&g.B8(T))return T.preventDefault(),!0;Q.pauseVideo();T=v.getAttribute("href");g.t$(T,l,!0);return!1};
  4718. g.dh=function(T,Q,k){if(h9(Q.G())&&Q.getPresentingPlayerType()!==2){if(g.B8(k))return Q.isFullscreen()&&!Q.G().externalFullscreen&&Q.toggleFullscreen(),k.preventDefault(),!0}else{var l=g.B8(k);l&&Q.pauseVideo();g.t$(T,void 0,!0);l&&(g.Oe(T),k.preventDefault())}return!1};
  4719. ESC=function(T){T=Nz.includes("zh-CN")?T.V("delhi_modern_web_player_icons")?hc():{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
  4720. fill:"#fff"}}]}:T.V("delhi_modern_web_player_icons")?x56():{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};T.J="ytp-subtitles-button-icon";
  4721. return T};
  4722. y1g=function(T){return Nz.includes("zh-CN")?T?hc():{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",
  4723. width:"24"},W:[{X:"path",K:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
  4724. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}};
  4725. AN=function(){return{X:"div",J:"ytp-spinner-container",W:[{X:"div",J:"ytp-spinner-rotator",W:[{X:"div",J:"ytp-spinner-left",W:[{X:"div",J:"ytp-spinner-circle"}]},{X:"div",J:"ytp-spinner-right",W:[{X:"div",J:"ytp-spinner-circle"}]}]}]}};
  4726. bf=function(T){if(document.createRange){var Q=document.createRange();Q&&(Q.selectNodeContents(T),T=window.getSelection())&&(T.removeAllRanges(),T.addRange(Q))}};
  4727. DR=function(T){var Q=T.V("web_player_use_cinematic_label_2")?"\u6c1b\u56f4\u6a21\u5f0f":"\u5f71\u9662\u706f\u6548";zQ.call(this,Q,g.rh.Zo);var k=this;this.U=T;this.T=!1;this.S=new g.FA(function(){g.Lb(k.element,"ytp-menuitem-highlighted")},0);
  4728. this.YB=T.K$();T=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z",
  4729. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(T);this.subscribe("select",this.L,this);this.listen(cR,this.Y);g.P(this,this.S)};
  4730. aR=function(T){GQ.call(this,T);var Q=this;this.T=!1;T.addEventListener("settingsMenuInitialized",function(){iQb(Q)});
  4731. T.addEventListener("highlightSettingsMenu",function(k){iQb(Q);var l=Q.menuItem;k==="menu_item_cinematic_lighting"&&(g.oF(l.element,"ytp-menuitem-highlighted"),g.oF(l.element,"ytp-menuitem-highlight-transition-enabled"),l.S.start())});
  4732. ws(T,"updateCinematicSettings",function(k){Q.updateCinematicSettings(k)})};
  4733. iQb=function(T){T.menuItem||(T.menuItem=new DR(T.api),g.P(T,T.menuItem),T.menuItem.Aj(T.T))};
  4734. VsI=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"applicationvideodatachange",function(k,l){l=l.clipConfig;k==="dataloaded"&&l&&l.startTimeMs!=null&&l.endTimeMs!=null&&Q.api.setLoopRange({startTimeMs:Math.floor(Number(l.startTimeMs)),endTimeMs:Math.floor(Number(l.endTimeMs)),postId:l.postId,type:"clips"})})};
  4735. uf=function(T){GQ.call(this,T);this.events=new g.Bj(T);g.P(this,this.events);ws(T,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));ws(T,"setCreatorEndscreenHideButton",this.T.bind(this))};
  4736. nA=function(T,Q,k,l){zQ.call(this,"\u7a33\u5b9a\u97f3\u91cf",g.rh.U0);g.oF(this.element,"ytp-drc-menu-item");this.YB=T.K$();this.L=Q;this.T=k;this.hasDrcAudioTrack=l;T.addEventListener("videodatachange",this.S.bind(this));T.V("mta_drc_mutual_exclusion_removal")&&this.Z(T,"onPlaybackAudioChange",this.S);Q=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());T=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",
  4737. K:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z",
  4738. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(T);this.subscribe("select",this.Y,this);Xe(this,Q);this.YB.A6(this)};
  4739. KA=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);T.V("html5_show_drc_toggle")&&T.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new nA(Q.api,Q.setDrcUserPreference.bind(Q),Q.getDrcUserPreference.bind(Q),Q.S.bind(Q)),g.P(Q,Q.menuItem))});
  4740. ws(this.api,"setDrcUserPreference",function(l){Q.setDrcUserPreference(l)});
  4741. ws(this.api,"getDrcUserPreference",function(){return Q.getDrcUserPreference()});
  4742. ws(this.api,"hasDrcAudioTrack",function(){return Q.S()});
  4743. var k;this.T=(k=g.cy("yt-player-drc-pref"))!=null?k:1;this.updateEnvironmentData()};
  4744. xH=function(T){GQ.call(this,T);var Q=this;this.T={};this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"videodatachange",function(){Q.onVideoDataChange()});
  4745. this.events.Z(T,g.ej("embargo"),function(k){Q.api.qm(!0);var l,v=(l=Q.T[k.id])!=null?l:[];l=g.B(v);for(v=l.next();!v.done;v=l.next()){var L=v.value;Q.api.hideControls();Q.api.NL("auth",2,"This video isn't available in your current playback area",RE({embargoed:1,id:k.id,idx:k.S,start:k.start}));v=void 0;(L=(v=L.embargo)==null?void 0:v.onTrigger)&&Q.api.tj("innertubeCommand",L)}})};
  4746. Tt5=function(T,Q){var k;return(k=Q.onEnter)==null?void 0:k.some(T.S)};
  4747. Q3H=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=void 0,v=Number((l=k.playbackPosition)==null?void 0:l.utcTimeMillis)/1E3,L=void 0;l=v+Number((L=k.duration)==null?void 0:L.seconds);L="embargo_"+v;T.api.addUtcCueRange(L,v,l,"embargo",!1);k.onEnter&&(T.T[L]=k.onEnter.filter(T.S))}};
  4748. PR=function(T){GQ.call(this,T);var Q=this;this.T=[];this.events=new g.Bj(T);g.P(this,this.events);ws(T,"addEmbedsConversionTrackingParams",function(k){Q.addEmbedsConversionTrackingParams(k)});
  4749. this.events.Z(T,"veClickLogged",function(k){Q.api.hasVe(k)&&(k=k.visualElement.getAsJspb(),k=rL(k,2),Q.T.push(k))})};
  4750. j36=function(T){GQ.call(this,T);ws(T,"isEmbedsShortsMode",function(){return T.isEmbedsShortsMode()})};
  4751. kqu=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"initialvideodatacreated",function(k){En(Fv(),16623);Q.T=g.C9();var l=T.G().ek&&!k.vk;if(Mf(k)&&l){En(Fv(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(k.getWatchNextResponse()){var v,L=(v=k.getWatchNextResponse())==null?void 0:v.trackingParams;L&&i8(L)}if(k.getPlayerResponse()){var q;(k=(q=k.getPlayerResponse())==null?void 0:q.trackingParams)&&i8(k)}}else En(Fv(),
  4752. 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),k.getEmbeddedPlayerResponse()&&(q=(L=k.getEmbeddedPlayerResponse())==null?void 0:L.trackingParams)&&i8(q)});
  4753. this.events.Z(T,"loadvideo",function(){En(Fv(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.T})});
  4754. this.events.Z(T,"cuevideo",function(){En(Fv(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.T})});
  4755. this.events.Z(T,"largeplaybuttonclicked",function(k){En(Fv(),27240,k.visualElement)});
  4756. this.events.Z(T,"playlistnextbuttonclicked",function(k){En(Fv(),27240,k.visualElement)});
  4757. this.events.Z(T,"playlistprevbuttonclicked",function(k){En(Fv(),27240,k.visualElement)});
  4758. this.events.Z(T,"playlistautonextvideo",function(){En(Fv(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
  4759. HR=function(T,Q){g.x.call(this);var k=this;this.T=null;this.L=Q;Q=[];for(var l=0;l<=100;l++)Q.push(l/100);Q={threshold:Q,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(function(v){v=v[v.length-1];var L=null;typeof v.isVisible==="undefined"?document.visibilityState==="visible"&&v.isIntersecting&&v.intersectionRatio>0?L=v.intersectionRatio:document.visibilityState==="hidden"?L=0:L=null:L=v.isVisible?v.intersectionRatio:0;L!=null&&(L=Math.max(L,0),L=Math.min(L,
  4760. 1));k.T=L;typeof k.L==="function"&&k.L(k.T)},Q):null)&&this.S.observe(T)};
  4761. ogb=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"applicationInitialized",function(){lc6(Q)})};
  4762. lc6=function(T){var Q=T.api.getRootNode(),k,l=T.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((k=Q.parentElement)==null?void 0:k.parentElement)||Q:Q;T.T=new HR(l,function(v){v!=null&&(T.api.G().XU=v,T.api.G().U1="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
  4763. g.P(T,T.T);T.events.Z(T.api,"videoStatsPingCreated",function(v){var L=T.T;L=L.T==null?null:Math.round(L.T*100)/100;v.inview=L!=null?L:void 0;L=T.api.getPlayerSize();if(L.height>0&&L.width>0){L=[Math.round(L.width),Math.round(L.height)];var q=g.SF();q>1&&L.push(q);L=L.join(":")}else L=void 0;v.size=L})};
  4764. vgt=function(T){var Q;return((Q=((T==null?void 0:T.messageRenderers)||[]).find(function(k){return!!k.timeCounterRenderer}))==null?void 0:Q.timeCounterRenderer)||null};
  4765. tN=function(T){g.p.call(this,{X:"div",Rk:["ytp-player-content","ytp-iv-player-content"],W:[{X:"div",J:"ytp-free-preview-countdown-timer",W:[{X:"span",S6:"{{label}}"},{X:"span",J:"ytp-free-preview-countdown-timer-separator",S6:"\u2022"},{X:"span",S6:"{{duration}}"}]}]});this.api=T;this.T=null;this.L=this.S=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
  4766. qVT=function(T,Q){T.T||(T.S=Q,T.L=(0,g.XY)(),T.T=new g.ee(function(){LkI(T)},null),LkI(T))};
  4767. LkI=function(T){var Q=Math,k=Q.round,l=Math.min((0,g.XY)()-T.L,T.S);Q=k.call(Q,(T.S-l)/1E3);T.updateValue("duration",t1({seconds:Q}));Q<=0&&T.T?T.stopTimer():T.T&&T.T.start()};
  4768. ggH=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"basechromeinitialized",function(){Q.T=new tN(T);g.P(Q,Q.T);g.TQ(T,Q.T.element,4);Q.T.hide()})};
  4769. OQ=function(T){g.p.call(this,{X:"button",Rk:["ytp-fullerscreen-edu-button","ytp-button"],W:[{X:"div",Rk:["ytp-fullerscreen-edu-text"],S6:"\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"},{X:"div",Rk:["ytp-fullerscreen-edu-chevron"],W:[{X:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],K:{"data-priority":"2"}});this.ZV=T;this.fade=new g.TZ(this,250,void 0,100);this.S=this.T=!1;T.createClientVe(this.element,
  4770. this,61214);g.P(this,this.fade);this.Z(T,"fullscreentoggled",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.listen("click",this.onClick);this.Aj()};
  4771. pA=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"updateFullerscreenEduButtonSubtleModeState",function(l){Q.updateFullerscreenEduButtonSubtleModeState(l)});
  4772. ws(this.api,"updateFullerscreenEduButtonVisibility",function(l){Q.updateFullerscreenEduButtonVisibility(l)});
  4773. var k=T.G();T.V("external_fullscreen_with_edu")&&k.externalFullscreen&&h9(k)&&k.controlsType==="1"&&this.events.Z(T,"standardControlsInitialized",function(){Q.T=new OQ(T);g.P(Q,Q.T);T.oN(Q.T)})};
  4774. MXX=function(T){g.p.call(this,{X:"div",J:"ytp-gated-actions-overlay",W:[{X:"div",J:"ytp-gated-actions-overlay-background",W:[{X:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",Rk:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],K:{"aria-label":"\u5173\u95ed"},W:[g.Ix()]},{X:"div",J:"ytp-gated-actions-overlay-bar",W:[{X:"div",J:"ytp-gated-actions-overlay-text-container",W:[{X:"div",J:"ytp-gated-actions-overlay-title",S6:"{{title}}"},{X:"div",J:"ytp-gated-actions-overlay-subtitle",
  4775. S6:"{{subtitle}}"}]},{X:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var Q=this;this.api=T;this.background=this.L_("ytp-gated-actions-overlay-background");this.S=this.L_("ytp-gated-actions-overlay-button-container");this.T=[];this.Z(this.L_("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Q.api.tj("onCloseMiniplayer")});
  4776. this.hide()};
  4777. UQJ=function(T,Q){var k=0;k=0;for(var l={};k<Q.length;l={u4:void 0},k++){var v=T.T[k],L=void 0,q=(L=v)==null?void 0:L.element;q||(q=new g.p({X:"button",J:"ytp-gated-actions-overlay-button",K:{tabindex:"0"},W:[{X:"div",J:"ytp-gated-actions-overlay-button-title",S6:"{{buttonText}}"}]}),g.P(T,q),q.XB(T.S),v={element:q});l.u4=g.t(Q[k],YVX);var Y=L=void 0,U=void 0,R=((L=l.u4)==null?void 0:L.title)||((Y=l.u4)==null?void 0:(U=Y.titleFormatted)==null?void 0:U.content)||"";q.update({buttonText:R});v.listener&&
  4778. q.J6(v.listener);v.listener=q.listen("click",function(Z){return function(){var f,G=g.t((f=Z.u4)==null?void 0:f.onTap,Dh);G&&T.api.tj("innertubeCommand",G)}}(l));
  4779. T.T[k]=v}for(;k<T.T.length;)T.T.pop().element.dispose()};
  4780. RxC=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.T=new MXX(this.api);g.P(this,this.T);this.events.Z(T,"videodatachange",function(){var k,l=(k=Q.api.getVideoData())==null?void 0:k.BZ;k=Q.T;if(l){var v,L,q=((v=l.title)==null?void 0:v.content)||"";v=((L=l.subtitle)==null?void 0:L.content)||"";k.update({title:q,subtitle:v});q=l.thumbnail;L="none";if(q==null?0:q.sources){v=0;q=g.B(q.sources);for(var Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.width&&Y.url&&Y.width>
  4781. v&&(v=Y.width,L="url("+Y.url+")")}k.background.style.backgroundImage=L;UQJ(k,l.actionButtons||[]);k.show()}else k.hide()});
  4782. g.TQ(this.api,this.T.element,4)};
  4783. WR=function(T){GQ.call(this,T);var Q=this;Nf(this.api,"getSphericalProperties",function(){return Q.getSphericalProperties()});
  4784. Nf(this.api,"setSphericalProperties",function(){Q.setSphericalProperties.apply(Q,g.ZH(g.HT.apply(0,arguments)))});
  4785. ds(this.api,"getSphericalProperties",function(){return Q.api.getPresentingPlayerType()===2?{}:Q.getSphericalProperties()});
  4786. ds(this.api,"setSphericalProperties",function(){var k=g.HT.apply(0,arguments);Q.api.getPresentingPlayerType()!==2&&Q.setSphericalProperties.apply(Q,g.ZH(k))})};
  4787. $H=function(T){GQ.call(this,T);ws(T,"createClientVe",this.createClientVe.bind(this));ws(T,"createServerVe",this.createServerVe.bind(this));ws(T,"destroyVe",this.destroyVe.bind(this));ws(T,"hasVe",this.hasVe.bind(this));ws(T,"logClick",this.logClick.bind(this));ws(T,"logVisibility",this.logVisibility.bind(this));ws(T,"setTrackingParams",this.setTrackingParams.bind(this))};
  4788. JN=function(T,Q,k,l){function v(q){var Y=!(q.status!==204&&q.status!==200&&!q.response),U;q={succ:""+ +Y,rc:q.status,lb:((U=q.response)==null?void 0:U.byteLength)||0,rt:((0,g.XY)()-L).toFixed(),shost:g.Rq(T),trigger:Q};ZPC(q,T);k&&k(q);l&&!Y&&l(new g.ZK("pathprobe.net",q))}
  4789. var L=(0,g.XY)();g.zO(T,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:v,onTimeout:v})};
  4790. ZPC=function(T,Q){var k;((k=window.performance)==null?0:k.getEntriesByName)&&(Q=performance.getEntriesByName(Q))&&Q.length&&(Q=Q[0],T.pedns=(Q.domainLookupEnd-Q.startTime).toFixed(),T.pecon=(Q.connectEnd-Q.domainLookupEnd).toFixed(),T.perqs=(Q.requestStart-Q.connectEnd).toFixed(),fc5&&(T.perqsa=Q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
  4791. Gqu=function(T){fc5=T};
  4792. ec=function(T,Q){this.V4=T;this.policy=Q;this.playbackRate=1};
  4793. mQX=function(T,Q){var k=Math.min(2.5,WL(T.V4));T=Fe(T);return Q-k*T};
  4794. EQ=function(T,Q,k,l,v){v=v===void 0?!1:v;if(T.policy.OE)return Math.ceil(T.policy.OE*Q);T.policy.dV&&(l=Math.abs(l));l/=T.playbackRate;var L=1/e4(T.V4);k=Math.max(.9*(l-3),WL(T.V4)+T.V4.S.T*L)/L*.8/(Q+k);k=Math.min(k,l);T.policy.Lp>0&&v&&(k=Math.max(k,T.policy.Lp));return Ic5(T,k,Q)};
  4795. Ic5=function(T,Q,k){return Math.ceil(Math.max(Math.max(T.policy.mK,T.policy.E6*k),Math.min(Math.min(T.policy.sK,31*k),Math.ceil(Q*k))))||T.policy.mK};
  4796. hxt=function(T,Q,k){k=EQ(T,Q.T.info.qY,k.T.info.qY,0);var l=WL(T.V4)+k/e4(T.V4);return Math.max(l,l+T.policy.XZ-k/Q.T.info.qY)};
  4797. Fe=function(T){return e4(T.V4,!T.policy.kh,T.policy.Mv)};
  4798. yS=function(T){return Fe(T)/T.playbackRate};
  4799. VS=function(T,Q,k){var l=T.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],v=T.policy.playbackStartPolicy.startMinReadaheadPolicy||[];T=Infinity;Q=g.B(Q&&l.length>0?l:v);for(l=Q.next();!l.done;l=Q.next())l=l.value,v=l.minReadaheadMs||0,k<(l.minBandwidthBytesPerSec||0)||T>v&&(T=v);return T<Infinity?T/1E3:T};
  4800. T_=function(T,Q,k,l){var v=this;this.C=T;this.C_=Q;this.policy=k;this.logger=l;this.Dd=[];this.Yc=[];this.T=-1;this.jr=null;this.B=this.timestampOffset=0;this.S=10;this.N=new Set;this.dn={V5:function(L){return v.V5(L)}};
  4801. this.Y=Q.Cc?0:1;k.bR>0&&(this.S=k.bR)};
  4802. CdC=function(T,Q,k,l,v){if(!l.info.Y){if(k.length===0)k.push(l);else{var L;(T=(L=k.pop())==null?void 0:g.wd(L,l))?k.push(T):k.push(l)}return v}var q;(k=(q=k.pop())==null?void 0:g.wd(q,l))||(k=l);if(k.info.S)return T.logger&&T.logger({incompleteSegment:k.info.Bh()}),v;l=T.V5(k);v=l.NO;l={clipId:l.clipId,formatId:l.formatId,startTimeMs:l.startTimeMs,durationMs:l.uN,CB:v,iH:v};v=s35(Q,l.startTimeMs);if(L=k=v>=0?Q[v]:null){L=l;var Y=v;q=k.startTimeMs+k.durationMs;var U=L.startTimeMs+L.durationMs;if(L.startTimeMs-
  4803. q>T.S)L=!1;else if(SVH(T,k.formatId,L.formatId))k.durationMs=Math.max(q,U)-k.startTimeMs,k.iH=Math.max(k.iH,L.iH),L=!0;else if(Math.abs(k.startTimeMs-L.startTimeMs)<=T.S)if(k.durationMs>L.durationMs+T.S){var R=k.formatId,Z=k.CB;Y=k.iH;k.formatId=L.formatId;k.durationMs=L.durationMs;k.CB=L.CB;k.iH=L.iH;L.formatId=R;L.startTimeMs=U;L.durationMs=q-U;L.CB=Z;L.iH=Y;L=!1}else k.formatId=L.formatId,L=!0;else q>L.startTimeMs&&(q>U&&(Q.splice(Y+1,0,{formatId:k.formatId,startTimeMs:U,durationMs:q-U,CB:L.iH+
  4804. 1,iH:k.iH}),T.logger&&T.logger({splitOldStart:(R=k.startTimeMs)==null?void 0:R.toFixed(3),splitOldEnd:q==null?void 0:q.toFixed(3),splitNewStart:(Z=L.startTimeMs)==null?void 0:Z.toFixed(3),splitNewEnd:U==null?void 0:U.toFixed(3)})),k.durationMs=L.startTimeMs-k.startTimeMs,k.iH=L.CB-1),L=!1}L?l=k:(v+=1,Q.splice(v,0,l));R=0;for(Z=v+1;Z<Q.length;Z++){k=T;L=Q[Z];q=l;U=L.startTimeMs+L.durationMs;Y=q.startTimeMs+q.durationMs;Y>=U+k.S?k=!0:Y+k.S<L.startTimeMs?k=!1:SVH(k,L.formatId,q.formatId)?(q.durationMs=
  4805. U-q.startTimeMs,q.iH=L.iH,k=!0):(L.startTimeMs=Y,L.CB=q.iH+1,k=!1);if(!k)break;R++}R&&Q.splice(v+1,R);return v};
  4806. zxX=function(T,Q,k){k!=null&&k.SM||(T.Dd=[]);T.policy.s1?(Q=g.OA(T.Yc,{startTimeMs:Q*1E3},function(l,v){return l.startTimeMs-v.startTimeMs}),T.T!==Q&&(T.T=-1,T.L=void 0)):(BtJ(T,!0),T.T=s35(T.Yc,Q*1E3))};
  4807. s35=function(T,Q){T=g.OA(T,{startTimeMs:Q},function(k,l){return k.startTimeMs-l.startTimeMs});
  4808. return T>=0?T:-T-2};
  4809. BtJ=function(T,Q){if(T.jr){var k=T.jr.LG();if(k.length!==0){if(T.L&&Q){var l=T.L,v=l.info.N;!y4(k,v)&&l.info.j>0&&(0,g.XY)()-T.B<5E3&&(T.logger&&T.logger({dend:l.info.Bh()}),k=x1f(k,v,v+.01))}T.policy.s1&&T.logger&&T.logger({cbri:""+T.T});l=[];for(var L=v=0;v<k.length&&L<T.Yc.length;){var q=k.start(v),Y=k.end(v),U=T.Yc[L].startTimeMs/1E3,R=(T.Yc[L].startTimeMs+T.Yc[L].durationMs)/1E3;if(U<=Y&&R>=q){var Z=Object.assign({},T.Yc[L]),f=T.C_.L.get(Ew(T.Yc[L].formatId)),G=Math.max(U,q);q=f.index.ll(G+T.S/
  4810. 1E3);U=f.index.getStartTime(q);var m=q+ +(Math.abs(U-G)>T.S/1E3);G=m+T.Y;m=f.index.getStartTime(m)*1E3;L!==T.T||Q?(Z.CB=G,Z.startTimeMs=m):(T.logger&&T.logger({pEvict:"1",og:Z.startTimeMs,adj:U*1E3}),Z.CB=q+T.Y,Z.startTimeMs=U*1E3);q=void 0;U=((q=T.L)==null?void 0:q.info.duration)||11;L===T.T&&Y<R&&R-Y<=U*1.01&&(Y=R);q=Math.min(R,Y);U=f.index.ll(q-T.S/1E3);G=f.index.nm(U);U-=+(Math.abs(G-q)>T.S/1E3);q=U+T.Y;f=f.index.nm(U)*1E3;Z.iH=q;Z.durationMs=f-Z.startTimeMs;Z.CB<=Z.iH&&l.push(Z)}R<Y?L+=1:v+=
  4811. 1}T.Yc=l}}};
  4812. XrI=function(T){var Q=[],k=[].concat(g.ZH(T.Dd));T.Yc.forEach(function(q){Q.push(Object.assign({},q))});
  4813. for(var l=T.T,v=g.B(T.C.Uy()),L=v.next();!L.done;L=v.next())l=CdC(T,Q,k,L.value,l);Q.forEach(function(q){q.startTimeMs&&(q.startTimeMs+=T.timestampOffset*1E3)});
  4814. return{Yc:Q,Dd:k}};
  4815. SVH=function(T,Q,k){return Q.itag!==k.itag||Q.xtags!==k.xtags?!1:T.C_.Cc||Q.lmt===k.lmt};
  4816. wrX=function(T,Q,k){if(T.logger){for(var l=[],v=0;v<Q.length;v++){var L=Q[v],q=void 0;if((q=L.AG)==null?0:q.startTicks){var Y=q=void 0,U=void 0;l.push("i."+((q=L.formatId)==null?void 0:q.itag)+"_st."+(L.startTimeMs+"_psst.")+(((Y=L.AG)==null?void 0:Y.startTicks)+"_psd.")+((U=L.AG)==null?void 0:U.fQ))}q=void 0;l.push("i."+((q=L.formatId)==null?void 0:q.itag)+"_st."+(L.startTimeMs+"_e."+(L.startTimeMs+L.durationMs)+"_d."+L.durationMs)+("_sn."+L.CB)+("_en."+L.iH))}T.logger({p:""+k,br:l.join(";")})}};
  4817. dQT=function(T){T.Yc=[];T.Dd=[];T.N.clear();T.T=-1;T.L=void 0};
  4818. Qm=function(T,Q,k,l,v){this.loader=T;this.C_=Q;this.videoTrack=k;this.audioTrack=l;this.policy=v;this.seekCount=this.targetTime=0;this.Y=!1;this.L=null;this.S=0;this.T=this.C_.isManifestless&&!this.C_.KY};
  4819. Ntu=function(T,Q,k){if(!T.policy.N){T=Q.T.index;var l=Q.S.NO;T.f7(l)||k&&k.NO===l?(Q.N=!T.f7(l),Q.hj=!T.f7(l)):(Q.N=!0,Q.hj=!0)}};
  4820. bPX=function(T){var Q=Math.max(T.videoTrack.Y.L||0,T.audioTrack.Y.L||0);A_6(T.videoTrack);A_6(T.audioTrack);T.policy.N||x35(T.C_);T.C_.isManifestless&&!T.policy.N&&(T.T=!0,T.S=0);var k=T.loader;if(!k.policy.i9||k.policy.Gg)k.currentTime=Q;T.Y=!0;T.L=new GN;return T.L};
  4821. DQu=function(T,Q,k,l,v){if(!Q.T.ZG()){if(!(v=k===0||!!Q.L.length&&Q.L[0]instanceof jJ))a:{if(Q.L.length&&(v=Q.L[0],v instanceof kR&&v.MK&&v.vl)){v=!0;break a}v=!1}v||T.policy.T||l$(Q);return k}var L=oz(Q,k);if(!isNaN(L))return L;if(T.loader.aZ(k*1E3))return k;v.SM?T.policy.O2&&(T=vJ(T.loader,Q),r_C(Q.Y,k+T,!0)):(Q.FJ(),T.loader.Bz(!1,"sta_"+ +Q.T.info.uH()));return l&&(T=ik(l.LG(),k),!isNaN(T))?(Lr(Q,T+c_T,v),k):Lr(Q,k,v)};
  4822. uQg=function(T,Q,k,l){if(T.policy.N)!l||!T.T&&T.policy.QR||g.Ad(function(){qm(T)});
  4823. else{if(T.isSeeking()&&T.targetTime){var v=acI(T,Q,k);if(v!==-1){T.videoTrack.N=!1;T.audioTrack.N=!1;T.T=!0;T.S=0;g.Ad(function(){T.loader.T9("seekreason",{reason:"behindMinSq",tgt:v});gQ(T,v)});
  4824. return}}k?T.videoTrack.hj=!1:T.audioTrack.hj=!1;var L=!T.T;oz(T.videoTrack,T.targetTime)>=0&&oz(T.audioTrack,T.targetTime)>=0&&L?((T.videoTrack.N||T.audioTrack.N)&&T.loader.T9("iterativeSeeking",{status:"done",count:T.seekCount}),T.videoTrack.N=!1,T.audioTrack.N=!1):l&&g.Ad(function(){if(T.T||!T.policy.QR)qm(T);else{var q=Q.startTime,Y=Q.duration;if(!T.policy.N){var U=k?T.videoTrack.N:T.audioTrack.N,R=T.videoTrack.B!==-1&&T.audioTrack.B!==-1,Z=T.targetTime>=q&&T.targetTime<q+Y+.1,f=!T.videoTrack.hj&&
  4825. !T.audioTrack.hj,G=T.policy.UR&&oz(T.videoTrack,q)&&oz(T.audioTrack,q);U&&R&&f&&(Z||G?((k?T.videoTrack:T.audioTrack).N=!1,T.videoTrack.N||T.audioTrack.N||(T.loader.T9("iterativeSeeking",{status:"done",target:q,originalTime:q+T.loader.Px(),count:T.seekCount}),T.seekCount=0)):T.seekCount<8?(T.seekCount++,T.loader.T9("iterativeSeeking",{status:"inprogress",count:T.seekCount,target:T.targetTime,actual:q,duration:Y,isVideo:k}),T.seek(T.targetTime,{})):(T.loader.T9("iterativeSeeking",{status:"incomplete",
  4826. count:T.seekCount,target:T.targetTime,actual:q}),T.seekCount=0,T.videoTrack.N=!1,T.audioTrack.N=!1,Mm(T.loader,q+.1,{M5:!0,I_:"chunkSelectorSynchronizeMedia",J_:!0})))}}})}};
  4827. acI=function(T,Q,k){if(!T.isSeeking())return-1;k=(k?T.videoTrack:T.audioTrack).T.index;var l=k.ll(T.targetTime);return(k.f7(T.C_.sW)||Q.NO===T.C_.sW)&&l<T.C_.sW?T.C_.SY():-1};
  4828. gQ=function(T,Q,k){T.T&&T.videoTrack.B!==-1&&T.audioTrack.B!==-1&&(T.T=!1,T.targetTime=Q,Mm(T.loader,Q+.1,{M5:!0,I_:"chunkSelectorSynchronize",J_:!0,seekSource:k}))};
  4829. qm=function(T){var Q=T.videoTrack.B!==-1,k=T.audioTrack.B!==-1;if(!Q||!k)if(Q=!Q&&YR(T.videoTrack),k=!k&&YR(T.audioTrack),Q||k){k=Q?T.videoTrack:T.audioTrack;Q=Q?T.audioTrack:T.videoTrack;k.B=YR(k).info.NO;if(T.policy.N){var l;Q.B=((l=YR(Q))==null?void 0:l.info.NO)||Q.B}if(Q.B!==-1){var v=Math.max(Q.T.index.getStartTime(Q.B),k.T.index.getStartTime(k.B));eq(T.C_)&&Math.abs(v-eq(T.C_))>432E3&&Peu(T.C_);T.S&&(v=T.S,T.S=0);g.Ad(function(){T.policy.N||gQ(T,v,102)});
  4830. T.loader.T9("initManifestlessSync",{st:v,ost:v+T.loader.Px(),a:T.audioTrack.B,v:T.videoTrack.B});T.L&&(T.L.resolve(v+.1),T.L=null);T.policy.N&&gQ(T,v,102)}}};
  4831. Ux=function(T,Q){var k=this;this.m1=T;this.requestNumber=++ngg;this.T=this.now();this.j=this.D=NaN;this.C=this.T;this.L=this.Ig=this.N=0;this.B=this.T;this.f_=this.qO=this.e6=this.Fk=this.DP=this.xm=this.S=this.Y=0;this.z9=this.isActive=!1;this.d5=this.zg=0;this.dn={vuH:function(){return k.Zr}};
  4832. this.V4=Q.V4;this.snapshot=rQf(this.V4);this.policy=this.V4.S;this.Ox=!!Q.Ox;this.uu=Q.uu;this.Ds=Q.Ds||0;this.bH=Q.bH||0;Q.By&&(this.i9=new uc);var l;this.Zr=(l=Q.Zr)!=null?l:!1;this.Ox||NMf(this.V4)};
  4833. Kk5=function(T){T.e6=Math.max(T.e6,T.N-T.DP);T.qO=Math.max(T.qO,T.C-T.Fk);T.xm=0};
  4834. Rz=function(T,Q,k){AQ5(T.V4,Q);T.i9&&(T.i9.add(Math.ceil(Q)-Math.ceil(T.C)),T.i9.add(Math.max(0,Math.ceil(k/1024)-Math.ceil(T.N/1024))));var l=Q-T.C,v=k-T.N;T.Ig=v;T.f_=Math.max(T.f_,v/(l+.01)*1E3);T.C=Q;T.N=k;T.xm&&k>T.xm&&Kk5(T)};
  4835. Zm=function(T,Q){T.url=Q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
  4836. fr=function(T,Q){Ux.call(this,T,Q);this.QR=this.Gg=!1;this.Bd=this.hj=Infinity;this.sK=NaN;this.h3=!1;this.K_=NaN;this.OG=this.Jj=this.p_=0;this.JS=Q.JS||1;this.ra=Q.ra||this.JS;this.fp=Q.fp;this.NO=Q.NO;this.Jx=Q.Jx;xQt(this);this.T2(this.T);this.Tg=(this.K_-this.T)/1E3};
  4837. PdT=function(T){var Q=T.Jj||T.p_;return Q?T.snapshot.delay+Math.min(T.bH,(T.j-T.D)/1E3)+Q:T.Tg};
  4838. G_=function(T,Q,k){if(!T.Ox){Q=Math.max(Q,.01);var l=T.Ds?Math.max(Q,k/T.Ds):Q,v=T.V4.S.L;v&&(l=Q,T.Ds&&(l=Math.max(Q,k/T.Ds*v)));tS(T.V4,Q,k,l)}};
  4839. HP5=function(T){return(T.B-T.T)/1E3};
  4840. xQt=function(T){T.sK=T.T+T.snapshot.delay*1E3;T.h3=!1};
  4841. mG=function(T,Q){if(T.fp&&T.NO!==void 0&&T.Jx!==void 0){var k=Math,l=k.min,v=T.hj;var L=T.fp;var q=T.T;if(tXf(L,T.NO))L=Q;else{var Y=0;L.Jy&&(Y=.2);L=q+(L.bH+Y)*1E3}T.hj=l.call(k,v,L);k=Math;l=k.min;v=T.Bd;L=T.fp;q=T.T;Y=OPb(L,T.NO,T.Jx);Y!==2&&(Q=Y?Q:q+L.bH*1E3,L.Jy&&(Q+=L.bH*1E3));T.Bd=l.call(k,v,Q);T.hj<=T.T?xQt(T):(T.sK=T.hj,T.h3=!0)}};
  4842. prf=function(T,Q){if(Q+1<=T.totalLength){var k=Uj(T,Q);k=k<128?1:k<192?2:k<224?3:k<240?4:5}else k=0;if(k<1||!(Q+k<=T.totalLength))return[-1,Q];if(k===1)T=Uj(T,Q++);else if(k===2)k=Uj(T,Q++),T=Uj(T,Q++),T=(k&63)+64*T;else if(k===3){k=Uj(T,Q++);var l=Uj(T,Q++);T=Uj(T,Q++);T=(k&31)+32*(l+256*T)}else if(k===4){k=Uj(T,Q++);l=Uj(T,Q++);var v=Uj(T,Q++);T=Uj(T,Q++);T=(k&15)+16*(l+256*(v+256*T))}else k=Q+1,T.focus(k),g5(T,k,4)?T=plJ(T).getUint32(k-T.L,!0):(l=Uj(T,k+2)+256*Uj(T,k+3),T=Uj(T,k)+256*(Uj(T,k+1)+
  4843. 256*l)),Q+=5;return[T,Q]};
  4844. Iz=function(T){this.m1=T;this.T=new oV};
  4845. hU=function(T,Q){this.info=T;this.callback=Q;this.state=1;this.TQ=this.VK=!1;this.N_=null};
  4846. Wk5=function(T){return g.hm(T.info.MO,function(Q){return Q.type===3})};
  4847. sx=function(T,Q,k,l){var v=this;l=l===void 0?{}:l;this.policy=Q;this.m1=k;this.status=0;this.T=new oV;this.S=0;this.wd=this.Y=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(l.method||"GET",T);if(l.headers)for(T=l.headers,Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next())k=k.value,this.xhr.setRequestHeader(k,T[k]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return v.Hw()};
  4848. this.xhr.onload=function(){return v.onDone()};
  4849. this.xhr.onerror=function(){return v.onError()};
  4850. this.xhr.fetch(function(L){v.T.append(L);v.S+=L.length;L=(0,g.XY)();v.m1.La(L,v.S)},function(){},l.body||null)};
  4851. $Qy=function(T,Q){this.S=(new TextEncoder).encode(T);this.T=(new TextEncoder).encode(Q)};
  4852. $A5=function(T,Q){var k;return g.a(function(l){if(!Q)return l.return(Q);k=new g.Ua(T.S);return l.return(k.encrypt(Q,T.T))})};
  4853. yk6=function(T,Q){var k;return g.a(function(l){if(l.S==1){if(!Q)return l.return(Q);k=new g.Ua(T.S);return g.c(l,k.decrypt(Q,T.T),2)}return l.return(l.T)})};
  4854. exy=function(T,Q){var k=this;this.T=T;this.m1=Q;this.loaded=this.status=0;this.error="";T=Vn(this.T.get("range")||"");if(!T)throw Error("bad range");this.range=T;this.S=new oV;J_b(this).then(function(){k.m1.Ex()},function(l){k.error=""+l||"unknown_err";
  4855. k.m1.Ex()})};
  4856. J_b=function(T){var Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){if(w.S==1){T.status=200;Q=T.T.get("docid");k=bX(T.T.get("fmtid")||"");l=T.T.get("lmt")||"0";v=+(T.T.get("csz")||0);if(!Q||!k||!v)throw Error("Invalid local URL");T.T.get("ck")&&T.T.get("civ")&&(L=new $Qy(T.T.get("ck"),T.T.get("civ")));q=T.range;Y=Math.floor(q.start/v);U=Math.floor(q.end/v);R=Y}if(w.S!=5)return R<=U?g.c(w,i7I(Q,k,l,R,L),5):w.Ym(0);Z=w.T;if(Z===void 0)throw Error("invariant: data is undefined");f=R*v;G=(R+1)*v;
  4857. m=Math.max(0,q.start-f);I=Math.min(q.end+1,G)-(m+f);z=new Uint8Array(Z.buffer,m,I);T.S.append(z);T.loaded+=I;T.loaded<q.length&&T.m1.La((0,g.XY)(),T.loaded);R++;return w.Ym(2)})};
  4858. Eg5=function(T,Q,k,l){var v=this;l=l===void 0?{}:l;this.policy=Q;this.m1=k;this.C=l;this.status=0;this.response=void 0;this.S=0;this.N=this.B=!1;this.errorMessage="";this.D=function(L){if(L)if(v.status=L.status,L.ok&&L.body&&v.status!==204)v.status=v.status||242,v.L=L.body.getReader(),v.wd()?v.L.cancel().catch(function(){}):(v.responseHeaders=L.headers,v.m1.ZN(),FkC(v));
  4859. else v.onDone();else v.onError(Error("null_response"))};
  4860. this.j=function(L){var q=(0,g.XY)();v.wd()||(L.done?(v.L=void 0,v.onDone()):(L=L.value,v.S+=L.length,v.T.append(L),FkC(v),v.m1.La(q,v.S)))};
  4861. this.onError=function(L){v.errorMessage=String(L);v.B=!0;v.onDone()};
  4862. this.T=new oV;this.Y=window.AbortController?new AbortController:void 0;this.start(T)};
  4863. FkC=function(T){T.L.read().then(T.j,T.onError).then(void 0,ve)};
  4864. y_6=function(T,Q,k){var l=this;k=k===void 0?{}:k;this.m1=Q;this.S=this.status=0;this.wd=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(k.method||"GET",T);if(k.headers){T=k.headers;Q=g.B(Object.keys(T));for(var v=Q.next();!v.done;v=Q.next())v=v.value,this.xhr.setRequestHeader(v,T[v])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(L){l.Hw(L)};
  4865. T=pQ(function(L){l.onDone(L)});
  4866. this.xhr.addEventListener("load",T,!1);this.xhr.addEventListener("error",T,!1);k.body?this.xhr.send(k.body):this.xhr.send();this.xhr.addEventListener("progress",pQ(function(L){l.M_(L)}),!1)};
  4867. SJ=function(T,Q,k,l,v){if(EV(T.LB))return new exy(T,k);T=T.IK();return l?en5()?new sx(T,Q,k,v):new Eg5(T,Q,k,v):new y_6(T,k,v)};
  4868. Cr=function(T,Q){g.x.call(this);var k=this;this.policy=T;this.MO=Q;this.S=0;this.T=null;this.zb=[];this.L=null;this.dn={gr:function(){return k.MO}};
  4869. this.MO.length===1||g.hm(this.MO,function(l){return!!l.range})};
  4870. BJ=function(T,Q,k){T.T&&(v3(T.T,Q),Q=T.T,T.T=null);for(var l=0,v=0,L=g.B(T.MO),q=L.next();!q.done;q=L.next())if(q=q.value,q.range&&l+q.L<=T.S)l+=q.L;else{if(k0(q)&&!k&&T.S+Q.totalLength-v<l+q.L){T.T=Q.split(v).ow;break}a:{var Y=T;var U=q,R=T.S-l,Z=Q.totalLength-v;U.range&&(Z=Math.min(U.L-R,Z));U=AWg(U,U.S+R,Z,U.range?U.S+R+Z===U.range.length:!!k);R=Lx(Q,v,Z);U=new z3(U,R);if(Y.policy.useUmp&&Y.zb.length&&(R=g.wd(Y.zb[Y.zb.length-1],U))){Y.zb[Y.zb.length-1]=R;Y=Z;break a}Y.zb.push(U);Y=Z}T.S+=Y;v+=
  4871. Y;l+=q.L;if(v===Q.totalLength)break}};
  4872. z_=function(T,Q,k,l,v,L,q,Y,U){U=U===void 0?!1:U;g.x.call(this);this.m1=T;this.policy=Q;this.eY=k;this.Xs=l;this.timing=v;this.logger=L;this.L=q;this.fH=Y;this.N=U;this.lastError=null;this.T=0;this.Y=!1;this.S=new g.FA(this.YWk,this.policy.OW,this)};
  4873. iPX=function(T){T.Xs.D=(0,g.XY)();T=XM(T);T.S=(0,g.XY)();T.started+=1};
  4874. Qt5=function(T,Q,k,l){T.timing.IX((0,g.XY)(),Q,k);Q=T.Xs;Q.L=0;Q.N=0;Q.C=0;tw(XM(T));l&&(l=XM(T),l.L+=1);if((l=T.fH)!=null&&(T=T.eY.LB,!((0,g.XY)()<l.B+3E5||EV(T))&&(Q=FQ(T))&&VXb(Q)&&l.S===wQ(Q))){var v;yp(T)&&(v=FQ(id(T)));g.ri("yt-player-bandaid-host",{primary:Q,secondary:v},864E3);l.B=(0,g.XY)();T8g(l,{primary:Q,secondary:v})}};
  4875. dQ=function(T){if(T.lastError==="ump.spsrejectfailure")T.timing.z9||IKb(T.Xs,!1,T.eY,T.policy,T.L);else{if(T.lastError==="net.timeout")T.timing.CJ((0,g.XY)());else{var Q=T.timing;Rz(Q,(0,g.XY)(),Q.N)}if(T.lastError==="net.nocontent")++T.Xs.C;else{if((Q=T.lastError==="net.timeout"||T.lastError==="net.connect"||T.lastError==="net.closed")&&!EV(T.eY.LB)){var k=XM(T);k.timedOut+=1}else k=XM(T),k.T+=1;T.timing.z9||IKb(T.Xs,Q,T.eY,T.policy,T.L)}}T.m1.OH(5)};
  4876. Nm=function(T,Q,k,l,v){return Q>=400?(T.lastError="net.badstatus",!0):(v===void 0?0:v)?(T.lastError="ump.spsrejectfailure",!0):k||l!==void 0&&l?!1:(T.lastError=Q===204?"net.nocontent":"net.connect",!0)};
  4877. AU=function(T,Q){if(T.policy.v9)return!1;var k=Q.getResponseHeader("content-type"),l=Q.Yn();T=!l||l<=T.policy.RS;return(!Q.gQ()||!k||k.indexOf("text/plain")!==-1)&&T};
  4878. k76=function(T,Q){var k="";Q=Q.k0();Q.totalLength<=T.policy.RS&&(k=jtJ(T,Mg(Q)));return k};
  4879. jtJ=function(T,Q){var k=ZC(Q);return t0(k)?(T.logger.debug(function(){return"Redirecting to "+k}),k):""};
  4880. XM=function(T){return po(T.L,FQ(T.eY.LB))};
  4881. l85=function(T){var Q=T.timing.i6();Q.shost=FQ(T.eY.LB);return Q};
  4882. ocf=function(T,Q){return(T==null?void 0:T.maxWidth)>(Q==null?void 0:Q.maxWidth)||(T==null?void 0:T.maxHeight)>(Q==null?void 0:Q.maxHeight)};
  4883. vcX=function(T,Q){for(var k=g.B(Q.keys()),l=k.next();!l.done;l=k.next())if(l=Q.get(l.value),l.length!==0){g.JT(l,function(Y,U){return U.maxFramerate-Y.maxFramerate});
  4884. for(var v=[l[0]],L=0,q=1;q<l.length;q++)ocf(l[q],v[L])&&(v.push(l[q]),L++);T=T.concat(v)}return T};
  4885. qw5=function(T,Q){var k=[];Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var v=LuH[l]||0;T.T&&v>T.T||k.push(l)}return k};
  4886. b$=function(T,Q,k){var l=gc5[T]||[];k.V("html5_shorts_onesie_mismatched_fix")&&(l=MvX[T]||[]);Q.push.apply(Q,g.ZH(l));k.V("html5_early_media_for_drm")&&Q.push.apply(Q,g.ZH(YwJ[T]||[]))};
  4887. m6t=function(T,Q){var k=g.Dd(T),l=T.G(),v=l.N;l=l.V("html5_shorts_onesie_mismatched_fix");var L=T.aD();if(l){if(!v.S){if(L&&rQ)return rQ;if(cJ)return cJ}}else if(cJ&&!v.S)return cJ;var q=[],Y=[],U={},R=Dm.concat(U6I);l&&(R=Dm.concat(RJI));T.V("html5_early_media_for_drm")&&(R=R.concat(Zog),T.V("allow_vp9_1080p_mq_enc")&&R.push(f8I));var Z=[].concat(g.ZH(G7f));T.V("html5_iamf_audio_onesie_fmt")&&Z.push(["773"]);R=g.B(R);for(var f=R.next();!f.done;f=R.next()){var G=!1;f=g.B(f.value);for(var m=f.next();!m.done;m=
  4888. f.next()){m=m.value;var I=De(m,L&&l);if(I&&I.video&&!(uk(I)&&!k.xm&&I.video.qualityOrdinal>k.ID)){var z=g.jj(T.G().experiments,"html5_drm_byterate_soft_cap");z>0&&n8b(I)&&I.qY>z||(G?(q.push(m),b$(m,q,T)):(I=xg(k,I,v),I===!0?(G=!0,q.push(m),b$(m,q,T)):U[m]=I))}}}Z=g.B(Z);for(R=Z.next();!R.done;R=Z.next())for(R=g.B(R.value),G=R.next();!G.done;G=R.next())if(G=G.value,(f=kb5(G))&&f.audio&&(T.V("html5_onesie_51_audio")||!nu(f)&&!Ku(f)))if(f=xg(k,f,v),f===!0){Y.push(G);b$(G,Y,T);break}else U[G]=f;if(!T.V("html5_enable_audio_quality_setting"))for(T=
  4889. g.B(["141","774"]),Z=T.next();!Z.done;Z=T.next())Z=Z.value,Y.includes(Z)&&(g.zv(Y,Z),U[Z]="blkhqa");k.S&&Q("orfmts",U);if(l)return v.S&&(v.S=!1,rQ=cJ=void 0),L?rQ={video:q,audio:Y}:cJ={video:q,audio:Y};cJ={video:q,audio:Y};v.S=!1;return cJ};
  4890. g.sty=function(T,Q,k){var l=k.N,v=[],L=[],q=k.V("html5_shorts_onesie_mismatched_fix");T=T.aD();var Y=Dm.concat(U6I);q&&(Y=Dm.concat(RJI));k.V("html5_early_media_for_drm")&&(Y=Y.concat(Zog),k.V("allow_vp9_1080p_mq_enc")&&Y.push(f8I));var U=[].concat(g.ZH(G7f));k.V("html5_iamf_audio_onesie_fmt")&&U.push(["773"]);Y=g.B(Y);for(var R=Y.next();!R.done;R=Y.next()){R=g.B(R.value);for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var f=De(Z,T&&q);if(f&&f.video){var G=g.jj(k.experiments,"html5_drm_byterate_soft_cap");
  4891. if(!(G>0&&n8b(f)&&f.qY>G)&&xg(Q,f,l)===!0){v.push({videoCodec:I8C[bk[Z]],maxWidth:f.video.width,maxHeight:f.video.height,maxFramerate:f.video.fps});break}}}}q=g.B(U);for(T=q.next();!T.done;T=q.next())for(T=g.B(T.value),U=T.next();!U.done;U=T.next())if(U=U.value,(Y=kb5(U))&&Y.audio&&(k.V("html5_onesie_51_audio")||!nu(Y)&&!Ku(Y))&&xg(Q,Y,l)===!0){L.push({audioCodec:hJ5[bk[U]],numChannels:Y.audio.numChannels});break}return{videoFormatCapabilities:v,audioFormatCapabilities:L}};
  4892. B8J=function(T){var Q,k={},l=T.yq,v=T.FB,L=l.getVideoData(),q=mk(0),Y=l.getVisibilityState(),U;if((U=T.qL)==null?0:U.Dz)k.xu=v.xu;q&&(k.sC=q,k.lastManualDirection=Tvy(),q=F_f()||0,q>0&&(q=(v.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.XY)())-q,v.V("html5_use_date_now_for_local_storage")?q>0&&(k.timeSinceLastManualFormatSelectionMs=q):k.timeSinceLastManualFormatSelectionMs=q));q=v.V("html5_use_streamer_bandwidth_for_low_latency_live")&&L.isLowLatencyLiveStream;if(v.schedule.z9&&!q){var R;
  4893. q=v.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((R=T.qL)==null||!R.kh):!1;k.fZ=e4(v.schedule,!q)}q=g.wC.medium;U=Math.floor(q*16/9);(R=L.aD())||(L.T&&L.L&&L.L.videoInfos.length!==0?(R=L.L.videoInfos[0],R=!!R.video&&R.video.width<R.video.height):R=!1);var Z=R;R=Z?q:U;U=Z?U:q;Z=l.Ip();q=Z.width;Z=Z.height;k.SL=Math.max(q,R);k.Tf=Math.max(Z,U);v.V("html5_enable_client_viewport_size_logging")&&v.J3()&&(R=l.KP(),l.T9("cvw",{w:q,h:Z,cvw:k.SL,cvh:k.Tf,cvu:R.T}));k.visibility=Y;k.VkK=Bd();k.vS=
  4894. l.jO()*1E3;Y=T.yq.Cm();var f,G,m,I,z;k.zZq={defaultPolicy:(Y==null?void 0:(Q=Y.eL)==null?void 0:Q.T)||0,smooth:(Y==null?void 0:(f=Y.K2)==null?void 0:f.T)||0,visibility:(Y==null?void 0:(G=Y.o4)==null?void 0:G.T)||0,qR:(Y==null?void 0:(m=Y.Io)==null?void 0:m.T)||0,performance:(Y==null?void 0:(I=Y.e0)==null?void 0:I.T)||0,speed:(Y==null?void 0:(z=Y.n2)==null?void 0:z.T)||0};var w;k.Eej=(Y==null?void 0:(w=Y.DR)==null?void 0:w.T)||0;Q=L.fetchType==="onesie"||L.NV?[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},
  4895. {trackType:2,isHdr:!0},{trackType:3,isHdr:!1},{trackType:3,isHdr:!0},{trackType:4,isHdr:!1},{trackType:4,isHdr:!0},{trackType:5,isHdr:!1},{trackType:5,isHdr:!0}]:[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},{trackType:2,isHdr:!0}];k.O8=T.authorizedFormats&&T.authorizedFormats.length>0?{authorizedFormats:T.authorizedFormats}:{authorizedFormats:Q};T.sabrLicenseConstraint&&(k.O8.sabrLicenseConstraint=T.sabrLicenseConstraint);if(v.V("html5_onesie_media_capabilities")||v.V("html5_enable_server_format_filter"))k.HU=
  4896. 3;v.V("html5_onesie_audio_only_playback")&&AL(L)&&(k.HU=1);var r;((r=T.qL)==null?0:r.F_)&&T.FM&&(k.HU=k.HU===void 0?7:k.HU|4);r=L.YP?L.YP:g.Dd(L);v.V("html5_onesie_media_capabilities")&&(k.mediaCapabilities=g.sty(L,r,v));var A;if((A=T.qL)==null?0:az(A)){f=v.N;A=[];Q=[];G=new Map;m=Array.from(f.T.values());m=g.B(m);for(I=m.next();!I.done;I=m.next())z=I.value,z.uH?Q.push({audioCodec:hJ5[z.yR],numChannels:z.numChannels,spatialCapabilityBitmask:Swg[z.yR]}):(w=I8C[z.yR],I={videoCodec:w,maxWidth:z.maxWidth||
  4897. 0,maxHeight:z.maxHeight||0,maxFramerate:z.maxFramerate||0,is10BitSupported:z.HQ||!1},z.maxBitrateBps&&(I.maxBitrateBps=z.maxBitrateBps,Y=De(z.itag),R=void 0,((R=Y)==null?0:R.video)&&xg(r,Y,f)===!0&&(Y=Y.qY*8,Y>I.maxBitrateBps&&(I.maxBitrateBps=Y))),z=w+"_"+z.HQ,w=G.get(z)||[],w.push(I),G.set(z,w));A=vcX(A,G);f={};v.V("html5_ssff_denylist_opus_low")&&(f={itagDenylist:[249,350]});k.mediaCapabilities={videoFormatCapabilities:A,audioFormatCapabilities:Q,hdrModeBitmask:3,perPlaybackAttributes:f}}var D;
  4898. if((D=T.qL)==null?0:D.T){k.Ql=r.Ql;var K;k.ID=(K=T.qL)==null?void 0:K.ID}v.OW&&(k.pF=v.OW);k.tG=T.kL;k.eE=T.eE;k.sS=T.sS;k.Ft=T.Ft;T.vp&&(k.w1e=(0,g.XY)()-T.vp);T.isPrefetch&&v.V("html5_report_prefetch_requests")&&(k.isPrefetch=!0);sd||(k.Qk9=!0);D=WL(v.schedule)*1E3;D>0&&(k.iN=D);var O;((O=T.qL)==null?0:O.aS)&&T.AX&&T.AX<Infinity&&(k.AX=T.AX);l=l.getPlaybackRate();l!==1&&(k.playbackRate=l);var E;((E=T.qL)==null?0:E.Z8)&&T.GG&&(k.h1=T.h1,k.NU=T.NU,k.GG=T.GG);I3()===1&&(k.Jm=1);v.V("html5_sabr_force_proxima")&&
  4899. (k.l2=1);E=g.jj(v.experiments,"html5_sabr_force_max_network_interruption_duration_ms");k.OC=E>0?E:v.schedule.interruptions[0]||0;var e;if((e=T.qL)==null?0:e.d5)k.FO=T.FO;v.K_&&(k.audioTrackId=v.K_);Ra(L)&&!k.audioTrackId&&(v.V("html5_fill_default_mosaic_audio_track_id")||(T=TqT(L),k.audioTrackId=T),L==null||L.T9("misstrkchg",{"default":k.audioTrackId}));if(L=D15())k.detailedNetworkType=Cxu[L]||Cxu.other;v.V("html5_enable_voice_boost")&&(k.cxH=v.wV);return k};
  4900. u$=function(T,Q,k,l,v,L,q){var Y={};Q&&(Y.cw=Q);if(!T)return Y;Y.playbackCookie=k==null?void 0:k.playbackCookie;v&&(Y.ip=v);Y.Mt=[];Y.k6=[];if(q==null?0:q.size)for(Q=g.B(q.values()),k=Q.next();!k.done;k=Q.next())Y.k6.push(k.value);if(T.sabrContextUpdates.size>0)for(Q=g.B(T.sabrContextUpdates.values()),k=Q.next();!k.done;k=Q.next())zJ5(Y,k.value,l);cv(T)&&L&&zJ5(Y,L,l);T.Yb&&(Y.ybK=T.Yb);l=T.G().T;Y.clientInfo={clientName:Xtf[l.c.toUpperCase()]||0};l.cbrand&&(Y.clientInfo.deviceMake=l.cbrand);l.cmodel&&
  4901. (Y.clientInfo.deviceModel=l.cmodel);l.cver&&(Y.clientInfo.clientVersion=l.cver);l.cos&&(Y.clientInfo.osName=l.cos);l.cosver&&(Y.clientInfo.osVersion=l.cosver);l=T.G();l.V("html5_sabr_enable_server_xtag_selection")&&l.F_&&(Y.clientInfo.hl=l.F_);T.Vl&&(Y.Vl=T.Vl);return Y};
  4902. zJ5=function(T,Q,k){var l=Q.type||0;(k==null?0:k.has(l))?T.k6.push(Q):T.Mt.push(l)};
  4903. kR=function(T,Q,k,l,v,L){var q=L===void 0?{}:L;var Y=q.hO===void 0?[]:q.hO;var U=q.d2===void 0?!1:q.d2;var R=q.Qh===void 0?0:q.Qh;var Z=q.poToken===void 0?"":q.poToken;var f=q.fH===void 0?void 0:q.fH;var G=q.Rb===void 0?"":q.Rb;var m=q.MK===void 0?0:q.MK;var I=q.vl===void 0?new Uint8Array(0):q.vl;var z=q.U7===void 0?!1:q.U7;L=q.Vm===void 0?0:q.Vm;q=q.cw===void 0?void 0:q.cw;hU.call(this,Q,v);var w=this;this.policy=T;this.logger=new g.Cy("dash/request");this.xR=this.W1=0;this.Rh=!1;this.GW=this.hV=
  4904. null;this.yX=!1;this.vl=this.MK=null;this.rK=this.Kg=!1;this.Of=null;this.Vm=this.Up=0;this.El=!1;this.dn={OH:function(A){w.OH(A)},
  4905. x39:function(){return w.N_},
  4906. zcH:function(A){w.N_=A},
  4907. y5_:function(A){w.W1=A},
  4908. Hy6:function(A){w.jV.lastError=A},
  4909. kO:function(){return w.xhr}};
  4910. this.timing=new fr(this,k);this.d2=U;this.MK=m;this.vl=I;this.eY=g.UE(this.info,this.policy,l);this.eY.set("rn",this.IB().toString());this.eY.set("rbuf",(R*1E3).toFixed().toString());this.d2&&this.eY.set("smb","1");this.policy.Xm&&Z&&this.eY.set("pot",Z);G&&this.eY.set("bbs",G);this.policy.useUmp&&!EV(this.eY.LB)&&(this.Qb=new Iz(this),this.eY.set("ump","1"),this.eY.set("srfvp","1"));if(T=this.policy.g_?this.policy.wE&&!isNaN(this.info.Jx)&&this.info.Jx>this.policy.oe?!1:!0:!1)Q=null,this.policy.PQ&&
  4911. this.policy.lS?Q=[1]:z&&(Q=[]),Q!=null&&(this.policy.Uf&&Q.push(2),this.eY.set("defsel",Q.join(",")));this.jV=new z_(this,this.policy,this.eY,this.info.Xs,this.timing,this.logger,l,f);this.hO=Y||null;this.TQ=wt5(this);iPX(this.jV);l=void 0;if(this.policy.OT||this.Qb||this.policy.e6)l={method:"POST"},Y=(0,g.nr)([120,0]),f={},this.policy.Sg&&q&&(q=u$(void 0,q),f.iU=q),this.policy.kH&&this.vl&&(f.videoPlaybackUstreamerConfig=this.vl),this.policy.e6&&(q=this.info.Y)&&Object.assign(f,q),Object.keys(f).length>
  4912. 0?l.body=g.F0(f,g.Zc):l.body=Y;if(this.MK&&this.vl){this.eY.set("iwts","1");l={method:"POST"};q={Ft:this.MK*1E3};var r;Y=(r=this.info.Y)==null?void 0:r.gV;r=g.F0({Ly:q,gV:Y||void 0,videoPlaybackUstreamerConfig:this.vl},g.Zc);l.body=r}try{this.xhr=SJ(this.eY,this.policy.C,this.timing,T,l),this.jV.S.start(),L&&(this.Xi=new g.FA(this.kp,L,this),this.Xi.start(L+(this.timing.V4.j.hx()||0)*1E3)),this.policy.uR&&Zm(this.timing,this.IK()),this.logger.debug(function(){return"Sent, itag="+w.eY.get("itag")+
  4913. " seg="+w.info.MO[0].NO+" range="+w.eY.get("range")+" time="+Math.round(w.info.MO[0].N)+"-"+Math.round(g.m9(w.info.MO).B)+" rtp="+(w.timing.zv()-Date.now()).toFixed(0)}),g.Ad(function(){})}catch(A){d66(this,A,!0)}};
  4914. wt5=function(T){if(!(Y0(T.info)&&T.info.Zr()&&T.policy.Wk&&T.hO)||T.info.Xs.L>=2||mk()>0||!lJb())return!1;var Q=T.eY.get("aitags");if(!Q)return!1;Q=bX(Q).split(",");for(var k=[],l=g.B(T.hO),v=l.next();!v.done;v=l.next())v=v.value,g.CW(Q,v)&&k.push(v);if(!k.length)return!1;T.eY.set("altitags",g.Nn(k.join(",")));return!0};
  4915. d66=function(T,Q,k){k=k===void 0?!1:k;g.bA(Q);T.jV.lastError="player.exception";T.errorMessage=Q.name+"_"+Q.message;k?g.Ad(function(){dQ(T.jV)}):dQ(T.jV)};
  4916. N8T=function(T,Q){T.timing.z9=!0;T.xhr.gQ()&&T.timing.Kn();if(T.policy.Hn){var k;(k=T.Xi)==null||k.stop()}BJ(T.N_,Q,!1)};
  4917. Awf=function(T,Q){T.info=Q;if(T.N_){var k=T.N_;Q=Q.MO;(Q.length!==k.MO.length||Q.length<k.zb.length)&&eXT("dash/request",260511119,""+Q.length,""+k.MO.length,""+k.zb.length);k.MO=Q;for(var l=Q[0].range,v=new oV,L=0;L<k.zb.length;L++)v3(v,k.zb[L].S);for(L=0;L<k.zb.length;L++){k.zb[L].info=Q[L];var q=Q[L].range;k.zb[L].S=Lx(v,q.start-l.start,q.length)}}T.TQ=!1};
  4918. bog=function(T){T.Up&&(T.xhr.status=T.Up,T.W1=T.Up)};
  4919. Kr=function(T,Q){Ux.call(this,T,Q);this.Bd=!0;this.hj=!1;this.Jj=this.sK=0;this.p_=NaN};
  4920. rwI=function(T,Q,k){var l=T.Ds?Math.max(Q,k/T.Ds):Q,v=T.V4.S.L;v&&(l=Q,T.Ds&&(l=Math.max(Q,k/T.Ds*v)));tS(T.V4,Q,k,l)};
  4921. xR=function(T){this.S={};this.logger=new g.Cy(T)};
  4922. PJ=function(T){xR.call(this,"sabr");this.m1=T};
  4923. HJ=function(T){g.x.call(this);this.Y=T;this.logger=new g.Cy("onesie");this.Wh=new Map;this.S=this.T=!1;this.qL=this.C_=null;this.L=!1};
  4924. cwT=function(T,Q,k){T.Wh.get(Q).M_=k};
  4925. pr=function(T,Q){T.Wh.has(Q)&&(tU?T.Wh.get(Q).MN.clear():T.Wh.get(Q).zb=new oV,Ox(T,Q),T.S=!0)};
  4926. D6y=function(T){for(var Q=g.B(T.Wh),k=Q.next();!k.done;k=Q.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;l.dI||pr(T,k)}};
  4927. a8b=function(T,Q){Q=T.Wh.get(Q);if(!Q)return 0;T=0;if(Q.MO.length>0){Q=g.B(Q.MO);for(var k=Q.next();!k.done;k=Q.next()){var l=void 0;T+=((l=k.value.range)==null?void 0:l.length)||0}return T}if(Q.CO.length>0)for(k=g.B(Q.CO),l=k.next();!l.done;l=k.next())T+=l.value.wv||0;return T+Q.FR};
  4928. WJ=function(T,Q){if(tU){var k=0;T=T.Wh.get(Q);if(T==null||!T.MN)return 0;T=g.B(T.MN.values());for(Q=T.next();!Q.done;Q=T.next())k+=Q.value.data.totalLength;return k}return((k=T.Wh.get(Q))==null?void 0:k.zb.totalLength)||0};
  4929. $R=function(T,Q){T=T.Wh.get(Q);if(tU){if(T==null||!T.dI)return!1;Q=T.MN.size>0;return T.lq.length>0||Q}return!(T==null||!T.dI)&&!(T==null||!T.zb.totalLength)};
  4930. uoT=function(T,Q){var k=T.Wh.get(Q),l=a8b(T,Q),v=!l&&!!k.bytesReceived;if(tU){var L;if((L=T.C_)==null?0:L.Cc){T=g.B(k.MN.values());for(Q=T.next();!Q.done;Q=T.next())if(!Q.value.TM)return!1;return v}}else if(L=T.yW(Q),v&&T.T&&L!==void 0)return L;return(v||k.bytesReceived===l)&&k.kR+WJ(T,Q)===k.bytesReceived};
  4931. ncC=function(T,Q,k){T.Wh.set(Q,{zb:new oV,kR:0,bytesReceived:0,FR:0,f3:!1,FG:!1,yW:!1,uH:k,ev:[],MO:[],CO:[],dI:!1,MN:new Map,L6:new Map,lq:[]});T.logger.debug(function(){return"[initStream] formatId: "+Q})};
  4932. KuC=function(T,Q,k,l){k.MO.push.apply(k.MO,g.ZH(l));if(tU){k.L6.has(Q)||k.L6.set(Q,[]);var v;(v=k.L6.get(Q)).push.apply(v,g.ZH(l))}else if(k.N_)for(T=g.B(l),Q=T.next();!Q.done;Q=T.next())k.N_.MO.push(Q.value);else{k.N_=new Cr(T.qL,[].concat(g.ZH(k.MO)));var L;((L=T.qL)==null?0:L.dJ)&&g.P(T,k.N_)}};
  4933. x6t=function(T,Q,k){var l,v=(l=T.C_)==null?void 0:l.L.get(Q);if(!v)return[];if(k.H5){var L;return((L=v.Ga(0,k.clipId))==null?void 0:L.MO)||[]}if(v.tH()){var q=k.startMs,Y=k.durationMs;l=1E3;var U;if(((U=T.qL)==null?0:U.T)&&k.timeRange){var R;q=(R=k.timeRange.startTicks)!=null?R:-1;var Z;Y=(Z=k.timeRange.fQ)!=null?Z:-1;var f;l=(f=k.timeRange.timescale)!=null?f:-1}if(k.Vv<0||k.qE<0||Y<0||q<0||k.wv<0||l<0)return pr(T,Q),[];T=T3(k.Vv,k.wv);Q=k.rP||0;return[new jq(3,v,T,"makeSliceInfosMediaBytes",k.qE-
  4934. 1,q/l,Y/l,Q,T.length-Q,void 0,k.Qw,k.clipId)]}if(k.qE<0)return pr(T,Q),[];var G;return((G=T.C_)==null?0:G.Cc)?(Q=v.hW,U=Q*v.info.qY,R=k.rP,((Y=T.qL)==null?0:Y.KR)&&k.timeRange&&!R&&(q=k.timeRange.startTicks/k.timeRange.timescale),[new jq(3,v,void 0,"makeSliceInfosMediaBytes",k.qE,q,Q,R,U,!0,k.Qw,k.clipId)]):[]};
  4935. PxX=function(T,Q,k){T.C_=Q;T.qL=k;Q=g.B(T.Wh);for(k=Q.next();!k.done;k=Q.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;for(var v=g.B(l.ev),L=v.next();!L.done;L=v.next()){L=L.value;var q=x6t(T,k,L);KuC(T,L.LU,l,q)}}};
  4936. JU=function(T,Q,k,l){T.logger.debug(function(){return"[addStreamData] formatId: "+k+",headerId: "+Q+" bytes: "+l.totalLength});
  4937. (T=T.Wh.get(k))&&!T.FG&&(tU?(T.MN.has(Q)||T.MN.set(Q,{data:new oV,WK:0,TM:!1}),v3(T.MN.get(Q).data,l)):v3(T.zb,l),T.bytesReceived+=l.totalLength,T.f3=!0)};
  4938. Ox=function(T,Q){T.logger.debug(function(){return"[closeStream] formatId: "+Q});
  4939. var k=T.Wh.get(Q);k&&!k.FG&&(k.FG=!0,k.M_&&k.M_(),HoX(T)&&T.Y.Zc())};
  4940. HoX=function(T){T=g.B(T.Wh.values());for(var Q=T.next();!Q.done;Q=T.next())if(!Q.value.FG)return!1;return!0};
  4941. tv5=function(T){tU=T};
  4942. eJ=function(T,Q,k,l,v,L,q){g.x.call(this);this.policy=T;this.info=Q;this.C_=k;this.m1=v;this.logger=new g.Cy("sabr");this.Qb=new Iz(this);this.d7=new PJ(this);this.Li=new HJ(this);this.state=1;this.iF=!1;this.cW=0;this.clipId="";this.qB=-1;this.g7=0;this.OQ=-1;this.El=this.B2=!1;this.vN=0;this.bQ=!1;this.policy.o$?this.LY=new Kr(this,L):this.LY=new fr(this,L);this.eY=this.policy.d5?Q.Mu:OoI(Q,this.policy,l);this.eY.set("rn",""+this.IB());this.eY.set("alr","yes");PxX(this.Li,k,T);this.jV=new z_(this,
  4943. this.policy,this.eY,Q.Xs,this.LY,this.logger,l,q,this.policy.enableServerDrivenRequestCancellation);iPX(this.jV);var Y;if((Y=this.policy)==null?0:Y.dJ)g.P(this,this.Li),g.P(this,this.jV);T=Q.S;Q={method:"POST",body:T};T&&(this.g7=T.length);try{this.xhr=SJ(this.eY,this.policy.C,this.LY,sd,Q),this.policy.uR&&Zm(this.LY,this.IK()),this.jV.S.start()}catch(U){g.rB(U)}};
  4944. ptb=function(T){T.policy.LH&&T.Dm&&!T.bQ?T.bQ=!0:T.LY.Kn()};
  4945. WuT=function(T,Q){var k=-1,l=-1,v=-1,L;if((L=T.Sv)==null?0:L.items)for(T=g.B(T.Sv.items),L=T.next();!L.done;L=T.next())L=L.value,Q<L.CN||L.CN<k||(k=L.CN,l=L.Fb,v=L.minReadaheadMs);return{wx:k,Fb:l,r3:v}};
  4946. $6g=function(T){this.T=T;this.D=this.sK=this.C=this.e6=this.Y=this.N=this.z9=this.B=this.i9=this.j=this.Bd=this.hj=this.xm=this.qO=0;this.ticks={}};
  4947. FM=function(T){T.qO||(T.qO=(0,g.XY)(),g.JB("mb_s",T.qO,T.T))};
  4948. JwJ=function(T){T.xm||(T.xm=(0,g.XY)(),g.JB("ovfs_rp",T.xm,T.T))};
  4949. eJg=function(T){T.hj||(T.hj=(0,g.XY)(),g.JB("oafs_rp",T.hj,T.T))};
  4950. Fuu=function(T){T.N||(T.N=(0,g.XY)(),g.JB("vda",T.N,T.T),T.Y&&(g.iu(),TB(4)))};
  4951. Ecu=function(T){T.Y||(T.Y=(0,g.XY)(),g.JB("ada",T.Y,T.T),T.N&&(g.iu(),TB(4)))};
  4952. ywX=function(T){T.e6||(T.e6=(0,g.XY)(),g.JB("vis_a",T.e6,T.T))};
  4953. iou=function(T){T.C||(T.C=(0,g.XY)(),g.JB("ais_a",T.C,T.T))};
  4954. Vv5=function(T){T.sK||(T.sK=(0,g.XY)(),g.JB("vrb_f",T.sK,T.T))};
  4955. TdC=function(T){T.D||(T.D=(0,g.XY)(),g.JB("arb_f",T.D,T.T))};
  4956. QXX=function(T,Q,k){var l=Q instanceof eJ&&!T.L&&!T.S,v=!T.L&&(k==null?void 0:k.info.video);k=!T.S&&(k==null?void 0:k.info.audio);Q.state===3?((v||l)&&T.tick("vrr"),(k||l)&&T.tick("arr")):Q.state===4?v?(T.L=Q.IK(),g.iu(),TB(4)):k&&(T.S=Q.IK()):Q instanceof kR&&Q.cV()&&v&&(g.iu(),TB(4))};
  4957. jXI=function(T){return!!T.S&&!!T.L};
  4958. Ex=function(T,Q,k,l,v,L){g.ox.call(this);var q=this;this.loader=T;this.C_=Q;this.policy=k;this.videoTrack=l;this.audioTrack=v;this.z9=this.T=null;this.B=this.C=NaN;this.j=0;this.D=NaN;this.L=null;this.xm=this.hj=NaN;this.i9=new Map;this.qO=this.N=this.Y=NaN;this.dn={B_k:function(){return q.S}};
  4959. this.S=L?1:0};
  4960. ljg=function(T,Q,k,l){l=l===void 0?!0:l;if(k&&!T.i9.has(Q.NO)){for(var v=Q.startTime,L=[],q=0;q<k.T.length;q++){var Y=k.T[q],U=v;v=U+k.S[q];L.push({startTime:U,endTime:v,adCpn:Y})}T.i9.set(Q.NO,L)}if(T.policy.NK)if(v=T.z9&&Q.NO===T.z9.NO+1,T.z9=Q,L=T.T&&Q.NO===T.T.NO+1,L=T.T&&v&&L&&T.T.Bn.event!=="stop"&&T.T.Bn.event!=="predictStart",q=Q.Bn||null,Y=T.videoTrack.T.index.a_(),Y=Q.NO>=Y,U=T.C_.isManifestless,q){var R;if(((R=T.T)==null?void 0:R.Bn.event)==="predictStart"&&T.T.NO<Q.NO&&q.event==="stop"){var Z;
  4961. T.loader.handleError("ssdai.missingstartcueevent",{lastpredict:((Z=T.T)==null?void 0:Z.NO)||0,csq:Q.NO},0)}T.T={Bn:q,NO:Q.NO,t5:!!k,bK:l};Y?ym(T,q,Q.NO):U&&(v?L?ym(T,q,Q.NO):q.event==="continue"||q.event==="stop"?k36(T,Q):ym(T,q,Q.NO):ym(T,q,Q.NO))}else L&&k36(T,Q),T.S===4&&i$(T,5,"qend")};
  4962. ym=function(T,Q,k){Q.startSecs+=isNaN(T.j)?0:T.j;T=T.C_;T.hj.push(Q);T.publish("cuepointsadded",k)};
  4963. v0H=function(T,Q,k){if(T.S!==0&&k&&Q.MO[0].bK()){var l=Q.MO[0].NO,v=Q.MO[0].N;Q=Q.isDecorated();o05(T,l,v,Q,k)}};
  4964. o05=function(T,Q,k,l,v){var L;Q!==((L=T.T)==null?void 0:L.NO)||T.S===1||l||T.T.Bn.event==="predictStart"||T.T9("sdai",{undecevt:1,sq:Q,mt:k,evt:T.T.Bn.event},!0);Q>T.B&&(T.B=NaN,T.C=NaN);T.T&&T.T.NO===Q?LNI(T,Q,k,T.T,v):T.S===1&&i$(T,5,"noad")};
  4965. qEy=function(T,Q,k,l,v){l.t5?i$(T,4,"cue"):(T.B=Q,T.C=k,T.T9("sdai",{joinad:T.S,sg:T.B,st:T.C.toFixed(3)}),T.D=Date.now(),i$(T,2,T.S===3?"staftpred":"join"),v.Fg(l.Bn))};
  4966. LNI=function(T,Q,k,l,v){if(v&&l){var L=l.Bn,q=v.Vi(L);L.event==="predictStart"&&(T.qO=Q);T.T9("sdai",{onqevt:L.event,sq:Q,mt:k,gab:q,cst:L.startSecs,cueid:T.policy.W9&&(q||L.event==="start")?L.identifier:void 0},!0);if(q)L.event!=="predictStart"?(L.event==="start"&&T.qO===Q-1&&T.T9("sdai",{gabonstart:Q}),qEy(T,Q,k,l,v)):T.policy.m0?i$(T,3,"predict"):(Q+=Math.max(Math.ceil(-L.T/5E3),1),L=Math.floor(k-L.T/1E3),T.policy.S?T.N=L:T.Y=Q,T.T9("sdai",{onpred:k,estsq:Q,estmt:L.toFixed(3)}),Vm(T.loader,L,L,
  4967. Q),T.D=Date.now(),i$(T,3,"predict"),v.Fg(l.Bn));else if(T.S===1){var Y;((Y=T.L)==null?0:Y.zV(k))?(Vm(T.loader,k,k,Q),i$(T,4,"sk2head")):i$(T,5,"nogab")}else L.event==="predictStart"?T.policy.S&&T.N>0?(k=Math.floor(k-L.T/1E3),T.N!==k&&T.T9("sdai",{updateSt:k,old:T.N}),T.N=k):T.Y>0&&(k=Q+Math.max(Math.ceil(-L.T/5E3),1),T.Y!==k&&(T.T9("sdai",{updateSt:k,old:T.Y}),T.Y=k)):T.policy.m0&&T.S===3&&qEy(T,Q,k,l,v)}else T.T9("sdai",{nulldec:1,sq:Q,mt:k.toFixed(3),evt:(l==null?void 0:(L=l.Bn)==null?void 0:L.event)||
  4968. "none"})};
  4969. Mqu=function(T,Q,k){if(T.policy.xs&&T.policy.S)return!(T.S===1||T.S===2||!T.policy.m0&&T.S===3&&k>=T.Y);if(T.S===1||T.S===2)return!1;if(T.S!==0&&Q===T.audioTrack){if(T.policy.S)return g0g(T.videoTrack,k)||g0g(T.videoTrack,k+1);T=Tz(T.videoTrack);if(k>(T?T.NO:-1))return!1}return!0};
  4970. QX=function(T,Q,k){return(k<0||k===T.B)&&!isNaN(T.C)?T.C:Q};
  4971. k36=function(T,Q){if(T.T){var k=T.T.Bn.bf-(Q.startTime+T.j-T.T.Bn.startSecs);k<=0||(k=new M6(T.T.Bn.startSecs-(isNaN(T.j)?0:T.j),k,T.T.Bn.context,T.T.Bn.identifier,"stop",T.T.Bn.T+Q.duration*1E3),T.T9("cuepointdiscontinuity",{segNum:Q.NO}),ym(T,k,Q.NO))}};
  4972. i$=function(T,Q,k){T.S!==Q&&(T.T9("sdai",{setsst:Q,old:T.S,r:k}),T.S=Q)};
  4973. jr=function(T,Q,k,l){(l===void 0?0:l)?i$(T,1,"seek"):Q>0&&Math.abs(Q-k)>=5&&T.S===4&&i$(T,5,"sk2t")};
  4974. YEC=function(T){this.T9=T;this.T="";this.S=new Map};
  4975. Utu=function(T,Q,k){if(T.S.has(Q.identifier)){var l=T.S.get(Q.identifier);var v=kC(l.event||"unknown");kC(Q.event)>v&&(l.startTimeSecs=Q.startSecs,l.bf=Q.bf,l.event=Q.event,v===kC("predictStart")&&(l.YW=Date.now()))}else l={event:Q.event,startTimeSecs:Q.startSecs,bf:Q.bf,Mc:[]},T.S.set(Q.identifier,l);T.L&&k>-1&&k<T.L||(T.T=Q.event==="stop"?"":Q.identifier)};
  4976. kC=function(T){switch(T){case "predictStart":return 1;case "start":return 2;case "continue":return 3;case "stop":return 4;default:return 0}};
  4977. RaX=function(T){switch(T){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}};
  4978. l4=function(T,Q,k){this.audio=T;this.video=Q;this.reason=k};
  4979. om=function(T,Q,k){this.T=T;this.reason=Q;this.token=k;this.videoId=void 0};
  4980. v7=function(T,Q,k){g.x.call(this);this.policy=T;this.Y=Q;this.T9=k;this.L=new Map;this.N=0;this.B=!1;this.T="";this.S=!1};
  4981. Lf=function(T,Q,k){if(k===void 0?0:k)T.B=!0;++T.N;k=6E4*Math.pow(2,T.N);k=(0,g.XY)()+k;T.L.set(Q.info.id,k)};
  4982. qv=function(T){for(var Q=g.B(T.L.entries()),k=Q.next();!k.done;k=Q.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;l<(0,g.XY)()&&T.L.delete(k)}return T.L};
  4983. ZyX=function(T){return T.B&&qv(T).size>0};
  4984. gX=function(T,Q){T.T!==Q&&(T.T=Q,T.S=!0)};
  4985. fjg=function(T,Q){var k;Q&&(k=g.sA(T.Y.T,function(v){return v.id===Q}));
  4986. if(!k&&(k=g.sA(T.Y.T,function(v){var L;return!((L=v.MY)==null||!L.isDefault)}),Q)){var l;
  4987. T.T9("iaf",{id:Q,sid:(l=k)==null?void 0:l.id})}return k};
  4988. YC=function(T,Q,k,l,v,L){var q=this;L=L===void 0?[]:L;this.loader=T;this.hj=Q;this.policy=k;this.C_=l;this.B=v;this.f_=L;this.logger=new g.Cy("dash/abr");this.T=GV;this.L=this.C=null;this.D=-1;this.Bd=!1;this.nextVideo=this.S=null;this.Y=[];this.Jj=new Set;this.e6={};this.K_=new Kc(1);this.j=0;this.p_=this.qO=this.z9=!1;this.xm=0;this.u9=!1;this.i9=new Set;this.sK=!1;this.dn={Xh:function(){Mv(q)}};
  4989. this.N=new v7(this.policy,v,function(Y,U){q.loader.T9(Y,U)})};
  4990. sXt=function(T,Q,k){Uh(T,Q);Q=fjg(T.N,k);k||Q||(Q=G3I(T));Q=Q||T.B.T[0];T.S=T.C_.T[Q.id];Mv(T);T.C=T.S;mty(T);Ij5(T);T.L=T.nextVideo;T.C=T.S;return hat(T)};
  4991. Bd5=function(T,Q){if(SEt(T,Q))return null;if(Q.reason==="m"&&Q.isLocked())return T.logger.debug(function(){return"User sets constraint to: "+Dc(Q)}),Uh(T,Q),T.j=T.Y.length-1,Mv(T),Rm(T),T.qO=T.qO||T.L!==T.nextVideo,T.L=T.nextVideo,new l4(T.S,T.L,Q.reason);
  4992. Q.reason==="r"&&(T.D=-1);Uh(T,Q);Rm(T);if(Q.reason==="r"&&T.nextVideo===T.L)return new l4(T.S,T.nextVideo,Q.reason);C7u(T);return null};
  4993. za5=function(T,Q,k){T.S=T.C_.T[Q];T.C=T.S;return new l4(T.C,T.L,k?"t":"m")};
  4994. X9f=function(T,Q){if(Q.info.video){if(T.L!==Q)return T.L=Q,hat(T)}else T.p_=T.C!==Q,T.C=Q;return null};
  4995. w9C=function(T,Q){if(Q.T.info.video&&Q.Y){var k=(Q.S+Q.L)/Q.duration,l=Q.T.info.qY;k&&l&&(T.K_.Q1(1,k/l),T.policy.L&&k/l>1.5&&T.loader.T9("overshoot",{sq:Q.NO,br:k,max:l}))}};
  4996. Zs=function(T,Q,k){Lf(T.N,Q,k===void 0?!1:k);T.D=-1;Uh(T,T.T)};
  4997. dtH=function(T,Q){return new l4(T.C,T.L,Q||T.T.reason)};
  4998. C7u=function(T){if(T.L&&T.nextVideo&&ff(T,T.L.info)<ff(T,T.nextVideo.info)){var Q=T.T.reason;T.z9=T.z9||Q==="r"||Q==="u"||Q==="v"}};
  4999. hat=function(T){T.Bd?T.Bd=!1:T.D=(0,g.XY)();T.z9=!1;T.sK=!1;return new l4(T.C,T.L,T.T.reason)};
  5000. NdX=function(T,Q){var k={};Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())if((l=l.value)&&l.video){var v=l.video.qualityOrdinal,L=k[v],q=L&&uk(L)&&L.video.qualityOrdinal>T.policy.ID,Y=v<=T.policy.ID?uk(l):cj(l);if(!L||q||Y)k[v]=l}return k};
  5001. Uh=function(T,Q){T.T=Q;var k=T.B.videoInfos;if(!T.T.isLocked()){var l=(0,g.XY)();k=g.bl(k,function(Y){if(Y.qY>this.policy.qY)return!1;var U=this.C_.T[Y.id];return qv(this.N).get(Y.id)>l?!1:U.Xs.L>4||U.B>4?(this.logger.debug(function(){return"Remove "+JW(Y)+"; 4 load failures"}),!1):this.i9.has(+Y.itag)?!1:!0},T);
  5002. ZyX(T.N)&&(k=g.bl(k,function(Y){return Y.video.width<=854&&Y.video.height<=480}))}k.length||(k=T.B.videoInfos);
  5003. var v=k;T.policy.vz&&(v=AqH(T,v,Q));v=g.bl(v,Q.Y,Q);if(T.T.isLocked()&&T.N.T){var L=g.sA(k,function(Y){return Y.id===T.N.T});
  5004. L?v=[L]:gX(T.N,"")}T.policy.vz||(v=AqH(T,v,Q));v.length||(v=[k[0]]);v.sort(function(Y,U){return ff(T,Y)-ff(T,U)});
  5005. Q={};for(k=1;k<v.length;Q={S$:void 0,bd:void 0},k++)Q.bd=v[k-1],Q.S$=v[k],Q.bd.video.width>Q.S$.video.width?(g.Bm(v,k),k--):ff(T,Q.bd)*T.policy.j>ff(T,Q.S$)&&(g.Bm(v,k-1),k--);var q=v[v.length-1];T.u9=!!T.L&&!!T.L.info&&T.L.info.yR!==q.yR;T.logger.debug(function(){return"Constraint: "+Dc(T.T)+", "+v.length+" fmts selectable, max selectable fmt: "+JW(q)});
  5006. T.Y=v;T.Jj.clear();Q=!1;for(k=0;k<v.length;k++)Q?T.Jj.add(v[k].itag):v[k].video.qualityOrdinal>=1080&&(Q=!0);byT(T.policy,q,T.C_.Cc)};
  5007. AqH=function(T,Q,k){var l=k.reason==="m"||k.reason==="s";T.policy.LQ&&Gz&&g.mp&&(!l||k.T<1080)&&(Q=Q.filter(function(R){return R.video&&(!R.S||R.S.powerEfficient)}));
  5008. if(Q.length>0)if(vM()){var v=NdX(T,Q);Q=Q.filter(function(R){return!!R&&!!R.video&&R.yR===v[R.video.qualityOrdinal].yR})}else{var L,q,Y=(L=Q[0])==null?void 0:(q=L.video)==null?void 0:q.qualityOrdinal;
  5009. if(Y){k=Q.filter(function(R){return!!R&&!!R.video&&R.video.qualityOrdinal===Y});
  5010. var U=NdX(T,k)[Y].yR;Q=Q.filter(function(R){return!!R&&!!R.video&&R.yR===U})}}return Q};
  5011. rqT=function(T,Q){for(var k=0;k+1<T.Y.length&&T.Y[k].video.quality==="tiny";)k++;var l=yS(T.hj)/T.policy.j;return ff(T,Q.info)+ff(T,T.Y[k])>l};
  5012. Mv=function(T){if(!T.S||!T.policy.Y&&!T.S.info.MY){var Q=T.B.T;T.S&&(Q=Q.filter(function(l){return l.audio.T===T.S.info.audio.T}),Q.length||(Q=T.B.T));
  5013. T.S=T.C_.T[Q[0].id];if(Q.length>1&&!T.policy.p_){if(!T.policy.Dz){var k=g.sA(Q,function(l){return l.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
  5014. k&&(T.S=T.C_.T[k.id])}k=!1;if(k=T.policy.gt?!0:T.T.isLocked()?T.T.T<240:rqT(T,T.S))T.S=T.C_.T[g.m9(Q).id]}}};
  5015. Rm=function(T){if(!T.nextVideo||!T.policy.Y)if(T.T.isLocked())T.nextVideo=T.T.T<=360?T.C_.T[T.Y[0].id]:T.C_.T[g.m9(T.Y).id],T.logger.debug(function(){return"Select max fmt: "+JW(T.nextVideo.info)});
  5016. else{for(var Q=Math.min(T.j,T.Y.length-1),k=yS(T.hj),l=ff(T,T.S.info),v=k/T.policy.z9-l;Q>0&&!(ff(T,T.Y[Q])<=v);Q--);for(var L=k/T.policy.j-l;Q<T.Y.length-1&&!(ff(T,T.Y[Q+1])>=L);Q++);T.nextVideo=T.C_.T[T.Y[Q].id];T.j!==Q&&T.logger.info(function(){return"Adapt to: "+JW(T.nextVideo.info)+", bandwidth: "+k.toFixed(0)+", bandwidth to downgrade: "+v.toFixed(0)+", bandwidth to upgrade: "+L.toFixed(0)+", constraint: "+Dc(T.T)});
  5017. T.j=Q}};
  5018. mty=function(T){var Q=T.policy.z9,k=yS(T.hj),l=k/Q-ff(T,T.S.info);Q=g.SA(T.Y,function(v){return ff(this,v)<l},T);
  5019. Q<0&&(Q=0);T.j=Q;T.nextVideo=T.C_.T[T.Y[Q].id];T.logger.info(function(){return"Initial selected fmt: "+JW(T.nextVideo.info)+", bandwidth: "+k.toFixed(0)+", max video byterate: "+l.toFixed(0)})};
  5020. Ij5=function(T){if(T.f_.length){var Q=T.f_,k=function(l,v){if(l.info.yR==="f"||Q.includes(Ew(g.Hj(l.info,T.C_.Cc))))return l;for(var L={},q=0;q<v.length;L={wi:void 0,Ud:void 0},q++){var Y=T.C_.T[v[q].id];if(Q.includes(Ew(g.Hj(Y.info,T.C_.Cc)))){var U=l.info.yR,R=Y.info.yR;if(U===R||vM()){if(l.info.T!==Y.info.T)return T.loader.T9("ombifa",{mismatch:"xtag",f:l.info.id,t:Y.info.id}),l;L.wi=l.info.itag;L.Ud=Y.info.itag;T.loader.T9("ombifa",{f:L.wi,t:L.Ud});T.logger.info(function(Z){return function(){return"Initial format selection changed from "+
  5021. Z.wi+" to "+Z.Ud+" based on prefetched media."}}(L));
  5022. T.Bd=!0;return Y}T.loader.T9("ombifa",{mismatch:"efficient",fc:U,tc:R})}}T.loader.T9("ombifa",{mismatch:"unselectable",fmts:Q.join(".")});return l};
  5023. T.nextVideo=k(T.nextVideo,T.B.videoInfos);T.S=k(T.S,T.B.T)}};
  5024. ff=function(T,Q){if(!T.e6[Q.id]){var k=T.C_.T[Q.id].index.Ls(T.xm,15);k=Q.S2&&T.L&&T.L.index.isLoaded()?k||Q.S2:k||Q.qY;T.e6[Q.id]=k}k=T.e6[Q.id];T.Jj.has(Q.itag)&&(k*=1.5);return k*=Math.max(1,T.K_.hx()||0)};
  5025. cqy=function(T,Q){T=aHf(T.C_.T,function(k){return k.info.itag===Q});
  5026. if(!T)throw Error("Itag "+Q+" from server not known.");return T};
  5027. DtI=function(T){var Q=[];if(T.T.reason==="m"||T.T.reason==="s")return Q;if(SMX(T.C_)){for(var k=Math.max(0,T.j-2);k<T.j&&k<T.Y.length;k++)Q.push(T.Y[k].itag);Q.reverse()}return Q};
  5028. SEt=function(T,Q){var k;return T.T.equals(Q)&&(!T.N.T||!T.T.isLocked()||((k=T.nextVideo)==null?void 0:k.info.id)===T.N.T)};
  5029. G3I=function(T){var Q=g.sA(T.B.T,function(l){return l.audio.T}),k=g.sA(T.B.T,function(l){return!l.audio.T});
  5030. return Q?T.policy.i4?Q:k:null};
  5031. aju=function(T){var Q=T===void 0?{}:T;T=Q.Jy===void 0?!1:Q.Jy;var k=Q.lS===void 0?!1:Q.lS;Q=Q.g_===void 0?!1:Q.g_;return T?Q?3:2:k?-1:1};
  5032. mr=function(T){this.track=T;this.buffered=[];this.L=this.Y=0;this.B={};this.N=0;this.T=new uc};
  5033. uG5=function(T,Q,k){T.flush();T.S=k;Im(T,3,Q)};
  5034. Im=function(T,Q,k){var l=[],v=T.track.jr;if(v){v=v.LG();for(var L=0;L<v.length;L++)l.push(Math.round(v.start(L)*1E3)),l.push(Math.round(v.end(L)*1E3))}v=1;L=l.length;if(L===T.buffered.length){for(var q=0;q<=L&&l[q]===T.buffered[q];q++);q>L?v=0:l[q]>T.buffered[q]&&(q===L-1?v=2:q===L-2&&l[q+1]>T.buffered[q+1]&&(v=3))}T.T.add(Q<<3|(k&&4)|v);Q=Math.ceil(T.track.jO()*1E3);T.T.add(Q-T.N);T.N=Q;if(v===1)for(T.T.add(L),q=Q=0;q<L;q++)T.T.add(l[q]-Q),Q=l[q];v===3&&T.T.add(l[L-2]-T.buffered[L-2]);v>=2&&T.T.add(l[L-
  5035. 1]-T.buffered[L-1]);k&&T.T.add(k);T.buffered=l};
  5036. hA=function(T,Q,k){var l=this;this.policy=T;this.T=Q;this.xm=k;this.Y=this.S=0;this.Qy=null;this.z9=new Set;this.D=[];this.indexRange=this.initRange=null;this.j=new GN;this.qO=this.hj=!1;this.dn={kEj:function(){return l.L},
  5037. bU6:function(){return l.chunkSize},
  5038. CXB:function(){return l.C},
  5039. s0d:function(){return l.B}};
  5040. (Q=n0y(this))?(this.chunkSize=Q.csz,this.L=Math.floor(Q.clen/Q.csz),this.C=Q.ck,this.B=Q.civ):(this.chunkSize=T.qq,this.L=0,this.C=g.hu(16),this.B=g.hu(16));this.N=new Uint8Array(this.chunkSize);this.C&&this.B&&(this.crypto=new $Qy(this.C,this.B))};
  5041. n0y=function(T){if(T.policy.Hl&&T.policy.gI)for(var Q=g.B(T.policy.Hl),k=Q.next(),l={};!k.done;l={VN:void 0,P3:void 0},k=Q.next())if(k=g.k5(k.value),l.VN=+k.clen,l.P3=+k.csz,l.VN>0&&l.P3>0&&T.policy.Y===k.docid&&T.T.info.id===k.fmtid&&T.T.info.lastModified===+k.lmt)return T={},T.clen=l.VN,T.csz=l.P3,T.ck=k.ck,T.civ=k.civ,T};
  5042. sh=function(T){return!!T.Qy&&T.Qy.Dq()};
  5043. P7t=function(T,Q){if(!sh(T)&&!T.wd()){if(!(T.hj||(T.hj=!0,T.L>0))){var k=Sr(T);k=Lt(T.policy.Y,T.T.info,Cf(T),k,T.policy.f_);B7(T,k)}if(Q.info.type===1){if(T.Qy){zz(T,Error("Woffle: Expect INIT slices to always start us off"));return}T.initRange=T3(0,Q.S.totalLength)}else if(Q.info.type===2)T.Qy&&T.Qy.type===1||zz(T,Error("Woffle: Index before init")),T.indexRange=T3(T.initRange.end+1,Q.S.totalLength);else if(Q.info.type===3){if(!T.Qy){zz(T,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
  5044. return}if(T.Qy.type===3&&!oX(T.Qy,Q.info)&&(T.D=[],Q.info.NO!==v9(T.Qy)||Q.info.S!==0))return;if(Q.info.Y){k=g.B(T.D);for(var l=k.next();!l.done;l=k.next())KN5(T,l.value);T.D=[]}else{T.D.push(Q);T.Qy=Q.info;return}}else{zz(T,Error("Woffle: Unexpected slice type"));return}T.Qy=Q.info;KN5(T,Q);xtu(T)}};
  5045. KN5=function(T,Q){var k=0,l=Mg(Q.S);if(T.Y<T.L){k=T.L*T.chunkSize;var v,L=(((v=Q.info.range)==null?void 0:v.start)||0)+Q.info.S;k-=L;if(k>=l.length)return;if(k<0)throw Error("Missing data");T.Y=T.L;T.S=0}for(v={};k<l.length;v={tF:void 0})if(v.tF=Math.min(l.length-k,T.N.byteLength-T.S),L=new Uint8Array(l.buffer,l.byteOffset+k,v.tF),T.N.set(L,T.S),T.S+=v.tF,k+=v.tF,T.S===T.N.length){if(Q.info===T.Qy&&sh(T)&&k===l.length)break;v=Sr(T);v=Lt(T.policy.Y,T.T.info,Cf(T),v,T.policy.f_,T.Y,T.N,T.crypto);T.z9.add(v);
  5046. B7(T,v);T.wd()||(v=Sr(T),T.xm(Cf(T),v!==void 0?(v.downloadedEndTime||0)*v.averageByteRate:v.maxKnownEndTime*v.averageByteRate,v.maxKnownEndTime*v.averageByteRate));T.N=new Uint8Array(T.chunkSize);T.S=0;T.Y+=1}};
  5047. xtu=function(T){if(sh(T))if(T.Qy&&T.indexRange)if(T.S){var Q=new Uint8Array(T.N.buffer,0,T.S),k=Hyf(T),l=T.policy.Y;Promise.all(T.z9).then(function(){var v=Lt(l,T.Qy.T.info,Cf(T,!0),k,T.policy.f_,T.Y,Q,T.crypto);B7(T,v,!0)})}else zz(T,new XI("Woffle: Expect always re-mark currentChunkOffset at EOS"));
  5048. else zz(T,new XI("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
  5049. Sr=function(T){return{downloadedEndTime:Math.round(T.Qy?T.Qy.B:0),maxKnownEndTime:Math.round(T.T.index.l6()),averageByteRate:Math.round(T.T.info.S2)}};
  5050. Hyf=function(T){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(T.T.index.l6()),averageByteRate:Math.round(T.T.info.S2)}};
  5051. Cf=function(T,Q){Q===void 0||!Q||T.indexRange&&T.initRange&&T.Qy||zz(T,new XI("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));Q={lmt:T.T.info.lastModified,docid:T.policy.Y,fmtid:T.T.info.id,type:T.T.info.mimeType.split(";")[0],csz:T.chunkSize,clen:T.Y*T.chunkSize+T.S};T.crypto&&(Q.ck=T.C,Q.civ=T.B);var k="local://localhost/videoplayback?"+TO(Q),l,v;Q={itag:+T.T.info.itag,mimeType:T.T.info.mimeType,bitrate:T.T.info.qY*8,lastModified:String(T.T.info.lastModified),initRange:(l=
  5052. T.initRange)==null?void 0:hXt(l),indexRange:(v=T.indexRange)==null?void 0:hXt(v),url:k};if(l=T.T.info.T)Q.xtags=l;if(l=T.T.info.video)if(Q.quality=l.quality,Q.qualityLabel=l.qualityLabel,Q.width=l.width,Q.height=l.height,l=l.fps)Q.fps=l;if(T=T.T.info.audio){if(l=T.sampleRate)Q.audioSampleRate=String(l);if(T=T.numChannels)Q.audioChannels=T}return Q};
  5053. B7=function(T,Q,k){k=k===void 0?!1:k;Q.then(function(l){T.z9.delete(Q);(k||l===4)&&T.j.resolve(l)},function(l){T.j.reject(l)})};
  5054. zz=function(T,Q){g.ka(T.policy.Y)!==4&&(g.lO(T.policy.Y,4),g.rB(Q),T.j.reject(new XI(Q.message)))};
  5055. XI=function(T,Q){T=Error.call(this,T);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.T=Q===void 0?!1:Q};
  5056. tq5=function(T){T=g.z7(T,1886614376);for(var Q=g.B(T),k=Q.next();!k.done;k=Q.next());return g.IQ(T,function(l){return pkg(l)})};
  5057. OyT=function(T){var Q=so(T,function(v,L){return v+L.length},0);
  5058. Q=new Uint8Array(Q);var k=0;T=g.B(T);for(var l=T.next();!l.done;l=T.next())l=l.value,Q.set(l,k),k+=l.length;return Q};
  5059. p9y=function(T,Q,k,l,v,L){this.ids=T;this.T=Q;this.S=k;this.Y=l;this.L=v;this.gN=L};
  5060. wX=function(T,Q,k){this.initData=T;this.contentType=Q;this.isPrefetch=k;this.T=this.cryptoPeriodIndex=NaN;this.L=[];this.Rd=!1;this.S=null;if((Q==null?void 0:Q.toLowerCase())==="webm"||T.length===16)this.Rd=!0};
  5061. $tu=function(T){a:{var Q=T.initData;try{for(var k=0,l=new DataView(Q.buffer);k<l.byteLength-8;){var v=l.getUint32(k);if(v<=1)break;if(l.getUint32(k+4)===1886614376){var L=32;if(l.getUint8(k+8)>0){var q=l.getUint32(k+28);L+=q*16+4}var Y=l.getUint32(k+L-4);try{var U=WNf(Q.subarray(k+L,k+L+Y));if(U!==null){var R=U;break a}}catch(Z){}}k+=v}R=null;break a}catch(Z){R=null;break a}R=void 0}if(R!=null)for(Q=mY(jQ(R,7,void 0,uq)),Q==null||T.Rd||(T.cryptoPeriodIndex=Q),Q=mY(jQ(R,10,void 0,uq)),Q!=null&&Q>0&&
  5062. !T.Rd&&(T.T=Q),R=gL(R,2,dnX,void 0===ri5?2:4),R=g.B(R),l=R.next();!l.done;l=R.next())Q=T.L,k=Q.push,l=uS(l.value),l=g.dJ(l,4),k.call(Q,l)};
  5063. JqT=function(T){return isNaN(T.cryptoPeriodIndex)?g.dJ(T.initData):""+T.cryptoPeriodIndex};
  5064. dX=function(T,Q,k){var l=k===void 0?{}:k;k=l.videoDuration===void 0?0:l.videoDuration;var v=l.YA===void 0?void 0:l.YA;l=l.VZ===void 0?!1:l.VZ;this.videoId=T;this.status=Q;this.videoDuration=k;this.YA=v;this.VZ=l};
  5065. eaf=function(T,Q,k,l,v){this.videoId=T;this.VC=Q;this.S=k;this.bytesDownloaded=l;this.T=v};
  5066. Nv=function(T){this.T=T;this.offset=0};
  5067. AA=function(T){if(T.offset>=T.T.totalLength)throw Error();return Uj(T.T,T.offset++)};
  5068. FNy=function(T,Q){Q=Q===void 0?!1:Q;var k=AA(T);if(k===1){Q=-1;for(k=0;k<7;k++){var l=AA(T);Q===-1&&l!==255&&(Q=0);Q>-1&&(Q=Q*256+l)}return Q}l=128;for(var v=0;v<6&&l>k;v++)k=k*256+AA(T),l*=128;return Q?k:k-l};
  5069. E0g=function(T){try{var Q=FNy(T,!0),k=FNy(T,!1);return{id:Q,size:k}}catch(l){return{id:-1,size:-1}}};
  5070. yqH=function(T){for(var Q=new Nv(T),k=-1,l=0,v=0;!l||!v;){var L=E0g(Q),q=L.id;L=L.size;if(q<0)return;if(q===176){if(L!==2)return;l=Q.je()}else if(q===186){if(L!==2)return;v=Q.je()}q===374648427?k=Q.je()+L:q!==408125543&&q!==174&&q!==224&&Q.skip(L)}Q=Yl(T,0,k);k=new DataView(Q.buffer);k.setUint16(l,3840);k.setUint16(v,2160);l=new oV([Q]);v3(l,T);return l};
  5071. iyJ=function(T,Q,k){var l=this;this.loader=T;this.policy=Q;this.N=k;this.logger=new g.Cy("dash");this.S=[];this.T=null;this.hj=-1;this.D=0;this.i9=NaN;this.z9=0;this.L=NaN;this.j=this.Bd=0;this.u9=-1;this.e6=this.Y=this.B=this.xm=null;this.K_=this.p_=NaN;this.C=this.qO=this.Jj=this.f_=null;this.zg=!1;this.sK=this.timestampOffset=0;this.dn={Uy:function(){return l.S}};
  5072. if(this.policy.Y){var v=this.N,L=this.policy.Y;this.policy.f_&&T.T9("atv",{ap:this.policy.f_});this.C=new hA(this.policy,v,function(q,Y,U){b4(T,new dX(l.policy.Y,2,{YA:new eaf(L,q,v.info,Y,U)}))});
  5073. this.C.j.promise.then(function(q){l.C=null;q===1?b4(T,new dX(l.policy.Y,q)):l.loader.T9("offlineerr",{status:q.toString()})},function(q){var Y=(q.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
  5074. q instanceof XI&&!q.T?(l.logger.info(function(){return"Assertion failed: "+Y}),l.loader.T9("offlinenwerr",{em:Y}),rX(l),b4(T,new dX(l.policy.Y,4))):(l.logger.info(function(){return"Failed to write to disk: "+Y}),l.loader.T9("dldbwerr",{em:Y}),rX(l),b4(T,new dX(l.policy.Y,4,{VZ:!0})))})}};
  5075. Vqu=function(T){return T.S.length?T.S[0]:null};
  5076. Tx5=function(T,Q){return T.S.some(function(k){return k.info.NO===Q})};
  5077. omu=function(T,Q,k,l){l=l===void 0?0:l;if(T.Y){var v=T.Y.S+T.Y.L;if(k.info.S>0)if(k.info.NO===T.Y.NO&&k.info.S<v){if(k.info.S+k.info.L<=v)return;k=VIC(k,v-k.info.S)[1]}else if(k.info.NO>=0&&T.Y.NO>=0&&!oX(T.Y,k.info))throw new g.Wy("improper_continuation",T.Y.Bh(),k.info.Bh());BCH(T.Y,k.info)||c7(T,"d")}else if(k.info.S>0)throw new g.Wy("continuation_of_null",k.info.Bh());T.Y=k.info;T.N=k.info.T;if(k.info.S===0){if(T.T)if(!T.loader.isOffline()||T.policy.dC)T.loader.T9("slice_not_fully_processed",
  5078. {buffered:T.T.info.Bh(),push:k.info.Bh()});else throw new g.Wy("slice_not_fully_processed",T.T.info.Bh(),k.info.Bh());Ds(T);T.Bd=l}else{if(T.Bd&&l&&T.Bd!==l)throw T=new g.Wy("lmt_mismatch",k.info.NO,T.Bd,l),T.level="WARNING",T;!k.info.T.tH()&&T.B&&(l=k.info,v=T.B.qB,l.C="updateWithEmsg",l.NO=v)}if(T.T){l=g.wd(T.T,k);if(!l)throw new g.Wy("failed_to_merge",T.T.info.Bh(),k.info.Bh());T.T=l}else T.T=k;a:{k=g.x9(T.T.info.T.info);if(T.T.info.type!==3){if(!T.T.info.Y)break a;T.T.info.type===6?Qng(T,Q,T.T):
  5079. jn6(T,T.T);T.T=null}for(;T.T;){l=T.T.S.totalLength;if(T.hj<=0&&T.D===0){var L=T.T.S,q=-1;v=-1;if(k){for(var Y=0;Y+8<L.totalLength;){var U=$Uu(L,Y),R=$Uu(L,Y+4);Y+=U||1;if(R===1836019558)q=Y;else if(R===1835295092){v=Y;break}}v<0&&(q=-1)}else{L=new Nv(L);for(U=Y=!1;;){R=L.je();var Z=E0g(L),f=Z.id;Z=Z.size;if(!(f>0))break;if(f!==408125543)if(f===524531317)Y=!0,Z>=0&&(v=L.je()+Z,U=!0);else{if(Y&&(f===160||f===163)&&(q<0&&(q=R),U))break;f===163&&(q=Math.max(0,q),v=L.je()+Z);if(f===160){q<0&&(v=q=L.je()+
  5080. Z);break}L.skip(Z)}}q<0&&(v=-1)}if(q<0)break;T.hj=q;T.D=v-q}if(T.hj>l)break;T.hj?(l=k6t(T,T.hj),l.N&&lE5(T,l),Qng(T,Q,l),am(T,l),T.hj=0):T.D&&(l=k6t(T,T.D<0?Infinity:T.D),T.D-=l.S.totalLength,am(T,l))}}T.T&&T.T.info.Y&&(am(T,T.T),T.T=null)};
  5081. jn6=function(T,Q){!Q.info.T.tH()&&Q.info.S===0&&(g.x9(Q.info.T.info)||Q.info.T.info.Rd())&&oTC(Q);if(Q.info.type===1)try{lE5(T,Q),vm5(T,Q)}catch(v){g.bA(v);var k=Ly(Q.info);k.hms="1";T.loader.handleError("fmt.unparseable",k||{},1)}k=Q.info.T;k.dR(Q);T.C&&P7t(T.C,Q);if(k.ZG()&&T.policy.T)a:{T=T.loader.C_;Q=Q.info.clipId;k=g.Hj(k.info,T.Cc);if(Q){var l=Ew({itag:k.itag,lmt:T.Cc?0:k.lmt||0,xtags:k.xtags});if(T.u9[l])break a;T.u9[l]=Q}T.p_.push(k)}};
  5082. r_C=function(T,Q,k){if(T.S.length!==0&&(k||T.S.some(function(L){return L.info.N<Q}))){k=0;
  5083. for(var l=g.B(T.S),v=l.next();!v.done;v=l.next()){v=v.value;if(v.info.N<Q)break;T.loader.T9("cmat",{max:Q,s:v.info.Bh()});k+=1}T.S.splice(0,k)}};
  5084. rX=function(T){var Q;(Q=T.C)==null||Q.dispose();T.C=null};
  5085. L05=function(T){var Q=T.S.reduce(function(k,l){return k+l.S.totalLength},0);
  5086. T.T&&(Q+=T.T.S.totalLength);return Q};
  5087. qdI=function(T){if(T.qO&&!T.policy.Ak){var Q=T.loader;Q.C_.isManifestless&&yb(Q.C_,T.qO.NO,!!T.N.info.video)}T.qO=null;T.B=null;T.Y=T.f_;T.L=T.Y?T.L-T.z9:NaN;Ds(T)};
  5088. k6t=function(T,Q){var k=T.T;Q=Math.min(Q,k.S.totalLength);if(Q===k.S.totalLength)return T.T=null,k;k=VIC(k,Q);T.T=k[1];return k[0]};
  5089. lE5=function(T,Q){var k=g.XG(Q);if(DK(Q.info.T.info)&&Q.info.T.info.video.primaries==="bt2020"){var l=new Xo(k);d8(l,[408125543,374648427,174,224,21936,21937])&&(l=l.start+l.pos,k.getUint8(l)===129&&k.getUint8(l+1)===1&&k.setUint8(l+1,9))}l=Q.info.T.info;cj(l)&&!DK(l)&&(l=g.XG(Q),(new Xo(l)).H5(),r8([408125543,374648427,174,224],21936,l));Q.info.T.info.bK()&&(l=Q.info.T,l.info&&l.info.video&&l.info.video.projectionType==="MESH"&&!l.S&&(g.x9(l.info)?l.S=QEt(k):l.info.Rd()&&(l.S=q_b(k))));Q.info.T.info.Rd()&&
  5090. Q.info.bK()&&(k=g.XG(Q),(new Xo(k)).H5(),r8([408125543,374648427,174,224],30320,k)&&r8([408125543,374648427,174,224],21432,k));if(T.policy.eF&&Q.info.T.info.Rd()){k=g.XG(Q);var v=new Xo(k);if(d8(v,[408125543,374648427,174,29637])){l=bx(v,!0);v=v.start+v.pos;for(var L=0;L<l-1;L++)k.setUint8(v+L,0);k.setUint8(v+l-1,1)}}if(T.uH()&&g.x9(Q.info.T.info)){l=g.XG(Q);k=g.Z8(l,0,1701606260);L=g.Z8(l,0,1836476516);if(k&&L){k.skip(2);var q=lx(k),Y=vt(k);l=[];v=[];var U=[],R=[];if(q)for(q=0;q<Y;++q)l.push(Lo(k)),
  5091. v.push(Lo(k)),U.push(lx(k)),R.push(lx(k));else for(q=0;q<Y;++q)l.push(ot(k)),v.push(ot(k)),U.push(lx(k)),R.push(lx(k));k=g.fo(L);k=new iBX(v[0]/k,l[0]/k)}else k=null;if(k){if(g.x9(Q.info.T.info))for(l=g.XG(Q),v=g.Z8(l,0,1701082227);v;)L=v,L.type=1936419184,L.data.setUint32(L.offset+4,1936419184),v=g.Z8(l,v.offset+v.size,1701082227);T.zg=!0;Q.info.T.Y=k}}Q.info.T.tH()||Q.info.T.T||Q.info.T.indexRange||b7(Q)};
  5092. Qng=function(T,Q,k){if(k.info.T.tH()){if(T.zg&&gmb(k)&&(Q=g.XG(k),Q=g.Z8(Q,0,1953658222))){Q.skip(1);var l=kc(Q)<<16|lx(Q),v=l&1,L=l&4;if(l&256){var q=l&512,Y=l&1024;l&=2048;var U=vt(Q);U<2||(v&&Q.skip(4),L&&Q.skip(4),v=vt(Q),Q.skip((U-1)*(4+(q?4:0)+(Y?4:0)+(l?4:0))-4),Q.data.setUint32(Q.offset+Q.T,v))}}if(Q=T.xm&&!!T.xm.N.Y)if(Q=k.info.bK())Q=kNC(k),q=T.xm,u4?(Y=1/Q,Q=nf(T,Q)>=nf(q)+Y):Q=T.getDuration()>=q.getDuration(),Q=!Q;Q&&gmb(k)&&(Q=T.xm,u4?(Y=kNC(k),q=1/Y,Y=nf(T,Y),Q=nf(Q)+q-Y):Q=Q.getDuration()-
  5093. T.getDuration(),Q=1+Q/k.info.duration,TC6(g.XG(k),Q))}else{q=!1;T.B||(oTC(k),k.T&&(T.B=k.T,q=!0,v=k.info,L=k.T.qB,v.C="updateWithEmsg",v.NO=L,v=k.T,v.Dq&&(L=T.N.index,L.S=!v.Dq,L.L="emsg"),v=k.info.T.info,L=g.XG(k),g.x9(v)?Bt(L,1701671783):v.Rd()&&r8([408125543],307544935,L)));a:if((v=Aq(k,T.policy.OG))&&ll6(k))Y=M4X(T,k),T.j+=Y,v-=Y,T.z9+=v,T.L=T.policy.i5?T.L+v:NaN;else{if(T.policy.qU){if(L=U=T.loader.J_(g.dd(k),1),T.L>=0&&k.info.type!==6){if(T.policy.i5&&isNaN(T.p_)){g.rB(new g.Wy("Missing duration while processing previous chunk",
  5094. k.info.Bh()));T.loader.isOffline()&&!T.policy.dC||Ydt(T,k,L);c7(T,"m");break a}l=U-T.L;var R=l-T.j,Z=k.info.NO,f=T.e6?T.e6.NO:-1,G=T.K_,m=T.p_,I=T.policy.X0&&l>T.policy.X0,z=Math.abs(R)>10,w=Math.abs(T.L-L)<1E-7;if(Math.abs(R)>1E-4){T.sK+=1;var r=(Y=T.B)==null?void 0:FjC(Y);Y={audio:""+ +T.uH(),sq:Z.toFixed(),sliceStart:U,lastSq:f.toFixed(),lastSliceStart:G,lastSliceDuration:m,totalDrift:(l*1E3).toFixed(),segDrift:(R*1E3).toFixed(),skipRewrite:""+ +(I||z)};if(r==null?0:r.length)Y.adCpn=r[0];T.loader.handleError("qoe.avsync",
  5095. Y);T.u9=Z}I||z||w||(L=T.L);Y=M4X(T,k,U);v-=Y;T.j=l+Y}}else L=isNaN(T.L)?k.info.startTime:T.L;Ydt(T,k,L)&&(T.z9+=v,T.L=L+v,T.policy.hn&&T.sK>=T.policy.hn&&(T.sK=0,T.loader.Lt({resetForRewrites:"count"})))}T.e6=k.info;T.p_=Nt(k);k.L>=0&&(T.K_=k.L);if(q&&T.B){q=UxC(T,!0);qt(k.info,q);T.T&&qt(T.T.info,q);Q=g.B(Q);for(Y=Q.next();!Y.done;Y=Q.next())Y=Y.value,v=void 0,T.policy.N&&Y.NO!==((v=T.B)==null?void 0:v.qB)||qt(Y,q);(k.info.Y||T.T&&T.T.info.Y)&&k.info.type!==6||(T.qO=q,T.policy.S?(Q=Rhu(T.B),T.loader.WC(T.N,
  5096. q,Q)):(Q=T.loader,Q.C_.isManifestless&&Zc6(Q,q,null,!!T.N.info.video)),T.policy.NK||fEX(T))}}vm5(T,k);T.timestampOffset&&QL5(k,T.timestampOffset)};
  5097. am=function(T,Q){if(Q.info.Y){T.f_=Q.info;if(T.B){var k=T.B,l=UxC(T,!1);k=Rhu(k);T.loader.WC(T.N,l,k);T.qO||T.policy.NK||fEX(T);T.qO=null}Ds(T)}T.C&&P7t(T.C,Q);if(l=T.JV())if(l=g.wd(l,Q,T.policy.mS,T.policy.Tw)){T.S.pop();T.S.push(l);return}T.S.push(Q)};
  5098. Rhu=function(T){if(T.t5()){var Q=T.data["Stitched-Video-Id"]?T.data["Stitched-Video-Id"].split(",").slice(0,-1):[],k=FjC(T),l=[];if(T.data["Stitched-Video-Duration-Us"])for(var v=g.B(T.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),L=v.next();!L.done;L=v.next())l.push((Number(L.value)||0)/1E6);v=[];if(T.data["Stitched-Video-Start-Frame-Index"]){L=g.B(T.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var q=L.next();!q.done;q=L.next())v.push(Number(q.value)||0)}v=[];
  5099. if(T.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(L=g.B(T.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),q=L.next();!q.done;q=L.next())v.push((Number(q.value)||0)/1E6);T=new p9y(Q,k,l,v,g.Epu(T),g.yMX(T))}else T=null;return T};
  5100. Ds=function(T){T.T=null;T.hj=-1;T.D=0;T.B=null;T.i9=NaN;T.z9=0;T.qO=null};
  5101. c7=function(T,Q){Q={rst4disc:Q,cd:T.j.toFixed(3),sq:T.e6?T.e6.NO:-1};T.L=NaN;T.j=0;T.u9=-1;T.e6=null;T.K_=NaN;T.p_=NaN;T.Jj=null;T.loader.T9("mdstm",Q)};
  5102. vm5=function(T,Q){if(T.isDrm()){if(Q.info.T.info.Rd()){var k=new Xo(g.XG(Q));if(d8(k,[408125543,374648427,174,28032,25152,20533,18402])){var l=bx(k,!0);k=l!==16?null:ux(k,l)}else k=null;l="webm"}else Q.info.D=tq5(g.XG(Q)),k=OyT(Q.info.D),l="cenc";k&&k.length&&(k=new wX(k,l),T.policy.OR&&g.x9(Q.info.T.info)&&(l=v9b(g.XG(Q)))&&(k.S=l),k.Rd=Q.info.T.info.Rd(),Q.T&&Q.T.cryptoPeriodIndex&&(k.cryptoPeriodIndex=Q.T.cryptoPeriodIndex),Q.T&&Q.T.S&&(k.T=Q.T.S),T.loader.tX(k))}};
  5103. fEX=function(T){var Q=T.B,k=JMb(Q);k&&(k.startSecs+=T.i9,T.loader.L3(T.N,k,Q.qB,Q.t5()))};
  5104. UxC=function(T,Q){var k,l=T.B;if(k=JMb(l))k.startSecs+=T.i9;return new T7(l.qB,T.i9,Q?l.hW:T.z9,l.ingestionTime,"sq/"+l.qB,void 0,void 0,Q,k)};
  5105. Ydt=function(T,Q,k){if(!TfI(Q,k))return Q=Ly(Q.info),Q.smst="1",T.loader.handleError("fmt.unparseable",Q||{},1),!1;isNaN(T.i9)&&(T.i9=k);return!0};
  5106. M4X=function(T,Q,k){var l=0;if(Q.info.T.info.Rd()&&!ll6(Q))return 0;if(T.xm&&!T.uH()){var v=0;k&&g.x9(Q.info.T.info)?v=k-T.L:Q.info.T.info.Rd()&&(v=T.j);var L=Q.info.NO;k=Aq(Q,T.policy.OG);var q=T.xm;var Y=q.u9;q=q.j;var U=Math.abs(q-v)>.02;if((L===Y||L>Y&&L>T.u9)&&U){l=Math.max(.95,Math.min(1.05,(k-(q-v))/k));if(g.x9(Q.info.T.info))TC6(g.XG(Q),l);else if(Q.info.T.info.Rd()&&(L=v-q,!g.x9(Q.info.T.info)&&(Q.info.T.info.Rd(),l=new Xo(g.XG(Q)),Y=Q.N?l:new Xo(new DataView(Q.info.T.T.buffer)),Aq(Q,!0)))){var R=
  5107. L*1E3,Z=Ko(Y);Y=l.pos;l.pos=0;if(l.T.getUint8(l.pos)===160||xc(l))if(Aw(l,160))if(bx(l,!0),Aw(l,155)){if(L=l.pos,U=bx(l,!0),l.pos=L,R=R*1E9/Z,Z=ct(l),R=Z+Math.max(-Z*.7,Math.min(Z,R)),R=Math.sign(R)*Math.floor(Math.abs(R)),!(Math.ceil(Math.log(R)/Math.log(2)/8)>U)){l.pos=L+1;for(L=U-1;L>=0;L--)l.T.setUint8(l.pos+L,R&255),R>>>=8;l.pos=Y}}else l.pos=Y;else l.pos=Y;else l.pos=Y}l=Aq(Q,T.policy.OG);l=k-l}l&&Q.info.T.info.Rd()&&T.loader.T9("webmDurationAdjustment",{durationAdjustment:l,videoDrift:v+l,
  5108. audioDrift:q})}return l};
  5109. gmb=function(T){return T.info.T.tH()&&T.info.NO===T.info.T.index.a_()};
  5110. nf=function(T,Q){Q=(Q=Q===void 0?0:Q)?Math.round(T.timestampOffset*Q)/Q:T.timestampOffset;T.N.Y&&Q&&(Q+=T.N.Y.T);return Q+T.getDuration()};
  5111. G6b=function(T,Q){Q<0||(T.S.forEach(function(k){QL5(k,Q)}),T.timestampOffset=Q)};
  5112. jJ=function(T,Q,k,l,v){hU.call(this,k,v);var L=this;this.policy=T;this.formatId=Q;this.Li=l;this.lastError=null;this.M_=function(){L.wd()||(L.Li.Wh.has(L.formatId)?(L.isComplete()||L.T.start(),$R(L.Li,L.formatId)&&L.fM(2),L.Li.FG(L.formatId)&&(uoT(L.Li,L.formatId)?L.OH(4):(L.lastError="net.closed",L.OH(5)))):(L.lastError="player.exception",L.OH(5)))};
  5113. this.T=new g.FA(function(){L.isComplete()||(L.lastError="net.timeout",L.OH(5))},1E3);
  5114. this.T.start();cwT(this.Li,this.formatId,this.M_);g.Ad(this.M_)};
  5115. Kf=function(T,Q,k,l){g.x.call(this);var v=this;this.loader=T;this.policy=Q;this.T=k;this.timing=l;this.logger=new g.Cy("dash");this.L=[];this.xm=[];this.S=this.jr=null;this.Jj=!1;this.Bd=this.sK=0;this.B=-1;this.hj=!1;this.i9=-1;this.e6=null;this.qO=NaN;this.z9=[];this.dn={va:function(){return v.Y},
  5116. hFq:function(){return v.L},
  5117. ZUd:function(){return v.j}};
  5118. this.Y=new iyJ(T,Q,k);this.policy.T&&(this.j=new T_(this.Y,this.loader.getManifest(),this.policy,function(L){v.policy.cf&&v.T9("buftl",L)}));
  5119. this.policy.Ig&&(this.D=new mr(this));this.qY=k.info.qY;this.C=this.policy.qO?!1:k.Ri();this.isManifestless=k.Ri();this.N=this.C;g.P(this,this.e6)};
  5120. xC=function(T,Q,k){k=k===void 0?!1:k;Q&&u4&&G6b(T.Y,Q.Eb());if(!k){var l;(l=T.j)==null||dQT(l)}T.jr=Q;(Q=T.j)!=null&&(Q.jr=T.jr)};
  5121. P7=function(T){var Q=T.jr&&T.jr.Wy();if(T.policy.xF){if((T=T.j)==null)T=void 0;else{var k;T=(k=T.L)==null?void 0:k.info}return T||null}return Q};
  5122. mxC=function(T){for(var Q={},k=0;k<T.xm.length;k++)Q["r"+k]=T.xm[k];return Q};
  5123. H7=function(T,Q){isNaN(T.qO)||T.T9("aswr",{sq:Q.info.MO[0].NO,id:Q.info.MO[0].T.info.itag,xtag:Q.info.MO[0].T.info.T,ep:Date.now()-T.qO});T.L.push(Q);T.S=g.m9(Q.info.MO);T.xm.push(Q.Bh());T.xm.length>4&&T.xm.shift()};
  5124. IEu=function(T,Q){if(Q.HH()){var k=Q.TW();k=g.B(k);for(var l=k.next();!l.done;l=k.next())l=l.value,T.policy.L&&Q instanceof jJ&&T.T9("omblss",{s:l.info.Bh()}),tA(T,Q.info.MO,l,Q.T7())}};
  5125. tA=function(T,Q,k,l){l=l===void 0?0:l;isNaN(T.qO)||(T.T9("aswm",{sq:Q[0].NO,id:Q[0].T.info.itag,xtag:Q[0].T.info.T,ep:Date.now()-T.qO}),T.qO=NaN);switch(k.info.type){case 1:case 2:hh5(T,k);break;case 4:var v=k.info.T,L=v.dj(k),q;((q=T.S)==null?0:q.type===4)&&buC(k.info,T.S)&&(T.S=v.Ui(T.S).pop());k=g.B(L);for(v=k.next();!v.done;v=k.next())tA(T,Q,v.value,l);break;case 3:k.info.T.info.video?(v=T.timing,v.i9||(v.i9=(0,g.XY)(),g.JB("fvb_r",v.i9,v.T))):(v=T.timing,v.B||(v.B=(0,g.XY)(),g.JB("fab_r",v.B,
  5126. v.T)));omu(T.Y,Q,k,l);T.policy.T&&snI(T);break;case 6:omu(T.Y,Q,k,l),T.S=k.info}};
  5127. hh5=function(T,Q){if(Q.info.type===1)if(Q.info.T.info.video){var k=T.timing;k.Bd||(k.Bd=(0,g.XY)(),g.JB("vis_r",k.Bd,k.T))}else k=T.timing,k.j||(k.j=(0,g.XY)(),g.JB("ais_r",k.j,k.T));jn6(T.Y,Q);T=T.loader;T.videoTrack.T.ZG()&&T.audioTrack.T.ZG()&&T.policy.T&&!T.C_.Cc&&(Q=T.audioTrack.getDuration(),k=T.videoTrack.getDuration(),Math.abs(Q-k)>1&&T.T9("trBug",{af:""+g.Hj(T.audioTrack.T.info,!1),vf:""+g.Hj(T.videoTrack.T.info,!1),a:""+Q,v:""+k}))};
  5128. YR=function(T){return Vqu(T.Y)};
  5129. snI=function(T){T.L.length?T.S=g.m9(g.m9(T.L).info.MO):T.Y.S.length?T.S=T.Y.JV().info:T.S=P7(T)};
  5130. Oh=function(T,Q){var k={Yc:[],Mm:[]},l;if((T=T.j)==null)T=void 0;else{wrX(T,T.Yc,"og");BtJ(T,Q);wrX(T,T.Yc,"trim");var v=XrI(T);Q=v.Yc;v=v.Dd;for(var L=[],q=0;q<v.length;q++){var Y=v[q],U=T.policy.u9&&Y.L!==-1?Y.L:Y.info.startTime,R={startTicks:(U+T.timestampOffset)*1E3,fQ:(T.policy.u9&&Y.Y!==-1?Y.Y:Y.info.duration)*1E3,timescale:1E3},Z=void 0,f=(Z=T.jr)==null?void 0:Z.LG();Z=void 0;if(T.policy.Dy&&f&&f.length>0){var G=E_(f,U);G>=0&&(Z=(f.end(G)-U+.1)*1E3)}L.push({formatId:g.Hj(Y.info.T.info,T.C_.Cc),
  5131. Qw:Y.info.Qw,sequenceNumber:Y.info.NO+T.Y,Z2:R,tR:Y.info.L,PR:Z})}T={Yc:Q,Mm:L}}return(l=T)!=null?l:k};
  5132. oz=function(T,Q,k){k=k===void 0?!1:k;if(T.jr){var l=T.jr.LG(),v=ik(l,Q),L=NaN,q=P7(T);q&&(L=ik(l,q.T.index.getStartTime(q.NO)));if(v===L&&T.S&&T.S.L&&Sd6(pf(T),0))return Q}T=Ccg(T,Q,k);return T>=0?T:NaN};
  5133. Lr=function(T,Q,k){T.T.ZG();var l=Ccg(T,Q);if(l>=0)return l;var v;(v=T.j)==null||zxX(v,Q,k);l=Math;v=l.min;var L=T.Y;if(L.C)if(L=L.C,L.Qy&&L.Qy.type===3)L=L.Qy.startTime;else if(L.L>0){var q=L.T.index;q=g.OA(q.offsets.subarray(0,q.count),L.L*L.chunkSize);L=L.T.index.getStartTime(q>=0?q:Math.max(0,-q-2))}else L=0;else L=Infinity;Q=v.call(l,Q,L);T.S=T.policy.qO?null:T.T.A5(Q).MO[0];W7(T)&&(T.policy.Bt&&(k==null?void 0:k.seekSource)===60||T.jr&&T.jr.abort(),T.policy.O6&&(k=T.j)!=null&&(k.L=void 0));
  5134. T.Bd=0;return T.S?T.S.startTime:Q};
  5135. A_6=function(T){T.C=!0;T.N=!0;T.B=-1;Lr(T,Infinity)};
  5136. $C=function(T){for(var Q=0,k=g.B(T.L),l=k.next();!l.done;l=k.next())Q+=cWC(l.value.info);return Q+=L05(T.Y)};
  5137. er=function(T,Q){Q=Q===void 0?!1:Q;var k=T.loader.getCurrentTime(),l=T.Y.JV(),v=(l==null?void 0:l.info.B)||0;if((l==null?0:l.info.T.Ri())&&!l.info.Y)if(T.policy.FU)v=l.info.N;else if(T.policy.u$){var L=l.info;v=L.range?L.B:Math.min(L.startTime+Math.min(L.duration*L.S/L.T.info.qY,L.duration)+(L.range?L.j:Math.min(L.duration,L.duration*L.L/L.T.info.qY)),L.startTime+L.duration)}if(!T.jr)return T.policy.T&&Q&&!isNaN(k)&&l?v-k:0;if((L=P7(T))&&JA(L))return L.B;var q=T.jr.LG(!0);if(Q&&l)return L=0,T.policy.T&&
  5138. (L=Qd(q,v+.02)),L+v-k;Q=Qd(q,k);T.policy.uL&&L&&(l=E_(q,k),q=E_(q,L.N-.02),l===q&&(k=L.B-k,T.policy.L&&k>Q+.02&&T.T9("abh",{bh:Q,bhtls:k}),Q=Math.max(Q,k)));return Q};
  5139. Bxf=function(T){var Q=P7(T);return Q?Q.B-T.loader.getCurrentTime():0};
  5140. zh5=function(T,Q){if(T.L.length){if(T.L[0].info.MO[0].startTime<=Q)return;l$(T)}for(var k=T.Y,l=k.S.length-1;l>=0;l--)k.S[l].info.startTime>Q&&k.S.pop();snI(T);T.S&&Q<T.S.startTime&&(T.Bd=0,T.T.ZG()?T.S=T.T.A5(Q,!0).MO[0]:T.S=null)};
  5141. FI=function(T,Q,k,l){if(!T.T.index.f7(Q,!0))return!1;try{l$(T);for(var v=T.Y,L=null,q=v.S.length-1;q>=0;q--){var Y=v.S[q];Y.info.NO>=Q&&(v.S.pop(),v.L-=Aq(Y,v.policy.OG),L=Y.info)}L&&(v.Y=v.S.length>0?v.S[v.S.length-1].info:v.Jj,v.S.length!==0||v.Y||c7(v,"r"));v.loader.T9("mdstm",{rollbk:1,itag:L?L.T.info.itag:"",popped:L?L.NO:-1,sq:Q,lastslc:v.Y?v.Y.NO:-1,lastfraget:v.L.toFixed(3)});if(T.policy.T)return T.S=null,!0;l>k?Lr(T,l):T.S=T.T.qT(Q-1,!1).MO[0]}catch(U){return Q=GX(U),Q.details.reason="rollbkerr",
  5142. T.loader.handleError(Q.errorCode,Q.details,Q.severity),!1}return!0};
  5143. yX=function(T,Q){var k;for(k=0;k<T.L.length&&Q!==T.L[k];k++);if(k===T.L.length)Eh(T,Q);else{for(;k<T.L.length;)Eh(T,T.L.pop());var l=Tz(T);l&&l.T.Sp()&&$4(Q.info.MO,function(v){return rWX(v,l)})?(T.S=l,T.policy.L&&T.T9("cer",{lsr:"lsp",
  5144. lsp:l.Bh()})):(l7(Q.info.MO[0])?(T.S=Q.N_&&Q.N_.L?NC5(Q.N_.L):d$X(Q.info.MO[0]),T.policy.L&&T.T9("cer",{lsr:T.S.Bh(),lsp:l==null?void 0:l.Bh()})):(T.S=null,T.policy.L&&T.T9("cer",{lsr:"null",lsp:l==null?void 0:l.Bh()})),T.loader.isOffline()&&!T.policy.dC||Eh(T,Q,!0))}};
  5145. JA=function(T){return T?T.Dq():!1};
  5146. W7=function(T){var Q;!(Q=T.T.info.yR==="f")&&(Q=T.policy.Y)&&(Q=T.Y,Q=!!Q.C&&sh(Q.C));if(Q)return!0;Q=P7(T);if(!Q)return!1;var k=JA(Q)&&Q.Y;return T.isManifestless&&T.i9>0?k||Q.NO>=T.i9:k};
  5147. i4=function(T){var Q;return W7(T)||JA((Q=T.Y.JV())==null?void 0:Q.info)};
  5148. pf=function(T){var Q=[],k=P7(T);k&&Q.push(k);Q=g.bW(Q,T.Y.gr());k=g.B(T.L);for(var l=k.next();!l.done;l=k.next()){l=l.value;for(var v=g.B(l.info.MO),L=v.next(),q={};!L.done;q={KV:void 0},L=v.next())q.KV=L.value,l.VK&&(Q=g.bl(Q,function(Y){return function(U){return!buC(U,Y.KV)}}(q))),(l7(q.KV)||q.KV.type===4)&&Q.push(q.KV)}T.S&&!S_T(T.S,g.m9(Q),T.S.T.tH())&&Q.push(T.S);
  5149. return Q};
  5150. Sd6=function(T,Q){if(!T.length)return!1;for(Q+=1;Q<T.length;Q++)if(!Cky(T[Q-1],T[Q]))return!1;return!0};
  5151. Ccg=function(T,Q,k){k=k===void 0?!1:k;if(!T.S||!T.S.L)return NaN;T=pf(T);a:{Q+=.02;var l=k;l=l===void 0?!1:l;for(var v=-1,L=0;L<T.length;++L){var q=T[L];if(q.N<=Q)if(l)v=L;else if(q.startTime+q.duration>=Q){Q=L;break a}}Q=v}return Q<0?NaN:Sd6(T,k?Q:0)?T[Q].startTime:NaN};
  5152. VX=function(T){return!(!T.S||T.S.T===T.T)};
  5153. XLX=function(T){return VX(T)&&T.T.ZG()&&T.S.T.info.qY<T.T.info.qY};
  5154. wLf=function(T,Q,k){return T.policy.T?er(T,!0)<k:(T=Tz(T))&&!JA(T)?T.B>Q&&T.B<Q+k:!1};
  5155. Tz=function(T){var Q=T.Y.JV();return Q?Q.info:P7(T)};
  5156. g0g=function(T,Q){var k;return!((k=T.j)==null||!k.N.has(Q))||Tx5(T.Y,Q)};
  5157. l$=function(T){for(var Q=g.B(T.L),k=Q.next();!k.done;k=Q.next())Eh(T,k.value);T.L=[];T.S=null};
  5158. TD=function(T){var Q;(Q=T.j)==null||dQT(Q);T.z9=[]};
  5159. dxJ=function(T,Q,k){Q.VK&&((k===void 0?0:k)||!Q.info.MO[0].T.Sp())&&(T.logger.debug(function(){return"Rolling back request with segNum "+Q.info.MO[0].NO}),qdI(T.Y))};
  5160. Eh=function(T,Q,k){dxJ(T,Q,k===void 0?!1:k);Q.dispose()};
  5161. Nxy=function(T){return!!T.S&&T.S.NO!==-1&&T.S.NO<T.T.index.p7()};
  5162. ASy=function(T){var Q=T.S;Q&&Q.NO===-1&&(T=T.Y.JV())&&l7(T.info)&&(T=T.info.NO,Q.C="updateLastSliceRequested",Q.NO=T)};
  5163. bcX=function(T){return $4(T.L,function(Q){return Q.TQ})};
  5164. rSg=function(T,Q){T.S&&(T.S.T=Q)};
  5165. Q3=function(T,Q){return T.jr?y4(T.jr.LG(),Q):!0};
  5166. j3=function(T){var Q;return!((Q=YR(T))==null||!Q.isLocked)};
  5167. cSb=function(T,Q){var k=YR(T);return k&&k.info.type!==6?!Mqu(Q,T,k.info.NO):!1};
  5168. DxX=function(T){if((T=T.j)==null)T=void 0;else if(T.Yc.length===0||T.policy.s1&&T.T<0)T=null;else{var Q=T.Yc[T.T]?T.Yc[T.T].formatId:null;T=Q?(T=T.C_.L.get(Ew(Q)))?T.info:null:null}return T||null};
  5169. aEt=function(T,Q){T=g.B(T.z9);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.qB===Q)return k.Qy6?2:1;return 0};
  5170. uK5=function(){this.Jy=!1};
  5171. nmg=function(T){var Q=T===void 0?{}:T;T=Q.hasSubfragmentedFmp4===void 0?!1:Q.hasSubfragmentedFmp4;Q=Q.nP===void 0?!1:Q.nP;var k=new uK5;k.Jy=T||Q;return k};
  5172. g.K06=function(T){this.FB=T;this.C=new uK5;this.Gt=this.K5=!1;this.U2=2;this.Bd=20971520;this.zg=8388608;this.hj=120;this.E6=this.UY=this.nR=2;this.RM=this.VF=!1;this.SP=1E3;this.h3=15;this.b7=1;this.j=1.15;this.z9=1.05;this.Rx=1;this.kh=this.YP=!1;this.Yh=6;this.L=!1;this.IT=100;this.vA=10;this.Re=6;this.cg=!1;this.QV=1;this.lS=this.Wk=!1;this.xE=2;this.qU=this.VD=!1;this.QR=!0;this.Ah=this.Dz=this.p_=this.gt=!1;this.Qm=!0;this.rZ=!1;this.Y="";this.Hl=[];this.BH=this.Ig=!1;this.ID=0;this.E4="";this.wV=
  5173. this.jy=this.cf=this.aS=this.NV=this.N=this.Jp=this.Sf=this.XQ=this.T=this.f_=this.xm=this.O6=this.xF=this.D=this.NK=this.Bt=!1;this.pG=!0;this.n5=this.u$=this.FU=this.Z6=this.IS=this.S=this.u9=!1;this.Jj=!0;this.uK=this.Hf=this.f5=this.O2=this.nG=this.Fk=this.KR=this.Ws=this.Dy=this.GT=this.F_=this.CH=this.qO=this.K7=this.Gg=this.i9=!1;this.Tg=2;this.Ek=this.iK=this.R0=!1;this.Rq=this.FB.V("html5_report_eos");this.Zy=g.jj(this.FB.experiments,"html5_min_readbehind_secs");this.Yb=g.jj(this.FB.experiments,
  5174. "html5_min_readbehind_cap_secs");this.dC=this.FB.V("html5_offline_reset_media_stream_on_unresumable_slices");this.qY=NaN;this.mK=kx(this,"html5_request_size_min_kb",64)*1024;this.sK=2097152;this.xb=kx(this,"html5_bypass_contention_secs");this.Mv=1048576;this.OW=kx(this,"html5_repredict_interval_ms",1800);this.c9=kx(this,"html5_head_miss_secs",5);this.XZ=kx(this,"html5_min_upgrade_health_secs",10);this.iL=kx(this,"html5_min_seconds_between_format_selections",8);this.vP=kx(this,"html5_max_buffer_health_for_downgrade_secs",
  5175. 15);this.g_=sd;this.iS=g.jj(this.FB.experiments,"html5_min_startup_buffered_media_duration_secs");this.Ps=g.jj(this.FB.experiments,"html5_post_interrupt_readahead");this.v9=this.FB.V("html5_disable_classic_alr");this.p5=g.jj(this.FB.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.A7=kx(this,"html5_ssdai_failure_retry_limit",3);this.NE=this.FB.experiments.Wd("html5_clone_original_for_fallback_location");this.t6=g.jj(this.FB.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
  5176. this.eO=g.jj(this.FB.experiments,"html5_subsegment_readahead_timeout_secs");this.p9=g.jj(this.FB.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.wJ=g.jj(this.FB.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.f9=g.jj(this.FB.experiments,"html5_subsegment_readahead_min_load_speed");this.bx=g.jj(this.FB.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.hC=g.jj(this.FB.experiments,"html5_subsegment_readahead_seek_latency_fudge");
  5177. this.Lp=kx(this,"html5_hopeless_secs",15);this.wE=this.FB.V("html5_restrict_streaming_xhr_on_sqless_requests");this.oe=g.jj(this.FB.experiments,"html5_max_headm_for_streaming_xhr");this.fh=this.FB.V("html5_pipeline_manifestless_allow_nonstreaming");this.dE=this.FB.V("html5_prefer_server_bwe3");this.mJ=this.FB.V("html5_last_slice_transition");this.Bp=this.FB.V("html5_store_xhr_headers_readable");this.X0=g.jj(this.FB.experiments,"html5_max_drift_per_track_secs");this.Ak=this.FB.V("html5_no_placeholder_rollbacks");
  5178. this.Pp=this.FB.V("html5_subsegment_readahead_enable_mffa");this.vn=this.FB.V("html5_allow_video_keyframe_without_audio");this.OR=this.FB.V("html5_enable_vp9_fairplay");this.qq=1048576;this.gI=this.FB.V("html5_woffle_resume");this.dV=this.FB.V("html5_abs_buffer_health");this.cQ=this.FB.V("html5_interruption_resets_seeked_time");this.ER=g.jj(this.FB.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.JA=this.FB.V("html5_report_captions_ctmp_qoe");this.Wz=this.FB.V("html5_explicitly_dispose_xhr");
  5179. this.mS=!this.FB.V("html5_encourage_array_coalescing");this.FB.V("html5_limit_media_merge_size")?sd?HD()<21?this.Tw=786432:this.Tw=8388608:this.Tw=262144:this.Tw=0;this.LQ=this.FB.V("html5_filter_non_efficient_formats_for_safari");this.FB.V("html5_format_hybridization");this.Qd=this.FB.V("html5_abort_before_separate_init");this.eF=eS();this.PK=this.FB.V("html5_serialize_server_stitched_ad_request");this.Xm=this.FB.V("html5_attach_po_token_to_bandaid");this.RS=g.jj(this.FB.experiments,"html5_max_redirect_response_length")||
  5180. 8192;this.i5=this.FB.V("html5_rewrite_timestamps_for_webm");this.OG=this.FB.V("html5_only_media_duration_for_discontinuities");this.V9=g.jj(this.FB.experiments,"html5_resource_bad_status_delay_scaling")||1;this.U1=g.jj(this.FB.experiments,"html5_sabr_malformed_config_retry_limit");this.FB.V("html5_onesie_live");this.BC=this.FB.V("html5_onesie_premieres");this.No=g.jj(this.FB.experiments,"html5_onesie_live_ttl_secs")||8;this.jl=g.jj(this.FB.experiments,"html5_attach_num_random_bytes_to_bandaid");this.ew=
  5181. this.FB.V("html5_update_container_type_on_codec_family_change");this.FB.V("html5_apply_ssap_slice_info_adjustment");this.d5=this.FB.V("html5_enable_sabr_host_fallback");this.FK=this.FB.V("html5_gapless_fallback_on_append_error");this.ys=this.FB.V("html5_shorts_stop_request_when_buffer_to_end");this.hF=this.FB.V("html5_vod_stop_request_when_buffer_to_end");this.e6=this.FB.V("html5_ssdai_use_post_for_media")&&this.FB.V("gab_return_sabr_ssdai_config");this.OT=this.FB.V("html5_use_post_for_media");this.Hn=
  5182. this.FB.V("html5_use_live_ump_heartbeat");this.useUmp=this.FB.V("html5_use_ump");this.i4=this.FB.OW;this.N4=this.FB.V("html5_reset_primary_stats_on_redirector_failure");this.xj=this.FB.V("html5_remap_to_original_host_when_redirected");this.cM=this.FB.V("html5_sabr_support_quality_constraints");this.Xd=this.FB.V("html5_sabr_remove_all_quality_constraints");this.UR=this.FB.V("html5_iterative_seeking_buffered_time");this.iy=this.FB.V("html5_use_network_error_code_enums");this.DM=this.FB.V("html5_disable_overlapping_requests");
  5183. this.enableServerDrivenRequestCancellation=this.FB.V("html5_enable_server_driven_request_cancellation");this.o$=this.FB.V("html5_enable_sabr_request_timing");this.bX=this.FB.V("html5_enable_server_format_filter");this.TB=this.FB.V("html5_enable_lawnmower");this.A9=this.FB.J3()?g.jj(this.FB.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.ES=g.jj(this.FB.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.XF=this.FB.V("html5_live_defrag_only_h264_playbacks");this.PQ=this.FB.V("html5_live_defrag_only_h264_formats");
  5184. this.uR=this.FB.V("html5_record_now");this.Ap=g.jj(this.FB.experiments,"html5_drm_byterate_soft_cap");this.W5=g.jj(this.FB.experiments,"html5_drm_live_byterate_soft_cap");this.B=this.FB.V("html5_sabr_log_request_creation");this.ek=this.FB.V("html5_use_buffer_timeline_for_sabr_request_creation");this.Z8=this.FB.V("html5_sabr_report_request_cancellation_info");this.CR=this.FB.V("html5_spoof_4k");this.Bs=kx(this,"html5_min_media_duration_for_cabr_slice");this.hQ=kx(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||
  5185. .01;this.Uf=this.FB.V("html5_remove_defrag_without_frame_level_streaming");this.B9=this.FB.V("html5_consume_all_buffered_bytes_one_poll");this.zB=this.FB.V("html5_disable_urgent_adaptation");this.FZ=this.FB.V("html5_apply_constraints_in_client_for_sabr");this.kH=this.FB.V("html5_send_video_playback_ustreamer_config");this.hn=kx(this,"html5_max_discontinuity_rewrite_count");this.OE=kx(this,"html5_fixed_media_duration_for_request");this.xz=this.FB.V("html5_apply_fix_for_missing_seg_info_without_logger");
  5186. this.Dz=this.FB.V("html5_enable_audio_quality_setting");this.FB.V("html5_enable_audio_quality_setting_feature");this.vk=kx(this,"html5_sabr_request_limit_per_period");this.dJ=this.FB.V("html5_sabr_dispose_media_objects");this.QE=this.FB.V("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Sg=this.FB.V("html5_enable_d6de4");this.FB.V("html5_high_res_seek_logging");this.Ct=this.FB.V("html5_disable_chunk_synchronization_sabr_seek");this.FB.V("html5_enable_ssap_multi_audio_format_filtering");this.bR=
  5187. g.jj(this.FB.experiments,"html5_override_micro_discontinuities_threshold_ms");this.vz=this.FB.V("html5_byterate_constraints");this.Y3=this.FB.V("html5_refactor_sabr_audio_format_selection_logging");this.Q3=this.FB.V("enable_sabr_snackbar_message");this.FB.V("html5_reinit_source_buffer_by_new_element");this.Q5=this.FB.V("html5_refactor_sabr_video_format_selection_logging");this.O3=this.FB.V("html5_log_slice_info_in_sbu");this.DP=kx(this,"html5_paced_poll_ms");this.tQ=kx(this,"html5_paced_poll_min_health_ms");
  5188. this.HM=this.FB.V("html5_disable_sabr_fallback");this.s1=this.FB.V("html5_track_current_buffered_range_at_sync");this.L9=g.G4(this.FB)?500:2E3;this.XU=this.FB.V("html5_sabr_live_timing");this.uL=this.FB.V("html5_count_updating_slice_for_buffer_health");this.BK=this.FB.V("html5_report_max_buffer_bytes_limit_to_sabr");this.LH=this.FB.V("html5_sabr_live_audio_early_return_fix");this.Mo=g.jj(this.FB.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.W9=this.FB.V("html5_cuepoint_identifier_logging");
  5189. this.xs=this.FB.V("html5_new_sabr_ssdai_cuepoint_logic");this.WP=this.FB.V("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.dL=this.FB.V("html5_skip_client_drm_license_constraint");this.m0=this.FB.V("html5_ssdai_not_block_on_predict_start");this.Bt=this.FB.V("html5_pseudogapless_shorts_skip_abort_on_transition");this.R0=this.FB.V("html5_sabr_log_invalid_sabr_current_time");this.K_=this.FB.V("html5_ssdai_new_decoration_logic");this.hd=this.FB.V("html5_enable_smooth_audio_offset");this.Ek=
  5190. this.FB.V("html5_ssdai_log_missing_ad_config_reason")};
  5191. byT=function(T,Q,k){k=k===void 0?!1:k;Q.video.qualityOrdinal>1080&&!T.K5&&(T.Bd=36700160,T.zg=5242880,T.sK=Math.max(4194304,T.sK),T.K5=!0);Q.video.qualityOrdinal>2160&&!T.Gt&&(T.Bd=104857600,T.qY=13107200,T.Gt=!0);g.jj(T.FB.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Q.isEncrypted()&&g.ph()&&g.tH("samsung")&&(g.tH("kant")||g.tH("muse"))&&(T.qY=g.jj(T.FB.experiments,"html5_samsung_kant_limit_max_bitrate")):Q.isEncrypted()&&g.ph()&&g.tH("kant")&&(T.qY=1310720);T.Ap!==0&&Q.isEncrypted()&&
  5192. (T.qY=T.Ap);T.W5!==0&&Q.isEncrypted()&&k&&(T.qY=T.W5);Q.qY&&(T.Mv=Math.max(T.mK,Math.min(T.sK,5*Q.qY)))};
  5193. az=function(T){return T.T&&T.bX};
  5194. lY=function(T){return T.T&&T.Sf&&T.playbackStartPolicy};
  5195. ov=function(T,Q,k,l){T.Sf&&(T.playbackStartPolicy=Q,T.mL=k,T.y3=l)};
  5196. kx=function(T,Q,k){k=k===void 0?0:k;return g.jj(T.FB.experiments,Q)||k};
  5197. xxC=function(T){var Q=T===void 0?{}:T;T=Q.lS;var k=Q.Jy;var l=Q.bH;var v=Q.a_;Q=Q.j2;this.lS=T;this.Jy=k;this.bH=l;this.a_=v;this.j2=Q};
  5198. tXf=function(T,Q){if(Q<0)return!0;var k=T.a_();return Q<k||Q===k&&!T.lS||Q===k&&(T=T.j2())&&Q===T.NO?!0:!1};
  5199. OPb=function(T,Q,k){if(!tXf(T,Q))return 0;if(!T.Jy||!isNaN(k)&&k>0)return 2;if(Q<0)return 1;k=T.a_();return Q<k||Q===k&&(T=T.j2())&&Q===T.NO&&!T.pending?2:1};
  5200. v6=function(T,Q,k){g.x.call(this);this.loader=T;this.policy=Q;this.V4=k;this.S=0;this.T=!1;this.delay=new g.FA(this.L,this.policy.A9,this);g.P(this,this.delay)};
  5201. Pc6=function(T,Q){EV(Q.T)||(T.Xs=Q,T.S=0,g.Ez(T.delay))};
  5202. Hc5=function(T,Q,k,l,v){var L=this;this.loader=T;this.policy=Q;this.V4=k;this.Xs=l;this.YE=v;this.done=!1;this.onTimeout=function(){L.done||(L.done=!0,L.onError("net.timeout"))};
  5203. this.size=Math.ceil(Math.min(1E5,.1*e4(this.V4)));this.timing=new fr(this,{V4:this.V4,JS:this.size,Ox:!0,uu:function(){},
  5204. By:this.policy.L});T=Jw(this.Xs,this.YE,this.policy).LB.clone();eX(T);T[M[31]]!=="/videogoodput"&&(T[M[31]]="/videogoodput",T[M[15]]=M[29]);this.location=new Pt(T);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=SJ(this.location,this.policy.C,this.timing,this.policy.g_,{});setTimeout(this.onTimeout,1E4)};
  5205. t4u=function(T,Q,k){var l=T.Jn();if(T.isComplete()||!l||T.info.Xs.YE(Q,k))return 0;var v=Q.xE;if(!v||l<v)return 0;T=po(k,ev(T.info.Xs,!0,Q));return T.T||T.timedOut||T.started?0:2};
  5206. Oc5=function(T,Q,k){if(!(Q.p5&&T.isComplete()&&T.canRetry()&&T.info.Xs.YE(Q,k))||T.info.Xs.j)return 0;T=po(k,ev(T.info.Xs,!1,Q));return T.S+Q.p5*Ow(T,!0)>(0,g.XY)()?0:1};
  5207. L$=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){m=m===void 0?null:m;g.x.call(this);var I=this;this.loader=T;this.policy=Q;this.videoTrack=k;this.audioTrack=l;this.Y=v;this.T=L;this.timing=q;this.N=Y;this.schedule=U;this.C_=R;this.L=Z;this.z9=f;this.U7=G;this.vl=m;this.qO=!1;this.Rb="";this.fp=null;this.Jx=NaN;this.hj=!1;this.S=null;this.MK=this.D=NaN;this.Vm=this.B=0;this.logger=new g.Cy("dash");this.dn={H6:function(z,w){return I.H6(z,w)}};
  5208. this.policy.jl>0&&(this.Rb=g.hu(this.policy.jl));this.policy.A9&&(this.j=new v6(this.loader,this.policy,this.schedule),g.P(this,this.j))};
  5209. pLC=function(T,Q,k){var l=Q.S?Q.S.T.Xs:Q.T.Xs;var v=T.Y,L;(L=!T.policy.xj)||(L=FQ(l.T)===FQ(l.S));L?l=!1:(v=po(v,FQ(l.S)),L=6E4*Math.pow(v.Y,1.6),(0,g.XY)()<v.S+L?l=!1:(v.S=(0,g.XY)(),v.Y+=1,l.T=l.S.clone(),l=!0));l&&T.loader.T9("hostch",{},!0);if(q7(T,Q,k)){k=T.C(Q,k);if(T.S){var q=k.MO[0].T.info.id;l=T.T;v=k.MO[0].NO;l=v<0&&!isNaN(l.B)?l.B:v;v=QX(T.T,k.MO[0].N,l);var Y=Q===T.audioTrack?1:2,U=k.MO[0].T.info.yR;L=q.split(";")[0];a:{var R=T.T;if(R.T){var Z=R.T.Bn.event;if(R.T.NO===l){R=Z==="predictStart"?
  5210. void 0:R.T.Bn.event;break a}if(R.T.NO===l-1){R=Z==="start"||Z==="continue"?Z:void 0;break a}}R=void 0}if(T.policy.e6&&T.T.S!==0){var f=T.S.QZ(v,l,q,Y,U,R);l<0&&Y===2&&jr(T.T,0,0,!0);if(f){var G;q=((G=f.gV)==null?void 0:G.e2)||"";var m;G=((m=f.gV)==null?void 0:m.dK)||-1;T.loader.T9("sdai",{ssdaiinfo:"1",ds:q,skipsq:G,itag:L,f:U,sg:l,st:v.toFixed(3)});k.Y=f}}else if(m=T.S.pw(v,l,q,Y,U,R),l<0&&Y===2&&jr(T.T,0,0,!0),m){G={dec_sq:l,itag:L,st:v.toFixed(3)};if(T.policy.PK&&Q.isRequestPending(l-1)){T.loader.T9("sdai",
  5211. {wt_daistate_on_sg:l-1});return}T.loader.T9("sdai",G);m&&(k.T=new g.J_(m));T.policy.L&&(m=k.Xs.Hp("id")||"",G=((f=k.T)==null?void 0:f.get("id"))||"",m!==G&&T.loader.T9("stmidmismatch",{cid:m,aid:G}))}else T.T.S!==5&&T.loader.T9("sdai",{nodec_sq:l,itag:L,st:v.toFixed(3)})}T.policy.BH&&k.MO[0].NO!==-1&&k.MO[0].NO<T.C_.sW&&(k=Q.T.qT(T.C_.sW,!1));H7(Q,go(T,k));FM(T.timing);var I;(I=T.j)==null||Pc6(I,k.Xs)}};
  5212. q7=function(T,Q,k){if(T.policy.NV)return!1;var l;var v=T.T,L=((l=Q.S)==null?void 0:l.NO)||-1;!v.policy.m0&&v.S===3&&L+1>=v.Y?(v.T9("sdai",{haltrq:L+1,est:v.Y}),l=!1):l=v.S!==2;if(!l||!Fo(Q.S?Q.S.T.Xs:Q.T.Xs,T.policy,T.Y,T.loader.jX())||T.loader.isSuspended&&(!FK(T.schedule)||T.loader.xL))return!1;if(T.policy.Y&&vv>=5)return g.Ez(T.loader.Ii),!1;if(T.C_.isManifestless){if(Q.L.length>0&&Q.S&&Q.S.NO===-1||Q.L.length>=T.policy.QV||!T.policy.fh&&Q.L.length>0&&!T.policy.C.Jy)return!1;if(Q.C)return!T.C_.isLive||
  5213. !isNaN(T.Jx)}if(bcX(Q))return T.logger.debug("Pending request with server-selectable format found"),!1;if(!Q.S){if(!Q.T.ZG())return!1;Lr(Q,T.loader.getCurrentTime())}if(YR(Q)&&(Q.JV()!==YR(Q)||T.loader.isSuspended))return!1;v=(l=T.policy.xb)&&!Q.L.length&&er(Q,!0)<Math.min(l,er(k));l=Q.L.length+k.L.length;L=!T.policy.DM&&((Q.L.length?Q.L[0].cV():!1)||(k.L.length?k.L[0].cV():!1)||T.C_.isLive);(v||L)&&--l;if(l+1>=T.policy.U2)return!1;l=Q.S;if(!l)return!0;l.type===4&&l.T.ZG()&&(Q.S=g.m9(l.T.Ui(l)),l=
  5214. Q.S);if(!l.Dq()&&!l.T.zm(l))return!1;L=T.C_.KY||T.C_.Y;if(T.C_.isManifestless&&L){L=Q.T.index.a_();var q=k.T.index.a_();L=Math.min(L,q);if(Q.T.index.UI()>0&&L>0&&l.NO>=L)return Q.i9=L,k.i9=L,!1}if(l.T.info.audio&&l.type===4||l.Dq())return!1;L=!Q.N&&!k.N;if(v=!v)v=l.B,v=!!(k.S&&!JA(k.S)&&k.S.B<v);q=Q===T.videoTrack&&T.policy.xm;return v&&(!T.C_.isManifestless||k.S&&k.S.B&&l.B)&&L&&!q||T.policy.QR&&!Q.N&&k.N?!1:l7(l)&&l.B>W0H(T,Q)?(W0H(T,Q),!1):(T=Q.jr)&&T.isLocked()?!1:!0};
  5215. W0H=function(T,Q){var k=T.T;k=k.T?k.T.Bn:null;if(T.policy.xm&&k)return k.startSecs+k.bf+15;Q=vJ(T.loader,Q);T.policy.h3>0&&(k=((0,g.XY)()-T.loader.LN)/1E3,Q=Math.min(Q,T.policy.h3+T.policy.b7*k));Q=T.loader.getCurrentTime()+Q;return T.policy.Ps&&(k=$xg(T.loader)+T.policy.Ps,k<Q)?(T.loader.T9("mrl",{ori:Q,mod:k},!0),T.policy.cQ&&M7(T.loader),k):Q};
  5216. JS6=function(T,Q,k){if(k!==0){a:if(Q=Q.info,k=k===2,Q.T)Q=null;else{var l=Q.MO[0];if(Q.range)var v=T3(Q.range.start,Math.min(4096,Q.L));else{if(Q.S&&Q.S.indexOf("/range/")>=0||Q.Xs.Hp("defrag")==="1"||Q.Xs.Hp("otf")==="1"){Q=null;break a}v=T3(0,4096)}v=new gd([new jq(5,l.T,v,"createProbeRequestInfo"+l.C,l.NO)],Q.S);v.YE=k;v.T=Q.T;Q=v}Q&&go(T,Q)}};
  5217. go=function(T,Q){T.loader.Zx(Q);var k=cWC(Q),l=T.loader.yZ();k={V4:T.schedule,JS:k,ra:mQX(T.N,k),Zr:k0(Q.MO[0]),Ox:EV(Q.Xs.T),By:T.policy.L,uu:function(q,Y){T.loader.eN(q,Y)}};
  5218. if(T.schedule.S.B){var v,L;k.Ds=(((v=T.videoTrack.T)==null?void 0:v.info.qY)||0)+(((L=T.audioTrack.T)==null?void 0:L.info.qY)||0)}T.fp&&(k.NO=Q.MO[0].NO,k.Jx=Q.Jx,k.fp=T.fp);l={Qh:D$6(Q,T.loader.getCurrentTime()),hO:T.policy.Wk&&Y0(Q)&&Q.MO[0].T.info.video?DtI(T.L):void 0,d2:T.policy.xm,poToken:T.loader.WH(),fH:T.loader.aN(),Rb:T.Rb,MK:isNaN(T.MK)?null:T.MK,vl:T.vl,U7:T.U7,Vm:T.Vm,cw:l};return new kR(T.policy,Q,k,T.Y,function(q,Y){try{a:{var U=q.info.MO[0].T,R=U.info.video?T.videoTrack:T.audioTrack;
  5219. if(!(q.state>=2)||q.isComplete()||q.Jn()||!(!T.loader.j6||T.loader.isSuspended||er(R)>3)){var Z=t4u(q,T.policy,T.Y);Z===1&&(T.hj=!0);JS6(T,q,Z);if(q.isComplete()||q.wd()&&Y<3){if(T.policy.L){var f=q.timing.i6();f.rst=q.state;f.strm=q.xhr.gQ();f.cncl=q.xhr&&q.jV.Y?1:0;T.loader.T9("rqs",f)}q.Rh&&T.loader.T9("sbwe3",{},!0)}if(!T.wd()&&q.state>=2){QXX(T.timing,q,U);var G=T.loader;T.MK&&q.Of&&G&&(T.MK=NaN,T.loader.u1(q.Of),T.loader.Jd(),T.loader.T9("cabrUtcSeek",{mediaTimeSeconds:q.Of}));q.Nt&&T.MK&&q.Nt&&
  5220. !q.Nt.action&&(T.loader.Fi(T.MK),T.MK=NaN,T.loader.T9("cabrUtcSeekFallback",{targetUtcTimeSeconds:T.MK}));q.WA&&T.loader.rT(q.WA);T.policy.Hn&&(T.Vm=q.Vm);if(q.state===3){yX(R,q);Y0(q.info)&&Yx(T,R,U,!0);if(T.S){var m=q.info.pw();m&&T.S.Pg(q.info.MO[0].NO,U.info.id,m)}T.loader.Jh()}else if(q.isComplete()&&q.info.MO[0].type===5){if(q.state!==4)q.u5()&&T.loader.handleError(q.SZ(),q.HA());else{var I=(q.info.MO[0].T.info.video?T.videoTrack:T.audioTrack).L[0]||null;I&&I instanceof kR&&I.Jn()&&I.Q$()}q.dispose()}else{q.u5()||
  5221. ehJ(T,q);var z;((z=q.AN)==null?0:z.itagDenylist)&&T.loader.pJ(q.AN.itagDenylist);if(q.state===4)UN(T,q),T.T&&v0H(T.T,q.info,T.S);else if(T.policy.g_&&q.HH()&&!q.isComplete()&&!UN(T,q)&&!q.u5())break a;q.u5()&&(F0u(T,q),isNaN(T.MK)||(T.loader.Fi(T.MK),T.MK=NaN));T.policy.DP&&!q.isComplete()?Emy(T.loader):T.loader.Jh();var w=Oc5(q,T.policy,T.Y);JS6(T,q,w)}}}}}catch(r){Y=T.qO?1:0,T.qO=!0,q=fu(Y),Y=GX(r,Y),T.loader.handleError(Y.errorCode,Y.details,Y.severity),q||T.loader.FJ()}},l)};
  5222. ehJ=function(T,Q){if(Q.TQ&&Q.state>=2&&Q.state!==3){var k=Q.xhr.getResponseHeader("X-Response-Itag");if(k){T.logger.debug(function(){return"Applying streamer-selected format "+k});
  5223. var l=cqy(T.L,k),v=Q.info.L;v&&(v-=l.fm(),l.L=!0,Q.info.MO[0].T.L=!1,Awf(Q,l.Ga(v)),Rv(T.loader,T.videoTrack,l),rSg(T.videoTrack,l),T.loader.sP(l.info.video.quality),(v=Q.T7())&&l.info.lastModified&&l.info.lastModified!==+v&&yX(T.videoTrack,Q))}else Q.TQ=!1}};
  5224. F0u=function(T,Q){var k=Q.info.MO[0].T,l=Q.SZ();if(EV(k.Xs.T)){var v=g.N_(Q.dw(),3);T.loader.T9("dldbrerr",{em:v||"none"})}v=Q.info.MO[0].NO;var L=QX(T.T,Q.info.MO[0].N,v);l==="net.badstatus"&&(T.B+=1);if(Q.canRetry()&&ySg(T.loader)){if(!(Q.info.Xs.L>=T.policy.A7&&T.S&&Q.info.isDecorated()&&l==="net.badstatus"&&T.S.eK(L,v))){v=(k.info.video&&k.Xs.L>1||Q.W1===410||Q.W1===500||Q.W1===503)&&!(qv(T.L.N).size>0)&&!EV(k.Xs.T);L=Q.HA();var q=k.info.video?T.videoTrack:T.audioTrack;v&&(L.stun="1");T.loader.handleError(l,
  5225. L);T.wd()||(v&&(T.logger.debug(function(){return"Stunning format "+k.info.id}),Zs(T.L,k)),yX(q,Q),T.loader.Jh())}}else q=1,T.S&&Q.info.isDecorated()&&l==="net.badstatus"&&T.S.eK(L,v)&&(q=0),T.C_.isLive&&Q.SZ()==="net.badstatus"&&T.B<=T.policy.vA*2?(x35(T.C_),T.C_.KY||T.C_.isPremiere?Mm(T.loader,0,{I_:"badStatusWorkaround"}):T.C_.Y?Mm(T.loader,T.C_.xm,{I_:"badStatusWorkaround",
  5226. J_:!0}):ZI(T.loader)):T.loader.handleError(l,Q.HA(),q)};
  5227. UN=function(T,Q){if(T.policy.useUmp&&Q.wd())return!1;try{var k=Q.info.MO[0].T,l=k.info.video?T.videoTrack:T.audioTrack;if(T.C_.isManifestless&&l){T.B=0;l.C&&(Q.wd(),Q.isComplete()||Q.HH(),l.C=!1);Q.Az()&&T.loader.Ad.Q1(1,Q.Az());var v=Q.UI(),L=Q.oR();i7(T.C_,v,L)}if(Q.info.Zr()&&!Mt(Q.info))for(var q=g.B(Q.TW()),Y=q.next();!Y.done;Y=q.next())hh5(l,Y.value);for(T.loader.getCurrentTime();l.L.length&&l.L[0].state===4;){var U=l.L.shift();IEu(l,U);l.sK=U.z1()}l.L.length&&IEu(l,l.L[0]);var R=!!YR(l);R&&
  5228. Q instanceof jJ&&(k.info.uH()?eJg(T.timing):JwJ(T.timing));return R}catch(Z){Q=Q.HA();Q.origin="hrhs";a:{T=T.loader;k=Z;if(k instanceof Error){Q.msg||(Q.msg=""+k.message);Q.name||(Q.name=""+k.name);if(k instanceof g.Wy&&k.args)for(l=g.B(Object.entries(k.args)),v=l.next();!v.done;v=l.next())L=g.B(v.value),v=L.next().value,L=L.next().value,Q["arg"+v]=""+L;g.rB(k);if(k.level==="WARNING"){T.yq.Lt(Q);break a}}T.handleError("fmt.unplayable",Q,1)}return!1}};
  5229. ic6=function(T){var Q=T.videoTrack.T.index;T.fp=new xxC({lS:T.policy.lS,Jy:T.policy.C.Jy,bH:Q.Z3(),a_:function(){return Q.a_()},
  5230. j2:function(){return Q.j2()}})};
  5231. Yx=function(T,Q,k,l){if(!(k.ZG()||k.sj()||k.L||!Fo(k.Xs,T.policy,T.Y,T.loader.jX())||k.info.yR==="f"||T.policy.T)){if(l){l=T.N;var v=k.info;l=Ic5(l,v.video?l.policy.nR:l.policy.UY,v.qY)}else l=0;l=k.Ga(l);T=go(T,l);Mt(l)&&H7(Q,T);k.L=!0}};
  5232. f$=function(T,Q,k,l,v,L,q,Y){g.x.call(this);var U=this;this.loader=T;this.qL=Q;this.videoTrack=k;this.audioTrack=l;this.C_=v;this.D=L;this.isAudioOnly=q;this.j=Y;this.S=GV;this.hj=!1;this.logger=new g.Cy("sabr");this.C=this.qO=this.z9=!1;this.videoInfos=this.B=this.D.videoInfos;this.L=this.xm=this.D.T;this.T=new v7(Q,L,function(R,Z){U.loader.T9(R,Z)});
  5233. this.isAudioOnly&&V4J(this,this.C_.T["0"])};
  5234. TjI=function(T,Q){var k=[];Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())k.push(g.Hj(l.value,T.C_.Cc));return k};
  5235. V4J=function(T,Q,k){Q!==T.Y&&(T.Y&&(T.hj=!0),T.Y=Q,T.nJ(Q,T.videoTrack,k))};
  5236. leX=function(T,Q){T.logger.debug("setConstraint: "+Dc(Q));az(T.qL)&&(T.qO=Q.reason==="m"||Q.reason==="l"?!0:!1);Q.reason==="m"?Q.isLocked()&&QuC(T,Q.T):juX(T,Q)?kWH(T,Q.S,Q.T):T.videoInfos=T.B;T.S=Q};
  5237. juX=function(T,Q){return T.qL.cM&&Q.reason==="b"||T.qL.dL&&Q.reason==="l"||T.qL.Xd?!1:T.qL.FZ?!0:Q.reason==="l"||Q.reason==="b"||Q.reason==="o"};
  5238. oLI=function(T,Q){return Q.isLocked()&&T.T.S||T.S===void 0?!1:Q.equals(T.S)};
  5239. vLX=function(T,Q){var k,l=(k=T.Y)==null?void 0:k.info.video.qualityOrdinal;return T.hj?!0:T.Y?Q!==l?!0:!T.T.S||T.qL.QE&&T.T.T===T.Y.info.itag?!1:!0:!1};
  5240. QuC=function(T,Q){var k=T.T.T;if(k){T.videoInfos=T.B;var l=g.sA(T.videoInfos,function(v){return v.id===k});
  5241. l&&l.video.qualityOrdinal===Q?T.videoInfos=[l]:(l=T.videoInfos.map(function(v){return v.id}),T.loader.T9("sabrpf",{pfid:""+k,
  5242. vfids:""+l.join(".")}),kWH(T,Q,Q),gX(T.T,""))}else kWH(T,Q,Q)};
  5243. kWH=function(T,Q,k){T.videoInfos=T.B;T.videoInfos=g.bl(T.videoInfos,function(l){return l.video.qualityOrdinal>=Q&&l.video.qualityOrdinal<=k})};
  5244. LqI=function(T,Q,k){if(T.j){var l=g.bl(T.L,function(v){return v.id===T.j});
  5245. return GD(l,k).includes(Q)}l=g.bl(T.L,function(v){var L;return!((L=v.MY)==null||!L.isDefault)});
  5246. return l.length>0?GD(l,k).includes(Q):GD(T.L,k).includes(Q)};
  5247. GD=function(T,Q){return T.map(function(k){return Ew(g.Hj(k,Q))})};
  5248. q8I=function(T){var Q;if((Q=T.S)==null?0:Q.isLocked())return T.videoInfos;var k=qv(T.T);Q=g.bl(T.videoInfos,function(l){return l.qY>T.qL.qY?!1:!k.has(l.id)});
  5249. ZyX(T.T)&&(Q=g.bl(Q,function(l){return l.video.width<=854&&l.video.height<=480}));
  5250. return Q};
  5251. MFy=function(T,Q,k){var l=T.C_,v=T.yq.getVideoData(),L=T.fV,q=B8J({FB:v.G(),yq:T.yq,kL:T.kL,qL:T.qL,vp:T.vp,AX:T.AX,h1:T.h1,NU:T.NU,GG:T.GG,isPrefetch:T.isPrefetch,qM:T.qM,sabrLicenseConstraint:v.sabrLicenseConstraint,Ft:T.Ft,FO:T.FO,eE:T.eE,sS:T.sS,FM:!!L,authorizedFormats:v.authorizedFormats}),Y=u$(v,T.cw,T.nextRequestPolicy,T.Z$,T.ip,T.E5,T.BS);k&&Q&&(k=Y.k6?Y.k6.map(function(f){return f.type}):[],Q("sabr",{stmctxt:k.join("_"),
  5252. unsntctxt:Y.Mt?Y.Mt.join("_"):""}));Q=T.vY;k=T.Dn;if(k===void 0&&Q===void 0){var U;k=gLT(l.Cc,(U=T.M$)==null?void 0:U.video);var R;Q=gLT(l.Cc,(R=T.M$)==null?void 0:R.audio)}if(v.vl)var Z=v.vl;v={Ly:q,Mm:T.Mm,vY:Q,Dn:k,fV:L,videoPlaybackUstreamerConfig:Z,iU:Y};T.gV&&(v.gV=T.gV);v.Yc=T.Yc;v.xX=l.p_;return v};
  5253. gLT=function(T,Q){return Q?[g.Hj(Q.info,T)]:[]};
  5254. mT=function(T,Q,k){var l=this;this.requestType=T;this.Xs=Q;this.m1=k;this.S=null;this.dn={OSK:function(){var v;return(v=l.data)==null?void 0:v.isPrefetch},
  5255. ip:function(){var v;return(v=l.data)==null?void 0:v.ip}}};
  5256. OoI=function(T,Q,k){Q=Jw(T.Xs,Y8b(T,Q,k),Q);T.u6()&&Q.set("probe","1");return Q};
  5257. Y8b=function(T,Q,k){T.YE===void 0&&(T.YE=T.Xs.YE(Q,k));return T.YE};
  5258. U0T=function(T){var Q,k;return((Q=T.T)==null?void 0:(k=Q.Ly)==null?void 0:k.tG)||0};
  5259. R0J=function(T){var Q,k;return!!((Q=T.T)==null?0:(k=Q.Ly)==null?0:k.Ft)};
  5260. ZnJ=function(T){var Q={},k=[],l=[];if(!T.data)return Q;for(var v=0;v<T.data.Yc.length;v++){var L=T.data.Yc[v],q=void 0;k.push("i."+((q=L.formatId)==null?void 0:q.itag)+"_st."+(L.startTimeMs+"_e."+(L.startTimeMs+L.durationMs)+"_d."+L.durationMs)+("_sn."+L.CB)+("_en."+L.iH))}for(v=0;v<T.data.Mm.length;v++){L=T.data.Mm[v];var Y=q=void 0,U=void 0,R=void 0;l.push("i."+((q=L.formatId)==null?void 0:q.itag)+"_sn."+L.sequenceNumber+"_sl."+(L.Qw||NaN)+"_lb."+L.tR+"_tr.s_"+((Y=L.Z2)==null?void 0:Y.startTicks)+
  5261. "_d_"+((U=L.Z2)==null?void 0:U.fQ)+"_t_"+((R=L.Z2)==null?void 0:R.timescale)+"_ed_"+L.PR)}Q.ptime=U0T(T);Q.rtype=T.requestType;Q.brl=k.join(";");Q.ps=l.join(";");return Q};
  5262. fe5=function(T){this.T=T;this.iv=(0,g.nr)(I$(16))};
  5263. m0u=function(T,Q){var k;return g.a(function(l){(0,g.XY)();if(T.T.T)return l.return(GW5(T,Q,T.iv));k=XE5(T.T);return l.return(k.encrypt(Q,T.iv))})};
  5264. Iet=function(T,Q){(0,g.XY)();var k;if((k=T.T.T)==null)var l=void 0;else a:{T=T.iv;try{var v=BMT(k,Q,T),L=k.T.RH(T),q=k.T,Y=k.Y,U=new Uint8Array(q.exports.memory.buffer,q.malloc(32),32);q.exports.Sha256Hmac(Y.byteOffset,Y.byteLength,L.byteOffset,L.byteLength,v.byteOffset,v.byteLength,U.byteOffset);k.T.free(L.byteOffset);l={yB:k.T.AL(v),signature:k.T.AL(U)};break a}catch(R){g.rB(Error("ocwceas: wasm encryptAndSign failed: "+R))}l=void 0}return l};
  5265. h0T=function(T,Q){var k;return g.a(function(l){(0,g.XY)();var v=T.T;v.N||(v.N=new YqC(v.L));k=v.N;return l.return(ZZ6(k,Q,T.iv))})};
  5266. suI=function(T,Q,k){var l;return g.a(function(v){(0,g.XY)();if(T.T.T)return v.return(GW5(T,Q,k));l=XE5(T.T);return v.return(l.decrypt(Q,k))})};
  5267. S8J=function(T,Q,k){var l,v=(l=T.T.T)==null?void 0:l.encrypt(Q,k);return v?v:(new g.Yt(T.T.S)).encrypt(Q,k)};
  5268. GW5=function(T,Q,k){var l;return g.a(function(v){switch(v.S){case 1:var L=T.T;var q=gG();L=q?new M9(L.S,q):void 0;l=L;if(!l){v.Ym(2);break}g.z5(v,3);return g.c(v,l.encrypt(Q,k),5);case 5:return v.return(v.T);case 3:g.by(v);case 2:return v.return(S8J(T,Q,k))}})};
  5269. Iv=function(T){g.x.call(this);var Q=this;this.Hd=T;this.T=new Map;this.Y=[];this.S=!gG();this.D=g.jj(this.Hd.experiments,"html5_onesie_prewarm_interval_ms");this.j=new g.FA(this.C,this.D,this);this.B=-1;this.dn={aSH:function(){return Q.T},
  5270. guk:function(){return Q.N},
  5271. M99:function(){return CFT}};
  5272. g.P(this,this.j);T8g(this,g.cy("yt-player-bandaid-host"));this.N=this.load();this.D&&this.N.then(function(){Q.C()})};
  5273. T8g=function(T,Q){var k=Q==null?void 0:Q.primary;T.L(0,k);k=k?Bjf(k):void 0;T.L(2,k);T.L(1,Q==null?void 0:Q.secondary)};
  5274. hf=function(T,Q){return new g.J_("https://"+Q+T.Hd.Z8.baseUrl)};
  5275. z0J=function(T,Q){T="https://"+FQ(Q.location)+"/initplayback?c="+hS(T.Hd)+"&owc=1";JN(T,"pw",function(k){k.ht=Q.T})};
  5276. xx=function(T,Q,k,l){JN("https://"+Q+"/videoplayback?probe=1",k,function(v){!l.V("html5_onesie_host_racing")||l.videoData.isLivePlayback||l.V("html5_onesie_probe_ec_hosts")||l.jA||l.RZ();T.Y.push(v)},function(v){T.Y.push(v.details)})};
  5277. Bjf=function(T){return T.replace(/(\d+)---/g,function(Q,k){Q=Number(k);return(Q===1?2:Q-1)+"---"})};
  5278. XBt=function(T,Q){var k,l,v,L,q,Y,U,R;return g.a(function(Z){if(Z.S==1){k=hf(T,"redirector.googlevideo.com");k.set("alr","yes");k.set("id",""+Math.round(Math.random()*1E5));if(Q===1||Q===2)k.set("cmo=sensitive_content","yes"),k.set("sc","yes");Q===2&&k.set("cmo=td","c.youtube.com");l={format:"RAW",timeout:5E3};return g.c(Z,dV(k.IK(),l),2)}v=Z.T;if(v.xhr.status!==200||!v.xhr.responseText)return Z.return(Promise.reject(new g.Wy("b204258371_no_host",k.IK(),v.xhr.status)));L=new g.J_(v.xhr.responseText);
  5279. q=FQ(L);Y=L.get("ms");U=hf(T,q);R=L.get("mm");U.set("ms",Y);U.set("mm",R);return q&&VXb(q)?Q!==2||wQ(q)?Z.return(U):Z.return(Promise.reject(new g.Wy("b204258371_untrusted",q,Y))):Z.return(Promise.reject(new g.Wy("b204258371_invalid",q,Y)))})};
  5280. wBy=function(T){var Q=T.Y;T.Y=[];return Q};
  5281. VXb=function(T){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(T)};
  5282. wQ=function(T){var Q=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(T)&&!Q.test(T)};
  5283. d05=function(T,Q){this.location=T;this.T=Q};
  5284. Nj5=function(T){this.fv=T;this.S=!1;this.T=[]};
  5285. H6=function(T){for(;T.T.length&&!T.T[0].isEncrypted;){var Q=T.T.shift(),k=Q.videoId,l=Q.LU,v=Q.formatId,L=Q.buffer;Q=Q.lc;if(L)Q=void 0,(Q=P6(T.fv.Ph,k))==null||JU(Q,l,v,L);else if(Q)T.fv.Ph.s_(k,l,v);else if(l=T.fv,l.T[v].Dx=!0,k=P6(l.Ph,k),k==null?0:k.Wh.has(v))k==null||Ox(k,v)}};
  5286. g.r9X=function(T){this.data=T;this.T=0;this.Y=!1;this.L=0;this.error=!1;this.register=this.S=0;if(tf.length===0){tf.length=288;tf.fill(8);for(T=144;T<280;T++)tf[T]=T<=255?9:7;A9X.length=32;A9X.fill(5);ON.length=286;ON.fill(0);for(T=261;T<285;T++)ON[T]=Math.floor((T-261)/4);p$[257]=3;for(T=258;T<285;T++){var Q=p$[T-1];Q+=1<<ON[T-1];p$[T]=Q}p$[285]=258;for(T=0;T<30;T++)bnb[T]=T<=3?0:Math.floor((T-2)/2);for(T=W6[0]=1;T<30;T++)Q=W6[T-1],Q+=1<<bnb[T-1],W6[T]=Q}T=100+7*this.data.length;this.data[0]===31&&
  5287. this.data[1]===139&&(T=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(T)};
  5288. g.Kq6=function(T){for(;!T.Y&&!T.error;){var Q=T;Q.Y=!!$x(Q,1);switch($x(Q,2)){case 2:var k=[],l=[];l.length=19;l.fill(0);var v=$x(Q,5)+257;var L=$x(Q,5)+1;for(var q=$x(Q,4)+4,Y=0;Y<q;Y++)l[c9u[Y]]=$x(Q,3);l=D06(l);for(q=v+L;k.length<q;){Y=aeg(Q,l);switch(Y){case 16:Y=k[k.length-1];var U=$x(Q,2)+3;break;case 17:Y=0;U=$x(Q,3)+3;break;case 18:Y=0;U=$x(Q,7)+11;break;default:U=1}for(;U>0;U--)k.push(Y)}k.length!==q?Q.error=!0:(L=k.slice(-L),k.length=v,uT5(Q,k,L));break;case 1:uT5(Q,tf,A9X);break;case 0:nL5(Q,
  5289. Q.T&7);k=$x(Q,16);v=$x(Q,16);(k^v)!==65535&&(Q.error=!0);Q.output.set(Q.data.subarray(Q.S,Q.S+k),Q.L);Q.S+=k;Q.L+=k;break;default:Q.error=!0}T.L>T.output.length&&(T.output=new Uint8Array(T.L*2),T.L=0,T.S=0,T.Y=!1,T.T=0,T.register=0)}T.output.length!==T.L&&(T.output=T.output.subarray(0,T.L));return T.error?new Uint8Array(0):T.output};
  5290. uT5=function(T,Q,k){Q=D06(Q);k=D06(k);for(var l=T.data,v=T.output,L=T.L,q=T.register,Y=T.T,U=T.S;;){if(Y<15){if(U>l.length){T.error=!0;break}q|=(l[U+1]<<8)+l[U]<<Y;U+=2;Y+=16}var R=Q[q&127];if(R<0)for(q>>=7;R<0;)R=Q[(q&1)-R],q>>=1;else q>>=R&15;Y-=R&15;R>>=4;if(R<256)v[L++]=R;else if(T.register=q,T.T=Y,T.S=U,R>256){q=p$[R];q+=$x(T,ON[R]);U=aeg(T,k);Y=W6[U];Y+=$x(T,bnb[U]);if(x0I&&q<Y)Y=L-Y,v.copyWithin(L,Y,Y+q);else for(U=L+q,R=L;R<U;R+=4)v[R]=v[R-Y],v[R+1]=v[R-Y+1],v[R+2]=v[R-Y+2],v[R+3]=v[R-Y+3];
  5291. L+=q;q=T.register;Y=T.T;U=T.S}else break}T.L=L};
  5292. aeg=function(T,Q){if(T.T<7){var k=T.data,l=T.S;l>k.length&&(T.error=!0);T.register|=(k[l+1]<<8)+k[l]<<T.T;T.S+=2;T.T+=16}k=Q[T.register&127];if(k>=0)return nL5(T,k&15),k>>4;for(nL5(T,7);k<0;)k=Q[$x(T,1)-k];return k>>4};
  5293. $x=function(T,Q){for(;T.T<Q;){if(T.S>=T.data.length)return T.error=!0,0;T.register|=T.data[T.S++]<<T.T;T.T+=8}var k=T.register&(1<<Q)-1;T.register>>=Q;T.T-=Q;return k};
  5294. nL5=function(T,Q){T.T-=Q;T.register>>=Q};
  5295. D06=function(T){for(var Q=[],k=g.B(T),l=k.next();!l.done;l=k.next())l=l.value,Q[l]||(Q[l]=0),Q[l]++;var v=Q[0]=0;k=[];var L=0;l=0;for(var q=1;q<Q.length;q++)Q[q]?l=q:Q[q]=0,v=v+Q[q-1]<<1,k[q]=v,q>7&&(L+=Q[q]);for(v=1;v<L;)v<<=1;Q=128;l=new Int16Array(128+(v+l)*2);for(L=0;L<T.length;L++)if(q=T[L]){for(var Y=k[q]++,U=v=0;U<q;U++)v=v<<1|Y>>U&1;Y=L<<4|q;if(q<=7)for(U=1<<7-q;U--;)l[U<<q|v]=Y;else{U=v&127;q-=7;for(v>>=7;q--;){l[U]||(l[U]=-Q,Q+=2);var R=v&1;v>>=1;U=R-l[U]}l[U]=Y}}return l};
  5296. Hn6=function(T){var Q,k,l,v,L,q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:if(!PFg)throw Error("DecompressionStream is not supported");Q=bc.Ya();k=new DecompressionStream("gzip");l=k.writable.getWriter();l.write(T);l.close();v=k.readable.getReader();L=new oV([]);case 2:return g.c(Z,v.read(),5);case 5:q=Z.T;Y=q.value;if(U=q.done){Z.Ym(4);break}L.append(Y);Z.Ym(2);break;case 4:return R=Mg(L),bc.AS("gznb",Q,Math.ceil(R.byteLength/16)),Z.return(R)}})};
  5297. tFy=function(T){xR.call(this,"onesie");this.Ph=T;this.T={};this.Y=!0;this.L=null;this.queue=new Nj5(this);this.N={}};
  5298. On5=function(T){var Q=T.queue;Q.T.length&&Q.T[0].isEncrypted&&!Q.S&&(Q.T.length=0);Q=g.B(Object.keys(T.T));for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=T.T[k];if(!l.Dx){var v=T.queue;v.T.push({videoId:l.videoId,formatId:k,isEncrypted:!1});v.S||H6(v)}}};
  5299. pBy=function(T,Q){var k=Q.totalLength,l=!1;switch(T.L){case 0:T.iZ(Q,T.Y).then(function(v){var L=T.Ph;L.z_("oprr");L.playerResponse=v;L.NJ||(L.PY=!1);Jf(L)},function(v){T.Ph.fail(v)});
  5300. break;case 2:T.z_("ormk");Q=Mg(Q);T.queue.decrypt(Q);break;default:l=!0}T.Ph.Kv&&T.Ph.T9("ombup","id.11;pt."+T.L+";len."+k+(l?";ignored.1":""));T.L=null};
  5301. Wqy=function(T,Q){var k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:T.Ph.z_("oprgz_s");if(!PFg){Y.Ym(2);break}g.z5(Y,3);return g.c(Y,Hn6(Q),5);case 5:return k=Y.T,T.Ph.z_("oprgz_n"),Y.return(k);case 3:l=g.by(Y),T.Ph.T9("gzerr",{impl:"native",err:""+l});case 2:if(v=T.Ph.G().VD)try{var U=bc.Ya(),R=v.RH(Q),Z=v,f=R!=null?R:Q,G=f.byteOffset,m=f.byteLength,I=Z.exports.getInflatedSize(G,m);if(I===0)throw Error("wasm_gz: bad input");var z=Z.malloc(I),w=Z.exports.inflateGzip(G,m,z);if(w)throw Z.free(z),
  5302. Error("wasm_gz: fail"+w);var r=new Uint8Array(Z.exports.memory.buffer,z,I);R&&v.free(R.byteOffset);var A=v.AL(r);bc.AS("gzwb",U,Math.ceil(A.byteLength/16));L=A;T.Ph.z_("oprgz_w");return Y.return(L)}catch(D){T.Ph.T9("gzerr",{impl:"wasm",err:""+D})}U=bc.Ya();R=g.Kq6(new g.r9X(Q));bc.AS("gzjb",U,Math.ceil(R.byteLength/16));q=R;T.Ph.z_("oprgz_p");return Y.return(q)}})};
  5303. $05=function(T){return new Promise(function(Q){setTimeout(Q,T)})};
  5304. J95=function(T,Q){var k=T.G();k=T.A9&&k.V("html5_onesie_preload_use_content_owner");var l=T.zK,v=S4(Q.Hd.experiments,"debug_bandaid_hostname");if(v)Q=hf(Q,v);else if((k===void 0?0:k)&&(l==null?0:l.url)&&!Q.S){var L=FQ(new g.J_(l.url));Q=hf(Q,L)}else Q=(L=Q.T.get(0))==null?void 0:L.location.clone();if(Q&&T.videoId){L=DE(T.videoId);T=[];if(L)for(L=g.B(L),k=L.next();!k.done;k=L.next())T.push(k.value.toString(16).padStart(2,"0"));Q.set("id",T.join(""));return Q}};
  5305. e0I=function(T,Q,k){k=k===void 0?0:k;var l,v;return g.a(function(L){if(L.S==1)return l=[],l.push(Q.load()),k>0&&l.push($05(k)),g.c(L,Promise.race(l),2);v=J95(T,Q);return L.return(v)})};
  5306. Fqu=function(T,Q,k,l){l=l===void 0?!1:l;T.set("cpn",Q.clientPlaybackNonce);T.set("opr","1");var v=Q.G();T.set("por","1");gG()||T.set("onem","1");Q.startSeconds>0&&T.set("osts",""+Q.startSeconds);l||(v.V("html5_onesie_disable_partial_segments")&&T.set("oses","1"),Q=v.V("html5_gapless_onesie_no_media_bytes")&&NY(Q)&&Q.A9,k&&!Q?(Q=k.audio,T.set("pvi",k.video.join(",")),v.V("html5_onesie_disable_audio_bytes")||T.set("pai",Q.join(",")),sd||T.set("osh","1")):(T.set("oad","0"),T.set("ovd","0"),T.set("oaad",
  5307. "0"),T.set("oavd","0")))};
  5308. ELg=function(T,Q,k,l,v){v=v===void 0?!1:v;var L="https://youtubei.googleapis.com/youtubei/"+Q.Lp.innertubeApiVersion+"/player",q=[{name:"Content-Type",value:"application/json"}];l&&q.push({name:"Authorization",value:"Bearer "+l});q.push({name:"User-Agent",value:g.KJ()});g.$i("EOM_VISITOR_DATA")?q.push({name:"X-Goog-EOM-Visitor-Id",value:g.$i("EOM_VISITOR_DATA")}):(k=k.visitorData||g.$i("VISITOR_DATA"))&&q.push({name:"X-Goog-Visitor-Id",value:k});(k=g.$i("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&q.push({name:"X-YouTube-Lava-Device-Context",
  5309. value:k});(Q=S4(Q.experiments,"debug_sherlog_username"))&&q.push({name:"X-Youtube-Sherlog-Username",value:Q});T=hl(JSON.stringify(T));return{url:L,lY:q,postBody:T,HG_:v,Xt:v}};
  5310. y95=function(T,Q,k,l,v,L,q){var Y=T.TV,U=T.tv;T=T.nee;var R=Y!==void 0&&U!==void 0,Z=l.getVideoData(),f,G=Q.T.encryptedClientKey;Q=R?Q.iv:void 0;R=e4(k.schedule,!0);v=v||!!gG()&&R>1572864;return{innertubeRequest:{PHq:T,ye:Y,tv:U,encryptedClientKey:G,iv:Q,bGk:!0,Dp:!0,jL:"DecompressionStream"in window||!v,Hd9:k.experiments.Wd("html5_use_jsonformatter_to_parse_player_response")},Ly:B8J({FB:k,yq:l,kL:Z.startSeconds*1E3}),onesieUstreamerConfig:L,Vl:q,iU:u$(Z),reloadPlaybackParams:(f=Z.Ct)==null?void 0:
  5311. f.reloadPlaybackParams}};
  5312. VFX=function(T,Q,k,l,v,L){var q=g.F0(T,UV),Y;if(!T.Xt)if(Y=Iet(Q,q)){var U=Y.yB;Y=Y.signature}else Y=U=Q.encrypt(q),(0,g.XY)(),Y=MVg(new g_g(Q.T.L),Y,Q.iv);return y95(U&&Y?{TV:U,tv:Y}:{nee:q},Q,k,l,!!T.Xt,v,L)};
  5313. T4b=function(T,Q,k,l,v,L){var q,Y,U;return g.a(function(R){if(R.S==1)return q=g.F0(T,UV),g.c(R,m0u(Q,q),2);if(R.S!=3)return Y=R.T,g.c(R,h0T(Q,Y),3);U=R.T;return R.return(y95({TV:Y,tv:U},Q,k,l,!!T.Xt,v,L))})};
  5314. Q8y=function(T,Q,k,l,v,L){var q=g.F0(T,UV);if(q=Iet(Q,q))return y95({TV:q.yB,tv:q.signature},Q,k,l,!!T.Xt,v,L)};
  5315. FJ=function(T,Q){g.x.call(this);var k=this;this.yq=T;this.playerRequest=Q;this.logger=new g.Cy("onesie");this.xhr=null;this.state=1;this.O_=new GN;this.Ho=!1;this.playerResponse="";this.Qb=new Iz(this);this.fv=new tFy(this);this.jM="";this.jA=this.Bo=!1;this.C3="";this.enableCompression=this.NJ=this.Xr=!1;this.Xq=[];this.qB=-1;this.oh=0;this.Hd=this.yq.G();this.videoData=this.yq.getVideoData();this.Kv=this.Hd.J3();this.Lk=this.Hd.Z8;this.T5=new fe5(this.Lk.T);this.bU=this.Hd.V("html5_onesie_check_timeout");
  5316. this.xZ=new g.FA(this.cS,500,this);this.SN=new g.FA(this.RZ,1E4,this);this.yT=new g.FA(function(){if(!k.isComplete()){var l=e3(k);k.fail(new g.ZK("net.timeout",l))}},1E3);
  5317. this.U9=new g.FA(this.yjq,2E3,this);this.oi=this.yq.aN();this.PY=this.V("html5_onesie_wait_for_media_availability");g.P(this.videoData,this);g.P(this,this.xZ);g.P(this,this.SN);g.P(this,this.U9);T=BL();sd&&T&&(this.Ug=new Map);this.MM=new Map;this.CI=new Map;this.Tq=new Map;this.NZ=new Map};
  5318. P6=function(T,Q){var k;return(k=T.Ug)==null?void 0:k.get(Q)};
  5319. kVg=function(T,Q,k){var l;return g.a(function(v){if(v.S==1)return T.z_("oprd_s"),j8b(T)?g.c(v,suI(T.T5,Q,k),3):(l=T.T5.decrypt(Q,k),v.Ym(2));v.S!=2&&(l=v.T);T.z_("oprd_c");return v.return(l)})};
  5320. ld5=function(T){return T.V("html5_onesie_host_probing")||T.Kv?sd:!1};
  5321. Jf=function(T){if(!T.playerResponse)return!1;if(T.Xr)return!0;var Q=T.videoData.V("html5_onesie_audio_only_playback")&&AL(T.videoData);if(T.Ug&&T.PY){if(!T.Ug.has(T.jM))return!1;var k=T.Ug.get(T.jM),l;if(l=k){l=!1;for(var v=g.B(k.Wh.keys()),L=v.next();!L.done;L=v.next())if(L=k.Wh.get(L.value))for(var q=g.B(L.CO),Y=q.next();!Y.done;Y=q.next())Y.value.wv>0&&(L.uH?l=!0:Q=!0);l=!(Q&&l)}if(l)return!1}T.z_("ofr");T.O_.resolve(T.playerResponse);if(!T.bU){var U;(U=T.yT)==null||U.start();T.SN.start()}return T.Xr=
  5322. !0};
  5323. vab=function(T){if(T.Ug&&!T.V("html5_onesie_media_capabilities")){T.z_("ogsf_s");var Q=m6t(T.yq.getVideoData(),function(l,v){T.T9(l,v)}),k=oa5(T.yq);
  5324. Q.video=qw5(k,Q.video);T.z_("ogsf_c");if(Q.video.length)return Q;T.T9("ombspf","l."+k.S+";u."+k.T+";o."+k.L+";r."+k.reason)}};
  5325. j8b=function(T,Q){return T.V("html5_onesie_sync_request_encryption")||(Q==null?0:Q.Xt)||g.XT(T.Hd)&&T.V("html5_embed_onesie_use_sync_encryption")?!1:!!gG()};
  5326. e3=function(T){if(!T.LY)return{};var Q=T.LY.i6(),k;Q.d=(k=T.LY.i9)==null?void 0:k.xo();Q.shost=T.Mu;Q.ty="o";return Q};
  5327. LRb=function(T,Q){var k,l;(l=(T=(k=T.Ug)==null?void 0:k.get(Q))==null)||(Q=T.L?!1:T.L=!0,l=!Q);return!l};
  5328. qyC=function(T,Q,k,l,v,L,q,Y,U,R,Z){g.x.call(this);var f=this;this.yq=T;this.loader=Q;this.policy=k;this.audioTrack=l;this.videoTrack=v;this.C_=L;this.V4=q;this.K_=Y;this.L=U;this.timing=R;this.D=Z;this.T=[];this.N={};this.Jj=this.u9=!1;this.Y=this.sK=this.z9=this.p_=this.GG=0;this.j=null;this.hj={Yc:[],Mm:[]};this.xm={Yc:[],Mm:[]};this.C=null;this.B=[];this.dn={d3q:function(){return f.T},
  5329. GG9:function(){return f.N},
  5330. Phq:function(){f.T.length=0},
  5331. ynd:function(){return f.videoData.f_},
  5332. DAV:function(){return f.z9},
  5333. a0K:function(G){f.z9=G},
  5334. qpk:function(G){f.Y=G},
  5335. lF:function(G){f.C=G},
  5336. J2:function(G){f.B=G}};
  5337. this.videoData=this.yq.getVideoData();this.policy.A9&&(this.e6=new v6(this.loader,this.policy,this.V4),g.P(this,this.e6))};
  5338. YyJ=function(T,Q){Q=Q===void 0?!1:Q;if(gab(T)){T.policy.B&&T.loader.T9("sabrcrq",{create:1});var k=new mT(0,T.C_.j,T);T.policy.vk>0&&T.Y++;Q=M75(T,k,Q);T.T.push(Q);var l;(l=T.e6)==null||Pc6(l,T.C_.j)}};
  5339. ZtT=function(T,Q){var k=UYg(T);if(T.policy.ek){var l=T.hj;var v=T.xm}else l=EN(T,T.audioTrack),v=EN(T,T.videoTrack);var L=[].concat(g.ZH(l.Yc),g.ZH(v.Yc));y3(T)&&L.push.apply(L,g.ZH(T.B));var q=[].concat(g.ZH(l.Mm),g.ZH(v.Mm)),Y=T.loader.yZ();if(T.policy.R0&&!T.videoData.isLivePlayback){var U=T.videoData.lengthSeconds*1E3;k>=U&&T.loader.T9("invalidSabrCmt",{cmt:k,vd:U})}var R,Z;U=T.yq;var f=T.C_,G=T.S,m=T.videoData.f_,I=T.policy,z=T.loader.LN,w=$xg(T.loader)*1E3,r=(R=T.i9)==null?void 0:R.h1;R=(Z=
  5340. T.i9)==null?void 0:Z.NU;var A;Z=Number((A=T.L.Y)==null?void 0:A.info.itag)||0;var D;A=Number((D=T.L.N)==null?void 0:D.info.itag)||0;Q={yq:U,C_:f,Yc:L,Mm:q,kL:k,nextRequestPolicy:G,Z$:m,qL:I,vp:z,AX:w,h1:r,NU:R,GG:T.GG,isPrefetch:Q||T.loader.isSuspended,CC:Z,e3:A,cw:Y,BS:T.yq.jG()};k=T.loader.WH();L=DE(k);k&&(Q.ip=L);if(k=T.yq.Pm())Q.Ft=k*1E3;var K;k=T.L;L=k.z9;if(((K=k.qL)==null?0:az(K))&&!L)for(K=g.B(k.L),q=K.next();!q.done;q=K.next())if(q.value.MY){L=!0;break}K=az(k.qL)&&!L?[]:TjI(k,k.L);Q.vY=K;
  5341. K=T.L;az(K.qL)&&!K.qO?K=[]:(k=q8I(K),k.length===0&&(k=K.B),K=TjI(K,k));Q.Dn=K;Q.fV=y3(T)?[T.C]:void 0;T.policy.BK&&(Q.eE=Rzt(T.loader,T.audioTrack),Q.sS=Rzt(T.loader,T.videoTrack));if(T.policy.S){K=T.loader.getCurrentTime();l=iY(T,l.Yc,K);v=iY(T,v.Yc,K);v=Math.min(l,v);y3(T)&&(l=iY(T,T.B,K),T.yq.J3()&&l<v&&T.loader.T9("sabrcfb",{met:v,cet:l,cbrl:T.B.length}),v=Math.min(v,l));var O;if(T.policy.K_){var E=((O=T.videoData.S)==null?void 0:O.containerType)||0;O=T.loader.Sb(T.videoData.Bs[E])}else O=(E=
  5342. T.j)==null?void 0:E.cI(v);O&&(Q.gV=O)}T.policy.D&&T.T.length>0&&T.T[0].kZ()&&(Q.E5=T.T[0].qw());return Q};
  5343. UYg=function(T){var Q,k=T.policy.N&&((Q=T.loader)==null?void 0:Q.g$());Q=T.loader.getCurrentTime()||0;Q=fd5(T,Q);var l=T.loader.Px()||0;Q+=l;l=Vv(T.videoData)||g.iO(T.videoData);var v=0;k?(l&&(v=Number.MAX_SAFE_INTEGER),T.videoData.hj&&(v=Math.ceil(T.videoData.xm*1E3))):v=Math.ceil(Q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,v)};
  5344. y3=function(T){return T.policy.F_&&!!T.C};
  5345. fd5=function(T,Q){if(T.loader.isSeeking())return Q;var k=T.yq.T_();if(!k)return Q;k=k.Q8();if(k.length===0||y4(k,Q))return Q;if(!Q3(T.videoTrack,Q)&&!Q3(T.audioTrack,Q))return T.loader.T9("sundrn",{b:0,lt:Q}),Q;for(var l=Q,v=Infinity,L=0;L<k.length;L++)if(!(k.start(L)>Q)){var q=Q-k.end(L);q<v&&(v=q,l=k.end(L))}return l!==Q&&(T.loader.T9("sundrn",{bre:l,lt:Q}),v>=20)?(T.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Q):l};
  5346. iY=function(T,Q,k){T=T.loader.Px()||0;return V3(Q,(k+T)*1E3)/1E3+k};
  5347. gab=function(T){if(T.policy.vk>0){var Q=Math.floor((0,g.XY)()/1E4);if(Q===T.sK){if(T.Y>=T.policy.vk){if(T.Y===T.policy.vk){var k={reason:"toomanyrequests"};k.limit=T.Y;T.loader.handleError("player.exception",k);T.Y+=1}return!1}}else T.sK=Q,T.Y=0}if(T.loader.isSuspended&&T.loader.xL)return!1;if(T.qO&&(0,g.XY)()<T.qO)return g.Ez(T.loader.Ii),!1;if(T.T.length>0&&(!T.policy.D||T.T.length!==1||!T.T[0].kZ()))return!1;var l;if(!(Q=(l=T.C_.j)==null||!Fo(l,T.policy,T.N,T.loader.jX())||i4(T.audioTrack)&&i4(T.videoTrack))){if(l=
  5348. T.policy.S){l=!1;if(T.D.S===2)l=!0;else if(T.D.S===3){UYg(T);T.loader.Px();var v=Oh(T.audioTrack,T.loader.isSeeking()).Yc;Q=Oh(T.videoTrack,T.loader.isSeeking()).Yc;var L=T.loader.getCurrentTime()||0;v=iY(T,v,L);Q=iY(T,Q,L);Q=Math.min(v,Q);L=T.D;Q>=L.N?(L.T9("sdai",{haltrq:Q,est:L.N}),Q=!0):Q=!1;Q&&(l=!0)}l&&T.policy.B&&T.loader.T9("sabrcrq",{waitad:1})}Q=l}if(Q)return!1;T.policy.ek&&(T.hj=EN(T,T.audioTrack),T.xm=EN(T,T.videoTrack));if(!T.S)return T.policy.B&&T.loader.T9("sabrcrq",{nopolicy:1}),!0;
  5349. if(T.yq.Pm())return T.policy.B&&T.loader.T9("sabrcrq",{utc:1}),!0;if(T.L.C)return T.policy.B&&T.loader.T9("sabrcrq",{audio:1}),!0;if(!T.S.targetAudioReadaheadMs||!T.S.targetVideoReadaheadMs)return T.policy.B&&T.loader.T9("sabrcrq",{noreadahead:1}),!0;if(T.policy.N&&T.loader.g$())return T.policy.B&&T.loader.T9("sabrcrq",{seekToHead:1}),!0;l=Math.min(vJ(T.loader,T.audioTrack)*1E3,T.S.targetAudioReadaheadMs);Q=Math.min(vJ(T.loader,T.videoTrack)*1E3,T.S.targetVideoReadaheadMs);var q=Math.min(l,Q);L=er(T.audioTrack,
  5350. !0)*1E3;v=er(T.videoTrack,!0)*1E3;var Y=T.yq.getCurrentTime()*1E3;if(T.policy.ek){var U=V3(T.hj.Yc,Y);var R=V3(T.xm.Yc,Y)}else U=L,R=v;var Z=U<q;var f=R<q;if(y3(T)){Y=V3(T.B,Y);var G=Y<q;T.yq.J3()&&G&&!Z&&!f&&T.loader.T9("sabrcrnm",{cra:Y,mpra:q,cbrl:T.B.length})}if(!(Z||f||y3(T)&&G))return T.policy.ek&&T.yq.J3()&&(L<q||v<q)&&T.loader.T9("sabrncrq",{car:U,vac:R,abh:L,vbh:v,mar:l,mvr:Q}),!1;if(T.policy.ys&&GVJ(T.loader)&&T.videoData.aD()||T.policy.hF&&GVJ(T.loader))return!1;T.policy.B&&(G=T.loader.Tx(),
  5351. G.car=U,G.vac=R,G.mar=l,G.mvr=Q,G.tar=T.S.targetAudioReadaheadMs,G.tvr=T.S.targetVideoReadaheadMs,G.vbu=FL(((k=T.yq.T_())==null?void 0:k.Q8())||null),G.abh=L,G.vbh=v,T.loader.T9("sabrcrq",G));return!0};
  5352. EN=function(T,Q){UYg(T);T.loader.Px();return Oh(Q,T.loader.isSeeking())};
  5353. V3=function(T,Q){var k=0,l=-1;T=g.B(T);for(var v=T.next();!v.done;v=T.next())if(v=v.value,!(v.startTimeMs+v.durationMs<Q)){if(l<0&&v.startTimeMs>Q||l>=0&&v.CB>l+1)break;k=Math.max(k,v.startTimeMs+v.durationMs);l=Math.max(l,v.iH)}return Math.max(0,k-Q)};
  5354. M75=function(T,Q,k){var l={V4:T.V4,uu:function(U,R){T.yq.eN(U,R)},
  5355. Zr:T.policy.Z6,By:T.policy.L};T.V4.S.B&&(l.Ds=(T.videoTrack.T.info.qY||0)+(T.audioTrack.T.info.qY||0));T.policy.XU&&(l.bH=T.audioTrack.T.index.Z3(),l.Zr=!1);var v=Y8b(Q,T.policy,T.N)?2:1;v!==T.z9&&(T.z9=v,mYt(T));k=ZtT(T,k);if(T.policy.D&&T.policy.L&&k.Z$){for(var L=v="",q=g.B(k.Z$),Y=q.next();!Y.done;Y=q.next())Y=Y.value,T.videoData.sabrContextUpdates.has(Y)||T.policy.D&&k.E5&&k.E5.type===Y?v+="_"+Y:L+="_"+Y;T.loader.T9("sabrbldrqs",{ctxts:v,misctxts:L})}!Q.setData(k,T.policy,T.N)&&T.policy.D&&T.loader.handleError("player.exception",
  5356. {reason:"buildsabrrequestdatafailed"},1);l=new eJ(T.policy,Q,T.C_,T.N,T,l,T.loader.aN());FM(T.timing);T.policy.B&&T.loader.T9("sabrcrq",{rn:l.IB(),probe:Q.u6()});return l};
  5357. QE=function(T,Q){if(Q.wd()||T.wd())T.policy.Ct||(T.policy.N?Tj(T.loader):T.loader.Jh());else{if(T.policy.L&&Q.isComplete()&&Q instanceof eJ){var k=T.loader,l=k.T9,v,L,q=Object.assign(Q.LY.i6(),{rst:Q.state,strm:Q.xhr.gQ(),d:(v=Q.LY.i9)==null?void 0:v.xo(),cncl:Q.xhr&&Q.jV.Y?1:0,rqb:Q.g7,cwt:Q.vN,swt:(L=Q.Dm)==null?void 0:L.Dk});v=Object.assign(ZnJ(Q.info),q);l.call(k,"rqs",v)}if(Q.isComplete()&&Q.u6()&&Q instanceof eJ)T.policy.Fk?Q.lj()?(Q.dispose(),T.T.length===0?T.loader.Jh():(T=T.T[0],T instanceof
  5358. eJ&&T.Jn()&&T.Q$())):Q.u5()&&T.loader.handleError(Q.SZ(),Q.HA()):(Q.dispose(),T.loader.Jh());else{if(Q.s8())Q instanceof eJ&&QXX(T.timing,Q),mYt(T),Idb(T);else if(Q.u5())k=T.yq.Pm(),Q instanceof eJ&&R0J(Q.info)&&k&&T.loader.Fi(k),Q instanceof FJ?T.T.pop():(k=1,Q.canRetry()&&ySg(T.loader)&&(hzC(T,Q),k=0),T.loader.handleError(Q.SZ(),Q.HA(),k));else{if(T.loader.isSuspended&&!Q.isComplete())return;Idb(T)}Q.wd()||Q instanceof FJ||(Q.isComplete()?k=Oc5(Q,T.policy,T.N):(k=t4u(Q,T.policy,T.N),k===1&&(T.u9=
  5359. !0)),k!==0&&(l=new mT(1,Q.info.Xs),l.YE=k===2,M75(T,l)));T.policy.DP&&!Q.isComplete()?Emy(T.loader):T.loader.Jh()}}};
  5360. Idb=function(T){for(;T.T.length&&T.T[0].qj(T.Dg());){var Q=T.T.shift();s86(T,Q)}T.T.length&&s86(T,T.T[0])};
  5361. s86=function(T,Q){Q instanceof eJ&&(T.Bd=Q);var k=new Set(Q.eX(T.Dg()));k=g.B(k);for(var l=k.next();!l.done;l=k.next()){var v=l.value;if(!(l=!(Q instanceof FJ))){l=T.L;var L=l.C_.Cc,q=GD(l.videoInfos,L);L=LqI(l,v,L);var Y=q.includes(v);!l.qL.WP||L||Y||l.loader.T9("sabrcpf",{fid:""+v,vfids:""+q.join("."),said:l.j||""});l=L||q.includes(v)}if(l&&(l=Q.gr(v,T.Dg()),q=T.policy.F_&&Wj(l[0].T.info.mimeType),Q.HH(v,T.Dg())))for(v=Q.TW(v,T.Dg()),v=g.B(v),L=v.next();!L.done;L=v.next())if(L=L.value,T.policy.L&&
  5362. Q instanceof FJ&&T.loader.T9("omblss",{s:L.info.Bh()}),q)Y=T.timing,Y.z9||(Y.z9=(0,g.XY)(),g.JB("fcb_r",Y.z9,Y.T)),Y=T,Y.videoData.Cc()&&Y.C&&Ew(Y.C)===Ew(g.Hj(L.info.T.info,Y.C_.Cc))&&Y.yq.publish("sabrCaptionsDataLoaded",L,Y.J2.bind(Y));else{Y=L.info.T.info.uH();var U=L.info.T;if(Y){var R=void 0;var Z=T.L,f=(R=Q.yK(T.Dg()))==null?void 0:R.token;Z.C&&U!==Z.N?R=!0:(Z.C=!1,U!==Z.N&&(Z.N=U,Z.nJ(U,Z.audioTrack,f)),R=!1);if(R)continue}else R=void 0,V4J(T.L,U,(R=Q.yK(T.Dg()))==null?void 0:R.token);R=Y?
  5363. T.audioTrack:T.videoTrack;Q instanceof FJ&&(R.C=!1,Q instanceof FJ&&(Y?eJg(T.timing):JwJ(T.timing)));try{tA(R,l,L)}catch(G){L=GX(G),T.loader.handleError(L.errorCode,L.details,L.severity),R.FJ(),T.Bz(!1,"pushSlice"),Tj(T.loader)}}}};
  5364. hzC=function(T,Q){T.policy.D?T.T.splice(T.T.indexOf(Q)).forEach(function(k){k.dispose()}):(T.T.pop(),Q==null||Q.dispose())};
  5365. Sy6=function(T,Q,k){for(var l=[],v=0;v<T.T.length;v++)Q&&T.T[v]instanceof FJ?l.push(T.T[v]):(T.policy.B&&T.loader.T9("sabrcrq",{d:T.T[v].IB(),src:k}),T.T[v].dispose());T.T=l};
  5366. mYt=function(T){T.videoData.f_.clear();if(T.videoData.sabrContextUpdates.size>0)for(var Q=g.B(T.videoData.sabrContextUpdates.keys()),k=Q.next();!k.done;k=Q.next()){k=k.value;var l=void 0;((l=T.videoData.sabrContextUpdates.get(k))==null?0:l.sendByDefault)&&T.videoData.f_.add(k)}if(T.policy.D&&T.T.length)for(Q=g.B(T.T),k=Q.next();!k.done;k=Q.next())(k=k.value.qw())&&k.type&&k.sendByDefault&&T.videoData.f_.add(k.type)};
  5367. COC=function(T){T.policy.Z8&&(T.i9=void 0,T.GG=0)};
  5368. B4f=function(T,Q){if(Q.u5()||Q.wd()){var k=T.loader,l=k.T9,v=Q.state;T=T.Dg();var L,q;if((Q=(L=Q.Ug)==null?void 0:L.get(T))==null)Q=void 0;else{L=0;T=Q.eX();for(var Y=0;Y<T.length;Y++){var U=void 0;L+=((U=Q.Wh.get(T[Y]))==null?void 0:U.bytesReceived)||0}Q=L}Q=(q=Q)!=null?q:-1;l.call(k,"sabromb",{s:v,tbytes:Q})}else T.T.push(Q),Q.Xq.push(T),FM(T.timing),T.policy.K7&&Q.BX&&T.lX(Q.BX,Q.IB())};
  5369. zz5=function(T){var Q,k;return{requestNumber:((Q=T.Bd)==null?void 0:Q.IB())||-1,isDecorated:(k=T.Bd)==null?void 0:k.info.isDecorated()}};
  5370. Xvu=function(T){this.yq=T;this.T=new Map};
  5371. wvg=function(T){var Q,k;return(k=(Q=T.yq.T_())==null?void 0:Q.getCurrentTime())!=null?k:T.yq.getCurrentTime()};
  5372. N4g=function(T,Q,k){var l;(l=T.T.get(k))==null||l.delay.dispose();T.T.delete(k);return new Promise(function(v){v={id:k,mediaTime:Q,delay:new g.FA(function(){}),
  5373. resolve:v};T.T.set(k,v);dYu(T,v)})};
  5374. ALI=function(T){T.T.forEach(function(Q){Q.delay.dispose()});
  5375. T.T.clear()};
  5376. dYu=function(T,Q){var k=wvg(T);k>=Q.mediaTime&&g.J(T.yq.getPlayerState(),8)?(Q.resolve([Q.mediaTime,Q.id]),T.T.delete(Q.id)):(Q.delay.dispose(),Q.delay=new g.FA(function(){dYu(T,Q)},(Q.mediaTime-k)*1E3/T.yq.getPlaybackRate()),Q.delay.start())};
  5377. rLt=function(T,Q,k,l){var v=this;this.L=T;this.cpn=Q;this.yq=k;this.T=l;this.S=new Map;this.N=new Map;this.C=this.j=NaN;this.B=!1;this.Bl="";this.isSeeking=!1;this.D=0;this.Y=new Xvu(k);this.lH=k.lH;this.yq.subscribe("SEEK_TO",function(){v.yf()});
  5378. this.yq.subscribe("SEEK_COMPLETE",function(){btX(v)})};
  5379. DY6=function(T,Q){if(!T.isSeeking&&T.D!==Q&&!isNaN(T.j)){T.D=Q;var k=T.B?T.C:T.L.ll(Q);(k!==T.C||T.B)&&cLJ(T,k,Q)}};
  5380. cLJ=function(T,Q,k){var l=T.S.get(Q),v=T.L.getStartTime(Q),L=T.L.getDuration(Q);T.B=!1;T.C=Q;var q=v,Y;((Y=l==null?void 0:l.T)!=null?Y:[T.cpn]).forEach(function(U,R){var Z;R=(Z=l==null?void 0:l.S[R])!=null?Z:L;k>=q&&k<q+R?adH(T,U,q,k):k<q&&(T.B=!0);q+=R})};
  5381. KRI=function(T,Q,k,l){l=l===void 0?0:l;var v;if(Q!==T.j||((v=T.S.get(Q))==null?void 0:v.L)!==(k==null?void 0:k.L))if(k?T.S.set(Q,k):T.S.delete(Q),!T.isSeeking){var L=T.L.getStartTime(Q);T.j=Q;uCX(T,Q);var q,Y;v=(Y=(q=T.S.get(Q-1))==null?void 0:q.T)!=null?Y:[T.cpn];var U=v[v.length-1];if(k){var R=L;k.T.forEach(function(Z,f){R<L+l||(Z!==U&&naC(T,Q,Z,R),R+=k.S[f],U=Z)})}else U!==T.cpn&&naC(T,Q,T.cpn,L)}};
  5382. uCX=function(T,Q){var k;((k=T.N.get(Q))!=null?k:[]).forEach(function(l){T.T===0&&T.lH.IU("transitiondetector",l);if(T.T===1){var v=T.Y,L;(L=v.T.get(l))==null||L.delay.dispose();v.T.delete(l)}});
  5383. T.N.delete(Q)};
  5384. btX=function(T){var Q,k,l=(k=(Q=T.yq.T_())==null?void 0:Q.getCurrentTime())!=null?k:T.yq.getCurrentTime(),v=T.L.ll(l);cLJ(T,v,l);T.isSeeking=!1;Array.from(T.S.keys()).sort(function(L,q){return L-q}).forEach(function(L){L>v?KRI(T,L,T.S.get(L)):L===v&&KRI(T,L,T.S.get(L),l-T.L.getStartTime(L))})};
  5385. adH=function(T,Q,k,l){Q!==T.Bl&&(T.yq.T9("ssevt",{tag:T.T===0?"sstd-cr":T.T===1?"sstd-tm":T.T===2?"sstd-poll":T.T===3?"sstd-poll100":"sstd-unknown",ad:T.cpn!==Q,cpn:Q,st:k.toFixed(3),late:Math.round(T.isSeeking?0:(l-k)*1E3)}),T.Bl=Q)};
  5386. xY5=function(T){var Q=g.B(T.split("."));T=Q.next().value;Q=Q.next().value;return[Number(T),Q]};
  5387. naC=function(T,Q,k,l){k=Q+"."+k;T.N.has(Q)?T.N.get(Q).push(k):T.N.set(Q,[k]);T.T===1&&N4g(T.Y,l,k).then(function(v){var L=g.B(v);v=L.next().value;L=L.next().value;L=g.B(xY5(L));L.next();L=L.next().value;adH(T,L,v,wvg(T.Y))});
  5388. T.T===0&&(T.lH.IU("transitiondetector",k),Q=(l+T.yq.Px())*1E3,T.lH.fY([new g.$d(Q,Q+5E3,{id:k,namespace:"transitiondetector",priority:9})]))};
  5389. PO5=function(T,Q,k,l,v){this.loader=T;this.policy=Q;this.schedule=k;this.xR=l;this.D=v;this.z9=NaN;this.S=this.C=this.Y=null;this.T=this.N=this.B=this.startTimeSecs=NaN;this.L=!1;this.j=NaN};
  5390. Htf=function(T,Q,k,l,v,L){return Q.cg&&Q.vn&&k===3?new PO5(T,Q,l,v,L):null};
  5391. t7X=function(T,Q){if(T.policy.Pp){var k=Q.info.qY,l=e4(T.schedule);Q=Q.index.Z3();k=Math.max(1,l/k);T.j=Math.round(Math.max(((k-1)*Q+T.policy.t6)/k,Q-T.policy.eO)*1E3)}};
  5392. WRy=function(T,Q){var k=Date.now()/1E3,l=k-T.startTimeSecs,v=k-T.B,L=v>=T.policy.bx,q=!1;if(L){var Y=0;!isNaN(Q)&&Q>T.N&&(Y=Q-T.N,T.N=Q);Y/v<T.policy.f9&&(q=!0);T.B=k}k=l>=T.policy.eO&&!T.L;if(!L&&!k&&OtJ(T,Q))return NaN;k&&(T.L=!0);a:{l=q;k=(0,g.XY)()/1E3-(T.xR.hx()||0)-T.C.T-T.policy.t6;L=T.S.startTime;k=L+k;if(l){if(isNaN(Q)){j2(T,NaN,"n",Q);L=NaN;break a}l=Q-T.policy.wJ;l<k&&(k=l)}else T.L&&(l=k+T.policy.t6-T.z9+T.policy.hC,isNaN(Q)||(l=Math.max(l,Math.min(k,Q-T.policy.wJ))),k=l);L=k=Math.max(k,
  5393. L)}T.T=L;if(isNaN(T.T))return T.clear(),NaN;if(!q&&OtJ(T,Q))return pvJ(T,Q),NaN;if(T.T<=T.S.startTime)return j2(T,NaN,"y",Q),T.clear(),NaN;if(!T.D(T.T,!1))return!pvJ(T,Q)&&q&&(j2(T,NaN,"t",Q),T.clear()),NaN;q=T.T;j2(T,q,"s",Q);T.clear();return q};
  5394. pvJ=function(T,Q){return T.D(T.T,!0)?!1:(j2(T,NaN,"ns",Q),T.clear(),!0)};
  5395. OtJ=function(T,Q){return isNaN(Q)?!0:isNaN(T.T)?!1:Q<T.T+(T.L?T.policy.wJ:T.policy.p9)};
  5396. j2=function(T,Q,k,l){var v=T.Y.HA();v.ssr_sk=(Q*1E3).toFixed(0);v.ssr_t=(T.T*1E3).toFixed(0);v.ssr_r=k;v.ssr_st=(T.startTimeSecs*1E3).toFixed(0);v.ssr_n=(0,g.XY)().toFixed(0);v.ssr_f=(T.C.T*1E3).toFixed(0);v.ssr_fa=T.L?"1":"0";v.ssr_o=(T.xR.hx()*1E3||0).toFixed(0);v.ssr_v=(l*1E3).toFixed(0);Q=T.S.T.index;Q.f7(T.S.NO,!0)&&(v.ssr_ist=(Q.getStartTime(T.S.NO)*1E3).toFixed(0),v.ssr_id=(Q.getDuration(T.S.NO)*1E3).toFixed(0));T.loader.T9("ssr",v)};
  5397. $YC=function(){var T={},Q=window.performance;if(Q){var k=Q.memory;if(k){T.jsTotal=k.totalJSHeapSize;T.jsUsed=k.usedJSHeapSize;T.jsLimit=k.jsHeapSizeLimit;var l,v;T.msTotal=(v=(l=k.getMediaSourceTotalAllocatedMemory)==null?void 0:l.call(k))!=null?v:k.totalMediaSourceSize;var L,q;T.msLimit=(q=(L=k.getMediaSourceMaximumMemoryCapacity)==null?void 0:L.call(k))!=null?q:k.mediaSourceSizeLimit;var Y,U;T.msUsed=(U=(Y=k.getMediaSourceCurrentMemoryCapacity)==null?void 0:Y.call(k))!=null?U:k.usedMediaSourceMemorySize}Q.measureAvailableCpuMemory&&
  5398. (T.cbFree=Q.measureAvailableCpuMemory());Q.measureUsedCpuMemory&&(T.cbUsed=Q.measureUsedCpuMemory())}var R;if((R=window.h5vcc)==null?0:R.cVal)T.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),T.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),T.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return T};
  5399. JLt=function(T){return window.PressureObserver&&new window.PressureObserver(T)};
  5400. ezt=function(T){T=T===void 0?JLt:T;g.x.call(this);var Q=this;try{this.L=T(function(l){Q.S=l.at(-1)});
  5401. var k;this.Y=(k=this.L)==null?void 0:k.observe("cpu",{sampleInterval:2E3}).catch(function(l){l instanceof DOMException&&(Q.T=l)})}catch(l){l instanceof DOMException&&(this.T=l)}};
  5402. FRJ=function(T){var Q={},k=window.h5vcc;Q.hwConcurrency=navigator.hardwareConcurrency;T.T&&(Q.cpe=T.T.message);T.S&&(Q.cpt=T.S.time,Q.cps=T.S.state);if(k==null?0:k.cVal)Q.cb2s=k.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),Q.cb5s=k.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),Q.cb30s=k.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return Q};
  5403. Ea5=function(T){var Q;g.a(function(k){switch(k.S){case 1:return g.z5(k,2),g.c(k,T.Y,4);case 4:g.d6(k,3);break;case 2:g.by(k);case 3:(Q=T.L)==null||Q.disconnect(),g.BT(k)}})};
  5404. ity=function(T,Q){Q?yLH.test(T):(T=g.k5(T),Object.keys(T).includes("cpn"))};
  5405. Ts5=function(T,Q,k,l,v,L,q){var Y={format:"RAW"},U={};if(vD(T)&&Lh()){if(q){var R;((R=V7X.uaChPolyfill)==null?void 0:R.state.type)!==2?q=null:(q=V7X.uaChPolyfill.state.data.values,q={"Synth-Sec-CH-UA-Arch":q.architecture,"Synth-Sec-CH-UA-Model":q.model,"Synth-Sec-CH-UA-Platform":q.platform,"Synth-Sec-CH-UA-Platform-Version":q.platformVersion,"Synth-Sec-CH-UA-Full-Version":q.uaFullVersion});U=Object.assign(U,q);Y.withCredentials=!0}(q=g.$i("EOM_VISITOR_DATA"))?U["X-Goog-EOM-Visitor-Id"]=q:l?U["X-Goog-Visitor-Id"]=
  5406. l:g.$i("VISITOR_DATA")&&(U["X-Goog-Visitor-Id"]=g.$i("VISITOR_DATA"));k&&(U["X-Goog-PageId"]=k);(l=Q.hj)&&!BB(Q)&&(U["X-Goog-AuthUser"]=l);v&&(U.Authorization="Bearer "+v);Q.V("enable_datasync_id_header_in_web_vss_pings")&&Q.kh&&Q.datasyncId&&(U["X-YouTube-DataSync-Id"]=Q.datasyncId);q||U["X-Goog-Visitor-Id"]||v||k||l?Y.withCredentials=!0:Q.V("html5_send_cpn_with_options")&&yLH.test(T)&&(Y.withCredentials=!0)}Object.keys(U).length>0&&(Y.headers=U);L&&(Y.onFinish=L);return Object.keys(Y).length>1?
  5407. Y:null};
  5408. Qay=function(T,Q,k,l,v,L,q,Y){Lh()&&k.token&&(T=lC(T,{ctt:k.token,cttype:k.Bv,mdx_environment:k.mdxEnvironment}));l.V("net_pings_low_priority")&&(Q||(Q={}),Q.priority="low");L||Y&&l.V("nwl_skip_retry")?(Q==null?Q={}:ity(T,l.V("html5_assert_cpn_with_regex")),q?$r().sendAndWrite(T,Q):$r().sendThenWrite(T,Q,Y)):Q?(ity(T,l.V("html5_assert_cpn_with_regex")),L_J(T,Q)):g.uM(T,v)};
  5409. jaH=function(T){for(var Q=[],k=0;k<T;k++){for(var l={},v=Math.floor(Math.random()*9*1E8)+1E8,L="",q=0;q<9;q++)L+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];l.videoDecoderName=L;l.elapsedTimeMs=v;Q.push(l)}return Q};
  5410. khX=function(T){return window.Profiler&&new window.Profiler(T)};
  5411. l_T=function(T){/[^a-zA-Z0-9;.!_-]/.test(T)&&(T=T.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return T};
  5412. kO=function(T,Q,k){k=k===void 0?khX:k;g.x.call(this);this.sampleInterval=T;this.maxBufferSize=Q;this.N=k;this.encoder=new uc;this.T=[];this.L=0;oD5(this)};
  5413. oD5=function(T){var Q=T.sampleInterval,k=T.maxBufferSize;if(Q>0&&k>0&&!T.S&&T.L<1E7)try{T.Y=T.N({sampleInterval:Q,maxBufferSize:k});var l;(l=T.Y)==null||l.addEventListener("samplebufferfull",function(){return g.a(function(v){if(v.S==1)return g.c(v,T.stop(),2);oD5(T);g.BT(v)})})}catch(v){T.S=l_T(v.message)}};
  5414. vDH=function(T,Q){var k,l;return!!((k=window.h5vcc)==null?0:(l=k.settings)==null?0:l.set(T,Q))};
  5415. qUy=function(){var T,Q,k,l=(T=window.h5vcc)==null?void 0:(Q=T.settings)==null?void 0:(k=Q.getPersistentSettingAsString)==null?void 0:k.call(Q,"cpu_usage_tracker_intervals");if(l!=null){var v;T=(v=JSON.parse(l))!=null?v:[];v=T.filter(function(R){return R.type==="total"}).map(function(R){return R.seconds});
  5416. Q=g.B(LKf);for(k=Q.next();!k.done;k=Q.next())k=k.value,v.indexOf(k)===-1&&T.push({type:"total",seconds:k});var L,q;(L=window.h5vcc)==null||(q=L.settings)==null||q.set("cpu_usage_tracker_intervals_enabled",1);var Y,U;(Y=window.h5vcc)==null||(U=Y.settings)==null||U.set("cpu_usage_tracker_intervals",JSON.stringify(T))}};
  5417. gDy=function(){var T=window.H5vccPlatformService,Q="";if(T&&T.has("dev.cobalt.coat.clientloginfo")&&(T=T.open("dev.cobalt.coat.clientloginfo",function(){}))){var k=T.send(new ArrayBuffer(0));
  5418. k&&(Q=String.fromCharCode.apply(String,g.ZH(new Uint8Array(k))));T.close()}return Q};
  5419. g.vV=function(T){g.x.call(this);var Q=this;this.provider=T;this.logger=new g.Cy("qoe");this.T=new Map;this.sequenceNumber=1;this.qO=NaN;this.yU="N";this.j=this.kT=this.L4=this.z9=this.S=0;this.OG=this.Bd=this.B=this.Jj="";this.Fk=this.sK=NaN;this.DP=0;this.t6=-1;this.Z8=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.QR=this.isEmbargoed=this.i9=this.isOffline=this.isBuffering=!1;this.gt=[];this.D=null;this.Tg=this.Y=this.zg=this.C=!1;this.L=-1;this.u9=!1;this.Hn=new g.FA(this.ZZ,750,this);this.Tc=
  5420. this.adCpn=this.xm=this.contentCpn="";this.adFormat=void 0;this.vn=0;this.f_=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Ah=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.h3=!1;this.Ig=NaN;this.e6=0;this.d5=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Gg=!1;this.F_=new Set;this.dn={Vf:function(l){Q.Vf(l)},
  5421. qkd:function(){return Q.N},
  5422. Zs:function(){return Q.contentCpn},
  5423. K_m:function(){return Q.xm},
  5424. reportStats:function(){Q.reportStats()},
  5425. AV9:function(){return Q.T.get("cat")||[]},
  5426. Hp:function(l){return Q.T.get(l)||[]},
  5427. sY6:function(){return Q.T},
  5428. Jne:function(){return 0},
  5429. NrB:function(){return{adCpn:Q.adCpn,Tc:Q.Tc,adFormat:Q.adFormat}}};
  5430. this.hj=this.provider.Hd.V("html5_qoe_relaxed_reporting");var k=g.jj(this.provider.Hd.experiments,"html5_qoe_proto_mock_length");k&&!lg.length&&(lg=jaH(k));g.P(this,this.Hn);try{navigator.getBattery().then(function(l){Q.D=l})}catch(l){}g.of(this,0,"vps",["N"]);
  5431. T.Hd.J3()&&(this.e6=(0,g.XY)(),this.Ig=g.fh(function(){var l=(0,g.XY)(),v=l-Q.e6;v>500&&Q.T9("vmlock",{diff:v.toFixed()});Q.e6=l},250));
  5432. this.provider.videoData.w8&&(this.remoteControlMode=M$T[this.provider.videoData.w8]||0);this.provider.videoData.SO&&(k=ZBC(this.provider.videoData.SO),k==null?0:k.length)&&(this.remoteConnectedDevices=k);T.Hd.J3()&&(this.K_=new ezt,g.P(this,this.K_));k=g.jj(T.Hd.experiments,"html5_js_self_profiler_sample_interval_ms");T=g.jj(T.Hd.experiments,"html5_js_self_profiler_max_samples");k>0&&T>0&&(this.p_=new kO(k,T),g.P(this,this.p_))};
  5433. L6=function(T,Q,k){var l=T.T.get(Q);l?l.push(k):T.T.set(Q,[k])};
  5434. g.of=function(T,Q,k,l){L6(T,k,Q.toFixed(3)+":"+l.join(":"))};
  5435. YUC=function(T,Q){var k=T.adCpn||T.provider.videoData.clientPlaybackNonce,l=T.provider.getCurrentTime(k);g.of(T,Q,"cmt",[l.toFixed(3)]);k=l=T.provider.Jb(k);if((!T.N||T.provider.Hd.V("html5_shorts_gapless_no_gllat")&&NY(T.provider.videoData)?0:k*1E3>T.N.lO+100)&&T.N){var v=T.N;k=v.isAd;l=l*1E3-v.lO;T.lA=Q*1E3-v.VDH-l-v.oPq;v=(0,g.XY)()-l;Q=T.lA;l=T.provider.videoData;var L=l.isAd();if(k||L){L=(k?"ad":"video")+"_to_"+(L?"ad":"video");var q={};l.B&&(q.cttAuthInfo={token:l.B,videoId:l.videoId});q.startTime=
  5436. v-Q;At(L,q);g.NL({targetVideoId:l.videoId,targetCpn:l.clientPlaybackNonce},L);dS("pbs",v,L)}else v=T.provider.yq.eZ(),v.B!==l.clientPlaybackNonce?(v.N=l.clientPlaybackNonce,v.S=Q):l.aD()||g.rB(new g.Wy("CSI timing logged before gllat",{cpn:l.clientPlaybackNonce}));T.T9("gllat",{l:T.lA.toFixed(),prev_ad:+k});delete T.N}};
  5437. gT=function(T,Q){Q=Q===void 0?NaN:Q;Q=Q>=0?Q:g.qR(T.provider);var k=T.provider.yq.rH(),l=k.Pz-(T.sK||0);l>0&&g.of(T,Q,"bwm",[l,(k.oS-(T.Fk||0)).toFixed(3)]);isNaN(T.sK)&&k.Pz&&T.isOffline&&T.Vf(!1);T.sK=k.Pz;T.Fk=k.oS;isNaN(k.bandwidthEstimate)||g.of(T,Q,"bwe",[k.bandwidthEstimate.toFixed(0)]);T.provider.Hd.J3()&&Object.keys(k.T).length!==0&&T.T9("bwinfo",k.T);if(T.provider.Hd.J3()||T.provider.Hd.V("html5_log_meminfo"))l=$YC(),Object.values(l).some(function(L){return L!==void 0})&&T.T9("meminfo",
  5438. l);
  5439. if(T.provider.Hd.J3()){var v;(l=(v=T.K_)==null?void 0:FRJ(v))&&Object.values(l).some(function(L){return L!=null})&&T.T9("cpuinfo",l)}T.p_&&T.T9("jsprof",T.p_.flush());
  5440. T.D&&g.of(T,Q,"bat",[T.D.level,T.D.charging?"1":"0"]);v=T.provider.yq.getVisibilityState();T.t6!==v&&(g.of(T,Q,"vis",[v]),T.t6=v);YUC(T,Q);(v=UfT(T.provider))&&v!==T.DP&&(g.of(T,Q,"conn",[v]),T.DP=v);Rqb(T,Q,k)};
  5441. Rqb=function(T,Q,k){if(!isNaN(k.Qh)){var l=k.Qh;k.S<l&&(l=k.S);g.of(T,Q,"bh",[l.toFixed(3)])}};
  5442. ZXg=function(T,Q,k){g.rj(T.provider.Hd,g.YD(T.provider.videoData)).then(function(l){var v=!1;Q.includes("&dt=")||Q.includes("&cotn=")?v=!0:T.provider.Hd.V("qoe_with_networkless")&&(v=!0);var L=T.provider.Hd.V("qoe_send_and_write"),q=T.provider.Hd;l=Ts5(Q,q,T.provider.Hd.pageId,T.provider.Hd.sendVisitorIdHeader?T.provider.videoData.visitorData:void 0,l);q.V("html5_simplify_pings")&&(l=l||{});l?(l.method="POST",l.postBody=k,Qay(Q,l,{token:T.provider.videoData.B,Bv:T.provider.videoData.Yz,mdxEnvironment:T.provider.videoData.mdxEnvironment},
  5443. q,void 0,v,L&&T.i9)):v?(v=T.provider.Hd.V("networkless_ajax"),q={method:"POST",postBody:k},L&&T.i9?$r().sendAndWrite(Q,q):v?g.zO(Q,{method:"POST",postBody:k}):$r().sendThenWrite(Q,q)):(L=k,L=L===void 0?"":L,q46(Q,L)||g.uM(Q,void 0,void 0,void 0,L))})};
  5444. f_y=function(T){if(!T.provider.Hd.V("html5_qoe_no_len_check")){for(var Q=0,k=g.B(T.T.entries()),l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;Q+=l.length+Number(so(v,function(L,q){return L+q.length},0))}Q>96E3&&(new g.FA(T.reportStats,0,T)).start()}};
  5445. GhJ=function(T){T.provider.videoData.A9&&MR(T,"prefetch");T.provider.videoData.Gg&&T.T9("reload",{r:T.provider.videoData.reloadReason,ct:T.provider.videoData.Gg});T.provider.videoData.zg&&MR(T,"monitor");T.provider.videoData.isLivePlayback&&MR(T,"live");sd&&MR(T,"streaming");T.provider.videoData.w8&&T.T9("ctrl",{mode:T.provider.videoData.w8},!0);if(T.provider.videoData.SO){var Q=T.provider.videoData.SO.replace(/,/g,"_");T.T9("ytp",{type:Q},!0)}T.provider.videoData.gF&&(Q=T.provider.videoData.gF.replace(/,/g,
  5446. "."),T.T9("ytrexp",{ids:Q},!0));Q=T.provider.videoData;var k=T.provider.Hd.V("enable_white_noise")||T.provider.Hd.V("enable_webgl_noop"),l=g.tL(Q)||g.Th(Q)||g.Q5(Q)||g.j$(Q);(k||l)&&(k=(0,g.YO)())&&T.T.set("gpu",[k]);Z_(T.provider.videoData)&&g.of(T,g.qR(T.provider),"dt",["1"]);T.provider.V("html5_record_is_offline_on_playback_attempt_start")&&Q.cotn&&!Z_(Q)&&T.Vf(!0);T.provider.Hd.J3()&&(Q=(0,g.XY)()-T.provider.Hd.Wk,T.T9("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Q/1E3)/Math.log(1.6))).toFixed()}));
  5447. T.Y=!0;T.qO=g.fh(function(){T.reportStats()},1E4)};
  5448. I_t=function(T,Q,k){var l=g.qR(T.provider);mfX(T,l,Q,0,k);gT(T,l);f_y(T)};
  5449. mfX=function(T,Q,k,l,v){var L=T.provider.Hd.T.cbrver;T.provider.Hd.T.cbr==="Chrome"&&/^96[.]/.test(L)&&k==="net.badstatus"&&/rc\.500/.test(v)&&hqg(T,3);T.provider.Hd.V("html5_use_ump")&&/b248180278/.test(v)&&hqg(T,4);L=T.provider.getCurrentTime(T.adCpn||T.provider.videoData.clientPlaybackNonce);l=l===1?"fatal":"";k=[k,l,L.toFixed(3)];l&&(v+=";a6s."+yi());v&&k.push(sa5(v));g.of(T,Q,"error",k);T.Y=!0};
  5450. SUI=function(T,Q){var k=g.qR(T.provider);if(!T.provider.Hd.experiments.Wd("html5_refactor_sabr_video_format_selection_logging")||Q.T.id!==T.Jj){var l=[Q.T.id,Q.S,T.Jj,Q.reason];Q.token&&l.push(Q.token);g.of(T,k,"vfs",l);T.Jj=Q.T.id;l=T.provider.yq.getPlayerSize();if(l.width>0&&l.height>0){l=[Math.round(l.width),Math.round(l.height)];var v=g.SF();v>1&&l.push(v);g.of(T,k,"view",l)}T.zg||(T.provider.Hd.J3()&&MR(T,"rqs2"),T.provider.videoData.T&&nP(T.provider.videoData.T)&&T.T.set("preload",["1"]));T.zg=
  5451. !0;T.Y=!0}Q.reason==="m"&&++T.vn===100&&hqg(T,2);g.of(T,k,"vps",[T.yU]);T.hj||T.reportStats(k)};
  5452. CtC=function(T){T.L>=0||(T.provider.Hd.pG||T.provider.yq.getVisibilityState()!==3?T.L=g.qR(T.provider):T.u9=!0)};
  5453. Bs5=function(T,Q,k){if(T.provider.Hd.experiments.Wd("html5_refactor_sabr_audio_format_selection_logging")){Q=k.T;var l=[Q.audio&&Q.video?Q.Xb?Q.Xb:"":Q.id];Q.MY&&Q.MY.id&&l.push(Q.MY.id);Q=l.join(";");Q!==T.B&&(l=[Q,T.B,k.reason],k.token&&l.push(k.token),g.of(T,g.qR(T.provider),"afs",l),T.B=Q)}else k.T.id!==T.B&&(l=[k.T.id,T.B,k.reason],k.token&&l.push(k.token),g.of(T,Q,"afs",l),T.B=k.T.id)};
  5454. MR=function(T,Q){L6(T,"cat",Q)};
  5455. zqt=function(T,Q,k,l,v){var L=g.qR(T.provider);Q!==1&&Q!==3&&Q!==5||g.of(T,L,"vps",[T.yU]);L6(T,"xvt","t."+L.toFixed(3)+";m."+v.toFixed(3)+";g.2;tt."+Q+";np.0;c."+k+";d."+l)};
  5456. hqg=function(T,Q){T.Tg||(L6(T,"fcnz",""+Q),T.Tg=!0)};
  5457. sa5=function(T){/[^a-zA-Z0-9;.!_-]/.test(T)&&(T=T.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return T};
  5458. g.Rf=function(T,Q,k,l,v,L,q,Y,U,R){Y=Y===void 0?!1:Y;g.x.call(this);var Z=this;this.yq=T;this.schedule=Q;this.policy=k;this.C_=l;this.hj=U;this.F_=R;this.j6=null;this.sK=this.Jj=this.Bd=this.qO=0;this.Wf=this.xL=this.isSuspended=!1;this.f_="";this.Ah={};this.d5=NaN;this.h3=0;this.D=null;this.Ig=this.p_=!1;this.LN=0;this.zg=!1;this.e6=this.Tg=0;this.Fk=null;this.jO=function(){return Z.yq.jO()};
  5459. this.timing=new $6g(this.F_);this.j=new ec(this.schedule,this.policy);this.DP=new g.FA(this.Jh,0,this);this.OG=new g.FA(this.Jh,this.policy.DP,this);this.Ii=new g.FA(this.Jh,1E3,this);this.gt=new g.FA(this.Jh,void 0,this);this.K_=new g.FA(function(){Z.isSuspended||Z.Jh()},1E4,this);
  5460. this.t6=new g.FA(this.Pfm,250,this);this.B=this.currentTime=NaN;this.Ad=new Kc(5);this.i9=this.timestampOffset=NaN;this.logger=new g.Cy("dash");this.Hn=Infinity;this.dn={getAudioTrack:function(){return Z.audioTrack},
  5461. l_d:function(){return Z.videoTrack},
  5462. getManifest:function(){return Z.C_},
  5463. RFH:function(){return Z.S},
  5464. Jh:function(){Z.Jh()},
  5465. Qv:function(){Z.qO=0;Z.Qv()},
  5466. Zad:function(G){return UF(Z,Z.videoTrack,Z.j6.S,G)}};
  5467. T=U&&U.eX();U&&(PxX(U,this.C_,this.policy),this.i9=Date.now());this.T=new YC(this,this.j,k,this.C_,v,T);k=sXt(this.T,L,q&&q.id);this.audioTrack=new Kf(this,this.policy,k.audio,this.timing);this.videoTrack=new Kf(this,this.policy,k.video,this.timing);this.videoTrack.Y.xm=this.audioTrack.va();this.u9={updateend:this.Q6,error:this.eHB};g.P(this,this.DP);g.P(this,this.OG);g.P(this,this.Ii);g.P(this,this.gt);g.P(this,this.K_);k=this.policy.XF&&this.policy.lS?!aF5(this.videoTrack.T.info):!1;this.Z8=aju({Jy:this.policy.C.Jy||
  5468. k,lS:this.policy.lS&&!k,g_:this.policy.g_});this.C=Htf(this,this.policy,this.Z8,this.schedule,this.Ad,function(G,m){return Xi5(Z,G,m)});
  5469. this.L=new Ex(this,this.C_,this.policy,this.videoTrack,this.audioTrack,Y);this.policy.K_&&this.policy.S&&(this.xm=new YEC(function(G,m){Z.T9(G,m)}));
  5470. this.Eh=new Qm(this,this.C_,this.videoTrack,this.audioTrack,this.policy);Y=this.policy.kH?this.yq.getVideoData().vl:null;this.N=new L$(this,this.policy,this.videoTrack,this.audioTrack,this.Ah,this.L,this.timing,this.j,this.schedule,this.C_,this.T,this.C,k,Y);g.P(this,this.N);this.Y=new f$(this,this.policy,this.videoTrack,this.audioTrack,this.C_,v,AL(this.yq.getVideoData()),q==null?void 0:q.id);g.P(this,this.Y);leX(this.Y,L);this.S=new qyC(this.yq,this,this.policy,this.audioTrack,this.videoTrack,this.C_,
  5471. this.schedule,this.T,this.Y,this.timing,this.L);g.P(this,this.S);this.z9=this.yq.nA.m9.J1;this.policy.N||wib(this);if(this.policy.uK){var f;this.QR=new rLt(this.videoTrack.T.index,(f=this.yq.getVideoData().clientPlaybackNonce)!=null?f:"",this.yq,this.policy.Tg);this.policy.Tg===3&&(this.Gg=new g.FA(this.TO,200,this),this.Gg.start(),g.P(this,this.Gg))}this.logger.debug("Created")};
  5472. wib=function(T){var Q,k;if((Q=T.z9)==null?0:(k=Q.AN)==null?0:k.itagDenylist){var l;T.pJ((l=T.z9)==null?void 0:l.AN.itagDenylist)}var v;if((v=T.z9)==null?0:v.playbackStartPolicy){var L,q;ov(T.policy,(L=T.z9)==null?void 0:L.playbackStartPolicy,3,(q=T.z9)==null?void 0:q.IB())}if(T.policy.wV){Q=T.Dg();var Y;(k=Q?(Y=T.z9)==null?void 0:Y.CI.get(Q):void 0)&&T.S.CU(k)}if(!T.C_.D){var U;Y=(U=T.z9)==null?void 0:U.Di;(Y==null?0:Y.pP)&&(Y==null?0:Y.Sd)&&T.C_.Cc&&i7(T.C_,Y.pP,Y.Sd)}var R;((R=T.z9)==null?0:R.NZ)&&
  5473. (U=T.z9.NZ.get(T.Dg()||""))&&T.C_&&U.formatId&&(T=T.C_.L.get(Ew(U.formatId)))&&(T.info.debugInfo=U.debugInfo)};
  5474. dfb=function(T,Q){var k=Ew(g.Hj(Q.T.info,T.C_.Cc)),l,v=((l=T.hj)==null?void 0:l.gr(k))||[];if(v.length===0)return T.T9("ombmsi",{}),!1;v=new gd(v);if(l=!T.policy.qO||isFinite(T.getCurrentTime())||T.yq.Pm()){a:{l=T.getCurrentTime();v=g.B(v.MO);for(var L=v.next();!L.done;L=v.next())if(L=L.value,L.type===3&&l>=L.N&&l<=L.B){l=!0;break a}l=!1}l=!l}if(l)return T.T9("ostmf",{ct:T.getCurrentTime(),a:Q.T.info.uH()}),!1;(T=T.hj)!=null&&(T.Wh.get(k).dI=!0);return!0};
  5475. Ns5=function(T){if(!T.C_.Cc)return!0;var Q=T.yq.getVideoData();if(T.yq.ME())return T.T9("ombpa",{}),!1;var k,l;if(!!((k=T.z9)==null?0:(l=k.Di)==null?0:l.nMK)!==T.C_.KY)return T.T9("ombplmm",{}),!1;k=Q.h3||Q.liveUtcStartSeconds||Q.gt;if(T.C_.KY&&k)return T.T9("ombplst",{}),!1;if(T.C_.D)return T.T9("ombab",{}),!1;k=Date.now();return Vb(T.C_)&&!isNaN(T.i9)&&k-T.i9>T.policy.No*1E3?(T.T9("ombttl",{}),!1):T.C_.sW&&T.C_.Y||!T.policy.BC&&T.C_.isPremiere||Hv(Q)!==0&&!T.policy.T||Q.V("html5_disable_onesie_media_for_mosaic")&&
  5476. Ra(Q)||Q.lf()&&!Q.V("html5_enable_onesie_media_for_lifa")&&Q.isDaiEnabled()&&Q.enableServerStitchedDai||Q.V("html5_disable_onesie_media_for_lifa_eligible")&&UU(Q)?!1:!0};
  5477. AyT=function(T,Q){var k=Q.T,l=T.C_.Cc;if(Ns5(T))if(T.hj&&T.hj.Wh.has(Ew(g.Hj(k.info,l)))){if(l=Ew(g.Hj(k.info,l)),dfb(T,Q)){var v=new gd(T.hj.gr(l)),L=function(q){try{if(q.u5())T.handleError(q.SZ(),q.HA()),yX(Q,q),Y0(q.info)&&Yx(T.N,Q,k,!0),T.Jh();else if(UN(T.N,q)){var Y;(Y=T.L)==null||v0H(Y,q.info,T.D);T.Jh()}}catch(U){q=GX(U),T.handleError(q.errorCode,q.details,q.severity),T.FJ()}};
  5478. k.L=!0;Mt(v)&&(H7(Q,new jJ(T.policy,l,v,T.hj,L)),FM(T.timing))}}else T.T9("ombfmt",{})};
  5479. bX5=function(T,Q){Q=Q||T.videoTrack&&T.videoTrack.S&&T.videoTrack.S.startTime||T.getCurrentTime();var k=Rv,l=T.videoTrack,v=T.T;Q=v.nextVideo&&v.nextVideo.index.ll(Q)||0;v.xm!==Q&&(v.e6={},v.xm=Q,Uh(v,v.T));Q=!v.T.isLocked()&&v.D>-1&&(0,g.XY)()-v.D<v.policy.iL*1E3;var L=v.nextVideo&&ff(v,v.nextVideo.info)*3<yS(v.hj);if(!Q||L)Mv(v),Rm(v),v.qO=v.qO||v.nextVideo!==v.L;v.nextVideo&&!v.nextVideo.index.isLoaded()&&(v.xm=-1);k(T,l,v.nextVideo);Rv(T,T.audioTrack,T.T.S)};
  5480. ryI=function(T,Q){T.xL=Q;T.policy.xm||(T.logger.debug("Suspended."),T.isSuspended=!0,T.policy.jy&&(T.Ii.stop(),T.OG.stop(),T.DP.stop()),T.K_.stop())};
  5481. Vm=function(T,Q,k,l){T.policy.S&&T.Bz(!1,"rollback");if(T.C_.isManifestless){var v=FI(T.audioTrack,l,k,Q),L=FI(T.videoTrack,l,k,Q);T.policy.nG||(L&&yb(T.C_,l,!0),v&&yb(T.C_,l,!1));L&&(T.videoTrack.z9=[]);v&&(T.audioTrack.z9=[]);T.T9("sdai",{rollbk2_seg:l,rbt:k.toFixed(3),lt:Q.toFixed(3),a:v,v:L});(v||L)&&T.policy.S&&Tj(T)}};
  5482. cyT=function(T,Q){if(!isNaN(T.d5)){var k=Date.now()-T.d5;k<1E4&&T.T9("bfaswtch",{ep:k,sk:Q!==void 0?"1":"0",sr:Q||""})}};
  5483. DfX=function(T){T.logger.debug("Rebuffering.");T.Wf=!0;if(T.policy.Ig&&T.j6){var Q,k,l,v;T.T9("lr_rb",{c:T.getCurrentTime(),s:T.isSeeking(),ab:FL(T.j6.T.LG()),ala:(Q=P7(T.audioTrack))==null?void 0:Q.Bh(),alr:(k=T.audioTrack.S)==null?void 0:k.Bh(),vb:FL(T.j6.S.LG()),vla:(l=P7(T.videoTrack))==null?void 0:l.Bh(),vlr:(v=T.videoTrack.S)==null?void 0:v.Bh()})}T.yq.jX()!==0&&T.T9("sps_rebuffer",{c:T.getCurrentTime()})};
  5484. a_C=function(T){T.policy.Ah=!1;try{T.Qv()}catch(Q){g.bA(Q)}};
  5485. nDC=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;T.policy.xm&&(T.logger.debug("disable updateMetadataWithoutMediaSource"),T.policy.e6&&T.T9("loader",{setsmb:0}),T.FJ(),T.policy.xm=!1);T.logger.debug("attaching media source");uZ5(T,l);if(!RL(Q)){var v=YR(T.videoTrack),L=YR(T.audioTrack);v=(v?v.info.T:T.videoTrack.T).info;var q=(L?L.info.T:T.audioTrack.T).info;L=T.policy.E4;L=v.mimeType+(L===void 0?"":L);var Y=q.mimeType;v=v.yR;q=q.yR;var U;Q.z9=(U=Q.j6)==null?void 0:U.addSourceBuffer(Y);var R;
  5486. Q.qO=L.split(";")[0]==="fakesb"?void 0:(R=Q.j6)==null?void 0:R.addSourceBuffer(L);Q.fd&&(Q.fd.webkitSourceAddId("0",Y),Q.fd.webkitSourceAddId("1",L));U=new oL(Q.z9,Q.fd,"0",AW(Y),q,!1);R=new oL(Q.qO,Q.fd,"1",AW(L),v,!0);ODy(Q,U,R)}k=k===void 0?!1:k;l=l===void 0?!1:l;xC(T.videoTrack,Q.S||null,l);xC(T.audioTrack,Q.T||null,l);T.j6=Q;T.j6.Y=!0;k||T.resume();Q.T.L7(T.u9,T);Q.S.L7(T.u9,T);try{T.Jh()}catch(Z){g.bA(Z)}};
  5487. uZ5=function(T,Q){Q=Q===void 0?!1:Q;T.j6&&T.j6.T&&T.j6.S&&(T.j6.T.L5(T.u9,T),T.j6.S.L5(T.u9,T));xC(T.audioTrack,null,Q);xC(T.videoTrack,null,Q);T.j6&&(T.j6.Y=!1);T.j6=null};
  5488. KK5=function(T){T.j6&&T.j6.FG()&&T.wN()};
  5489. PtX=function(T,Q){if(!T.wd())if(T.policy.T){if(!oLI(T.Y,Q)){var k=T.Y.S;leX(T.Y,Q);var l=!1;l=Q.isLocked()&&Q.reason==="m"&&vLX(T.Y,Q.T);var v=T.policy.VD&&Q.reason==="l";k=k.T>Q.T&&Q.reason==="b";l||v||k?(T.yq.Lt({reattachOnConstraint:l?"u":v?"drm":"perf",lo:Q.S,up:Q.T}),T.policy.QE||(T.Y.T.S=!1)):(T.policy.QE&&(T.Y.T.S=!1),Tj(T))}}else if(!SEt(T.T,Q)&&T.videoTrack){T.logger.debug(function(){return"Setting constraint: r="+Q.reason+" u="+Q.T});
  5490. k=T.T.T;xfX(T,Bd5(T.T,Q));bX5(T);l=Q.isLocked()&&Q.reason==="m"&&T.T.qO;v=T.policy.VD&&Q.reason==="l"&&VX(T.videoTrack);k=k.T>Q.T&&Q.reason==="b";var L=T.T.u9&&!vM();l||v||k||L?T.yq.Lt({reattachOnConstraint:l?"u":v?"drm":L?"codec":"perf"}):Tj(T)}};
  5491. HXb=function(T,Q,k){if((!T.j6||gf(T.j6)&&!T.policy.VF)&&!T.Eh.isSeeking()&&(T.policy.T||VX(Q)&&Q.T.ZG()&&T.T.z9)){var l=T.getCurrentTime()+hxt(T.j,Q,k);T.logger.debug(function(){return"Clearing back to "+l.toFixed(3)});
  5492. zh5(Q,l)}};
  5493. xfX=function(T,Q){Q&&(T.logger.debug(function(){return"Logging new format: "+JW(Q.video.info)}),t$5(T.yq,new om(Q.video,Q.reason)));
  5494. if(T.T.p_){var k=dtH(T.T,"a");T.yq.uq(new om(k.audio,k.reason))}};
  5495. Tj=function(T){g.Ez(T.DP)};
  5496. Emy=function(T){T.policy.DP&&T.policy.g_&&Math.min(Bxf(T.videoTrack),Bxf(T.audioTrack))*1E3>T.policy.tQ?g.Ez(T.OG):T.Jh()};
  5497. OXb=function(T,Q){var k=(0,g.XY)()-Q,l=er(T.audioTrack,!0)*1E3,v=er(T.videoTrack,!0)*1E3;T.logger.debug(function(){return"Appends paused for "+k});
  5498. if(T.policy.L&&(T.T9("apdpe",{dur:k.toFixed(),abuf:l.toFixed(),vbuf:v.toFixed()}),lY(T.policy))){var L=yS(T.j);T.T9("sdps",{ct:Q,ah:l.toFixed(),vh:v.toFixed(),mr:VS(T.j,T.Wf,L),bw:L.toFixed(),js:T.isSeeking(),re:+T.Wf,ps:(T.policy.mL||"").toString(),rn:(T.policy.y3||"").toString()})}};
  5499. piT=function(T){if(bcX(T.videoTrack))return T.logger.debug("Pausing appends for server-selectable format"),"ssf";if(T.policy.Jj&&j3(T.videoTrack)&&j3(T.audioTrack))return"updateEnd";if(i4(T.audioTrack)||i4(T.videoTrack)&&T.videoTrack.T.info.yR!=="f")return"";if(T.Eh.isSeeking()){var Q=T.j;var k=T.videoTrack;var l=T.audioTrack;if(Q.policy.T){var v=Q.policy.iS;lY(Q.policy)&&(v=VS(Q,!1,yS(Q)));Q=v;k=er(l,!0)>=Q&&er(k,!0)>=Q}else k.L.length||l.L.length?(v=k.T.info.qY+l.T.info.qY,v=10*(1-yS(Q)/v),Q=Math.max(v,
  5500. Q.policy.iS),k=er(l,!0)>=Q&&er(k,!0)>=Q):k=!0;if(!k)return"abr";k=T.videoTrack;if(k.L.length>0&&k.Y.S.length===1&&Vqu(k.Y).info.j<k.sK)return"seek"}if(T.policy.S&&cSb(T.videoTrack,T.L)&&cSb(T.audioTrack,T.L))return"ssdai";k=!T.policy.Yh||T.getCurrentTime()<10;T.policy.T||(k=k||T.videoTrack.T.info.video.qualityOrdinal>360);l=lY(T.policy)&&T.policy.Jp;if(!T.Wf||!l&&k)return"";k=T.policy.Yh;lY(T.policy)&&(k=VS(T.j,T.Wf,yS(T.j)));k=wLf(T.videoTrack,T.getCurrentTime(),k)||wLf(T.audioTrack,T.getCurrentTime(),
  5501. k);return lY(T.policy)?k?"mbnm":"":(T.videoTrack.L.length>0||T.audioTrack.L.length>0||q7(T.N,T.videoTrack,T.audioTrack)||q7(T.N,T.audioTrack,T.videoTrack))&&k?"nord":""};
  5502. WKt=function(T){if(T.C){var Q=T.C.Jh(T.audioTrack,V4(T.j6.S.LG()));Q&&T.yq.seekTo(Q,{M5:!0,I_:"pollSubsegmentReadahead",J_:!0})}};
  5503. iXX=function(T,Q,k){if(T.policy.Jj&&j3(Q))return!1;if(k.WI())return!0;if(!k.aq())return!1;var l=YR(Q);if(!l||l.info.type===6)return!1;var v;if(T.policy.Ws||((v=T.L)==null?0:Mqu(v,Q,l.info.NO)))T.sK=0;else return T.Eh.isSeeking()&&Tj(T),T.sK=T.sK||(0,g.XY)(),!1;if(!UF(T,Q,k,l.info))return!1;if(T.C_.S&&l.info.S===0){if(v=$f5(Q,k,l)){var L=P7(Q);T.T9("initchg",{it:l.info.T.info.id,sr:!!L&&L.T===l.info.T,ty:l.info.type,seg:l.info.NO})}L=g.x9(l.info.T.info);T.policy.YP&&L&&!v&&vTT(l)}L=T.C&&!!T.C.Y&&Q.T.info.audio;
  5504. v=T.C_.isManifestless||l.N;if(!(T.C_.S&&l.info.S!==0||v&&!L)&&JyJ(T,Q,k,l))return!0;if(L)return!1;L=vJ(T,Q);L=T.getCurrentTime()+L;if(l.info.N>L)return T.policy.T&&eqH(T,Q),T.policy.f5&&r_C(Q.Y,L,!1),!1;FKI(T,Q);var q;T.policy.pG&&k===((q=T.j6)==null?void 0:q.T)&&T.zg&&(k.h4()===0?(T.zg=!1,T.policy.pG=!1):T.Tg=k.h4());if(!EDC(T,k,l,Q))return!1;T.policy.Jj&&l.info.Dq()?(T.yq.G().J3()&&T.T9("eosl",{ls:l.info.Bh()}),l.isLocked=!0):(Q.Z0(l),w9C(T.T,l.info),T.logger.debug(function(){return"Appended "+
  5505. l.info.Bh()+", buffered: "+FL(k.LG())}));
  5506. v&&yyy(T,l.info.T.vM);return!0};
  5507. eqH=function(T,Q){Q===T.videoTrack?T.Jj=T.Jj||(0,g.XY)():T.Bd=T.Bd||(0,g.XY)()};
  5508. FKI=function(T,Q){Q===T.videoTrack?T.Jj=0:T.Bd=0};
  5509. EDC=function(T,Q,k,l){var v=T.policy.Ig?(0,g.XY)():0,L=k.N&&k.info.T.T||void 0,q=k.S;k.N&&(q=V$C(T,k,q)||q);var Y=Mg(q);q=T.policy.Ig?(0,g.XY)():0;Q=Th5(T,Q,Y,k.info,L);(l=l.D)!=null&&(L=k.info,v=q-v,q=(0,g.XY)()-q,!l.S||BCH(l.S,L)&&l.S.NO===L.NO||l.flush(),l.Y+=v,l.L+=q,v=1,!l.S&&L.S&&(v=2),Im(l,v,Q),q=Math.ceil(L.S/1024),v===2&&l.T.add(q),l.T.add(Math.ceil((L.S+L.L)/1024)-q),l.S=L);T.e6=0;if(Q===0)return T.p_&&(T.logger.debug("Retry succeed, back to normal append logic."),T.p_=!1,T.Ig=!1),T.h3=
  5510. 0,!0;if(Q===2||Q===5)return QRu(T,"checked",Q,k.info),!1;if(Q===1){if(!T.p_)return T.logger.debug("QuotaExceeded, retrying."),T.p_=!0,!1;if(!T.Ig)return T.Ig=!0,T.yq.seekTo(T.getCurrentTime(),{I_:"quotaExceeded",J_:!0}),!1;k.info.bK()?(v=T.policy,v.Bd=Math.floor(v.Bd*.8),v.hj=Math.floor(v.hj*.8)):(v=T.policy,v.zg=Math.floor(v.zg*.8),v.hj=Math.floor(v.hj*.8));T.policy.T?Lf(T.Y.T,k.info.T,!1):Zs(T.T,k.info.T)}T.yq.Lt({reattachOnAppend:Q});return!1};
  5511. V$C=function(T,Q,k){var l;if(l=T.policy.CR&&T.j6&&!T.j6.j&&!T.yq.NI())Q=Q.info.T.info,l=Q.Rd()&&cj(Q)&&Q.video&&Q.video.width<3840&&Q.video.width>Q.video.height;if(l&&(T.j6.j=!0,s_('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return k=yqH(k),T.policy.L&&T.T9("sp4k",{s:!!k}),k};
  5512. QRu=function(T,Q,k,l){var v="fmt.unplayable",L=1;k===5||k===3?(v="fmt.unparseable",T.policy.T?!l.T.info.video||qv(T.Y.T).size>0||Lf(T.Y.T,l.T,!1):!l.T.info.video||qv(T.T.N).size>0||Zs(T.T,l.T)):k===2&&(T.h3<15?(T.h3++,v="html5.invalidstate",L=0):v="fmt.unplayable");l=Ly(l);var q;l.mrs=(q=T.j6)==null?void 0:Zl(q);l.origin=Q;l.reason=k;l.trg="appenderr";T.handleError(v,l,L)};
  5513. Zc6=function(T,Q,k,l,v){var L=T.C_;var q=T.policy.T,Y=!1,U=-1,R;for(R in L.T){var Z=Wj(L.T[R].info.mimeType)||L.T[R].info.bK();if(l===Z)if(Z=L.T[R].index,Z.f7(Q.NO)){Y=Z;var f=Q,G=Y.Ix(f.NO);G&&G.startTime!==f.startTime?(Y.segments=[],Y.LK(f),Y=!0):Y=!1;Y?U=Q.NO:!Q.pending&&q&&(f=Z.getDuration(Q.NO),f!==Q.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.T[R].info.itag,seg:Q.NO,od:f,nd:Q.duration},!1),Z.LK(Q),Y=!0))}else Z.LK(Q),Y=!0}U>=0&&(q={},L.publish("clienttemp","resetMflIndex",(q[l?
  5514. "v":"a"]=U,q),!1));L=Y;uQg(T.Eh,Q,l,L);if(T.policy.K_&&T.policy.S&&(U=Q.Bn||null)){var m;q=(m=T.S)==null?void 0:zz5(m).requestNumber;var I;(I=T.xm)==null||Utu(I,U,q)}T.L.WC(Q,k,l,v);Q.NO===T.C_.sW&&L&&eq(T.C_)&&Q.startTime>eq(T.C_)&&(T.C_.xm=Q.startTime+(isNaN(T.timestampOffset)?0:T.timestampOffset),T.Eh.isSeeking()&&T.Eh.targetTime<T.C_.SY()&&T.Eh.seek(T.C_.SY(),{}))};
  5515. UF=function(T,Q,k,l){var v=P7(Q);!v||v.Y||oX(v,l)||(k.abort(),T.policy.xF&&(v=Q.j)!=null&&(v.L=void 0),(Q=Q.D)!=null&&(Im(Q,4),Q.flush()));if(!k.Rr()||vM())try{T.policy.ew?k.G5(l.T.info.containerType,l.T.info.yR)&&k.jT(l.T.info.containerType,l.T.info.yR,l.T.info.mimeType):k.AI(l.T.info.containerType,l.T.info.mimeType)}catch(L){return k=L,g.rB(k),T.T9("ctexp",{name:k.name,msg:k.message}),!1}else l.T.info.containerType!==k.Rr()&&T.T9("ctu",{ct:vM(),prev_c:k.Rr(),curr_c:l.T.info.containerType});Q=l.T.Y;
  5516. T.policy.Qm&&Q&&(l=0+Q.duration,Q=-Q.T,0===k.hv()&&l===k.jQ()||k.r4(0,l),Q!==k.Px()&&(k.FL(Q),u4&&G6b(T.audioTrack.va(),k.Eb())));return!0};
  5517. JyJ=function(T,Q,k,l){l.info.T.ZG();var v=l.info.T.T;if(!v||!k.aq()||k.A1()===v)return!1;var L=v,q=k.uV();if(T.policy.rZ&&q&&k.isView()&&g.x9(l.info.T.info)){var Y=new DataView(v.buffer,v.byteOffset,v.byteLength);(q=o9C(Y,q))?L=new Uint8Array(q.buffer,q.byteOffset,q.byteLength):T.T9("fenc",{})}T.policy.CR&&(q=V$C(T,l,new oV([L])))&&(L=Mg(q));var U;(q=l.info.T.Ga(0,l.info.clipId))&&(U=q.MO[0]);if(l===T.Fk){if(T.e6+=1,T.yq.getVideoData().V("html5_shorts_gapless_restart_on_init_seg_retries")&&T.e6>5)return T.e6=
  5518. 0,T.yq.Lt({initSegStuck:1,as:l.info.Bh()}),!0}else T.e6=0,T.Fk=l;T.policy.Qd&&(k.abort(),(q=Q.D)!=null&&(Im(q,4),q.flush()));v=Th5(T,k,L,U,v);var R;(R=Q.D)==null||uG5(R,v,U);if(v!==0)return jRT(T,v,l),!0;l.info.bK()?ywX(T.timing):iou(T.timing);T.logger.debug(function(){return"Appended init for "+l.info.T.info.id});
  5519. yyy(T,l.info.T.vM);return k.Wc()};
  5520. $f5=function(T,Q,k){if(Q.A1()==null){T=P7(T);if(!(Q=!T||T.T!==k.info.T)){a:if(T=T.D,k=k.info.D,T.length!==k.length)k=!1;else{for(Q=0;Q<T.length;Q++)if(!g.eA(T[Q],k[Q])){k=!1;break a}k=!0}Q=!k}return Q}T=Q.A1();k.info.T.sj()&&b7(k);k=k.info.T.T;return T!==k&&!g.eA(T,k)};
  5521. Th5=function(T,Q,k,l,v){try{var L,q=Q===((L=T.j6)==null?void 0:L.T)?T.audioTrack:T.videoTrack;if(T.policy.Jj&&(l==null?0:l.Dq())){if((l==null?void 0:l.z9)>1)return 6;q.e6=new g.FA(function(){var Y=YR(q);T.wd()||Y==null||!Y.isLocked?T.yq.G().J3()&&T.T9("eosl",{delayA:Y==null?void 0:Y.info.Bh()}):kQt(q)?(T.yq.G().J3()&&T.T9("eosl",{dunlock:Y==null?void 0:Y.info.Bh()}),lRI(T,q===T.audioTrack)):(T.T9("nue",{ls:Y.info.Bh()}),Y.info.z9+=1,T.j6&&T.Qv())},1E4,T);
  5522. T.yq.G().J3()&&T.T9("eosl",{delayS:l.Bh()});q.e6.start()}T.policy.GT&&(l==null?void 0:l.T)instanceof RX&&l.Dq()&&T.T9("poseos",{itag:l.T.info.itag,seg:l.NO,lseg:l.T.index.a_(),es:l.T.index.L});Q.appendBuffer(k,l,v)}catch(Y){if(Y instanceof DOMException){if(Y.code===11)return 2;if(Y.code===12)return 5;if(Y.code===22||Y.message.indexOf("Not enough storage")===0)return Q=Object.assign({name:"QuotaExceededError",buffered:FL(Q.LG()).replace(/,/g,"_"),vheap:$C(T.videoTrack),aheap:$C(T.audioTrack),message:g.N_(Y.message,
  5523. 3),track:T.j6?Q===T.j6.S?"v":"a":"u"},$YC()),T.handleError("player.exception",Q),1;g.bA(Y)}return 4}return T.j6.FG()?3:0};
  5524. Mm=function(T,Q,k){cyT(T,k.I_||"unknown");T.yq.seekTo(Q,k)};
  5525. yyy=function(T,Q){Q&&T.yq.tX(new wX(Q.key,Q.type))};
  5526. b4=function(T,Q){T.yq.tC(Q)};
  5527. vJ=function(T,Q){if(T.p_&&!T.Wf)return 3;if(T.isSuspended)return 1;var k;if((k=T.j6)==null?0:k.j6&&k.j6.streaming===!1)return 4;k=(Q.T.info.audio?T.policy.zg:T.policy.Bd)/(Q.qY*T.policy.Rx);if(T.policy.Zy>0&&T.j6&&gf(T.j6)&&(Q=Q.T.info.video?T.j6.S:T.j6.T)&&!Q.Wc()){Q=Q.LG();var l=E_(Q,T.getCurrentTime());l>=0&&(Q=T.getCurrentTime()-Q.start(l),k+=Math.max(0,Math.min(Q-T.policy.Zy,T.policy.Yb)))}T.policy.hj>0&&(k=Math.min(k,T.policy.hj));return k};
  5528. Rzt=function(T,Q){return(vJ(T,Q)+T.policy.Mo)*Q.qY};
  5529. vH5=function(T){T.f_&&!T.isSuspended&&FK(T.schedule)&&(oHT(T,T.f_),T.f_="")};
  5530. oHT=function(T,Q){JN(Q,"cms",function(k){T.policy.L&&T.T9("pathprobe",k)},function(k){T.yq.handleError(k)})};
  5531. LWb=function(T,Q){if(T.j6&&T.j6.Y&&!T.j6.FG()&&(Q.Qh=er(T.videoTrack),Q.S=er(T.audioTrack),T.policy.L)){var k=$C(T.videoTrack),l=$C(T.audioTrack),v=FL(T.j6.S.LG(),"_",5),L=FL(T.j6.T.LG(),"_",5);Object.assign(Q.T,{lvq:k,laq:l,lvb:v,lab:L})}Q.bandwidthEstimate=Fe(T.j);var q;(q=T.audioTrack.D)==null||q.flush();var Y;(Y=T.videoTrack.D)==null||Y.flush();T.logger.debug(function(){return RE(Q.T)})};
  5532. qQC=function(T,Q){T.D=Q;T.L&&(T.L.L=Q);T.D.WW(T.videoTrack.T.info.Rd());T.N.S=T.D;T.policy.S&&(T.S.j=T.D)};
  5533. McI=function(T,Q){if(T.j6&&T.j6.S){if(T.policy.Y3){var k=DxX(T.audioTrack);if(k&&k.uH()){var l=T.yq;if(l.GJ&&(l.GJ.T=k,k=l.Kc,k.qoe)){k=k.qoe;l=l.GJ;var v=g.qR(k.provider);Bs5(k,v,l)}}}T.policy.Q5&&(k=DxX(T.videoTrack))&&k.bK()&&(l=T.yq,l.Pr&&(l.Pr.T=k,k=l.Kc,k.qoe&&SUI(k.qoe,l.Pr)));Q-=isNaN(T.timestampOffset)?0:T.timestampOffset;T.getCurrentTime()!==Q&&T.resume();T.Eh.isSeeking()&&T.j6&&!T.j6.FG()&&(l=T.getCurrentTime()<=Q&&Q<T.getCurrentTime()+10,k=y4(T.j6.S.LG(),T.getCurrentTime()+gH5),l&&k&&
  5534. (T.Eh.Y=!1));T.Eh.isSeeking()||T.policy.i9&&!T.policy.Gg||(T.currentTime=Q);if(T.policy.uK&&T.policy.Tg===2&&g.J(T.yq.getPlayerState(),8)){var L;(L=T.QR)==null||DY6(L,Q)}g.Ez(T.Ii)}};
  5535. YQC=function(T,Q){var k=pf(T.videoTrack).find(function(l){return l.startTime>=Q&&Xi5(T,l.startTime,!1)});
  5536. return k&&k.startTime<Q+k.duration*1.5?k.startTime+.1:0};
  5537. Xi5=function(T,Q,k){if(!(T.videoTrack.T.ZG()&&T.audioTrack.T.ZG()&&T.j6&&T.j6.S&&T.j6.T))return!1;if(k&&T.C_.isManifestless&&(T.videoTrack.B===-1||T.audioTrack.B===-1))return!0;var l=oz(T.videoTrack,Q,k);if(isNaN(l))return!1;T=oz(T.audioTrack,T.policy.vn?Q:l,k);return isNaN(T)?!1:!0};
  5538. ZI=function(T){T.FJ();T.Eh.isSeeking()&&T.logger.debug("seeking cancelled by seek-to-head");T.C&&t7X(T.C,T.videoTrack.T);Tj(T);return bPX(T.Eh)};
  5539. Rv=function(T,Q,k,l){(l===void 0?0:l)&&!Q.Jj&&(vM()||(l=Q.jr)&&!l.QW(k.info)&&T.yq.s$(),Q.Jj=!0);Q.T!==k&&(T.logger.debug(function(){return"Setting target itag: "+k.info.id+" (was "+Q.T.info.id+")"}),Q.T=k)};
  5540. kQt=function(T){var Q,k=(Q=YR(T))==null?void 0:Q.info;return!k||Q3(T,Math.min(k.N+gH5,k.B))};
  5541. Uzy=function(T,Q){var k;if((k=YR(Q))!=null&&k.isLocked&&kQt(Q)){if(T.yq.G().J3()){var l;T.T9("eosl",{munlock:(l=YR(Q))==null?void 0:l.info.Bh()})}lRI(T,Q===T.audioTrack)}};
  5542. lRI=function(T,Q){if(T.policy.Jj&&T.j6){var k,l,v=Q?(k=T.j6)==null?void 0:k.T:(l=T.j6)==null?void 0:l.S;k=Q?T.audioTrack:T.videoTrack;Q=YR(k);if(Q==null?0:Q.isLocked){T.yq.G().J3()&&T.T9("eosl",{unlock:Q.info.Bh()});var L;(L=k.e6)==null||L.stop();Q.isLocked=!1;k.Z0(Q);w9C(T.T,Q.info);v=v==null?void 0:v.Wy();(v==null?void 0:v.Bh())!==Q.info.Bh()&&T.T9("oue",{bls:v==null?void 0:v.Bh(),tls:Q.info.Bh()})}}};
  5543. fI5=function(T,Q){T.timestampOffset!==Q&&(T.timestampOffset=Q,T.policy.nG&&EE(T.C_),T.logger.debug(function(){return"Timestamps will be made relative to "+T.timestampOffset}),T.L.j=T.timestampOffset,T.yq.eU(T.timestampOffset),T.C_.isManifestless&&(T.C_.timestampOffset=T.timestampOffset),T.videoTrack.FL(T.timestampOffset),T.audioTrack.FL(T.timestampOffset))};
  5544. M7=function(T){var Q=(0,g.XY)();T.LN=Q};
  5545. GD5=function(T){T.audioTrack.z9=[];T.videoTrack.z9=[]};
  5546. $xg=function(T){var Q=T.TP().filter(function(l){return l.namespace==="ad"});
  5547. Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())if(k=k.value,k.start/1E3>T.getCurrentTime())return k.start/1E3;return Infinity};
  5548. GVJ=function(T){if(T.yq.getVideoData().isLivePlayback)return!1;var Q=T.yq.T_();if(!Q)return!1;Q=Q.getDuration();if(T.j6&&T.j6.T&&T.j6.S){var k=T.getCurrentTime(),l=T.j6.T.LG();T=T.j6.S.LG();l=l?ik(l,k):k;k=T?ik(T,k):k;k=Math.min(l,k);Q=isNaN(k)?!1:k>=Q-.01}else Q=!1;return Q};
  5549. jRT=function(T,Q,k){T.policy.FK&&NY(T.yq.getVideoData())?(T.yq.Mw()||QRu(T,"sepInit",Q,k.info),m7I(T.yq,"sie")):QRu(T,"sepInit",Q,k.info)};
  5550. ySg=function(T){return T.yq.jX()<T.Hn};
  5551. g.Zv=function(T){this.Gx=T};
  5552. f6=function(){g.ox.apply(this,arguments)};
  5553. Gj=function(T,Q,k,l){f6.call(this);var v=this;this.L=-1;this.T={};this.Y=new g.FA(this.N,0,this);g.P(this,this.Y);this.S=new g.FA(function(){v.wd()||(v.Y.start(Math.random()*k),v.S.start(Q))},T,this);
  5554. g.P(this,this.S);l.subscribe("fairplay_next_need_key_info",this.B,this)};
  5555. II5=function(T){if(!(T.length<=28))for(var Q=(0,g.nr)([60,0,75,0,73,0,68,0,62,0]),k=28;k<T.length;){a:if(T.length-k<Q.length)var l=!1;else{for(l=0;l<Q.length;++l)if(T[k+l]!==Q[l]){l=!1;break a}l=!0}if(l){k+=Q.length;if(T.length<=k+48)break;Q=new Uint8Array(24);for(l=0;l<24;++l)Q[l]=T[k+l*2];T=ZC(Q);T=Am(T);if(!T)break;k=T[0];T[0]=T[3];T[3]=k;k=T[1];T[1]=T[2];T[2]=k;k=T[4];T[4]=T[5];T[5]=k;k=T[6];T[6]=T[7];T[7]=k;return T}k++}};
  5556. m7=function(T,Q){f6.call(this);var k=this;this.L=T;this.T=[];this.S=new g.FA(function(){k.publish("log_qoe",{wvagt:"timer",reqlen:k.T?k.T.length:-1});if(k.T){if(k.T.length>0){var l=k.T.shift();hN5(k,l.info)}k.T.length>0&&(l=k.T[0].time-(0,g.XY)(),k.S.start(Math.max(0,l)))}},0);
  5557. g.P(this,this.S);Q.subscribe("widevine_set_need_key_info",this.Y,this)};
  5558. hN5=function(T,Q){a:{var k=Q.cryptoPeriodIndex;if(isNaN(k)&&T.L.size>0)k=!0;else{for(var l=g.B(T.L.values()),v=l.next();!v.done;v=l.next())if(v.value.cryptoPeriodIndex===k){k=!0;break a}k=!1}}T.publish("log_qoe",{wvagt:"reqnews",canskip:k});k||T.publish("rotated_need_key_info_ready",Q)};
  5559. svb=function(){var T={};var Q=T.url;var k=T.interval;T=T.retries;this.url=Q;this.interval=k;this.retries=T};
  5560. SNy=function(T,Q){this.statusCode=T;this.message=Q;this.S=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null};
  5561. CY5=function(T,Q,k){k=k===void 0?"":k;g.x.call(this);this.message=T;this.requestNumber=Q;this.timer=k;this.onError=this.onSuccess=null;this.T=new g.al(5E3,2E4,.2)};
  5562. Bo5=function(T,Q,k){T.onSuccess=Q;T.onError=k};
  5563. X6u=function(T,Q,k,l){var v={timeout:3E4,onSuccess:function(L){if(!T.wd()){dS("drm_net_r",void 0,T.timer);var q=L.status==="LICENSE_STATUS_OK"?0:9999,Y=null;if(L.license)try{Y=Am(L.license)}catch(I){g.bA(I)}if(q!==0||Y){Y=new SNy(q,Y);q!==0&&L.reason&&(Y.errorMessage=L.reason);if(L.authorizedFormats){q={};for(var U=[],R={},Z=g.B(L.authorizedFormats),f=Z.next();!f.done;f=Z.next())if(f=f.value,f.trackType&&f.keyId){var G=zN5[f.trackType];if(G){G==="HD"&&L.isHd720&&(G="HD720");f.isHdr&&(G+="HDR");q[G]||
  5564. (U.push(G),q[G]=!0);var m=null;try{m=Am(f.keyId)}catch(I){g.bA(I)}m&&(R[g.dJ(m,4)]=G)}}Y.S=U;Y.T=R}L.nextFairplayKeyId&&(Y.nextFairplayKeyId=L.nextFairplayKeyId);L.sabrLicenseConstraint&&(Y.sabrLicenseConstraint=Am(L.sabrLicenseConstraint));L=Y}else L=null;if(L)T.onSuccess(L,T.requestNumber);else T.onError(T,"drm.net","t.p;p.i")}},
  5565. onError:function(L){if(!T.wd())if(L&&L.error)L=L.error,T.onError(T,"drm.net.badstatus","t.r;p.i;c."+L.code+";s."+L.status,L.code);else T.onError(T,"drm.net.badstatus","t.r;p.i;c.n")},
  5566. onTimeout:function(){T.onError(T,"drm.net","rt.req."+T.requestNumber)}};
  5567. l&&(v.eq="Bearer "+l);g.Fh(k,"player/get_drm_license",Q,v)};
  5568. w65=function(T,Q,k,l){g.ox.call(this);this.videoData=T;this.Hd=Q;this.j=k;this.sessionId=l;this.N={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.z9=this.qO=!1;this.L=null;this.hj=[];this.Y=[];this.authorizedFormats=[];this.C=!1;this.T={};this.status="";this.B=NaN;this.S=T.N;this.cryptoPeriodIndex=k.cryptoPeriodIndex;T={};Object.assign(T,this.Hd.T);T.cpn=this.videoData.clientPlaybackNonce;this.videoData.i9&&(T.vvt=this.videoData.i9,this.videoData.mdxEnvironment&&(T.mdx_environment=
  5569. this.videoData.mdxEnvironment));this.Hd.hj&&(T.authuser=this.Hd.hj);this.Hd.pageId&&(T.pageid=this.Hd.pageId);isNaN(this.cryptoPeriodIndex)||(T.cpi=this.cryptoPeriodIndex.toString());var v=(v=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.KJ()))?v[1]:"";v==="ATV"&&(T.cdt=v);this.N=T;this.N.session_id=l;this.D=!0;this.S.flavor==="widevine"&&(this.N.hdr="1");this.S.flavor==="playready"&&(Q=Number(S4(Q.experiments,"playready_first_play_expiration")),!isNaN(Q)&&Q>=0&&(this.N.mfpe=""+Q),this.D=!1);Q="";g.Ud(this.S)?
  5570. Ym(this.S)?(l=k.S)&&(Q="https://www.youtube.com/api/drm/fps?ek="+Bz5(l)):(Q=k.initData.subarray(4),Q=new Uint16Array(Q.buffer,Q.byteOffset,Q.byteLength/2),Q=String.fromCharCode.apply(null,Q).replace("skd://","https://")):Q=this.S.S;this.baseUrl=Q;this.fairplayKeyId=X6(this.baseUrl,"ek")||"";if(Q=X6(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Q);this.hj=k.Rd?[g.dJ(k.initData,4)]:k.L;If(this,{sessioninit:k.cryptoPeriodIndex});this.status="in"};
  5571. b$I=function(T,Q){If(T,{createkeysession:1});T.status="gr";dS("drm_gk_s",void 0,T.videoData.z9);T.url=d7y(T);try{T.L=Q.createSession(T.j,function(k){If(T,{m:k})})}catch(k){Q="t.g";
  5572. k instanceof DOMException&&(Q+=";c."+k.code);T.publish("licenseerror","drm.unavailable",1,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}T.L&&(NoI(T.L,function(k,l){AfX(T,k,l)},function(k,l,v){if(!T.wd()){l=void 0;
  5573. var L=1;g.Ud(T.S)&&g.q0(T.Hd)&&T.Hd.V("html5_enable_safari_fairplay")&&v===1212433232&&(l="ERROR_HDCP",L=T.Hd.V("html5_safari_fairplay_ignore_hdcp")?0:L);T.error("drm.keyerror",L,k,l)}},function(){T.wd()||(If(T,{onkyadd:1}),T.z9||(T.publish("sessionready"),T.z9=!0))},function(k){T.e9(k)}),g.P(T,T.L))};
  5574. d7y=function(T){var Q=T.baseUrl;CA5(Q)||T.error("drm.net",2,"t.x");if(!X6(Q,"fexp")){var k=["23898307","23914062","23916106","23883098"].filter(function(v){return T.Hd.experiments.experiments[v]});
  5575. k.length>0&&(T.N.fexp=k.join())}k=g.B(Object.keys(T.N));for(var l=k.next();!l.done;l=k.next())l=l.value,Q=JZ6(Q,l,T.N[l]);return Q};
  5576. AfX=function(T,Q,k){if(!T.wd())if(Q){If(T,{onkmtyp:k});T.status="km";switch(k){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":rfy(T,Q);return;default:T.publish("ctmp","message_type",{t:k,l:Q.byteLength})}T.qO||(dS("drm_gk_f",void 0,T.videoData.z9),T.qO=!0,T.publish("newsession",T));if(qx(T.S)&&(Q=cfI(Q),!Q))return;Q=new CY5(Q,++T.requestNumber,T.videoData.z9);Bo5(Q,function(l){D7J(T,l)},function(l,v,L){if(!T.wd()){var q=0;
  5577. l.T.S>=3&&(q=1,v="drm.net.retryexhausted");If(T,{onlcsrqerr:v,info:L});T.error(v,q,L);T.shouldRetry(fu(q),l)&&aIT(T,l)}});
  5578. g.P(T,Q);uJ6(T,Q)}else T.error("drm.unavailable",1,"km.empty")};
  5579. rfy=function(T,Q){If(T,{sdpvrq:1});T.B=Date.now();if(T.S.flavor!=="widevine")T.error("drm.provision",1,"e.flavor;f."+T.S.flavor+";l."+Q.byteLength);else{var k={cpn:T.videoData.clientPlaybackNonce};Object.assign(k,T.Hd.T);k=g.sD("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",k);Q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
  5580. Q)}),responseType:"arraybuffer"};g.N2(k,Q,3,500).then(pQ(function(l){l=l.xhr;if(!T.wd()){l=new Uint8Array(l.response);var v=String.fromCharCode.apply(null,l);try{var L=JSON.parse(v)}catch(q){}L&&L.signedResponse?(T.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-T.B)/1E3,T.B=NaN,T.publish("ctmp","provs",{et:L.toFixed(3)}),T.L&&T.L.update(l)):(L=L&&L.error&&L.error.message,l="e.parse",L&&(l+=";m."+L),T.error("drm.provision",1,l))}}),pQ(function(l){T.wd()||T.error("drm.provision",1,"e."+l.errorCode+
  5581. ";c."+(l.xhr&&l.xhr.status))}))}};
  5582. h2=function(T){var Q;if(Q=T.D&&T.L!=null)T=T.L,Q=!(!T.T||!T.T.keyStatuses);return Q};
  5583. uJ6=function(T,Q){T.status="km";dS("drm_net_s",void 0,T.videoData.z9);var k=new g.ez(T.Hd.Lp),l={context:g.Yr(k.config_||g.MU())};l.drmSystem=nxJ[T.S.flavor];l.videoId=T.videoData.videoId;l.cpn=T.videoData.clientPlaybackNonce;l.sessionId=T.sessionId;l.licenseRequest=g.dJ(Q.message);l.drmParams=T.videoData.drmParams;isNaN(T.cryptoPeriodIndex)||(l.isKeyRotated=!0,l.cryptoPeriodIndex=T.cryptoPeriodIndex);var v,L,q=!!((v=T.videoData.S)==null?0:(L=v.video)==null?0:L.isHdr());l.drmVideoFeature=q?"DRM_VIDEO_FEATURE_PREFER_HDR":
  5584. "DRM_VIDEO_FEATURE_SDR";if(l.context&&l.context.client){if(v=T.Hd.T)l.context.client.deviceMake=v.cbrand,l.context.client.deviceModel=v.cmodel,l.context.client.browserName=v.cbr,l.context.client.browserVersion=v.cbrver,l.context.client.osName=v.cos,l.context.client.osVersion=v.cosver;l.context.user=l.context.user||{};l.context.request=l.context.request||{};T.videoData.i9&&(l.context.user.credentialTransferTokens=[{token:T.videoData.i9,scope:"VIDEO"}]);l.context.request.mdxEnvironment=T.videoData.mdxEnvironment||
  5585. l.context.request.mdxEnvironment;T.videoData.Z8&&(l.context.user.kidsParent={oauthToken:T.videoData.Z8});g.Ud(T.S)&&(l.fairplayKeyId=g.dJ(zWH(T.fairplayKeyId)));g.rj(T.Hd,g.YD(T.videoData)).then(function(Y){X6u(Q,l,k,Y);T.status="rs"})}else T.error("drm.net",2,"t.r;ic.0")};
  5586. D7J=function(T,Q){if(!T.wd())if(If(T,{onlcsrsp:1}),T.status="rr",Q.statusCode!==0)T.error("drm.auth",1,"t.f;c."+Q.statusCode,Q.errorMessage||void 0);else{dS("drm_kr_s",void 0,T.videoData.z9);if(Q.heartbeatParams&&Q.heartbeatParams.url&&T.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var k=T.S.S.match(/(.*)youtube.com/g);k&&(Q.heartbeatParams.url=k[0]+Q.heartbeatParams.url)}Q.heartbeatParams&&T.publish("newlicense",Q.heartbeatParams);Q.S&&(T.Y=Q.S,T.videoData.TB||T.publish("newlicense",
  5587. new svb),T.videoData.TB=!0,T.C=$4(T.Y,function(l){return l.includes("HDR")}));
  5588. Q.T&&(T.Hd.V("html5_enable_vp9_fairplay")&&Ym(T.S)?(k=g.dJ(zWH(T.fairplayKeyId),4),T.T[k]={type:Q.T[k],status:"unknown"}):T.T=Q2(Q.T,function(l){return{type:l,status:"unknown"}}));
  5589. Mx(T.S)&&(Q.message=Jx5(g.dJ(Q.message)));T.L&&(If(T,{updtks:1}),T.status="ku",T.L.update(Q.message).then(function(){dS("drm_kr_f",void 0,T.videoData.z9);h2(T)||(If(T,{ksApiUnsup:1}),T.publish("keystatuseschange",T))},function(l){l="msuf.req."+T.requestNumber+";msg."+g.N_(l.message,3);
  5590. T.error("drm.keyerror",1,l)}));
  5591. g.Ud(T.S)&&T.publish("fairplay_next_need_key_info",T.baseUrl,Q.nextFairplayKeyId);T.Hd.V("html5_enable_vp9_fairplay")&&Ym(T.S)&&T.publish("qualitychange",KTJ(T.Y));Q.sabrLicenseConstraint&&T.publish("sabrlicenseconstraint",Q.sabrLicenseConstraint)}};
  5592. aIT=function(T,Q){var k=Q.T.getValue();k=new g.FA(function(){uJ6(T,Q)},k);
  5593. g.P(T,k);k.start();g.ur(Q.T);If(T,{rtyrq:1})};
  5594. x75=function(T,Q){for(var k=[],l=g.B(Object.keys(T.T)),v=l.next();!v.done;v=l.next())v=v.value,k.push(v+"_"+T.T[v].type+"_"+T.T[v].status);return k.join(Q)};
  5595. PYf=function(T){var Q={};Q[T.status]=h2(T)?x75(T,"."):T.Y.join(".");return Q};
  5596. H$g=function(T,Q,k){var l={};l.isHdr=Q.includes("HDR");switch(Q.replace("HDR","").replace("720","")){case "AUDIO":l.trackType=1;break;case "SD":l.trackType=2;break;case "HD":l.trackType=3;break;case "UHD1":l.trackType=4;break;case "UHD2":l.trackType=5;break;default:l.trackType=0}!l.trackType||k[Q]||h2(T)&&!sF(T,Q)||(T.authorizedFormats.push(l),k[Q]=!0)};
  5597. sF=function(T,Q){for(var k in T.T)if(T.T[k].status==="usable"&&T.T[k].type===Q)return!0;return!1};
  5598. t3I=function(T,Q){for(var k in T.T)if(T.T[k].type===Q)return T.T[k].status};
  5599. If=function(T,Q){var k=k===void 0?!1:k;RE(Q);(k||T.Hd.J3())&&T.publish("ctmp","drmlog",Q)};
  5600. O$J=function(T){var Q=T[0];T[0]=T[3];T[3]=Q;Q=T[1];T[1]=T[2];T[2]=Q;Q=T[4];T[4]=T[5];T[5]=Q;Q=T[6];T[6]=T[7];T[7]=Q};
  5601. KTJ=function(T){return g.CW(T,"UHD2")||g.CW(T,"UHD2HDR")?"highres":g.CW(T,"UHD1")||g.CW(T,"UHD1HDR")?"hd2160":g.CW(T,"HD")||g.CW(T,"HDHDR")?"hd1080":g.CW(T,"HD720")||g.CW(T,"HD720HDR")?"hd720":"large"};
  5602. cfI=function(T){for(var Q="",k=0;k<T.length;k+=2)Q+=String.fromCharCode(T[k]);T=da(new DOMParser,Zo(Q),"text/xml");if(!T)return null;(Q=T.querySelector("Challenge"))&&Q.childNodes&&Q.childNodes.length!==0?(T=Uint8Array,Q=AV5(Q.childNodes[0].nodeValue),Q=(0,g.nr)(Q).buffer,T=new T(Q)):T=null;return T};
  5603. S2=function(T,Q,k,l,v,L){L=L===void 0?!1:L;g.x.call(this);this.element=T;this.j=Q;this.initData=k;this.T=l;this.S=v;this.D=L;this.sessionId="";this.C=this.B=this.L=this.N=null;this.Y=new g.Bj(this);g.P(this,this.Y);p6u(this)};
  5604. p6u=function(T){T.T?(T.Y.Z(T.T,"message",T.LL),T.Y.Z(T.T,"keystatuseschange",T.e9),T.T.closed&&T.T.closed.then(pQ(function(){T.onClosed()}),null)):T.S&&(di(T.Y,T.S,["mskeymessage",
  5605. "webkitkeymessage"],T.zN),di(T.Y,T.S,["mskeyerror","webkitkeyerror"],T.yg),di(T.Y,T.S,["mskeyadded","webkitkeyadded"],T.HX))};
  5606. NoI=function(T,Q,k,l,v){T.N=Q;T.L=k;T.B=l;T.C=v};
  5607. WTg=function(T,Q,k){g.bA(k);T.L&&(k instanceof DOMException&&(Q+=";n."+k.name+";m."+k.message),T.L(Q))};
  5608. C6=function(T,Q,k){k=k===void 0?!1:k;g.x.call(this);this.element=T;this.T=Q;this.C=k;this.B={};this.Y=null;this.N=new g.Bj(this);this.L=this.S=null;g.P(this,this.N)};
  5609. Jf5=function(T){if(T.T.keySystemAccess)return T.T.keySystemAccess.createMediaKeys().then(function(k){if(!T.wd()){T.S=k;var l;(l=T.element)==null||l.setMediaKeys(k)}});
  5610. if(Lc(T.T))T.L=new (vL())(T.T.keySystem);else if(gx(T.T)){T.L=new (vL())(T.T.keySystem);var Q;(Q=T.element)==null||Q.webkitSetMediaKeys(T.L)}else $7J(T);return null};
  5611. $7J=function(T){di(T.N,T.element,["keymessage","webkitkeymessage"],T.iJ);di(T.N,T.element,["keyerror","webkitkeyerror"],T.Yv);di(T.N,T.element,["keyadded","webkitkeyadded"],T.Fy)};
  5612. FT5=function(T,Q){Q=eN5(Q,T.T.Jj);Q=T.L.createSession("video/mp4",Q);return new S2(null,null,null,null,Q,T.C)};
  5613. Ex5=function(T,Q){for(var k=new Uint8Array(270),l=0;l<135;l++)k[l*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(l);T=T.L.createSession("video/mp4",Q,k);return new S2(null,null,null,null,T)};
  5614. yf5=function(T,Q){var k=T.B[Q.sessionId];!k&&T.Y&&(k=T.Y,T.Y=null,k.sessionId=Q.sessionId,T.B[Q.sessionId]=k);return k};
  5615. eN5=function(T,Q){var k=T.subarray(4);k=new Uint16Array(k.buffer,k.byteOffset,k.byteLength/2);k=String.fromCharCode.apply(null,k).match(/ek=([0-9a-f]+)/)[1];for(var l="",v=0;v<k.length;v+=2)l+=String.fromCharCode(parseInt(k.substring(v,v+2),16));k=l;l=new ArrayBuffer(k.length*2);v=new Uint16Array(l);for(var L=0;L<k.length;L++)v[L]=k.charCodeAt(L);k=new Uint8Array(l);l=0;L=new ArrayBuffer(T.byteLength+4+k.byteLength+4+Q.byteLength);v=new Uint8Array(L);L=new DataView(L);v.set(T);l+=T.byteLength;L.setUint32(l,
  5616. k.length,!0);l+=4;v.set(k,l);l+=k.length;L.setUint32(l,Q.byteLength,!0);v.set(Q,l+4);return v};
  5617. BV=function(){this.keys=[];this.values=[]};
  5618. TT6=function(T,Q,k){g.ox.call(this);this.element=T;this.videoData=Q;this.Hd=k;this.L=[];this.Bd=2;this.sK=this.i9=!1;this.heartbeatParams=null;this.xm=this.D=!1;this.N=null;this.e6=!1;this.T=this.videoData.N;this.drmSessionId=this.videoData.drmSessionId||g.dIy();this.S=new Map;this.B=new BV;this.C=new BV;this.qO=new g.Bj(this);this.hj=this.Hd.V("html5_eme_ignore_teardown_errors");(T=this.element)&&(T.addKey||T.webkitAddKey)||vL()||ZE(k.experiments);this.Hd.V("html5_enable_vp9_fairplay")&&Ym(this.T)?
  5619. k=i$X:(k=this.videoData.NV,k=this.T.flavor==="fairplay"||k?GV:i$X);this.j=k;this.Y=new C6(this.element,this.T,this.hj);g.P(this,this.Y);Lc(this.T)&&(this.z9=new C6(this.element,this.T,this.hj),g.P(this,this.z9));g.P(this,this.qO);k=this.element;this.T.keySystemAccess?this.qO.Z(k,"encrypted",this.ze9):di(this.qO,k,Lc(this.T)?["msneedkey"]:["needkey","webkitneedkey"],this.Vre);V3C(this);a:switch(k=this.T,T=this.Hd.experiments,Q=this.S,k.flavor){case "fairplay":HD()>19.2999?(T=k.Ps,k=k.Gt,k>=T&&(k=T*
  5620. .75),Q=(T-k)*.5,k=new Gj(Q,T,T-Q-k,this)):k=null;break a;case "widevine":k=new m7(Q,this,T);break a;default:k=null}if(this.N=k)g.P(this,this.N),this.N.subscribe("rotated_need_key_info_ready",this.Xe,this),this.N.subscribe("log_qoe",this.b8,this);ZE(this.Hd.experiments);this.b8({cks:this.T.getInfo()})};
  5621. V3C=function(T){var Q=Jf5(T.Y);Q?Q.then(pQ(function(){QfH(T)}),pQ(function(k){if(!T.wd()){g.bA(k);
  5622. var l="t.a";k instanceof DOMException&&(l+=";n."+k.name+";m."+k.message);T.publish("licenseerror","drm.unavailable",1,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(T.b8({mdkrdy:1}),T.D=!0);
  5623. T.z9&&(Q=Jf5(T.z9))};
  5624. kju=function(T,Q,k){T.sK=!0;k=new wX(Q,k);T.Hd.V("html5_eme_loader_sync")&&(T.B.get(Q)||T.B.set(Q,k));jft(T,k)};
  5625. jft=function(T,Q){if(!T.wd()){T.b8({onInitData:1});if(T.Hd.V("html5_eme_loader_sync")&&T.videoData.L&&T.videoData.L.T){var k=T.C.get(Q.initData);Q=T.B.get(Q.initData);if(!k||!Q)return;Q=k;k=Q.initData;T.B.remove(k);T.C.remove(k)}T.b8({initd:Q.initData.length,ct:Q.contentType});if(T.T.flavor==="widevine")if(T.i9&&!T.videoData.isLivePlayback)zj(T);else{if(!(T.Hd.V("vp9_drm_live")&&T.videoData.isLivePlayback&&Q.Rd)){T.i9=!0;k=Q.cryptoPeriodIndex;var l=Q.T;$tu(Q);Q.Rd||(l&&Q.T!==l?T.publish("ctmp","cpsmm",
  5626. {emsg:l,pssh:Q.T}):k&&Q.cryptoPeriodIndex!==k&&T.publish("ctmp","cpimm",{emsg:k,pssh:Q.cryptoPeriodIndex}));T.publish("widevine_set_need_key_info",Q)}}else T.Xe(Q)}};
  5627. QfH=function(T){if(!T.wd())if(T.Hd.V("html5_drm_set_server_cert")||Ym(T.T)){var Q=T.Y.setServerCertificate();Q?Q.then(pQ(function(k){T.Hd.J3()&&T.publish("ctmp","ssc",{success:k})}),pQ(function(k){T.publish("ctmp","ssce",{n:k.name,
  5628. m:k.message})})).then(pQ(function(){lvt(T)})):lvt(T)}else lvt(T)};
  5629. lvt=function(T){T.wd()||(T.D=!0,T.b8({onmdkrdy:1}),zj(T))};
  5630. oOy=function(T){return T.T.flavor==="widevine"&&T.videoData.V("html5_drm_cpi_license_key")};
  5631. zj=function(T){if(T.sK&&T.D&&!T.xm){for(;T.L.length;){var Q=T.L[0],k=oOy(T)?JqT(Q):g.dJ(Q.initData);if(Ym(T.T)&&!Q.S)T.L.shift();else{if(T.S.get(k))if(T.T.flavor!=="fairplay"||Ym(T.T)){T.L.shift();continue}else T.S.delete(k);$tu(Q);break}}T.L.length&&T.createSession(T.L[0])}};
  5632. vOb=function(T){var Q,k;g.a(function(l){if(l.S==1){var v;if(v=g.ph()){var L;v=!((L=T.Y.S)==null||!L.getMetrics)}return v?g.c(l,T.Y.getMetrics(),2):l.return()}Q=l.T;if(!Q)return l.return();VP(Q)||(Q=g.GU(Q));k=/^[A-Za-z0-9_-]+={0,3}$/;k.test(Q)||(Q=g.N_(Q,void 0,!0));T.publish("ctmp","drm",{metrics:Q});g.BT(l)})};
  5633. L75=function(){var T=K_b();return!(!T||T==="visible")};
  5634. gOI=function(T){var Q=qFJ();Q&&document.addEventListener(Q,T,!1)};
  5635. M2X=function(T){var Q=qFJ();Q&&document.removeEventListener(Q,T,!1)};
  5636. qFJ=function(){if(document.visibilityState)var T="visibilitychange";else{if(!document[R1+"VisibilityState"])return"";T=R1+"visibilitychange"}return T};
  5637. YFf=function(T){g.x.call(this);var Q=this;this.yq=T;this.FC=0;this.B=this.S=this.N=!1;this.Y=0;this.FB=this.yq.G();this.videoData=this.yq.getVideoData();this.L=g.jj(this.FB.experiments,"html5_delayed_retry_count");this.T=new g.FA(function(){Q.yq.s$()},g.jj(this.FB.experiments,"html5_delayed_retry_delay_ms"));
  5638. g.P(this,this.T)};
  5639. GjH=function(T,Q,k){var l=T.videoData.S,v=T.videoData.Y,L=T.FB.V("html5_disable_codec_fallback_for_drm")&&T.videoData.bl();NY(T.yq.getVideoData())&&T.FB.V("html5_gapless_fallback_on_qoe_restart")&&m7I(T.yq,"pe");if((Q==="progressive.net.retryexhausted"||Q==="fmt.unplayable"||Q==="fmt.decode")&&!T.yq.BG.N&&l&&l.itag==="22")return T.yq.BG.N=!0,T.RK("qoe.restart",{reason:"fmt.unplayable.22"}),T.yq.yV(),!0;var q=!1;if(T.videoData.isExternallyHostedPodcast){if(q=T.videoData.mKH)k.mimeType=q.type,T.T9("3pp",
  5640. {url:q.url});k.ns="3pp";T.yq.NL(Q,1,"VIDEO_UNAVAILABLE",RE((new g.ZK(Q,k,1)).details));return!0}var Y=T.FC+3E4<(0,g.XY)()||T.T.isActive();if(T.FB.V("html5_empty_src")&&T.videoData.isAd()&&Q==="fmt.unplayable"&&/Empty src/.test(""+k.msg))return k.origin="emptysrc",T.RK("auth",k),!0;Y||URT(T.yq.Gk())||(k.nonfg="paused",Y=!0,T.yq.pauseVideo());(Q==="fmt.decode"||Q==="fmt.unplayable")&&(v==null?0:nu(v)||Ku(v))&&(vJI(T.FB.N,v.yR),k.acfallexp=v.yR,q=Y=!0);!Y&&T.L>0&&(T.T.start(),Y=!0,k.delayed="1",--T.L);
  5641. v=T.yq.loader;Y||!((l==null?0:uk(l))||(l==null?0:cj(l)))||L||(vJI(T.FB.N,l.yR),q=Y=!0,k.cfallexp=l.yR);if(!Y)return R2t(T,k);L=!1;T.N?T.FC=(0,g.XY)():L=T.N=!0;Y=T.videoData;if(Y.u9){Y=Y.u9.T1();var U=Date.now()/1E3+1800;Y=Y<U}else Y=!1;k.e=Q;k.bkg=L75();Y&&(k.staleprog="1");T.RK("qoe.restart",k);if(Y&&Z6C(T))return fv5(T),!0;if(!(!g.tH("philips")||Q==="fmt.unplayable"&&v&&v.i9||T.FB.T.cplatform==="GAME_CONSOLE"))try{window.close()}catch(R){}l&&uk(l)&&!T.FB.V("html5_allow_av1_retry_in_session")?(q=
  5642. T.FB.N,q.z9=!0,q=q.S=!0):v?L||(Q=(Q=P7(v.videoTrack)||v.videoTrack.S)?Q.T:v.videoTrack.T,Q.B+=1,v.policy.T?Lf(v.Y.T,Q,!0):Zs(v.T,Q,!0)):T.videoData.u9&&T.videoData.u9.Cq();T.T.isActive()||T.yq.s$(q);return!0};
  5643. R2t=function(T,Q){if(T.videoData.qO)return!1;T.FB.h3+=1;if(T.FB.h3<=10)return!1;Q.exiled=""+T.FB.h3;T.RK("qoe.start15s",Q);T.yq.publish("playbackstalledatstart");return!0};
  5644. Z6C=function(T){return T.S?!0:T.FB.z9==="yt"?T.videoData.qO?T.videoData.Gg<25:!T.videoData.Gg:!1};
  5645. fv5=function(T){if(!T.S){T.S=!0;var Q=T.yq.getPlayerState();Q=Q.isPaused()||Q.isSuspended();T.yq.T0();Q&&!Z_(T.videoData)||T.yq.publish("signatureexpired")}};
  5646. mR6=function(T,Q){if((T=T.yq.T_())&&(Q.errorCode==="fmt.unplayable"||Q.errorCode==="html5.invalidstate")){var k=T.SZ();Q.details.merr=k?k.toString():"0";Q.details.mmsg=T.dw()}};
  5647. Ivg=function(T){return T.errorCode==="net.badstatus"&&(T.severity===1||!!T.details.fmt_unav)};
  5648. h2X=function(T,Q){return T.FB.V("html5_use_network_error_code_enums")&&Q.details.rc===403||Q.details.rc==="403"?(T=Q.errorCode,T==="net.badstatus"||T==="manifest.net.retryexhausted"):!1};
  5649. SFH=function(T,Q){if(!h2X(T,Q)&&!T.S)return!1;Q.details.sts="20297";if(Z6C(T))return fu(Q.severity)&&(Q=Object.assign({e:Q.errorCode},Q.details),Q=new g.ZK("qoe.restart",Q)),T.RK(Q.errorCode,Q.details),fv5(T),!0;(0,g.XY)()-T.FB.Wk>6048E5&&sfb(T,"signature");return!1};
  5650. sfb=function(T,Q){try{Q={detail:"pr."+Q},g.s8(T.FB)&&T.FB.V("html5_reload_by_kabuki_app")?T.yq.NL("qoe.restart",1,void 0,RE(Q),"7"):(T.RK("qoe.restart",Q),window.location.reload())}catch(k){}};
  5651. Cg5=function(T,Q){var k=T.FB.N;k.C=!1;k.S=!0;T.RK("qoe.restart",{e:Q===void 0?"fmt.noneavailable":Q,detail:"hdr"});T.yq.s$(!0)};
  5652. BT5=function(T,Q,k,l,v,L){this.videoData=T;this.T=Q;this.reason=k;this.S=l;this.token=v;this.videoId=L};
  5653. XO=function(T,Q,k){this.Hd=T;this.GQ=Q;this.yq=k;this.j=this.B=this.T=this.Y=this.C=this.S=0;this.N=!1;this.D=g.jj(this.Hd.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.L=new Map};
  5654. z2u=function(T,Q,k){!T.Hd.V("html5_tv_ignore_capable_constraint")&&g.G4(T.Hd)&&(k=k.compose(T.KP(Q)));return k};
  5655. XVH=function(T){if(T.yq.Gk().isInline())return GV;var Q;T.V("html5_exponential_memory_for_sticky")?Q=Ed(T.Hd.nG,"sticky-lifetime")<.5?"auto":rt[mk()]:Q=rt[mk()];return g.NQ("auto",Q,!1,"s")};
  5656. dRC=function(T,Q){var k,l=wVT(T,(k=Q.T)==null?void 0:k.videoInfos);k=T.yq.getPlaybackRate();return k>1&&l?(T=jNC(T.Hd.N,Q.T.videoInfos,k),new dt(0,T,!0,"o")):new dt(0,0,!1,"o")};
  5657. wVT=function(T,Q){return Q&&g.G4(T.Hd)?Q.some(function(k){return k.video.fps>32}):!1};
  5658. NT5=function(T,Q){if(T.V("html5_disable_ustreamer_constraint_for_sabr")&&cv(Q.videoData))return GV;var k=T.yq.Py();T.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&k&&k.Od>0&&bd(Q.videoData.CH)&&(T=k.Od,Q.videoData.CH=new dt(0,T,!1,"u"));return Q.videoData.CH};
  5659. A26=function(T,Q){var k;a:if((k=Q.T)&&k.videoInfos.length){for(var l=g.B(k.videoInfos),v=l.next();!v.done;v=l.next()){v=v.value;var L=void 0;if((L=v.S)==null?0:L.smooth){k=v.video.qualityOrdinal;break a}}k=k.videoInfos[0].video.qualityOrdinal}else k=0;h1y()&&!g.G4(T.Hd)&&cj(Q.T.videoInfos[0])&&(k=Math.min(k,g.wC.large));l=g.jj(T.Hd.experiments,"html5_chipset_soft_cap");l>0&&(k=Math.min(k,l));if(l=g.jj(T.Hd.experiments,"html5_max_vertical_resolution")){v=4320;for(L=0;L<Q.T.videoInfos.length;L++){var q=
  5660. Q.T.videoInfos[L];q.video.height>l&&(v=Math.min(v,q.video.qualityOrdinal))}if(v<4320){for(q=L=0;q<Q.T.videoInfos.length;q++){var Y=Q.T.videoInfos[q].video.qualityOrdinal;Y<v&&(L=Math.max(L,Y))}L&&(k=Math.min(L,k))}T.yq.T9("mvr",{h:l,cp:k})}return new dt(0,k,!1,"o")};
  5661. r2y=function(T,Q){var k=4320;!T.Hd.S||g.Ln(T.Hd)||T.Hd.V("hls_for_vod")||T.Hd.V("mweb_remove_360p_cap")||(k=g.wC.medium);var l=g.jj(T.Hd.experiments,"html5_default_quality_cap");l&&Q.T.T&&(T.Hd.V("html5_always_apply_default_quality_cap")||!Q.videoData.w8&&!Q.videoData.jY)&&(k=Math.min(k,l));l=g.jj(T.Hd.experiments,"html5_random_playback_cap");var v=/[a-h]$/;l&&v.test(Q.videoData.clientPlaybackNonce)&&(k=Math.min(k,l));if(v=l=g.jj(T.Hd.experiments,"html5_hfr_quality_cap"))a:{v=Q.T;if(v.T){v=g.B(v.videoInfos);
  5662. for(var L=v.next();!L.done;L=v.next())if(L.value.video.fps>32){v=!0;break a}}v=!1}v&&(k=Math.min(k,l));(l=g.jj(T.Hd.experiments,"html5_live_quality_cap"))&&Q.videoData.isLivePlayback&&(k=Math.min(k,l));k=b6T(T,Q,k);T=g.jj(T.Hd.experiments,"html5_byterate_soft_cap");return new dt(0,k===4320?0:k,!1,"d",T)};
  5663. c2f=function(T){var Q,k,l,v;return g.a(function(L){switch(L.S){case 1:return T.T.T&&typeof((Q=navigator.mediaCapabilities)==null?void 0:Q.decodingInfo)==="function"?g.c(L,Promise.resolve(),2):L.return(Promise.resolve());case 2:k=g.B(T.T.videoInfos),l=k.next();case 3:if(l.done){L.Ym(0);break}v=l.value;return g.c(L,KMt(v),4);case 4:l=k.next(),L.Ym(3)}})};
  5664. avT=function(T,Q){if(!Q.videoData.S||T.V("html5_disable_performance_downgrade"))return!1;Date.now()-T.C>6E4&&(T.S=0);T.S++;T.C=Date.now();if(T.S!==4)return!1;DRT(T,Q.videoData.S);return!0};
  5665. nOu=function(T,Q,k,l){if(!Q||!k||!Q.videoData.S)return!1;var v=g.jj(T.Hd.experiments,"html5_df_downgrade_thresh"),L=T.V("html5_log_media_perf_info");if(!((0,g.XY)()-T.Y<5E3?0:L||v>0))return!1;var q=((0,g.XY)()-T.Y)/1E3;T.Y=(0,g.XY)();k=k.getVideoPlaybackQuality();if(!k)return!1;var Y=k.droppedVideoFrames-T.B,U=k.totalVideoFrames-T.j;T.B=k.droppedVideoFrames;T.j=k.totalVideoFrames;var R=k.displayCompositedVideoFrames===0?0:k.displayCompositedVideoFrames||-1;L&&T.Hd.J3()&&T.yq.T9("ddf",{dr:k.droppedVideoFrames,
  5666. de:k.totalVideoFrames,comp:R});if(l)return T.T=0,!1;if((U-Y)/q>T.D||!v||g.G4(T.Hd))return!1;T.T=(U>60?Y/U:0)>v?T.T+1:0;if(T.T!==3)return!1;DRT(T,Q.videoData.S);T.yq.T9("dfd",Object.assign({dr:k.droppedVideoFrames,de:k.totalVideoFrames},uOb()));return!0};
  5667. DRT=function(T,Q){var k=Q.yR,l=Q.video.fps,v=Q.video.qualityOrdinal-1,L=T.L;Q=""+k+(l>49?"p60":l>32?"p48":"");k=km(k,l,L);v>0&&(k=Math.min(k,v));if(!wT.has(Q)&&sV().includes(Q)){var q=k;k=h_();+k[Q]>0&&(q=Math.min(+k[Q],q));k[Q]!==q&&(k[Q]=q,g.ri("yt-player-performance-cap",k,2592E3))}else if(wT.has(Q)||L==null){a:{q=q===void 0?!0:q;l=sV().slice();if(q){if(l.includes(Q))break a;l.push(Q)}else{if(!l.includes(Q))break a;l.splice(l.indexOf(Q),1)}g.ri("yt-player-performance-cap-active-set",l,2592E3)}j4.set(Q,
  5668. k)}else wT.add(Q),L==null||L.set(Q,k);T.yq.B5()};
  5669. K7J=function(T,Q){if(!Q.T.T)return T.N?new dt(0,360,!1,"b"):GV;for(var k=!1,l=!1,v=g.B(Q.T.videoInfos),L=v.next();!L.done;L=v.next())uk(L.value)?k=!0:l=!0;k=k&&l;l=0;v=g.jj(T.Hd.experiments,"html5_performance_cap_floor");v=T.Hd.S?240:v;Q=g.B(Q.T.videoInfos);for(L=Q.next();!L.done;L=Q.next()){var q=L.value;if(!k||!uk(q))if(L=km(q.yR,q.video.fps,T.L),q=q.video.qualityOrdinal,Math.max(L,v)>=q){l=q;break}}return new dt(0,l,!1,"b")};
  5670. xRX=function(T,Q){var k=T.yq.Gk();return k.isInline()&&!Q.tQ?new dt(0,480,!1,"v"):cv(Q)?GV:k.isBackground()&&Bd()/1E3>60&&!g.G4(T.Hd)?new dt(0,360,!1,"v"):GV};
  5671. Pgy=function(T,Q,k){if(T.Hd.experiments.Wd("html5_disable_client_autonav_cap_for_onesie")&&Q.fetchType==="onesie"||g.G4(T.Hd)&&(mk(-1)>=1080||Q.osid))return GV;var l=g.jj(T.Hd.experiments,"html5_autonav_quality_cap"),v=g.jj(T.Hd.experiments,"html5_autonav_cap_idle_secs");return l&&Q.isAutonav&&Bd()/1E3>v?(k&&(l=b6T(T,k,l)),new dt(0,l,!1,"e")):GV};
  5672. b6T=function(T,Q,k){if(T.V("html5_optimality_defaults_chooses_next_higher")&&k)for(T=Q.T.videoInfos,Q=1;Q<T.length;Q++)if(T[Q].video.qualityOrdinal<k)return T[Q-1].video.qualityOrdinal;return k};
  5673. H65=function(T,Q){T.V("html5_log_media_perf_info")&&(T.yq.T9("perfdb",uOb()),T.yq.T9("sessionperfdb",Object.fromEntries(j4.entries())),T.yq.T9("playbackperfdb",Object.fromEntries(T.L.entries())),T.yq.T9("hwc",{nch:navigator.hardwareConcurrency},!0),Q&&T.yq.T9("mcdb",{itags:Q.T.videoInfos.filter(function(k){var l;return((l=k.S)==null?void 0:l.smooth)===!1}).map(function(k){return k.itag}).join("-")}))};
  5674. uOb=function(){return Q2(h_(),function(T){return""+T})};
  5675. dT=function(T){g.x.call(this);var Q=this;this.provider=T;this.T=-1;this.N=!1;this.S=-1;this.playerState=new g.Cd;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.Y=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.FA(this.send,6E4,this);this.L=!1;this.jsErrorCount=0;this.dn={ai:function(){Q.ai()}};
  5676. this.ai=function(){Q.jsErrorCount++};
  5677. g.P(this,this.delay);window.addEventListener("error",this.ai);window.addEventListener("unhandledrejection",this.ai)};
  5678. t2g=function(T){T.T>=0||(T.provider.yq.getVisibilityState()===3?T.N=!0:(T.T=g.qR(T.provider),T.delay.start()))};
  5679. O6y=function(T){if(!(T.S<0)){var Q=g.qR(T.provider),k=Q-T.Y;T.Y=Q;T.playerState.state===8?T.playTimeSecs+=k:T.playerState.isBuffering()&&!g.J(T.playerState,16)&&(T.rebufferTimeSecs+=k)}};
  5680. pVu=function(T){var Q;switch((Q=T.Hd.playerCanaryStage)==null?void 0:Q.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
  5681. W7f=function(T){this.provider=T;this.C=!1;this.T=0;this.Y=-1;this.U_=NaN;this.L=0;this.segments=[];this.B=this.N=0;this.previouslyEnded=!1;this.D=this.provider.yq.getVolume();this.j=this.provider.yq.isMuted()?1:0;this.S=NR(this.provider)};
  5682. A2=function(T){T.S.startTime=T.L;T.S.endTime=T.T;var Q=!1;T.segments.length&&g.m9(T.segments).isEmpty()?(T.segments[T.segments.length-1].previouslyEnded&&(T.S.previouslyEnded=!0),T.segments[T.segments.length-1]=T.S,Q=!0):T.segments.length&&T.S.isEmpty()||(T.segments.push(T.S),Q=!0);Q?T.S.endTime===0&&(T.previouslyEnded=!1):T.S.previouslyEnded&&(T.previouslyEnded=!0);T.N+=T.T-T.L;T.S=NR(T.provider);T.S.previouslyEnded=T.previouslyEnded;T.previouslyEnded=!1;T.L=T.T};
  5683. J2t=function(T){$R5(T);T.B=g.fh(function(){T.update()},100);
  5684. T.U_=g.qR(T.provider);T.S=NR(T.provider)};
  5685. $R5=function(T){g.m6(T.B);T.B=NaN};
  5686. e2y=function(T,Q,k){k-=T.U_;return Q===T.T&&k>.5};
  5687. F7J=function(T,Q,k,l){this.Hd=Q;this.OG=k;this.segments=[];this.experimentIds=[];this.u9=this.Ig=this.isFinal=this.delayThresholdMet=this.d5=this.t6=this.autoplay=this.autonav=!1;this.DP="yt";this.B=[];this.C=this.D=null;this.sendVisitorIdHeader=this.K_=!1;this.j=this.pageId="";this.N=k==="watchtime";this.L=k==="playback";this.xm=k==="atr";this.Tw=k==="engage";this.sendVisitorIdHeader=!1;this.uri=this.xm?"/api/stats/"+k:"//"+Q.VF+"/api/stats/"+k;l&&(this.Ig=l.fs,l.rtn&&(this.C=l.rtn),this.N?(this.playerState=
  5688. l.state,l.rti>0&&(this.D=l.rti)):(this.Wk=l.mos,this.ek=l.volume,l.at&&(this.adType=l.at)),l.autonav&&(this.autonav=l.autonav),l.inview!=null&&(this.Z8=l.inview),l.size&&(this.Fk=l.size),l.playerwidth&&(this.nG=l.playerwidth),l.playerheight&&(this.iK=l.playerheight));this.Ah=g.Gs(Q.T);this.j=S4(Q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.j==="all"||this.j==="once")this.Gg=g.Gs(Q.d5);this.uK=Q.DP;this.experimentIds=id5(Q.experiments);this.p_=Q.F_;this.DP=Q.z9;this.region=Q.region;
  5689. this.userAge=Q.userAge;this.zg=Q.NV;this.gt=Bd();this.sendVisitorIdHeader=Q.sendVisitorIdHeader;this.i9=Q.V("vss_pings_using_networkless")||Q.V("kevlar_woffle");this.OW=Q.V("vss_final_ping_send_and_write");this.e6=Q.V("vss_use_send_and_write");this.pageId=Q.pageId;this.vk=Q.V("vss_playback_use_send_and_write");Q.livingRoomAppMode&&(this.livingRoomAppMode=Q.livingRoomAppMode);this.pG=Q.Y&&Q.V("embeds_append_synth_ch_headers");g.Qk(Q)&&(this.sK=Q.xm);g.gi(g.M0(Q))&&this.B.push(1);this.accessToken=g.YD(T);
  5690. T.Rx[this.OG]?this.Y=T.Rx[this.OG]:T.Rx.playback&&(this.Y=T.Rx.playback);this.adFormat=T.adFormat;this.adQueryId=T.adQueryId;this.autoplay=yCg(T);this.L&&(this.t6=T.nU&&vi(T)==="adunit"?!0:!1);this.autonav=T.isAutonav||this.autonav;this.contentVideoId=qf(T);this.clientPlaybackNonce=T.clientPlaybackNonce;this.d5=T.hh;T.B&&(this.qO=T.B,this.h3=T.Yz);T.mdxEnvironment&&(this.mdxEnvironment=T.mdxEnvironment);this.T=T.Ah;this.QR=T.QR;T.S&&(this.F_=T.S.itag,T.Y&&T.Y.itag!==this.F_&&(this.Tg=T.Y.itag));T.T&&
  5691. nP(T.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=vi(T);this.u9=T.vk?!1:T.ek;this.vn=T.GT;if(Q=JL(T))this.m0=Q;this.YP=T.nR;this.partnerId=T.partnerId;this.eventId=T.eventId;this.playlistId=T.Ur||T.playlistId;this.rZ=T.rZ;this.w8=T.w8;this.SO=T.SO;this.Ap=T.Ap;this.subscribed=T.subscribed;this.videoId=T.videoId;this.videoMetadata=T.videoMetadata;this.visitorData=T.visitorData;this.osid=T.osid;this.XF=T.XF;this.referrer=T.referrer;this.wV=T.H2||T.wV;this.f_=T.FZ;this.LH=T.LH;this.userGenderAge=
  5692. T.userGenderAge;this.SP=T.SP;this.embedsRct=T.embedsRct;this.embedsRctn=T.embedsRctn;g.Qk(this.Hd)&&T.mutedAutoplay&&(T.mutedAutoplayDurationMode===2&&T.limitedPlaybackDurationInSeconds===0&&T.endSeconds===0?this.B.push(7):this.B.push(2));T.isEmbedsShortsMode(new g.Ji(this.nG,this.iK),!!this.playlistId)&&this.B.push(3);g.S$(T)&&this.B.push(4);this.Jj=T.i4;T.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=T.compositeLiveIngestionOffsetToken)};
  5693. EOg=function(T,Q){var k=T.sendVisitorIdHeader?T.visitorData:void 0;return g.rj(T.Hd,T.accessToken).then(function(l){return Ts5(T.uri,T.Hd,T.pageId,k,l,Q,T.pG)})};
  5694. V2y=function(T,Q){return function(){T.Hd.V("html5_simplify_pings")?(T.T=T.Bd,T.Hn=Q(),T.gt=0,T.send()):EOg(T).then(function(k){var l=y25(T);l.cmt=l.len;l.lact="0";var v=Q().toFixed(3);l.rt=Number(v).toString();l=g.sD(T.uri,l);T.Hd.V("vss_through_gel_double")&&i6g(l);T.i9?(k==null&&(k={}),T.e6?$r().sendAndWrite(l,k):$r().sendThenWrite(l,k)):k?g.zO(l,k):g.uM(l)})}};
  5695. y25=function(T){var Q={ns:T.DP,el:T.eventLabel,cpn:T.clientPlaybackNonce,ver:2,cmt:T.S(T.T),fmt:T.F_,fs:T.Ig?"1":"0",rt:T.S(T.Hn),adformat:T.adFormat,content_v:T.contentVideoId,euri:T.uK,lact:T.gt,live:T.m0,cl:(787819992).toString(),mos:T.Wk,state:T.playerState,volume:T.ek};T.subscribed&&(Q.subscribed="1");Object.assign(Q,T.Ah);T.j==="all"?Object.assign(Q,T.Gg):T.j==="once"&&T.L&&Object.assign(Q,T.Gg);T.autoplay&&(Q.autoplay="1");T.t6&&(Q.sautoplay="1");T.d5&&(Q.dni="1");!T.N&&T.sK&&(Q.epm=TWb[T.sK]);
  5696. T.isFinal&&(Q["final"]="1");T.u9&&(Q.splay="1");T.QR&&(Q.delay=T.QR);T.p_&&(Q.hl=T.p_);T.region&&(Q.cr=T.region);T.userGenderAge&&(Q.uga=T.userGenderAge);T.userAge!==void 0&&T.zg&&(Q.uga=T.zg+T.userAge);T.Bd!==void 0&&(Q.len=T.S(T.Bd));!T.N&&T.experimentIds.length>0&&(Q.fexp=T.experimentIds.toString());T.C!==null&&(Q.rtn=T.S(T.C));T.wV&&(Q.feature=T.wV);T.w8&&(Q.ctrl=T.w8);T.SO&&(Q.ytr=T.SO);T.Tg&&(Q.afmt=T.Tg);T.offlineDownloadUserChoice&&(Q.ODUC=T.offlineDownloadUserChoice);T.z9&&(Q.lio=T.S(T.z9));
  5697. T.N?(Q.idpj=T.vn,Q.ldpj=T.YP,T.delayThresholdMet&&(Q.dtm="1"),T.D!=null&&(Q.rti=T.S(T.D)),T.SP&&(Q.ald=T.SP),T.compositeLiveIngestionOffsetToken&&(Q.clio=T.compositeLiveIngestionOffsetToken)):T.adType!==void 0&&(Q.at=T.adType);T.Fk&&(T.L||T.N)&&(Q.size=T.Fk);T.L&&T.B.length&&(Q.pbstyle=T.B.join(","));T.Z8!=null&&(T.L||T.N)&&(Q.inview=T.S(T.Z8));T.N&&(Q.volume=bg(T,g.IQ(T.segments,function(l){return l.volume})),Q.st=bg(T,g.IQ(T.segments,function(l){return l.startTime})),Q.et=bg(T,g.IQ(T.segments,function(l){return l.endTime})),
  5698. $4(T.segments,function(l){return l.playbackRate!==1})&&(Q.rate=bg(T,g.IQ(T.segments,function(l){return l.playbackRate}))),$4(T.segments,function(l){return l.T!=="-"})&&(Q.als=g.IQ(T.segments,function(l){return l.T}).join(",")),$4(T.segments,function(l){return l.previouslyEnded})&&(Q.pe=g.IQ(T.segments,function(l){return""+ +l.previouslyEnded}).join(",")));
  5699. Q.muted=bg(T,g.IQ(T.segments,function(l){return l.muted?1:0}));
  5700. $4(T.segments,function(l){return l.visibilityState!==0})&&(Q.vis=bg(T,g.IQ(T.segments,function(l){return l.visibilityState})));
  5701. $4(T.segments,function(l){return l.connectionType!==0})&&(Q.conn=bg(T,g.IQ(T.segments,function(l){return l.connectionType})));
  5702. $4(T.segments,function(l){return l.S!==0})&&(Q.blo=bg(T,g.IQ(T.segments,function(l){return l.S})));
  5703. $4(T.segments,function(l){return!!l.L})&&(Q.blo=g.IQ(T.segments,function(l){return l.L}).join(","));
  5704. $4(T.segments,function(l){return!!l.compositeLiveStatusToken})&&(Q.cbs=g.IQ(T.segments,function(l){return l.compositeLiveStatusToken}).join(","));
  5705. $4(T.segments,function(l){return l.Y!=="-"})&&(Q.cc=g.IQ(T.segments,function(l){return l.Y}).join(","));
  5706. $4(T.segments,function(l){return l.clipId!=="-"})&&(Q.clipid=g.IQ(T.segments,function(l){return l.clipId}).join(","));
  5707. if($4(T.segments,function(l){return!!l.audioId})){var k="au";
  5708. T.L&&(k="au_d");Q[k]=g.IQ(T.segments,function(l){return l.audioId}).join(",")}Lh()&&T.qO&&(Q.ctt=T.qO,Q.cttype=T.h3,Q.mdx_environment=T.mdxEnvironment);
  5709. T.Tw&&(Q.etype=T.hj!==void 0?T.hj:0);T.f_&&(Q.uoo=T.f_);T.livingRoomAppMode&&T.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Q.clram=Q46[T.livingRoomAppMode]||T.livingRoomAppMode);T.Y?j4T(T,Q):(Q.docid=T.videoId,Q.referrer=T.referrer,Q.ei=T.eventId,Q.of=T.XF,Q.osid=T.osid,Q.vm=T.videoMetadata,T.adQueryId&&(Q.aqi=T.adQueryId),T.autonav&&(Q.autonav="1"),T.playlistId&&(Q.list=T.playlistId),T.Ap&&(Q.ssrt="1"),T.LH&&(Q.upt=T.LH));T.L&&(T.embedsRct&&(Q.rct=T.embedsRct),T.embedsRctn&&(Q.rctn=
  5710. T.embedsRctn),T.compositeLiveIngestionOffsetToken&&(Q.clio=T.compositeLiveIngestionOffsetToken));T.Jj&&(Q.host_cpn=T.Jj);return Q};
  5711. j4T=function(T,Q){if(Q&&T.Y){var k=new Set(["q","feature","mos"]),l=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),v=new Set(["aqi","autonav","list","ssrt","upt"]);T.Y.ns==="3pp"&&(Q.ns="3pp");for(var L=g.B(Object.keys(T.Y)),q=L.next();!q.done;q=L.next())q=q.value,l.has(q)||k.has(q)||v.has(q)&&!T.Y[q]||(Q[q]=T.Y[q])}};
  5712. bg=function(T,Q){return g.IQ(Q,T.S).join(",")};
  5713. i6g=function(T){T.indexOf("watchtime")!==-1&&g.LM("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:T}})};
  5714. kkt=function(T,Q){T.attestationResponse&&EOg(T).then(function(k){k=k||{};k.method="POST";k.postParams={atr:T.attestationResponse};T.i9?T.e6?$r().sendAndWrite(Q,k):$r().sendThenWrite(Q,k):g.zO(Q,k)})};
  5715. rT=function(T){g.x.call(this);this.provider=T;this.B="paused";this.N=NaN;this.C=[10,10,10,40];this.D=this.j=0;this.qO=this.xm=this.hj=this.z9=this.L=!1;this.S=this.Y=NaN;this.logger=new g.Cy("vss");this.T=new W7f(T)};
  5716. qlg=function(T){if(!T.L){T.provider.videoData.tO===16623&&g.rB(Error("Playback for EmbedPage"));var Q=cV(T,"playback");T.C=lxC(T);J2t(T.T);Q.C=Dv(T);T.S>0&&(Q.T-=T.S);Q.send();if(T.provider.videoData.f5){Q=T.provider.Hd;var k=T.provider.videoData,l={html5:"1",video_id:k.videoId,cpn:k.clientPlaybackNonce,ei:k.eventId,ptk:k.f5,oid:k.zX,ptchn:k.y_,pltype:k.qx,content_v:qf(k)};k.K5&&Object.assign(l,{m:k.K5});Q=g.sD(Q.fz+"ptracking",l);okb(T,Q)}T.provider.videoData.QR||(vkt(T),L8b(T));T.L=!0;T=T.T;T.T=
  5717. T.Jb();T.U_=g.qR(T.provider);!(T.L===0&&T.T<5)&&T.T-T.L>2&&(T.L=T.T);T.C=!0}};
  5718. lxC=function(T){var Q=T.provider.videoData.GT,k=T.provider.videoData.nR,l=[10+Q,10,10,40+k-Q,40],v,L=(v=T.provider.videoData.getPlayerResponse())==null?void 0:v.playbackTracking,q=L==null?void 0:L.videostatsScheduledFlushWalltimeSeconds;v=L==null?void 0:L.videostatsDefaultFlushIntervalSeconds;if(!(q&&q.length>0&&v))return T.logger.info("Missing valid scheduled pings config "+q+" "+v),l;Q=[q[0]+Q].concat(g.ZH(q.slice(1).map(function(Y,U){return Y-q[U]})),[v+k-Q,
  5719. v]);return Q.some(function(Y){return Y<0})?(T.logger.T(347111855,"Neg vss scheduled pings "+q+" "+v),l):Q};
  5720. Dv=function(T,Q){Q=Q===void 0?NaN:Q;var k=g.qR(T.provider);Q=isNaN(Q)?k:Q;Q=Math.ceil(Q);var l=T.C[T.j];T.j+1<T.C.length&&T.j++;var v=Q+l;T.N=g.Zq(function(){if(!T.wd()){T.N=NaN;var L=gku(T),q=M8t(T,L);q.D=v;var Y=T.D>1E3;!(L.length>1)&&L[0].isEmpty()||Y||(q.C=Dv(T,v));q.send();T.D++}},(v-k)*1E3);
  5721. return T.Y=v};
  5722. af=function(T){g.GO(T.N);T.N=NaN};
  5723. gku=function(T){T.T.update();T=T.T;T.segments.length&&T.T===T.L||A2(T);var Q=T.segments;T.segments=[];return Q};
  5724. cV=function(T,Q){var k=Ylt(T.provider);Object.assign(k,{state:T.B});Q=new F7J(T.provider.videoData,T.provider.Hd,Q,k);Q.T=T.provider.yq.Jb();k=T.provider.videoData.clientPlaybackNonce;Q.T=T.provider.yq.Km(k);T.provider.videoData.isLivePlayback||(Q.Bd=T.provider.yq.getDuration(k));T.provider.videoData.T&&(k=T.provider.videoData.T.xM(Q.T))&&(Q.z9=k-Q.T,T.provider.Hd.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&r4(T.provider.videoData)&&(Q.T+=T.provider.yq.Px(),Q.z9-=T.provider.yq.Px()));Q.Hn=g.qR(T.provider);
  5725. Q.segments=[NR(T.provider)];return Q};
  5726. M8t=function(T,Q){var k=cV(T,"watchtime");U4y(T)&&(k.delayThresholdMet=!0,T.hj=!0);if(T.S>0){for(var l=g.B(Q),v=l.next();!v.done;v=l.next())v=v.value,v.startTime-=T.S,v.endTime-=T.S;k.T-=T.S}else k.T=T.T.T;k.segments=Q;return k};
  5727. ug=function(T,Q){var k=R5C(T,!isNaN(T.Y));Q&&(T.Y=NaN);return k};
  5728. R5C=function(T,Q){var k=M8t(T,gku(T));!isNaN(T.Y)&&Q&&(k.D=T.Y);return k};
  5729. U4y=function(T){var Q;if(Q=T.provider.videoData.isLoaded()&&T.provider.videoData.QR&&T.L&&!T.hj)Q=T.T,Q=Q.N+Q.Jb()-Q.L>=T.provider.videoData.QR;return!!Q};
  5730. vkt=function(T){T.provider.videoData.youtubeRemarketingUrl&&!T.xm&&(okb(T,T.provider.videoData.youtubeRemarketingUrl),T.xm=!0)};
  5731. L8b=function(T){T.provider.videoData.googleRemarketingUrl&&!T.qO&&(okb(T,T.provider.videoData.googleRemarketingUrl),T.qO=!0)};
  5732. Zvg=function(T){if(!T.wd()&&T.L){T.B="paused";var Q=ug(T);Q.isFinal=!0;Q.send();T.dispose()}};
  5733. fxg=function(T,Q){if(!T.wd())if(g.J(Q.state,2)||g.J(Q.state,512)){if(T.B="paused",g.RY(Q,2)||g.RY(Q,512))g.RY(Q,2)&&(T.T.previouslyEnded=!0),T.L&&(af(T),ug(T).send(),T.Y=NaN)}else if(g.J(Q.state,8)){T.B="playing";var k=T.L&&isNaN(T.N)?Dv(T):NaN;if(!isNaN(k)&&(Ue(Q,64)<0||Ue(Q,512)<0)){var l=R5C(T,!1);l.C=k;l.send()}g.RY(Q,16)&&Q.state.seekSource===58&&(T.T.previouslyEnded=!0)}else T.B="paused"};
  5734. GkJ=function(T,Q,k){if(!T.z9){k||(k=cV(T,"atr"));k.attestationResponse=Q;try{k.send()}catch(l){if(l.message!=="Unknown Error")throw l;}T.z9=!0}};
  5735. okb=function(T,Q){var k=T.provider.Hd;g.rj(T.provider.Hd,g.YD(T.provider.videoData)).then(function(l){var v=T.provider.Hd.pageId,L=T.provider.Hd.sendVisitorIdHeader?T.provider.videoData.visitorData:void 0,q=T.provider.Hd.V("vss_pings_using_networkless")||T.provider.Hd.V("kevlar_woffle"),Y=T.provider.Hd.V("allow_skip_networkless");l=Ts5(Q,k,v,L,l);Qay(Q,l,{token:T.provider.videoData.B,Bv:T.provider.videoData.Yz,mdxEnvironment:T.provider.videoData.mdxEnvironment},k,void 0,q&&!Y,!1,!0)})};
  5736. m4T=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.S=0;this.compositeLiveStatusToken=this.L=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1};
  5737. n6=function(T,Q,k){this.videoData=T;this.Hd=Q;this.yq=k;this.T=void 0};
  5738. g.qR=function(T){return Ixb(T)()};
  5739. Ixb=function(T){if(!T.T){var Q=g.YE(function(l){var v=(0,g.XY)();l&&v<=631152E6&&(T.yq.T9("ytnerror",{issue:28799967,value:""+v}),v=(new Date).getTime()+2);return v},T.Hd.V("html5_validate_yt_now")),k=Q();
  5740. T.T=function(){return Math.round(Q()-k)/1E3};
  5741. T.yq.UP()}return T.T};
  5742. Ylt=function(T){var Q=T.yq.Z_()||{};Q.fs=T.yq.m_();Q.volume=T.yq.getVolume();Q.muted=T.yq.isMuted()?1:0;Q.mos=Q.muted;Q.clipid=T.yq.Gc();var k;Q.playerheight=((k=T.yq.getPlayerSize())==null?void 0:k.height)||0;var l;Q.playerwidth=((l=T.yq.getPlayerSize())==null?void 0:l.width)||0;T=T.videoData;k={};T.S&&(k.fmt=T.S.itag,T.Y&&(T.OG?T.Y.itag!==T.S.itag:T.Y.itag!=T.S.itag)&&(k.afmt=T.Y.itag));k.ei=T.eventId;k.list=T.playlistId;k.cpn=T.clientPlaybackNonce;T.videoId&&(k.v=T.videoId);T.kh&&(k.infringe=1);
  5743. (T.vk?0:T.ek)&&(k.splay=1);(l=JL(T))&&(k.live=l);T.nU&&(k.sautoplay=1);T.dO&&(k.autoplay=1);T.rZ&&(k.sdetail=T.rZ);T.partnerId&&(k.partnerid=T.partnerId);T.osid&&(k.osid=T.osid);T.v9&&(k.cc=g.zrg(T.v9));return Object.assign(Q,k)};
  5744. UfT=function(T){var Q=D15();if(Q)return h5C[Q]||h5C.other;if(g.G4(T.Hd)){T=navigator.userAgent;if(/[Ww]ireless[)]/.test(T))return 3;if(/[Ww]ired[)]/.test(T))return 30}return 0};
  5745. NR=function(T){var Q=new m4T,k;Q.Y=((k=Ylt(T).cc)==null?void 0:k.toString())||"-";Q.playbackRate=T.yq.getPlaybackRate();k=T.yq.getVisibilityState();k!==0&&(Q.visibilityState=k);T.Hd.f_&&(Q.S=1);Q.L=T.videoData.u$;Q.compositeLiveStatusToken=T.videoData.compositeLiveStatusToken;k=T.yq.getAudioTrack();k.MY&&k.MY.id&&k.MY.id!=="und"&&(Q.audioId=k.MY.id);Q.connectionType=UfT(T);Q.volume=T.yq.getVolume();Q.muted=T.yq.isMuted();Q.clipId=T.yq.Gc()||"-";Q.T=T.videoData.mL||"-";return Q};
  5746. g.K6=function(T,Q){g.x.call(this);var k=this;this.provider=T;this.L=new Map;this.yU=new g.Cd;this.dn={FHK:function(){return k.qoe},
  5747. rnK:function(){return k.T},
  5748. fSV:function(){return k.S}};
  5749. this.provider.videoData.Hk()&&!this.provider.videoData.U1&&(this.T=new rT(this.provider),this.T.S=0,g.P(this,this.T),this.qoe=new g.vV(this.provider,Q),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Bl=this.provider.videoData.clientPlaybackNonce)&&this.L.set(this.Bl,this.T));if(T.Hd.playerCanaryState==="canary"||T.Hd.playerCanaryState==="holdback")this.S=new dT(this.provider),g.P(this,this.S)};
  5750. s45=function(T){T.S&&t2g(T.S);T.qoe&&CtC(T.qoe)};
  5751. Slu=function(T){if(T.qoe){T=T.qoe;for(var Q=T.provider.videoData,k=T.provider.Hd,l=g.B(k.Dz),v=l.next();!v.done;v=l.next())MR(T,v.value);if(T.provider.V("html5_enable_qoe_cat_list"))for(l=g.B(Q.VF),v=l.next();!v.done;v=l.next())MR(T,v.value);else Q.Dz&&MR(T,T.provider.videoData.Dz);Q.Cc()&&(l=Q.T,Kt(Q)&&MR(T,"manifestless"),l&&FG(l)&&MR(T,"live-segment-"+FG(l).toFixed(1)));cv(Q)?MR(T,"sabr"):T.Sy(Hv(Q));if(UU(Q)||Q.lf())Q.lf()&&MR(T,"ssa"),MR(T,"lifa");r4(Q)&&MR(T,"cdm");Q.gatewayExperimentGroup&&
  5752. (l=Q.gatewayExperimentGroup,l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?l="spkadtrt":l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(l="spkadctrl"),MR(T,l));k.z9!=="yt"&&T.T.set("len",[Q.lengthSeconds.toFixed(2)]);Q.cotn&&!Z_(Q)&&T.Vf(!0);k.J3()&&(Q=gDy())&&T.T9("cblt",{m:Q});if(k.V("html5_log_screen_diagonal")){k=T.T9;var L;Q=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;k.call(T,"cbltdiag",{v:Q})}}};
  5753. C_H=function(T,Q){T.T&&(T=T.T,Q===58?T.T.update():T.L&&(af(T),ug(T).send(),T.Y=NaN))};
  5754. BWC=function(T,Q){if(g.RY(Q,1024)||g.RY(Q,512)||g.RY(Q,4)){if(T.S){var k=T.S;k.S>=0||(k.T=-1,k.delay.stop())}T.qoe&&(k=T.qoe,k.C||(k.L=-1))}if(T.provider.videoData.enableServerStitchedDai&&T.Bl){var l;(l=T.L.get(T.Bl))==null||fxg(l,Q)}else T.T&&fxg(T.T,Q);if(T.qoe){l=T.qoe;k=Q.state;var v=g.qR(l.provider),L=l.getPlayerState(k),q=k.seekSource||void 0;if(L!==l.yU){l.hj||v<l.S||(l.yU==="PL"?l.playTimeSecs+=v-l.S:l.yU==="B"&&l.isBuffering&&(l.isBuffering=!1,l.rebufferTimeSecs+=v-l.z9,!l.QR&&l.rebufferTimeSecs>=
  5755. 10&&l.playTimeSecs<=180&&(l.T.set("qoealert",["1"]),l.QR=!0)),L!=="B"||l.yU!=="PL"&&l.yU!=="PB"||(l.isBuffering=!0),l.S=v);l.yU==="PL"&&(L==="B"||L==="S")||l.provider.Hd.J3()?gT(l,v):(l.h3||L!=="PL"||(l.h3=!0,Rqb(l,v,l.provider.yq.rH())),YUC(l,v));L==="PL"&&g.Ez(l.Hn);var Y=[L];L==="S"&&q&&Y.push("ss."+q);g.of(l,v,"vps",Y);l.yU=L;l.z9=v;l.S=v;l.Y=!0}L=k.ge;g.J(k,128)&&L&&(L.sT=L.sT||"",mfX(l,v,L.errorCode,L.sN,L.sT));(g.J(k,2)||g.J(k,128))&&l.reportStats(v);k.isPlaying()&&!l.C&&(l.L>=0&&l.T.set("user_intent",
  5756. [l.L.toString()]),l.C=!0);f_y(l)}T.S&&(T=T.S,O6y(T),T.playerState=Q.state,T.S>=0&&g.RY(Q,16)&&T.seekCount++,Q.state.isError()&&T.send())};
  5757. z5b=function(T){T.S&&T.S.send();if(T.qoe){var Q=T.qoe;if(Q.Y){Q.yU==="PL"&&(Q.yU="N");var k=g.qR(Q.provider);g.of(Q,k,"vps",[Q.yU]);Q.C||(Q.L>=0&&Q.T.set("user_intent",[Q.L.toString()]),Q.C=!0);Q.provider.Hd.J3()&&Q.T9("finalized",{});Q.i9=!0;Q.reportStats(k)}}if(T.provider.videoData.enableServerStitchedDai)for(Q=g.B(T.L.values()),k=Q.next();!k.done;k=Q.next())Zvg(k.value);else T.T&&Zvg(T.T);T.dispose()};
  5758. Xpg=function(T,Q){T.T&&GkJ(T.T,Q)};
  5759. wpH=function(T){if(!T.T)return null;var Q=cV(T.T,"atr");return function(k){T.T&&GkJ(T.T,k,Q)}};
  5760. d4g=function(T,Q,k,l){k.adFormat=k.pG;var v=Q.yq;Q=new rT(new n6(k,Q.Hd,{getDuration:function(){return k.lengthSeconds},
  5761. getCurrentTime:function(){return v.getCurrentTime()},
  5762. Jb:function(){return v.Jb()},
  5763. Km:function(){return v.Km()},
  5764. rH:function(){return v.rH()},
  5765. getPlayerSize:function(){return v.getPlayerSize()},
  5766. getAudioTrack:function(){return k.getAudioTrack()},
  5767. getPlaybackRate:function(){return v.getPlaybackRate()},
  5768. Ir:function(){return v.Ir()},
  5769. getVisibilityState:function(){return v.getVisibilityState()},
  5770. eZ:function(){return v.eZ()},
  5771. Z_:function(){return v.Z_()},
  5772. getVolume:function(){return v.getVolume()},
  5773. isMuted:function(){return v.isMuted()},
  5774. m_:function(){return v.m_()},
  5775. Gc:function(){return v.Gc()},
  5776. getProximaLatencyPreference:function(){return v.getProximaLatencyPreference()},
  5777. UP:function(){v.UP()},
  5778. T9:function(L,q){v.T9(L,q)},
  5779. ri:function(){return v.ri()},
  5780. Px:function(){return v.Px()}}));
  5781. Q.S=l;g.P(T,Q);return Q};
  5782. NWg=function(){this.Qh=0;this.L=this.oS=this.Pz=this.S=NaN;this.T={};this.bandwidthEstimate=NaN};
  5783. AOu=function(){this.T=g.J0;this.array=[]};
  5784. rOg=function(T,Q,k){var l=[];for(Q=bvC(T,Q);Q<T.array.length;++Q){var v=T.array[Q];(v.end<=k||v.contains(k))&&l.push(v);if(v.start>k)break}return l};
  5785. cOt=function(T,Q){var k=[];T=g.B(T.array);for(var l=T.next();!l.done&&!(l=l.value,l.contains(Q)&&k.push(l),l.start>Q);l=T.next());return k};
  5786. D45=function(T){return T.array.slice(bvC(T,0x7ffffffffffff),T.array.length)};
  5787. bvC=function(T,Q){T=pW(T.array,function(k){return Q-k.start||1});
  5788. return T<0?-(T+1):T};
  5789. axC=function(T,Q){var k=NaN;T=g.B(T.array);for(var l=T.next();!l.done;l=T.next())if(l=l.value,l.contains(Q)&&(isNaN(k)||l.end<k)&&(k=l.end),l.start>Q&&(isNaN(k)||l.start<k)){k=l.start;break}return k};
  5790. u9f=function(T,Q){T.array=T.array.filter(function(k){return!Q.has(k)})};
  5791. g.xO=function(T,Q){g.x.call(this);this.yq=T;this.C=Q;this.L=NaN;this.N=this.B=this.started=!1;this.S=[];this.j=new g.FA(this.sync,250,this);g.P(this,this.j);this.Y=new g.FA(this.sync,0,this);g.P(this,this.Y);this.T=new AOu};
  5792. nk6=function(T){T.started=!0;T.sync()};
  5793. K8t=function(T,Q){T.started&&(T.sync(),g.J(Q.oldState,16)&&(Q=axC(T.T,Math.max(T.L-2E3,0)),!isNaN(Q)&&Q<0x7ffffffffffff&&T.Y.start()))};
  5794. x4C=function(T,Q){var k=[];if(!Q.length)return k;for(var l=0;l<Q.length;l++){var v=Q[l];v.active&&T.S.indexOf(v)===-1&&(T.S.push(v),k.push([1,v]))}return k};
  5795. P_5=function(T,Q){var k=[];if(!Q.length)return k;Q.sort(g.J0);Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())l=l.value,T.S.splice(T.S.indexOf(l),1),k.push([2,l]);return k};
  5796. OvC=function(T){if(T.started&&!T.wd()){T.Y.stop();var Q=T.yq.getPlayerState();g.J(Q,32)&&T.j.start();for(var k=HvH(T),l=T.isEnded(Q,k),v=[],L=[],q=g.B(T.S),Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.active&&(l?Y.end<0x8000000000000:!Y.contains(k))&&L.push(Y);v=v.concat(P_5(T,L));q=L=null;l?(Q=cOt(T.T,0x7ffffffffffff),L=Q.filter(function(U){return U.end<0x8000000000000}),q=D45(T.T)):Q=T.L<=k&&be(Q)?rOg(T.T,T.L,k):cOt(T.T,k);
  5797. v=v.concat(x4C(T,Q));L&&(v=v.concat(P_5(T,L)));q&&(v=v.concat(x4C(T,q)));T.L=k;t8g(T,v)}};
  5798. t8g=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=k[1];k[0]===1?T.C(g.ej(l.namespace),l):T.C(g.Ft(l.namespace),l)}};
  5799. HvH=function(T){return g.J(T.yq.getPlayerState(),2)?0x8000000000000:T.yq.getCurrentTime()*1E3};
  5800. ppX=function(T){this.Hd=T;this.L=this.S=this.mediaTime=NaN;this.Y=this.T=!1;this.N=.001;g.G4(T)&&(this.N=.01)};
  5801. PV=function(T,Q){return Q>T.mediaTime+T.N&&Q<T.mediaTime+5};
  5802. Vx5=function(T,Q,k,l,v){if(l=l>1)T.Y=!0;if((v===void 0?0:v)||isNaN(T.S))T.S=Q;if(T.T)Q!==T.mediaTime&&(T.T=!1);else if(Q>0&&T.mediaTime===Q){v=1500;if(T.Hd.V("html5_buffer_underrun_transition_fix")){v=g.jj(T.Hd.experiments,"html5_min_playback_advance_for_steady_state_secs");var L=g.jj(T.Hd.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");v=v>0&&L>0&&Math.abs(Q-T.S)<v?L:1500}return k-T.L>(l||!T.Y?v:400)}T.mediaTime=Q;T.L=k;return!1};
  5803. W86=function(T,Q){this.videoData=T;this.T=Q};
  5804. $4J=function(T,Q,k){return Q.pK(k).then(function(){return rV(new W86(Q,Q.L))},function(l){l instanceof Error&&g.rB(l);
  5805. var v=IE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=s_('audio/mp4; codecs="mp4a.40.2"'),q=v||L,Y=Q.isLivePlayback&&!g.z6(T.N,!0);l="fmt.noneavailable";Y?l="html5.unsupportedlive":q||(l="html5.missingapi");q=Y||!q?2:1;v={buildRej:"1",a:Q.Wm(),d:!!Q.DP,drm:Q.bl(),f18:Q.Wk.indexOf("itag=18")>=0,c18:v};Q.T&&(Q.bl()?(v.f142=!!Q.T.T["142"],v.f149=!!Q.T.T["149"],v.f279=!!Q.T.T["279"]):(v.f133=!!Q.T.T["133"],v.f140=!!Q.T.T["140"],v.f242=!!Q.T.T["242"]),v.cAAC=L,v.cAVC=s_('video/mp4; codecs="avc1.42001E"'),
  5806. v.cVP9=s_('video/webm; codecs="vp9"'));Q.N&&(v.drmsys=Q.N.keySystem,L=0,Q.N.T&&(L=Object.keys(Q.N.T).length),v.drmst=L);return new g.ZK(l,v,q)})};
  5807. HV=function(T){this.data=window.Float32Array?new Float32Array(T):Array(T);this.S=this.T=T-1};
  5808. JOt=function(T){return T.data[T.T]||0};
  5809. e5I=function(T){this.N=T;this.L=this.S=0;this.Y=new HV(50)};
  5810. OF=function(T,Q,k){g.ox.call(this);this.videoData=T;this.experiments=Q;this.N=k;this.S=[];this.hS=0;this.L=!0;this.Y=!1;this.B=0;k=new F8f;T.latencyClass==="ULTRALOW"&&(k.B=!1);T.zg?k.L=3:g.iO(T)&&(k.L=2);T.latencyClass==="NORMAL"&&(k.N=!0);k.z9=cv(T)&&Q.Wd("html5_refactor_decouple_liveness");g.jj(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.jj(Q,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||T.latencyClass!=="LOW"&&T.latencyClass!=="ULTRALOW"||(k.N=!0);var l=
  5811. g.jj(Q,"html5_liveness_drift_proxima_override");if(Hv(T)!==0&&l){k.T=l;var v;((v=T.T)==null?0:flC(v))&&k.T--}cv(T)&&Q.Wd("html5_sabr_parse_live_metadata_playback_boundaries")&&(k.qO=!0);if(g.tH("trident/")||g.tH("edge/"))v=g.jj(Q,"html5_platform_minimum_readahead_seconds")||3,k.Y=Math.max(k.Y,v);g.jj(Q,"html5_minimum_readahead_seconds")&&(k.Y=g.jj(Q,"html5_minimum_readahead_seconds"));g.jj(Q,"html5_maximum_readahead_seconds")&&(k.D=g.jj(Q,"html5_maximum_readahead_seconds"));Q.Wd("html5_force_adaptive_readahead")&&
  5812. (k.B=!0);if(v=g.jj(Q,"html5_liveness_drift_chunk_override"))k.T=v;xa(T)&&(k.T=(k.T+1)/5,T.latencyClass==="LOW"&&(k.T*=2));!cv(T)||T.latencyClass!=="ULTRALOW"&&T.latencyClass!=="LOW"||(k.j=g.jj(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,k.C=g.jj(Q,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=k;this.C=this.policy.L!==1;this.T=t2(this,Ek5(this,isNaN(T.liveChunkReadahead)?3:T.liveChunkReadahead,T))};
  5813. yOT=function(T,Q){if(Q)return Q=T.videoData,Q=Ek5(T,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q),t2(T,Q);if(T.S.length){if(Math.min.apply(null,T.S)>1)return t2(T,T.T-1);if(T.policy.B)return t2(T,T.T+1)}return T.T};
  5814. ivH=function(T,Q){if(!T.S.length)return!1;var k=T.T;T.T=yOT(T,Q===void 0?!1:Q);if(Q=k!==T.T)T.S=[],T.hS=0;return Q};
  5815. p6=function(T,Q){return Q>=T.u8()-V8X(T)};
  5816. TNI=function(T,Q,k){Q=p6(T,Q);k||Q?Q&&(T.L=!0):T.L=!1;T.C=T.policy.L===2||T.policy.L===3&&T.L};
  5817. Qht=function(T,Q){Q=p6(T,Q);T.Y!==Q&&T.publish("livestatusshift",Q);T.Y=Q};
  5818. V8X=function(T){var Q=T.policy.T;T.Y||(Q=Math.max(Q-1,0));return Q*WV(T)};
  5819. Ek5=function(T,Q,k){k.zg&&Q--;xa(k)&&(Q=1);if(Hv(k)!==0&&(T=g.jj(T.experiments,"html5_live_chunk_readahead_proxima_override"))){Q=T;var l;((l=k.T)==null?0:flC(l))&&Q++}return Q};
  5820. WV=function(T){return T.videoData.T?FG(T.videoData.T)||5:5};
  5821. t2=function(T,Q){Q=Math.max(Math.max(1,Math.ceil(T.policy.Y/WV(T))),Q);return Math.min(Math.min(8,Math.floor(T.policy.D/WV(T))),Q)};
  5822. F8f=function(){this.Y=0;this.D=Infinity;this.B=!0;this.S=this.T=2;this.L=1;this.N=!1;this.C=10;this.qO=!1;this.j=1;this.z9=!1};
  5823. e2=function(T){g.x.call(this);this.yq=T;this.T=0;this.S=null;this.B=this.Y=0;this.L={};this.Hd=this.yq.G();this.N=new g.FA(this.Jh,1E3,this);this.u9=$O(this,"html5_seek_timeout_delay_ms");this.hj=$O(this,"html5_long_rebuffer_threshold_ms");this.K_=$O(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.e6=$O(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.sK=$O(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.d5=$O(this,"html5_unreported_seek_reseek_delay_ms",
  5824. "html5_unreported_seek_reseek_cfl");this.z9=$O(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.qO=new J2(2E4);this.Bd=$O(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.p_=$O(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Jj=$O(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.i9=$O(this,"html5_reseek_after_time_jump_delay_ms",
  5825. "html5_reseek_after_time_jump_cfl");this.j=$O(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.D=$O(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.f_=$O(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.zg=$O(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.C=$O(this,"html5_ads_preroll_lock_timeout_delay_ms",
  5826. "html5_ads_preroll_lock_timeout_cfl");this.Tg=new J2(g.jj(this.Hd.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Hd.V("html5_report_slow_ads_as_error"));this.QR=new J2(g.jj(this.Hd.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Hd.V("html5_skip_slow_buffering_ad"));this.h3=$O(this,"html5_slow_start_timeout_delay_ms");this.xm=$O(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.P(this,this.N)};
  5827. $O=function(T,Q,k){k=k===void 0?null:k;var l=l===void 0?0:l;return new J2(g.jj(T.Hd.experiments,Q)||l,k?T.Hd.V(k):!1)};
  5828. jhu=function(T,Q){T.T=Q};
  5829. FO=function(T,Q,k,l,v,L,q,Y){Q?Q.test(k)?(T.RK(v,Q,q),Q.B||L()):(!Q.S||Q.Y?k=!1:(k=(0,g.XY)(),l?Q.T||(Q.T=k):Q.T=0,L=!l&&k-Q.S>3E4,k=Q.T&&k-Q.T>1E3||L?Q.Y=!0:!1),k&&(Y=Object.assign({},T.Tx(Q),Y),Y.wn=q,Y.we=v,Y.wsuc=l,T.yq.T9("workaroundReport",Y),l&&(Q.reset(),T.L[v]=!1))):T.yq.NL("auth",2,"BROWSER_OR_EXTENSION_ERROR",RE({source:"watchdog",name:q}))};
  5830. J2=function(T,Q){this.B=Q===void 0?!1:Q;this.T=this.S=this.L=this.startTimestamp=0;this.Y=!1;this.N=Math.ceil(T/1E3)};
  5831. vYC=function(T){g.x.call(this);var Q=this;this.yq=T;this.j=this.T=this.loader=this.mediaElement=this.playbackData=null;this.L=0;this.N=this.hj=this.Y=null;this.i9=!1;this.h3=0;this.qO=!1;this.timestampOffset=0;this.D=!0;this.p_=0;this.K_=this.Gg=!1;this.C=0;this.zg=!1;this.xm=0;this.Hd=this.yq.G();this.videoData=this.yq.getVideoData();this.policy=new kxg;this.z9=new e2(this.yq);this.Tg=this.Jj=this.sK=this.B=this.S=NaN;this.Bd=new g.FA(function(){lGt(Q,!1)},2E3);
  5832. this.d5=new g.FA(function(){EF(Q)});
  5833. this.u9=new g.FA(function(){oYu(Q,{})});
  5834. this.QR=NaN;this.e6=new g.FA(function(){var k=Q.Hd.nG;k.T+=1E4/36E5;k.T-k.L>1/6&&(Dlf(k),k.L=k.T);Q.e6.start()},1E4);
  5835. g.P(this,this.z9);g.P(this,this.Bd);g.P(this,this.u9);g.P(this,this.d5);g.P(this,this.e6)};
  5836. gYT=function(T,Q){T.playbackData=Q;T.videoData.isLivePlayback&&(T.j=new e5I(function(){a:{if(T.playbackData&&T.playbackData.T.T){if(Kt(T.videoData)&&T.loader){var l=T.loader.Ad.hx()||0;break a}if(T.videoData.T){l=T.videoData.T.i9;break a}}l=0}return l}),T.T=new OF(T.videoData,T.Hd.experiments,function(){return T.EM(!0)}));
  5837. if(yE(T.yq)){var k;(k=T.videoData.Ct)!=null&&k.gM||(Q=Lc5(T),Q.IV?(cv(T.videoData)&&T.R3(Q.IV,Q.startSeconds),T.L=Q.startSeconds):Q.startSeconds>0&&T.seekTo(Q.startSeconds,{I_:"seektimeline_startPlayback",seekSource:15}));T.D=!1}else qsf(T)||(T.L=T.L||T.videoData.startSeconds||0,T.videoData.isLivePlayback||(Q=T.yq.videoData.EM(),T.L>Q&&(T.V("html5_sabr_log_invalid_sabr_current_time")&&T.yq.T9("invalidSabrCmtStart",{rt:T.L,mst:Q}),T.V("html5_sabr_vod_invalid_start_time_fallback")&&(T.L=0))))};
  5838. Ysu=function(T,Q){(T.loader=Q)?MpI(T,!0):ig(T)};
  5839. UDb=function(T,Q){g.Ez(T.z9.N);T.V("html5_exponential_memory_for_sticky")&&(Q.state.isPlaying()?g.Ez(T.e6):T.e6.stop());if(T.mediaElement)if(Q.oldState.state===8&&be(Q.state)&&Q.state.isBuffering()){Q=T.mediaElement.getCurrentTime();var k=T.mediaElement.Q8();var l=T.V("manifestless_post_live_ufph")||T.V("manifestless_post_live")?E_(k,Math.max(Q-3.5,0)):E_(k,Q-3.5);l>=0&&Q>k.end(l)-1.1&&l+1<k.length&&k.start(l+1)-k.end(l)<11&&(l=k.start(l+1)+.2+T.Px(),Math.abs(T.QR-l)<.2||(T.yq.T9("seekover",{b:FL(k,
  5840. "_"),cmt:Q}),T.QR=l,T.seekTo(l,{M5:!0,I_:"seektimeline_postLiveDisc"})))}else((k=Q.state)==null?0:k.state===8)&&!T.K_&&(T.videoData.limitedPlaybackDurationInSeconds>0?(VE(T.yq,T.getCurrentTime()+T.videoData.limitedPlaybackDurationInSeconds),T.K_=!0):T.videoData.isLivePlayback&&T.videoData.endSeconds>0&&(VE(T.yq,T.getCurrentTime()+T.videoData.endSeconds),T.K_=!0))};
  5841. Zk5=function(T,Q){var k=T.getCurrentTime(),l=T.isAtLiveHead(k);if(T.j&&l){var v=T.j;if(v.T&&!(k>=v.S&&k<v.L)){var L=v.T.ll(k);L!==-1&&(v.S=v.T.getStartTime(L),v.L=v.S+v.T.getDuration(L),L=(0,g.XY)()/1E3-v.T.xM(L),L-=v.N(),v.Y.add(L))}}T.T&&(l&&(v=T.T,L=RSI(T),v.hS++,v.hS<3||Date.now()-v.B<3E3||(v.B=Date.now(),v.S.push(L),v.S.length>50&&v.S.shift())),v=T.T,TNI(v,k,Q===void 0?!0:Q),Qht(v,k),Q&&lGt(T,!0));l!==T.Gg&&(Q=T.getCurrentTime()-T.Tg<=500,k=T.h3>=1E3,Q||k||(Q=T.yq.Kc,Q.qoe&&(Q=Q.qoe,k=g.qR(Q.provider),
  5842. g.of(Q,k,"lh",[l?"1":"0"])),T.Gg=l,T.h3++,T.Tg=T.getCurrentTime()))};
  5843. lGt=function(T,Q){if(T.T){var k=T.T;var l=T.getCurrentTime(),v=k.u8();var L=k.policy.S;k.Y||(L=Math.max(L-1,0));L*=WV(k);l>=v-L||!k.iX()?k=l<k.videoData.SY()?Math.min(k.videoData.SY()+10,k.u8()):NaN:(k.policy.N&&(k.policy.z9?(k.policy.S=Math.min(k.policy.S+k.policy.j,k.policy.C),k.policy.T=Math.min(k.policy.T+1,10)):(k.policy.S=Math.max(k.policy.S+1,k.policy.C),k.policy.T=Math.max(k.policy.T+1,10))),k=Infinity);if(!isNaN(k)){if(T.loader&&Q&&(Q=T.Bd.isActive(),l=T.T.u8(),(l=YQC(T.loader,l-T.Px()))&&
  5844. !Q)){T.Bd.start();T.yq.T9("inBufferPtl",{cmt:T.getCurrentTime(),seekTo:l+T.Px()});T.V("html5_report_peg_to_live_seek_source")?T.seekTo(l+T.Px(),{I_:"seektimeline_inBufferSeek",seekSource:34}):T.seekTo(l+T.Px(),{I_:"seektimeline_inBufferSeek"});return}T.V("html5_report_peg_to_live_seek_source")?T.seekTo(k,{I_:"seektimeline_pegToLive",seekSource:34}):T.seekTo(k,{I_:"seektimeline_pegToLive"})}}};
  5845. MpI=function(T,Q){if(T.T&&T.loader){var k=!1;Q?k=!0:T.videoData.isLowLatencyLiveStream||T.videoData.latencyClass==="LOW"||T.videoData.latencyClass==="ULTRALOW"?k=ivH(T.T):T.zg&&(T.zg=!1,k=ivH(T.T,!0));k&&(Q=T.yq.Kc,k=T.T,k=WV(k)*k.T,Q.qoe&&(Q=Q.qoe,g.of(Q,g.qR(Q.provider),"lra",[k]),Q.T9("live-readahead-seconds",{v:k})));Q=T.loader;k=T.T.T;T=T.T;T=(T.T-1+T.policy.T)*WV(T);var l=NaN,v=Q.Z8;v===2||v===-1?xa(Q.yq.getVideoData())&&(l=Q.policy.ES):--k;k=Math.max(k,0);v=Q.N;v.Jx=k;v.D=l;Q.C&&(Q.C.z9=T)}};
  5846. fGX=function(T,Q){T.L=Q};
  5847. oYu=function(T,Q){T.i9=!0;T.V("html5_use_centralized_player_time")&&(T.S=T.B,T.L=T.S,T.B=NaN);Gx5(T,Q)};
  5848. Gx5=function(T,Q){mDg(T,Q).then(void 0,function(){ig(T)});
  5849. IGt(T,Q).then(function(k){hSH(T,k)},function(){ig(T)});
  5850. T.yq.yf(Q);if(T.Hd.J3()||shT(T))Q=T.Tx(),Q["native"]=""+ +T.qO,Q.tgt=""+T.S,Q.otgt=""+(T.S+T.timestampOffset),Q.maxst=""+T.EM(),T.T&&T.V("html5_high_res_seek_logging")&&(Q.tht=""+T.T.N(),Q.ht=""+T.T.u8(),Q.adft=""+V8X(T.T)),T.V("html5_sabr_parse_live_metadata_playback_boundaries")&&T.videoData.T&&cv(T.videoData)&&(Q.minst=""+T.videoData.T.Jp,Q.cminst=""+(T.videoData.T.SY()+T.timestampOffset),Q.maxst=""+T.videoData.T.mK,Q.hts=""+T.videoData.T.qO,Q.cmaxst=""+(T.videoData.T.EM()+T.timestampOffset)),
  5851. T.yq.T9("startSeek",Q)};
  5852. mDg=function(T,Q){T.hj||(T.loader?isFinite(T.S)?T.hj=T.loader.seek(T.S-T.timestampOffset,Q):(nt(T.videoData),T.hj=ZI(T.loader),Gh(T.videoData)||(T.S=T.loader.getCurrentTime()+T.timestampOffset)):T.hj=g.DT(T.S-T.timestampOffset));return T.hj};
  5853. IGt=function(T,Q){var k=T.Y;k||(T.Y=new GN,k=T.Y,EF(T,Q));return k};
  5854. Tk=function(T,Q,k){if(isNaN(Q))return NaN;var l=T.SY();k=T.EM(k);return T.V("html5_clamp_invalid_seek_to_min_seekable_time")&&!T.videoData.isLivePlayback&&Q>k+1&&Q<Infinity?(T.Hd.J3()&&T.yq.T9("clampInvalidSeek",{tgt:""+Q,maxst:""+k}),l):g.ti(Q,l,k)};
  5855. EF=function(T,Q){if(T.Y)if(T.videoData.isLivePlayback&&T.videoData.L&&!T.videoData.L.T&&T.mediaElement&&T.mediaElement.Nm()>0&&IL(T.mediaElement)>0&&(T.S=Tk(T,T.S,!1)),Q=T.V("html5_pseudogapless_shorts_seek_to_next_start")&&(Q==null?void 0:Q.seekSource)===60,!T.mediaElement||!SsT(T,Q))T.d5.start(750);else if(!isNaN(T.S)&&isFinite(T.S)&&(Q=T.Jj-(T.S-T.timestampOffset),!(Q===0||Math.abs(Q)<.005)))if(Q=T.mediaElement.getCurrentTime()-T.S,Math.abs(Q)<=T.p_||Math.abs(Q)<.005)Cjb(T);else{if(T.videoData.zB)T.videoData.zB=
  5856. !1;else if(!nt(T.videoData)&&T.S>=T.EM()-.1){T.S=T.EM();T.Y.resolve(T.EM());T.Hd.J3()&&T.yq.T9("setEndedInSeek",{tgt:""+T.S,maxst:""+T.EM()});T.yq.fn();return}try{var k=T.S-T.timestampOffset;T.mediaElement.seekTo(k);T.z9.T=k;T.Jj=k;T.L=T.S;T.qO=!1}catch(l){}}};
  5857. SsT=function(T,Q){Q=Q===void 0?!1:Q;if(!T.mediaElement||T.mediaElement.Nm()===0||T.mediaElement.hasError())return!1;var k=T.mediaElement.getCurrentTime()>0;return T.videoData.L&&T.videoData.L.T||T.videoData.isLivePlayback||!T.videoData.bl()?T.S>=0&&!Q&&(Q=T.mediaElement.MD(),Q.length||!k)?y4(Q,T.S-T.timestampOffset):k:k};
  5858. Cjb=function(T){T.Y&&(T.Y.resolve(T.mediaElement.getCurrentTime()),T.z9.S=null)};
  5859. hSH=function(T,Q){T.N&&(T.N.resolve(Q),T.yq.BL(),T.Hd.J3()||shT(T))&&(Q=T.Tx(),Q["native"]=""+ +T.qO,Q.otgt=""+(T.S+T.timestampOffset),T.yq.T9("seekEnd",Q));ig(T)};
  5860. ig=function(T){T.S=NaN;T.B=NaN;T.Jj=NaN;T.Y=null;T.hj=null;T.N=null;T.i9=!1;T.qO=!1;T.p_=0;T.Bd.stop();T.u9.stop()};
  5861. zSb=function(T,Q){var k=T.mediaElement,l=Q.type;switch(l){case "seeking":var v=k.getCurrentTime()+T.timestampOffset;if(!T.Y||T.qO&&v!==T.S){T.Y=new GN;T.Y.then(function(q){hSH(T,q)},function(){ig(T)});
  5862. if(T.videoData.isAd()){var L;LpC({adCpn:T.videoData.clientPlaybackNonce,contentCpn:(L=T.videoData.i4)!=null?L:""},Q.T)}T.Jj=v;jhu(T.z9,k.getCurrentTime());T.seekTo(v,{seekSource:104,I_:"seektimeline_mediaElementEvent"});T.qO=!0}break;case "seeked":Cjb(T);break;case "loadedmetadata":yE(T.yq)||BN5(T);EF(T);break;case "progress":EF(T);break;case "pause":T.C=T.getCurrentTime()}T.C&&((l==="play"||l==="playing"||l==="timeupdate"||l==="progress")&&T.getCurrentTime()-T.C>10&&(T.V("html5_sky_skip_pause_jump")?
  5863. T.yq.T9("skipPauseJump",{evt:l,cmt:T.getCurrentTime(),lpt:T.C}):T.seekTo(T.C,{I_:"pauseJump"})),l!=="pause"&&l!=="play"&&l!=="playing"&&l!=="progress"&&(T.C=0))};
  5864. XaX=function(T){return(Vv(T.videoData)||!!T.videoData.liveUtcStartSeconds)&&(!!T.videoData.liveUtcStartSeconds||qsf(T))&&!!T.videoData.T};
  5865. qsf=function(T){return!!T.videoData.startSeconds&&isFinite(T.videoData.startSeconds)&&T.videoData.startSeconds>1E9};
  5866. Lc5=function(T){var Q=0,k=NaN,l="";if(!T.D)return{startSeconds:Q,IV:k,source:l};T.videoData.hj?Q=T.videoData.xm:nt(T.videoData)&&(Q=Infinity);if(g.iO(T.videoData))return{startSeconds:Q,IV:k,source:l};T.videoData.startSeconds?(l="ss",Q=T.videoData.startSeconds):T.videoData.gt&&(l="stss",Q=T.videoData.gt);T.videoData.liveUtcStartSeconds&&(k=T.videoData.liveUtcStartSeconds);if(isFinite(Q)&&(Q>T.EM()||Q<T.SY())){var v={};v.minSeekableTime=T.SY();v.maxSeekableTime=T.EM();v.cmt=T.getCurrentTime();v.ss=
  5867. Q;v.utc=k;v.src=l;T.yq.T9("startSecondsOutOfBounds",v);T.videoData.Cc()&&(Q=Tk(T,Q,!1))}return{startSeconds:Q,IV:k,source:l}};
  5868. BN5=function(T){if(T.D){var Q;if((Q=T.videoData.Ct)==null?0:Q.gM)T.D=!1;else if(g.iO(T.videoData))T.D=!1;else{Q="ss";var k=0,l;((l=T.videoData.T)==null?0:l.isManifestless)&&T.videoData.h3&&!qsf(T)&&(Q="mss",k=T.videoData.h3);(T.videoData.hj?T.V("html5_prioritize_windowed_st_start_seconds"):T.V("html5_prioritize_st_start_seconds"))&&!k&&T.videoData.gt&&(Q="stss",k=T.videoData.gt);!k&&XaX(T)&&(k=T.videoData.liveUtcStartSeconds||T.videoData.h3,Q="utc",k=T.EM()-T.xM(T.EM())+k);!k&&T.videoData.Cc()&&T.videoData.gt&&
  5869. (Q="stss",k=T.videoData.gt);l={};if(k){if(k>T.EM()||k<T.SY())l.minSeekableTime=T.SY(),l.maxSeekableTime=T.EM(),l.cmt=T.getCurrentTime(),l.it=T.xM(T.getCurrentTime()),l.ss=k,l.utc=XaX(T)?T.videoData.liveUtcStartSeconds||T.videoData.h3:0,T.yq.T9("startSecondsOutOfBounds",l),T.videoData.Cc()&&(k=Tk(T,k,!1));T.seekTo(k,{I_:"seektimeline_startSeconds"});l[Q]=k;T.yq.T9("startSeconds",l);T.D=!1}else T.videoData.h3&&(l[Q]=T.videoData.h3+T.Px(),T.yq.T9("startSeconds",l))}}};
  5870. waX=function(T,Q){T.yq.T9("sdai",{adj4t:Q.toFixed(3)});T.sK=Q;Q+=1;T.S=Q;T.L=Q;IGt(T).then(function(k){hSH(T,k)},function(){ig(T)})};
  5871. RSI=function(T){return T.mediaElement?hB(T.mediaElement):0};
  5872. shT=function(T){return T.videoData.aD()&&T.V("html5_enable_shorts_seek_details_logging")};
  5873. kxg=function(){};
  5874. QW=function(T){g.x.call(this);this.L=T;this.T=new Map;this.S=new g.FA(this.sample,250,this);g.P(this,this.S);this.start()};
  5875. j8=function(T,Q){if((T=T.T.get(Q))==null)T=void 0;else{T=T.buffer;for(Q=[];T.S!==T.T;)T.S=(T.S+1)%T.data.length,Q.push(T.data[T.S]);T=Q}return T||[]};
  5876. kk=function(T,Q){var k;return((k=T.T.get(Q))==null?void 0:JOt(k.buffer))||0};
  5877. dD5=function(T){this.S=T;this.T=NaN;this.buffer=new HV(100)};
  5878. l_=function(){this.finished=this.started=!1};
  5879. DDT=function(T){function Q(v){return k.z9!=="yt"&&(l.partnerId===38&&k.playerStyle==="books"||l.partnerId===30&&k.playerStyle==="docs"||l.partnerId===33&&k.playerStyle==="google-live")?NNt(T,l,v):A4y(T,l).then(function(){o4(T,l)},function(L){o4(T,l,!0);
  5880. throw L;})}
  5881. var k=T.G(),l=T.getVideoData();l.wd();l.loading=!0;return bk5(T)?r4b(T,l).then(function(){o4(T,l)},function(v){v=GX(v);
  5882. if(fu(v.severity))return o4(T,l,!0),Promise.reject(v);v.errorCode==="onesie.response.badproxystatus"&&""+v.details.st==="3"&&(c4f=!0);T.handleError(v);return Q("onesie")}):Q("gvi")};
  5883. bk5=function(T){var Q=T.G();if(Q.V("html5_disable_onesie")||!Q.V("html5_onesie")||!Q.V("html5_onesie_inline")&&T.getVisibilityState()===5||Q.z9!=="yt")return!1;var k=Q.Z8;if(!k||!k.T)return T.handleError(new g.ZK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(k.T.B<(0,g.XY)()&&(T.T9("okexp","1"),(k=T.aN())&&Q.V("html5_prefer_trusted_host_on_key_expiration"))){k.S=!0;var l;(Q=(l=k.T.get(0))==null?void 0:FQ(l.location))&&!wQ(Q)&&k.T.delete(0)}if(c4f)return T.T9("ost3","1"),!1;l={};return Object.keys(l).length>
  5884. 0?(l.onesie="0",T.handleError(new g.ZK("html5.missingapi",l)),!1):!0};
  5885. aGH=function(T){var Q=lf();oR(Q,T);return g.Jt(Q,uN5())};
  5886. r4b=function(T,Q){var k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ,g6;return g.a(function(QC){if(QC.S==1)return Q.fetchType="onesie",k=fQg(Q,T.getPlayerSize(),T.getVisibilityState()),l=new FJ(T,k),g.c(QC,l.fetch(),2);v=QC.T;L={player_response:v};Q.loading=!1;q=T.nA.m9;if(l.Ug){Y=g.B(l.Ug.entries());for(U=Y.next();!U.done;U=Y.next())R=U.value,Z=g.B(R),f=Z.next().value,G=Z.next().value,m=f,I=G,q.T.set(m,I,180),m===Q.videoId&&(z=I.eX(),Q.mJ=z);q.J1=l}w=g.B(l.MM.entries());for(r=w.next();!r.done;r=
  5887. w.next())A=r.value,D=g.B(A),K=D.next().value,O=D.next().value,E=K,e=O,q.S.set(E,e,180);g.sy(Q,L,!0);if(Q.loading||I8(Q))return QC.return(Promise.resolve());q.T.removeAll();q.S.removeAll();Q.mJ=[];vT={};f5="onesie.response";qJ=0;Q.errorCode?(f5="auth",vT.ec=Q.errorCode,vT.ed=Q.errorDetail,vT.es=Q.by||"",qJ=2):(vT.successButUnplayable="1",vT.disposed=""+ +Q.wd(),vT.afmts=""+ +/adaptiveFormats/.test(v),vT.cpn=Q.clientPlaybackNonce);g6=new g.ZK(f5,vT,qJ);return QC.return(Promise.reject(g6))})};
  5888. A4y=function(T,Q){var k,l,v,L,q,Y,U,R,Z,f,G;return g.a(function(m){switch(m.S){case 1:k=Q.isAd(),l=!k,v=k?1:3,L=0;case 2:if(!(L<v)){m.Ym(4);break}if(!(L>0)){m.Ym(5);break}return g.c(m,H4(5E3),6);case 6:q=new g.Wy("Retrying OnePlatform request",{attempt:L}),g.rB(q);case 5:return g.z5(m,7),g.c(m,uB5(T,Q),9);case 9:return m.return();case 7:Y=g.by(m);U=GX(Y);R=U.errorCode;Z=T.G();f=Z.V("html5_use_network_error_code_enums")?401:"401";l&&R==="manifest.net.badstatus"&&U.details.rc===f&&(l=!1,L===v-1&&(v+=
  5889. 1));if(L===v-1)return G=nYI(k,U.details),G.details.backend="op",G.details.originec=R,m.return(Promise.reject(G));if(R==="auth"||R==="manifest.net.retryexhausted")return m.return(Promise.reject(U));T.handleError(U);if(fu(U.severity)){m.Ym(4);break}case 3:L++;m.Ym(2);break;case 4:return m.return(Promise.reject(nYI(k,{backend:"op"})))}})};
  5890. uB5=function(T,Q){function k(f5){f5.readyState===2&&T.z_("ps_c")}
  5891. var l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT;return g.a(function(f5){switch(f5.S){case 1:Q.fetchType="gp";l=T.G();v=g.rj(l,g.YD(Q));if(!v.T){L=v.getValue();f5.Ym(2);break}return g.c(f5,v.T,3);case 3:L=f5.T;case 2:return q=L,Y=aGH(q),U=fQg(Q,T.getPlayerSize(),T.getVisibilityState()),R=g.Vr(Kcg),Z=g.YD(Q),f=(0,g.XY)(),G=!1,m="empty",I=0,T.z_("psns"),z={Hw:k},g.c(f5,g.uU(Y,U,R,void 0,z),4);case 4:w=f5.T;T.z_("psnr");if(Q.wd())return f5.return();w?"error"in w&&w.error?(G=!0,m="esf:"+w.error.message,
  5892. I=w.error.code):w.errorMetadata&&(G=!0,m="its",I=w.errorMetadata.status):G=!0;if(G)return r=0,A=((0,g.XY)()-f).toFixed(),D={},D=l.V("html5_use_network_error_code_enums")?{backend:"op",rc:I,rt:A,reason:m,has_kpt:Q.Z8?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.$i("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:l.pageId?"1":"0",has_token:Z?"1":"0",has_vvt:Q.i9?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.w8||"",token_eq:Z===g.YD(Q)?"1":"0"}:{backend:"op",
  5893. rc:""+I,rt:A,reason:m,has_kpt:Q.Z8?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.$i("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:l.pageId?"1":"0",has_token:Z?"1":"0",has_vvt:Q.i9?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.w8||"",token_eq:Z===g.YD(Q)?"1":"0"},K="manifest.net.connect",I===429?(K="auth",r=2):I>200&&(K="manifest.net.badstatus",I===400&&(r=2)),f5.return(Promise.reject(new g.ZK(K,D,r)));Q.loading=!1;g.sy(Q,{raw_player_response:w},!0);
  5894. O=w;g.Ln(Q.G())&&O&&O.trackingParams&&i8(O.trackingParams);if(Q.errorCode)return E={ec:Q.errorCode,ed:Q.errorDetail,es:Q.by||""},f5.return(Promise.reject(new g.ZK("auth",E,2)));if(!Q.loading&&!I8(Q))return e=Q.isAd()?"auth":"manifest.net.retryexhausted",vT=Q.isAd()?2:1,f5.return(Promise.reject(new g.ZK(e,{successButUnplayable:"1",hasMedia:g.FC(Q)?"1":"0"},vT)));g.BT(f5)}})};
  5895. NNt=function(T,Q,k){function l(I){I=GX(I);if(fu(I.severity))return Promise.reject(I);T.handleError(I);return!1}
  5896. function v(){return!0}
  5897. var L,q,Y,U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:var z=T.G();T.getPlayerSize();T.getVisibilityState();T.isFullscreen();if(Q.partnerId===38&&z.playerStyle==="books")z=Q.videoId.indexOf(":"),z=g.sD("//play.google.com/books/volumes/"+Q.videoId.slice(0,z)+"/content/media",{aid:Q.videoId.slice(z+1),sig:Q.yuj});else if(Q.partnerId===30&&z.playerStyle==="docs")z=g.sD("https://docs.google.com/get_video_info",{docid:Q.videoId,authuser:Q.OX,authkey:Q.Be,eurl:z.DP});else if(Q.partnerId===33&&
  5898. z.playerStyle==="google-live")z=g.sD("//google-liveplayer.appspot.com/get_video_info",{key:Q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+z.z9);L=z;Y=(q=Q.isAd())?1:3;U=0;case 2:if(!(U<Y)){I.Ym(4);break}R=L;if(!(U>0)){I.Ym(5);break}return g.c(I,H4(5E3),6);case 6:Z={playerretry:U,playerretrysrc:k},q||(Z.recover="embedded"),R=oU(L,Z);case 5:return g.c(I,xDT(Q,R).then(v,l),7);case 7:if(f=I.T)return I.return();U++;I.Ym(2);break;case 4:G=q?"auth":"manifest.net.retryexhausted";m=
  5899. q?2:1;if(!q&&Math.random()<1E-4)try{g.rB(new g.Wy("b/152131571",btoa(L)))}catch(w){}return I.return(Promise.reject(new g.ZK(G,{backend:"gvi"},m)))}})};
  5900. xDT=function(T,Q){function k(w){return l(w.xhr)}
  5901. function l(w){if(!T.wd()){w=w?w.status:-1;var r=0,A=((0,g.XY)()-Z).toFixed();A=v.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:w,rt:A}:{backend:"gvi",rc:""+w,rt:A};var D="manifest.net.connect";w===429?(D="auth",r=2):w>200&&(D="manifest.net.badstatus",w===400&&(r=2));return Promise.reject(new g.ZK(D,A,r))}}
  5902. var v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){if(w.S==1){T.fetchType="gvi";v=T.G();var r={};T.oe&&(r.ytrext=T.oe);(Y=g.Rs(r)?void 0:r)?(L={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:Y},q=oU(Q,{action_display_post:1})):(L={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},q=Q);U={};v.sendVisitorIdHeader&&T.visitorData&&(U["X-Goog-Visitor-Id"]=T.visitorData);(R=S4(v.experiments,"debug_sherlog_username"))&&(U["X-Youtube-Sherlog-Username"]=R);Object.keys(U).length>
  5903. 0&&(L.headers=U);Z=(0,g.XY)();return g.c(w,u7(dV,q,L).then(void 0,k),2)}f=w.T;if(!f||!f.responseText)return w.return(l(f));T.loading=!1;G=QI(f.responseText);g.sy(T,G,!0);if(T.errorCode)return m={ec:T.errorCode,ed:T.errorDetail,es:T.by||""},w.return(Promise.reject(new g.ZK("auth",m,2)));if(!T.loading&&!I8(T))return I=T.isAd()?"auth":"manifest.net.retryexhausted",z=T.isAd()?2:1,w.return(Promise.reject(new g.ZK(I,{successButUnplayable:"1"},z)));g.BT(w)})};
  5904. nYI=function(T,Q){return new g.ZK(T?"auth":"manifest.net.retryexhausted",Q,T?2:1)};
  5905. o4=function(T,Q,k){k=k===void 0?!1:k;var l,v,L,q;g.a(function(Y){if(Y.S==1){l=T.G();if(k&&(!g.XT(l)||vi(Q)!=="embedded")||Q.qq||vi(Q)!=="adunit"&&(g.G4(l)||Ze(l)||g.uP(l)||g.zW(l)||g.q0(l)||hS(l)==="WEB_CREATOR"))return Y.return();v=g.rj(l,g.YD(Q));return v.T?g.c(Y,v.T,3):(L=v.getValue(),Y.Ym(2))}Y.S!=2&&(L=Y.T);q=L;return Y.return(Pjf(T,Q,q))})};
  5906. Pjf=function(T,Q,k){var l,v,L,q,Y;return g.a(function(U){if(U.S==1){g.z5(U,2);l=aGH(k);var R=Q.G();g.xq();var Z={context:g.zh(Q),videoId:Q.videoId,racyCheckOk:Q.racyCheckOk,contentCheckOk:Q.contentCheckOk,autonavState:"STATE_NONE"};vi(Q)==="adunit"&&(Z.isAdPlayback=!0);R.embedConfig&&(Z.serializedThirdPartyEmbedConfig=R.embedConfig);R.Ek&&(Z.showContentOwnerOnly=!0);Q.o6&&(Z.showShortsOnly=!0);g.Py(0,141)&&(Z.autonavState=g.Py(0,140)?"STATE_OFF":"STATE_ON");if(g.Cn(R)){var f=g.Py(0,65);f=f!=null?
  5907. !f:!1;var G=!!g.cy("yt-player-sticky-caption");Z.captionsRequested=f&&G}var m;if(R=(m=R.getWebPlayerContextConfig())==null?void 0:m.encryptedHostFlags)Z.playbackContext={encryptedHostFlags:R};v=Z;L=g.Vr(HkI);T.z_("wn_s");return g.c(U,g.uU(l,v,L),4)}if(U.S!=2)return q=U.T,T.z_("wn_r"),!q||"error"in q&&q.error||(Y=q,g.Ln(Q.G())&&Y.trackingParams&&i8(Y.trackingParams),g.sy(Q,{raw_watch_next_response:q},!1)),g.d6(U,0);g.by(U);g.BT(U)})};
  5908. tp5=function(T){T.z_("vir");T.z_("ps_s");cP("vir",void 0,"video_to_ad");var Q=DDT(T);Q.then(function(){T.z_("virc");cP("virc",void 0,"video_to_ad");T.z_("ps_r");cP("ps_r",void 0,"video_to_ad")},function(){T.z_("virc");
  5909. cP("virc",void 0,"video_to_ad")});
  5910. return Q};
  5911. g.q4=function(T,Q,k,l,v,L,q,Y,U,R){U=U===void 0?new g.mR(T):U;R=R===void 0?!0:R;g.ox.call(this);var Z=this;this.Hd=T;this.playerType=Q;this.Rg=k;this.GQ=l;this.getVisibilityState=L;this.visibility=q;this.nA=Y;this.videoData=U;this.yG=R;this.logger=new g.Cy("VideoPlayer");this.QU=null;this.Si=new BV;this.N3=null;this.Oy=!0;this.j6=this.loader=null;this.ZS=[];this.YQ=new l_;this.lK=this.ob=null;this.mP=new l_;this.F9=null;this.zr=this.HJ=!1;this.Y0=NaN;this.Cx=!1;this.playerState=new g.Cd;this.x0=[];
  5912. this.PP=new g.Bj;this.rJ=new YFf(this);this.mediaElement=null;this.X8=new g.FA(this.F1K,15E3,this);this.w4=this.Nr=!1;this.zT=NaN;this.KK=!1;this.zF=0;this.Zw=!1;this.Wp=NaN;this.kC=new QW(new Map([["bufferhealth",function(){return RSI(Z.KA)}],
  5913. ["bandwidth",function(){return Z.Jz()}],
  5914. ["networkactivity",function(){return Z.Hd.schedule.hj}],
  5915. ["livelatency",function(){return Z.isAtLiveHead()&&Z.isPlaying()?Okf(Z):NaN}],
  5916. ["rawlivelatency",function(){return Okf(Z)}]]));
  5917. this.FC=0;this.loop=!1;this.playbackRate=1;this.Zi=0;this.KA=new vYC(this);this.ZT=!1;this.d6=[];this.EO=this.lm=0;this.d4=this.M0=!1;this.oS=this.Pz=0;this.GL=new g.FA(this.X2,0,this);this.vu=!1;this.Gx=null;this.dOq=[this.PP,this.GL,this.X8,this.kC];this.Pr=this.GJ=null;this.H1=function(){var f=Z.Kc;f.provider.Hd.pG||f.provider.yq.getVisibilityState()===3||(f.provider.Hd.pG=!0);f.wZ();if(f.S){var G=f.S;G.N&&G.T<0&&G.provider.yq.getVisibilityState()!==3&&t2g(G)}f.qoe&&(f=f.qoe,f.u9&&f.L<0&&f.provider.Hd.pG&&
  5918. CtC(f),f.Y&&gT(f));Z.loader&&vp(Z);Z.Hd.xs&&!Z.videoData.backgroundable&&Z.mediaElement&&!Z.Ax()&&(Z.isBackground()&&Z.mediaElement.Ef()?(Z.T9("bgmobile",{suspend:1}),Z.T0(!0,!0)):Z.isBackground()||Lv(Z)&&Z.T9("bgmobile",{resume:1}))};
  5919. this.dn={e9:function(f){Z.e9(f)},
  5920. Dkd:function(f){Z.QU=f},
  5921. T_k:function(){return Z.Kc},
  5922. JH:function(){return Z.j6},
  5923. lSj:function(){return Z.qd},
  5924. rVK:function(){return Z.gg},
  5925. xk_:function(){},
  5926. G:function(){return Z.Hd},
  5927. T_:function(){return Z.mediaElement},
  5928. XzB:function(f){Z.Xn(f)},
  5929. VP6:function(){return Z.GQ}};
  5930. this.logger.debug(function(){return"creating, type "+Q});
  5931. this.V3=new ppX(this.Hd);this.BG=new XO(this.Hd,this.GQ,this);this.lH=new g.xO(this,function(f,G){f!==g.ej("endcr")||g.J(Z.playerState,32)||Z.fn();v(f,G,Z.playerType);if(f===g.ej("transitiondetector")&&(f=Z.loader)!=null&&(f=f.QR)!=null){var m=g.B(xY5(G.id));m.next();m=m.next().value;adH(f,m,G.start/1E3-f.yq.Px(),wvg(f.Y))}});
  5932. g.P(this,this.lH);g.P(this,this.KA);pau(this,U);this.videoData.subscribe("dataupdated",this.mFd,this);this.videoData.subscribe("dataloaded",this.X5,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.T9,this);this.videoData.subscribe("ctmpstr",this.HW,this);!this.Kc||this.Kc.wd();this.Kc=new g.K6(new n6(this.videoData,this.Hd,this));gOI(this.H1);this.visibility.subscribe("visibilitystatechange",this.H1);this.qd=new g.FA(this.Hr,g.jj(this.Hd.experiments,
  5933. "html5_player_att_initial_delay_ms")||4500,this);this.gg=new g.FA(this.Hr,g.jj(this.Hd.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.S0=new g.Vq(this.x2K,350,this);g.P(this,this.S0)};
  5934. pau=function(T,Q){if(T.playerType===2||T.Hd.R0)Q.m5=!0;var k=NOb(Q.pG,Q.qU,T.Hd.Y,T.Hd.j);k&&(Q.adFormat=k);T.playerType===2&&(Q.dO=!0);if(T.isFullscreen()||T.Hd.Y)k=g.cy("yt-player-autonavstate"),Q.autonavState=k||(T.Hd.Y?2:T.videoData.autonavState);Q.endSeconds&&Q.endSeconds>Q.startSeconds&&VE(T,Q.endSeconds)};
  5935. Wc6=function(T){var Q=T.videoData;tp5(T).then(void 0,function(k){T.videoData!==Q||Q.wd()||(k=GX(k),k.errorCode==="auth"&&T.videoData.errorDetail?T.NL(k.errorCode,2,unescape(T.videoData.errorReason),RE(k.details),T.videoData.errorDetail,T.videoData.by||void 0):T.handleError(k))})};
  5936. eSC=function(T){if(!g.J(T.playerState,128))if(T.videoData.isLoaded(),T.logger.debug("finished loading playback data"),T.ZS=g.r$(T.videoData.D),g.FC(T.videoData)){T.Rg.tick("bpd_s");gW(T).then(function(){T.Rg.tick("bpd_c");if(!T.wd()){T.HJ&&(T.LA(wf(wf(T.playerState,512),1)),Lv(T));var l=T.videoData;l.endSeconds&&l.endSeconds>l.startSeconds&&VE(T,l.endSeconds);T.YQ.finished=!0;M4(T,"dataloaded");T.mP.gT()&&$DH(T);H65(T.BG,T.lK)}});
  5937. T.V("html5_log_media_perf_info")&&T.T9("loudness",{v:T.videoData.uK.toFixed(3)},!0);var Q,k=(Q=T.mediaElement)==null?void 0:Q.xB();if(k&&"disablePictureInPicture"in k&&T.Hd.dV)try{k.disablePictureInPicture=T.Hd.i5&&!T.videoData.backgroundable}catch(l){g.rB(l)}J46(T)}else M4(T,"dataloaded")};
  5938. gW=function(T){Yk(T);T.lK=null;var Q=$4J(T.Hd,T.videoData,T.Ax());T.ob=Q;T.ob.then(function(k){Fc5(T,k)},function(k){T.wd()||(k=GX(k),T.visibility.isBackground()?(Ul(T,"vp_none_avail"),T.ob=null,T.YQ.reset()):(T.YQ.finished=!0,T.NL(k.errorCode,k.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RE(k.details))))});
  5939. return Q};
  5940. Fc5=function(T,Q){if(!T.wd()&&!Q.videoData.wd()){T.logger.debug("finished building playback data");T.lK=Q;gYT(T.KA,T.lK);if(T.videoData.isLivePlayback){var k=EYH(T.nA.m9,T.videoData.videoId)||T.loader&&!isNaN(T.loader.i9);k=T.V("html5_onesie_live")&&k;yE(T)||T.videoData.h3>0&&!Kt(T.videoData)||k||T.seekTo(T.EM(),{I_:"videoplayer_playbackData",seekSource:18})}if(T.videoData.L.T){if(lQg(T.videoData)){T.NL("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",RE({missabrurl:1}));return}T.loader?g.rB(Error("Duplicated Loader")):
  5941. (k=g.jj(T.Hd.experiments,"html5_onesie_defer_content_loader_ms"))&&T.ME()&&EYH(T.nA.m9,T.videoData.RZB)?g.Zq(function(){T.wd()||T.loader||y4b(T)},k):y4b(T)}else!T.videoData.L.T&&Z_(T.videoData)&&T.tC(new dX(T.videoData.videoId||"",4));
  5942. T.zE();c2f(Q).then(function(){var l={};T.B5(l);T.Hd.J3()&&T.V("html5_log_media_perf_info")&&T.T9("av1Info",l);vp(T)})}};
  5943. $DH=function(T){T.wd();T.logger.debug("try finish readying playback");if(T.mP.finished)T.logger.debug("already finished readying");else if(T.YQ.finished)if(g.J(T.playerState,128))T.logger.debug("cannot finish readying because of error");else if(T.ZS.length)T.logger.debug(function(){return"cannot finish readying because of pending preroll: "+T.ZS});
  5944. else if(T.lH.started||nk6(T.lH),T.Pc())T.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{T.loader&&(T.zr=jXI(T.loader.timing));T.mP.finished||(T.mP.finished=!0);var Q=T.V("html5_onesie_live")&&T.loader&&!isNaN(T.loader.i9);!T.videoData.isLivePlayback||T.videoData.h3>0&&!Kt(T.videoData)||Q||yE(T)||(T.logger.debug("seek to head for live"),T.seekTo(Infinity,{I_:"videoplayer_readying",seekSource:18}),T.isBackground()&&(T.w4=!0));Slu(T.Kc);T.logger.debug("finished readying playback");
  5945. T.publish("playbackready");bU("pl_c",T.Rg.timerName)||(T.Rg.tick("pl_c"),cP("pl_c",void 0,"video_to_ad"));bU("pbr",T.Rg.timerName)||(T.Rg.tick("pbr"),cP("pbr",void 0,"video_to_ad"))}else T.logger.debug("playback data not loaded")};
  5946. VE=function(T,Q){T.N3&&ikT(T);T.N3=new g.$d(Q*1E3,0x7ffffffffffff);T.N3.namespace="endcr";T.addCueRange(T.N3)};
  5947. ikT=function(T){T.removeCueRange(T.N3);T.N3=null};
  5948. VpI=function(T,Q,k,l,v){var L=T.Kc,q=T.videoData;q.S=k;var Y=g.R4(T);k=new BT5(q,k,Q,Y?Y.itag:"",l);T.Hd.experiments.Wd("html5_refactor_sabr_video_format_selection_logging")?(k.videoId=v,T.Pr=k):L.qoe&&SUI(L.qoe,k);v=T.BG;v.S=0;v.T=0;T.publish("internalvideoformatchange",q,Q==="m")};
  5949. g.R4=function(T){var Q=Zx(T);return bd(Q)||!T.lK?null:g.sA(T.lK.T.videoInfos,function(k){return Q.Y(k)})};
  5950. Zx=function(T){if(T.lK){var Q=T.BG;var k=T.lK;T=T.IH();var l=XVH(Q);if(bd(l)){if(l=Q.KP(k).compose(A26(Q,k)).compose(r2y(Q,k)).compose(xRX(Q,k.videoData)).compose(Pgy(Q,k.videoData,k)).compose(K7J(Q,k)).compose(dRC(Q,k)),bd(T)||Q.V("html5_apply_pbr_cap_for_drm"))l=l.compose(NT5(Q,k))}else Q.V("html5_perf_cap_override_sticky")&&(l=l.compose(K7J(Q,k))),Q.V("html5_ustreamer_cap_override_sticky")&&(l=l.compose(NT5(Q,k)));l=l.compose(dRC(Q,k));Q=k.videoData.kH.compose(l).compose(k.videoData.wE).compose(T)}else Q=
  5951. GV;return Q};
  5952. oa5=function(T){var Q=T.BG;T=T.videoData;var k=xRX(Q,T);Q.V("html5_disable_client_autonav_cap_for_onesie")||k.compose(Pgy(Q,T));return k};
  5953. vp=function(T){if(T.videoData.L&&T.videoData.L.T){var Q=Zx(T);T.loader&&PtX(T.loader,Q)}};
  5954. TuH=function(T){var Q;return!!(T.V("html5_native_audio_track_switching")&&g.mp&&((Q=T.videoData.S)==null?0:Pj(Q)))};
  5955. QGT=function(T){if(!TuH(T))return!1;var Q;T=(Q=T.mediaElement)==null?void 0:Q.audioTracks();return!!(T&&T.length>1)};
  5956. kKy=function(T){var Q=jGT(T);if(Q)return T.videoData.getAvailableAudioTracks().find(function(k){return k.MY.getName()===Q})};
  5957. jGT=function(T){var Q;if(T=(Q=T.mediaElement)==null?void 0:Q.audioTracks())for(Q=0;Q<T.length;++Q){var k=T[Q];if(k.enabled)return k.label}};
  5958. lLg=function(T){var Q,k=T.videoData.getAvailableAudioTracks(),l=T.Hd.K_;l&&(Q=k.find(function(L){return L.getLanguageInfo().id===l}));
  5959. if(T.Hd.experiments.Wd("enable_audio_description_setting")&&g.Py(g.xq(),198)){k=g.B(k);for(var v=k.next();!v.done;v=k.next())if(v=v.value,v.N){Q=v;break}}Q||(T=T.getAudioTrack(),Q=T.MY.isDefault?void 0:T);return Q};
  5960. y4b=function(T){for(var Q=T.videoData.T,k=g.B(Object.entries({cpn:T.videoData.clientPlaybackNonce,c:T.Hd.T.c,cver:T.Hd.T.cver})),l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;for(var L=g.B(Object.values(Q.T)),q=L.next();!q.done;q=L.next())m$X(q.value.Xs,l,v);L=void 0;(L=Q.j)==null||m$X(L,l,v)}l=T.Hd;k=T.videoData;Q=new g.K06(l);v=nmg({hasSubfragmentedFmp4:k.hasSubfragmentedFmp4,nP:k.nP});Q.C=v;Q.hj=k.maxReadAheadMediaTimeMs/1E3||Q.hj;v=l.schedule;v.L.hx()===v.policy.L?
  5961. Q.h3=10:Q.h3=k.minReadAheadMediaTimeMs/1E3||Q.h3;Q.b7=k.readAheadGrowthRateMs/1E3||Q.b7;k.h8&&(Q.iK=!0,Q.K_=!0);Q.VF=!fd();g.G4(l)||!fd()?(Q.Bd=8388608,Q.zg=524288,Q.UY=5,Q.sK=1048576,Q.E6=1.5,Q.qY=4587520,$5()&&(Q.qY=786432),Q.j*=1.1,Q.z9*=1.1,Q.YP=!0):l.S&&(Q.j*=1.3,Q.z9*=1.3);g.hW&&g.tH("crkey")&&(v=l.T.cmodel==="CHROMECAST/ANCHOVY",Q.Bd=20971520,Q.zg=1572864,v&&(Q.qY=812500,Q.OW=1E3,Q.nR=5,Q.sK=2097152));g.Rn&&(Q.YP=!0);l.supportsGaplessAudio()||(Q.Qm=!1);ic&&(Q.gt=!0);Q.Wk=l.V("html5_peak_shave");
  5962. k.fetchType==="onesie"&&l.V("html5_disable_peak_shave_for_onesie")&&(Q.Wk=!1);var Y;v=(Y=k.T)==null?void 0:Pr(Y);if(Kt(k)){Q.NK=!0;Q.XU||(Q.kh=!0);Q.OG=!0;Q.i5=!0;Q.qU=!0;if(k.latencyClass==="ULTRALOW"||k.latencyClass==="LOW"&&!l.V("html5_disable_low_pipeline"))Q.QV=2,Q.U2=4;Q.lS=k.defraggedFromSubfragments;g.iO(k)&&(Q.QR=!1);Q.BH=g.ZX(l)}k.isAd()&&(Q.Yh=0,Q.Lp=0);Q.cg=l.V("html5_enable_subsegment_readahead_v3")||l.V("html5_ultra_low_latency_subsegment_readahead")&&k.latencyClass==="ULTRALOW";Q.L=
  5963. l.J3();TL()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(l.T.cmodel)&&!l.V("html5_disable_move_pssh_to_moov")&&v&&(Q.YP=!1);L=0;l.V("html5_live_use_alternate_bandwidth_window_sizes")&&(L=l.schedule.policy.T,k.isLivePlayback&&(L=g.jj(l.experiments,k.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":k.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||L));Y=l.schedule;Y.S.Y=Kt(k)?.5:0;if(!Y.policy.S&&L&&(Y=Y.L,L=Math.round(L*Y.resolution),
  5964. L!==Y.T)){q=Array(L);var U=Math.min(L,Y.L?Y.T:Y.S),R=Y.S-U;R<0&&(R+=Y.T);for(var Z=0;Z<U;++Z)q[Z]=Y.values[(R+Z)%Y.T];for(;Z<L;++Z)q[Z]=Infinity;Y.T=L;Y.values=q;Y.S=U%L;Y.L=U===L;Y.RY=!0;Y.N=dlT(Y)}k.isLivePlayback&&(Q.iS=g.jj(l.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,Q.Jj=!1);k.bl()&&(Q.Jj=!1);xa(k)&&(Q.cg=!0,k.latencyClass==="LOW"?Q.t6=g.jj(l.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):k.latencyClass==="ULTRALOW"&&(Q.t6=g.jj(l.experiments,"html5_jumbo_ull_subsegment_readahead_target")),
  5965. Q.Ak=!0);k.Cc()&&(Q.Rx=1.3);Q.gt=Q.gt||k.Qd;Q.p_=(Q.p_||k.p_)&&l.j;Q.Ah=k.C;l.J3()&&(Q.Ig=!0);k.C&&!v&&(Q.rZ=!0);k.C&&k.isAd()&&(Q.j*=1.6,Q.z9*=1.6);Z_(k)&&(Q.Y=k.videoId,Q.dV=!0,Q.IT=100,k.Wz&&k.Wz.length>0&&(Q.Hl=k.Wz));Q.VD=k.NV;Q.ID=lc(l,{},k.L||void 0,bO(k));Q.f_=AL(k)&&(g.uP(l)||g.zW(l));cv(k)&&(Q.N=!0,Q.u$=l.V("html5_estimate_live_partial_slice_duration"),Q.vn=!0,l.V("html5_sabr_report_partial_segment_estimated_duration")&&(Q.Dy=!0),Q.T=!0,Q.XQ=l.V("html5_sabr_enable_live_clock_offset"),Q.Jp=
  5966. l.V("html5_disable_client_resume_policy_for_sabr"),Q.jy=l.V("html5_trigger_loader_when_idle_network"),Q.IS=l.V("html5_sabr_parse_live_metadata_playback_boundaries"),Q.wV=l.V("html5_consume_onesie_next_request_policy_for_sabr"),Q.aS=l.V("html5_sabr_report_next_ad_break_time"),Q.cf=l.V("html5_log_high_res_buffer_timeline")&&l.J3(),Q.f5=l.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),Q.xF=l.V("html5_gapless_sabr_btl_last_slice")&&NY(k),Q.O6=l.V("html5_reset_last_appended_slice_on_seek")&&NY(k),
  5967. Kt(k)?(Q.O2=!0,Q.Z6=l.V("html5_disable_variability_tracker_for_live"),Q.u9=!0,l.V("html5_simplified_backup_timeout_sabr_live")&&(Q.RM=!0,Q.OW=Q.SP)):Q.Fk=l.V("html5_probe_request_on_sabr_request_progress"),Q.n5=l.V("html5_serve_start_seconds_seek_for_post_live_sabr"),Q.nG=l.V("html5_flush_index_on_updated_timestamp_offset"),Q.D=cv(k),Q.FU=l.V("html5_ignore_partial_segment_from_live_readahead"),l.V("html5_include_partial_segment_for_jumbo_ll")&&xa(k)&&(Q.FU=!1),Q.GT=l.V("html5_use_non_active_broadcast_for_post_live"),
  5968. Q.i9=l.V("html5_use_centralized_player_time"),Q.Gg=l.V("html5_log_centralized_player_time"),Q.K7=l.V("html5_consume_onesie_sabr_seek"),Q.qO=l.V("html5_enable_sabr_seek_loader_refactor"),Q.KR=l.V("html5_update_segment_start_time_from_media_header"),k.enableServerStitchedDai&&(Q.S=!0,Q.CH=l.V("html5_reset_server_stitch_state_for_non_sabr_seek"),Q.Ws=l.V("html5_remove_ssdai_append_pause")&&!k.lf(),Q.uK=l.V("html5_ssdai_log_ssevt_in_loader")||l.V("html5_ssdai_log_ssevt_in_loader_200ms")||l.V("html5_ssdai_log_ssevt_in_loader_timers")||
  5969. l.V("html5_ssdai_log_ssevt_in_loader_cuerange"),l.V("html5_ssdai_log_ssevt_in_loader_timers")?Q.Tg=1:l.V("html5_ssdai_log_ssevt_in_loader_200ms")?Q.Tg=3:l.V("html5_ssdai_log_ssevt_in_loader_cuerange")&&(Q.Tg=0)),Q.Hf=l.J3()||k.lf());Q.F_=g.Qrg(k);Wr(l.N,$g.BITRATE)&&(Q.qY=NaN);if(Y=g.jj(l.experiments,"html5_request_size_max_kb"))Q.sK=Y*1024;l.N.L?Q.E4="; "+$g.EXPERIMENTAL.name+"=allowed":l.V("html5_enable_cobalt_tunnel_mode")&&g.ph()&&(Y=$g.TUNNELMODE,Q.E4="; "+Y.name+"="+Y.valid);k=k.serverPlaybackStartConfig;
  5970. (k==null?0:k.enable)&&(k==null?0:k.playbackStartPolicy)&&(Q.Sf=!0,ov(Q,k.playbackStartPolicy,2));k=lLg(T);T.Si.removeAll();a:{Y=T.nA.m9;if(l=T.videoData.videoId)if(v=Y.T.get(l)){Y.T.remove(l);Y=v;break a}Y=void 0}T.loader=new g.Rf(T,T.Hd.schedule,Q,T.videoData.T,T.videoData.L,Zx(T),k,T.videoData.enableServerStitchedDai,Y,T.videoData.z9);Q=T.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&T.videoData.isLivePlayback&&T.ME()?!0:T.HJ&&g.G4(T.Hd)&&T.videoData.isLivePlayback;T.loader.initialize(T.getCurrentTime(),
  5971. Zx(T),Q);T.videoData.probeUrl&&(T.loader.f_=T.videoData.probeUrl);if(T.ZS.length||T.HJ)T.videoData.cotn||fv(T,!1);Ysu(T.KA,T.loader);T.Gx&&(qQC(T.loader,new g.Zv(T.Gx)),T.T9("sdai",{sdl:1}));g.mK(T.videoData)&&(T=T.loader,T.policy.vA=T.policy.Re)};
  5972. Yk=function(T){T.loader&&(T.loader.dispose(),T.loader=null,Ysu(T.KA,null));T.e1()?oWb(T):T.I0()};
  5973. oWb=function(T){if(T.j6)if(T.logger.debug("release media source"),T.wN(),T.j6.N)try{T.Hd.J3()&&T.T9("rms",{l:"vprms",sr:T.e1(),rs:Zl(T.j6)});T.j6.clear();var Q;(Q=T.mediaElement)!=null&&(Q.S=T.j6);T.j6=null}catch(k){Q=new g.Wy("Error while clearing Media Source in VideoPlayer: "+k.name+", "+k.message),Q=GX(Q),T.handleError(Q),T.I0()}else T.I0()};
  5974. vWH=function(T,Q){Q=Q===void 0?!1:Q;if(T.j6)return T.j6.L;T.logger.debug("update media source");a:{Q=Q===void 0?!1:Q;try{g.ph()&&T.videoData.vI()&&ei5(T.mediaElement);var k=T.mediaElement.JH(T.My(),T.If())}catch(v){if(GjH(T.rJ,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",v);T.NL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}T.lz(k,!1,!1,Q)}var l;return((l=T.JH())==null?void 0:l.L)||null};
  5975. LJu=function(T,Q){Q=Q===void 0?!1:Q;if(T.loader){T.videoData.enableServerStitchedDai&&GD5(T.loader);var k=T.getCurrentTime()-T.Px();T.loader.seek(k,{SM:Q}).kE(function(){})}else y4b(T)};
  5976. gW5=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;if(T.j6&&(!Q||T.j6===Q)){T.logger.debug("media source opened");var v=T.getDuration();!v&&Kt(T.videoData)&&(v=25200);if(T.j6.isView){var L=v;T.logger.debug(function(){return"Set media source duration to "+L+", video duration "+v});
  5977. L>T.j6.getDuration()&&quC(T,L)}else quC(T,v);nDC(T.loader,T.j6,k,l);T.publish("mediasourceattached")}};
  5978. quC=function(T,Q){if(T.j6){T.j6.SR(Q);var k;(k=T.loader)!=null&&k.policy.i9&&(k.B=Q)}};
  5979. t$5=function(T,Q){VpI(T,Q.reason,Q.T.info,Q.token,Q.videoId)};
  5980. M4=function(T,Q){T.publish("internalvideodatachange",Q===void 0?"dataupdated":Q,T.videoData)};
  5981. ML5=function(T){for(var Q=g.B("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),k=Q.next();!k.done;k=Q.next())T.PP.Z(T.mediaElement,k.value,T.Xn,T);T.Hd.Xm&&T.mediaElement.rQ()&&(T.PP.Z(T.mediaElement,"webkitplaybacktargetavailabilitychanged",T.Bd_,T),T.PP.Z(T.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",T.Nde,T))};
  5982. Uag=function(T){g.m6(T.Y0);Yug(T)||(T.Y0=g.fh(function(){return Yug(T)},100))};
  5983. Yug=function(T){var Q=T.mediaElement;Q&&T.Nr&&!T.videoData.qO&&!bU("vfp",T.Rg.timerName)&&Q.Nm()>=2&&!Q.isEnded()&&TN(Q.Q8())&&T.Rg.tick("vfp");return(Q=T.mediaElement)&&!T.videoData.qO&&Q.getDuration()>0&&(Q.isPaused()&&Q.Nm()>=2&&TN(Q.Q8())&&(bU("pbp",T.Rg.timerName)||T.Rg.tick("pbp"),!T.videoData.dC||T.Cx||Q.isSeeking()||(T.Cx=!0,T.publish("onPlaybackPauseAtStart"))),Q=Q.getCurrentTime(),PV(T.V3,Q))?(T.KO(),!0):!1};
  5984. Zmg=function(T){T.Kc.M_();if(nt(T.videoData)&&Date.now()>T.Zi+6283){if(!(!T.isAtLiveHead()||T.videoData.T&&$0(T.videoData.T))){var Q=T.Kc;if(Q.qoe){Q=Q.qoe;var k=Q.provider.yq.rH(),l=g.qR(Q.provider);Rqb(Q,l,k);k=k.L;isNaN(k)||g.of(Q,l,"e2el",[k.toFixed(3)])}}T.V("html5_alc_live_log_rawlat")?(Q=T.videoData,Q=g.ZX(Q.G())?!0:g.s8(Q.G())?Q.drmProduct==="6":!1):Q=g.ZX(T.Hd);l=T.V("html5_always_log_rawlat");(Q||l)&&T.T9("rawlat",{l:kk(T.kC,"rawlivelatency").toFixed(3)});T.Zi=Date.now()}T.videoData.S&&
  5985. Pj(T.videoData.S)&&(Q=T.I9())&&Q.videoHeight!==T.EO&&(T.EO=Q.videoHeight,VpI(T,"a",Rgf(T,T.videoData.u9)))};
  5986. Rgf=function(T,Q){if(Q.T.video.quality==="auto"&&Pj(Q.getInfo())&&T.videoData.t6)for(var k=g.B(T.videoData.t6),l=k.next();!l.done;l=k.next())if(l=l.value,l.getHeight()===T.EO&&l.T.video.quality!=="auto")return l.getInfo();return Q.getInfo()};
  5987. Okf=function(T){if(!nt(T.videoData))return NaN;var Q=0;T.loader&&T.videoData.T&&(Q=Kt(T.videoData)?T.loader.Ad.hx()||0:T.videoData.T.i9);return(0,g.XY)()/1E3-T.xM()-Q};
  5988. GK5=function(T){T.mediaElement&&T.mediaElement.Ax()&&(T.Wp=(0,g.XY)());T.Hd.SP?g.Zq(function(){fLu(T)},0):fLu(T)};
  5989. fLu=function(T){var Q;if((Q=T.j6)==null||!Q.u0()){if(T.mediaElement)try{T.F9=T.mediaElement.playVideo()}catch(l){Ul(T,"err."+l)}if(T.F9){var k=T.F9;k.then(void 0,function(l){T.logger.debug(function(){return"playMediaElement failed: "+l});
  5990. if(!g.J(T.playerState,4)&&!g.J(T.playerState,256)&&T.F9===k)if(l&&l.name==="AbortError"&&l.message&&l.message.includes("load"))T.logger.debug(function(){return"ignore play media element failure: "+l.message});
  5991. else{var v="promise";l&&l.name&&(v+=";m."+l.name);Ul(T,v);T.ZT=!0;T.videoData.vk=!0}})}}};
  5992. Ul=function(T,Q){g.J(T.playerState,128)||(T.LA(N3(T.playerState,1028,9)),T.T9("dompaused",{r:Q}),T.publish("onAutoplayBlocked"))};
  5993. Lv=function(T,Q){Q=Q===void 0?!1:Q;if(!T.mediaElement||!T.videoData.L)return!1;var k=Q;k=k===void 0?!1:k;var l=null;var v;if((v=T.videoData.L)==null?0:v.T){l=vWH(T,k);var L;(L=T.loader)==null||L.resume()}else Yk(T),T.videoData.u9&&(l=T.videoData.u9.Ge());v=T.mediaElement.Ef();k=!1;v&&v.equals(l)||(maf(T,l),k=!0);g.J(T.playerState,2)||(l=T.KA,Q=Q===void 0?!1:Q,l.N||!(l.L>0)||l.mediaElement&&l.mediaElement.getCurrentTime()>0||(Q={I_:"seektimeline_resumeTime",SM:Q},l.videoData.qO||(Q.seekSource=15),
  5994. l.seekTo(l.L,Q)));a:{Q=k;if(cv(T.videoData)){if(!T.videoData.bl())break a}else if(!g.Wv(T.videoData))break a;if(T.mediaElement)if((l=T.videoData.N)&&T.mediaElement.rQ()){v=T.mediaElement.xB();if(T.QU)if(v!==T.QU.element)Gk(T);else if(Q&&l.flavor==="fairplay"&&!WD())Gk(T);else break a;if(T.V("html5_report_error_for_unsupported_tvos_widevine")&&WD()&&l.flavor==="widevine")T.NL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{T.QU=new TT6(v,T.videoData,T.Hd);T.QU.subscribe("licenseerror",
  5995. T.ut,T);T.QU.subscribe("qualitychange",T.kg9,T);T.QU.subscribe("heartbeatparams",T.qg,T);T.QU.subscribe("keystatuseschange",T.e9,T);T.QU.subscribe("ctmp",T.T9,T);Q=g.B(T.Si.keys);for(l=Q.next();!l.done;l=Q.next())l=T.Si.get(l.value),T.QU.tX(l);T.V("html5_eme_loader_sync")||T.Si.removeAll()}}else T.NL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return k};
  5996. maf=function(T,Q){T.Rg.tick("vta");cP("vta",void 0,"video_to_ad");T.getCurrentTime()>0&&fGX(T.KA,T.getCurrentTime());T.mediaElement.activate(Q);T.j6&&TB(4);!T.videoData.qO&&T.playerState.isOrWillBePlaying()&&T.X8.start();if(TuH(T)){var k;if(Q=(k=T.mediaElement)==null?void 0:k.audioTracks())Q.onchange=function(){T.publish("internalaudioformatchange",T.videoData,!0)}}};
  5997. Gk=function(T){T.QU&&(T.QU.dispose(),T.QU=null)};
  5998. ILJ=function(T){var Q=Q===void 0?!1:Q;T.logger.debug("reattachVideoSource");T.mediaElement&&(T.j6?(Gk(T),T.I0(),vWH(T,Q)):(T.videoData.u9&&T.videoData.u9.Cq(),T.mediaElement.stopVideo()),T.playVideo())};
  5999. hgX=function(T,Q){T.Hd.V("html5_log_rebuffer_reason")&&(Q={r:Q,lact:Bd()},T.mediaElement&&(Q.bh=hB(T.mediaElement)),T.T9("bufreason",Q))};
  6000. sG5=function(T,Q){if(T.Hd.J3()&&T.mediaElement){var k=T.mediaElement.Tx();k.omt=(T.mediaElement.getCurrentTime()+T.Px()).toFixed(3);k.ps=T.playerState.state.toString(16);k.rt=(g.qR(T.Kc.provider)*1E3).toFixed();k.e=Q;T.d6[T.lm++%5]=k}try{if(Q==="timeupdate"||Q==="progress")return}catch(l){}T.logger.debug(function(){return"video element event "+Q})};
  6001. Suy=function(T){if(T.Hd.J3()){T.d6.sort(function(l,v){return+l.rt-+v.rt});
  6002. for(var Q=g.B(T.d6),k=Q.next();!k.done;k=Q.next())k=k.value,T.T9("vpe",Object.assign({t:k.rt},k));T.d6=[];T.lm=0}};
  6003. CzT=function(T){if(g.tH("cobalt")&&g.tH("nintendo switch")){var Q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;T.T9("nxdock",{d:Q})}};
  6004. fv=function(T,Q){var k;(k=T.loader)==null||ryI(k,Q)};
  6005. J46=function(T){hy(T.videoData,"html5_set_debugging_opt_in")&&(T=g.xq(),g.Py(0,183)||(tg(183,!0),T.save()))};
  6006. m7I=function(T,Q){T.nA.jZ()||(T.T9("sgap",{f:Q}),T.nA.clearQueue(!1,Q==="pe"))};
  6007. yE=function(T){return T.V("html5_disable_video_player_initiated_seeks")&&cv(T.videoData)};
  6008. BuC=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"isLifaAdPlaying",function(){return Q.api.isLifaAdPlaying()});
  6009. this.events.Z(T,"serverstitchedvideochange",function(){var k;(k=Q.api.getVideoData())!=null&&k.lf()&&(Q.api.isLifaAdPlaying()?(Q.playbackRate=Q.api.getPlaybackRate(),Q.api.setPlaybackRate(1)):Q.api.setPlaybackRate(Q.playbackRate))});
  6010. this.playbackRate=1};
  6011. m8=function(T){zQ.call(this,"\u5faa\u73af\u64ad\u653e",g.rh.gG);this.U=T;var Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z",
  6012. fill:"white"}}]}:ak6();this.setIcon(Q);this.subscribe("select",this.S,this);T.createClientVe(this.element,this,28661);this.Z(T,"settingsMenuVisibilityChanged",this.T);this.listen("click",this.logClick);this.Z(T,"onLoopChange",this.onLoopChange);Xe(this,T.getLoopVideo());T.K$().A6(this)};
  6013. zgb=function(T){GQ.call(this,T);var Q=this;T.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new m8(Q.api),g.P(Q,Q.menuItem))});
  6014. T.addEventListener("videodatachange",function(k,l){k=Q.api.getPresentingPlayerType()===2;var v;(v=Q.menuItem)==null||v.o_(!l.isLivePlayback&&!k)})};
  6015. X1J=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"seekToChapterWithAnimation",function(k){Q.seekToChapterWithAnimation(k)});
  6016. ws(this.api,"seekToTimeWithAnimation",function(k,l){Q.seekToTimeWithAnimation(k,l)});
  6017. ws(this.api,"renderChapterSeekingAnimation",function(k,l,v){Q.api.renderChapterSeekingAnimation(k,l,v)});
  6018. ws(this.api,"setMacroMarkers",function(k){Q.setMacroMarkers(T,k)});
  6019. ws(this.api,"changeMarkerVisibility",function(k,l,v){Q.changeMarkerVisibility(k,l,v)});
  6020. ws(this.api,"isSameMarkerTypeVisible",function(k){return Q.isSameMarkerTypeVisible(k)})};
  6021. w1X=function(T,Q,k){var l=T.api.getCurrentTime()*1E3<Q?1:-1;T.api.renderChapterSeekingAnimation(l,k);T.api.seekTo(Q/1E3,void 0,void 0,void 0,3)};
  6022. da5=function(T,Q){var k,l;return(k=V8(T,"macroMarkersListEntity",Q))==null?void 0:(l=k.markersList)==null?void 0:l.markerType};
  6023. NuI=function(T,Q){var k=g.w4.getState().entities;T=da5(k,T);Q=g.B(Q.K_);for(var l=Q.next();!l.done;l=Q.next())if(T===da5(k,l.value))return!0;return!1};
  6024. AGg=function(T){GQ.call(this,T);var Q=this;this.T=null;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"applicationvideodatachange",function(){Q.nN()})};
  6025. I4=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"videodatachange",function(){Q.updateMetadata()});
  6026. this.events.Z(T,"presentingplayerstatechange",function(){bmg(Q)});
  6027. this.events.Z(T,"SEEK_COMPLETE",function(){rGb(Q)})};
  6028. hO=function(T,Q){try{navigator.mediaSession.setActionHandler(T,Q)}catch(k){}};
  6029. cGu=function(T){hO("play",function(){T.api.playVideo()});
  6030. hO("pause",function(){T.api.pauseVideo()});
  6031. hO("seekbackward",function(){T.api.seekBy(-5*T.api.getPlaybackRate())});
  6032. hO("seekforward",function(){T.api.seekBy(5*T.api.getPlaybackRate())});
  6033. hO("seekto",function(Q){Q=Q.seekTime;Q!=null&&T.api.seekTo(Q)})};
  6034. Da6=function(T){var Q,k,l,v;return(Q=T.api.getVideoData().getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:(v=l.browserMediaSession)==null?void 0:v.browserMediaSessionRenderer};
  6035. aLX=function(T){var Q=[];if(!T||!T.thumbnails)return Q;T=g.B(T.thumbnails);for(var k=T.next();!k.done;k=T.next())k=k.value,k.url&&(!k.width||k.width<=0||!k.height||k.height<=0||g.OI(k.url)&&Q.push({src:k.url||"",sizes:k.width+"x"+k.height,type:"image/jpeg"}));return Q};
  6036. bmg=function(T){T=T.api.getPlayerStateObject();T=T.isCued()||T.isError()?"none":T.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=T};
  6037. rGb=function(T){if(navigator.mediaSession.setPositionState)if(T.api.V("web_player_media_session_infinity")&&T.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(l){}else{var Q=T.api.getProgressState().seekableEnd,k=Math.min(T.api.getCurrentTime(),Q);Q&&Number.isFinite(k)&&navigator.mediaSession.setPositionState({duration:Q,playbackRate:T.api.getPlaybackRate(),position:k})}};
  6038. sl=function(T){GQ.call(this,T);var Q=this;this.S=new Map;this.Y=this.T=void 0;this.compositeVideoState=null;this.L=void 0;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"modulecreated",function(k){var l;a:{var v,L,q,Y=(v=Q.api.getVideoData())==null?void 0:(L=v.getPlayerResponse())==null?void 0:(q=L.overlay)==null?void 0:q.playerControlsOverlayRenderer;if(Y&&(v=g.t(Y.compositeVideoOverlay,uaf),v==null?0:(l=v.sources)==null?0:l.length))for(l=g.B(v==null?void 0:v.sources),v=l.next();!v.done;v=
  6039. l.next())if(v=v.value,v.isActive){l=v;break a}l=void 0}k==="captions"&&(l==null?void 0:l.topLeftCornerX)!==void 0&&(l==null?void 0:l.topLeftCornerY)!==void 0&&(l==null?void 0:l.width)!==void 0&&(l==null?void 0:l.height)!==void 0&&Q.api.Zv({top:l.topLeftCornerY,right:1-l.topLeftCornerX-l.width,bottom:1-l.topLeftCornerY-l.height,left:l.topLeftCornerX})});
  6040. this.events.Z(T,"videodatachange",function(k){var l=Q.api.getVideoData();Q.T=void 0;Q.S.clear();Q.api.uf("compositeembargo",1);var v=l==null?void 0:l.ER.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(v==null?0:v.length)?nWb(Q,v.filter(function(L){return KJy(Q,L)})):(l==null?0:l.cueRanges)&&nWb(Q,l.cueRanges.filter(function(L){return KJy(Q,L)}));
  6041. k==="dataupdated"&&(l==null?void 0:l.compositeLiveStatusToken)!==Q.Y&&(Q.Y=l==null?void 0:l.compositeLiveStatusToken,Q.api.tY())});
  6042. this.events.Z(T,g.ej("compositeembargo"),function(k){var l;if(((l=Q.T)==null?void 0:l.id)!==k.id&&(Q.api.qm(!0),Q.S.has(k.id))){var v=Q.S.get(k.id);l=Q.api.getVideoData();v=g.B(v);for(var L=v.next();!L.done;L=v.next()){var q=void 0;L=(q=L.value.compositeEmbargo)==null?void 0:q.embargoStatusToken;l.u$!==L&&(l.u$=L,Q.api.tY());xa5(Q,k)}}});
  6043. this.events.Z(T,g.Ft("compositeembargo"),function(k){var l;if(((l=Q.T)==null?void 0:l.id)===k.id&&(Q.api.qm(!1),Q.S.has(k.id))){if(k=Q.api.getVideoData())k.u$=void 0;Q.api.tY();xa5(Q)}});
  6044. this.events.Z(T,"heartbeatRequest",function(k){Q.compositeVideoState!==null&&(k.playbackState||(k.playbackState={}),k.playbackState.compositeVideoState=Q.compositeVideoState)});
  6045. this.events.Z(T,"internalaudioformatchange",function(k,l){var v=Q.api.getVideoData(void 0,!0);v==null||v.T9("atrkchg",{id:k,m:l});if(v&&Ra(v))for(l=Q.api.getAvailableAudioTracks(),l=g.B(l),v=l.next();!v.done;v=l.next())if(v.value.getLanguageInfo().getId()===k){Q.api.G().K_=k;break}});
  6046. this.events.Z(T,"onPlaybackAudioChange",function(){Q.api.tY()});
  6047. ws(T,"setCompositeParam",function(k){Q.compositeVideoState=k});
  6048. this.api.V("web_watch_enable_multiview_manager")&&ws(T,"setCompositeVideoOverlayRendererComponent",function(k){Q.setCompositeVideoOverlayRendererComponent(k)})};
  6049. xa5=function(T,Q){var k;((k=T.T)==null?void 0:k.id)!==(Q==null?void 0:Q.id)&&(T.T&&(T.S.delete(T.T.id),T.api.oM([T.T],1)),T.T=Q)};
  6050. nWb=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){var l=k.value,v=void 0;k=Number((v=l.playbackRelativePosition)==null?void 0:v.utcTimeMs)/1E3;var L=void 0;v=k+Number((L=l.duration)==null?void 0:L.seconds);L="composite_embargo_"+k;l.onEnter&&(l=l.onEnter.filter(T.N),l.length&&(T.S.set(L,l),T.api.addUtcCueRange(L,k,v,"compositeembargo",!1)))}};
  6051. KJy=function(T,Q){var k;return(k=Q.onEnter)==null?void 0:k.some(T.N)};
  6052. PzX=function(T){GQ.call(this,T);ws(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));ws(this.api,"updateDownloadState",this.updateDownloadState.bind(this));ws(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));ws(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));ws(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));ws(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));ws(this.api,"setUpPositionSyncInterval",
  6053. this.setUpPositionSyncInterval.bind(this))};
  6054. HmX=function(T){GQ.call(this,T);var Q=this;this.loaded=!1;this.overlay=null;this.events=new g.Bj(T);g.P(this,this.events);this.T=new g.Bj(T);g.P(this,this.T);this.events.Z(T,"modulesCreated",function(){Q.ox()&&Q.load()});
  6055. this.events.Z(T,"modulesDestroyed",function(k){var l=!0;switch(k){case 2:case 3:l=!1;break;case 4:l=Q.api.getPresentingPlayerType()===1}l&&Q.unload()})};
  6056. S8=function(T){GQ.call(this,T);var Q=this;ws(T,"getAvailableQualityData",function(){return Q.getAvailableQualityData()});
  6057. ws(T,"getAvailableQualityDataAndMessaging",function(){return Q.getAvailableQualityDataAndMessaging()})};
  6058. tLy=function(T,Q,k){var l=[],v=Q?156595:151874;T=g.B(T);for(var L=T.next();!L.done;L=T.next()){var q=L.value;L=q.video;q={formatId:q.id,qualityLabel:L.qualityLabel,quality:L.quality,isPlayable:Q};if(L=k.get(L.qualityLabel))q.paygatedQualityDetails={paygatedIndicatorText:L.paygatedIndicatorText,endpoint:L.endpoint,veType:v,trackingParams:L.trackingParams};l.push(q)}return l};
  6059. Omb=function(T){for(var Q=0,k=0;k<T.length;k++)if(T[k].paygatedQualityDetails){var l=T[k];T.splice(k,1);T.splice(Q,0,l);Q++}};
  6060. p1J=function(T){var Q=new Set,k=new Map,l={};T=g.B(T);for(var v=T.next();!v.done;v=T.next()){v=v.value;var L=v.quality,q=v.isPlayable,Y=v.qualityLabel;Y&&L&&(q&&k.has(L)&&k.get(L)!==Y?Q.add(L):q&&k.set(L,Y),l[Y]||(l[Y]=v))}k=[];l=g.B(Object.values(l));for(T=l.next();!T.done;T=l.next())v=T.value,(T=v.quality)&&!Q.has(T)&&(v.formatId=void 0),k.push(v);return k};
  6061. Cv=function(T){GQ.call(this,T);var Q=this;this.L=1;this.Rg=null;this.dn={LHd:function(){return Q.L}};
  6062. this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"d6de4videobindingchange",function(k){Q.Z5(k)});
  6063. this.events.Z(T,"csiinitialized",function(){WJX(Q)})};
  6064. WJX=function(T){if($a6()){T.Rg=T.api.eZ();T.T=new GN;T.L=2;var Q=g.jj(T.api.G().experiments,"html5_d6de4_defer_timeout_ms");T.Rg.Uh("pt_pish");Q?g.Zq(function(){JGy(T)},Q):T.api.V("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){JGy(T)}):JGy(T)}};
  6065. JGy=function(T){if($a6()){T.Rg=T.api.eZ();var Q=g.jj(T.api.G().experiments,"html5_d6de4_cloud_project_number");T.Rg.Uh("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:Q}).then(function(l){T.S=l;var v;(v=T.T)==null||v.resolve();T.Rg.Uh("pt_pif")}).catch(function(l){Bp(l,"player_start");
  6066. T.Rg.Uh("pt_pie");var v;(v=T.T)==null||v.reject(l)})}catch(l){Bp(l,"player_start_catch");
  6067. T.api.T9("pfes",{});var k;(k=T.T)==null||k.reject(l)}}};
  6068. egH=function(T,Q){if(T.S&&!T.V("html5_disable_d6de4_mint_debug")){var k=Q.videoId;T.L=3;T.Rg.Uh("pt_ms");try{T.S.requestToken(k).then(function(l){T.Rg.Uh("pt_mf");if(l=DE(l))Q.W9={ZYk:l}}).catch(function(l){T.Rg.Uh("pt_me");
  6069. Bp(l,"player_generate");T.handleError(l,Q)})}catch(l){Bp(l,"player_generate_catch"),T.handleError(l,Q)}}};
  6070. FJt=function(T,Q){T.api.V("html5_enable_d6de4_cold_start_and_error")&&(Q.W9={coldStartInfo:{clientState:T.L}})};
  6071. Bp=function(T,Q){T.message&&g.rB(Error(Q+"_"+T.message))};
  6072. $a6=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
  6073. zk=function(T){g.p.call(this,{X:"button",Rk:["ytp-pip-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},W:[bY6()]});var Q=this;this.api=T;this.listen("click",this.onClick);var k=this.api.Gk(),l=k.subscribe("visibilitystatechange",function(){Q.Aj(k.x$())});
  6074. this.addOnDisposeCallback(function(){k.Y_(l)});
  6075. OU(T,this.element,this);this.Aj(k.x$())};
  6076. X9=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"standardControlsInitialized",function(){Q.createButton()});
  6077. g.Cn(this.api.G())&&(this.V("web_watch_pip")||this.V("web_shorts_pip"))&&ws(this.api,"setDocumentPictureInPicture",function(k){Q.setDocumentPictureInPicture(k)})};
  6078. EWT=function(T){var Q=T.api.getVideoData();T.button.o_(Q.QO)};
  6079. yGI=function(T){GQ.call(this,T);var Q=this;this.loaded=!1;this.j=0;this.T=!1;this.C={};this.S=[];this.Y=0;this.B=!1;this.events=new g.Bj(T);g.P(this,this.events);this.L=new g.Bj(T);g.P(this,this.L);this.events.Z(T,"modulesCreated",function(){Q.ox()&&Q.load()});
  6080. this.events.Z(T,"modulesDestroyed",function(k){var l=Q.api.getPresentingPlayerType();switch(k){case 2:case 3:k=l!==1&&!(l===5||l===6||l===7);break;case 4:k=!Q.T;break;default:k=!0}k&&Q.unload()})};
  6081. im6=function(T,Q){g.s8(T.api.G())&&(Q?T.N.show():T.N.hide())};
  6082. VLu=function(T){var Q=T.api.getVideoData().interstitials,k=[];Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var v=k,L=v.push,q=T,Y=l.playerVars,U=l.Lv,R=l.time,Z="yto-"+q.j++;R=new g.$d(R,R,{id:Z,priority:7,namespace:"yto"});q.C[Z]={playerVars:Y,playerType:U};L.call(v,R);v=T.api.getVideoData(1);v=Object.assign({oauth_token:v.oauthToken},l.playerVars);T.api.preloadVideoByPlayerVars(v,l.Lv)}T.api.fY(k,1)};
  6083. TUf=function(T){var Q=T.S[T.Y];if(Q){var k=T.C[Q];Q=k.playerVars;k=k.playerType;T.T=!0;T.Y++;var l=T.api.getVideoData(1);Q=Object.assign({oauth_token:l.oauthToken},Q);T.api.loadVideoByPlayerVars(Q,!0,k,!0);T.T=!1}};
  6084. QCJ=function(T){T.Y<T.S.length?TUf(T):(g.J(T.api.getPlayerStateObject(1),2)&&(T.B=!0),T.T=!0,T.Y=0,T.S.length=0,T.api.WJ(),T.T=!1)};
  6085. jCg=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"musicDisableUi",function(){g.oF(Q.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
  6086. ws(this.api,"musicEnableUi",function(){g.Lb(Q.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
  6087. N4=function(T,Q,k){Q=Q===void 0?!0:Q;k=k===void 0?!1:k;g.p.call(this,{X:"div",J:"ytp-suggested-action"});var l=this;this.U=T;this.h3=this.qO=this.hj=this.z9=this.Y=this.j=this.expanded=this.enabled=this.u9=!1;this.zg=new g.FA(function(){l.badge.element.style.width=""},200,this);
  6088. this.sK=new g.FA(function(){wW(l);dW(l)},200,this);
  6089. this.Jj=this.U.V("delhi_modern_web_player")?40:34;this.dismissButton=new g.p({X:"button",Rk:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.P(this,this.dismissButton);this.L=new g.p({X:"div",J:"ytp-suggested-action-badge-expanded-content-container",W:[{X:"label",J:"ytp-suggested-action-badge-title",S6:"{{badgeLabel}}"},this.dismissButton]});g.P(this,this.L);this.e6=new g.p({X:"div",J:"ytp-suggested-action-badge-icon-container",W:[Q?{X:"div",J:"ytp-suggested-action-badge-icon"}:
  6090. ""]});g.P(this,this.e6);this.badge=new g.p({X:k?"div":"button",Rk:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[this.e6,this.L]});g.P(this,this.badge);this.badge.XB(this.element);this.D=new g.TZ(this.badge,250,!1,100,function(){l.U.V("web_player_overlay_positioned_layout")&&l.hide()});
  6091. g.P(this,this.D);T.V("web_player_overlay_positioned_layout")&&this.hide();this.f_=new g.TZ(this.L,250,!1,100);g.P(this,this.f_);this.Tg=new g.ee(this.cbd,null,this);g.P(this,this.Tg);this.K_=new g.ee(this.zo,null,this);g.P(this,this.K_);g.P(this,this.zg);g.P(this,this.sK);this.U.createServerVe(this.badge.element,this.badge,!0);this.U.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.Z(this.U,"onHideControls",function(){l.jt(!1)});
  6092. this.Z(this.U,"onShowControls",function(){l.jt(!0)});
  6093. this.Z(this.badge.element,"click",this.nO);this.Z(this.dismissButton.element,"click",this.Np);this.Z(this.U,"pageTransition",this.RW);this.Z(this.U,"appresize",this.FE);this.Z(this.U,"fullscreentoggled",this.SGV);this.Z(this.U,"cardstatechange",this.b_k);this.Z(this.U,"annotationvisibility",this.tkV,this);this.Z(this.U,"offlineslatestatechange",this.W0V,this)};
  6094. wW=function(T){g.gl(T.badge.element,"ytp-suggested-action-badge-with-controls",T.hj||!T.j)};
  6095. dW=function(T,Q){var k=T.FY();T.expanded!==k&&(T.expanded=k,Q===void 0||Q?(T.Tg.stop(),T.K_.stop(),T.zg.stop(),T.Tg.start()):(T.L.o_(T.expanded),g.gl(T.badge.element,"ytp-suggested-action-badge-expanded",T.expanded)),T.cC())};
  6096. kuy=function(T){var Q=T.text||"",k=g.gK("ytp-suggested-action-badge-title",T.element);k&&g.CO(k,Q);T.badge.element.setAttribute("aria-label",Q);T.dismissButton.element.setAttribute("aria-label",T.p_?T.p_:"")};
  6097. AO=function(T,Q,k,l,v,L){var q={X:"div",J:"ytp-panel"};if(k){var Y="ytp-panel-back-button";var U="ytp-panel-title";var R={X:"div",J:"ytp-panel-header",W:[{X:"div",Rk:["ytp-panel-back-button-container"],W:[{K:{"aria-label":"\u8fd4\u56de\u4e0a\u4e00\u4e2a\u83dc\u5355"},X:"button",Rk:["ytp-button",Y]}]},{X:"span",Rk:[U],K:T.V("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,W:[k]}]};if(v){var Z="ytp-panel-options";R.W.push({X:"button",Rk:["ytp-button",Z],W:[l]})}q.W=[R]}l=
  6098. !1;L&&(L={X:"div",J:"ytp-panel-footer",W:[L]},l=!0,q.W?q.W.push(L):q.W=[L]);g.M1.call(this,q);this.content=Q;l&&q.W?Q.XB(this.element,q.W.length-1):Q.XB(this.element);this.Me=!1;this.aR=l;k&&(k=this.L_(U),this.Z(this.L_(Y),"click",this.bO),this.Z(k,"click",this.bO),this.Me=!0,v&&this.Z(this.L_(Z),"click",v));Q.subscribe("size-change",this.nI,this);this.Z(T,"fullscreentoggled",this.nI);this.U=T};
  6099. g.b_=function(T,Q,k,l,v,L){Q=Q===void 0?null:Q;var q={role:"menu"};Q&&(q.id=Q);Q=new g.M1({X:"div",J:"ytp-panel-menu",K:q});AO.call(this,T,Q,k,l,v,L);this.menuItems=Q;this.items=[];g.P(this,this.menuItems)};
  6100. g.rW=function(T){for(var Q=g.B(T.items),k=Q.next();!k.done;k=Q.next())k.value.unsubscribe("size-change",T.kK,T);T.items=[];try{g.IO(T.menuItems.element)}catch(L){var l,v;g.rB(new g.Wy("Failed to remove menu items from panel menu.",{error:L.message,originalStack:L.stack,childToBeRemoved:(v=(l=T.menuItems.element.firstChild)==null?void 0:l.textContent)!=null?v:"child element not found"}))}T.menuItems.publish("size-change")};
  6101. l4C=function(T,Q){return Q.priority-T.priority};
  6102. g.cp=function(T,Q){g.LA.call(this,T,{X:"div",Rk:["ytp-popup",Q||""]},100,!0);this.T=[];this.C=this.B=null;this.maxHeight=this.maxWidth=0;this.size=new g.Ji(0,0);this.listen("keydown",this.dk)};
  6103. o$f=function(T){var Q=T.T[T.T.length-1];if(Q){g.QP(T.element,T.maxWidth||"100%",T.maxHeight||"100%");g.W2(Q.element,"width","");g.W2(Q.element,"height","");g.W2(Q.element,"maxWidth","100%");g.W2(Q.element,"maxHeight","100%");g.W2(Q.content.element,"height","");var k=g.jC(Q.element);k.width+=1;k.height+=1;g.W2(Q.element,"width",k.width+"px");g.W2(Q.element,"height",k.height+"px");g.W2(Q.element,"maxWidth","");g.W2(Q.element,"maxHeight","");var l=0;Q.Me&&(l=g.jC(Q.L_("ytp-panel-header")).height);var v=
  6104. 0;Q.aR&&(v=Q.L_("ytp-panel-footer"),g.W2(v,"width",k.width+"px"),v=g.jC(v).height);g.W2(Q.content.element,"height",k.height-l-v+"px");Q.element instanceof HTMLElement&&(l=Q.element,v=l.scrollWidth-l.clientWidth,l.offsetWidth-l.clientWidth>0&&v>0&&(k.width+=v,g.W2(Q.element,"width",k.width+"px")));T.size=k}};
  6105. g.Dx=function(T,Q){var k=T.T[T.T.length-1];k!==Q&&(T.T.push(Q),v$g(T,k,Q))};
  6106. g.a4=function(T){if(!(T.T.length<=1)){var Q=T.T.pop(),k=T.T[0];T.T=[k];v$g(T,Q,k,!0)}};
  6107. v$g=function(T,Q,k,l){Lvu(T);Q&&(Q.unsubscribe("size-change",T.yd,T),Q.unsubscribe("back",T.NN,T));k.subscribe("size-change",T.yd,T);k.subscribe("back",T.NN,T);if(T.Sr){g.oF(k.element,l?"ytp-panel-animate-back":"ytp-panel-animate-forward");k.XB(T.element);k.focus();T.element.scrollLeft=0;T.element.scrollTop=0;var v=T.size;o$f(T);g.QP(T.element,v);T.B=new g.FA(function(){qLt(T,Q,k,l)},20,T);
  6108. T.B.start()}else k.XB(T.element),Q&&Q.detach()};
  6109. qLt=function(T,Q,k,l){T.B.dispose();T.B=null;g.oF(T.element,"ytp-popup-animating");l?(g.oF(Q.element,"ytp-panel-animate-forward"),g.Lb(k.element,"ytp-panel-animate-back")):(g.oF(Q.element,"ytp-panel-animate-back"),g.Lb(k.element,"ytp-panel-animate-forward"));g.QP(T.element,T.size);T.C=new g.FA(function(){g.Lb(T.element,"ytp-popup-animating");Q.detach();g.qN(Q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);T.C.dispose();T.C=null},250,T);
  6110. T.C.start()};
  6111. Lvu=function(T){T.B&&g.yq(T.B);T.C&&g.yq(T.C)};
  6112. u_=function(T){g.cp.call(this,T,"ytp-shopping-product-menu");this.xP=new g.b_(this.U);g.P(this,this.xP);this.hide();g.Dx(this,this.xP);g.TQ(this.U,this.element,4)};
  6113. MWt=function(T,Q,k){var l,v=Q==null?void 0:(l=Q.text)==null?void 0:l.simpleText;v&&(k=g$X(T,k,v,Q==null?void 0:Q.icon,Q==null?void 0:Q.secondaryIcon),Q.navigationEndpoint&&k.listen("click",function(){T.U.tj("innertubeCommand",Q.navigationEndpoint);T.hide()},T))};
  6114. YLC=function(T,Q,k){var l,v=Q==null?void 0:(l=Q.text)==null?void 0:l.simpleText;v&&g$X(T,k,v,Q==null?void 0:Q.icon).listen("click",function(){var L;(Q==null?void 0:(L=Q.icon)==null?void 0:L.iconType)==="HIDE"?T.U.publish("featuredproductdismissed"):Q.serviceEndpoint&&T.U.tj("innertubeCommand",Q.serviceEndpoint);T.hide()},T)};
  6115. g$X=function(T,Q,k,l,v){Q=new g.UQ(g.RR({},[],!1,!!v),Q,k);v&&Q.updateValue("secondaryIcon",UKy(v));Q.setIcon(UKy(l));g.P(T,Q);T.xP.A6(Q,!0);return Q};
  6116. UKy=function(T){if(!T)return null;switch(T.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
  6117. fill:"#fff"}}]};case "FLAG":return{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return SrX();case "HIDE":return{X:"svg",K:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"g",W:[{X:"path",K:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]};
  6118. case "OPEN_IN_NEW":return BZ()}};
  6119. nv=function(T){N4.call(this,T,!1,!0);this.isCounterfactual=this.S=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.j=!0;this.overflowButton=new g.p({X:"button",Rk:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.p({X:"img",J:"ytp-suggested-action-badge-img",K:{src:"{{url}}"}});
  6120. this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.p({X:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.p({X:"a",J:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{X:"div",J:"ytp-suggested-action-details",W:[{X:"text",J:"ytp-suggested-action-title",S6:"{{title}}"},{X:"text",J:"ytp-suggested-action-subtitle",S6:"{{subtitle}}"},{X:"text",J:"ytp-suggested-action-metadata-text",
  6121. S6:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.XB(this.L.element);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.U,g.ej("suggested_action_view_model"),this.qG6);this.Z(this.U,g.Ft("suggested_action_view_model"),this.T5q);this.Z(this.overflowButton.element,"click",this.xv);this.Z(T,"featuredproductdismissed",this.Np);this.U.createServerVe(this.banner.element,this.banner,!0)};
  6122. R95=function(T){T.isInitialized&&(T.enabled=T.isVisible,T.qO=T.isVisible,dW(T),T.FE(),T.thumbnailImage.o_(T.isVisible),T.shouldHideDismissButton||T.dismissButton.o_(T.isVisible),T.shouldShowOverflowButton&&T.overflowButton.o_(T.isVisible))};
  6123. Kv=function(){nv.apply(this,arguments)};
  6124. Za6=function(T){GQ.call(this,T);this.T=new Kv(this.api);g.P(this,this.T);g.TQ(this.api,this.T.element,4)};
  6125. xk=function(T){GQ.call(this,T);var Q=this;this.T=!0;var k=new g.Bj(T);g.P(this,k);k.Z(T,"internalaudioformatchange",function(l,v){f4b(Q,l,v)});
  6126. k.Z(T,"videoplayerreset",function(){GuT(Q)});
  6127. k.Z(T,"videodatachange",function(l,v){Q.onVideoDataChange(l,v)})};
  6128. f4b=function(T,Q,k){if(k){var l="";mKu(T,Q)&&(l=Q,T.api.G().K_=Q);if(l&&I4X(T,l)){uvu(T.api,l);var v;DQ(cB(T.api.G(),(v=T.api.getVideoData())==null?void 0:g.YD(v)),function(L){h9b(T,l,L)})}}};
  6129. GuT=function(T){var Q;if((Q=CP())==null?0:Q.size){var k;DQ(cB(T.api.G(),(k=T.api.getVideoData())==null?void 0:g.YD(k)),function(l){(l=sCg(l))&&I4X(T,l)&&(T.api.G().K_=l)})}};
  6130. h9b=function(T,Q,k){sCg(k)!==Q&&(SLC([{settingItemId:Pp(k),settingOptionValue:{stringValue:Q}}]),DQ(T.HG(),function(l){Cvy(l,Pp(k),{stringValue:Q})}))};
  6131. Caf=function(T,Q){ar(DQ(DQ(T.HG(),function(k){return s$b(k,[Pp(Q)])}),function(k){if(k){k=g.B(k);
  6132. for(var l=k.next();!l.done;l=k.next()){var v=l.value;l=v.key;v=v.value;l&&v&&(SLC([{settingItemId:l,settingOptionValue:v}]),GuT(T))}}}),function(){T.T=!0})};
  6133. mKu=function(T,Q){T=T.api.getAvailableAudioTracks();T=g.B(T);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.getLanguageInfo().getId()===Q)return k;return null};
  6134. sCg=function(T){T=Pp(T);var Q=CP();T=Q?Q.get(T):void 0;return T&&T.stringValue?T.stringValue:""};
  6135. Pp=function(T){var Q=(484).toString();T&&(Q=(483).toString());return Q};
  6136. I4X=function(T,Q){var k;return Q.split(".")[0]!==""&&((k=T.api.getVideoData())==null?void 0:!Ra(k))};
  6137. SLC=function(T){var Q=CP();Q||(Q=new Map);T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value,Q.set(k.settingItemId,k.settingOptionValue);Q=JSON.stringify(Object.fromEntries(Q));g.ri("yt-player-user-settings",Q,2592E3)};
  6138. g.Hp=function(T,Q,k,l,v,L,q){g.UQ.call(this,g.RR({"aria-haspopup":"true"}),Q,T);this.YB=l;this.D=!1;this.L=null;this.options={};this.S=new g.b_(k,void 0,T,v,L,q);g.P(this,this.S);this.listen("keydown",this.Xy);this.listen("click",this.open)};
  6139. BU6=function(T){if(T.L){var Q=T.options[T.L];Q.element.getAttribute("aria-checked");Q.element.setAttribute("aria-checked","false");T.L=null}};
  6140. z9g=function(T,Q){g.Hp.call(this,"\u4f11\u7720\u5b9a\u65f6\u5668",g.rh.SLEEP_TIMER,T,Q);this.U=T;this.j={};this.B=this.W0("Off");this.C=this.T="";T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z",
  6141. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(Q));
  6142. this.Y=new g.p({X:"div",Rk:["ytp-menuitem-label-wrapper"],W:[{X:"div",S6:"\u89c6\u9891\u7ed3\u5c3e"},{X:"div",Rk:["ytp-menuitem-sublabel"],S6:"{{content}}"}]});g.P(this,this.Y);this.listen("click",this.onClick);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"presentingplayerstatechange",this.Aj);this.Z(T,"settingsMenuVisibilityChanged",this.Uv);T.createClientVe(this.element,this,218889);this.Aj();this.U.tj("onSleepTimerFeatureAvailable")};
  6143. Xwf=function(T){var Q="Off 10 15 20 30 45 60".split(" "),k;((k=T.U.getVideoData())==null?0:k.isLivePlayback)||Q.push("End of video");k=T.U.getPlaylist();var l;k&&((l=k.listId)==null?void 0:l.type)!=="RD"&&Q.push("End of playlist");T.VE(g.IQ(Q,T.W0));T.j=g.yJ(Q,T.W0,T);Q=T.W0("End of video");T.options[Q]&&g.YH(T.options[Q],T.Y)};
  6144. wwX=function(T,Q){var k=T.j[Q],l=k==="End of video"||k==="End of playlist";k==="Off"&&(T.T="");T.U.getPlayerState()!==0&&T.U.getPlayerState()!==5||!l?(T.B=Q,g.Hp.prototype.BT.call(T,Q),T.U$(Q),T.U.tj("onSleepTimerSettingsChanged",k)):T.U.tj("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"\u89c6\u9891\u5df2\u7ed3\u675f"}}}}})};
  6145. tO=function(T){GQ.call(this,T);var Q=this;T.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new z9g(Q.api,Q.api.K$()),g.P(Q,Q.menuItem))});
  6146. T.addEventListener("openSettingsMenuItem",function(k){if(k==="menu_item_sleep_timer"){if(!Q.menuItem){var l;(l=Q.api.K$())==null||l.fA()}Q.menuItem.open()}});
  6147. ws(T,"resetSleepTimerMenuSettings",function(){Q.resetSleepTimerMenuSettings()});
  6148. ws(T,"setSleepTimerTimeLeft",function(k){Q.setSleepTimerTimeLeft(k)});
  6149. ws(T,"setVideoTimeLeft",function(k){Q.setVideoTimeLeft(k)})};
  6150. dK5=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"onSnackbarMessage",function(k){switch(k){case 1:k=Q.api.getPlayerStateObject(),k.isBuffering()&&(Q.api.V("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.J(k,8)&&g.J(k,16))&&Q.api.tj("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u6709\u4e2d\u65ad\u95ee\u9898\uff1f"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
  6151. text:{runs:[{text:"\u627e\u51fa\u539f\u56e0"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},
  6152. durationHintMs:5E3,popupType:"TOAST"}})}})};
  6153. g.pv=function(T,Q,k,l,v){Q=Q===void 0?!1:Q;l=l===void 0?!1:l;v=v===void 0?!1:v;g.ox.call(this);this.D=v;this.C=!1;this.Y=new wi(this);this.N=this.B=null;this.L=this.S=!1;g.P(this,this.Y);this.target=T;this.T=Q;this.j=k||T;this.C=l;Q&&(g.Y1&&this.target.setAttribute("draggable","true"),v||(this.target.style.touchAction="none"));Ol(this)};
  6154. Wp=function(T){g.N5(T.Y,!T.T)};
  6155. Ol=function(T){T.N=null;T.B=null;T.Z($k("over"),T.JX);T.Z("touchstart",T.Vn);T.T&&T.Z($k("down"),T.Le6)};
  6156. NUf=function(T,Q){for(var k=0;k<Q.changedTouches.length;k++){var l=Q.changedTouches[k];if(l.identifier===T.B)return l}return null};
  6157. $k=function(T){return window.navigator.msPointerEnabled?"MSPointer"+T.charAt(0).toUpperCase()+T.substring(1):"mouse"+T};
  6158. JO=function(T){return T&&AEJ?Qf(T)||document:document};
  6159. baX=function(T){AEJ=T};
  6160. rEX=function(T,Q){g.p.call(this,{X:"div",Rk:["ytp-overlay","ytp-speedmaster-overlay"],W:[{X:"div",J:"ytp-speedmaster-user-edu",W:[{X:"div",J:"ytp-speedmaster-label",S6:Q},{X:"div",J:"ytp-speedmaster-icon",S6:"{{icon}}"}]}]});this.U=T;this.T=this.L_("ytp-speedmaster-user-edu");this.updateValue("icon",s16());g.oF(this.T,"ytp-speedmaster-has-icon");this.U.createClientVe(this.T,this,173040,!0);this.Zb()};
  6161. F9=function(T){GQ.call(this,T);var Q=this;this.Y=this.L=!1;this.S=new g.Bj(T);g.P(this,this.S);this.D="2x";this.speedmasterUserEdu=new rEX(T,this.D);g.P(this,this.speedmasterUserEdu);g.TQ(this.api,this.speedmasterUserEdu.element,4);this.T=new g.pv(this.api.Hx().XO,!0,null,!1,!0);g.P(this,this.T);this.delay=new g.FA(this.xm,500,this);g.P(this,this.delay);this.S.Z(T,"videodatachange",function(){e8(Q)},this);
  6162. this.S.Z(T,"presentingplayerstatechange",function(){e8(Q)},this);
  6163. this.S.Z(T,"autonavvisibility",function(){e8(Q)},this);
  6164. this.api.Gk().subscribe("visibilitystatechange",function(){e8(Q)});
  6165. this.S.Z(T,"rootnodemousedown",function(k){Q.C=k});
  6166. this.V("web_speedmaster_spacebar_control")&&(this.S.Z(T,"keyboardserviceglobalkeydown",function(k,l){Q.z9=l;cE6(Q,k,l.n9,!0)},this),this.S.Z(T,"keyboardserviceglobalkeyup",function(k){cE6(Q,k,!1,!1)},this))};
  6167. El=function(T){T.delay.stop();T.T.unsubscribe("dragmove",T.B,T);T.T.unsubscribe("dragend",T.N,T);T.L&&(T.L=!1,T.speedmasterUserEdu.Zb(),T.api.setPlaybackRate(T.hj),T.api.showControls(),T.i9&&T.api.pauseVideo(),T.V("enable_smart_skip_speedmaster_on_web")&&T.api.publish("speedmasterchanged",!1))};
  6168. cE6=function(T,Q,k,l){k||(l?Q.keyCode!==32||Q.repeat||T.L||!T.Y||g.Ez(T.delay):El(T))};
  6169. e8=function(T){var Q,k;var l=!!T.D&&!((Q=T.api.getVideoData())==null?0:Q.isLivePlayback)&&!T.api.eD()&&T.api.getPresentingPlayerType()!==2&&!g.J(T.api.getPlayerStateObject(),2)&&!((k=g.aa(T.api))==null?0:k.tb())&&!T.api.isEmbedsShortsMode()&&URT(T.api.Gk());T.Y!==l&&(T.Y=l,T.Y?T.T.subscribe("dragstart",T.qO,T):(T.T.unsubscribe("dragstart",T.qO,T),T.T.unsubscribe("dragmove",T.B,T),T.T.unsubscribe("dragend",T.N,T),El(T)))};
  6170. yW=function(T,Q,k){g.Jz.call(this,Q,T);this.T=k};
  6171. g.i_=function(T){ml.call(this);var Q=this;this.T=T;this.N={};this.listener=function(k){Q.dispatchEvent(new yW(Q,k.type,k))}};
  6172. a4C=function(T){var Q=T.getVideoData(),k=T.T_(),l=k.xB(),v=T.G(),L=T.yH(),q=L.K0*8/1024,Y=L.uj/1024,U=L.Gr,R=L.vM,Z=L.playerState.state.toString(16),f=k.getCurrentTime().toFixed(2),G=FL(k.Q8(),",",3),m="";if(Q.isDaiEnabled()){Q.enableServerStitchedDai&&(m+=Q.hd?"DS":"SS");m=Q.lf()?m+"LIFA, ":m+"DAI, ";var I=L.mw;I&&(m+=I)}UU(Q)&&!Q.lf()&&(m+="LIFAE, ");cv(Q)&&(m+="SABR, ");if(Q.fetchType){switch(Q.fetchType){case "onesie":I="o";break;case "gp":I="gp";break;default:I="gvi"}m+="vd:"+I+", "}(v=v.VD)&&
  6173. (m=v.T?m+"wa, ":m+"w, ");m+="s:"+Z+" t:"+f+" b:"+G+" ";k.isSeeking()&&(m+="S");k.isPaused()&&(m+="P");k.isEnded()&&(m+="E");T.isOrchestrationLeader()&&(m+=" L");(k=L.lA)&&(m+=" l:"+k.toFixed());k=L.currentTime;Z=Q.mS;k&&k>Z.start&&k<Z.end&&(m+=" as");k=m;m=g.E4(CG)("_start",void 0);Z=[];f=g.B(["pl_i","vir","or_p","orfb","pbs"]);for(G=f.next();!G.done;G=f.next())G=G.value,(v=g.E4(CG)(G,void 0))&&m&&(v-=m,Z.push(G+":"+Math.round(v)));m=Z.join(" ");Z=g.SF();f=g.V5(T).TC;G=Q.L&&!Q.L.T?"display:none":
  6174. "";if((v=Q.clientPlaybackNonce)&&v.length==16){v+="AAAA";I=0;for(var z="",w=0;w<20;w++)if(I=(I<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(v.charAt(w)),w%5==4){for(var r="",A=0;A<6;A++)r="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(I&31)+r,I>>=5;z+=r}v=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)+" "+(z.substr(12,4)+" "+z.substr(16,4))}else v="";q={video_id_and_cpn:String(Q.videoId)+" / "+v,codecs:"",dims_and_frames:"",bandwidth_kbps:q.toFixed(0)+" Kbps",buffer_health_seconds:U.toFixed(2)+
  6175. " s",date:""+(new Date).toString(),drm_style:R?"":"display:none",drm:R,debug_info:k,extra_debug_info:"",bandwidth_style:G,network_activity_style:G,network_activity_bytes:Y.toFixed(0)+" KB",shader_info:f,shader_info_style:f?"":"display:none",playback_categories:""};Y=l.clientWidth+"x"+l.clientHeight+(Z>1?"*"+Z.toFixed(2):"");U="-";L.totalVideoFrames&&(U=(L.droppedVideoFrames||0)+" dropped of "+L.totalVideoFrames);q.dims_and_frames=Y+" / "+U;T=T.getVolume();Y=Vwu(Q);var D;if((D=Q.Y)==null?0:D.audio.S)D=
  6176. "VB";else{var K;D=((K=Q.Y)==null?0:K.audio.T)?"DRC":Math.round(T*Y)+"%"}K=Math.round(T)+"% / "+D;D=Q.uK.toFixed(1);isFinite(Number(D))&&(K+=" (content loudness "+D+"dB)");q.volume=K;q.resolution=l.videoWidth+"x"+l.videoHeight;if(l=Q.S){if(K=l.video)D=K.fps,D>1&&(q.resolution+="@"+D),(D=L.N6)&&D.video&&(q.resolution+=" / "+D.video.width+"x"+D.video.height,D.video.fps>1&&(q.resolution+="@"+D.video.fps)),q.codecs=DKC(l),!Q.Y||l.audio&&l.video?l.Xb&&(q.codecs+=" / "+l.Xb+"A"):q.codecs+=" / "+DKC(Q.Y),
  6177. K.T||K.primaries?(D=K.T||"unknown",D==="smpte2084"?D+=" (PQ)":D==="arib-std-b67"&&(D+=" (HLG)"),q.color=D+" / "+(K.primaries||"unknown"),q.color_style=""):q.color_style="display:none";if(l.debugInfo)for(q.fmt_debug_info="",l=g.B(l.debugInfo),K=l.next();!K.done;K=l.next())K=K.value,q.fmt_debug_info+=K.label+":"+K.text+" ";q.fmt_debug_info_style=q.fmt_debug_info&&q.fmt_debug_info.length>0?"":"display:none"}l=Q.isLivePlayback;K=Q.KY;q.live_mode_style=l||K?"":"display:none";q.live_latency_style=l?"":
  6178. "display:none";if(K)q.live_mode="Post-Live"+(Kt(Q)?" Manifestless":"");else if(l){K=L.n0;q.live_latency_secs=K.toFixed(2)+"s";l=Kt(Q)?"Manifestless, ":"";Q.hj&&(l+="Windowed, ");D="Uncertain";if(K>=0&&K<120)if(Q.latencyClass&&Q.latencyClass!=="UNKNOWN")switch(Q.latencyClass){case "NORMAL":D="Optimized for Normal Latency";break;case "LOW":D="Optimized for Low Latency";break;case "ULTRALOW":D="Optimized for Ultra Low Latency";break;default:D="Unknown Latency Setting"}else D=Q.isLowLatencyLiveStream?
  6179. "Optimized for Low Latency":"Optimized for Smooth Streaming";l+=D;(K=L.Z7)&&(l+=", seq "+K.sequence);q.live_mode=l}!L.isGapless||NY(Q)&&L.jZ||(q.playback_categories+="Gapless ");q.playback_categories_style=q.playback_categories?"":"display:none";q.bandwidth_samples=L.I6;q.network_activity_samples=L.ea;q.live_latency_samples=L.f0;q.buffer_health_samples=L.hS;L=g.mK(Q);if(Q.cotn||L)q.cotn_and_local_media=(Q.cotn?Q.cotn:"null")+" / "+L;q.cotn_and_local_media_style=q.cotn_and_local_media?"":"display:none";
  6180. hy(Q,"web_player_release_debug")?(q.release_name=M[7],q.release_style=""):q.release_style="display:none";q.debug_info&&m.length>0&&q.debug_info.length+m.length<=60?q.debug_info+=" "+m:q.extra_debug_info=m;q.extra_debug_info_style=q.extra_debug_info&&q.extra_debug_info.length>0?"":"display:none";return q};
  6181. DKC=function(T){var Q=/codecs="([^"]*)"/.exec(T.mimeType);return Q&&Q[1]?Q[1]+" ("+T.itag+")":T.itag};
  6182. VW=function(T,Q,k,l,v){g.p.call(this,{X:"div",J:"ytp-horizonchart"});this.C=Q;this.sampleCount=k;this.Y=l;this.B=v;this.index=0;this.heightPx=-1;this.L=this.S=null;this.T=Math.round(T/k);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.C+"em"};
  6183. Tx=function(T,Q){if(T.heightPx===-1){var k=null;try{k=g.fO("CANVAS"),T.S=k.getContext("2d")}catch(Y){}if(T.S){var l=T.T*T.sampleCount;T.L=k;T.L.width=l;T.L.style.width=l+"px";T.element.appendChild(T.L)}else for(T.sampleCount=Math.floor(T.sampleCount/4),T.T*=4,k=0;k<T.sampleCount;k++)l=g.fO("SPAN"),l.style.width=T.T+"px",l.style.left=T.T*k+"px",T.element.appendChild(l)}k=T.element.clientHeight||24;k!==T.heightPx&&(T.heightPx=k,T.S&&(k=(window.devicePixelRatio||1)>1?2:1,T.L.height=T.heightPx*k,T.L.style.height=
  6184. T.heightPx+"px",T.S.scale(1,k)));Q=g.B(Q);for(l=Q.next();!l.done;l=Q.next()){k=T;var v=T.index,L=l.value;for(l=0;l+2<k.Y.length&&k.Y[l+1]<L;)l++;L=Math.min(1,(L-k.Y[l])/(k.Y[l+1]-k.Y[l]));if(k.S)k.S.fillStyle=k.B[l],k.S.fillRect(v*k.T,0,k.T,k.heightPx),k.S.fillStyle=k.B[l+1],k.S.fillRect(v*k.T,k.heightPx*(1-L),k.T,k.heightPx);else{v=k.element.children[v];var q=window.devicePixelRatio||1;L=Math.min(k.heightPx,Math.round(k.heightPx*L*q)/q)||0;v.style.height=L+"px";v.style.backgroundColor=k.B[l+1];v.style.borderTop=
  6185. "solid "+(k.heightPx-L)+"px "+k.B[l]}T.index=(T.index+1)%T.sampleCount}Q=T.index;T.S?T.S.clearRect(Q*T.T,0,T.T,T.heightPx):(T=T.element.children[Q],T.style.height="0px",T.style.borderTop="")};
  6186. Q_=function(T){var Q=null;Q={X:"button",Rk:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],K:{title:"close"},S6:"[X]"};g.p.call(this,{X:"div",Rk:["html5-video-info-panel","ytp-sfn"],W:[Q,{X:"div",Rk:["html5-video-info-panel-content","ytp-sfn-content"],W:[{X:"div",W:[{X:"div",S6:"Video ID / sCPN"},{X:"span",S6:"{{video_id_and_cpn}}",J:"ytp-sfn-cpn"}]},{X:"div",W:[{X:"div",S6:"Viewport / Frames"},{X:"span",S6:"{{dims_and_frames}}"}]},{X:"div",W:[{X:"div",S6:"Current / Optimal Res"},{X:"span",
  6187. S6:"{{resolution}}"}]},{X:"div",W:[{X:"div",S6:"Volume / Normalized"},{X:"span",S6:"{{volume}}"}]},{X:"div",W:[{X:"div",S6:"Codecs"},{X:"span",S6:"{{codecs}}"}]},{X:"div",K:{style:"{{shader_info_style}}"},W:[{X:"div",S6:"Shader Info"},{X:"span",S6:"{{shader_info}}"}]},{X:"div",K:{style:"{{color_style}}"},W:[{X:"div",S6:"Color"},{X:"span",S6:"{{color}}"}]},{X:"div",K:{style:"{{drm_style}}"},W:[{X:"div",S6:"Protected"},{X:"span",S6:"{{drm}}"}]},{X:"div",K:{style:"{{bandwidth_style}}"},W:[{X:"div",S6:"Connection Speed"},
  6188. {X:"span",W:[{X:"span",S6:"{{bandwidth_chart}}"},{X:"span",S6:"{{bandwidth_kbps}}"}]}]},{X:"div",K:{style:"{{network_activity_style}}"},W:[{X:"div",S6:"Network Activity"},{X:"span",W:[{X:"span",S6:"{{network_activity_chart}}"},{X:"span",S6:"{{network_activity_bytes}}"}]}]},{X:"div",W:[{X:"div",S6:"Buffer Health"},{X:"span",W:[{X:"span",S6:"{{buffer_health_chart}}"},{X:"span",S6:"{{buffer_health_seconds}}"}]}]},{X:"div",K:{style:"{{live_latency_style}}"},W:[{X:"div",S6:"Live Latency"},{X:"span",W:[{X:"span",
  6189. S6:"{{live_latency_chart}}"},{X:"span",S6:"{{live_latency_secs}}"}]}]},{X:"div",K:{style:"{{live_mode_style}}"},W:[{X:"div",S6:"Live Mode"},{X:"span",S6:"{{live_mode}}"}]},{X:"div",K:{style:"{{playback_categories_style}}"},W:[{X:"div",S6:"Playback Categories"},{X:"span",S6:"{{playback_categories}}"}]},{X:"div",K:{style:"{{fmt_debug_info_style}}"},W:[{X:"div",S6:"Format Debug Info"},{X:"span",S6:"{{fmt_debug_info}}"}]},{X:"div",W:[{X:"div",S6:"Mystery Text"},{X:"span",S6:"{{debug_info}}"}]},{X:"div",
  6190. K:{style:"{{extra_debug_info_style}}"},W:[{X:"div",S6:""},{X:"span",W:[{X:"span",S6:"{{extra_debug_info}}"}]}]},{X:"div",W:[{X:"div",S6:"Date"},{X:"span",S6:"{{date}}"}]},{X:"div",K:{style:"{{cotn_and_local_media_style}}"},W:[{X:"div",S6:"COTN / Local Media"},{X:"span",S6:"{{cotn_and_local_media}}"}]},{X:"div",K:{style:"{{release_style}}"},W:[{X:"div",S6:"Player Release"},{X:"span",S6:"{{release_name}}"}]}]}]});this.ZV=T;this.position=0;this.B=!0;Q?this.Z(this.L_("ytp-sfn-close"),"click",this.hide):
  6191. this.Z(this.element,"click",this.hide);T=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];Q="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var k=T.map(function(l){return l/4});
  6192. this.D={};this.T=new VW(300,1,150,T,Q);g.P(this,this.T);this.updateValue("bandwidth_chart",this.T);this.L=new VW(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.P(this,this.L);this.updateValue("live_latency_chart",this.L);this.S=new VW(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.P(this,this.S);this.updateValue("buffer_health_chart",this.S);this.C=new VW(300,1,150,k,Q);g.P(this,this.C);this.updateValue("network_activity_chart",
  6193. this.C);this.delay=new g.FA(this.Aj,500,this);g.P(this,this.delay);this.Y=new g.FA(this.j,2E4,this);g.P(this,this.Y)};
  6194. Kvy=function(T){GQ.call(this,T);var Q=this;ws(T,"getStatsForNerds",function(){return a4C(Q.api)});
  6195. ds(T,"showVideoInfo",function(){uxI(Q,!0)});
  6196. ds(T,"hideVideoInfo",function(){uxI(Q,!1)});
  6197. ds(T,"isVideoInfoVisible",function(){return n$u(Q)})};
  6198. uxI=function(T,Q){var k=n$u(T);T.T||(T.T=new Q_(T.api),g.P(T,T.T),g.TQ(T.api,T.T.element,4));T.T.o_(Q);var l=e$(T.api.Bx());l&&l.loaded&&k!==Q&&l.RF();Q&&T.api.T9("sfn",{},!0)};
  6199. n$u=function(T){var Q;return!((Q=T.T)==null||!Q.Sr)};
  6200. jp=function(){g.x.call(this);this.S=null;this.startTime=this.duration=0;this.delay=new g.ee(this.T,null,this);g.P(this,this.delay)};
  6201. xKH=function(T,Q){if(Q.X==="path")return Q.K.d;if(Q.W)for(var k=0;k<Q.W.length;k++){var l=Q.W[k];if(l&&typeof l!=="string"&&(l=xKH(T,l)))return l}};
  6202. Oa5=function(T,Q,k){k=xKH(T,k);var l=Q.getElementsByTagName("path")[0],v=l.getAttribute("d");if(l.getAttribute("id")){var L=vZ();Q=Q.getElementsByTagName("use");for(var q=0;q<Q.length;q++)Q[q].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+L);l.setAttribute("id",L)}var Y=Pay(v),U=Pay(k);Hay(T,function(R){l.setAttribute("d",tWt(Y,U,R))},200)};
  6203. Hay=function(T,Q,k){T.S=Q;T.startTime=(0,g.XY)();T.duration=k;T.T()};
  6204. Pay=function(T){var Q=[];T=T.match(pwI);for(var k=0;k<T.length;k++){var l=T[k]===" "?NaN:Number(T[k]);Q.push(isNaN(l)?T[k]:l)}return Q};
  6205. tWt=function(T,Q,k){for(var l="",v=0;v<T.length;v++){var L=T[v];l=typeof L==="number"?l+(L+(Q[v]-L)*k):l+L}return l};
  6206. kY=function(T){g.p.call(this,{X:"button",Rk:["ytp-size-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},S6:"{{icon}}"});this.api=T;this.zs=null;this.transition=new jp;g.P(this,this.transition);this.Z(T,"sizestylechange",this.Aj);this.Z(T,"fullscreentoggled",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);T.createClientVe(this.element,
  6207. this,139116);this.Aj();this.listen("click",this.onClick);OU(T,this.element,this)};
  6208. Wv6=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"standardControlsInitialized",function(){Q.button=new kY(T);g.P(Q,Q.button);T.oN(Q.button,"RIGHT_CONTROLS_RIGHT")})};
  6209. Fvy=function(T){GQ.call(this,T);var Q=this,k={};this.xm=(k.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},k.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(l){return $Kb(Q,l)},k.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(l){return $Kb(Q,l)},k.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return Q.api.G().experiments.Wd("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?Q.N&&Q.j:Q.N&&Q.C},k.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER=
  6210. function(){return Q.hj},k);
  6211. this.hj=this.j=this.C=this.N=!1;this.Y={};this.events=new g.Bj(T);g.P(this,this.events);this.B=new g.pv(this.api.Hx().XO);g.P(this,this.B);this.api.V("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.jj(this.api.G().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(k=g.jj(this.api.G().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.z9=new g.FA(this.VW,k,this),g.P(this,this.z9));this.events.Z(T,"videodatachange",function(l,v){if(l!=="dataupdated"||
  6212. v.videoId!==Q.videoId||!qE(Q.timelyActions,JE5(v)))Q.onVideoDataChange(v)});
  6213. this.events.Z(T,"presentingplayerstatechange",function(l){Q.Pl(l)});
  6214. T.V("enable_smart_skip_player_controls_shown_on_web")&&(this.events.Z(T,"onShowControls",function(){Q.N=!0;Q.VW()}),this.events.Z(T,"onHideControls",function(){Q.N=!1}),this.B.subscribe("hoverstart",function(){Q.C=!0;
  6215. Q.VW()},this),this.B.subscribe("hoverend",function(){Q.C=!1},this),T.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.Z(T,"progressBarHoverStart",function(){Q.j=!0;
  6216. if(Q.api.V("enable_smart_skip_web_player_bar_hover_length_threshold")){var l;(l=Q.z9)==null||g.Ez(l)}else Q.VW()}),this.events.Z(T,"progressBarHoverEnd",function(){Q.j=!1;
  6217. if(Q.api.V("enable_smart_skip_web_player_bar_hover_length_threshold")){var l;(l=Q.z9)==null||l.stop()}})));
  6218. T.V("enable_smart_skip_speedmaster_on_web")&&this.events.Z(T,"speedmasterchanged",function(l){(Q.hj=l)&&Q.VW()});
  6219. this.events.Z(T,g.ej("timelyAction"),function(l){Q.onCueRangeEnter(l.getId())});
  6220. this.events.Z(T,g.Ft("timelyAction"),function(l){Q.onCueRangeExit(l.getId())});
  6221. T.V("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.Z(T,"keyboardserviceglobalkeydown",function(l,v){if((Gz?l.altKey:l.ctrlKey)&&l.keyCode===39&&Q.D&&Q.T){var L;l=g.t((L=lj(Q,Q.T))==null?void 0:L.rendererContext,e95);if(L=uA(l==null?void 0:l.onTap))Q.api.tj("innertubeCommand",L),v&&(v.WU=!0),v=Fv(),(L=cjy(v))&&(l=g.C9(0))&&Ff(v.client,l,L,void 0)}},this);
  6222. this.S=new g.p({X:"div",Rk:["ytp-player-content","ytp-timely-actions-content"]});this.S.hide();ws(T,"insertTimelyActionUi",function(l){Q.S.element.children.length>0&&g.IO(Q.S.element);l.classList.add("ytp-timely-actions-overlay");Q.S.element.appendChild(l)});
  6223. g.P(this,this.S);this.V("web_player_overlay_positioned_layout")?this.events.Z(T,"basechromeinitialized",function(){Q.api.EF(Q.S.element,4,!0);Q.S.element.setAttribute("data-overlay-order","10")}):g.TQ(this.api,this.S.element,4)};
  6224. E$u=function(T){T.timelyActions&&(T.Y=T.timelyActions.reduce(function(Q,k){if(k.cueRangeId===void 0)return Q;Q[k.cueRangeId]=0;return Q},{}))};
  6225. lj=function(T,Q){if(T.timelyActions){T=g.B(T.timelyActions);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.cueRangeId===Q)return k}};
  6226. yEb=function(T,Q){if((T=lj(T,Q))&&T.onCueRangeExit)return uA(T.onCueRangeExit)};
  6227. $Kb=function(T,Q){return T.L===void 0?!1:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===5E3?T.L===72:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===1E4?T.L===74:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===5E3?T.L===71:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===1E4?T.L===73:!1};
  6228. ia6=function(T,Q){var k=Number(Q==null?void 0:Q.maxVisibleDurationMilliseconds);k&&(oh(T),T.qO=setTimeout(function(){if(T.T!==void 0&&(Q==null?void 0:Q.cueRangeId)===T.T){T.D=!1;var l=yEb(T,T.T);l&&T.api.tj("innertubeCommand",l)}},k))};
  6229. oh=function(T){T.qO&&clearTimeout(T.qO);T.qO=void 0;T.D=!1};
  6230. JE5=function(T){if(T=T.getWatchNextResponse()){var Q,k;T=(Q=T.playerOverlays)==null?void 0:(k=Q.playerOverlayRenderer)==null?void 0:k.timelyActionsOverlayViewModel;Q=g.t(T,VWy);if(Q!=null&&Q.timelyActions)return Q==null?void 0:Q.timelyActions.map(function(l){return g.t(l,Tkt)}).filter(function(l){return!!l})}};
  6231. QgJ=function(T){GQ.call(this,T);var Q=this;ds(this.api,"getPlaybackRate",function(){return Q.api.getPlaybackRate()});
  6232. ds(this.api,"setPlaybackRate",function(k){typeof k==="number"&&Q.api.setPlaybackRate(k)})};
  6233. va=function(T,Q,k,l){zQ.call(this,"VOICE_BOOST",g.rh.CZ);this.T=!1;this.U=T;this.YB=T.K$();this.Y=Q;this.L=k;this.hasVoiceBoostAudioTrack=l;this.Z(T,"videodatachange",this.S);this.setIcon(AgI());this.subscribe("select",this.B,this);this.S()};
  6234. Lk=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"settingsMenuInitialized",function(){jgg(Q)});
  6235. ws(this.api,"getVoiceBoostUserPreference",function(){return Q.getVoiceBoostUserPreference()});
  6236. ws(this.api,"setVoiceBoostUserPreference",function(l){Q.setVoiceBoostUserPreference(l)});
  6237. ws(this.api,"hasVoiceBoostAudioTrack",function(){return Q.hasVoiceBoostAudioTrack()});
  6238. var k;this.T=(k=vpC())!=null?k:0;this.updateEnvironmentData()};
  6239. jgg=function(T){T.menuItem||(T.menuItem=new va(T.api,function(Q){T.setVoiceBoostUserPreference(Q)},function(){return T.getVoiceBoostUserPreference()},function(){return T.hasVoiceBoostAudioTrack()}),g.P(T,T.menuItem))};
  6240. ktf=function(T){T=T.IK();if(!T)return!1;T=g.k5(T).exp||"";return T.includes("xpv")||T.includes("xpe")};
  6241. lNy=function(T){T=g.B(g.qD(T,!0));for(var Q=T.next();!Q.done;Q=T.next())if(ktf(Q.value))return!0;return!1};
  6242. o7g=function(T,Q){T=g.B(g.qD(T,!0));for(var k=T.next();!k.done;k=T.next())if(k=k.value,ktf(k)){var l={potc:"1",pot:Q};k.url&&(k.url=lC(k.url,l))}};
  6243. v7f=function(T){return g.a(function(Q){if(Q.S==1)return g.z5(Q,2),g.c(Q,T,4);if(Q.S!=2)return g.d6(Q,0);g.by(Q);g.BT(Q)})};
  6244. MD=function(T){GQ.call(this,T);var Q=this;this.useLivingRoomPoToken=!1;this.N=new g.Zb;this.T=!1;this.Rg=null;this.j=!1;this.Y=null;this.B=!1;var k=T.G().getWebPlayerContextConfig();this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"spsumpreject",function(l,v,L){Q.B=v;l&&Q.j&&!Q.Y&&(Q.V("html5_generate_content_po_token")&&L?Q.rY(L):Q.V("html5_generate_session_po_token")&&LLb(Q));Q.Y||Q.api.T9("stp",{s:+Q.j,b:+Q.B})});
  6245. this.events.Z(T,"poTokenVideoBindingChange",function(l){Q.rY(l)});
  6246. this.useLivingRoomPoToken=!(k==null||!k.useLivingRoomPoToken);T.addEventListener("csiinitialized",function(){Q.Rg=T.eZ();var l=(Q.V("html5_generate_session_po_token")||Q.V("html5_generate_content_po_token"))&&!Q.useLivingRoomPoToken;try{if(Q.V("html5_use_shared_owl_instance"))q05(Q);else if(l){Q.Rg.Uh("pot_isc");var v=g.jj(Q.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");v?(Q.L=Hn(),g.Zq(function(){gN(Q)},v)):Q.V("html5_webpo_idle_priority_job")?(Q.L=Hn(),g.Er(g.iu(),function(){gN(Q)})):
  6247. gN(Q)}}catch(L){L instanceof Error&&g.rB(L)}});
  6248. T.addEventListener("trackListLoaded",this.Ts.bind(this));T.G2(this)};
  6249. g7y=function(T){var Q=S4(T.experiments,"html5_web_po_request_key");return Q?Q:g.G4(T)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
  6250. M5J=function(T){var Q=new vf5,k={},l=(k["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",k);return new sp(Q,T,function(){return l})};
  6251. Y0f=function(T){return new Sh(T)};
  6252. YY=function(T,Q){T.V("html5_webpo_bge_ctmp")&&T.api.T9(Q,{hwpo:!!T.S,hwpor:T.T})};
  6253. q05=function(T){var Q,k;g.a(function(l){if(l.S==1)return YY(T,"swpo_i"),T.L=Hn(),Us(T),g.c(l,Ty(),2);if(l.S!=3)return Q=l.T,YY(T,"swpo_co"),g.c(l,aUu(Q),3);k=l.T;T.V("html5_web_po_token_disable_caching")||k.bI(150);T.S=k;YY(T,"swpo_cc");v7f(k.Rf()).then(function(){T.T=!0;T.N.resolve();YY(T,"swpo_re")});
  6254. g.Zq(function(){gN(T);YY(T,"swpo_si")},0);
  6255. g.BT(l)})};
  6256. ZqX=function(T){var Q=T.api.G(),k=M5J(g7y(Q)),l=k.Xo.bind(k);k.Xo=function(Y){var U;return g.a(function(R){if(R.S==1)return g.c(R,l(Y),2);U=R.T;T.api.T9("itr",{});return R.return(U)})};
  6257. try{var v=Y0f({J1:k,s3:{maxAttempts:5},uA:{XJ:"CLEn",disable:Q.experiments.Wd("html5_web_po_disable_remote_logging")||UdI.includes(g.Rq(Q.fz)||""),F7:yBC(Q.experiments),Ww:Q.experiments.Wd("wpo_gel_strz")?function(Y){var U=RR6.get(Y);U||(U=new mht(Y),U=new g.td(U),RR6.set(Y,U));return U}:void 0,
  6258. Em9:T.V("wpo_dis_lfdms")?0:1E3},gBd:g.rB});var L=new x2({FI:v,J1:k,onError:g.rB});v7f(L.Rf()).then(function(){T.T=!0;T.N.resolve()});
  6259. T.V("html5_web_po_token_disable_caching")||L.bI(150);g.P(T,v);g.P(T,L);T.S=L}catch(Y){g.rB(Y);var q;(q=v)==null||q.dispose()}};
  6260. gN=function(T){var Q=T.api.G();T.Rg.Uh("pot_ist");T.S||ZqX(T);T.V("html5_bandaid_attach_content_po_token")||(T.V("html5_generate_session_po_token")&&(Us(T),LLb(T)),Q=g.jj(Q.experiments,"html5_session_po_token_interval_time_ms")||0,Q>0&&(T.C=g.fh(function(){Us(T)},Q)),T.j=!0)};
  6261. Us=function(T){var Q,k,l,v;g.a(function(L){if(!T.V("html5_generate_session_po_token")||T.useLivingRoomPoToken)return L.return();Q=T.api.G();k=g.$i("EOM_VISITOR_DATA")||g.$i("VISITOR_DATA");l=Q.kh?Q.datasyncId:k;v=S4(Q.experiments,"html5_mock_content_binding_for_session_token")||Q.livingRoomPoTokenId||l;Q.vk=Rh(T,v);g.BT(L)})};
  6262. Rh=function(T,Q){if(!T.S){if(T.L)try{return T.L(Q)}catch(L){g.rB(L)}return""}try{T.Rg.Uh(T.T?"pot_cms":"pot_csms");var k={Nl:!0,V0:!0,uh:Q};T.V("html5_web_po_token_disable_caching")||(k.Qo={QN:Q,VO:!0,Hb:!0});var l=T.S.JL(k);T.Rg.Uh(T.T?"pot_cmf":"pot_csmf");if(T.T){var v;(v=T.Y)==null||v.resolve();T.Y=null;T.B&&(T.B=!1,T.api.app.Pd().NG(!1))}return l}catch(L){return g.rB(L),""}};
  6263. LLb=function(T){T.S&&(T.Y=new GN,T.N.promise.then(function(){T.Rg.Uh("pot_if");Us(T)}))};
  6264. g.ZG=function(T,Q,k){g.gl(T.element,"ytp-suggestion-set",!!Q.videoId);var l=Q.playlistId;k=Q.rO(k?k:"mqdefault.jpg");var v=null,L=null;Q instanceof iF&&(Q.lengthText?(v=Q.lengthText||null,L=Q.mO||null):Q.lengthSeconds&&(v=g.CN(Q.lengthSeconds),L=g.CN(Q.lengthSeconds,!0)));var q=!!l;l=q&&E8(l).type==="RD";var Y=Q instanceof iF?Q.isLivePlayback:null,U=Q instanceof iF?Q.isUpcoming:null,R=Q.author,Z=Q.shortViewCount,f=Q.publishedTimeText,G=[],m=[];R&&G.push(R);Z&&(G.push(Z),m.push(Z));f&&m.push(f);k=
  6265. {title:Q.title,author:R,author_and_views:G.join(" \u2022 "),aria_label:Q.ariaLabel||g.o0("\u89c2\u770b\u300a$TITLE\u300b",{TITLE:Q.title}),duration:v,timestamp:L,url:Q.fB(),is_live:Y,is_upcoming:U,is_list:q,is_mix:l,background:k?"background-image: url("+k+")":"",views_and_publish_time:m.join(" \u2022 "),autoplayAlternativeHeader:Q.o9};Q instanceof yk&&(k.playlist_length=Q.playlistLength);T.update(k)};
  6266. g.fk=function(T){var Q=T.G(),k=g.hW||g.Va?{style:"will-change: opacity"}:void 0,l=Q.Y,v=["ytp-modern-videowall-still"];Q.S&&v.push("ytp-videowall-show-text");g.p.call(this,{X:"a",Rk:v,K:{href:"{{url}}",target:l?Q.D:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},W:[{X:"div",J:"ytp-modern-videowall-still-image",K:{style:"{{background}}"},W:[{X:"span",J:"ytp-modern-videowall-still-info-duration",S6:"{{duration}}"}]},{X:"span",J:"ytp-modern-videowall-still-info",
  6267. K:{"aria-hidden":"true"},W:[{X:"span",J:"ytp-modern-videowall-still-info-bg",W:[{X:"span",J:"ytp-modern-videowall-still-info-content",K:k,W:[{X:"span",J:"ytp-modern-videowall-still-info-title",S6:"{{title}}"},{X:"span",J:"ytp-modern-videowall-still-info-author",S6:"{{author_and_views}}"},{X:"span",J:"ytp-modern-videowall-still-info-live",S6:"\u76f4\u64ad"}]}]}]},{X:"span",Rk:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},W:[{X:"span",
  6268. J:"ytp-modern-videowall-still-listlabel-icon"},"\u64ad\u653e\u5217\u8868",{X:"span",J:"ytp-modern-videowall-still-listlabel-length",W:[" (",{X:"span",S6:"{{playlist_length}}"},")"]}]},{X:"span",Rk:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},W:[{X:"span",J:"ytp-modern-videowall-still-listlabel-mix-icon"},"\u89c6\u9891\u5408\u8f91",{X:"span",J:"ytp-modern-videowall-still-listlabel-length",S6:" (50+)"}]}]});this.suggestion=null;this.S=
  6269. l;this.api=T;this.T=new g.Bj(this);g.P(this,this.T);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.T.Z(T,"videodatachange",this.onVideoDataChange);T.createServerVe(this.element,this);this.onVideoDataChange()};
  6270. g.fNb=function(T,Q){if(T.suggestion!==Q){T.suggestion=Q;var k=T.api.G();g.ZG(T,Q,"hqdefault.jpg");if(g.Qk(k)&&!T.api.V("web_player_log_click_before_generating_ve_conversion_params")){k=Q.fB();var l={};g.Ay(T.api,"addEmbedsConversionTrackingParams",[l]);k=g.sD(k,l);T.updateValue("url",k)}(Q=(Q=Q.sessionData)&&Q.itct)&&T.api.setTrackingParams(T.element,Q)}};
  6271. mdt=function(T,Q){g.p.call(this,{X:"div",Rk:["ytp-fullscreen-grid"],W:[{X:"div",J:"ytp-fullscreen-grid-hover-overlay",K:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},W:[{X:"div",J:"ytp-fullscreen-grid-hover-overlay-chevron",W:[{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"g",K:{filter:"url(#filter0_d_3104_799356)"},W:[{X:"path",K:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z",
  6272. fill:"white"}}]},{X:"defs",W:[{X:"filter",K:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},W:[{X:"feFlood",K:{"flood-opacity":"0",result:"BackgroundImageFix"}},{X:"feColorMatrix",K:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{X:"feOffset"},{X:"feGaussianBlur",K:{stdDeviation:"0.5"}},{X:"feComposite",K:{in2:"hardAlpha",operator:"out"}},{X:"feColorMatrix",K:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}},
  6273. {X:"feBlend",K:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{X:"feBlend",K:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{X:"div",J:"ytp-fullscreen-grid-main-content",W:[{X:"div",J:"ytp-fullscreen-grid-header",W:[{X:"div",J:"ytp-fullscreen-grid-header-buttons",W:[{X:"button",Rk:["ytp-grid-replay-button","ytp-button"],K:{title:"\u91cd\u653e","aria-keyshortcuts":"r","aria-label":"\u91cd\u653e","data-title-no-tooltip":"\u91cd\u653e"},
  6274. W:[u45()]},{X:"button",J:"ytp-fullscreen-grid-header-button",K:{"aria-label":"{{ariaLabel}}"}}]},{X:"button",Rk:["ytp-grid-menu-close","ytp-button"],K:{"aria-label":"\u5173\u95ed"},W:[g.Ix()]}]},{X:"div",J:"ytp-fullscreen-grid-stills-container"}]}]});var k=this;this.player=T;this.stills=[];this.videoData=null;this.currentState=0;this.C=this.L_("ytp-fullscreen-grid-main-content");this.B=this.L_("ytp-fullscreen-grid-header");T=this.L_("ytp-fullscreen-grid-header-buttons");this.L=this.L_("ytp-grid-menu-close");
  6275. this.S=this.L_("ytp-grid-replay-button");this.T=this.L_("ytp-fullscreen-grid-header-button");this.D=this.L_("ytp-fullscreen-grid-stills-container");this.Y=new g.Bj(this);g.P(this,this.Y);this.j=Q;if(this.B&&this.C&&T&&this.D&&this.T&&this.L){if(Q=this.L_("ytp-fullscreen-grid-hover-overlay"))this.Z(Q,"click",this.qC),OU(this.player,Q,this);this.S&&(this.Z(this.S,"click",function(l){k.yS(l)}),OU(this.player,this.S,this));
  6276. this.T&&this.Z(this.T,"click",this.qC);this.L&&this.Z(this.L,"click",this.qC);if(Q=this.player.getVideoData(1))this.videoData=Q,GtJ(this);this.player.createClientVe(this.B,this,223051);this.Y.Z(this.player,"videodatachange",this.onVideoDataChange);this.Y.Z(this.player,"presentingplayerstatechange",this.Pl)}};
  6277. GtJ=function(T){var Q=T.player.getPlayerStateObject();g.gl(T.player.getRootNode(),"ytp-grid-ended-state",g.J(Q,2))};
  6278. Ih=function(T){GQ.call(this,T);var Q=this;this.C=this.T=this.S=0;this.B=null;this.Y=0;this.isEnded=!1;this.j=null;var k=new g.Bj(T);g.P(this,k);this.qO=this.api.V("web_player_imax_theater_mode");this.L=this.api.V("web_player_enable_fullscreen_grid_components");k.Z(T,"fullscreentoggled",function(){Gx(Q)});
  6279. k.Z(T,"autohideupdate",function(l){l&&Q.S===2&&mc(Q,1)});
  6280. k.Z(T,"videodatachange",function(){if(Q.L){var l=Q.api.getVideoData(1);Q.videoData!==l&&Q.S===2&&mc(Q,1);Q.videoData=l}},this);
  6281. k.Z(T,"sizestylechange",function(){Q.L&&Gx(Q)});
  6282. ws(this.api,"setFullscreenQuickActions",function(l){Q.setFullscreenQuickActions(l)});
  6283. ws(this.api,"setPlayerOverlayVideoDetailsRenderer",function(l){Q.setPlayerOverlayVideoDetailsRenderer(l)});
  6284. this.L&&INX(this,k,T)};
  6285. INX=function(T,Q,k){Q.Z(k,"keyboardserviceglobalkeydown",function(l,v){T.L&&l.keyCode===86&&!l.repeat&&T.S!==0&&(v&&(v.Va=!0),hRC(T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))});
  6286. Q.Z(T.api.getRootNode(),"wheel",function(l){if(!T.j){var v;if(T.L&&(v=T.N)!=null&&v.element&&T.S!==0&&h4(T))if(g.oF(T.api.getRootNode(),"ytp-grid-scrolling"),T.Y===0&&(T.Y=window.innerHeight),T.S===1)T.Y!==0&&(T.T+=l.deltaY/T.Y,T.T=Math.min(Math.max(T.T,0),.85),Sp(T),sgt(T,Math.abs(T.T)>=.85));else if(T.S===2){v=l.deltaY<0;var L,q=((L=T.N)==null?void 0:L.element.scrollTop)===0;v&&q?T.Y!==0&&(T.T+=l.deltaY/T.Y,Sp(T),sgt(T,Math.abs(T.T)>=.85)):T.T!==0&&(T.T=0,Sp(T))}}},{passive:!0});
  6287. Q.Z(k,"standardControlsInitialized",function(){if(!T.N){T.N=new mdt(T.api,T.z9.bind(T));g.P(T,T.N);var l=T.api.getRootNode().querySelector(".ytp-chrome-bottom");l&&l.parentNode&&l.parentNode.insertBefore(T.N.element,l.nextSibling)}});
  6288. Q.Z(k,"presentingplayerstatechange",function(){Ck(T)});
  6289. Q.Z(k,"autonavvisibility",function(){Ck(T)});
  6290. T.api.Gk().subscribe("visibilitystatechange",function(){Ck(T)});
  6291. S0t(T,T.S)};
  6292. sgt=function(T,Q){T.B&&clearTimeout(T.B);Q?CG5(T):T.B=window.setTimeout(function(){CG5(T)},150)};
  6293. CG5=function(T){T.B&&(clearTimeout(T.B),T.B=null);T.Y=0;T.L&&T.S!==0&&(Math.abs(T.T)>=.15&&hRC(T,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),T.T=0,Sp(T),g.Lb(T.api.getRootNode(),"ytp-grid-scrolling"))};
  6294. hRC=function(T,Q){T.L&&(Q==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(T.j&&clearTimeout(T.j),T.j=window.setTimeout(function(){T.j=null},1E3)),T.S===1?mc(T,2):mc(T,1))};
  6295. h4=function(T){return T.api.isFullscreen()||T.qO&&T.api.zs()};
  6296. Gx=function(T){var Q=h4(T);g.gl(T.api.getRootNode(),"ytp-full-bleed-player",Q);T.D&&g.kj(T.D,Q);T.playerOverlayVideoDetailsRenderer&&g.kj(T.playerOverlayVideoDetailsRenderer,Q);T.L&&Ck(T)};
  6297. Ck=function(T){if(T.L){var Q;if(T.api.getPresentingPlayerType()===2||T.api.eD()||((Q=g.aa(T.api))==null?0:Q.tb())||T.api.isMinimized())mc(T,0);else{if(Q=g.J(T.api.getPlayerStateObject(),2))mc(T,2);else if(T.isEnded&&!Q){var k=h4(T)?1:0;T.isEnded=Q;mc(T,k)}else h4(T)?T.S!==2&&mc(T,1):mc(T,0);T.isEnded=Q}}};
  6298. mc=function(T,Q){T.S=Q;var k;(k=T.N)==null||k.OH(Q);T.T=0;Sp(T);S0t(T,Q)};
  6299. S0t=function(T,Q){T=T.api.getRootNode();g.gl(T,"ytp-fullscreen-grid-peaking",Q===1);g.gl(T,"ytp-fullscreen-grid-active",Q===2)};
  6300. Sp=function(T){requestAnimationFrame(function(){var Q=T.T-T.C,k=Q;T.T!==0&&(k=Math.max(-.01,Math.min(Q,.01)));T.C+=k;T.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+T.C.toString());T.C!==T.T&&Sp(T)})};
  6301. Bkt=function(T){GQ.call(this,T);var Q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"heartbeatRequest",function(k){if(Q.freePreviewUsageDetails.length||Q.freePreviewWatchedDuration!==null)k.heartbeatRequestParams||(k.heartbeatRequestParams={}),k.heartbeatRequestParams.unpluggedParams||(k.heartbeatRequestParams.unpluggedParams={}),Q.freePreviewUsageDetails.length>0?k.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
  6302. Q.freePreviewUsageDetails:k.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Q.freePreviewWatchedDuration}});
  6303. ws(T,"setFreePreviewWatchedDuration",function(k){Q.freePreviewWatchedDuration=k});
  6304. ws(T,"setFreePreviewUsageDetails",function(k){Q.freePreviewUsageDetails=k})};
  6305. Ba=function(T){g.x.call(this);this.features=[];var Q=this.T,k=new $H(T),l=new mW(T),v=new S8(T),L=new MD(T);var q=g.ZX(T.G())?void 0:new xH(T);var Y=new sl(T),U=new Kvy(T),R=new QgJ(T),Z=new WR(T);var f=g.ZX(T.G())?new Bkt(T):void 0;var G;var m=(G=T.G().getWebPlayerContextConfig())!=null&&G.cinematicSettingsAvailable?new aR(T):void 0;G=new pA(T);var I=T.V("enable_courses_player_overlay_purchase")?new RxC(T):void 0;var z=g.Cn(T.G())?new ggH(T):void 0;var w=new PR(T);var r=T.G().Y?new kqu(T):void 0;
  6306. var A=g.Qk(T.G())?new j36(T):void 0;var D=T.V("web_player_move_autonav_toggle")&&T.G().Ah?new eEJ(T):void 0;var K=g.Cn(T.G())?new X1J(T):void 0;var O=T.V("web_enable_speedmaster")&&g.Cn(T.G())?new F9(T):void 0;var E=T.G().QE?void 0:new Wv6(T);var e=T.V("report_pml_debug_signal")?new pC5(T):void 0;var vT=new PzX(T),f5=new X9(T);var qJ=g.uP(T.G())?new jCg(T):void 0;var g6=navigator.mediaSession&&window.MediaMetadata&&T.G().Ap?new I4(T):void 0;var QC=T.V("html5_enable_drc")&&!T.G().B?new KA(T):void 0;
  6307. var A5=new hN(T);var Et=g.Cn(T.G())?new Za6(T):void 0;var QJ=T.V("html5_enable_d6de4")?new Cv(T):void 0;var I_=g.Cn(T.G())&&T.V("web_sleep_timer")?new tO(T):void 0;var g$$=g.Qk(T.G())?new ogb(T):void 0;var cT=new xk(T),vg=new VsI(T),KW=new BuC(T);var Wm=T.V("enable_sabr_snackbar_message")?new dK5(T):void 0;var LJ=T.V("web_enable_timely_actions")?new Fvy(T):void 0;var b=new uf(T);var Hg=g.Cn(T.G())?new Ih(T):void 0;var D1=T.V("html5_enable_voice_boost")?new Lk(T):void 0;var kb=T.V("web_player_loop_settings_menu")&&
  6308. T.G().dC?new zgb(T):void 0;var w$=T.V("html5_masthead_default_playback_rate")&&!g.ZX(T.G())?new AGg(T):void 0;var X=T.V("web_player_playable_sequences_refactor")?new yGI(T):void 0;var jf=T.V("html5_enable_audio_quality_setting")&&T.V("html5_enable_audio_quality_setting_feature")?new CA(T):void 0;T=T.V("html5_ypc_clickwrap_module_refactor")?new HmX(T):void 0;Q.call(this,k,l,v,L,q,Y,U,R,Z,f,m,G,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ,void 0,g6,QC,A5,void 0,Et,QJ,I_,g$$,void 0,cT,vg,KW,void 0,Wm,LJ,b,Hg,D1,void 0,
  6309. kb,void 0,w$,X,jf,T)};
  6310. zRb=function(){this.S=this.T=NaN};
  6311. X5g=function(T,Q){this.Hd=T;this.timerName="";this.L=!1;this.S=NaN;this.Y=new zRb;this.T=Q||null;this.L=!1};
  6312. w5X=function(T,Q,k){var l=g.Ln(Q.FB)&&!Q.FB.B;if(Q.FB.iS&&(kL(Q.FB)||Q.FB.i9==="shortspage"||N0(Q.FB)||l)&&!T.L){T.L=!0;T.B=Q.clientPlaybackNonce;g.$i("TIMING_ACTION")||WN("TIMING_ACTION",T.Hd.csiPageType);T.Hd.csiServiceName&&WN("CSI_SERVICE_NAME",T.Hd.csiServiceName);if(T.T){l=T.T.eZ();for(var v=g.B(Object.keys(l)),L=v.next();!L.done;L=v.next())L=L.value,dS(L,l[L],T.timerName);l=g.E4(yFT)(T.T.hM);g.NL(l,T.timerName);l=T.T;l.T={};l.hM={}}g.NL({playerInfo:{visibilityState:g.E4(Enb)()},playerType:"LATENCY_PLAYER_HTML5"},
  6313. T.timerName);T.N!==Q.clientPlaybackNonce||Number.isNaN(T.S)||(bU("_start",T.timerName)?k=g.E4(CG)("_start",T.timerName)+T.S:g.rB(new g.Wy("attempted to log gapless pbs before CSI timeline started",{cpn:Q.clientPlaybackNonce})));k&&!bU("pbs",T.timerName)&&zx(T,k)}};
  6314. zx=function(T,Q,k){dS("pbs",Q!=null?Q:(0,g.XY)(),k!=null?k:T.timerName)};
  6315. XB=function(T){L4T();vrX();T.timerName=""};
  6316. ddX=function(T){if(T.T){var Q=T.T;Q.T={};Q.hM={}}T.L=!1;T.N=void 0;T.S=NaN};
  6317. NkX=function(T,Q){g.ox.call(this);this.FB=T;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.j={};this.S=0;if(T=Q.session_data)this.sessionData=Vt(T,"&");this.index=Math.max(0,Number(Q.index)||0);this.loop=!!Q.loop;this.startSeconds=Number(Q.startSeconds)||0;this.title=Q.playlist_title||"";this.description=Q.playlist_description||"";this.author=
  6318. Q.author||Q.playlist_author||"";Q.video_id&&(this.items[this.index]=Q);if(T=Q.api)typeof T==="string"&&T.length===16?Q.list="PL"+T:Q.playlist=T;if(T=Q.list)switch(Q.listType){case "user_uploads":this.listId=new FT("UU","PLAYER_"+T);break;default:var k=Q.playlist_length;k&&(this.length=Number(k)||0);this.listId=E8(T);if(T=Q.video)this.items=T.slice(0),this.loaded=!0}else if(Q.playlist){T=Q.playlist.toString().split(",");this.index>0&&(this.items=[]);T=g.B(T);for(k=T.next();!k.done;k=T.next())(k=k.value)&&
  6319. this.items.push({video_id:k});this.length=this.items.length;if(T=Q.video)this.items=T.slice(0),this.loaded=!0}this.setShuffle(!!Q.shuffle);if(T=Q.suggestedQuality)this.quality=T;this.j=WB(Q,"playlist_");this.L=(Q=Q.thumbnail_ids)?Q.split(","):[]};
  6320. AnC=function(T){return!!(T.playlist||T.list||T.api)};
  6321. bqf=function(T){var Q=T.index+1;return Q>=T.length?0:Q};
  6322. rnt=function(T){var Q=T.index-1;return Q<0?T.length-1:Q};
  6323. g.wN=function(T,Q,k,l){Q=Q!==void 0?Q:T.index;Q=T.items&&Q in T.items?T.items[T.order[Q]]:null;var v=null;Q&&(k&&(Q.autoplay="1"),l&&(Q.autonav="1"),v=new g.mR(T.FB,Q),g.P(T,v),v.xF=!0,v.startSeconds=T.startSeconds||v.clipStart||0,T.listId&&(v.playlistId=T.listId.toString()));return v};
  6324. cnb=function(T,Q){T.index=g.ti(Q,0,T.length-1);T.startSeconds=0};
  6325. DdX=function(T,Q){if(Q.video&&Q.video.length){T.title=Q.title||"";T.description=Q.description;T.views=Q.views;T.likes=Q.likes;T.dislikes=Q.dislikes;T.author=Q.author||"";var k=Q.loop;k&&(T.loop=k);k=g.wN(T);T.items=[];for(var l=g.B(Q.video),v=l.next();!v.done;v=l.next())if(v=v.value)v.video_id=v.encrypted_id,T.items.push(v);T.length=T.items.length;(Q=Q.index)?T.index=Q:T.findIndex(k);T.setShuffle(!1);T.loaded=!0;T.S++;T.T&&T.T()}};
  6326. n7X=function(T,Q){var k,l,v,L,q,Y,U;return g.a(function(R){if(R.S==1){k=g.Jt();var Z=T.G(),f={context:g.zh(T),playbackContext:{contentPlaybackContext:{ancestorOrigins:Z.ancestorOrigins}}},G=Z.getWebPlayerContextConfig();if(G==null?0:G.encryptedHostFlags)f.playbackContext.contentPlaybackContext.encryptedHostFlags=G.encryptedHostFlags;if(G==null?0:G.hideInfo)f.playerParams={showinfo:!1};G=Z.embedConfig;var m=T.bR;var I=Q.docid||Q.video_id||Q.videoId||Q.id;if(!I){I=Q.raw_embedded_player_response;if(!I){var z=
  6327. Q.embedded_player_response;z&&(I=JSON.parse(z))}if(I){var w,r,A,D,K,O;I=((O=g.t((w=I)==null?void 0:(r=w.embedPreview)==null?void 0:(A=r.thumbnailPreviewRenderer)==null?void 0:(D=A.playButton)==null?void 0:(K=D.buttonRenderer)==null?void 0:K.navigationEndpoint,g.Bv))==null?void 0:O.videoId)||null}else I=null}w=(w=I)?w:void 0;r=T.playlistId?T.playlistId:Q.list;A=Q.listType;if(r){var E;A==="user_uploads"?E={username:r}:E={playlistId:r};aNT(G,m,w,Q,E,Z.experiments);f.playlistRequest=E}else Q.playlist?
  6328. (E={templistVideoIds:Q.playlist.toString().split(",")},aNT(G,m,w,Q,E,Z.experiments),f.playlistRequest=E):w&&(E={videoId:w},m&&Z.V("embeds_enable_per_video_embed_config")?E.serializedThirdPartyEmbedConfig=m:G&&(E.serializedThirdPartyEmbedConfig=G),f.singleVideoRequest=E);l=f;v=g.Vr(uUJ);g.z5(R,2);return g.c(R,g.uU(k,l,v),4)}if(R.S!=2)return L=R.T,q=T.G(),Q.raw_embedded_player_response=L,q.xm=q5(Q,g.Qk(q)),q.L=q.xm==="EMBEDDED_PLAYER_MODE_PFL",L&&(Y=L,Y.trackingParams&&i8(Y.trackingParams)),R.return(new g.mR(q,
  6329. Q));U=g.by(R);U instanceof Error||(U=Error("b259802748"));g.bA(U);return R.return(T)})};
  6330. aNT=function(T,Q,k,l,v,L){l.index&&(v.playlistIndex=String(Number(l.index)+1));v.videoId=k?k:"";Q&&L.Wd("embeds_enable_per_video_embed_config")?v.serializedThirdPartyEmbedConfig=Q:T&&(v.serializedThirdPartyEmbedConfig=T)};
  6331. g.ND=function(T,Q){dN.get(T);dN.set(T,Q)};
  6332. g.A4=function(T){g.ox.call(this);this.loaded=!1;this.player=T};
  6333. KLT=function(){this.S=[];this.T=[]};
  6334. g.qD=function(T,Q){return Q?T.T.concat(T.S):T.T};
  6335. g.bj=function(T,Q){switch(Q.kind){case "asr":xdg(Q,T.S);break;default:xdg(Q,T.T)}};
  6336. xdg=function(T,Q){g.sA(Q,function(k){return T.equals(k)})||Q.push(T)};
  6337. g.rN=function(T){g.x.call(this);this.ZV=T;this.S=new KLT;this.L=null;this.N=[];this.j=[]};
  6338. g.ca=function(T,Q,k){g.rN.call(this,T);this.videoData=Q;this.audioTrack=k;this.T=null;this.Y=!1;this.N=Q.RS;this.j=Q.uL;this.Y=g.LX(Q)};
  6339. g.PGy=function(T,Q){var k;return T.G().V("safari_live_drm_captions_fix")&&((k=T.getVideoData())==null?0:k.bl())?!1:g.ZX(T.G())&&!Q.isManifestless};
  6340. g.DG=function(T,Q){return Wj(T.info.mimeType)?Q?T.info.itag===Q:!0:!1};
  6341. g.Hqg=function(T,Q){if(T.T!=null&&g.PGy(Q,T.T)&&T.T.T.rawcc!=null)return!0;if(!T.Cc())return!1;Q=!!T.T&&T.T.isManifestless&&Object.values(T.T.T).some(function(k){return g.DG(k,"386")});
  6342. T=!!T.T&&!T.T.isManifestless&&g.GNg(T.T);return Q||T};
  6343. g.ah=function(T,Q,k,l,v,L){g.rN.call(this,T);this.videoId=k;this.hR=v;this.eventId=L;this.B={};this.T=null;T=l||g.k5(Q).hl||"";T=T.split("_").join("-");this.Y=lC(Q,{hl:T})};
  6344. t5J=function(T,Q){g.x.call(this);var k=this;this.U=T;this.Y=Q;this.hM={};this.T={};this.S=null;this.L=new Set;this.N=new g.Bj(this);this.dn={U3_:function(){return k.Y}};
  6345. this.B=this.U.V("web_player_defer_modules");this.kP=new Map;g.P(this,this.N);this.N.Z(T,"videodatachange",this.onVideoDataChange)};
  6346. Oqy=function(T,Q){T.S=Q};
  6347. g.uj=function(T){return T.kP.get("captions")};
  6348. E7I=function(T,Q){switch(Q){case "ad":return p5t(T);case "annotations_module":return T.U.isEmbedsShortsMode()?T=!1:(Q=T.U,T=Q.G(),Q=Q.getVideoData(),T=T.L||Q.Lo||T.controlsType==="3"?!1:T.Bd.isEmpty()&&T.playerStyle!=="annotation-editor"&&T.playerStyle!=="live-dashboard"?!!Q.sK||!!g.lt(Q)||!!g.oa(Q):!0),T;case "asmjs":return WL6(T);case "creatorendscreen":return $db(T);case "embed":return g.Qk(T.U.G());case "endscreen":return g.JnX(T);case "heartbeat":return T.fq();case "kids":return Ze(T.U.G());
  6349. case "remote":return T.U.G().cg;case "miniplayer":return T.U.G().showMiniplayerUiWhenMinimized;case "offline":return T.U.G().A9;case "captions":return eRT(T);case "unplugged":return g.q0(T.U.G());case "ux":return T.U.G().u9;case "webgl":return FLf(T);case "ypc":return T.E3();case "ypc_clickwrap":return kE5(T.U.getVideoData());case "yto":return T.U.V("web_player_playable_sequences_refactor")?!1:!!T.U.getVideoData().D.includes("yto");default:return g.bA(Error("Module descriptor "+Q+" does not match")),
  6350. !1}};
  6351. nk=function(T,Q,k,l,v){var L;k=k===void 0?!1:k;l=l===void 0?!1:l;var q=T.kP.get(Q);if(!q||l)if(v||(v=function(){nk(T,Q,k,l)}),L||(L=function(){T.U.Ju(Q)}),q=q||yn6(T,Q,E7I(T,Q),v,L))T.kP.set(Q,q),q.create(),T.U.publish("modulecreated",Q),k&&T.U.Pk("onApiChange")};
  6352. V5g=function(T){var Q=Q===void 0?!1:Q;var k,l,v,L,q;return g.a(function(Y){if(Y.S==1)return(k=T.kP.get("asmjs"))&&!Q?Y.return(k):(l=dN.get("asmjs"))!=null?(v=l,Y.Ym(2)):g.c(Y,new Promise(function(U,R){iq5(T,"asmjs",function(){var Z=dN.get("asmjs");Z?U(Z):R("cannot load module asmjs")},R)}),3);
  6353. Y.S!=2&&(v=Y.T);L=v;if(!L)return Y.return(Promise.reject("cannot load module asmjs"));q=new L(T.U);T.kP.set("asmjs",q);q.create();return Y.return(q)})};
  6354. jwC=function(T){TY5(T)&&T.j$();QwJ(T)&&(nk(T,"captions",!0),nk(T,"endscreen"),T.Qs(),nk(T,"creatorendscreen",!0))};
  6355. QwJ=function(T){var Q=T.U.getVideoData(),k=T.B&&!Q.isInlinePlaybackNoAd;T.U.V("html5_defer_modules_on_ads_only")&&!Q.isAd()&&(k=!1);return k};
  6356. TY5=function(T){T=T.U.getVideoData();var Q;if(Q=T.V("web_player_defer_ad")){if(g.CW(T.D,"ad")||xyI(T)||T.enableServerStitchedDai)T=!1;else{Q=T.playerResponse;T=T.startSeconds;var k=Q==null?void 0:Q.adPlacements;if(Q=k){Q=Number.MAX_VALUE;k=g.B(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value.adPlacementRenderer){var v=void 0,L=(v=l.config)==null?void 0:v.adPlacementConfig;v=void 0;if(((v=L)==null?void 0:v.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var q=v=void 0;L=Number((v=L)==null?void 0:(q=
  6357. v.adTimeOffset)==null?void 0:q.offsetStartMilliseconds)||0;q=v=void 0;l=Number(((v=l.renderer)==null?void 0:(q=v.adBreakServiceRenderer)==null?void 0:q.prefetchMilliseconds)||0);l=L-l;l<Q&&(Q=l)}}Q=Q-5E3<=T*1E3}T=Q?!1:!0}Q=T}return Q};
  6358. eRT=function(T){var Q=T.U.getVideoData();return!!Q.vn||!!Q.captionTracks.length||g.Hqg(Q,T.U)};
  6359. g.JnX=function(T){var Q=T.U.G();if(Q.L||N0(Q)||Q.B||!Q.Hn&&!Q.m0)return!1;var k=T.U.getPresentingPlayerType();if(k===2||k===3)return!1;T=T.U.getVideoData();if(!T)return!1;k=!T.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay");k=T.isLivePlayback&&(!Q.V("allow_live_autoplay")||!k);Q=T.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");return!k||Q};
  6360. g.y5=function(T){return T.kP.get("webgl")};
  6361. FLf=function(T){var Q=T.U.getVideoData();T=T.U.G();var k=g.SpC(),l=T.V("enable_spherical_kabuki"),v=g.dj(T);if(g.j$(Q))return k||l||v;if(g.Th(Q))return v||k||l;if(g.Q5(Q))return v||k||!1;if(g.tL(Q))return v||!1;k=Q.S&&Q.S.video&&Q.S.video.isHdr();return v&&!g.Wv(Q)&&!k&&T.V("enable_webgl_noop")};
  6362. p5t=function(T){if(T.U.G().L)return!1;if(T=T.U.getVideoData(1).getPlayerResponse()){var Q=T.adPlacements;if(Q)for(var k=0;k<Q.length;k++)if(Q[k].adPlacementRenderer)return!0;if(T.adSlots)return!0}return!1};
  6363. $db=function(T){if(T.U.isEmbedsShortsMode())return!1;T=T.U;var Q=T.G();if(Q.L)return!1;var k;if(((k=Q.getWebPlayerContextConfig())==null?0:k.embedsEnableEmc3ds)||Q.controlsType==="3")return!1;if(Q.playerStyle==="creator-endscreen-editor")return!0;k=T.getVideoData();return!!k&&(!!g.FZH(k)||!!g.ENy(k))};
  6364. yn6=function(T,Q,k,l,v){try{if(k){var L=dN.get(Q);if(L)return new L(T.U);iq5(T,Q,l,v)}else T.U.Ju(Q)}catch(q){T.U.Ju(Q),g.bA(q)}return null};
  6365. Kk=function(T,Q,k){if(T.U.G().V("html5_dispose_modules_in_order"))for(var l=g.B(kwt),v=l.next();!v.done;v=l.next()){v=v.value;var L=T.kP.get(v);L&&(k||L.cH(Q))&&(g.od(L),T.kP.delete(v))}else for(l=g.B(T.kP),v=l.next();!v.done;v=l.next())L=g.B(v.value),v=L.next().value,(L=L.next().value)&&(k||L.cH(Q))&&(g.od(L),T.kP.delete(v));T.U.publish("modulesDestroyed",Q)};
  6366. xY=function(T){return T.kP.get("ad")};
  6367. lpb=function(T){if(Ze(T.U.G()))return T.kP.get("kids")};
  6368. e$=function(T){if(T.U.G().cg)return T.kP.get("remote")};
  6369. g.Pa=function(T){if(g.q0(T.U.G()))return T.kP.get("unplugged")};
  6370. zE5=function(T){if(T.U.G().u9)return T.kP.get("ux")};
  6371. oFT=function(T){if(T.U.G().showMiniplayerUiWhenMinimized)return T.kP.get("miniplayer")};
  6372. Ha=function(T){if(T.U.G().A9)return T.kP.get("offline")};
  6373. g.t4=function(T){return T.kP.get("annotations_module")};
  6374. Os=function(T){return T.kP.get("creatorendscreen")};
  6375. vFu=function(T){var Q,k;return g.a(function(l){if(l.S==1)return g.c(l,V5g(T),2);k=Q=l.T;return l.return(k)})};
  6376. LwT=function(T){return rq(function(){var Q;return(Q=T.kP.get("asmjs"))!=null?Q:vFu(T)})};
  6377. WL6=function(T){return T.U.G().V("html5_allow_asmjs")};
  6378. iq5=function(T,Q,k,l){if(T.Y){var v=qmC[Q];gFH(T,T.Y+v,function(){T.L.add(v);k.call(T)},l)}};
  6379. gFH=function(T,Q,k,l){function v(){T.wd()||l.call(T)}
  6380. function L(){T.wd()||k.call(T)}
  6381. for(var q=g.v2("SCRIPT"),Y=!1,U,R=0;R<q.length;R++){var Z=q[R];if(Z.src===Q||Z.getAttribute("data-original-src")===Q)U=Z}U||(U=g.fO("SCRIPT"),U.setAttribute("data-original-src",Q),Y=!0);var f=U.onload;U.onload=function(z){sJ(L);f&&f.apply(window,[z])};
  6382. var G=U.onerror;U.onerror=function(z){if(Math.random()<.01){var w=new g.Wy("Unable to load player module",Q,document.location&&document.location.origin);g.bA(w)}sJ(v);G&&G(z)};
  6383. var m=U,I=m.onreadystatechange;m.onreadystatechange=function(z){switch(m.readyState){case "loaded":case "complete":sJ(L)}I&&I(z)};
  6384. Y&&((q=T.U.G().cspNonce)&&U.setAttribute("nonce",q),g.SN(U,g.BN(Q)),q=g.v2("HEAD")[0]||document.body,q.insertBefore(U,q.firstChild),T.addOnDisposeCallback(function(){U.parentNode&&U.parentNode.removeChild(U)}))};
  6385. MDC=function(T,Q,k,l,v,L){g.ox.call(this);var q=this;this.target=T;this.api=Q;this.M4=k;this.S=0;this.B=!1;this.Y=new g.WX(NaN,NaN);this.T=new g.Bj(this);this.xm=this.L=this.C=null;g.P(this,this.T);Q=v||L?4E3:3E3;this.D=new g.FA(function(){pk(q,1,!1)},Q,this);
  6386. g.P(this,this.D);this.z9=new g.FA(function(){pk(q,2,!1)},Q,this);
  6387. g.P(this,this.z9);this.qO=new g.FA(function(){pk(q,2048,!1)},Q,this);
  6388. g.P(this,this.qO);this.hj=new g.FA(function(){pk(q,512,!1)},Q,this);
  6389. g.P(this,this.hj);this.i9=3E3;v||(this.L=this.T.Z(T,"mouseover",this.JX),this.T.Z(T,"mousemove",this.B8),this.T.Z(T,"mouseleave",this.k9j));this.api.V("delhi_modern_web_player")&&this.T.Z(T,"wheel",this.LtK);$1?this.T.Z(T,"keypress",this.Vx):this.T.Z(T,"focusin",this.Ve);this.N=this.T.Z(T,"mousedown",this.e4);this.j=this.T.Z(T,"touchstart",this.C8,void 0,!0);pk(this,640,!0)};
  6390. YmI=function(T){pk(T,4,!1);T.C&&(T.T.J6(T.C),T.C=null,T.L=T.T.Z(T.target,"mouseover",T.JX));T.L&&(T.T.J6(T.L),T.L=T.T.Z(T.target,"mouseover",T.JX))};
  6391. pk=function(T,Q,k){T.wd();var l=!T.S;k?(T.S|=Q,Q&1&&T.D.start(),Q&2&&T.z9.start(),Q&2048&&T.qO.start()):(T.S&=~Q,Q&1&&T.D.stop(),Q&2&&T.z9.stop(),Q&2048&&T.qO.stop(),Q&512&&T.hj.stop());T.S&512&&!(T.S&128)&&g.Ez(T.hj,T.i9);Q=!T.S;l!==Q&&T.publish("autohideupdate",Q)};
  6392. g.$Y=function(T){g.p.call(this,{X:"button",Rk:["ytp-large-play-button","ytp-button"],K:{"aria-label":"\u64ad\u653e",title:"\u64ad\u653e"},W:["{{largePlayButtonChildren}}"]});this.api=T;this.Z(T,"videodatachange",this.Aj);this.Z(T,"basechromeinitialized",this.uj9);T=this.api.G();T.C&&Wa&&(this.listen("click",this.Uu,this),this.listen("touchstart",this.OYq,this));g.Ln(T)&&g.oF(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Aj()};
  6393. g.J4=function(T){var Q=["ytp-cued-thumbnail-overlay"];T.G().B&&Q.push("ytp-exp-contain-thumbnail");g.p.call(this,{X:"div",Rk:Q,W:[{X:"div",J:"ytp-cued-thumbnail-overlay-image"}]});Q=this.L_("ytp-cued-thumbnail-overlay");var k=new g.$Y(T);g.P(this,k);k.XB(Q);this.S=new g.Bj(this);g.P(this,this.S);this.api=T;this.Y=this.L_("ytp-cued-thumbnail-overlay-image");this.L=k;this.fade=new g.TZ(this,250);g.P(this,this.fade);this.T=new g.FA(this.Aj,0,this);g.P(this,this.T);this.Aj();this.Z(T,"appresize",this.zx);
  6394. this.Z(T,"presentingplayerstatechange",this.onStateChange);this.Z(T,"ypcStateChanged",this.Rvd);kL(T.G())&&this.Z(T,"videoplayerreset",this.onReset)};
  6395. g.ep=function(T){g.p.call(this,{X:"div",Rk:["ytp-error"],K:{role:"alert"},W:[{X:"div",J:"ytp-error-content",W:[{X:"div",J:"ytp-error-icon-container",W:[{X:"svg",K:{fill:"#fff",viewBox:"0 0 48 48"},W:[{X:"path",K:{d:"M0 0h48v48H0V0z",fill:"none"}},{X:"path",K:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{X:"div",J:"ytp-error-content-wrap",
  6396. W:[{X:"div",J:"ytp-error-content-wrap-reason",S6:"{{content}}"},{X:"div",J:"ytp-error-content-wrap-subreason",S6:"{{subreason}}"}]}]}]});this.api=T;this.keys=[];this.L=!1;T.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Sr)};
  6397. g.FB=function(T){T=T.split(UC5);for(var Q=[],k=0;k<T.length;k+=3){var l=T[k++].split("\n");Q.push(l[0]);for(var v=1;v<l.length;v++)Q.push({X:"br"}),Q.push(l[v]);k<T.length&&Q.push({X:"a",K:{href:T[k],target:T[k+1]},S6:T[k+2]})}return{X:"span",W:Q}};
  6398. y_=function(T,Q,k,l,v,L,q){l=l===void 0?!1:l;v=v===void 0?!1:v;q=q===void 0?!0:q;v||(v=T.api.G().Y);var Y=T.api.getVideoData();Q=g.o0(g.Es[Q]||"",l?{CPN:Y.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);l=[];L&&l.push({X:"h2",S6:L});l.push(Q[0]);q&&l.push({X:"br"});l.push({X:"a",K:{href:k,target:v?"_blank":null},J:"ytp-error-link",S6:Q[2]});T.L=!0;l.push(Q[4]);return{X:"span",W:l}};
  6399. Rc5=function(T,Q){for(var k=T.element.getElementsByTagName("a"),l=0;l<k.length;l++){var v=T.Z(k[l],"click",Q);T.keys.push(v)}};
  6400. Z_I=function(T){for(var Q=0;Q<T.keys.length;Q++)T.J6(T.keys[Q]);T.keys=[]};
  6401. fp5=function(T){g.p.call(this,{X:"div",Rk:["ytp-overlays-container"],W:[{X:"div",J:"ytp-overlay-top-left"},{X:"div",J:"ytp-overlay-top-right"},{X:"div",J:"ytp-overlay-bottom-left"},{X:"div",J:"ytp-overlay-bottom-right"}]});this.L=this.L_("ytp-overlay-top-left");this.Y=this.L_("ytp-overlay-top-right");this.T=this.L_("ytp-overlay-bottom-left");this.S=this.L_("ytp-overlay-bottom-right");g.TQ(T,this.element,4)};
  6402. ij=function(T,Q,k,l){for(var v=Number(Q.getAttribute("data-overlay-order"))||0,L=0,q=null,Y=g.B(k.children),U=Y.next();!U.done;U=Y.next()){U=U.value;if(l&&U.classList.contains("ytp-overlay-inline-container")){q=U;break}if(v<(Number(U.getAttribute("data-overlay-order"))||0))break;L++}q?ij(T,Q,q,!1):l?(T=document.createElement("div"),T.classList.add("ytp-overlay-inline-container"),T.setAttribute("data-overlay-order",""+v),q=T,q.appendChild(Q),hZ(k,q,L)):hZ(k,Q,L)};
  6403. Gwf=function(T){var Q={};g.p.call(this,{X:"div",J:"ytp-paid-content-overlay",K:(Q["aria-live"]="assertive",Q["aria-atomic"]="true",Q["data-overlay-order"]="5",Q)});this.U=T;this.videoId=null;this.L=!1;this.innertubeCommand=this.yU=this.T=null;Q=T.G();T.V("enable_new_paid_product_placement")&&!g.XT(Q)?(this.S=new g.p({X:"a",J:"ytp-paid-content-overlay-link",K:{href:"{{href}}",target:"_blank"},W:[{X:"div",J:"ytp-paid-content-overlay-indicator"},{X:"div",J:"ytp-paid-content-overlay-icon",S6:"{{icon}}"},
  6404. {X:"div",J:"ytp-paid-content-overlay-text",S6:"{{text}}"},{X:"div",J:"ytp-paid-content-overlay-chevron",S6:"{{chevron}}"}]}),this.Z(this.S.element,"click",this.onClick)):this.S=new g.p({X:"div",Rk:["ytp-button","ytp-paid-content-overlay-text"],S6:"{{text}}"});this.fade=new g.TZ(this.S,250,!1,100);g.P(this,this.S);this.S.XB(this.element);g.P(this,this.fade);this.U.createServerVe(this.element,this);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"presentingplayerstatechange",this.wk)};
  6405. IpI=function(T,Q){var k=uu5(Q),l=nNb(Q);if(!Q.m0||!T.U.Pc())if(T.T||T.U.V("enable_paid_content_overlay_bugfix")){if(Q.videoId&&Q.videoId!==T.videoId){var v;(v=T.T)==null||g.iN(v);!T.U.V("enable_paid_content_overlay_bugfix")||k&&l?(T.videoId=Q.videoId,T.L=!!l,T.L&&k&&mCJ(T,l,k,Q)):T.L=!1}}else k&&l&&!T.U.V("enable_paid_content_overlay_bugfix")&&mCJ(T,l,k,Q)};
  6406. mCJ=function(T,Q,k,l){T.T&&T.T.dispose();T.T=new g.FA(T.sG,Q,T);g.P(T,T.T);l=$a(l);Q=l==null?void 0:l.navigationEndpoint;var v;l=l==null?void 0:(v=l.icon)==null?void 0:v.iconType;var L;v=(L=g.t(Q,g.uD))==null?void 0:L.url;T.U.setTrackingParams(T.element,(Q==null?void 0:Q.clickTrackingParams)||null);Q&&!v?(T.innertubeCommand=Q,v="#!"):T.innertubeCommand=null;var q;T.S.update({href:(q=v)!=null?q:"#",text:k,icon:l==="MONEY_HAND"?{X:"svg",K:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
  6407. W:[{X:"path",K:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
  6408. fill:"white"}}]}:null,chevron:v||T.innertubeCommand?g.mM():null})};
  6409. hc5=function(T,Q){T.T&&(g.J(Q,8)&&T.L?(T.L=!1,T.fA(),T.T.start()):(g.J(Q,2)||g.J(Q,64))&&T.videoId&&(T.videoId=null))};
  6410. V_=function(T){g.p.call(this,{X:"div",J:"ytp-spinner",W:[AN(),{X:"div",J:"ytp-spinner-message",S6:"\u5982\u679c\u7a0d\u540e\u6ca1\u6709\u5f00\u59cb\u64ad\u653e\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u8bbe\u5907\u3002"}]});this.api=T;this.message=this.L_("ytp-spinner-message");this.T=new g.FA(this.show,500,this);g.P(this,this.T);this.Z(T,"presentingplayerstatechange",this.onStateChange);this.Z(T,"playbackstalledatstart",this.S);this.OH(T.getPlayerStateObject())};
  6411. TK=function(T){var Q=[{X:"div",Rk:["ytp-unmute-icon"],W:[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
  6412. {X:"div",Rk:["ytp-unmute-text"],S6:"\u70b9\u6309\u53d6\u6d88\u9759\u97f3"}];Q.push({X:"div",Rk:["ytp-unmute-box"],W:[]});g.LA.call(this,T,{X:"button",Rk:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],W:[{X:"div",J:"ytp-unmute-inner",W:Q}]},100);this.T=this.clicked=!1;this.api=T;this.api.createClientVe(this.element,this,51663);this.Z(T,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.Z(T,"presentingplayerstatechange",this.Pl);this.listen("click",this.onClick,
  6413. this);T=T.isMutedByMutedAutoplay()&&!g.Qk(this.api.G());this.o_(T);T&&swJ(this);this.L=T};
  6414. swJ=function(T){T.T||(T.T=!0,T.api.logVisibility(T.element,!0))};
  6415. g.Q7=function(T){g.Bj.call(this);var Q=this;this.api=T;this.Vj=!1;this.Dr=null;this.ZI=!1;this.Gb=null;this.Ac=this.eS=!1;this.CT=this.l3=null;this.jB=NaN;this.eT=this.Oq=!1;this.GS=0;this.KW=[];this.JG=!1;this.sA={height:0,width:0};this.Ih=480;this.kwK=["ytp-player-content","html5-endscreen","ytp-overlay"];this.m2={Fr:!1};this.Tk=null;var k=T.G(),l=T.Hx();this.sA=T.getPlayerSize();this.rF=new g.FA(this.pN,0,this);g.P(this,this.rF);k.disableOrganicUi||(this.A_=new g.J4(T),g.P(this,this.A_),g.TQ(T,
  6416. this.A_.element,4));this.api.V("web_player_overlay_positioned_layout")&&(this.Tk=new fp5(this.api),g.P(this,this.Tk));if(Smu(this)){var v=new V_(T);g.P(this,v);v=v.element;g.TQ(T,v,4)}var L=T.getVideoData();this.Ci=new MDC(l,T,function(Y){return Q.M4(Y)},L,k.xE,!1);
  6417. g.P(this,this.Ci);this.Ci.subscribe("autohideupdate",this.Dl,this);if(!k.disablePaidContentOverlay){var q=new Gwf(T);g.P(this,q);this.Tk?this.Tk.EF(q.element,g.XT(k)?3:1):g.TQ(T,q.element,4)}this.Zk=new TK(T);g.P(this,this.Zk);g.TQ(this.api,this.Zk.element,2);this.eb=this.api.isMutedByMutedAutoplay();this.Z(T,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.NP=new g.FA(this.GR,200,this);g.P(this,this.NP);this.kI=L.videoId;this.QS=new g.FA(function(){Q.GS=0},350);
  6418. g.P(this,this.QS);this.UN=new g.FA(function(){Q.eT||CIT(Q)},350,this);
  6419. g.P(this,this.UN);L=T.getRootNode();L.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668");switch(k.color){case "white":g.oF(L,"ytp-color-white")}this.Z(T,"appresize",this.zx);this.Z(T,"presentingplayerstatechange",this.Pl);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"videoplayerreset",this.J3j);this.Z(T,"autonavvisibility",function(){Q.q3()});
  6420. this.Z(T,"sizestylechange",function(){Q.q3()});
  6421. this.Z(l,"click",this.A6q,this);this.Z(l,"dblclick",this.j_6,this);this.Z(l,"mousedown",this.Kr9,this);k.Tg&&(this.Z(l,"gesturechange",this.bAk,this),this.Z(l,"gestureend",this.I8q,this));this.It=[l.XO];this.A_&&this.It.push(this.A_.element);v&&this.It.push(v);this.api.V("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(l.element,this,247482),this.api.logVisibility(l.element,!0))};
  6422. BYJ=function(T,Q){if(!Q)return!1;var k=T.api.T_();if(k.rQ()&&(k=k.xB())&&g.SO(k,Q))return k.controls;for(k=0;k<T.It.length;k++)if(g.SO(T.It[k],Q))return!1;k=g.B(T.kwK);for(var l=k.next();!l.done;l=k.next())if(g.lw(Q,l.value))return!1;return Q===T.api.getRootNode()?!1:!0};
  6423. zcu=function(T){var Q=T.api.getPresentingPlayerType()===2&&(T.api.Hx().Nb||T.api.G().disableOrganicUi)&&T.api.G().S&&Wa&&jL>=11;T=T.api.G().C&&Wa;return!(!Q&&!T)};
  6424. kW=function(T,Q){return!T.api.isInline()&&!BYJ(T,zL(Q))&&g.B8(Q)};
  6425. CIT=function(T){T.Ci.DS();if(T.eS&&T.Ac)T.Ac=!1;else if(!T.api.G().sK&&!T.VV()){var Q=T.api.getPlayerStateObject();g.J(Q,2)&&g.$D(T.api)||T.Qu(Q);!T.api.G().Tg||Q.isCued()||g.J(Q,1024)?T.GR():T.NP.isActive()?(T.sb(),T.NP.stop()):T.NP.start()}};
  6426. Xbg=function(T,Q){var k;if((k=T.api.getVideoData())==null?0:k.mutedAutoplay){var l,v;if((l=Q.target)==null?0:(v=l.className)==null?0:v.includes("ytp-info-panel"))return!1}return g.B8(Q)&&T.api.isMutedByMutedAutoplay()?(T.api.unMute(),T.api.getPresentingPlayerType()===2&&T.api.playVideo(),Q=T.api.getPlayerStateObject(),!g.J(Q,4)||g.J(Q,8)||g.J(Q,2)||T.GR(),!0):!1};
  6427. wbX=function(T,Q,k){T.api.isFullscreen()?k<1-Q&&T.api.toggleFullscreen():k>1+Q&&T.api.toggleFullscreen()};
  6428. Smu=function(T){var Q=OG()&&PD()>=67&&!T.api.G().C;T=T.api.G().disableOrganicUi;return!g.tH("tizen")&&!ic&&!Q&&!T};
  6429. g.lz=function(T){g.p.call(this,{X:"div",W:[{X:"div",J:"ytp-bezel-text-wrapper",W:[{X:"div",J:"ytp-bezel-text",S6:"{{title}}"}]},{X:"div",J:"ytp-bezel",K:{role:"status","aria-label":"{{label}}"},W:[{X:"div",J:"ytp-bezel-icon",S6:"{{icon}}"}]}]});this.U=T;this.S=new g.FA(this.show,10,this);T=this.U.V("delhi_modern_web_player")?1E3:500;this.T=new g.FA(this.hide,T,this);g.P(this,this.S);g.P(this,this.T);this.hide()};
  6430. v1=function(T,Q,k){if(Q<=0){k=Ac();Q="\u5df2\u9759\u97f3";var l=0}else k=k?{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
  6431. fill:"#fff"}}]},l=Math.floor(Q),Q=l+"\u97f3\u91cf";oG(T,k,Q,l+"%")};
  6432. dCI=function(T,Q){Q=Q?{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:s16();var k=T.U.getPlaybackRate(),l=g.o0("\u64ad\u653e\u901f\u5ea6\u4e3a $RATE",{RATE:String(k)});oG(T,Q,l,k+"x")};
  6433. NYb=function(T,Q){Q=Q?"\u5df2\u6253\u5f00\u5b57\u5e55":"\u5df2\u5173\u95ed\u5b57\u5e55";oG(T,ESC(T.U),Q)};
  6434. oG=function(T,Q,k,l){l=l===void 0?"":l;T.updateValue("label",k===void 0?"":k);T.updateValue("icon",Q);g.iN(T.T);T.S.start();T.updateValue("title",l);g.gl(T.element,"ytp-bezel-text-hide",!l)};
  6435. AYy=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-cards-button"],K:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"span",J:"ytp-cards-button-icon-default",W:[{X:"div",J:"ytp-cards-button-icon",W:[T.G().V("player_new_info_card_format")?Bi6():{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
  6436. {X:"div",J:"ytp-cards-button-title",S6:"\u4fe1\u606f"}]},{X:"span",J:"ytp-cards-button-icon-shopping",W:[{X:"div",J:"ytp-cards-button-icon",W:[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",J:"ytp-svg-shadow",K:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{X:"path",J:"ytp-svg-fill",K:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
  6437. "fill-opacity":"1"}},{X:"path",J:"ytp-svg-shadow-fill",K:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{X:"div",
  6438. J:"ytp-cards-button-title",S6:"\u8d2d\u7269"}]}]});this.U=T;this.S=Q;this.T=null;this.fade=new g.TZ(this,250,!0,100);g.P(this,this.fade);g.gl(this.S,"ytp-show-cards-title",g.Qk(T.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.g2(!0)};
  6439. b_I=function(T,Q){g.p.call(this,{X:"div",J:"ytp-cards-teaser",W:[{X:"div",J:"ytp-cards-teaser-box"},{X:"div",J:"ytp-cards-teaser-text",W:T.G().V("player_new_info_card_format")?[{X:"button",J:"ytp-cards-teaser-info-icon",K:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-haspopup":"true"},W:[Bi6()]},{X:"img",J:"ytp-cards-teaser-channel-avatar",K:{alt:"","aria-hidden":"true"}},{X:"span",J:"ytp-cards-teaser-label",S6:"{{text}}"},{X:"button",J:"ytp-cards-teaser-close-button",K:{"aria-label":"\u5173\u95ed"},
  6440. W:[g.Ix()]}]:[{X:"span",J:"ytp-cards-teaser-label",S6:"{{text}}"}]}]});var k=this;this.U=T;this.cT=Q;this.fade=new g.TZ(this,250,!1,250);this.T=null;this.C=new g.FA(this.B5e,300,this);this.B=new g.FA(this.ReB,2E3,this);this.Y=[];this.S=null;this.j=new g.FA(function(){k.element.style.margin="0"},250);
  6441. this.onClickCommand=this.L=null;g.P(this,this.fade);g.P(this,this.C);g.P(this,this.B);g.P(this,this.j);T.G().V("player_new_info_card_format")?(g.oF(T.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.L_("ytp-cards-teaser-close-button"),"click",this.e7),this.Z(this.L_("ytp-cards-teaser-info-icon"),"click",this.dW),this.Z(this.L_("ytp-cards-teaser-label"),"click",this.dW)):this.listen("click",this.dW);this.Z(Q.element,"mouseover",this.rj);this.Z(Q.element,"mouseout",this.lB);this.Z(T,"cardsteasershow",
  6442. this.SMe);this.Z(T,"cardsteaserhide",this.sG);this.Z(T,"cardstatechange",this.fg);this.Z(T,"presentingplayerstatechange",this.fg);this.Z(T,"appresize",this.wD);this.Z(T,"onShowControls",this.wD);this.Z(T,"onHideControls",this.QG);this.listen("mouseenter",this.CL)};
  6443. rY6=function(T){g.p.call(this,{X:"button",Rk:[Lm.BUTTON,Lm.TITLE_NOTIFICATIONS],K:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{X:"div",J:Lm.TITLE_NOTIFICATIONS_ON,K:{title:"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},W:[g.CD()]},{X:"div",J:Lm.TITLE_NOTIFICATIONS_OFF,K:{title:"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},
  6444. W:[{X:"svg",K:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{X:"path",K:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=T;this.T=!1;T.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5")};
  6445. cYJ=function(T,Q){T.T=Q;T.element.classList.toggle(Lm.NOTIFICATIONS_ENABLED,T.T);var k=T.api.getVideoData();k?(Q=Q?k.No:k.Re)?(T=T.api.HG())?ao(T,Q):g.bA(Error("No innertube service available when updating notification preferences.")):g.bA(Error("No update preferences command available.")):g.bA(Error("No video data when updating notification preferences."))};
  6446. apy=function(T,Q,k){var l=l===void 0?800:l;var v=v===void 0?600:v;var L=document.location.protocol;T=WmX(L+"//"+T+"/signin?context=popup","feature",Q,"next",L+"//"+location.hostname+"/post_login");DCg(T,k,l,v)};
  6447. DCg=function(T,Q,k,l){k=k===void 0?800:k;l=l===void 0?600:l;if(T=g.GH(window,T,"loginPopup","width="+k+",height="+l+",resizable=yes,scrollbars=yes"))I0f(function(){Q()}),T.moveTo((screen.width-k)/2,(screen.height-l)/2)};
  6448. g.qa=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){T=T.charAt(0)+T.substring(1).toLowerCase();k=k.charAt(0)+k.substring(1).toLowerCase();if(Q==="0"||Q==="-1")Q=null;if(l==="0"||l==="-1")l=null;var G=Z.G(),m=G.userDisplayName&&g.Ln(G);g.p.call(this,{X:"div",Rk:["ytp-button","ytp-sb"],W:[{X:"div",J:"ytp-sb-subscribe",K:m?{title:Z.G().V("player_tooltip_data_title_killswitch")?g.o0("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:G.userDisplayName}):"","data-tooltip-title":g.o0("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605",
  6449. {USER_NAME:G.userDisplayName}),"aria-label":"\u8ba2\u9605\u9891\u9053","data-tooltip-image":A9(G),"data-tooltip-opaque":String(g.Qk(G)),tabindex:"0",role:"button"}:{"aria-label":"\u8ba2\u9605\u9891\u9053"},W:[{X:"div",J:"ytp-sb-text",W:[{X:"div",J:"ytp-sb-icon"},T]},Q?{X:"div",J:"ytp-sb-count",S6:Q}:""]},{X:"div",J:"ytp-sb-unsubscribe",K:m?{title:Z.V("player_tooltip_data_title_killswitch")?g.o0("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:G.userDisplayName}):"","data-tooltip-title":g.o0("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605",
  6450. {USER_NAME:G.userDisplayName}),"aria-label":"\u9000\u8ba2\u9891\u9053","data-tooltip-image":A9(G),"data-tooltip-opaque":String(g.Qk(G)),tabindex:"0",role:"button"}:{"aria-label":"\u9000\u8ba2\u9891\u9053"},W:[{X:"div",J:"ytp-sb-text",W:[{X:"div",J:"ytp-sb-icon"},k]},l?{X:"div",J:"ytp-sb-count",S6:l}:""]}],K:{"aria-live":"polite"}});var I=this;this.channelId=q;this.U=Z;this.L=f;var z=this.L_("ytp-sb-subscribe"),w=this.L_("ytp-sb-unsubscribe");L&&g.oF(this.element,"ytp-sb-classic");if(v){Y?this.T():
  6451. this.S();var r=function(){if(G.hj){var D=I.channelId;if(U||R){var K={c:D};var O;g.jX.isInitialized()&&(O=WUT(K));K=O||"";if(O=Z.getVideoData())if(O=O.subscribeCommand){var E=Z.HG();E?(ao(E,O,{botguardResponse:K,feature:U}),Z.tj("SUBSCRIBE",D)):g.bA(Error("No innertube service available when updating subscriptions."))}else g.bA(Error("No subscribe command in videoData."));else g.bA(Error("No video data available when updating subscription."))}w.focus();w.removeAttribute("aria-hidden");z.setAttribute("aria-hidden",
  6452. "true")}else apy(g.mq(I.U.G()),"sb_button",I.Y)},A=function(){var D=I.channelId;
  6453. if(U||R){var K=Z.getVideoData();ao(Z.HG(),K.unsubscribeCommand,{feature:U});Z.tj("UNSUBSCRIBE",D)}z.focus();z.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")};
  6454. this.Z(z,"click",r);this.Z(w,"click",A);this.Z(z,"keypress",function(D){D.keyCode===13&&r(D)});
  6455. this.Z(w,"keypress",function(D){D.keyCode===13&&A(D)});
  6456. this.Z(Z,"SUBSCRIBE",this.T);this.Z(Z,"UNSUBSCRIBE",this.S);this.L&&m&&(c1I(Z),OU(Z,z,this),OU(Z,w,this))}else g.oF(z,"ytp-sb-disabled"),g.oF(w,"ytp-sb-disabled")};
  6457. Kwt=function(T){g.p.call(this,{X:"div",J:"ytp-title-channel",W:[{X:"div",J:"ytp-title-beacon"},{X:"a",J:"ytp-title-channel-logo",K:{href:"{{channelLink}}",target:T.G().D,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",J:"ytp-title-expanded-overlay",K:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{X:"div",J:"ytp-title-expanded-heading",W:[{X:"div",J:"ytp-title-expanded-title",W:[{X:"a",S6:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:T.G().D,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
  6458. tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",J:"ytp-title-expanded-subtitle",S6:"{{expandedSubtitle}}",K:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Q=this;this.api=T;this.channel=this.L_("ytp-title-channel");this.S=this.L_("ytp-title-channel-logo");this.channelName=this.L_("ytp-title-expanded-title");this.B=this.L_("ytp-title-expanded-overlay");this.L=this.T=this.subscribeButton=null;this.Y=!1;T.createClientVe(this.S,this,36925);T.createClientVe(this.channelName,this,
  6459. 37220);g.Qk(this.api.G())&&uX5(this);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Z(this.channelName,"click",function(k){Q.api.logClick(Q.channelName);g.GH(window,nFX(Q));k.preventDefault()});
  6460. this.Z(this.S,"click",this.G9K);this.Aj()};
  6461. xCy=function(T){if(!T.api.G().Gg){var Q=T.api.getVideoData(),k=new g.qa("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,Q.hH,Q.subscribed,"channel_avatar",null,T.api,!0);T.api.createServerVe(k.element,T);var l;T.api.setTrackingParams(k.element,((l=Q.subscribeButtonRenderer)==null?void 0:l.trackingParams)||null);T.Z(k.element,"click",function(){T.api.logClick(k.element)});
  6462. T.subscribeButton=k;g.P(T,T.subscribeButton);T.subscribeButton.XB(T.B);T.subscribeButton.hide();var v=new rY6(T.api);T.T=v;g.P(T,v);v.XB(T.B);v.hide();T.Z(T.api,"SUBSCRIBE",function(){Q.XU&&(v.show(),T.api.logVisibility(v.element,!0))});
  6463. T.Z(T.api,"UNSUBSCRIBE",function(){Q.XU&&(v.hide(),T.api.logVisibility(v.element,!1),cYJ(v,!1))})}};
  6464. uX5=function(T){var Q=T.api.G();xCy(T);T.updateValue("flyoutUnfocusable","true");T.updateValue("channelTitleFocusable","-1");T.updateValue("shouldHideExpandedTitleForA11y","true");T.updateValue("shouldHideExpandedSubtitleForA11y","true");Q.S||Q.Jj||(T.Z(T.channel,"mouseenter",T.mz),T.Z(T.channel,"mouseleave",T.wg),T.Z(T.channel,"focusin",T.mz),T.Z(T.channel,"focusout",function(k){T.channel.contains(k.relatedTarget)||T.wg()}));
  6465. T.L=new g.FA(function(){T.isExpanded()&&(T.api.logVisibility(T.channelName,!1),T.subscribeButton&&(T.subscribeButton.hide(),T.api.logVisibility(T.subscribeButton.element,!1)),T.T&&(T.T.hide(),T.api.logVisibility(T.T.element,!1)),T.channel.classList.remove("ytp-title-expanded"),T.channel.classList.add("ytp-title-show-collapsed"))},500);
  6466. g.P(T,T.L);T.Z(T.channel,PII,function(){H_f(T)});
  6467. T.Z(T.api,"onHideControls",T.Lq);T.Z(T.api,"appresize",T.Lq);T.Z(T.api,"fullscreentoggled",T.Lq)};
  6468. H_f=function(T){T.channel.classList.remove("ytp-title-show-collapsed");T.channel.classList.remove("ytp-title-show-expanded")};
  6469. tDu=function(T){var Q=T.api.getPlayerSize();return g.Qk(T.api.G())&&Q.width>=524};
  6470. nFX=function(T){var Q=T.api.G(),k=T.api.getVideoData(),l=g.bF(Q)+k.Tg;g.S$(k)&&(l="https://music.youtube.com"+k.Tg);if(!g.Qk(Q))return l;Q={};g.Ay(T.api,"addEmbedsConversionTrackingParams",[Q]);return g.sD(l,Q)};
  6471. gu=function(T){var Q=g.RR({"aria-haspopup":"true"});g.UQ.call(this,Q,T);this.listen("keydown",this.T)};
  6472. Ma=function(T,Q){T.element.setAttribute("aria-haspopup",String(Q))};
  6473. O_6=function(T,Q){g.p.call(this,{X:"div",J:"ytp-user-info-panel",K:{"aria-label":"\u7528\u6237\u4fe1\u606f"},W:T.G().hj&&!T.V("embeds_web_always_enable_signed_out_state")?[{X:"div",J:"ytp-user-info-panel-icon",S6:"{{icon}}"},{X:"div",J:"ytp-user-info-panel-content",W:[{X:"div",J:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable}}",role:"text"},S6:"{{watchingAsUsername}}"},{X:"div",J:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable2}}",role:"text"},S6:"{{watchingAsEmail}}"}]}]:
  6474. [{X:"div",J:"ytp-user-info-panel-icon",S6:"{{icon}}"},{X:"div",J:"ytp-user-info-panel-content",W:[{X:"div",W:[{X:"text",K:{tabIndex:"{{userInfoFocusable}}"},S6:"\u672a\u767b\u5f55"}]},{X:"div",J:"ytp-user-info-panel-login",W:[{X:"a",K:{tabIndex:"{{userInfoFocusable2}}",role:"button"},S6:T.G().Gg?"":"\u767b\u5f55 YouTube"}]}]}]});this.ZV=T;this.T=Q;T.G().hj||T.G().Gg||this.Z(this.L_("ytp-user-info-panel-login"),"click",this.rk);this.closeButton=new g.p({X:"button",Rk:["ytp-collapse","ytp-button"],
  6475. K:{title:"\u5173\u95ed"},W:[g.N1()]});this.closeButton.XB(this.element);g.P(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.lJ);this.Aj()};
  6476. $C5=function(T,Q,k){g.b_.call(this,T);this.YB=Q;this.G_=k;this.getVideoUrl=new gu(6);this.OY=new gu(5);this.PH=new gu(4);this.Tx=new gu(3);this.AO=new g.UQ(g.RR({href:"{{href}}",target:this.U.G().D},void 0,!0),2,"\u6392\u67e5\u64ad\u653e\u95ee\u9898");this.showVideoInfo=new g.UQ(g.RR(),1,"\u8be6\u7ec6\u7edf\u8ba1\u4fe1\u606f");this.B0=new g.M1({X:"div",Rk:["ytp-copytext","ytp-no-contextmenu"],K:{draggable:"false",tabindex:"1"},S6:"{{text}}"});this.Fv=new AO(this.U,this.B0);this.K6=this.Op=null;g.Qk(this.U.G())&&
  6477. (this.closeButton=new g.p({X:"button",Rk:["ytp-collapse","ytp-button"],K:{title:"\u5173\u95ed"},W:[g.N1()]}),g.P(this,this.closeButton),this.closeButton.XB(this.element),this.closeButton.listen("click",this.LF,this));g.Qk(this.U.G())&&(this.Se=new g.UQ(g.RR(),8,"\u8d26\u53f7"),g.P(this,this.Se),this.A6(this.Se,!0),this.Se.listen("click",this.a8m,this),T.createClientVe(this.Se.element,this.Se,137682));this.U.G().dC&&(this.vc=new zQ("\u5faa\u73af\u64ad\u653e",7),g.P(this,this.vc),this.A6(this.vc,!0),
  6478. this.vc.listen("click",this.mYK,this),T.createClientVe(this.vc.element,this.vc,28661));g.P(this,this.getVideoUrl);this.A6(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.EBk,this);T.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.OY);this.A6(this.OY,!0);this.OY.listen("click",this.QgO,this);T.createClientVe(this.OY.element,this.OY,28660);g.P(this,this.PH);this.A6(this.PH,!0);this.PH.listen("click",this.oBd,this);T.createClientVe(this.PH.element,this.PH,28658);
  6479. g.P(this,this.Tx);this.A6(this.Tx,!0);this.Tx.listen("click",this.c3B,this);g.P(this,this.AO);this.A6(this.AO,!0);this.AO.listen("click",this.l8_,this);g.P(this,this.showVideoInfo);this.A6(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.MVB,this);g.P(this,this.B0);this.B0.listen("click",this.t6k,this);g.P(this,this.Fv);Q=document.queryCommandSupported&&document.queryCommandSupported("copy");eub("Chromium")>=43&&(Q=!0);eub("Firefox")<=40&&(Q=!1);Q&&(this.Op=new g.p({X:"textarea",J:"ytp-html5-clipboard",
  6480. K:{readonly:"",tabindex:"-1"}}),g.P(this,this.Op),this.Op.XB(this.element));var l;(l=this.Se)==null||l.setIcon(NiX());var v;(v=this.vc)==null||v.setIcon(ak6());this.Tx.setIcon({X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
  6481. fill:"white","fill-rule":"evenodd"}}]});this.AO.setIcon(SrX());this.showVideoInfo.setIcon(Cut());this.Z(T,"onLoopChange",this.onLoopChange);this.Z(T,"videodatachange",this.onVideoDataChange);pbu(this);WwH(this,this.U.getVideoData())};
  6482. YW=function(T,Q){var k=!1;if(T.Op){var l=T.Op.element;l.value=Q;l.select();try{k=document.execCommand("copy")}catch(v){}}k?T.YB.sG():(T.B0.qF(Q,"text"),g.Dx(T.YB,T.Fv),bf(T.B0.element),T.Op&&(T.Op=null,pbu(T)));return k};
  6483. WwH=function(T,Q){var k=T.U.G(),l=T.U.getPresentingPlayerType()===2,v=!l||Q.isListed;v=!k.qO&&!!Q.videoId&&v;k.playerStyle!=="play"?k="https://support.google.com/youtube/?p=report_playback":(k={contact_type:"playbackissue",html5:1,ei:Q.eventId,v:Q.videoId,p:"movies_playback"},Q.S&&(k.fmt=Q.S.itag),Q.clientPlaybackNonce&&(k.cpn=Q.clientPlaybackNonce),Q.partnerId&&(k.partnerid=Q.partnerId),k=g.sD("//support.google.com/googleplay/",k));T.PH.o_(v&&Q.allowEmbed);T.getVideoUrl.o_(v);T.OY.o_(v&&!Q.isLivePlayback);
  6484. T.AO.qF(k,"href");var L;(L=T.vc)==null||L.o_(!Q.isLivePlayback&&!l);var q;(q=T.Se)==null||q.o_(!l)};
  6485. pbu=function(T){var Q=!!T.Op;g.YH(T.Tx,Q?"\u590d\u5236\u8c03\u8bd5\u4fe1\u606f":"\u83b7\u53d6\u8c03\u8bd5\u4fe1\u606f");Ma(T.Tx,!Q);g.YH(T.PH,Q?"\u590d\u5236\u5d4c\u5165\u4ee3\u7801":"\u83b7\u53d6\u5d4c\u5165\u4ee3\u7801");Ma(T.PH,!Q);g.YH(T.getVideoUrl,Q?"\u590d\u5236\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u89c6\u9891\u7f51\u5740");Ma(T.getVideoUrl,!Q);g.YH(T.OY,Q?"\u590d\u5236\u5f53\u524d\u65f6\u95f4\u7684\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u5728\u64ad\u89c6\u9891\u7684\u7f51\u5740");Ma(T.OY,
  6486. !Q);T.PH.setIcon(Q?Ikb():null);T.getVideoUrl.setIcon(Q?sC():null);T.OY.setIcon(Q?sC():null)};
  6487. JY5=function(T){return g.Qk(T.U.G())?T.Se:T.vc};
  6488. Fwf=function(T,Q){g.cp.call(this,T);this.G_=Q;this.Y=new g.Bj(this);this.z9=new g.FA(this.LFO,1E3,this);this.qO=this.L=null;g.P(this,this.Y);g.P(this,this.z9);Q=this.U.G();T.createClientVe(this.element,this,28656);g.oF(this.element,"ytp-contextmenu");this.U.G().experiments.Wd("delhi_modern_web_player")&&g.Cn(Q)&&g.oF(this.element,"ytp-delhi-modern-contextmenu");ecC(this);this.hide()};
  6489. ecC=function(T){g.N5(T.Y);var Q=T.U.G();Q.playerStyle==="gvn"||Q.S||Q.Jj||(Q=T.U.Hx(),T.Y.Z(Q,"contextmenu",T.pdK),T.Y.Z(Q,"touchstart",T.onTouchStart,null,!0),T.Y.Z(Q,"touchmove",T.df,null,!0),T.Y.Z(Q,"touchend",T.df,null,!0))};
  6490. EF5=function(T){T.U.isFullscreen()?g.TQ(T.U,T.element,10):T.XB(qz(T).body)};
  6491. Uu=function(T,Q,k){k=k===void 0?240:k;g.p.call(this,{X:"button",Rk:["ytp-button","ytp-copylink-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-copylink-icon",S6:"{{icon}}"},{X:"div",J:"ytp-copylink-title",S6:"\u590d\u5236\u94fe\u63a5",K:{"aria-hidden":"true"}}]});this.api=T;this.T=Q;this.S=k;this.visible=!1;this.tooltip=this.T.aK();Q=T.G();this.tooltip.element.setAttribute("aria-live",
  6492. "polite");g.gl(this.element,"ytp-show-copylink-title",g.Qk(Q));T.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Z(T,"appresize",this.Aj);this.Aj();this.addOnDisposeCallback(g.ty(this.tooltip,this.element))};
  6493. yYH=function(T){var Q=T.api.G(),k=T.api.getVideoData(),l=T.api.Hx().getPlayerSize().width;Q=Q.L;return!!k.videoId&&l>=T.S&&k.W5&&!k.hh&&!T.api.isEmbedsShortsMode()&&!Q};
  6494. i_5=function(T){T.updateValue("icon",fD());if(T.api.G().S)T.tooltip.hA(T.element,"\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");else{T.updateValue("title-attr","\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");T.updateValue("tooltip-title","\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");T.tooltip.wO();T.tooltip.hA(T.element);var Q=T.listen("mouseleave",function(){T.J6(Q);T.Aj();T.tooltip.Vb()})}};
  6495. VDu=function(T,Q){return g.a(function(k){if(k.S==1)return g.z5(k,2),g.c(k,navigator.clipboard.writeText(Q),4);if(k.S!=2)return k.return(!0);g.by(k);var l=k.return,v=!1,L=g.fO("TEXTAREA");L.value=Q;L.setAttribute("readonly","");var q=T.api.getRootNode();q.appendChild(L);if(We){var Y=window.getSelection();Y.removeAllRanges();var U=document.createRange();U.selectNodeContents(L);Y.addRange(U);L.setSelectionRange(0,Q.length)}else L.select();try{v=document.execCommand("copy")}catch(R){}q.removeChild(L);
  6496. return l.call(k,v)})};
  6497. T9t=function(T){g.p.call(this,{X:"div",J:"ytp-doubletap-ui-legacy",W:[{X:"div",J:"ytp-doubletap-fast-forward-ve"},{X:"div",J:"ytp-doubletap-rewind-ve"},{X:"div",J:"ytp-doubletap-static-circle",W:[{X:"div",J:"ytp-doubletap-ripple"}]},{X:"div",J:"ytp-doubletap-overlay-a11y"},{X:"div",J:"ytp-doubletap-seek-info-container",W:[{X:"div",J:"ytp-doubletap-arrows-container",W:[{X:"span",J:"ytp-doubletap-base-arrow"},{X:"span",J:"ytp-doubletap-base-arrow"},{X:"span",J:"ytp-doubletap-base-arrow"}]},{X:"div",
  6498. J:"ytp-doubletap-tooltip",W:[{X:"div",J:"ytp-seek-icon-text-container",W:[{X:"div",J:"ytp-seek-icon",S6:"{{seekIcon}}"},{X:"div",J:"ytp-chapter-seek-text-legacy",S6:"{{seekText}}"}]},{X:"div",J:"ytp-doubletap-tooltip-label",S6:"{{seekTime}}"}]}]}]});this.U=T;this.Y=new g.FA(this.show,10,this);this.S=new g.FA(this.hide,700,this);this.C=this.L=0;this.z9=this.B=!1;this.T=this.L_("ytp-doubletap-static-circle");g.P(this,this.Y);g.P(this,this.S);this.hide();this.j=this.L_("ytp-doubletap-fast-forward-ve");
  6499. this.D=this.L_("ytp-doubletap-rewind-ve");this.U.createClientVe(this.j,this,28240);this.U.createClientVe(this.D,this,28239);this.U.logVisibility(this.j,!0);this.U.logVisibility(this.D,!0);this.B=T.V("web_show_cumulative_seek_time");this.z9=T.V("web_center_static_circles")};
  6500. Q6X=function(T,Q){Q=g.o0("$TOTAL_SEEK_TIME \u79d2",{TOTAL_SEEK_TIME:Q.toString()});T.updateValue("seekTime",Q)};
  6501. j6y=function(T){N4.call(this,T,!1,!0);this.xm=[];this.Ig=[];this.element.setAttribute("data-overlay-order","9");this.j=!0;this.badge.element.classList.add("ytp-featured-product");this.i9=new g.p({X:"div",J:"ytp-featured-product-open-in-new"});g.P(this,this.i9);this.countdownTimer=new g.p({X:"text",J:"ytp-featured-product-countdown",S6:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.S=new g.p({X:"div",J:"ytp-featured-product-trending",W:[{X:"div",J:"ytp-featured-product-trending-icon"},
  6502. {X:"text",J:"ytp-featured-product-trending-text",S6:"{{trendingOffer}}"}]});this.S.hide();g.P(this,this.S);this.overflowButton=new g.p({X:"button",Rk:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.C=new g.p({X:"text",J:"ytp-featured-product-exclusive-countdown",S6:"{{content}}",K:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.P(this,this.C);this.B=new g.p({X:"div",J:"ytp-featured-product-exclusive-container",
  6503. K:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},W:[{X:"div",J:"ytp-featured-product-exclusive-badge-container",W:[{X:"div",J:"ytp-featured-product-exclusive-badge",W:[{X:"text",J:"ytp-featured-product-exclusive-badge-text",S6:"{{exclusive}}",K:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.B.hide();g.P(this,this.B);this.banner=new g.p({X:"a",J:"ytp-featured-product-container",W:[{X:"div",J:"ytp-featured-product-thumbnail",W:[{X:"img",K:{src:"{{thumbnail}}"}},this.i9]},{X:"div",
  6504. J:"ytp-featured-product-details",W:[{X:"text",J:"ytp-featured-product-title",S6:"{{title}}"},this.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",J:"ytp-featured-product-price-container",K:{"aria-label":"{{priceA11yText}}"},W:[{X:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",S6:"{{price}}",K:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-promotion-text",S6:"{{promotionText}}",K:{"aria-hidden":"true"}}]}:{X:"div",K:{"aria-label":"{{priceA11yText}}"},
  6505. W:[{X:"text",J:"ytp-featured-product-price",S6:"{{price}}",K:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-sales-original-price",S6:"{{salesOriginalPrice}}",K:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-price-drop-reference-price",S6:"{{priceDropReferencePrice}}",K:{"aria-hidden":"true"}}]},this.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",J:"ytp-featured-product-when-promotion-text-enabled",W:[{X:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",
  6506. S6:"{{affiliateDisclaimer}}"},this.S,{X:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",S6:"{{vendor}}"}]}:{X:"div",W:[{X:"text",J:"ytp-featured-product-affiliate-disclaimer",S6:"{{affiliateDisclaimer}}"},this.U.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.B:null,this.S,{X:"text",J:"ytp-featured-product-vendor",S6:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.P(this,this.banner);this.banner.XB(this.L.element);this.Z(this.U,g.ej("featured_product"),
  6507. this.PKm);this.Z(this.U,g.Ft("featured_product"),this.rp);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.ZJ);this.Z(T,"featuredproductdismissed",this.Np)};
  6508. k2t=function(T){var Q,k;T=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData;var l,v,L;return(T==null||!T.affiliateDisclaimer)&&(T==null?0:(l=T.exclusivesData)==null?0:l.exclusiveOfferLabelText)&&(T==null?0:(v=T.exclusivesData)==null?0:v.expirationTimestampMs)&&(T==null?0:(L=T.exclusivesData)==null?0:L.exclusiveOfferCountdownText)?!0:!1};
  6509. ov5=function(T){var Q,k,l,v,L=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:(l=k.itemData)==null?void 0:(v=l.exclusivesData)==null?void 0:v.expirationTimestampMs;Q=(Number(L)-Date.now())/1E3;if(Q>0){if(Q<604800){var q,Y,U,R;k=(q=T.T)==null?void 0:(Y=q.bannerData)==null?void 0:(U=Y.itemData)==null?void 0:(R=U.exclusivesData)==null?void 0:R.exclusiveOfferCountdownText;if(k!==void 0)for(q=Date.now(),Y=g.B(k),U=Y.next();!U.done;U=Y.next())if(U=U.value,U!==void 0&&U.text!==void 0&&(R=Number(U.textDisplayStartTimestampMs),
  6510. !isNaN(R)&&q>=R)){U.insertCountdown?(Q=U.text.replace(/\$0/,String(t1({seconds:Q}))),T.C.qF(Q)):T.C.qF(U.text);T.C.show();break}}var Z,f,G,m;T.B.update({exclusive:(Z=T.T)==null?void 0:(f=Z.bannerData)==null?void 0:(G=f.itemData)==null?void 0:(m=G.exclusivesData)==null?void 0:m.exclusiveOfferLabelText});T.B.show();RG(T);var I;(I=T.OG)==null||I.start()}else l3b(T)};
  6511. l3b=function(T){var Q;(Q=T.OG)==null||Q.stop();T.C.hide();T.B.hide();ZL(T)};
  6512. vv5=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData;return T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(l==null||!l.priceReplacementText)&&(l==null?0:l.promotionText)?l==null?void 0:l.promotionText.content:null};
  6513. L$b=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData,v,L;if(!(l!=null&&l.priceReplacementText||T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(l==null?0:(v=l.dealsData)==null?0:(L=v.sales)==null?0:L.originalPrice)){var q,Y;return l==null?void 0:(q=l.dealsData)==null?void 0:(Y=q.sales)==null?void 0:Y.originalPrice}return null};
  6514. qZ5=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData,v,L,q,Y;if(!((l==null?0:l.priceReplacementText)||T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(l==null?0:(v=l.dealsData)==null?0:(L=v.sales)==null?0:L.originalPrice))&&(l==null?0:(q=l.dealsData)==null?0:(Y=q.priceDrop)==null?0:Y.referencePrice)){var U,R;return l==null?void 0:(U=l.dealsData)==null?void 0:(R=U.priceDrop)==null?void 0:R.referencePrice}return null};
  6515. gvt=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData;if(l==null?0:l.priceReplacementText)return l==null?void 0:l.priceReplacementText;if((l==null?0:l.promotionText)&&T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var v;return(l==null?void 0:l.price)+" "+(l==null?void 0:(v=l.promotionText)==null?void 0:v.content)}var L,q;if(l==null?0:(L=l.dealsData)==null?0:(q=L.sales)==null?0:q.originalPrice){var Y,U;return l==null?void 0:(Y=l.dealsData)==
  6516. null?void 0:(U=Y.sales)==null?void 0:U.salesPriceAccessibilityLabel}var R,Z;if(l==null?0:(R=l.dealsData)==null?0:(Z=R.priceDrop)==null?0:Z.referencePrice){var f,G;return(l==null?void 0:l.price)+" "+(l==null?void 0:(f=l.dealsData)==null?void 0:(G=f.priceDrop)==null?void 0:G.referencePrice)}return l==null?void 0:l.price};
  6517. MUJ=function(T){if(T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Q,k,l;return T.S.Sr?null:(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:(l=k.itemData)==null?void 0:l.vendorName}var v,L,q,Y,U,R;return T.S.Sr||T.B.Sr||((v=T.T)==null?0:(L=v.bannerData)==null?0:(q=L.itemData)==null?0:q.affiliateDisclaimer)?null:(Y=T.T)==null?void 0:(U=Y.bannerData)==null?void 0:(R=U.itemData)==null?void 0:R.vendorName};
  6518. Uc5=function(T,Q){fm(T);if(Q){var k=g.w4.getState().entities;k=V8(k,"featuredProductsEntity",Q);if(k!=null&&k.productsData){Q=[];k=g.B(k.productsData);for(var l=k.next();!l.done;l=k.next()){l=l.value;var v=void 0;if((v=l)!=null&&v.identifier&&l.featuredSegments){T.xm.push(l);var L=void 0;v=g.B((L=l)==null?void 0:L.featuredSegments);for(L=v.next();!L.done;L=v.next()){var q=L.value;L=YZH(q.startTimeSec);L!==void 0&&(q=YZH(q.endTimeSec),Q.push(new g.$d(L*1E3,q===void 0?0x7ffffffffffff:q*1E3,{id:l.identifier,
  6519. namespace:"featured_product"})))}}}T.U.fY(Q)}}};
  6520. ZL=function(T){if(T.trendingOfferEntityKey){var Q=g.w4.getState().entities;if(Q=V8(Q,"trendingOfferEntity",T.trendingOfferEntityKey)){var k,l,v;Q.encodedSkuId!==((k=T.T)==null?void 0:(l=k.bannerData)==null?void 0:(v=l.itemData)==null?void 0:v.encodedOfferSkuId)?RG(T):(T.S.update({trendingOffer:Q.shortLabel+" \u2022 "+Q.countLabel}),T.S.show(),T.banner.update({vendor:MUJ(T)}))}else RG(T)}else RG(T)};
  6521. RG=function(T){T.S.hide();T.banner.update({vendor:MUJ(T)})};
  6522. fm=function(T){T.xm=[];T.rp();T.U.uf("featured_product")};
  6523. RoX=function(T){var Q,k,l,v,L=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:(l=k.itemData)==null?void 0:(v=l.hiddenProductOptions)==null?void 0:v.dropTimestampMs;Q=(Number(L)-Date.now())/1E3;T.countdownTimer.qF(t1({seconds:Q}));if(Q>0){var q;(q=T.d5)==null||q.start()}};
  6524. Zs6=function(T){var Q;(Q=T.d5)==null||Q.stop();T.countdownTimer.hide()};
  6525. YZH=function(T){if(T!==void 0&&T.trim()!==""&&(T=Math.trunc(Number(T.trim())),!(isNaN(T)||T<0)))return T};
  6526. ho5=function(T,Q,k){g.p.call(this,{X:"div",Rk:["ytp-info-panel-action-item"],W:[{X:"div",J:"ytp-info-panel-action-item-disclaimer",S6:"{{disclaimer}}"},{X:"a",Rk:["ytp-info-panel-action-item-button","ytp-button"],K:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{X:"div",J:"ytp-info-panel-action-item-icon",S6:"{{icon}}"},{X:"div",J:"ytp-info-panel-action-item-label",S6:"{{label}}"}]}]});this.U=T;this.T=k;this.disclaimer=this.L_("ytp-info-panel-action-item-disclaimer");this.button=
  6527. this.L_("ytp-info-panel-action-item-button");this.Hk=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);T="";k=g.t(Q==null?void 0:Q.onTap,Dh);var l=g.t(k,g.uD);this.Hk=!1;l?(T=l.url||"",T.startsWith("//")&&(T="https:"+T),this.Hk=!0,g.YP(this.button,g.Ll(T))):(l=g.t(k,f3t))&&!this.T?((T=l.phoneNumbers)&&T.length>0?(T="sms:"+T[0],l.messageText&&(T+="?&body="+encodeURI(l.messageText))):T="",this.Hk=!0,g.YP(this.button,g.Ll(T,[G2H]))):(k=g.t(k,mc6))&&!this.T&&(T=k.phoneNumber?
  6528. "tel:"+k.phoneNumber:"",this.Hk=!0,g.YP(this.button,g.Ll(T,[I36])));var v;if(k=(v=Q.disclaimerText)==null?void 0:v.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var L;this.update({label:(L=Q.bodyText)==null?void 0:L.content,icon:BZ(),disclaimer:k})}else{this.disclaimer.style.display="none";var q;this.update({label:(q=Q.bodyText)==null?void 0:q.content,icon:BZ()})}this.U.setTrackingParams(this.element,Q.trackingParams||null);this.Hk&&(this.S={externalLinkData:{url:T}})};
  6529. s6b=function(T,Q){var k=vZ();g.LA.call(this,T,{X:"div",J:"ytp-info-panel-detail-skrim",W:[{X:"div",J:"ytp-info-panel-detail",K:{role:"dialog",id:k},W:[{X:"div",J:"ytp-info-panel-detail-header",W:[{X:"div",J:"ytp-info-panel-detail-title",S6:"{{title}}"},{X:"button",Rk:["ytp-info-panel-detail-close","ytp-button"],K:{"aria-label":"\u5173\u95ed"},W:[g.Ix()]}]},{X:"div",J:"ytp-info-panel-detail-body",S6:"{{body}}"},{X:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.T=Q;this.items=this.L_("ytp-info-panel-detail-items");
  6530. this.L=new g.Bj(this);this.itemData=[];this.Y=k;this.Z(this.L_("ytp-info-panel-detail-close"),"click",this.sG);this.Z(this.L_("ytp-info-panel-detail-skrim"),"click",this.sG);this.Z(this.L_("ytp-info-panel-detail"),"click",function(l){l.stopPropagation()});
  6531. g.P(this,this.L);this.U.createServerVe(this.element,this,!0);this.Z(T,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",T.getVideoData());this.hide()};
  6532. SZt=function(T,Q){T=g.B(T.itemData);for(var k=T.next();!k.done;k=T.next())k=k.value,k.U.logVisibility(k.element,Q)};
  6533. zof=function(T,Q){g.p.call(this,{X:"div",J:"ytp-info-panel-preview",K:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-info-panel-preview-text",S6:"{{text}}"},{X:"div",J:"ytp-info-panel-preview-chevron",S6:"{{chevron}}"}]});var k=this;this.U=T;this.yU=this.T=this.videoId=null;this.L=this.showControls=this.S=!1;this.Z(this.element,"click",function(){T.logClick(k.element);T.VV();gh(Q)});
  6534. this.fade=new g.TZ(this,250,!1,100);g.P(this,this.fade);this.U.createServerVe(this.element,this,!0);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"presentingplayerstatechange",this.bJ);this.Z(this.U,"paidcontentoverlayvisibilitychange",this.pI);this.Z(this.U,"infopaneldetailvisibilitychange",this.pI);var l=T.getVideoData()||{};CsI(l)&&B95(this,l);this.Z(T,"onShowControls",this.j7);this.Z(T,"onHideControls",this.Ai)};
  6535. B95=function(T,Q){if(!Q.m0||!T.U.Pc()){var k=Q.o$||1E4,l=CsI(Q);T.T?Q.videoId&&Q.videoId!==T.videoId&&(g.iN(T.T),T.videoId=Q.videoId,l?(X_X(T,k,Q),T.fA()):(T.sG(),T.T.dispose(),T.T=null)):l&&(Q.videoId&&(T.videoId=Q.videoId),X_X(T,k,Q),T.fA())}};
  6536. CsI=function(T){var Q,k,l,v;return!!((Q=T.iK)==null?0:(k=Q.title)==null?0:k.content)||!!((l=T.iK)==null?0:(v=l.bodyText)==null?0:v.content)};
  6537. X_X=function(T,Q,k){T.T&&T.T.dispose();T.T=new g.FA(T.OG9,Q,T);g.P(T,T.T);var l;Q=((l=k.iK)==null?void 0:l.trackingParams)||null;T.U.setTrackingParams(T.element,Q);var v;var L,q;if(k==null?0:(L=k.iK)==null?0:(q=L.title)==null?0:q.content){var Y;l=(v=k.iK)==null?void 0:(Y=v.title)==null?void 0:Y.content;var U,R;if((U=k.iK)==null?0:(R=U.bodyText)==null?0:R.content)l+=" \u2022 ";v=l}else v="";var Z,f;k=((Z=k.iK)==null?void 0:(f=Z.bodyText)==null?void 0:f.content)||"";T.update({text:v+k,chevron:g.mM()})};
  6538. w_u=function(T,Q){T.T&&(g.J(Q,8)?(T.S=!0,T.fA(),T.T.start()):(g.J(Q,2)||g.J(Q,64))&&T.videoId&&(T.videoId=null))};
  6539. GK=function(T){var Q=null;try{Q=T.toLocaleString("zh-CN",{style:"percent"})}catch(k){Q=T.toLocaleString(void 0,{style:"percent"})}return Q};
  6540. mJ=function(T,Q){var k=0;T=g.B(T);for(var l=T.next();!(l.done||l.value.startTime>Q);l=T.next())k++;return k===0?k:k-1};
  6541. dc5=function(T,Q){for(var k=0,l=g.B(T),v=l.next();!v.done;v=l.next()){v=v.value;if(Q<v.timeRangeStartMillis)return null;if(Q>=v.timeRangeStartMillis&&Q<v.timeRangeStartMillis+v.T)break;k++}k+1<T.length&&T[k+1].timeRangeStartMillis<=Q&&k++;return k<T.length?k:null};
  6542. N9I=function(T,Q){Q=mJ(T,Q)+1;return Q<T.length?Q:-1};
  6543. AXy=function(T,Q){return mJ(T,Q)-1};
  6544. bs5=function(T,Q){return new g.$d(T,Q,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+T})};
  6545. cXI=function(T,Q,k,l,v,L,q,Y){g.Bj.call(this);var U=this;this.api=T;this.N=Q;this.contextMenu=k;this.Ci=l;this.G_=v;this.T=L;this.B=q;this.progressBar=Y;this.Y=new g.FA(function(){rXI(U,!1)},1E3);
  6546. this.S="";this.L={WU:!1,n9:!1,Va:!1};g.P(this,this.Y);this.Z(Q,"mousedown",function(){IG(U,!1)});
  6547. this.Z(k.element,"mousedown",function(){IG(U,!1)});
  6548. this.Z(Q,"keydown",this.Ks);this.Z(k.element,"keydown",this.Ks);this.Z(Q,"keyup",this.G1);this.Z(k.element,"keyup",this.G1)};
  6549. DcH=function(T,Q){if(Q<0)return"0";T=Math.floor(Math.min(Q,T.api.getDuration())*1E3);return T>2147483647?"0":String(T)};
  6550. hG=function(T,Q,k){var l=T.api.getCurrentTime(),v=DcH(T,l);T=DcH(T,l+Q);return{startMediaTimeMs:v,endMediaTimeMs:T,seekSource:k}};
  6551. a3t=function(T){var Q,k=(Q=T.api.getVideoData())==null?void 0:Q.lf();return T.api.getPresentingPlayerType(k)!==2};
  6552. IG=function(T,Q){T.L.n9=Q;g.gl(T.api.getRootNode(),"ytp-probably-keyboard-focus",Q);g.gl(T.contextMenu.element,"ytp-probably-keyboard-focus",Q)};
  6553. Cm=function(T,Q,k,l){var v=g.uj(T.api.Bx());if(v&&v.loaded){var L=T.api.getSubtitlesUserSettings();v=void 0;for(var q=0;q<g.SL.length;q++){var Y=g.SL[q];if(Y.option===Q){v=Y.options;break}}q=void 0;for(Y=0;Y<v.length;Y++)v[Y].option===L[Q]&&(q=Y);if(l)if(k){if(q===0)return}else if(q===v.length-1)return;l={};l[Q]=v[(q+(k?v.length-1:1))%v.length].option;T.api.updateSubtitlesUserSettings(l);rXI(T,!0);T.Y.start()}};
  6554. rXI=function(T,Q){g.uj(T.api.Bx())&&T.api.setOption("captions","sampleSubtitles",Q)};
  6555. B1=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-overflow-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"\u66f4\u591a":"","data-tooltip-title":"\u66f4\u591a","aria-haspopup":"true","aria-owns":Q.element.id},W:[{X:"div",J:"ytp-overflow-icon",W:[{X:"svg",K:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{X:"path",K:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
  6556. fill:"#fff"}}]}]}]});var k=this;this.U=T;this.nz=Q;this.visible=!1;T.createClientVe(this.element,this,16499);this.Z(T,"videoplayerreset",this.Aj);this.Z(T,"appresize",this.Aj);this.Z(T,"fullscreentoggled",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.Aj();OU(T,this.element,this);this.listen("click",function(){T.logClick(k.element);gh(Q,k.element,!1)});
  6557. this.Z(Q.closeButton,"click",function(){k.focus()})};
  6558. uDy=function(T){g.LA.call(this,T,{X:"div",J:"ytp-overflow-panel",K:{id:vZ(),role:"dialog"},W:[{X:"div",J:"ytp-overflow-panel-content",W:[{X:"div",J:"ytp-overflow-panel-action-buttons",S6:"{{buttons}}"}]},{X:"button",Rk:["ytp-overflow-panel-close","ytp-button"],K:{"data-tooltip-title":"\u5173\u95ed",title:T.G().V("player_tooltip_data_title_killswitch")?"\u5173\u95ed":""},W:[g.Ix()]}]},250);this.actionButtons=[];this.T=this.L_("ytp-overflow-panel-content");this.closeButton=this.L_("ytp-overflow-panel-close");
  6559. this.Z(this.closeButton,"click",this.sG);OU(T,this.closeButton,this);this.listen("click",this.IL);this.Z(T,"videoplayerreset",this.hide);this.Z(T,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
  6560. nvb=function(T,Q){T.actionButtons.includes(Q)||(T.actionButtons.push(Q),T.updateValue("buttons",T.actionButtons))};
  6561. K$C=function(T,Q){T=g.B(T.actionButtons);for(var k=T.next();!k.done;k=T.next())k.value.vx(Q)};
  6562. xc5=function(T,Q,k){var l=g.wN(Q,k),v=l.rO("default.jpg");g.p.call(this,{X:"a",Rk:["ytp-video-menu-item","ytp-button"],K:{role:"menuitemradio","aria-label":l.title,href:T.G().getVideoUrl(l.videoId,Q.listId?Q.listId.toString():null)},W:[{X:"div",J:"ytp-video-menu-item-index",S6:String(k+1)},{X:"div",J:"ytp-video-menu-item-now-playing",S6:"\u25b6"},{X:"div",J:"ytp-video-menu-item-thumbnail",K:{style:v?"background-image: url("+v+");":void 0}},{X:"div",J:"ytp-video-menu-item-title",S6:l.title},{X:"div",
  6563. J:"ytp-video-menu-item-author",S6:l.author}]});this.api=T;this.index=k;this.listen("click",this.onClick)};
  6564. Psu=function(T){g.LA.call(this,T,{X:"div",J:"ytp-playlist-menu",K:{role:"dialog",id:vZ()},W:[{X:"div",J:"ytp-playlist-menu-header",W:[{X:"div",J:"ytp-playlist-menu-title",W:[T.G().L?{X:"span",J:"ytp-playlist-menu-title-name",S6:"{{title}}"}:{X:"a",J:"ytp-playlist-menu-title-name",K:{href:"{{playlisturl}}"},S6:"{{title}}"},{X:"button",Rk:["ytp-playlist-menu-close","ytp-button"],K:{"aria-label":"\u5173\u95ed"},W:[g.Ix()]}]},{X:"div",J:"ytp-playlist-menu-subtitle",S6:"{{subtitle}}"}]},{X:"div",J:"ytp-playlist-menu-items",
  6565. K:{role:"menu"}}]},250);this.api=T;this.L=this.selected=this.Y=this.playlist=null;this.items=this.L_("ytp-playlist-menu-items");this.T=new g.Bj(this);this.playlistData=[];this.Z(this.L_("ytp-playlist-menu-close"),"click",this.sG);var Q=this.L_("ytp-playlist-menu-title-name");T.G().L||(this.L=this.Z(Q,"click",this.QK9));g.P(this,this.T);this.hide()};
  6566. zK=function(T,Q){var k={};g.p.call(this,{X:"button",Rk:["ytp-playlist-menu-button","ytp-button"],K:(k.title=T.V("player_tooltip_data_title_killswitch")?"{{title}}":"",k["data-tooltip-title"]="{{tooltip-title}}",k["aria-owns"]=String(Q.element.id),k["aria-haspopup"]="true",k["aria-label"]="\u64ad\u653e\u5217\u8868",k["data-overlay-order"]="2",k),W:[{X:"div",J:"ytp-playlist-menu-button-icon",W:[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
  6567. fill:"#fff"}}]}]},{X:"div",J:"ytp-playlist-menu-button-title",S6:"{{playlistTitle}}"},{X:"div",J:"ytp-playlist-menu-button-text",S6:"{{text}}"}]});var l=this;this.api=T;this.playlist=null;this.visible=!1;T.createClientVe(this.element,this,70344);this.Z(T,"videodatachange",this.T);this.Z(T,"videoplayerreset",this.T);this.Z(T,"onPlaylistUpdate",this.T);this.Z(T,"presentingplayerstatechange",this.Aj);this.Z(T,"appresize",this.Aj);this.hide();this.T();OU(T,this.element,this);this.listen("click",function(){T.logClick(l.element);
  6568. T.V("delhi_web_player_use_external_playlist_panel")?T.tj("onToggleExternalPlaylistPanel"):gh(Q,l.element,!1)})};
  6569. Hsg=function(T,Q){g.p.call(this,{X:"div",J:"ytp-promotooltip-wrapper",W:[{X:"div",J:"ytp-promotooltip-container",W:[{X:"div",J:"ytp-promotooltip-content",W:[{X:"div",J:"ytp-promotooltip-title",S6:"{{title}}"},{X:"div",J:"ytp-promotooltip-details",S6:"{{details}}"}]},{X:"div",J:"ytp-promotooltip-buttons",W:[{X:"div",J:"ytp-promotooltip-dismiss-button",S6:"{{dismissButtonText}}",K:{tabindex:"0"}},{X:"div",J:"ytp-promotooltip-accept-button",S6:"{{acceptButtonText}}",K:{tabindex:"0","aria-haspopup":"true"}}]}]},
  6570. {X:"div",J:"ytp-promotooltip-pointer"}]});var k=this;this.tooltipRenderer=T;this.U=Q;this.T=this.L=null;this.title=this.L_("ytp-promotooltip-title");this.details=this.L_("ytp-promotooltip-details");this.acceptButton=this.L_("ytp-promotooltip-accept-button");this.dismissButton=this.L_("ytp-promotooltip-dismiss-button");this.S=this.B=!1;this.Y=!0;this.z9=this.C=this.D=this.j=!1;this.dn={M8:function(l){k.M8(l)}};
  6571. this.o_(!1);T=this.tooltipRenderer.trackingParams||null;if(this.S=!!T)this.U.createServerVe(this.element,this,!0),this.U.setTrackingParams(this.element,T);this.Z(Q,"onShowControls",this.Gp);this.Z(Q,"onHideControls",this.KL);this.Z(Q,"resize",this.zx);this.Z(this.acceptButton,"click",this.xOj);this.Z(this.dismissButton,"click",this.DOO);this.Z(document,"click",this.P8)};
  6572. tUg=function(T){var Q=document.querySelectorAll('[data-tooltip-target-id="'+T.tooltipRenderer.targetId+'"]');Q=Q.length>0?Q[0]:null;var k=g.gK("ytp-chrome-bottom"),l=g.gK("ytp-ad-module");T.Y=!(k==null||!k.contains(Q));T.j=!(l==null||!l.contains(Q));T.D=!(Q==null||!Q.hasAttribute("data-tooltip-target-fixed"));return Q};
  6573. W$C=function(T,Q,k){if(!T.B){if(Q){T.tooltipRenderer=Q;Q=T.tooltipRenderer.text;var l=!1,v;(Q==null?0:(v=Q.runs)==null?0:v.length)&&Q.runs[0].text&&(T.update({title:Q.runs[0].text.toString()}),l=!0);g.kj(T.title,l);Q=T.tooltipRenderer.detailsText;v=!1;var L;if((Q==null?0:(L=Q.runs)==null?0:L.length)&&Q.runs[0].text){l=Q.runs[0].text.toString();L=l.indexOf("$TARGET_ICON");if(L>-1)if(T.tooltipRenderer.targetId){Q=[];l=l.split("$TARGET_ICON");var q=new g.LD({X:"span",J:"ytp-promotooltip-details-icon",
  6574. W:[Os5[T.tooltipRenderer.targetId]]});g.P(T,q);for(var Y=[],U=g.B(l),R=U.next();!R.done;R=U.next())R=new g.LD({X:"span",J:"ytp-promotooltip-details-component",S6:R.value}),g.P(T,R),Y.push(R);l.length===2?(Q.push(Y[0].element),Q.push(q.element),Q.push(Y[1].element)):l.length===1&&(L===0?(Q.push(q.element),Q.push(Y[0].element)):(Q.push(Y[0].element),Q.push(q.element)));L=Q.length?Q:null}else L=null;else L=l;if(L){if(typeof L!=="string")for(g.IO(T.details),v=g.B(L),L=v.next();!L.done;L=v.next())T.details.appendChild(L.value);
  6575. else T.update({details:L});v=!0}}g.kj(T.details,v);v=T.tooltipRenderer.acceptButton;L=!1;var Z,f,G;((Z=g.t(v,g.jw))==null?0:(f=Z.text)==null?0:(G=f.runs)==null?0:G.length)&&g.t(v,g.jw).text.runs[0].text&&(T.update({acceptButtonText:g.t(v,g.jw).text.runs[0].text.toString()}),L=!0);g.kj(T.acceptButton,L);Z=T.tooltipRenderer.dismissButton;f=!1;var m,I,z;((m=g.t(Z,g.jw))==null?0:(I=m.text)==null?0:(z=I.runs)==null?0:z.length)&&g.t(Z,g.jw).text.runs[0].text&&(T.update({dismissButtonText:g.t(Z,g.jw).text.runs[0].text.toString()}),
  6576. f=!0);g.kj(T.dismissButton,f)}k&&(T.L=k);T.T=tUg(T);T.C=!1;T.U.G().V("web_player_hide_nitrate_promo_tooltip")||T.o_(!0);p_6(T);T.Sr&&!T.z9&&(T.z9=!0,T.dn.M8(0));T.S&&T.U.logVisibility(T.element,T.Sr)}};
  6577. Xa=function(T){T.o_(!1);T.S&&T.U.logVisibility(T.element,T.Sr)};
  6578. $cy=function(T){var Q,k,l,v=((Q=g.t(T.acceptButton,g.jw))==null?void 0:(k=Q.text)==null?void 0:(l=k.runs)==null?void 0:l.length)&&!!g.t(T.acceptButton,g.jw).text.runs[0].text,L,q,Y;Q=((L=g.t(T.dismissButton,g.jw))==null?void 0:(q=L.text)==null?void 0:(Y=q.runs)==null?void 0:Y.length)&&!!g.t(T.dismissButton,g.jw).text.runs[0].text;return v||Q};
  6579. p_6=function(T){var Q;if(!(Q=!T.T)){Q=T.T;var k=window.getComputedStyle(Q);Q=k.display==="none"||k.visibility==="hidden"||Q.getAttribute("aria-hidden")==="true"}if(Q||T.U.isMinimized())T.o_(!1);else if(Q=g.jC(T.T),Q.width&&Q.height){T.U.MG(T.element,T.T);var l=T.U.Hx().getPlayerSize().height;k=g.jC(T.L_("ytp-promotooltip-container")).height;T.Y?T.element.style.top=l-k-Q.height-12+"px":T.D||(l=T.U.IM().height-k-Q.height-12,T.element.style.top=l+"px");l=T.L_("ytp-promotooltip-pointer");var v=g.To(T.T,
  6580. T.U.getRootNode()),L=Number(T.element.style.left.replace(/[^\d\.]/g,""));T=T.U.isFullscreen()?18:12;l.style.left=v.x-L+Q.width/2-T+"px";l.style.top=k+"px"}else T.o_(!1)};
  6581. wu=function(T){g.p.call(this,{X:"button",Rk:["ytp-replay-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"\u91cd\u653e":"","data-tooltip-title":"\u91cd\u653e"},W:[g.wD()]});this.U=T;this.Z(T,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.OH(T.getPlayerStateObject());OU(this.U,this.element,this)};
  6582. du=function(T,Q){Q=Q===void 0?240:Q;g.p.call(this,{X:"button",Rk:["ytp-button","ytp-search-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"\u641c\u7d22":"","data-tooltip-title":"\u641c\u7d22","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-search-icon",S6:"{{icon}}"},{X:"div",J:"ytp-search-title",S6:"\u641c\u7d22"}]});this.api=T;this.S=Q;this.visible=!1;this.updateValue("icon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",J:"ytp-svg-fill",
  6583. K:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});T.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.Z(T,"appresize",this.T);this.Z(T,"videodatachange",this.T);OU(T,this.element,this)};
  6584. Na=function(T){g.p.call(this,{X:"div",J:"ytp-seek-overlay",W:[{X:"div",Rk:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],W:[{X:"div",Rk:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{X:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{X:"path",K:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{X:"div",J:"ytp-seek-overlay-duration",S6:"{{durationBack}}"}]},{X:"div",Rk:["ytp-seek-overlay-animation",
  6585. "ytp-seek-overlay-animation-forward"],W:[{X:"div",J:"ytp-seek-overlay-duration",S6:"{{durationForward}}"},{X:"div",Rk:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{X:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{X:"path",K:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{X:"div",J:"ytp-seek-overlay-message",W:[{X:"div",J:"ytp-seek-overlay-message-icon",S6:"{{icon}}"},{X:"div",J:"ytp-seek-overlay-message-text",
  6586. S6:"{{text}}"}]}]});var Q=this;this.U=T;this.C=0;this.T="hidden";this.j=this.L_("ytp-seek-overlay-animation-back");this.D=this.L_("ytp-seek-overlay-animation-forward");this.z9=this.L_("ytp-seek-overlay-message");this.B=new g.FA(function(){JXX(Q)},g.jj(this.U.G().experiments,"web_player_seek_overlay_linger_duration")||1E3);
  6587. g.P(this,this.B);this.U.createClientVe(this.D,this,28240);this.U.createClientVe(this.j,this,28239);this.U.logVisibility(this.D,!0);this.U.logVisibility(this.j,!0);this.hide()};
  6588. eoH=function(T,Q){T.L=T.Y.animate([{offset:0,opacity:Q,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});T.L.addEventListener("finish",function(){T.L=void 0;T.B.start();T.T="lingering"})};
  6589. F$y=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;var v=[];v.push({offset:0,transform:"translateX("+(T.S===-1?20:-20)+"px)",opacity:k?"0":"1"});k&&v.push({offset:.5,opacity:"1"});v.push({offset:1,transform:"translateX(0)"});k=Q.animate(v,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});Q=Q.querySelector("path");v=[];v.push({offset:0,d:T.S===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});l&&v.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});
  6590. T={offset:1,d:T.S===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};l&&(T.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");v.push(T);Q.animate(v,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return k};
  6591. EvI=function(T){var Q=T.Y.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);Q.classList.add("ytp-seek-overlay-arrow-additional");Q.classList.remove("ytp-seek-overlay-arrow-persistent");T.Y.appendChild(Q);F$y(T,Q,!0,!0).addEventListener("finish",function(){Q.remove()})};
  6592. JXX=function(T,Q,k){k=k===void 0?!0:k;T.L=T.Y.animate([{offset:0,opacity:Q===void 0?1:Q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});k&&(T.L.addEventListener("finish",function(){T.L=void 0;yXu(T);T.hide()}),T.T="fading-out")};
  6593. isT=function(T){var Q=Number(getComputedStyle(T.Y).opacity),k;(k=T.L)==null||k.cancel();T.L=void 0;return Q};
  6594. yXu=function(T){T.C=0;T.T="hidden";T.S=void 0;T.Y=void 0;T.B.stop();T.L=void 0};
  6595. VUX=function(T,Q,k){T.updateValue("text",Q);if(k){a:{switch(k){case "PREMIUM_STANDALONE":Q=rgf();break a;case "PREMIUM_STANDALONE_CAIRO":Q=cgg();break a}Q=void 0}T.updateValue("icon",Q)}Q=g.B(T.z9.getAnimations());for(k=Q.next();!k.done;k=Q.next())k.value.cancel();T.z9.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){T.updateValue("text","");T.updateValue("icon","")})};
  6596. AG=function(T,Q,k,l){l=l===void 0?240:l;g.p.call(this,{X:"button",Rk:["ytp-button","ytp-share-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"\u5206\u4eab":"","data-tooltip-title":"\u5206\u4eab","aria-haspopup":"true","aria-owns":k.element.id,"data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-share-icon",S6:"{{icon}}"},{X:"div",J:"ytp-share-title",S6:"\u5206\u4eab"}]});this.api=T;this.T=Q;this.S=k;this.L=l;this.visible=!1;this.tooltip=this.T.aK();T.createClientVe(this.element,
  6597. this,28664);this.listen("click",this.onClick);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Z(T,"appresize",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.Aj();this.addOnDisposeCallback(g.ty(this.tooltip,this.element))};
  6598. TF6=function(T){var Q=T.api.G(),k=T.api.getVideoData(),l=g.Qk(Q)&&g.FZ(T.api)&&g.J(T.api.getPlayerStateObject(),128);Q=Q.L||Q.disableSharing&&T.api.getPresentingPlayerType()!==2||!k.showShareButton||k.W5||l||k.hh||!1;l=T.api.Hx().getPlayerSize().width;return!!k.videoId&&l>=T.L&&!Q};
  6599. QMf=function(T,Q){Q.name!=="InvalidStateError"&&Q.name!=="AbortError"&&(Q.name==="NotAllowedError"?(T.T.VV(),gh(T.S,T.element,!1)):g.bA(Q))};
  6600. krT=function(T,Q){var k=vZ(),l=T.G();k={X:"div",J:"ytp-share-panel",K:{id:vZ(),role:"dialog","aria-labelledby":k},W:[{X:"div",J:"ytp-share-panel-inner-content",W:[{X:"div",J:"ytp-share-panel-title",K:{id:k},S6:"\u5206\u4eab"},{X:"a",Rk:["ytp-share-panel-link","ytp-no-contextmenu"],K:{href:"{{link}}",target:l.D,title:"\u5206\u4eab\u94fe\u63a5","aria-label":"{{shareLinkWithUrl}}"},S6:"{{linkText}}"},{X:"label",J:"ytp-share-panel-include-playlist",W:[{X:"input",J:"ytp-share-panel-include-playlist-checkbox",
  6601. K:{type:"checkbox",checked:"true"}},"\u5305\u62ec\u64ad\u653e\u5217\u8868"]},{X:"div",J:"ytp-share-panel-loading-spinner",W:[AN()]},{X:"div",J:"ytp-share-panel-service-buttons",S6:"{{buttons}}"},{X:"div",J:"ytp-share-panel-error",S6:"\u68c0\u7d22\u5206\u4eab\u4fe1\u606f\u65f6\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002"}]},{X:"button",Rk:["ytp-share-panel-close","ytp-button"],K:{title:"\u5173\u95ed"},W:[g.Ix()]}]};g.LA.call(this,T,k,250);var v=this;this.moreButton=null;this.api=T;this.tooltip=
  6602. Q.aK();this.L=[];this.B=this.L_("ytp-share-panel-inner-content");this.closeButton=this.L_("ytp-share-panel-close");this.Z(this.closeButton,"click",this.sG);this.addOnDisposeCallback(g.ty(this.tooltip,this.closeButton));this.Y=this.L_("ytp-share-panel-include-playlist-checkbox");this.Z(this.Y,"click",this.Aj);this.T=this.L_("ytp-share-panel-link");this.addOnDisposeCallback(g.ty(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.Z(this.T,"click",function(L){L.preventDefault();v.api.logClick(v.T);
  6603. var q=v.api.getVideoUrl(!0,!0,!1,!1);q=jMg(v,q);g.dh(q,v.api,L)&&v.api.tj("SHARE_CLICKED")});
  6604. this.listen("click",this.nL);this.Z(T,"videoplayerreset",this.hide);this.Z(T,"fullscreentoggled",this.onFullscreenToggled);this.Z(T,"onLoopRangeChange",this.u2);this.hide()};
  6605. vGf=function(T,Q){l6I(T);for(var k=Q.links||Q.shareTargets,l=0,v={},L=0;L<k.length&&l<2;v={iq:void 0,T6:void 0},L++){v.iq=k[L];a:switch(v.iq.img||v.iq.iconId){case "facebook":var q={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{X:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",K:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
  6606. fill:"#39579b"}}]};break a;case "twitter":q={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{X:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",K:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
  6607. fill:"#01abf0"}}]};break a;default:q=null}if(q){var Y=v.iq.sname||v.iq.serviceName;v.T6=new g.p({X:"a",Rk:["ytp-share-panel-service-button","ytp-button"],K:{href:v.iq.url,target:"_blank",title:Y},W:[q]});v.T6.listen("click",function(Z){return function(f){var G=Z.iq.url;if(g.B8(f)){var m=m===void 0?{}:m;m.target=m.target||"YouTube";m.width=m.width||"600";m.height=m.height||"600";var I=m;I||(I={});m=window;var z=G instanceof kP?G:g.Ll(typeof G.href!="undefined"?G.href:String(G));var w=self.crossOriginIsolated!==
  6608. void 0,r="strict-origin-when-cross-origin";window.Request&&(r=(new Request("/")).referrerPolicy);var A=I.noreferrer;if(w&&A&&r==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");r=A&&!w;G=I.target||G.target;A=[];var D=[],K=!1;for(E in I){var O=I[E];switch(E){case "width":case "height":case "top":case "left":A.push(E+"="+O);break;case "target":break;case "noopener":case "noreferrer":O?D.push(E):(K=!0,D.push(E+"=false"));
  6609. break;case "attributionsrc":A.push(E+(O?"="+O:""));break;default:A.push(E+"="+(O?1:0))}}var E=G!==void 0&&!["_blank","_self","_top","_parent",""].includes(G);E=eP()&&E;oGt&&w&&A.length===0&&D.length>0&&!E&&!K?(D.length===2&&(D=["noreferrer"]),g.GH(m,z,G,D[0]),m=QSy()):(w=A.join(","),Kl()&&m.navigator&&m.navigator.standalone&&G&&G!="_self"?(w=g.fO("A"),g.YP(w,z),w.target=G,r&&(w.rel="noreferrer"),((I=I.attributionsrc)||I==="")&&w.setAttribute("attributionsrc",I),I=document.createEvent("MouseEvent"),
  6610. I.initMouseEvent("click",!0,!0,m,1),w.dispatchEvent(I),m=QSy()):r?(m=g.GH(m,"",G,w),I=g.lX(z),m&&(m.opener=null,I===""&&(I="javascript:''"),I='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ra(I)+'">',I=Zo(I),(z=m.document)&&z.write&&(z.write(fl(I)),z.close()))):((m=g.GH(m,z,G,w))&&I.noopener&&(m.opener=null),m&&I.noreferrer&&(m.opener=null)));m&&(m.opener||(m.opener=window),m.focus());f.preventDefault()}}}(v));
  6611. v.T6.addOnDisposeCallback(g.ty(T.tooltip,v.T6.element));Y==="Facebook"?T.api.createClientVe(v.T6.element,v.T6,164504):Y==="Twitter"&&T.api.createClientVe(v.T6.element,v.T6,164505);T.Z(v.T6.element,"click",function(Z){return function(){T.api.logClick(Z.T6.element)}}(v));
  6612. T.api.logVisibility(v.T6.element,!0);T.L.push(v.T6);l++}}var U=Q.more||Q.moreLink,R=new g.p({X:"a",Rk:["ytp-share-panel-service-button","ytp-button"],W:[{X:"span",J:"ytp-share-panel-service-button-more",W:[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{X:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",K:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
  6613. fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],K:{href:U,target:"_blank",title:"\u66f4\u591a\u9009\u9879"}});R.listen("click",function(Z){var f=U;T.api.logClick(T.moreButton.element);f=jMg(T,f);g.dh(f,T.api,Z)&&T.api.tj("SHARE_CLICKED")});
  6614. R.addOnDisposeCallback(g.ty(T.tooltip,R.element));T.api.createClientVe(R.element,R,164506);T.Z(R.element,"click",function(){T.api.logClick(R.element)});
  6615. T.api.logVisibility(R.element,!0);T.L.push(R);T.moreButton=R;T.updateValue("buttons",T.L)};
  6616. jMg=function(T,Q){var k={};g.Qk(T.api.G())&&(g.Ay(T.api,"addEmbedsConversionTrackingParams",[k]),Q=g.sD(Q,k));return Q};
  6617. l6I=function(T){for(var Q=g.B(T.L),k=Q.next();!k.done;k=Q.next())k=k.value,k.detach(),g.od(k);T.L=[]};
  6618. bz=function(T){return T===void 0||T.startSec===void 0||T.endSec===void 0?!1:!0};
  6619. LH6=function(T,Q){T.startSec+=Q;T.endSec+=Q};
  6620. gG6=function(T){N4.call(this,T);this.S=this.T=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");qOJ(this);this.Z(this.U,"changeProductsInVideoVisibility",this.hge);this.Z(this.U,"videodatachange",this.onVideoDataChange)};
  6621. M0H=function(T){T.B&&T.e6.element.removeChild(T.B.element);T.B=void 0};
  6622. UeC=function(T,Q){return Q.map(function(k){var l,v;if((k=(l=g.t(k,YOy))==null?void 0:(v=l.thumbnail)==null?void 0:v.thumbnails)&&k.length!==0)return k[0].url}).filter(function(k){return k!==void 0}).map(function(k){k=new g.p({X:"img",
  6623. J:"ytp-suggested-action-product-thumbnail",K:{alt:"",src:k}});g.P(T,k);return k})};
  6624. Rl5=function(T,Q){T.isContentForward=Q;g.gl(T.badge.element,"ytp-suggested-action-badge-content-forward",Q)};
  6625. ru=function(T){var Q=T.isContentForward&&!T.FY();g.gl(T.badge.element,"ytp-suggested-action-badge-preview-collapsed",Q&&T.T);g.gl(T.badge.element,"ytp-suggested-action-badge-preview-expanded",Q&&T.S)};
  6626. c1=function(T,Q,k){return new g.$d(T*1E3,Q*1E3,{priority:9,namespace:k})};
  6627. Z0t=function(T){T.U.uf("shopping_overlay_visible");T.U.uf("shopping_overlay_preview_collapsed");T.U.uf("shopping_overlay_preview_expanded");T.U.uf("shopping_overlay_expanded")};
  6628. qOJ=function(T){T.Z(T.U,g.ej("shopping_overlay_visible"),function(){T.H1(!0)});
  6629. T.Z(T.U,g.Ft("shopping_overlay_visible"),function(){T.H1(!1)});
  6630. T.Z(T.U,g.ej("shopping_overlay_expanded"),function(){T.qO=!0;dW(T)});
  6631. T.Z(T.U,g.Ft("shopping_overlay_expanded"),function(){T.qO=!1;dW(T)});
  6632. T.Z(T.U,g.ej("shopping_overlay_preview_collapsed"),function(){T.T=!0;ru(T)});
  6633. T.Z(T.U,g.Ft("shopping_overlay_preview_collapsed"),function(){T.T=!1;ru(T)});
  6634. T.Z(T.U,g.ej("shopping_overlay_preview_expanded"),function(){T.S=!0;ru(T)});
  6635. T.Z(T.U,g.Ft("shopping_overlay_preview_expanded"),function(){T.S=!1;ru(T)})};
  6636. mef=function(T){g.p.call(this,{X:"div",J:"ytp-shorts-title-channel",W:[{X:"a",J:"ytp-shorts-title-channel-logo",K:{href:"{{channelLink}}",target:T.G().D,"aria-label":"{{channelLogoLabel}}"}},{X:"div",J:"ytp-shorts-title-expanded-heading",W:[{X:"div",J:"ytp-shorts-title-expanded-title",W:[{X:"a",S6:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:T.G().D,tabIndex:"0"}}]}]}]});var Q=this;this.api=T;this.T=this.L_("ytp-shorts-title-channel-logo");this.channelName=this.L_("ytp-shorts-title-expanded-title");
  6637. this.subscribeButton=null;T.createClientVe(this.T,this,36925);this.Z(this.T,"click",function(k){Q.api.logClick(Q.T);g.GH(window,f6g(Q));k.preventDefault()});
  6638. T.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(k){Q.api.logClick(Q.channelName);g.GH(window,f6g(Q));k.preventDefault()});
  6639. GrH(this);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Aj()};
  6640. GrH=function(T){if(!T.api.G().Gg){var Q=T.api.getVideoData(),k=new g.qa("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,Q.hH,Q.subscribed,"channel_avatar",null,T.api,!0);T.api.createServerVe(k.element,T);var l;T.api.setTrackingParams(k.element,((l=Q.subscribeButtonRenderer)==null?void 0:l.trackingParams)||null);T.Z(k.element,"click",function(){T.api.logClick(k.element)});
  6641. T.subscribeButton=k;g.P(T,T.subscribeButton);T.subscribeButton.XB(T.element)}};
  6642. f6g=function(T){var Q=T.api.G(),k=T.api.getVideoData();k=g.bF(Q)+k.Tg;if(!g.Qk(Q))return k;Q={};g.Ay(T.api,"addEmbedsConversionTrackingParams",[Q]);return g.sD(k,Q)};
  6643. DL=function(T){g.LA.call(this,T,{X:"button",Rk:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{X:"div",J:"ytp-skip-intro-button-text",S6:"\u8df3\u8fc7\u4ecb\u7ecd"}]},100);var Q=this;this.L=!1;this.T=new g.FA(function(){Q.hide()},5E3);
  6644. this.nG=this.VD=NaN;g.P(this,this.T);this.C=function(){Q.show()};
  6645. this.B=function(){Q.hide()};
  6646. this.Y=function(){var k=Q.U.getCurrentTime();k>Q.VD/1E3&&k<Q.nG/1E3&&Q.show()};
  6647. this.Z(this.U,"videodatachange",function(k,l){Q.Kp(k,l)});
  6648. this.Z(this.element,"click",function(){Q.U.seekTo(Q.nG/1E3)});
  6649. this.hide()};
  6650. aG=function(T){g.p.call(this,{X:"button",Rk:["ytp-airplay-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},S6:"{{icon}}"});this.U=T;this.listen("click",this.onClick);this.Z(T,"airplayactivechange",this.Aj);this.Z(T,"airplayavailabilitychange",this.Aj);this.Aj();OU(T,this.element,this)};
  6651. hl5=function(T){g.p.call(this,{X:"div",J:"ytp-gradient-bottom"});this.S=g.fO("CANVAS");this.T=this.S.getContext("2d",{willReadFrequently:!0});this.L=NaN;this.S.width=1;I6T(this,T.Hx().getPlayerSize().height)};
  6652. I6T=function(T,Q){if(T.T){Q=Math.floor(Q*.4);Q=Math.max(Q,47);var k=Q+2;if(T.L!==k){T.L=k;T.S.height=k;T.T.clearRect(0,0,1,k);var l=T.T.createLinearGradient(0,2,0,2+Q),v=Q-42;l.addColorStop(0,"rgba(0, 0, 0, 0)");l.addColorStop(v/Q,"rgba(0, 0, 0, 0.3)");l.addColorStop(1,"rgba(0, 0, 0, 0.68)");T.T.fillStyle=l;T.T.fillRect(0,2,1,Q);T.element.style.height=k+"px";try{T.element.style.backgroundImage="url("+T.S.toDataURL()+")"}catch(L){}}}};
  6653. uz=function(T,Q,k,l){g.p.call(this,{X:"div",J:"ytp-chapter-container",W:[{X:"button",Rk:["ytp-chapter-title","ytp-button"],W:[{X:"span",K:{"aria-hidden":"true"},J:"ytp-chapter-title-prefix",S6:"\u2022"},{X:"div",J:"ytp-chapter-title-content",S6:"{{chapterTitle}}",K:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:T.V("player_tooltip_data_title_killswitch")?l:"","data-tooltip-title":l}},{X:"div",J:"ytp-chapter-title-chevron",W:[{X:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",
  6654. K:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.U=T;this.Y=Q;this.C="";this.currentIndex=0;this.S=void 0;this.L=!0;this.hj=this.L_("ytp-chapter-container");this.T=this.L_("ytp-chapter-title");this.B=this.L_("ytp-chapter-title-content");this.D();this.updateVideoData("newdata",this.U.getVideoData());this.Z(T,"videodatachange",this.updateVideoData);this.Z(T,"resize",this.D);this.Z(this.hj,"click",this.onClick);this.Z(T,g.ej(k),this.bC);this.Z(T,"onLoopRangeChange",
  6655. this.bC);this.Z(T,"innertubeCommand",this.onClickCommand);(T=g.gj(this.U.G()))&&g.gl(this.T,"ytp-profile-page",!0);g.Qk(this.U.G())||T||OU(this.U,this.B,this)};
  6656. nm=function(T,Q){uz.call(this,T,Q,"chapterCueRange","\u67e5\u770b\u7ae0\u8282");this.j=""};
  6657. Km=function(){g.M1.call(this,{X:"button",Rk:["ytp-expand-right-bottom-section-button","ytp-button"],K:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[g.mM()]});this.T=!1;this.listen("click",this.S)};
  6658. sMb=function(T,Q,k,l,v){var L=Q.rh/Q.rows,q=Math.min(k/(Q.Z1/Q.columns),l/L),Y=Q.Z1*q,U=Q.rh*q;Y=Math.floor(Y/Q.columns)*Q.columns;U=Math.floor(U/Q.rows)*Q.rows;var R=Y/Q.columns,Z=U/Q.rows,f=-Q.column*R,G=-Q.row*Z;v&&L<=45&&(Z-=1/q);R-=2/q;T=T.style;T.width=R+"px";T.height=Z+"px";v||(l=(l-Z)/2,k=(k-R)/2,T.marginTop=Math.floor(l)+"px",T.marginBottom=Math.ceil(l)+"px",T.marginLeft=Math.floor(k)+"px",T.marginRight=Math.ceil(k)+"px");T.background="url("+Q.url+") "+f+"px "+G+"px/"+Y+"px "+U+"px"};
  6659. xW=function(T,Q){g.p.call(this,{X:"div",J:"ytp-storyboard-framepreview",W:[{X:"div",J:"ytp-storyboard-framepreview-timestamp",S6:"{{timestamp}}"},{X:"div",J:"ytp-storyboard-framepreview-img"}]});this.api=T;this.S=this.L_("ytp-storyboard-framepreview-img");this.T=null;this.frameIndex=NaN;this.events=new g.Bj(this);this.fade=new g.TZ(this,100);g.P(this,this.events);g.P(this,this.fade);this.Z(this.api,"presentingplayerstatechange",this.L);Q&&this.Z(this.element,"click",function(){Q.Zu()})};
  6660. SOb=function(T,Q){var k=!!T.T;T.T=Q;T.T?(k||(T.events.Z(T.api,"videodatachange",function(){SOb(T,T.api.l7())}),T.events.Z(T.api,"progresssync",T.M_),T.events.Z(T.api,"appresize",T.Y)),T.frameIndex=NaN,C0y(T),T.fade.show(200)):(k&&g.N5(T.events),T.fade.hide(),T.fade.stop())};
  6661. C0y=function(T){var Q=T.T,k=T.api.getCurrentTime(),l=T.api.Hx().getPlayerSize(),v=g4(Q,l.width);v=oNJ(Q,v,k);T.update({timestamp:g.CN(k)});v!==T.frameIndex&&(T.frameIndex=v,kT5(Q,v,l.width),Q=QAf(Q,v,l.width),sMb(T.S,Q,l.width,l.height))};
  6662. BF5=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-fullscreen-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},S6:"{{icon}}"});this.U=T;this.S=Q;this.message=null;this.T=g.ty(this.S.aK(),this.element);this.L=new g.FA(this.Sh,2E3,this);g.P(this,this.L);this.Z(T,"fullscreentoggled",this.gA);
  6663. this.Z(T,"presentingplayerstatechange",this.Aj);this.Z(T,"resize",this.Aj);this.listen("click",this.onClick);g.GL()&&(Q=this.U.Hx(),this.Z(Q,PHC(),this.zY),this.Z(Q,xSf(document),this.pH));T.G().Tg||T.G().C||this.disable();T.createClientVe(this.element,this,139117);this.Aj();this.gA(T.isFullscreen())};
  6664. zl6=function(T,Q){return T.U.V("delhi_modern_web_player_icons")?Q?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z",
  6665. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z",
  6666. fill:"white"}}]}:Q?{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"g",J:"ytp-fullscreen-button-corner-2",W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-3",W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-0",W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-1",
  6667. W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"g",J:"ytp-fullscreen-button-corner-0",W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-1",W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-2",W:[{X:"path",kc:!0,J:"ytp-svg-fill",
  6668. K:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-3",W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}};
  6669. P1=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-jump-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[Q>0?{X:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",Rk:["ytp-circle-arrow","ytp-svg-fill"],K:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
  6670. {X:"text",Rk:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"7.05",y:"15.05"}}]}:{X:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",Rk:["ytp-circle-arrow","ytp-svg-fill"],K:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
  6671. {X:"text",Rk:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"6.5",y:"15"}}]}]});var k=this;this.U=T;this.T=Q;this.S=new g.FA(function(){k.L?(k.L=!1,k.S.start()):k.element.classList.remove("ytp-jump-spin","backwards")},250);
  6672. this.L=!1;(Q=Q>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var l=g.o0(Q?"\u5feb\u8fdb $SECONDS \u79d2\u3002(\u2192)":"\u5feb\u9000 $SECONDS \u79d2\u3002(\u2190)",{SECONDS:Math.abs(this.T).toString()});this.U.V("player_tooltip_data_title_killswitch")?this.update({title:l,"data-title-no-tooltip":l,"aria-keyshortcuts":Q?"\u2192":"\u2190"}):this.update({"tooltip-title":l,"data-title-no-tooltip":l,"aria-keyshortcuts":Q?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text");
  6673. this.Y.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);OU(T,this.element,this)};
  6674. X$b=function(T,Q){Q?T.element.classList.add("ytp-jump-button-enabled"):T.element.classList.remove("ytp-jump-button-enabled");T.U.logVisibility(T.element,Q);T.U.wO()};
  6675. H1=function(T,Q){uz.call(this,T,Q,"timedMarkerCueRange","\u67e5\u770b\u91cd\u8981\u65f6\u523b");this.Z(T,g.Ft("timedMarkerCueRange"),this.bC);this.Z(T,"updatemarkervisibility",this.updateVideoData)};
  6676. w$5=function(T){var Q,k=(Q=T.U.getVideoData())==null?void 0:Q.K_;if(k)for(T=T.Y.p_,k=g.B(k),Q=k.next();!Q.done;Q=k.next())if(Q=T[Q.value]){var l=void 0,v=void 0,L=void 0;if(((l=Q.onTap)==null?void 0:(v=l.innertubeCommand)==null?void 0:(L=v.changeEngagementPanelVisibilityAction)==null?void 0:L.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Q}};
  6677. tG=function(T){var Q=T.V("web_enable_pip_on_miniplayer");g.p.call(this,{X:"button",Rk:["ytp-miniplayer-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:["{{icon}}"]});this.U=T;this.visible=!1;this.listen("click",this.onClick);this.Z(T,"fullscreentoggled",this.Aj);this.U.V("player_tooltip_data_title_killswitch")?
  6678. this.update({title:g.pX(T,"\u8ff7\u4f60\u64ad\u653e\u5668","i"),"data-title-no-tooltip":"\u8ff7\u4f60\u64ad\u653e\u5668",icon:dey(this,Q)}):this.update({"tooltip-title":g.pX(T,"\u8ff7\u4f60\u64ad\u653e\u5668","i"),"data-title-no-tooltip":"\u8ff7\u4f60\u64ad\u653e\u5668",icon:dey(this,Q)});OU(T,this.element,this);T.createClientVe(this.element,this,62946);this.Aj()};
  6679. dey=function(T,Q){return T.U.V("delhi_modern_web_player_icons")?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z",
  6680. fill:"white"}}]}:Q?{X:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{X:"g",K:{transform:"translate(96, -96) scale(0.8)"},W:[{X:"path",kc:!0,K:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:bY6()};
  6681. Ou=function(T,Q,k,l,v,L){L=L===void 0?!1:L;var q={X:"div",Rk:["ytp-input-slider-section"],W:[{X:"input",J:"ytp-input-slider",K:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};v&&q.W.unshift(v);L&&q.Rk.push("ytp-vertical-slider");g.p.call(this,q);this.Y=T;this.B=Q;this.j=k;this.initialValue=l;this.header=v;this.S=this.L_("ytp-input-slider");this.T=l?l:T;this.init();this.Z(this.S,"input",this.L);this.Z(this.S,"keydown",
  6682. this.C)};
  6683. pm=function(T,Q){T.T=Q;T.updateValue("slidervalue",T.T);T.S.valueAsNumber=T.T;NFf(T,Q)};
  6684. NFf=function(T,Q){T.S.style.setProperty("--yt-slider-shape-gradient-percent",(Q-T.Y)/(T.B-T.Y)*100+"%")};
  6685. W1=function(T){var Q=T.isMuted()?0:T.getVolume();Ou.call(this,0,100,1,Q,void 0,!0);this.U=T;this.z9=nO(this.hj,10,this);this.D=!1;this.Z(T,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.qO)};
  6686. ApC=function(T,Q){g.p.call(this,{X:"div",K:{tabindex:"0",title:T.V("player_tooltip_data_title_killswitch")?"\u97f3\u91cf":"","data-tooltip-title":"\u97f3\u91cf","data-tooltip-offset-y":"-120"},Rk:["ytp-volume-popover"]});var k=this;this.isVisible=!1;this.tooltip=Q.aK();this.S=new W1(T);g.P(this,this.S);this.S.XB(this.element);this.T=new g.FA(function(){$W(k,!1)},300);
  6687. this.listen("mouseenter",function(){k.T.stop()});
  6688. this.listen("mouseleave",function(){k.T.start()});
  6689. this.listen("focus",function(){k.T.stop()});
  6690. this.Z(this.S.S,"focus",function(){k.T.stop()});
  6691. this.listen("focusout",function(){k.T.start();k.element.dispatchEvent(new Event("blur"))});
  6692. this.addOnDisposeCallback(g.ty(Q.aK(),this.element));g.P(this,this.T)};
  6693. $W=function(T,Q){T.element.classList.toggle("ytp-volume-popover-hovering",Q);T.isVisible=Q;(T=T.element.closest(".ytp-chrome-bottom"))&&T.classList.toggle("ytp-volume-popover-showing",Q)};
  6694. JG=function(T,Q,k){k=k===void 0?!1:k;var l=T.G().e6?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};l=T.V("delhi_modern_web_player")?{X:"div",J:"ytp-mute-button",W:[{X:"button",K:l,Rk:["ytp-volume-icon",
  6695. "ytp-button"],S6:"{{icon}}"}]}:{X:"button",Rk:["ytp-mute-button","ytp-button"],K:l,W:[{X:"div",J:"ytp-volume-icon",S6:"{{icon}}"}]};g.p.call(this,l);this.U=T;this.Bd=k;this.S=null;this.C=this.hj=this.D=this.j=NaN;this.i9=this.z9=null;this.B=[];this.Y=[];this.visible=!1;this.L=this.T=this.qO=null;T.V("delhi_modern_web_player")&&this.update({"data-priority":4});k=this.U.G();this.updateValue("icon",Ac());this.tooltip=Q.aK();this.updateValue("dataTooltipOffsetY",0);this.L=g.gK("ytp-volume-icon",this.element);
  6696. l=this.U.V("delhi_modern_web_player_icons")?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",Rk:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z",
  6697. fill:"#fff"}},{X:"path",J:"ytp-svg-volume-animation-small-ripple",K:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05",
  6698. fill:"#fff"}},{X:"path",J:"ytp-svg-volume-animation-big-ripple",K:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z",
  6699. fill:"#fff"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"defs",W:[{X:"clipPath",K:{id:"ytp-svg-volume-animation-mask"},W:[{X:"path",K:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",K:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",J:"ytp-svg-volume-animation-mover",K:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",K:{id:"ytp-svg-volume-animation-slash-mask"},W:[{X:"path",J:"ytp-svg-volume-animation-mover",
  6700. K:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",kc:!0,Rk:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{X:"path",kc:!0,Rk:["ytp-svg-fill","ytp-svg-volume-animation-hider"],K:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",
  6701. fill:"#fff"}}]};this.S=new g.LD(l);g.P(this,this.S);this.z9=this.S.L_("ytp-svg-volume-animation-speaker");this.i9=this.z9.getAttribute("d");this.B=g.LO("ytp-svg-volume-animation-mover",this.S.element);this.U.V("delhi_modern_web_player_icons");this.Y=g.LO("ytp-svg-volume-animation-hider",this.S.element);this.U.V("delhi_modern_web_player_icons");this.e6=new jp;g.P(this,this.e6);this.xm=new jp;g.P(this,this.xm);this.Z(T,"appresize",this.ZO);this.Z(T,"onVolumeChange",this.onVolumeChange);T.V("delhi_modern_web_player")?
  6702. this.listen("click",this.iYd):this.listen("click",this.YK);k.e6?(T.V("delhi_modern_web_player")&&(this.T=new ApC(T,Q),this.T.XB(this.element),g.P(this,this.T),this.Z(this.L,"mouseover",this.Jw),this.Z(this.L,"focus",this.Jw),this.Z(this.L,"mouseout",this.Tr),this.Z(this.L,"blur",this.Tr)),k=T.V("delhi_modern_web_player")?this.L:this.element,this.addOnDisposeCallback(g.ty(Q.aK(),k))):b0y(this);this.message=null;T.createClientVe(this.element,this,28662);this.ZO(T.Hx().getPlayerSize());this.setVolume(T.getVolume(),
  6703. T.isMuted())};
  6704. rp5=function(T,Q){if(T.U.G().e6){var k=g.pX(T.U,"\u9759\u97f3","m"),l=g.pX(T.U,"\u53d6\u6d88\u9759\u97f3","m");k=Q?l:k;T.U.G().V("player_tooltip_data_title_killswitch")?T.updateValue("title",k):T.update({"tooltip-title":k,"aria-label":k});T.update({"data-title-no-tooltip":Q?"\u53d6\u6d88\u9759\u97f3":"\u9759\u97f3"});T.tooltip.wO()}};
  6705. a6t=function(T,Q){T.j=Q;var k=T.i9;T.U.V("delhi_modern_web_player_icons")?T.S.L_("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Q+") translate(-22,-12)")):Q&&(k+=tWt(cp5,De5,Q));T.z9.setAttribute("d",k)};
  6706. u55=function(T,Q){var k;Q===1?k=T.U.V("delhi_modern_web_player_icons")?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z",
  6707. fill:"white"}}]}:Ac():k=T.S;T.hj=Q;if(T.U.V("delhi_modern_web_player_icons"))T.S.L_("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-Q+") translate(-18,-12)")),T.S.L_("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(T.j-Q+") translate(-22, -12)"));else{for(var l=20*Q,v=0;v<T.B.length;v++)T.B[v].setAttribute("transform","translate("+l+", "+l+")");for(l=0;l<T.Y.length;l++){v=T.Y[l];var L=void 0;if((L=v)==null?
  6708. 0:L.style)v.style.display=Q===0?"none":""}}k!==T.qO&&(T.updateValue("icon",k),T.qO=k)};
  6709. b0y=function(T){var Q=null,k="\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u5141\u8bb8\u66f4\u6539\u97f3\u91cf\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK".split(/\$(BEGIN|END)_LINK/);Q=new g.LA(T.U,{X:"span",Rk:["ytp-popup","ytp-generic-popup"],K:{tabindex:"0"},W:[k[0],{X:"a",K:{href:"https://support.google.com/youtube/?p=noaudio",target:T.U.G().D},S6:k[2]},k[4]]},100,!0);g.P(T,Q);Q.hide();Q.subscribe("show",function(l){T.U.Mq(Q,l)});
  6710. g.TQ(T.U,Q.element,4)};
  6711. g.eL=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-play-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},S6:"{{icon}}"});this.U=T;this.T=null;this.transition=new jp;this.tooltip=Q.aK();g.P(this,this.transition);T.createClientVe(this.element,this,36842);T.V("embeds_use_parent_visibility_in_ve_logging")?T.logVisibility(this.element,this.N):
  6712. T.logVisibility(this.element,!0);this.Z(T,"fullscreentoggled",this.onVideoDataChange);this.Z(T,"presentingplayerstatechange",this.onStateChange);this.Z(T,"videodatachange",this.onVideoDataChange);this.OH(T.getPlayerStateObject());this.listen("click",this.GR,this);this.addOnDisposeCallback(g.ty(Q.aK(),this.element))};
  6713. nGX=function(T,Q){T=T.U.V("delhi_modern_web_player_icons");switch(Q){case 1:return T?Xc():zI();case 2:return T?d5t():wyg();case 3:return T?u45():g.wD();case 4:return T?Kdb():nqu();default:return null}};
  6714. g.Fa=function(T,Q,k){g.p.call(this,{X:"a",Rk:[k?"ytp-next-button":"ytp-prev-button","ytp-button"],K:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},W:[KHX(k,T.V("delhi_modern_web_player_icons"))]});
  6715. var l=this;this.U=T;this.T=k;this.playlist=this.videoData=null;this.C=!1;this.Y=this.B=this.S=null;this.L=!1;this.tooltip=Q.aK();k?T.createClientVe(this.element,this,6193):T.createClientVe(this.element,this,6194);this.Z(T,"fullscreentoggled",this.onVideoDataChange);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"onPlaylistUpdate",this.onVideoDataChange);this.Z(T,"onLoopRangeChange",this.onVideoDataChange);this.T||this.Z(T,"appresize",this.sJ);this.Z(T,"mdxpreviousnextchange",function(){xe6(l);
  6716. l.sJ()});
  6717. this.onVideoDataChange()};
  6718. P05=function(T){T.playlist&&T.playlist.unsubscribe("shuffle",T.onVideoDataChange,T)};
  6719. H05=function(T){return!!T.playlist&&!T.T&&!!T.videoData&&!T.videoData.isLivePlayback&&T.U.getCurrentTime()>=3&&T.U.getPresentingPlayerType()!==2};
  6720. t0X=function(T){var Q=e$(T.U.Bx());return Q?T.T?Q.G0():Q.E_():!1};
  6721. xe6=function(T){var Q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},k=T.playlist!=null&&T.playlist.G0();k=g.FZ(T.U)&&(!T.T||k);var l=T.T&&g.QS(T.U),v=t0X(T),L=T.T&&T.U.getPresentingPlayerType()===5,q=g.pX(T.U,"\u4e0b\u4e00\u4e2a","SHIFT+n"),Y=g.pX(T.U,"\u4e0a\u4e00\u4e2a","SHIFT+p");if(L)Q.title="\u5f00\u59cb\u64ad\u653e\u89c6\u9891",Q["tooltip-title"]="\u5f00\u59cb\u64ad\u653e\u89c6\u9891";else if(T.L)Q.title=
  6722. "\u91cd\u653e",Q["tooltip-title"]="\u91cd\u653e";else if(k){var U=null;T.playlist&&(U=g.wN(T.playlist,T.T?bqf(T.playlist):rnt(T.playlist)));if(U){if(U.videoId){var R=T.playlist.listId;Q.url=T.U.G().getVideoUrl(U.videoId,R?R.toString():void 0)}Q.text=U.title;Q.duration=U.lengthText?U.lengthText:U.lengthSeconds?g.CN(U.lengthSeconds):null;Q.preview=U.rO("mqdefault.jpg")}T.T?(Q.title=q,Q["tooltip-title"]=q,Q["data-title-no-tooltip"]="\u4e0b\u4e00\u4e2a",Q["aria-keyshortcuts"]="SHIFT+n"):(Q.title=Y,Q["tooltip-title"]=
  6723. Y,Q["data-title-no-tooltip"]="\u4e0a\u4e00\u4e2a",Q["aria-keyshortcuts"]="SHIFT+p")}else if(l){if(Y=(U=T.videoData)==null?void 0:g.zV(U))Q.url=Y.fB(),Q.text=Y.title,Q.duration=Y.lengthText?Y.lengthText:Y.lengthSeconds?g.CN(Y.lengthSeconds):null,Q.preview=Y.rO("mqdefault.jpg");Q.title=q;Q["tooltip-title"]=q;Q["data-title-no-tooltip"]="\u4e0b\u4e00\u4e2a";Q["aria-keyshortcuts"]="SHIFT+n"}Q.disabled=!l&&!k&&!v&&!L;T.update(Q);T.C=!!Q.url;l||k||T.L||v||L?T.S||(T.S=g.ty(T.tooltip,T.element),T.B=T.listen("click",
  6724. T.onClick,T)):T.S&&(T.S(),T.S=null,T.J6(T.B),T.B=null);T.tooltip.wO();g.gl(T.element,"ytp-playlist-ui",T.T&&(k||T.U.V("web_hide_next_button")))};
  6725. KHX=function(T,Q){return T?Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z",
  6726. fill:"white"}}]}:Sx():Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z",
  6727. fill:"white"}}]}:D5f()};
  6728. p$f=function(T,Q){g.p.call(this,{X:"div",J:"ytp-fine-scrubbing",W:[{X:"div",J:"ytp-fine-scrubbing-draggable",W:[{X:"div",J:"ytp-fine-scrubbing-thumbnails",K:{tabindex:"0",role:"slider",type:"range","aria-label":"\u70b9\u51fb\u6216\u6eda\u52a8\u9762\u677f\u53ef\u8fdb\u884c\u7cbe\u786e\u8df3\u8f6c\u3002","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",K:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{X:"div",
  6729. J:"ytp-fine-scrubbing-seek-time",K:{"aria-hidden":"true"},S6:"{{seekTime}}"},{X:"div",J:"ytp-fine-scrubbing-play",W:[T.V("delhi_modern_web_player_icons")?Xc():zI()],K:{title:"\u4ece\u8fd9\u4e2a\u4f4d\u7f6e\u5f00\u59cb\u64ad\u653e",role:"button"}},{X:"div",J:"ytp-fine-scrubbing-dismiss",W:[g.Ix()],K:{title:"\u9000\u51fa\u7cbe\u786e\u8df3\u8f6c\u6a21\u5f0f",role:"button"}}]});var k=this;this.api=T;this.B=this.L_("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.L_("ytp-fine-scrubbing-dismiss");
  6730. this.hj=this.L_("ytp-fine-scrubbing-draggable");this.playButton=this.L_("ytp-fine-scrubbing-play");this.thumbnails=[];this.S=[];this.Bd=this.T=0;this.e6=void 0;this.z9=NaN;this.sK=this.D=this.L=this.j=0;this.Y=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.Jj=0;this.isEnabled=this.i9=!1;O05(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.ty(Q,this.dismissButton));this.addOnDisposeCallback(g.ty(Q,this.playButton));this.xm=new g.pv(this.hj,!0);this.xm.subscribe("dragstart",
  6731. this.J$,this);this.xm.subscribe("dragmove",this.rD,this);this.xm.subscribe("dragend",this.uJ,this);this.Z(T,"SEEK_COMPLETE",this.Ov);T.V("web_fix_fine_scrubbing_false_play")&&this.Z(T,"rootnodemousedown",function(l){k.qO=l});
  6732. this.B.addEventListener("keydown",function(){});
  6733. g.P(this,this.xm);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.B,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
  6734. O05=function(T,Q){var k=g.CN(Q),l=g.o0("\u8df3\u8f6c\u5230 $PROGRESS \u5904",{PROGRESS:g.CN(Q,!0)});T.update({ariamin:0,ariamax:Math.floor(T.api.getDuration()),arianow:Math.floor(Q),arianowtext:l,seekTime:k})};
  6735. WHX=function(T){T.z9=NaN;T.D=0;T.j=T.L};
  6736. elC=function(T){var Q=T.api.l7();if(Q){var k=90*T.scale,l=g4(Q,160*T.scale);if(Q=Q.levels[l]){T.C=Q.width;if(!T.Y.length){l=[];for(var v=MY(Q,Q.MU()),L=Q.columns*Q.rows,q=Q.frameCount,Y=0;Y<=v;Y++)for(var U=q<L?Math.ceil(q/Q.columns):Q.rows,R=0;R<Q.rows;R++){var Z=q<Q.columns?q:Q.columns,f={url:Q.IK(Y),column:0,columns:Z,row:R,rows:U,Z1:Q.width*Z,rh:Q.height*U};l.push(f);q-=Z;if(q<=1)break}T.Y=l;T.frameCount=Q.nk();T.interval=Q.T/1E3||T.api.getDuration()/T.frameCount}for(;T.thumbnails.length>T.Y.length;)l=
  6737. void 0,(l=T.thumbnails.pop())==null||l.dispose();for(;T.thumbnails.length<T.Y.length;)l=new $ef,T.thumbnails.push(l),l.XB(T.B),g.P(T,l);for(l=0;l<T.Y.length;l++)v=T.thumbnails[l].element,L=T.Y[l],q=T.C*T.scale,Y=L.rh/L.rows,U=k/Y,v.style.background="url("+L.url+") 0 "+-L.row*L.rh/L.rows*U+"px/"+q*Q.columns+"px "+Y*L.rows*U+"px",v.style.width=q*L.columns+"px",v.style.height=k+"px";Eu(T,T.api.getCurrentTime());for(k=T.api.getVideoData().NK;T.S.length>k.length;)l=void 0,(l=T.S.pop())==null||l.dispose();
  6738. for(;T.S.length<k.length;)l=new Jpf,T.S.push(new Jpf),g.P(T,l);for(l=0;l<k.length;l++)v=k[l],T.S[l].update({chapterTitle:v.title}),v=Math.round(v.startTime/Q.T),L=Math.floor(v/Q.rows),g.W2(T.S[l].element,"transform","translateX("+v%Q.rows*T.C*T.scale+"px)"),L<T.thumbnails.length&&T.thumbnails[L]&&T.S[l].XB(T.thumbnails[L].element);T.i9=!0}}};
  6739. Eu=function(T,Q){T.qO&&(T.qO.Fr=!0);T.update({seekTime:g.CN(Q)});var k=T.C*T.scale;Q=Q<T.interval/2?-Q*k/T.interval*2+T.T/2:-Q*k/T.interval-k/2+T.T/2;Q=g.ti(Q,FHt(T),T.T/2);T.j=Q;T.L=T.j;g.W2(T.hj,"transform","translateX("+(T.j-T.T/2)+"px)");g.W2(T.hj,"padding","0px "+T.T/2+"px");g.W2(T.B,"position","relative")};
  6740. EGI=function(T,Q){var k=T.C*T.scale;Q-=T.T/2;return Q>-k?-Q/k*T.interval*.5:-(Q+k/2)/k*T.interval};
  6741. FHt=function(T){return-((T.B.offsetWidth||(T.frameCount-1)*T.C*T.scale)-T.T/2)};
  6742. $ef=function(){g.p.call(this,{X:"div",J:"ytp-fine-scrubbing-thumbnail"})};
  6743. Jpf=function(){g.p.call(this,{X:"div",J:"ytp-fine-scrubbing-chapter-title",W:[{X:"div",J:"ytp-fine-scrubbing-chapter-title-content",S6:"{{chapterTitle}}"}]})};
  6744. yp5=function(T){g.p.call(this,{X:"div",J:"ytp-heat-map-chapter",W:[{X:"svg",J:"ytp-heat-map-svg",K:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{X:"defs",W:[{X:"clipPath",K:{id:"{{id}}"},W:[{X:"path",J:"ytp-heat-map-path",K:{d:"",fill:"white"}}]},{X:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{X:"stop",K:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",K:{offset:"100%",
  6745. "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",J:"ytp-heat-map-graph",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",J:"ytp-heat-map-hover",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",J:"ytp-heat-map-play",K:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",J:"ytp-modern-heat-map",K:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
  6746. stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=T;this.j=this.L_("ytp-heat-map-svg");this.B=this.L_("ytp-heat-map-path");this.Y=this.L_("ytp-heat-map-graph");this.C=this.L_("ytp-heat-map-play");this.T=this.L_("ytp-heat-map-hover");this.L=this.L_("ytp-modern-heat-map");this.Hk=!1;this.S=60;T=""+g.qp(this);this.update({id:T});T="url(#"+T+")";this.Y.setAttribute("clip-path",T);this.C.setAttribute("clip-path",T);this.T.setAttribute("clip-path",T)};
  6747. i05=function(T,Q){Q>0&&(T.S=Q,T.j.style.height=T.S+"px")};
  6748. y7=function(){g.p.call(this,{X:"div",J:"ytp-chapter-hover-container",W:[{X:"div",J:"ytp-progress-bar-padding"},{X:"div",J:"ytp-progress-list",W:[{X:"div",Rk:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",J:"ytp-progress-linear-live-buffer"},{X:"div",J:"ytp-load-progress"},{X:"div",J:"ytp-hover-progress"},{X:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.L_("ytp-progress-list");this.B=this.L_("ytp-progress-linear-live-buffer");
  6749. this.Y=this.L_("ytp-ad-progress-list");this.C=this.L_("ytp-load-progress");this.j=this.L_("ytp-play-progress");this.L=this.L_("ytp-hover-progress");this.T=this.L_("ytp-chapter-hover-container")};
  6750. iz=function(T,Q){g.W2(T.T,"width",Q)};
  6751. V0f=function(T,Q){g.W2(T.T,"margin-right",Q+"px")};
  6752. TAH=function(){this.S=this.position=this.L=this.T=this.Y=this.width=NaN};
  6753. Qib=function(){g.p.call(this,{X:"div",J:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
  6754. g.Tu=function(T,Q){g.M1.call(this,{X:"div",J:"ytp-progress-bar-container",K:{"aria-disabled":"true"},W:[{X:"div",Rk:["ytp-heat-map-container"],W:[{X:"div",J:"ytp-heat-map-edu"}]},{X:"div",Rk:["ytp-progress-bar"],K:{tabindex:"0",role:"slider","aria-label":"\u64ad\u653e\u6ed1\u5757","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{X:"div",J:"ytp-chapters-container"},{X:"div",J:"ytp-timed-markers-container"},{X:"div",J:"ytp-clip-start-exclude"},
  6755. {X:"div",J:"ytp-clip-end-exclude"},{X:"div",J:"ytp-scrubber-container",W:[{X:"div",Rk:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{X:"div",J:"ytp-scrubber-pull-indicator"},{X:"img",Rk:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",Rk:["ytp-fine-scrubbing-container"],W:[{X:"div",J:"ytp-fine-scrubbing-edu"}]},{X:"div",J:"ytp-bound-time-left",S6:"{{boundTimeLeft}}"},{X:"div",J:"ytp-bound-time-right",S6:"{{boundTimeRight}}"},{X:"div",J:"ytp-clip-start",K:{title:"{{clipstarttitle}}"},S6:"{{clipstarticon}}"},
  6756. {X:"div",J:"ytp-clip-end",K:{title:"{{clipendtitle}}"},S6:"{{clipendicon}}"}]});this.api=T;this.ek=!1;this.uK=this.b7=this.K_=this.B=this.A9=0;this.Tw=null;this.pG=!1;this.Jj={};this.DP={};this.clipEnd=Infinity;this.Ig=this.L_("ytp-clip-end");this.gt=new g.pv(this.Ig,!0);this.Hn=this.L_("ytp-clip-end-exclude");this.F_=this.L_("ytp-clip-start-exclude");this.clipStart=0;this.OG=this.L_("ytp-clip-start");this.Ah=new g.pv(this.OG,!0);this.z9=this.QR=0;this.progressBar=this.L_("ytp-progress-bar");this.d5=
  6757. {};this.p_={};this.f_=this.L_("ytp-chapters-container");this.VD=this.L_("ytp-timed-markers-container");this.T=[];this.C=[];this.vk={};this.NK=null;this.i9=-1;this.h3=this.e6=0;this.iK=this.j=null;this.Wk=this.L_("ytp-scrubber-button");this.hj=this.L_("ytp-decorated-scrubber-button");this.Dz=this.L_("ytp-scrubber-container");this.Tg=new g.WX;this.t6=0;this.Hl=new TAH;this.L=new r3(0,0);this.VR=null;this.D=this.m0=!1;this.NV=null;this.qO=this.L_("ytp-heat-map-container");this.YP=this.L_("ytp-heat-map-edu");
  6758. this.Y=[];this.heatMarkersDecorations=[];this.zg=this.L_("ytp-fine-scrubbing-container");this.vn=this.L_("ytp-fine-scrubbing-edu");this.S=void 0;this.Bd=this.nG=this.sK=!1;this.tooltip=Q.aK();this.addOnDisposeCallback(g.ty(this.tooltip,this.Ig));g.P(this,this.gt);this.gt.subscribe("hoverstart",this.Gu,this);this.gt.subscribe("hoverend",this.KI,this);this.Z(this.Ig,"click",this.jw);this.addOnDisposeCallback(g.ty(this.tooltip,this.OG));g.P(this,this.Ah);this.Ah.subscribe("hoverstart",this.Gu,this);
  6759. this.Ah.subscribe("hoverend",this.KI,this);this.Z(this.OG,"click",this.jw);jif(this);this.Z(T,"resize",this.zx);this.Z(T,"presentingplayerstatechange",this.rX);this.Z(T,"videodatachange",this.Kp);this.Z(T,"videoplayerreset",this.l_);this.Z(T,"cuerangesadded",this.veO);this.Z(T,"cuerangesremoved",this.Llm);this.Z(T,"onLoopRangeChange",this.Aw);this.Z(T,"innertubeCommand",this.onClickCommand);this.Z(T,"onRetroModeChanged",this.ZAB);this.Z(T,g.ej("timedMarkerCueRange"),this.EMH);this.Z(T,"updatemarkervisibility",
  6760. this.aP);this.Z(T,"serverstitchedvideochange",this.fGe);this.updateVideoData(T.getVideoData(),!0);this.Aw(T.getLoopRange());V7(this)&&!this.S&&(this.S=new p$f(this.api,this.tooltip),T=g.Vf(this.element).x||0,this.S.zx(T,this.B),this.S.XB(this.zg),g.P(this,this.S),this.Z(this.S.dismissButton,"click",this.Zu),this.Z(this.S.playButton,"click",this.UL),this.Z(this.S.element,"dblclick",this.UL));this.api.createClientVe(this.qO,this,139609,!0);this.api.createClientVe(this.YP,this,140127,!0);this.api.createClientVe(this.vn,
  6761. this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
  6762. jif=function(T){if(T.T.length===0){var Q=new y7;T.T.push(Q);g.P(T,Q);Q.XB(T.f_,0)}for(;T.T.length>1;)T.T.pop().dispose();iz(T.T[0],"100%");T.T[0].startTime=0;T.T[0].title=""};
  6763. k0C=function(T){var Q=Q===void 0?NaN:Q;var k=new yp5(T.api);T.Y.push(k);g.P(T,k);k.XB(T.qO);Q>=0&&(k.element.style.width=Q+"px")};
  6764. lrb=function(T){for(;T.C.length;)T.C.pop().dispose()};
  6765. vwu=function(T){var Q,k,l,v,L;return(L=g.t((v=g.t((Q=T.getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,Vk))==null?void 0:v.playerBar,owC))==null?void 0:L.chapters};
  6766. LVg=function(T){for(var Q=T.T,k=[],l=0;l<Q.length;l++)if(!isNaN(Q[l].startTime)){var v=Q[l].startTime;v=new g.$d(v,l===Q.length-1?Infinity:Q[l+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+v});k.push(v)}T.api.uf("chapterCueRange");T.api.fY(k)};
  6767. frI=function(T,Q){var k,l=(k=T.d5[Q])==null?void 0:k.chapters;l&&(qfX(T,l),T.api.getVideoData().NK=T.T,LVg(T));var v;if((k=(v=T.d5[Q])==null?void 0:v.markers)&&Q!=="HEATSEEKER"){lrb(T);v=g.B(k);for(k=v.next();!k.done;k=v.next())if(l=k.value,k=new Qib,l=g.t(l,g.gwf)){var L=void 0;k.title=((L=l.title)==null?void 0:L.simpleText)||"";L=void 0;k.timeRangeStartMillis=(L=l.timeRangeStartMillis)!=null?L:NaN;var q=L=void 0;k.onActiveCommand=(q=(L=l)==null?void 0:L.onActiveCommand)!=null?q:void 0;M15(T,k)}Yf5(T,
  6768. T.C);v=T.C;k=T.vk;l=[];for(L=0;L<v.length;L++)!isNaN(v[L].timeRangeStartMillis)&&v[L].onActiveCommand&&(q=bs5(v[L].timeRangeStartMillis,L===v.length-1?Infinity:v[L+1].timeRangeStartMillis),l.push(q),k[q.id]=v[L].onActiveCommand);T.api.fY(l)}var Y;if(Q=g.t((Y=T.d5[Q])==null?void 0:Y.heatmap,Uq5)){Y=Q.heatMarkers||[];var U;v=(U=Q.minHeightDp)!=null?U:0;var R;U=(R=Q.maxHeightDp)!=null?R:60;R=T.T.length;k=null;for(l=0;l<R;l++){q=T.T[l].startTime;var Z=l===R-1?Infinity:T.T[l+1].startTime;l===T.Y.length&&
  6769. k0C(T);L=[];k&&L.push(k);for(var f=g.B(Y),G=f.next();!G.done;G=f.next()){G=G.value;var m=void 0,I=void 0,z=(I=(m=g.t(G,RM5))==null?void 0:m.timeRangeStartMillis)!=null?I:-1;z>=q&&z<=Z&&L.push(G)}U>0&&(T.qO.style.height=U+"px");q=T.Y[l];Z=L;G=v;I=U;z=l===0;z=z===void 0?!1:z;i05(q,I);f=Z;m=q.S;z=z===void 0?!1:z;var w=1E3/f.length,r=[];r.push({x:0,y:100});for(var A=0;A<f.length;A++){var D=void 0,K=((D=g.t(f[A],RM5))==null?void 0:D.heatMarkerIntensityScoreNormalized)||0;D=(A+.5)*w;K=100-g.ti(K*100,G/
  6770. m*100,I/m*100);A!==0||z||r.push({x:0,y:K});r.push({x:D,y:K});A===f.length-1&&r.push({x:1E3,y:K})}r.push({x:1E3,y:100});f=r;Z=Z.length===0?"":GAX(f);q.api.V("delhi_modern_web_player")?q.L.setAttribute("d",Z):q.B.setAttribute("d",Z);q.Hk=Z!=="";g.gl(q.api.getRootNode(),"ytp-heat-map",q.Hk);g.gl(q.api.getRootNode(),"ytp-heat-map-played_bar",q.api.V("web_player_heat_map_played_bar")&&Z!=="");q.api.V("delhi_modern_web_player")?(q.Y.style.display="none",q.T.style.display="none"):q.L.style.display="none";
  6771. L.length>0&&(k=L[L.length-1])}g.Qg(T);Y=[];Q=g.B(Q.heatMarkersDecorations||[]);for(v=Q.next();!v.done;v=Q.next())if(v=g.t(v.value,ZEH))U=v.label,l=k=R=void 0,Y.push({visibleTimeRangeStartMillis:(R=v.visibleTimeRangeStartMillis)!=null?R:-1,visibleTimeRangeEndMillis:(k=v.visibleTimeRangeEndMillis)!=null?k:-1,decorationTimeMillis:(l=v.decorationTimeMillis)!=null?l:NaN,label:U?g.Rx(U):""});T.heatMarkersDecorations=Y}};
  6772. M15=function(T,Q){T.C.push(Q);g.P(T,Q);Q.XB(T.VD,T.VD.children.length)};
  6773. Yf5=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=jW(T,k.timeRangeStartMillis/(T.L.T*1E3),k$(T)),v=T.api.V("delhi_modern_web_player")?.667:.6;g.W2(k.element,"transform","translateX("+l+"px) scaleX("+v+")")}};
  6774. qfX=function(T,Q){var k=0,l=!1;Q=g.B(Q);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;if(g.t(v,G0C)){v=g.t(v,G0C);var L={startTime:NaN,title:null,onActiveCommand:void 0},q=v.title;L.title=q?g.Rx(q):"";q=v.timeRangeStartMillis;q!=null&&(L.startTime=q);L.onActiveCommand=v.onActiveCommand;v=L;k===0&&v.startTime!==0&&(T.T[k].startTime=0,T.T[k].title="",T.T[k].onActiveCommand=v.onActiveCommand,k++,l=!0);T.T.length<=k&&(L=new y7,T.T.push(L),g.P(T,L),L.XB(T.f_,T.f_.children.length));T.T[k].startTime=
  6775. v.startTime;T.T[k].title=v.title?v.title:"";T.T[k].onActiveCommand=v.onActiveCommand;T.T[k].index=l?k-1:k}k++}for(;k<T.T.length;)T.T.pop().dispose();g.Qg(T);la(T)};
  6776. g.Qg=function(T){T.e6=T.T.length-1;T.h3=0;mqb(T,!0)&&mqb(T,!1);for(var Q=0,k=0;k<T.T.length;k++)if(T.T[k].width===0){if(k===T.T.length-1)for(var l=T.T.length-1;l>=0;l--)if(T.T[l].width>0){V0f(T.T[l],0);var v=Math.floor(T.T[l].width);T.T[l].width=v;iz(T.T[l],v+"px");break}T.T[k].width=0;iz(T.T[k],"0")}else k===T.T.length-1?(l=Math.floor(T.T[k].width+Q),T.T[k].width=l,iz(T.T[k],l+"px")):(Q=T.T[k].width+Q,l=Math.round(Q),Q-=l,T.T[k].width=l,iz(T.T[k],l+"px"));k=0;if(T.Y.length===T.T.length)for(Q=0;Q<
  6777. T.Y.length;Q++)l=T.T[Q].width,T.Y[Q].element.style.width=l+"px",T.Y[Q].element.style.left=k+"px",k+=l+oC(T);T.api.V("delhi_modern_web_player")&&(T.T.length===1?T.T[0].S.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(T.T[0].S.classList.remove("ytp-progress-bar-end"),T.T[0].S.classList.add("ytp-progress-bar-start"),T.T[T.T.length-1].S.classList.add("ytp-progress-bar-end")))};
  6778. mqb=function(T,Q){var k=0,l=!1,v=T.T.length,L=T.L.T*1E3;L===0&&(L=T.api.getProgressState().seekableEnd*1E3);if(L>0&&T.B>0){for(var q=T.B-oC(T)*T.e6,Y=T.h3===0?3:q*T.h3,U=g.B(T.T),R=U.next();!R.done;R=U.next())R.value.width=0;for(;k<v;){U=L-T.T[k].startTime;k<v-1&&(U=T.T[k+1].startTime-T.T[k].startTime,V0f(T.T[k],oC(T)));g.gl(T.T[k].T,"ytp-exp-chapter-hover-container",T.T.length>1);R=(L===0?0:U/L*q)+T.T[k].width;if(R>Y)T.T[k].width=R;else{T.T[k].width=0;var Z=T,f=k,G=Z.T[f-1];G!==void 0&&G.width>0?
  6779. G.width+=R:f<Z.T.length-1&&(Z.T[f+1].width+=R);V0f(Z.T[f],0);Q&&(T.e6--,U/L>T.h3&&(T.h3=U/L),l=!0)}k++}}return l};
  6780. la=function(T){if(T.B){var Q=T.api.getProgressState(),k=T.api.getVideoData();if(!(k&&k.enableServerStitchedDai&&k.IS)||isFinite(Q.current)){var l;if(((l=T.api.getVideoData())==null?0:sU(l))&&Q.airingStart&&Q.airingEnd)var v=vw(T,Q.airingStart,Q.airingEnd);else if(T.api.getPresentingPlayerType()===2){var L,q,Y;v=(k=(v=T.api.getVideoData())==null?void 0:(L=v.getPlayerResponse())==null?void 0:(q=L.playerConfig)==null?void 0:(Y=q.webPlayerConfig)==null?void 0:Y.skippableAdProgressBarDuration)?vw(T,Q.seekableStart,
  6781. k/1E3):vw(T,Q.seekableStart,Q.seekableEnd)}else v=vw(T,Q.seekableStart,Q.seekableEnd);L=c8(v,Q.loaded,0);Q=c8(v,Q.current,0);q=T.L.S!==v.S||T.L.T!==v.T;T.L=v;La(T,Q,L);q&&Ir5(T);hMJ(T)}}};
  6782. vw=function(T,Q,k){return si6(T)?new r3(Math.max(Q,T.VR.startTimeMs/1E3),Math.min(k,T.VR.endTimeMs/1E3)):new r3(Q,k)};
  6783. CJ5=function(T,Q){var k,l,v;Q=g.t((k=Q.getWatchNextResponse())==null?void 0:(l=k.playerOverlays)==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,Vk);if(Q==null?0:Q.progressColor)for(k=0;k<T.T.length;k++)T.T[k].xB("PLAY_PROGRESS").style.background=g.nN(Q.progressColor);k=g.t(Q==null?void 0:Q.playhead,SfC);var L,q;T.xm=(k==null?void 0:(L=k.playheadImage)==null?void 0:L.thumbnails)&&(k==null?void 0:(q=k.playheadImage)==null?void 0:q.thumbnails[0].url);var Y,U;T.Fk=
  6784. (k==null?void 0:(Y=k.playheadFastForwardImage)==null?void 0:Y.thumbnails)&&(k==null?void 0:(U=k.playheadFastForwardImage)==null?void 0:U.thumbnails[0].url);var R,Z;T.Z8=(k==null?void 0:(R=k.playheadRewindImage)==null?void 0:R.thumbnails)&&(k==null?void 0:(Z=k.playheadRewindImage)==null?void 0:Z.thumbnails[0].url);g.gl(T.Dz,"ytp-decorated-scrubber-container",!!T.xm&&!T.api.Hx().kU);var f;if(k==null?0:(f=k.loggingDirectives)==null?0:f.trackingParams){var G;T.api.setTrackingParams(T.hj,k==null?void 0:
  6785. (G=k.loggingDirectives)==null?void 0:G.trackingParams);T.api.createServerVe(T.hj,T)}T.xm&&!T.api.Hx().kU&&(T.hj.src=T.xm);T.Fk&&fetch(T.Fk,{cache:"force-cache"});T.Z8&&fetch(T.Z8,{cache:"force-cache"})};
  6786. BAf=function(T,Q){var k;if(((k=T.VR)==null?void 0:k.type)==="repeatChapter"||(Q==null?void 0:Q.type)==="repeatChapter")Q&&(Q=T.T[mJ(T.T,Q.startTimeMs)],g.gl(Q.T,"ytp-repeating-chapter",!1)),T.VR&&(Q=T.T[mJ(T.T,T.VR.startTimeMs)],g.gl(Q.T,"ytp-repeating-chapter",!0)),T.T.forEach(function(l){g.gl(l.T,"ytp-exp-chapter-hover-container",!T.VR)})};
  6787. gU=function(T,Q){var k=ZMC(T.L,Q.S);if(T.T.length>1){k=qK(T,Q.L,!0);for(var l=0,v=0;v<k;v++)T.T[v].width>0&&(l+=T.T[v].width,l+=oC(T));k=(T.T[k].startTime+(Q.L-l)/T.T[k].width*((k===T.T.length-1?T.L.T*1E3:T.T[k+1].startTime)-T.T[k].startTime))/1E3||0}return k};
  6788. zMb=function(T,Q){if(Q<0)return"0";T=Math.floor(Math.min(Q,T.api.getDuration())*1E3);return T>2147483647?"0":String(T)};
  6789. MK=function(T,Q,k,l,v){Q=zMb(T,Q);k=zMb(T,k);T=T.progressBar.visualElement;l={seekData:{startMediaTimeMs:Q,endMediaTimeMs:k,seekSource:l}};(Q=g.C9())&&jx(Q,T,v,l)};
  6790. XAu=function(T,Q,k){if(k>=T.T.length)return!1;var l=T.B-oC(T)*T.e6;return Math.abs(Q-T.T[k].startTime/1E3)/T.L.T*l<4};
  6791. Ir5=function(T){T.Wk.style.removeProperty("height");for(var Q=g.B(Object.keys(T.Jj)),k=Q.next();!k.done;k=Q.next())wAJ(T,k.value);Y$(T);La(T,T.z9,T.QR)};
  6792. k$=function(T){var Q=T.Tg.x;Q=g.ti(Q,0,T.B);T.Hl.update(Q,T.B);return T.Hl};
  6793. RC=function(T){return(T.D?135:90)-UL(T)};
  6794. UL=function(T){var Q=48,k=T.api.G();T.api.V("delhi_modern_web_player")?Q=T.api.getPlayerSize().width<=528?64:T.D?96:72:T.D?Q=54:g.Qk(k)&&!k.S&&(Q=40);return Q};
  6795. La=function(T,Q,k){T.z9=Q;T.QR=k;var l=k$(T),v=T.L.T,L=ZMC(T.L,T.z9),q=g.o0("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.CN(L,!0),DURATION:g.CN(v,!0)}),Y=mJ(T.T,L*1E3);Y=T.T[Y].title;T.update({ariamin:Math.floor(T.L.S),ariamax:Math.floor(v),arianow:Math.floor(L),arianowtext:Y?Y+" "+q:q});v=T.clipStart;L=T.clipEnd;T.VR&&T.api.getPresentingPlayerType()!==2&&(v=T.VR.startTimeMs/1E3,L=T.VR.endTimeMs/1E3);v=c8(T.L,v,0);Y=c8(T.L,L,1);q=T.api.getVideoData();L=g.ti(Q,v,Y);k=(q==null?0:g.mK(q))?1:g.ti(k,v,
  6796. Y);Q=jW(T,Q,l);g.W2(T.Dz,"transform","translateX("+Q+"px)");T.api.V("delhi_modern_web_player")&&T.api.V("delhi_modern_web_player_cutout")&&dq5(T,Q);Z4(T,l,v,L,"PLAY_PROGRESS");(q==null?0:sU(q))?(Q=T.api.getProgressState().seekableEnd)&&Z4(T,l,L,c8(T.L,Q),"LIVE_BUFFER"):Z4(T,l,v,k,"LOAD_PROGRESS");if(T.api.V("web_player_heat_map_played_bar")){var U;(U=T.Y[0])!=null&&U.C.setAttribute("width",(L*100).toFixed(2)+"%")}};
  6797. dq5=function(T,Q){T.api.getPresentingPlayerType()!==1?T.f_.style.removeProperty("clip-path"):(Q||(Q=jW(T,T.z9,k$(T))),T.f_.style.clipPath='path("'+(T.pG?NAb(T,8,Q,T.D?50:36,0,6):NAb(T,4,Q,T.D?34:24,2,3))+'")')};
  6798. NAb=function(T,Q,k,l,v,L){var q=k-l/2;k+=l/2;Q+=v;return"M 0 "+v+" L 0 "+(Q+" L ")+(q+" "+Q+" C ")+(q+L+" "+Q+" "+(q+L)+" "+v+" "+q+" "+v+" L 0 ")+(v+" M ")+(k+" "+v+" L ")+(T.B+" "+v+" L ")+(T.B+" "+Q+" L ")+(k+" "+Q+" C ")+(k-L+" "+Q+" "+(k-L)+" "+v+" "+k+" "+v)};
  6799. Z4=function(T,Q,k,l,v){var L=T.T.length,q=Q.T-T.e6*oC(T),Y=k*q;k=qK(T,Y);var U=l*q;q=qK(T,U);v==="HOVER_PROGRESS"&&(q=qK(T,Q.T*l,!0),U=Q.T*l-Ar5(T,Q.T*l)*oC(T));l=Math.max(Y-bEH(T,k),0);for(Y=k;Y<L;Y++)T.T[Y].xB(v).style.left=k===Y?l+"px":"0";Q=jW(T,T.z9,Q);for(L=k;L<q;L++){Y=T.T[L].xB(v);var R=T.T[L].width,Z=L===k?R-l:R;fa(T,Y,Z,R);rrT(T,Y,Z,R,L,Q,v)}L=T.T[q].width;U=g.ti(U-bEH(T,q),0,L);k===q&&(U-=l);l=T.T[q].xB(v);fa(T,l,U,L);rrT(T,l,U,L,q,Q,v);U=T.T.length;for(q+=1;q<U;q++)crg(T,q,v);for(q=0;q<
  6800. k;q++)crg(T,q,v)};
  6801. bEH=function(T,Q){if(Q>=T.T.length)return T.B;for(var k=0,l=0;l<Q;)k+=T.T[l].width,l++;return k};
  6802. crg=function(T,Q,k){k=T.T[Q].xB(k);fa(T,k,0,T.T[Q].width)};
  6803. rrT=function(T,Q,k,l,v,L,q){q==="PLAY_PROGRESS"&&(k=!l||T.api.G().S?1:k/l,T.F_.clientWidth>0||T.Hn.clientWidth>0?(L=Q.clientWidth/k,T=-1*T.F_.clientWidth/k):(L/=k,T=-1*T.T[v].element.offsetLeft/k),g.W2(Q,"background-size",L+"px"),g.W2(Q,"background-position-x",T+"px"))};
  6804. fa=function(T,Q,k,l,v){v||T.api.G().S?Q.style.width=k+"px":g.W2(Q,"transform","scalex("+(l?k/l:0)+")")};
  6805. qK=function(T,Q,k){var l=0;(k===void 0?0:k)&&(Q-=Ar5(T,Q)*oC(T));k=g.B(T.T);for(var v=k.next();!v.done;v=k.next()){v=v.value;if(Q>v.width)Q-=v.width;else break;l++}return l===T.T.length?l-1:l};
  6806. jW=function(T,Q,k){var l=Q*T.L.T*1E3;for(var v=-1,L=g.B(T.T),q=L.next();!q.done;q=L.next())q=q.value,l>q.startTime&&q.width>0&&v++;l=v<0?0:v;v=k.T-oC(T)*T.e6;return Q*v+oC(T)*l+k.Y};
  6807. Ar5=function(T,Q){for(var k=T.T.length,l=0,v=g.B(T.T),L=v.next();!L.done;L=v.next())if(L=L.value,L.width!==0)if(Q>L.width)Q-=L.width,Q-=oC(T),l++;else break;return l===k?k-1:l};
  6808. g.DqI=function(T,Q,k,l){var v=T.B!==k,L=T.D!==l;T.A9=Q;T.B=k;T.D=l;V7(T)&&(Q=T.S)!=null&&(Q.scale=l?1.5:1);Ir5(T);T.T.length===1&&(T.T[0].width=k||0);v&&g.Qg(T);T.S&&L&&V7(T)&&(T.S.isEnabled&&(k=T.D?135:90,l=k-UL(T),T.zg.style.height=k+"px",g.W2(T.qO,"transform","translateY("+-l+"px)"),g.W2(T.progressBar,"transform","translateY("+-l+"px)")),elC(T.S))};
  6809. Y$=function(T){var Q=!!T.VR&&T.api.getPresentingPlayerType()!==2,k=T.clipStart,l=T.clipEnd,v=!0,L=!0;Q&&T.VR?(k=T.VR.startTimeMs/1E3,l=T.VR.endTimeMs/1E3):(v=k>T.L.S,L=T.L.T>0&&l<T.L.T);var q,Y;if(((q=T.VR)==null?0:q.postId)||((Y=T.VR)==null?void 0:Y.type)==="repeatChapter")L=v=!1;g.gl(T.element,"ytp-loop-range-enabled",Q);g.gl(T.element,"ytp-clip-start-enabled",v);g.gl(T.element,"ytp-clip-end-enabled",L);Q=v?c8(T.L,k,0):0;l=L?c8(T.L,l,1):1;T.OG.style.left=Math.round(Q*1E3)/10+"%";T.Ig.style.left=
  6810. Math.round(l*1E3)/10+"%";T.F_.style.width=Math.round(Q*1E3)/10+"%";T.Hn.style.left=Math.round(l*1E3)/10+"%";T.Hn.style.width=Math.round((1-l)*1E3)/10+"%"};
  6811. hMJ=function(T){var Q;if((Q=T.api.getVideoData())==null||!sU(Q)){Q=k$(T);Z4(T,Q,T.z9,Math.max(Q.S,T.z9),"HOVER_PROGRESS");for(var k=qK(T,Q.T*T.z9,!0),l=qK(T,Q.L,!0),v=k;v<=l;v++)g.gl(T.T[v].L,"ytp-hover-progress-light",Q.S>T.z9);g.gl(T.Wk,"ytp-scrubber-button-hover",k===l&&T.T.length>1);if(T.api.V("web_player_heat_map_played_bar")){var L;(L=T.Y[0])!=null&&L.T.setAttribute("width",(Q.S*100).toFixed(2)+"%")}}};
  6812. wAJ=function(T,Q){var k=T.Jj[Q];Q=T.DP[Q];var l=k$(T),v=c8(T.L,k.start/1E3,0),L=NBg(k,T.D)/l.width;var q=c8(T.L,k.end/1E3,1);L!==Number.POSITIVE_INFINITY&&(v=g.ti(v,0,q-L));q=Math.min(q,v+L);k.color&&(Q.style.background=k.color);k=v;Q.style.left=Math.max(k*l.T+l.Y,0)+"px";fa(T,Q,g.ti((q-k)*l.T+l.Y,0,l.width),l.width,!0)};
  6813. ary=function(T,Q){var k=Q.getId();T.Jj[k]===Q&&(g.s$(T.DP[k]),delete T.Jj[k],delete T.DP[k])};
  6814. V7=function(T){var Q=g.Cn(T.api.G())&&(T.api.V("web_shorts_pip")||T.api.V("web_watch_pip")),k;return!((k=T.api.getVideoData())==null?0:k.isLivePlayback)&&!T.api.isMinimized()&&!T.api.isInline()&&(!T.api.x$()||!Q)};
  6815. Gu=function(T){T.S&&(T.S.disable(),T.K_=0,T.qO.style.removeProperty("transform"),T.progressBar.style.removeProperty("transform"),T.zg.style.removeProperty("height"),T.element.parentElement&&T.element.parentElement.style.removeProperty("height"))};
  6816. uq5=function(T,Q){var k=Q/RC(T)*UL(T);g.W2(T.progressBar,"transform","translateY("+-Q+"px)");g.W2(T.qO,"transform","translateY("+-Q+"px)");g.W2(T.zg,"transform","translateY("+k+"px)");T.zg.style.height=Q+k+"px";T.element.parentElement&&(T.element.parentElement.style.height=UL(T)-k+"px")};
  6817. nw6=function(T,Q){Q?T.j||(T.element.removeAttribute("aria-disabled"),T.j=new g.pv(T.progressBar,!0),T.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&T.j.subscribe("hoverstart",T.kxB,T),T.j.subscribe("hovermove",T.YHO,T),T.j.subscribe("hoverend",T.FrH,T),T.j.subscribe("dragstart",T.LrV,T),T.j.subscribe("dragmove",T.iAK,T),T.j.subscribe("dragend",T.m2O,T),T.api&&T.api.V("delhi_modern_web_player")&&T.api.V("delhi_modern_web_player_cutout")&&(T.iK=new g.pv(T.progressBar,
  6818. !0),T.iK.subscribe("hoverstart",function(){T.pG=!0;dq5(T)},T),T.iK.subscribe("hoverend",function(){T.pG=!1;
  6819. dq5(T)},T)),T.NV=T.listen("keydown",T.v8)):T.j&&(T.element.setAttribute("aria-disabled","true"),T.J6(T.NV),T.j.cancel(),T.j.dispose(),T.j=null)};
  6820. oC=function(T){return T.api.V("delhi_modern_web_player")?4:T.D?3:2};
  6821. si6=function(T){var Q;return!((Q=T.VR)==null||!Q.postId)&&T.api.getPresentingPlayerType()!==2};
  6822. mv=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-remote-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"\u5728\u7535\u89c6\u4e0a\u64ad\u653e":"","data-tooltip-title":"\u5728\u7535\u89c6\u4e0a\u64ad\u653e","aria-haspopup":"true","data-priority":"10"},S6:"{{icon}}"});this.U=T;this.YB=Q;this.T=null;this.Z(T,"onMdxReceiversChange",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.Z(T,"appresize",this.Aj);T.createClientVe(this.element,this,139118);this.Aj();this.listen("click",
  6823. this.S,this);OU(T,this.element,this)};
  6824. IC=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-settings-button"],K:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":vZ(),title:T.V("player_tooltip_data_title_killswitch")?"\u8bbe\u7f6e":"","data-tooltip-title":"\u8bbe\u7f6e","data-tooltip-target-id":"ytp-settings-button"},W:[T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10",
  6825. fill:"white"}}]}:g.dD()]});this.U=T;this.YB=Q;this.S=!0;this.listen("click",this.L);this.Z(T,"onPlaybackQualityChange",this.updateBadge);this.Z(T,"videodatachange",this.updateBadge);this.Z(T,"webglsettingschanged",this.updateBadge);this.Z(T,"appresize",this.T);OU(T,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.T(T.Hx().getPlayerSize())};
  6826. KVC=function(T,Q){T.S=!!Q;T.T(T.U.Hx().getPlayerSize())};
  6827. hE=function(T,Q){zQ.call(this,"\u6ce8\u91ca",g.rh.R4);this.U=T;this.YB=Q;this.T=!1;T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z",
  6828. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
  6829. fill:"white"}}]},this.setIcon(Q));this.Z(T,"videodatachange",this.Aj);this.Z(T,"onApiChange",this.Aj);this.subscribe("select",this.onSelect,this);this.Aj()};
  6830. sL=function(T,Q){g.Hp.call(this,"\u97f3\u8f68",g.rh.AUDIO,T,Q);this.U=T;this.tracks={};g.oF(this.element,"ytp-audio-menu-item");this.countLabel=new g.p({X:"div",W:[{X:"span",S6:"\u97f3\u8f68"},{X:"span",J:"ytp-menuitem-label-count",S6:"{{content}}"}]});T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z",
  6831. fill:"white"}}]}:AgI(),this.setIcon(Q));g.P(this,this.countLabel);g.YH(this,this.countLabel);this.Z(T,"videodatachange",this.Aj);this.Z(T,"onPlaybackAudioChange",this.Aj);this.Aj()};
  6832. SW=function(T,Q){zQ.call(this,"\u81ea\u52a8\u64ad\u653e",g.rh.sB);this.U=T;this.YB=Q;this.T=!1;this.L=[];this.Z(T,"presentingplayerstatechange",this.S);this.subscribe("select",this.onSelect,this);T.createClientVe(this.element,this,113682);this.S()};
  6833. xq5=function(T,Q){g.UQ.call(this,g.RR({"aria-haspopup":"false"}),0,"\u66f4\u591a\u9009\u9879");this.U=T;this.YB=Q;this.Z(this.element,"click",this.onClick);this.YB.A6(this)};
  6834. PJu=function(T,Q){var k;g.Cn(T.G())&&(k={X:"div",J:"ytp-panel-footer-content",W:[{X:"span",S6:"\u901a\u8fc7\u4f60\u7684"},{X:"a",J:"ytp-panel-footer-content-link",S6:"\u8bbe\u7f6e",K:{href:"/account_downloads"}}]});g.Hp.call(this,"\u753b\u8d28",g.rh.m8,T,Q,void 0,void 0,k);this.U=T;this.hj={};this.j={};this.Y={};this.xm=new Set;this.T=this.B=!1;this.C="unknown";this.z9="";this.qO=new g.OS;g.P(this,this.qO);this.B=this.U.V("web_player_use_new_api_for_quality_pullback");this.T=this.U.V("web_player_enable_premium_hbr_playback_cap");
  6835. T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z",
  6836. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(Q));g.oF(this.S.element,"ytp-quality-menu");this.Z(T,"videodatachange",this.nh);this.Z(T,"videoplayerreset",this.nh);this.Z(T,"onPlaybackQualityChange",this.j4);this.nh();T.createClientVe(this.element,this,137721)};
  6837. t1f=function(T,Q,k){var l=T.hj[Q],v=g.wC[Q];return HEC(T,l?l.qualityLabel:v?v+"p":"\u81ea\u52a8",Q,k)};
  6838. OE6=function(T,Q,k,l,v){var L=(Q=T.T?T.Y[Q]:T.j[Q])&&Q.quality,q=Q&&Q.qualityLabel;q=q?q:"\u81ea\u52a8";l&&(q="("+q);T=HEC(T,q,L||"",v);l&&T.W.push(")");(l=(l=Q&&Q.paygatedQualityDetails)&&l.paygatedIndicatorText)&&k&&T.W.push({X:"div",J:"ytp-premium-label",S6:l});return T};
  6839. HEC=function(T,Q,k,l){Q={X:"span",Rk:l,W:[Q]};var v;l="ytp-swatch-color";if(T.B||T.T)l="ytp-swatch-color-white";k==="highres"?v="8K":k==="hd2880"?v="5K":k==="hd2160"?v="4K":k.indexOf("hd")===0&&k!=="hd720"&&(v="HD");v&&(Q.W.push(" "),Q.W.push({X:"sup",J:l,S6:v}));return Q};
  6840. Ca=function(T){Ou.call(this,T.getAvailablePlaybackRates()[0],T.getAvailablePlaybackRates()[T.getAvailablePlaybackRates().length-1],.05,T.getPlaybackRate(),{X:"div",J:"ytp-speedslider-indicator-container",W:[{X:"div",J:"ytp-speedslider-badge"},{X:"p",J:"ytp-speedslider-text"}]});this.U=T;this.z9=nO(this.hj,50,this);g.oF(this.S,"ytp-speedslider");this.D=this.L_("ytp-speedslider-text");this.qO=this.L_("ytp-speedslider-badge");pA5(this);this.Z(this.S,"change",this.xm)};
  6841. pA5=function(T){T.D.textContent=T.T.toFixed(2)+"x";var Q=T.T>2&&T.U.V("enable_web_premium_varispeed");T.qO.classList.toggle("ytp-speedslider-premium-badge",Q);T.qO.setAttribute("aria-label",Q?"Premium":"")};
  6842. Bw=function(T,Q,k,l,v,L,q){g.p.call(this,{X:"div",J:"ytp-slider-section",K:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{X:"div",J:"ytp-slider",W:[{X:"div",J:"ytp-slider-handle"}]}]});this.j=T;this.D=Q;this.S=k;this.L=l;this.z9=v;this.i9=L;this.range=this.L-this.S;this.e6=this.L_("ytp-slider-section");this.Y=this.L_("ytp-slider");this.qO=this.L_("ytp-slider-handle");this.C=new g.pv(this.Y,
  6843. !0);this.T=q?q:k;g.P(this,this.C);this.C.subscribe("dragmove",this.DJ,this);this.Z(this.element,"keydown",this.aL);this.Z(this.element,"wheel",this.fL);this.init()};
  6844. zu=function(T){Bw.call(this,.05,.05,T.getAvailablePlaybackRates()[0],T.getAvailablePlaybackRates()[T.getAvailablePlaybackRates().length-1],150,20,T.getPlaybackRate());this.U=T;this.B=g.fO("P");this.xm=nO(this.hj,50,this);g.oF(this.Y,"ytp-speedslider");g.oF(this.B,"ytp-speedslider-text");T=this.B;var Q=this.Y;Q.parentNode&&Q.parentNode.insertBefore(T,Q.nextSibling);WV6(this);this.Z(this.U,"onPlaybackRateChange",this.updateValues)};
  6845. WV6=function(T){T.B.textContent=$qf(T,T.T)+"x"};
  6846. $qf=function(T,Q){T=Number(g.ti(Q,T.S,T.L).toFixed(2));Q=Math.floor((T+.001)*100%5+2E-15);var k=T;Q!==0&&(k=T-Q*.01);return Number(k.toFixed(2))};
  6847. Jrt=function(T){g.M1.call(this,{X:"div",J:"ytp-speedslider-component"});T.V("web_settings_use_input_slider")?this.T=new Ca(T):this.T=new zu(T);g.P(this,this.T);this.element.appendChild(this.T.element)};
  6848. eM6=function(T){var Q=new Jrt(T);AO.call(this,T,Q,"\u81ea\u5b9a\u4e49");g.P(this,Q)};
  6849. Ew5=function(T,Q){var k=new eM6(T);g.Hp.call(this,"\u64ad\u653e\u901f\u5ea6",g.rh.X$,T,Q,Xx(T)?void 0:"\u81ea\u5b9a\u4e49",Xx(T)?void 0:function(){g.Dx(Q,k)});
  6850. var l=this;this.Y=!1;g.P(this,k);this.j=new Ca(T);g.P(this,this.j);if(T.V("web_settings_menu_icons")){var v=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z",
  6851. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
  6852. fill:"white"}}]};this.setIcon(v)}this.U=T;this.Y=!1;this.qO=null;Xx(T)?(this.T=g.o0("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.C=this.U.getPlaybackRate()):this.C=this.T=null;FVf(T)?this.B=wU(4):this.B=null;this.z9=this.U.getAvailablePlaybackRates();this.Z(T,"presentingplayerstatechange",this.Aj);var L;((L=this.U.getVideoData())==null?0:L.lf())&&this.Z(T,"serverstitchedvideochange",this.Aj);this.Z(this.j.S,"change",function(){l.Y=!0;
  6853. l.Aj()});
  6854. this.Aj()};
  6855. yrg=function(T,Q){var k=wU(Q);T.T&&(T.Y||Q===T.C)?(T.U$(T.T),T.qF(Q.toString())):T.U$(k)};
  6856. V1f=function(T){var Q=T.z9.map(wU);T.B&&Q.push(T.B);T.VE(Q);T.T=null;T.C=null;Q=T.U.getPlaybackRate();Xx(T.U)&&iEI(T,Q);!T.z9.includes(Q)||T.Y?T.U$(T.T):T.U$(wU(Q))};
  6857. iEI=function(T,Q){T.C=Q;T.T=g.o0("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Q.toString()});Q=T.z9.map(wU);Q.unshift(T.T);T.B&&Q.push(T.B);T.VE(Q)};
  6858. Trt=function(T,Q,k,l){k=new g.UQ({X:"div",Rk:["ytp-menuitem"],K:{tabindex:"0",role:"menuitemradio","aria-checked":l?"true":"false"},W:[{X:"div",Rk:["ytp-menuitem-label"],W:[{X:"div",Rk:["ytp-menuitem-container-with-badge"],W:[{X:"div",S6:"{{label}}"},{X:"div",Rk:["ytp-menuitem-premium-badge"]}]}]}]},k,T.U4(Q));k.listen("click",function(){T.Yj(Q)});
  6859. return k};
  6860. wU=function(T){return T.toString()};
  6861. Xx=function(T){return T.V("web_settings_menu_surface_custom_playback")};
  6862. FVf=function(T){return T.V("enable_web_premium_varispeed_upsell")&&T.getAvailablePlaybackRates()[T.getAvailablePlaybackRates().length-1]<=2};
  6863. Q95=function(T){return T.V("web_settings_menu_surface_custom_playback")&&T.V("web_settings_use_input_slider")};
  6864. kYC=function(T,Q,k,l){var v=new g.b_(Q,void 0,"\u8ddf\u968f\u89c6\u9891\u7684\u8bbe\u7f6e");g.Hp.call(this,l.text||"",T,Q,k,"\u8ddf\u968f\u89c6\u9891\u7684\u8bbe\u7f6e",function(){g.Dx(k,v)});
  6865. var L=this;g.oF(this.element,"ytp-subtitles-options-menu-item");this.setting=l.option.toString();T=l.options;this.settings=g.yJ(T,this.bB,this);this.B=v;g.P(this,this.B);Q=new g.UQ({X:"div",J:"ytp-menuitemtitle",S6:"\u5728\u89c6\u9891\u6307\u5b9a\u7684\u5b57\u5e55\u6837\u5f0f\u4e0e\u7528\u6237\u8bbe\u7f6e\u7684\u6837\u5f0f\u4e0d\u540c\u65f6\uff0c\u5141\u8bb8\u4f7f\u7528\u89c6\u9891\u6307\u5b9a\u7684\u6837\u5f0f\u3002"},0);g.P(this,Q);this.B.A6(Q,!0);this.Y=new g.UQ({X:"div",J:"ytp-menuitem",K:{role:"menuitemradio",
  6866. tabindex:"0"},W:[{X:"div",J:"ytp-menuitem-label",S6:"\u5f00\u542f"}]},-1);g.P(this,this.Y);this.B.A6(this.Y,!0);this.Z(this.Y.element,"click",function(){j9I(L,!0)});
  6867. this.T=new g.UQ({X:"div",J:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},W:[{X:"div",J:"ytp-menuitem-label",S6:"\u5173\u95ed"}]},-2);g.P(this,this.T);this.B.A6(this.T,!0);this.Z(this.T.element,"click",function(){j9I(L,!1)});
  6868. this.VE(g.IQ(T,this.bB))};
  6869. j9I=function(T,Q){T.publish("settingChange",T.setting+"Override",!Q);T.YB.NN()};
  6870. dU=function(T,Q){g.b_.call(this,T,void 0,"\u9009\u9879");var k=this;this.dT={};for(var l=0;l<g.SL.length;l++){var v=g.SL[l],L=new kYC(-l,T,Q,v);g.P(this,L);L.subscribe("settingChange",this.aB,this);this.dT[v.option.toString()]=L;this.A6(L,!0)}T=new g.UQ(g.RR(),-g.SL.length,"\u91cd\u7f6e");g.P(this,T);T.listen("click",function(){k.aB("reset",!0)});
  6871. this.A6(T,!0)};
  6872. NK=function(T,Q){g.Hp.call(this,"\u81ea\u52a8\u7ffb\u8bd1",0,T,Q);this.U=T;this.languages={};T.createClientVe(this.element,this,127301);T.logVisibility(this.element,!0)};
  6873. lS5=function(T,Q){T.languages=g.yJ(Q,T.T,T);T.VE(g.IQ(Q,T.T))};
  6874. vVb=function(T,Q){var k=new dU(T,Q),l=["\u6b64\u8bbe\u7f6e\u53ea\u4f1a\u5f71\u54cd\u5f53\u524d\u89c6\u9891\u3002\u4f60\u53ef\u4ee5\u5728","\u4e2d\u8c03\u6574\u6240\u6709\u89c6\u9891\u7684\u5b57\u5e55\u663e\u793a\u8bbe\u7f6e\u3002"],v;g.Cn(T.G())&&(v={X:"div",J:"ytp-panel-footer-content",W:[{X:"span",S6:l[0]},{X:"a",J:"ytp-panel-footer-content-link",S6:"\u8bbe\u7f6e",K:{href:"/account_playback"}},{X:"span",S6:l[1]}]});g.Hp.call(this,"\u5b57\u5e55",g.rh.SUBTITLES,T,Q,"\u9009\u9879",function(){g.Dx(Q,
  6875. k)},v);
  6876. var L=this;this.U=T;this.YB=Q;this.tracks={};this.C=new g.FA(function(){oVb(L,!1)},3E3);
  6877. g.P(this,this.C);this.countLabel=new g.p({X:"div",W:[{X:"span",S6:"\u5b57\u5e55"},{X:"span",J:"ytp-menuitem-label-count",S6:"{{content}}"}]});g.P(this,this.countLabel);g.YH(this,this.countLabel);T.V("web_settings_menu_icons")&&this.setIcon(y1g(T.V("delhi_modern_web_player_icons")));this.T=new NK(T,Q);g.P(this,this.T);this.T.subscribe("select",this.Ma,this);this.B=k;g.P(this,this.B);this.B.subscribe("settingChange",this.aB,this);Q.subscribe("show",this.D2d,this);this.Z(T,"videodatachange",this.Aj);
  6878. this.Z(T,"onApiChange",this.Aj);this.Z(T,"onCaptionsTrackListChanged",this.Aj);this.Z(T,"captionschanged",this.Aj);T.createClientVe(this.element,this,127300);this.Aj()};
  6879. Ltt=function(T){return Object.values(T.tracks).find(function(Q){return Q.languageCode==="en"&&Q.kind==="asr"})};
  6880. AE=function(T,Q){T.U.setOption("captions","track",Q)};
  6881. oVb=function(T,Q){T.U.setOption("captions","sampleSubtitles",Q)};
  6882. qTX=function(T){g.cp.call(this,T,"ytp-settings-menu");var Q=this;this.xP=new g.b_(this.U);this.aI=this.settingsButton=null;this.isInitialized=this.oU=!1;g.P(this,this.xP);this.hide();g.Dx(this,this.xP);T.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(k){Q.H1(k)});
  6883. this.Z(T,"highlightSettingsMenu",function(){Q.oU=!0;Q.fA()});
  6884. this.Z(T,"openSettingsMenuItem",function(k){if(k&&(Q.oU=!0,Q.fA(),k==="menu_item_video_quality_advanced")){var l;(l=Q.aI)==null||l.open()}})};
  6885. gVg=function(T,Q){T.settingsButton=Q;T.element.id=Q.element.getAttribute("aria-controls")};
  6886. YTf=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-subtitles-button","ytp-button"],K:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[T.V("delhi_modern_web_player_icons")?{X:"div",J:"ytp-subtitles-button-icon",S6:"{{icon}}"}:ESC(T)]});this.U=T;this.tooltip=Q.aK();T.V("delhi_modern_web_player_icons")&&this.updateValue("icon",
  6887. MiJ(this));this.Z(T,"videodatachange",this.Aj);this.Z(T,"appresize",this.Aj);this.Z(T,"promotooltipacceptbuttonclicked",this.hvd);this.Z(T,"onApiChange",this.Aj);this.Z(T,"onCaptionsTrackListChanged",this.Aj);this.Z(T,"captionschanged",this.Aj);this.U.createClientVe(this.element,this,127299);this.Aj();this.listen("click",this.onClick);this.addOnDisposeCallback(g.ty(Q.aK(),this.element))};
  6888. ba=function(T){return g.uj(T.U.Bx())!=null?g.uj(T.U.Bx()).Mh()?!!T.U.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
  6889. MiJ=function(T){if(T.U.V("delhi_modern_web_player_icons"))return T=Nz.includes("zh-CN")?ba(T)&&T.isEnabled()?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z",
  6890. fill:"white"}}]}:hc():ba(T)&&T.isEnabled()?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z",
  6891. fill:"white"}}]}:x56()};
  6892. g.rU=function(T,Q,k){k=k===void 0?350:k;g.p.call(this,{X:"div",Rk:["ytp-time-display","notranslate"],K:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},W:[{X:"span",J:"ytp-time-wrapper",W:[{X:"div",J:"ytp-time-contents",W:[{X:"span",J:"ytp-time-clip-icon",S6:"{{clipicon}}",K:{"aria-label":"\u526a\u8f91"}},{X:"span",J:"ytp-time-current",S6:"{{currenttime}}"},{X:"span",J:"ytp-time-separator",S6:" / "},{X:"span",J:"ytp-time-duration",S6:"{{duration}}"}]}]},{X:"span",J:"ytp-clip-watch-full-video-button-separator",
  6893. S6:"\u2022"},{X:"span",J:"ytp-clip-watch-full-video-button",S6:"{{watchfullvideo}}"}]});var l=this;this.api=T;this.D=k;this.liveBadge=new g.p({X:"button",Rk:["ytp-live-badge","ytp-button"],K:{disabled:"true"},S6:"{{content}}"});this.T=null;this.yA=this.S=!1;this.j=this.C=null;this.isPremiere=!1;this.B=this.Y=null;this.L=!1;this.VR=null;this.z9=this.L_("ytp-clip-watch-full-video-button");this.liveBadge.qF("\u76f4\u64ad");g.P(this,this.liveBadge);this.api.V("web_player_updated_entrypoint")||this.api.V("delhi_modern_web_player")?
  6894. this.liveBadge.XB(this.element.querySelector(".ytp-time-contents")):this.liveBadge.XB(this.element);this.tooltip=Q.aK();this.liveBadge.listen("click",this.onClick.bind(this));this.api.V("delhi_modern_web_player")&&(Q=this.L_("ytp-time-wrapper"),this.Z(Q,"click",this.WeV),Q.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.Z(this.z9,"click",this.dFq);this.Z(this.api,"serverstitchedvideochange",function(){UB5(l,l.api.getProgressState().isAtLiveHead)});
  6895. this.Z(T,"presentingplayerstatechange",this.bC);this.Z(T,"appresize",this.bC);this.Z(T,"onLoopRangeChange",this.onLoopRangeChange);this.Z(T,"videodatachange",this.onVideoDataChange);(Q=T.getVideoData())&&this.updateVideoData(Q);this.bC();R4J(this,T.getLoopRange())};
  6896. UB5=function(T,Q){var k=T.liveBadge.element,l=T.api.isLifaAdPlaying();k.disabled=l||Q;!cw(T)||T.j===Q&&T.C===T.isPremiere||(T.j=Q,T.C=T.isPremiere,T.bC(),Q?k.classList.add("ytp-live-badge-is-livehead"):k.classList.remove("ytp-live-badge-is-livehead"),T.liveBadge.qF(T.isPremiere?"\u9996\u64ad":"\u76f4\u64ad"),Q?T.T&&(T.T(),T.T=null,k.removeAttribute("title")):(k.title="\u8df3\u8f6c\u5230\u76f4\u64ad\u72b6\u6001\u3002",T.T=g.ty(T.tooltip,T.liveBadge.element)))};
  6897. R4J=function(T,Q){var k=T.VR!==Q;T.VR=Q;k&&ZRy(T)};
  6898. ZRy=function(T){T.updateValue("clipicon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
  6899. T.yA&&!T.S?T.updateValue("watchfullvideo","\u89c2\u770b\u76f4\u64ad"):T.updateValue("watchfullvideo","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891");g.gl(T.element,"ytp-clip",D4(T));g.gl(T.element,"ytp-live",cw(T))};
  6900. cw=function(T){var Q=T.api.G().V("enable_linear_program_progress"),k=T.api.getPresentingPlayerType()===2;return T.yA&&!D4(T)&&(!Q||!T.S)&&!k};
  6901. D4=function(T){return!!T.VR&&!!T.VR.postId&&T.api.getPresentingPlayerType()!==2&&(!T.VR.type||T.VR.type==="clips")};
  6902. GYH=function(T,Q){g.p.call(this,{X:"div",J:"ytp-volume-panel",K:{title:T.V("player_tooltip_data_title_killswitch")?"\u97f3\u91cf":"","data-tooltip-title":"\u97f3\u91cf",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{X:"div",J:"ytp-volume-slider",W:[{X:"div",J:"ytp-volume-slider-handle"}]}]});var k=this;this.api=T;this.C=Q;this.uS=!1;this.D=this.volume=0;this.B=null;this.S=this.T=this.isDragging=!1;this.C=Q;
  6903. this.L=T.jj();this.j=this.L_("ytp-volume-slider");this.z9=this.L_("ytp-volume-slider-handle");this.Y=new g.pv(this.j,!0);g.P(this,this.Y);this.Y.subscribe("dragstart",this.yhj,this);this.Y.subscribe("dragmove",this.yz,this);this.Y.subscribe("dragend",this.HY9,this);this.Z(T,"onVolumeChange",this.onVolumeChange);this.Z(T,"appresize",this.IW);this.Z(T,"fullscreentoggled",this.pH);this.Z(T,"onShowControls",this.M7);this.Z(T,"onHideControls",this.M7);this.Z(this.element,"keydown",this.zi);this.Z(this.element,
  6904. "focus",function(){aC(k,k.T,k.isDragging,!0,k.api.uS())});
  6905. this.Z(this.element,"blur",function(){aC(k,k.T,k.isDragging,!1,k.api.uS())});
  6906. this.IW(T.Hx().getPlayerSize());fSH(this,T.getVolume(),T.isMuted());OU(T,this.element,this)};
  6907. fSH=function(T,Q,k){var l=Math.floor(Q),v=l+"% \u97f3\u91cf"+(k?" \u5df2\u9759\u97f3":"");k=k?0:Q/100;T.updateValue("valuenow",l);T.updateValue("valuetext",v);T.z9.style.left=(T.L?60:40)*k+"px";T.volume=Q};
  6908. mB5=function(T,Q){g.gl(T.element,"ytp-volume-control-hover",Q);aC(T,Q,T.isDragging,T.S,T.api.uS())};
  6909. aC=function(T,Q,k,l,v){var L=T.T||T.isDragging||T.S||T.uS;T.T=Q;T.isDragging=k;T.S=l;T.uS=v;Q=T.T||T.isDragging||T.S||T.uS;L!==Q&&(Q?T.B=T.Z(T.element,"wheel",T.Hj):(T.J6(T.B),T.B=null),g.gl(T.C,"ytp-volume-slider-active",Q))};
  6910. ua=function(T,Q){var k=T.G(),l=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];k.L&&l.push("no-link");var v={title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:k.D,"data-priority":"6","data-sessionlink":"feature=player-button"};k.L||(v.href="{{url}}");g.p.call(this,{X:"a",Rk:l,K:v,S6:"{{logoSvg}}"});this.T=null;this.api=T;this.visible=!1;k.L||(this.T=this.listen("click",this.onClick));this.Z(T,"videodatachange",this.onVideoDataChange);
  6911. this.Z(T,"videoplayerreset",this.onVideoDataChange);this.Z(T,"onLoopRangeChange",this.onVideoDataChange);this.Z(T,"appresize",this.zx);this.onVideoDataChange();k.L||this.addOnDisposeCallback(g.ty(Q.aK(),this.element));this.zx()};
  6912. h4C=function(T,Q,k){g.Bj.call(this);var l=this;this.U=T;this.i9=Q;this.Ci=k;this.QR=NaN;this.hj=this.f_=this.playButton=this.N=this.B=this.u9=this.Jj=this.qO=this.z9=this.T=this.j=this.zg=this.YI=this.Tg=null;this.Y=new qTX(this.U);this.progressBar=new g.Tu(this.U,this.i9);this.e6=new g.rU(this.U,this.i9);this.xm=new BF5(this.U,this.i9);this.D=new g.ee(this.q$,null,this);k=T.G();this.Ci.subscribe("autohideupdate",this.Dl,this);var v=!T.getPlayerStateObject().isCued(),L;(this.h3=!T.V("delhi_modern_web_player")&&
  6913. T.G().V("html5_player_dynamic_bottom_gradient"))?this.zg=L=new hl5(T):L=new g.p({X:"div",J:"ytp-gradient-bottom"});g.P(this,L);g.TQ(T,L.element,9);this.sK=new g.TZ(L,250,v,100);g.P(this,this.sK);this.S=new g.p({X:"div",J:"ytp-chrome-bottom",W:[{X:"div",J:"ytp-chrome-controls"}]});g.P(this,this.S);g.TQ(T,this.S.element,9);this.Bd=new g.TZ(this.S,250,v,100);g.P(this,this.Bd);this.p_=this.S.element.children[0];g.P(this,this.Y);g.TQ(T,this.Y.element,6);this.Y.subscribe("show",function(R){l.U.g2(!R);T.Is(l.Y,
  6914. R)});
  6915. g.P(this,this.progressBar);this.progressBar.XB(this.S.element,0);v=new xW(T,Q);g.P(this,v);g.TQ(T,v.element,4);v=new g.LD({X:"div",J:"ytp-left-controls"});g.P(this,v);v.XB(this.p_);T.V("delhi_modern_web_player")||(L=new g.Fa(T,Q,!1),g.P(this,L),L.XB(v.element));T.V("web_render_jump_buttons")&&(this.z9=new P1(T,-10),g.P(this,this.z9),this.z9.XB(v.element));k.sK||(this.playButton=new g.eL(T,Q),g.P(this,this.playButton),this.playButton.XB(v.element));T.V("web_render_jump_buttons")&&(this.qO=new P1(T,
  6916. 10),g.P(this,this.qO),this.qO.XB(v.element));T.V("delhi_modern_web_player_remove_nav_buttons")||(T.V("delhi_modern_web_player")&&(L=new g.Fa(T,Q,!1),g.P(this,L),L.XB(v.element)),L=new g.Fa(T,Q,!0),g.P(this,L),L.XB(v.element));if(!T.V("delhi_modern_web_player")&&(L=new g.p({X:"span",J:"ytp-volume-area"}),g.P(this,L),L.XB(v.element),!k.t6&&(this.T=new JG(T,Q),g.P(this,this.T),this.T.XB(L.element),k.e6&&!k.C))){var q=new GYH(T,this.S.element);this.f_=q;g.P(this,q);q.XB(L.element);L=new g.pv(L.element);
  6917. g.P(this,L);L.subscribe("hoverstart",function(){var R;(R=l.f_)==null||mB5(R,!0)});
  6918. L=new g.pv(v.element);g.P(this,L);L.subscribe("hoverend",function(){var R;(R=l.f_)==null||mB5(R,!1)})}T.V("delhi_modern_web_player_lhs_volume_controls")&&(v.element.classList.add("ytp-left-controls-with-volume"),this.T=new JG(T,Q),g.P(this,this.T),this.T.XB(v.element),this.T.element.classList.add("ytp-standalone-mute-button"));
  6919. g.P(this,this.e6);this.e6.XB(v.element);this.Jj=new nm(T,this.progressBar);g.P(this,this.Jj);this.Jj.XB(v.element);k.V("web_key_moments_markers")&&(this.u9=new H1(T,this.progressBar),g.P(this,this.u9),this.u9.XB(v.element));T.V("delhi_modern_web_player")?this.L=new g.LD({X:"div",J:"ytp-right-controls",W:[{X:"div",J:na.RIGHT_CONTROLS_LEFT},{X:"div",J:na.RIGHT_CONTROLS_RIGHT}]}):this.L=new g.LD({X:"div",J:"ytp-right-controls"});g.P(this,this.L);this.L.XB(this.p_);T.V("delhi_modern_web_player")&&(this.j=
  6920. new Km,g.P(this,this.j),this.j.XB(this.L.L_(na.RIGHT_CONTROLS_LEFT)),T.V("delhi_modern_web_player_lhs_volume_controls")||(this.T=new JG(T,Q),g.P(this,this.T),this.T.XB(this.L.L_(na.RIGHT_CONTROLS_LEFT))));this.K_=new YTf(T,Q);g.P(this,this.K_);Ka(this,this.K_,"RIGHT_CONTROLS_LEFT");this.settingsButton=new IC(T,this.Y);g.P(this,this.settingsButton);gVg(this.Y,this.settingsButton);Ka(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");v=T.getVideoData();if(k.Rx||v.hh&&k.controlsType==="1")this.B=new ua(T,
  6921. Q),g.P(this,this.B),this.B.XB(this.L.element);k.showMiniplayerButton&&(this.N=new tG(T),g.P(this,this.N),Ka(this,this.N,"RIGHT_CONTROLS_RIGHT"));k.cg&&(Q=new mv(T,this.Y),g.P(this,Q),Ka(this,Q,"RIGHT_CONTROLS_RIGHT"));k.Xm&&(Q=new aG(T),g.P(this,Q),Ka(this,Q,"RIGHT_CONTROLS_RIGHT"));g.P(this,this.xm);Ka(this,this.xm,"RIGHT_CONTROLS_RIGHT");g.P(this,this.D);this.Z(T,"appresize",this.zx);this.Z(T,"fullscreentoggled",this.zx);var Y;(Y=this.j)==null||Y.subscribe("small-mode-expand-right-bottom-controls",
  6922. function(){ISb(l)});
  6923. var U;(U=this.j)==null||U.subscribe("small-mode-collapse-right-bottom-controls",function(){ISb(l)});
  6924. this.Z(T,"presentingplayerstatechange",this.G3);this.Z(T,"videodatachange",this.onVideoDataChange);this.zx()};
  6925. ISb=function(T){T.S.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",T.j.isExpanded())};
  6926. s9I=function(T,Q){if(T.U.getPlayerStateObject().isCued()||Q){if(Q){T.Bd.hide();T.sK.hide();T.T&&T.T.vx(!1);T.B&&T.B.vx(!1);T.N&&T.N.vx(!1);if(T.U.V("embeds_use_parent_visibility_in_ve_logging")){var k;(k=T.xm)==null||k.vx(!1);var l;(l=T.settingsButton)==null||l.vx(!1);var v;(v=T.playButton)==null||v.vx(!1)}T.U.Vb(T.xB())}}else if(!Q){T.Bd.show();T.sK.show();T.T&&T.T.vx(!0);T.B&&T.B.vx(!0);T.N&&T.N.vx(!0);if(T.U.V("embeds_use_parent_visibility_in_ve_logging")){var L;(L=T.xm)==null||L.vx(!0);var q;
  6927. (q=T.K_)==null||q.vx(!0);var Y;(Y=T.playButton)==null||Y.vx(!0)}T.Dl()}};
  6928. CmJ=function(T){var Q=T.U.Hx().getPlayerSize().width;return Math.max(Q-ST6(T)*2,100)};
  6929. ST6=function(T){if(T.U.V("web_player_rtr_ctrls")&&T.U.Hx().kU)return 0;var Q=T.U.jj(),k=T.U.getVideoData().hh,l=0;T.U.jj()&&T.U.isEmbedsShortsMode()&&(l=(T.U.Hx().getPlayerSize().width-T.U.getVideoContentRect().width)/2);return 12*(k?0:Q?2:1)+l};
  6930. Brg=function(T){var Q=T.U.jj()?72:50,k=T.U.G();g.Cn(k)&&(k.V("delhi_modern_web_player")?(Q=T.U.jj()?112:78,T.U.getRootNode().classList.contains("ytp-fullscreen-grid-peaking")&&(Q+=36)):Q=62,g.Ln(k)&&(Q=54));return Q};
  6931. Ka=function(T,Q,k){T.U.V("delhi_modern_web_player")?Q.XB(T.L.L_(na[k])):Q.XB(T.L.element)};
  6932. z4t=function(T){N4.call(this,T,!1);var Q=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.U,g.ej("suggested_action_button_visible"),function(k){k=k.id;Q.text=k;kuy(Q);Q.onClickCommand=Q.suggestedActions[k];Q.enabled=!0;Q.H1()});
  6933. this.Z(this.U,g.Ft("suggested_action_button_visible"),function(k){Q.enabled=!1;Q.H1();Q.U.removeCueRange(k.id)})};
  6934. XsJ=function(T){T.suggestedActions={};T.U.uf("suggested_action_button_visible")};
  6935. Pw=function(T){g.p.call(this,{X:"div",J:x$.TITLE,W:[{X:"div",J:x$.TEXT,W:[{X:"a",Rk:[x$.LINK,x$.SESSIONLINK],K:{target:T.G().D,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},S6:"{{title}}"},{X:"div",J:x$.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=T;this.T=null;this.link=this.L_(x$.LINK);T.createClientVe(this.element,this,23851);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Aj()};
  6936. ws5=function(T){T.updateValue("channelLink","");T.updateValue("channelName","");g.Ln(T.api.G())?T.updateValue("channelTitleFocusable","0"):T.updateValue("channelTitleFocusable","-1")};
  6937. g.Hw=function(T,Q){g.p.call(this,{X:"div",W:[{X:"div",J:"ytp-tooltip-text-wrapper",K:{"aria-hidden":"{{ariaHidden}}"},W:[{X:"div",J:"ytp-tooltip-edu",W:[{X:"svg",K:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",K:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{X:"span",S6:"{{eduText}}"}]},{X:"div",J:"ytp-tooltip-image"},{X:"div",J:"ytp-tooltip-title",W:[{X:"span",S6:"{{title}}"},{X:"div",J:"ytp-tooltip-keyboard-shortcut",
  6938. S6:"{{keyBoardShortcutTitle}}"}]},{X:"div",J:"ytp-tooltip-bottom-text",W:[{X:"span",J:"ytp-tooltip-text",S6:"{{text}}"},{X:"div",J:"ytp-tooltip-keyboard-shortcut",S6:"{{keyBoardShortcut}}"}]},{X:"div",J:"ytp-tooltip-progress-bar-pill",W:[{X:"div",J:"ytp-tooltip-progress-bar-pill-time-stamp",S6:"{{pillTimeStamp}}"},{X:"div",J:"ytp-tooltip-progress-bar-pill-title",S6:"{{pillTitle}}"}]}]},{X:"div",J:"ytp-tooltip-bg",W:[{X:"div",J:"ytp-tooltip-duration",S6:"{{duration}}"}]}]});var k=this;this.api=T;this.e6=
  6939. Q;this.D=function(l){(l=l.relatedTarget)&&g.SO(k.T,l)||k.Zb()};
  6940. this.B=function(l){k.type===3&&k.Zb();(l=l.currentTarget)&&l.nodeType===1&&!k.type&&(l.removeEventListener("mouseover",k.B),l.addEventListener("mouseout",k.D),l.removeEventListener("focus",k.B),l.addEventListener("blur",k.D),dBg(k,l,2))};
  6941. this.z9=function(){k.Zb()};
  6942. this.type=this.T=null;this.j=!1;this.S=null;this.L="";this.C=!0;this.scale=1;this.env=this.api.G();this.xm=this.env.S;this.wrapper=this.L_("ytp-tooltip-text-wrapper");this.bg=this.L_("ytp-tooltip-bg");this.i9=this.L_("ytp-tooltip-edu");this.image=this.L_("ytp-tooltip-image");this.text=this.L_("ytp-tooltip-text");this.bottomText=this.L_("ytp-tooltip-bottom-text");this.title=this.L_("ytp-tooltip-title");this.fade=new g.TZ(this,100);this.Y=NaN;this.kN=this.api.Hx().getPlayerSize().width;this.qO=new g.FA(this.ZU,
  6943. 250,this);this.hj=new g.FA(this.Zb,5E3,this);g.P(this,this.fade);g.P(this,this.qO);g.P(this,this.hj);ya&&(T=this.L_("ytp-tooltip-text"),T.setAttribute("role","text"),T.setAttribute("aria-live","polite"))};
  6944. Nrg=function(T,Q){T.env.V("delhi_modern_web_player")&&T.scale!==.6&&(T.scale=Q?.8:1)};
  6945. g.ty=function(T,Q){if(T.xm)return function(){};
  6946. Q.addEventListener("mouseover",T.B);Q.addEventListener("focus",T.B);var k=T.env.V("player_tooltip_data_title_killswitch")?Q.getAttribute("title"):Q.getAttribute("data-tooltip-title");k&&!Q.hasAttribute("aria-label")&&Q.setAttribute("aria-label",k);return function(){T.T===Q&&T.Zb();Q.removeEventListener("mouseover",T.B);Q.removeEventListener("focus",T.B)}};
  6947. dBg=function(T,Q,k,l){if(Q&&!Q.hasAttribute)T=new g.Wy("showElementTooltip called with non-element.",Q.toString()),g.bA(T);else{isNaN(T.Y)||(T.Y=NaN,T.bg.style.background="");g.Lb(T.element,"ytp-tooltip-progress-bar-style");T.T=Q;T.j=!!l;l?T.L=l:(T.env.V("player_tooltip_data_title_killswitch")?T.L=Q.getAttribute("title"):T.L=Q.getAttribute("data-tooltip-title"),T.env.V("player_tooltip_data_title_killswitch")?Q.removeAttribute("title"):Q.removeAttribute("data-tooltip-title"));g.kh(T.element,"ytp-tooltip");
  6948. var v=Q.getAttribute("data-tooltip-image");v&&(T.image.style.backgroundImage="url("+v+")");l?T.update({ariaHidden:"false"}):T.update({ariaHidden:"true"});g.gl(T.element,"ytp-tooltip-image-enabled",!!v);Q=Q.getAttribute("data-tooltip-opaque");g.gl(T.element,"ytp-tooltip-opaque",!!Q);T.type=k;T.api.addEventListener("appresize",T.z9);T.C&&(tE(T),T.fade.show(0))}};
  6949. tE=function(T){if(T.T){var Q=T.T.getAttribute("data-tooltip-text");if(T.L&&T.T.getAttribute("aria-label")!==T.L)var k=T.L;var l=T.T.getAttribute("aria-keyshortcuts"),v=T.T.getAttribute("data-title-no-tooltip");l&&v&&(k=g.o0("$BUTTON_TITLE \u952e\u76d8\u5feb\u6377\u952e $SHORTCUT_KEY",{BUTTON_TITLE:v,SHORTCUT_KEY:l}));k&&T.T.setAttribute("aria-label",k);if(Q&&!T.j){Nrg(T,!0);var L=T.T;T.updateValue("text",Q);k=L.getAttribute("data-duration");T.update({title:T.L,duration:k});L=L.getAttribute("data-preview");
  6950. T.env.V("delhi_modern_web_player")?(T.updateValue("title",v),T.updateValue("keyBoardShortcutTitle",l.toUpperCase())):Nrg(T,!1);l=243*T.scale;v=141*T.scale;T.bg.style.width=l+"px";T.bg.style.height=v+"px";T.bg.style.backgroundImage=L?"url("+L+")":"";T.bg.style.backgroundSize=l+"px "+v+"px";T.wrapper.style.width=l+"px";g.vq(T.element,["ytp-text-detail","ytp-preview"]);g.gl(T.element,"ytp-has-duration",!!k)}else v&&l&&T.env.V("delhi_modern_web_player")?(T.updateValue("text",v),T.updateValue("keyBoardShortcut",
  6951. l.toUpperCase())):T.updateValue("text",T.L),g.qN(T.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);k=T.T;k.hasAttribute("data-tooltip-offset-y")?(k=Number(k.getAttribute("data-tooltip-offset-y")),k=isNaN(k)?0:k):k=0;AvC(T,!!Q,void 0,k)}};
  6952. AvC=function(T,Q,k,l){var v=Math.min(T.kN,300*T.scale);T.element.style.maxWidth=Q?"":v+"px";T.e6.MG(T.element,T.T,k,T.type===1,l);T.element.style.top?g.oF(T.element,"ytp-bottom"):T.element.style.bottom&&g.oF(T.element,"ytp-top");T.type===3&&T.hj.start()};
  6953. bRt=function(T,Q){g.gl(T.element,"ytp-preview",Q>=0);if(!(Q<0||Q===T.Y)){T.Y=Q;Q=243*T.scale;var k=141*T.scale,l=QAf(T.S,T.Y,Q);sMb(T.bg,l,Q,k,!0);T.qO.start()}};
  6954. rvg=function(T){var Q=T.T;T.type===3&&T.hj.stop();T.api.removeEventListener("appresize",T.z9);T.j||(T.env.V("player_tooltip_data_title_killswitch")?Q.setAttribute("title",T.L):Q.setAttribute("data-tooltip-title",T.L));T.L="";T.T=null;T.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});T.wrapper.style.width=""};
  6955. DBJ=function(T){g.p.call(this,{X:"button",Rk:["ytp-watch-later-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-watch-later-icon",S6:"{{icon}}"},{X:"div",J:"ytp-watch-later-title",S6:"\u7a0d\u540e\u89c2\u770b"}]});this.U=T;this.icon=null;this.visible=this.isRequestPending=this.T=!1;c1I(T);T.createClientVe(this.element,this,
  6956. 28665);this.listen("click",this.onClick,this);this.Z(T,"videoplayerreset",this.onReset);this.Z(T,"appresize",this.Vd);this.Z(T,"videodatachange",this.Vd);this.Z(T,"presentingplayerstatechange",this.Vd);this.Vd();T=this.U.G();var Q=g.cy("yt-player-watch-later-pending");T.Y&&Q?(k15(),cvg(this)):this.Aj(2);g.gl(this.element,"ytp-show-watch-later-title",g.Qk(T));OU(this.U,this.element,this)};
  6957. aSu=function(T){var Q=T.U.getPlayerSize(),k=T.U.G(),l=T.U.getVideoData(),v=g.Qk(k)&&g.FZ(T.U)&&g.J(T.U.getPlayerStateObject(),128),L=k.L;return k.Tw&&Q.width>=240&&!l.isAd()&&l.Tw&&!v&&!l.hh&&!T.U.isEmbedsShortsMode()&&!L};
  6958. u$6=function(T,Q){apy(g.mq(T.U.G()),"wl_button",function(){k15({videoId:Q});window.location.reload()})};
  6959. cvg=function(T){if(!T.isRequestPending){T.isRequestPending=!0;T.Aj(3);var Q=T.U.getVideoData();Q=T.T?Q.removeFromWatchLaterCommand:Q.addToWatchLaterCommand;var k=T.U.HG(),l=T.T?function(){T.T=!1;T.isRequestPending=!1;T.Aj(2);T.U.G().j&&T.U.tj("WATCH_LATER_VIDEO_REMOVED")}:function(){T.T=!0;
  6960. T.isRequestPending=!1;T.Aj(1);T.U.G().S&&T.U.hA(T.element);T.U.G().j&&T.U.tj("WATCH_LATER_VIDEO_ADDED")};
  6961. ao(k,Q).then(l,function(){T.isRequestPending=!1;T.Aj(4,"\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002");T.U.G().j&&T.U.tj("WATCH_LATER_ERROR","\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")})}};
  6962. nV6=function(T,Q){if(Q!==T.icon){switch(Q){case 3:var k=AN();break;case 1:k=fD();break;case 2:k={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:k={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",
  6963. kc:!0,K:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}T.updateValue("icon",k);T.icon=Q}};
  6964. Kty=function(){g.Q7.apply(this,arguments);this.A4=(this.nS=g.Qk(this.api.G()))&&(this.api.G().S||VI()||yI());this.UQ=48;this.R5=69;this.PM=this.MV=null;this.Um=[];this.VY=this.O$=this.wK=this.xV=this.G_=null;this.C6=[];this.contextMenu=this.zw=this.overflowButton=this.nz=this.cT=this.searchButton=this.copyLinkButton=this.shareButton=this.wy=this.Iy=this.title=this.channelAvatar=this.aA=this.tooltip=null;this.TF=!1;this.mA=this.F8=this.Ss=this.cU=null;this.BtO=this.Vj=this.ZI=!1};
  6965. xBg=function(T){var Q=T.api.G(),k=g.J(T.api.getPlayerStateObject(),128);return Q.Y&&k&&!T.api.isFullscreen()};
  6966. Pmf=function(T){if(T.tb()&&!T.api.isEmbedsShortsMode()&&T.nz){var Q=T.api.V("web_player_hide_overflow_button_if_empty_menu");!T.wy||Q&&!aSu(T.wy)||nvb(T.nz,T.wy);!T.shareButton||Q&&!TF6(T.shareButton)||nvb(T.nz,T.shareButton);!T.copyLinkButton||Q&&!yYH(T.copyLinkButton)||nvb(T.nz,T.copyLinkButton)}else{Q=T.api.G().getWebPlayerContextConfig();if(T.nz){for(var k=T.nz,l=g.B(k.actionButtons),v=l.next();!v.done;v=l.next())v.value.detach();k.actionButtons=[]}T.searchButton&&!g.SO(T.Iy.element,T.searchButton.element)&&
  6967. T.searchButton.XB(T.Iy.element);!T.wy||(Q==null?0:Q.hideTopWatchNextButton)||g.SO(T.Iy.element,T.wy.element)||T.wy.XB(T.Iy.element);!T.shareButton||(Q==null?0:Q.hideTopShareButton)||g.SO(T.Iy.element,T.shareButton.element)||T.shareButton.XB(T.Iy.element);T.copyLinkButton&&!g.SO(T.Iy.element,T.copyLinkButton.element)&&T.copyLinkButton.XB(T.Iy.element)}};
  6968. HR6=function(T,Q,k){Q=k?Q.lastElementChild:Q.firstElementChild;for(var l=null;Q;){if(eO(Q,"display")!=="none"&&Q.getAttribute("aria-hidden")!=="true"){var v=void 0;Q.tabIndex>=0?v=Q:v=HR6(T,Q,k);v&&(l?k?v.tabIndex>l.tabIndex&&(l=v):v.tabIndex<l.tabIndex&&(l=v):l=v)}Q=k?Q.previousElementSibling:Q.nextElementSibling}return l};
  6969. tiX=function(T,Q,k){if(T.api.V("web_player_nitrate_promo_tooltip")&&T.api.getPresentingPlayerType(!0)!==2){var l=T.api.getVideoData(1);if(l==null?0:l.tooltipRenderer){l=l.tooltipRenderer;var v;if(v=!T.mA){if(!(Q=!Q)){var L,q,Y;Q=((L=l.tooltipDisplayStrategy)==null?void 0:L.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((q=l.promoConfig)==null?void 0:q.promoId)!=="dtip-edu-player-iseecaptions"&&((Y=l.promoConfig)==null?void 0:Y.promoId)!=="dtip-edu-player-tc-m2"}v=Q}v&&(T.mA=new Hsg(l,T.api),
  6970. g.P(T,T.mA),g.TQ(T.api,T.mA.element,9));var U;(U=T.mA)==null||W$C(U,l,k)}}};
  6971. g.OL=function(T){g.A4.call(this,T);this.chrome=null;this.load()};
  6972. ORf=function(){for(var T=pa.length;T<4;T++){var Q=g.fO("VIDEO");Q.load();pa.push(new g.i_(Q))}};
  6973. ps6=function(T,Q,k,l){var v=k.getVideoData(),L=Q.getVideoData();if(k.getPlayerState().isError())return{msg:"player-error"};var q=L.L;if(Q.Jb()>l/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(l))return{msg:"live-infinite"};(l=Q.T_())&&l.isView()&&(l=l.mediaElement);if(l&&l.nX().length>12&&g.Wv(v))return{msg:"played-ranges"};if(!v.L)return null;if(!q)return{msg:"no-pvd-formats"};if(!v.L.T||!q.T)return{msg:"non-dash"};l=q.videoInfos[0];var Y=v.L.videoInfos[0];T.z9&&NY(L)&&(l=Q.My(),
  6974. Y=k.My());if(!l||!Y)return{msg:"no-video-info"};if(T.B&&(uk(l)||uk(Y)))return{msg:"av1"};Q=T.Y&&L.aD()&&vM();if(Y.containerType!==l.containerType)if(Q)L.T9("sgap",{ierr:"container"});else return{msg:"container"};if(T.N&&!Q&&(Y.yR!==l.yR||Y.yR===""||l.yR===""))return{msg:"codec"};if(T.C&&Y.video&&l.video&&Math.abs(Y.video.width/Y.video.height-l.video.width/l.video.height)>.01)return{msg:"ratio"};if(g.Wv(L)&&g.Wv(v))return{msg:"content-protection"};q=q.T[0];v=v.L.T[0];k=q.audio;var U=v.audio;if(k.sampleRate!==
  6975. U.sampleRate&&!g.hW)if(Q)L.T9("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:q.itag,cr:k.sampleRate,ni:v.itag,nr:U.sampleRate};return(k.numChannels||2)!==(U.numChannels||2)?{msg:"channel-count"}:T.j&&L.aD()&&l.video.fps!==Y.video.fps?{msg:"fps"}:null};
  6976. Wt6=function(T,Q,k){var l=T.getVideoData(),v=Q.getVideoData();if(!l.G().supportsGaplessShorts())return{nq:"env"};if((!k.D||l.dO&&!l.isAd()||v.dO&&!v.isAd())&&(!k.S||l.dO&&!l.isAd()||v.dO)&&(!k.L||v.dO&&!v.isAd()||l.dO)&&(l.dO||v.dO))return{nq:"autoplay"};if(l.endSeconds>0)return{nq:"endcr"};if(!l.C)return{nq:"client"};if(!T.jZ())return{nq:"no-empty"};T=ps6(k,T,Q,Infinity);return T!=null?{nq:T.msg}:null};
  6977. Ww=function(T){g.x.call(this);this.app=T;this.N=this.Y=this.S=this.T=null;this.L=1;this.events=new g.Bj(this);this.events.Z(this.app.ZV,g.Ft("gaplessshortslooprange"),this.j);g.P(this,this.events)};
  6978. $B5=function(){this.T=this.C=this.L=this.S=this.D=this.B=this.z9=this.j=this.N=this.Y=!1};
  6979. JvT=function(T){var Q=new $B5;Q.Y=T.V("h5_gapless_support_types_diff");Q.j=T.V("h5_gapless_error_on_fps_diff");Q.z9=T.V("html5_gapless_use_format_info_fix");Q.B=T.V("html5_gapless_disable_on_av1")&&!T.V("html5_gapless_enable_on_av1");Q.N=T.V("html5_gapless_check_codec_diff_strictly");Q.D=T.V("html5_gapless_on_ad_autoplay");Q.C=T.V("html5_gapless_disable_diff_aspect_radio");Q.S=T.V("html5_gapless_ad_autoplay_on_ad_to_video_only");Q.T=T.V("html5_pseudogapless_shorts_seek_to_next_start");Q.L=T.V("html5_gapless_ad_autoplay_on_video_to_ad_only");
  6980. return Q};
  6981. g.$$=function(T,Q,k,l){l=l===void 0?!1:l;ml.call(this);this.mediaElement=T;this.start=Q;this.end=k;this.T=l};
  6982. e4t=function(T,Q,k,l,v,L){L=L===void 0?0:L;g.x.call(this);var q=this;this.policy=T;this.T=Q;this.S=k;this.nA=v;this.N=L;this.Y=this.L=null;this.currentVideoDuration=this.B=-1;this.C=!1;this.O_=new GN;this.kz=l-Q.Px()*1E3;this.O_.then(void 0,function(){});
  6983. this.timeout=new g.FA(function(){q.XG("timeout")},1E4);
  6984. g.P(this,this.timeout);this.j=isFinite(l)||this.nA.G().experiments.Wd("html5_pseudogapless_shorts")&&NY(Q.getVideoData());this.status={status:0,error:null}};
  6985. EV5=function(T){var Q,k,l,v,L,q,Y,U,R;return g.a(function(Z){if(Z.S==1){if(T.wd())return Z.return(Promise.reject(Error(T.status.error||"disposed")));T.timeout.start();return g.c(Z,T.O_,2)}Q=T.T.T_();if(Q.isEnded())return T.XG("ended_in_finishTransition"),Z.return(Promise.reject(Error(T.status.error||"")));if(!T.Y||!gf(T.Y))return T.XG("next_mse_closed"),Z.return(Promise.reject(Error(T.status.error||"")));if(T.S.JH()!==T.Y)return T.XG("next_mse_mismatch"),Z.return(Promise.reject(Error(T.status.error||
  6986. "")));k=JE(T);l=k.RO;v=k.Ro;L=k.sD;T.T.u7(!1,!0);q=Ftg(Q,l,L,!T.S.getVideoData().isAd());T.S.setMediaElement(q);(Y=T.T.J5())&&T.S.aQ(Y.L4,Y.kT);T.j&&(T.policy.T||T.S.seekTo(T.S.getCurrentTime()+.001,{M5:!0,Nf:3,I_:"gapless_pseudo"}),q.play(),rV());U=Q.Tx();U.cpn=T.T.getVideoData().clientPlaybackNonce;U.st=""+l;U.et=""+L;T.S.T9("gapless",U);T.T.T9("gaplessTo",{cpn:T.S.getVideoData().clientPlaybackNonce});R=T.T.getPlayerType()===T.S.getPlayerType();T.T.N8(v,!0,!1,R,T.S.getVideoData().clientPlaybackNonce);
  6987. T.S.N8(T.S.getCurrentTime(),!0,!0,R,T.T.getVideoData().clientPlaybackNonce);T.S.aO();g.Ad(function(){!T.S.getVideoData().qO&&T.S.getPlayerState().isOrWillBePlaying()&&T.S.KO()});
  6988. eW(T,6);T.dispose();return Z.return(Promise.resolve())})};
  6989. Tp5=function(T){if(T.S.getVideoData().L){var Q=T.nA.G().V("html5_gapless_suspend_next_loader")&&T.N===1;T.S.lz(T.Y,Q,yvX(T));eW(T,3);iRT(T);var k=Vi5(T);Q=k.O5;k=k.ZR;Q.subscribe("updateend",T.pR,T);k.subscribe("updateend",T.pR,T);T.pR(Q);T.pR(k)}};
  6990. iRT=function(T){T.T.unsubscribe("internalvideodatachange",T.rV,T);T.S.unsubscribe("internalvideodatachange",T.rV,T);T.nA.G().V("html5_gapless_use_format_info_fix")&&(T.T.unsubscribe("internalvideoformatchange",T.rV,T),T.S.unsubscribe("internalvideoformatchange",T.rV,T));T.T.unsubscribe("mediasourceattached",T.rV,T);T.S.unsubscribe("statechange",T.FT,T)};
  6991. Ftg=function(T,Q,k,l){T=T.isView()?T.mediaElement:T;return new g.$$(T,Q,k,l)};
  6992. eW=function(T,Q){Q<=T.status.status||(T.status={status:Q,error:null},Q===5&&T.O_.resolve())};
  6993. yvX=function(T){return T.nA.G().V("html5_gapless_no_clear_buffer_timeline")&&T.N===1&&cv(T.T.getVideoData())};
  6994. JE=function(T){var Q=T.T.T_();Q=Q.isView()?Q.start:0;var k=T.T.getVideoData().isLivePlayback?Infinity:T.T.WG(!0);k=Math.min(T.kz/1E3,k)+Q;var l=T.j?100:0;T=k-T.S.Jb()+l;return{BR:Q,RO:T,Ro:k,sD:Infinity}};
  6995. Vi5=function(T){return{O5:T.L.T.kM,ZR:T.L.S.kM}};
  6996. Fx=function(T){g.x.call(this);var Q=this;this.app=T;this.B=this.S=this.T=null;this.j=!1;this.L=this.Y=null;this.N=JvT(this.app.G());this.C=function(){g.Ad(function(){QJt(Q)})}};
  6997. jJT=function(T,Q,k,l,v){l=l===void 0?0:l;v=v===void 0?0:v;T.jZ()||EL(T);T.Y=new GN;T.T=Q;var L=k,q=v===0;q=q===void 0?!0:q;var Y=T.app.Pd(),U=Y.getVideoData().isLivePlayback?Infinity:Y.WG(!0)*1E3;L>U&&(L=U-200,T.j=!0);q&&Y.getCurrentTime()>=L/1E3?T.C():(T.S=Y,q&&(q=L,L=T.S,T.app.ZV.addEventListener(g.ej("vqueued"),T.C),q=isFinite(q)||q/1E3>L.getDuration()?q:0x8000000000000,T.B=new g.$d(q,0x8000000000000,{namespace:"vqueued"}),L.addCueRange(T.B)));q=l/=1E3;L=Q.getVideoData().T;l&&L&&T.S&&(Y=l,U=0,
  6998. Q.getVideoData().isLivePlayback&&(q=Math.min(k/1E3,T.S.WG(!0)),U=Math.max(0,q-T.S.getCurrentTime()),Y=Math.min(l,Q.WG()+U)),q=nTt(L,Y)||l,q!==l&&T.T.T9("qvaln",{st:l,at:q,rm:U,ct:Y}));Q=q;l=T.T;l.getVideoData().A9=!0;l.getVideoData().C=!0;l.I3(!0);L={};T.S&&(L=T.S.jO(),q=T.S.getVideoData().clientPlaybackNonce,L={crt:(L*1E3).toFixed(),cpn:q});l.T9("queued",L);Q!==0&&l.seekTo(Q+.01,{M5:!0,Nf:3,I_:"videoqueuer_queued"});T.L=new e4t(T.N,T.app.Pd(),T.T,k,T.app,v);k=T.L;k.status.status!==Infinity&&(eW(k,
  6999. 1),k.T.subscribe("internalvideodatachange",k.rV,k),k.S.subscribe("internalvideodatachange",k.rV,k),k.nA.G().V("html5_gapless_use_format_info_fix")&&(k.T.subscribe("internalvideoformatchange",k.rV,k),k.S.subscribe("internalvideoformatchange",k.rV,k)),k.T.subscribe("mediasourceattached",k.rV,k),k.S.subscribe("statechange",k.FT,k),k.T.subscribe("newelementrequired",k.fI,k),k.rV());return T.Y};
  7000. QJt=function(T){var Q,k,l,v,L,q,Y;g.a(function(U){switch(U.S){case 1:if(T.wd()||!T.Y||!T.T)return U.return();T.j&&T.app.Pd().fn(!0,!1);Q=null;if(!T.L){U.Ym(2);break}g.z5(U,3);return g.c(U,EV5(T.L),5);case 5:g.d6(U,2);break;case 3:Q=k=g.by(U);case 2:if(!T.T)return U.return();kGg.Mg("vqsp",function(){T.app.l$(T.T)});
  7001. if(!T.T)return U.return();l=T.T.T_();T.app.G().V("html5_gapless_seek_on_negative_time")&&l&&l.getCurrentTime()<-.01&&T.T.seekTo(0);kGg.Mg("vqpv",function(){T.app.playVideo()});
  7002. Q&&(T.T?(v=Q?Q.message:"forced",(L=T.S)==null||L.T9("gapfulfbk",{r:v}),T.T.xk(v)):(q=T.S)==null||q.T9("gapsp",{}));Y=T.Y;EL(T);Y&&Y.resolve();return U.return(Promise.resolve())}})};
  7003. EL=function(T,Q){Q=Q===void 0?!1:Q;if(T.S){if(T.B){var k=T.S;T.app.ZV.removeEventListener(g.ej("vqueued"),T.C);k.removeCueRange(T.B)}T.S=null;T.B=null}T.L&&(T.L.status.status!==6&&(k=T.L,k.status.status!==Infinity&&k.N!==1&&k.XG("Canceled")),T.L=null);T.Y=null;T.T&&!Q&&T.T!==T.app.Lc()&&T.T!==T.app.Pd()&&T.T.dispose();T.T&&Q&&T.T.I0();T.T=null;T.j=!1};
  7004. lPI=function(T){var Q;return((Q=T.L)==null?void 0:Q.currentVideoDuration)||-1};
  7005. oIy=function(T,Q,k){if(T.jZ())return"qie";if(T.T==null||T.T.wd()||T.T.getVideoData()==null)return"qpd";if(Q.videoId!==T.T.Dg())return"vinm";if(lPI(T)<=0)return"ivd";if(k!==1)return"upt";if((k=T.L)==null)T=void 0;else if(k.getStatus().status!==5)T="niss";else if(ps6(k.policy,k.T,k.S,k.kz)!=null)T="pge";else{Q=Vi5(k);T=Q.O5;var l=Q.ZR;Q=g.jj(k.nA.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var v=k.B+Q;k.nA.G().experiments.Wd("html5_pseudogapless_shorts")&&(v=JE(k).RO+Q);k=y4(l.LG(),
  7006. v);T=y4(T.LG(),v);T=!(Q>0)||k&&T?null:"neb"}return T!=null?T:null};
  7007. vI5=function(){g.ox.call(this);var T=this;this.fullscreen=0;this.Y=this.L=this.pictureInPicture=this.T=this.S=this.inline=!1;this.N=function(){T.H1()};
  7008. gOI(this.N);this.B=this.getVisibilityState(this.Ax(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.x$(),this.Uj(),this.CM(),this.zs())};
  7009. URT=function(T){return!(T.isMinimized()||T.isInline()||T.isBackground()||T.x$()||T.Uj()||T.CM()||T.zs())};
  7010. g.yg=function(T){g.x.call(this);this.Hd=T;this.videoData=this.playerState=null};
  7011. Tt=function(T,Q){g.x.call(this);var k=this;this.data=[];this.L=T||NaN;this.S=Q||null;this.T=new g.FA(function(){ia(k);Vg(k)});
  7012. g.P(this,this.T)};
  7013. aQX=function(T){ia(T);return T.data.map(function(Q){return Q.value})};
  7014. ia=function(T){var Q=(0,g.XY)();T.data.forEach(function(k){k.expire<Q&&QQ(T,k,!0)});
  7015. T.data=g.bl(T.data,function(k){return!(k.expire<Q)})};
  7016. QQ=function(T,Q,k){k&&T.S&&T.S(Q.value)};
  7017. Vg=function(T){T.T.stop();var Q=Infinity;for(var k=g.B(T.data),l=k.next();!l.done;l=k.next())l=l.value,l.expire<Q&&(Q=l.expire);Q&&isFinite(Q)&&(Q=Math.max(Q-Date.now(),100),T.T.start(Q))};
  7018. g.j5=function(T,Q){g.x.call(this);var k=this;this.api=T;this.L={};this.GP=null;this.B={};this.C=this.Y=null;Q=new Tt(Q,function(l){l!==k.pA({playerType:l.getPlayerType()})&&l.dispose()});
  7019. g.P(this,Q);this.S=this.j=this.T=new g.yg(T.G());this.N=Q};
  7020. k7=function(T){var Q=[{cpn:T.S.pB()}];T.Y&&Q.push({cpn:T.Y.pB()});T.api.publish("playbackChange",{s3_:Q})};
  7021. LFJ=function(T){for(var Q=g.B(Object.values(T.B)),k=Q.next();!k.done;k=Q.next())k.value.dispose();T.B={};T.Y=null;T.C=null;k7(T)};
  7022. lG=function(T,Q,k){T.B[Q.pB()]=Q;T.Y=Q;k&&(T.C=Q);k7(T)};
  7023. UO5=function(T){var Q=T.experiments,k=Q.Wd.bind(Q);q3T=k("html5_use_async_stopVideo");gIb=k("html5_pause_for_async_stopVideo");Mbf=k("html5_not_reset_media_source");k("html5_listen_for_audio_output_changed")&&(iDX=!0);M3=k("html5_not_reset_media_source");Y3I=k("html5_not_reset_media_source");le=k("html5_retain_source_buffer_appends_for_debugging");baX(k("web_watch_pip"));k("html5_mediastream_applies_timestamp_offset")&&(u4=!0);var l=g.jj(Q,"html5_cobalt_override_quic");l&&vDH("QUIC",+(l>0));T.J3()&&
  7024. qUy();Error.stackTraceLimit=50;var v=g.jj(Q,"html5_idle_rate_limit_ms");v&&Object.defineProperty(window,"requestIdleCallback",{value:function(L){return window.setTimeout(L,v)}});
  7025. lYg(T.N);tv5(k("html5_use_ump_request_slicer"));Gqu(k("html5_record_now"));k("html5_disable_streaming_xhr")&&(sd=!1);k("html5_byterate_constraints")&&(A_=!0);k("html5_use_non_active_broadcast_for_post_live")&&(mN=!0);k("html5_enable_encrypted_av1")&&(aE=!0);Vj5(g.jj(T.experiments,"html5_sticky_duration_mos"))};
  7026. RTg=function(T,Q){return T.slice(Q.length).replace(/_[a-z]/g,function(k){return k.toUpperCase().replace("_","")}).replace("Dot",".")};
  7027. ZU6=function(T){var Q={},k=Object.keys(T.experiments.flags);k=g.B(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.startsWith("cobalt_h5vcc"))if(l.startsWith("cobalt_h5vcc_string")){var v=RTg(l,"cobalt_h5vcc_string");l=S4(T.experiments,l);v&&l&&(Q[v]=vDH(v,l))}else l.startsWith("cobalt_h5vcc")&&(v=RTg(l,"cobalt_h5vcc"),l=g.jj(T.experiments,l),v&&l&&(Q[v]=vDH(v,l)));return Q};
  7028. GGy=function(T,Q,k,l){l=l===void 0?0:l;g.vR.call(this,k.Le());var v=this;this.Gx=T;this.videoData=Q;this.duration=l;this.T=this.startTimeSecs=0;this.S=new fPu(function(L,q){return void v.T9(L,q)})};
  7029. fPu=function(T){this.T9=T;this.T={}};
  7030. mO5=function(T,Q,k){T.T[Q]||(T.T9("huli-sdai-err",k),T.T[Q]=!0)};
  7031. IPb=function(T){this.end=this.start=T};
  7032. g.og=function(){this.T=new Map;this.L=new Map;this.S=new Map};
  7033. hTX=function(T){var Q=this;this.Hd=T;this.T=[];this.L=new Map;this.Y=new Map;this.S=new Map;this.dn={HO:function(){return Q.L},
  7034. ezK:function(){return Q.Y}};
  7035. this.N=this.Hd.V("html5_huli_ssdai_deprecate_playback_timeline_id")};
  7036. S3H=function(T,Q){g.Fd(T.T,Q,function(k,l){return k.R_===l.R_?k.durationMs-l.durationMs:k.R_-l.R_});
  7037. T.L.set(Q.cpn,Q);Q.lC&&!T.N&&T.Y.set(Q.lC,Q);Q.RB&&sJg(T,Q.RB,Q)};
  7038. CTt=function(T,Q){for(var k=[],l=g.B(T.T),v=l.next();!v.done;v=l.next())v=v.value,Q(v)||k.push(v);if(T.Hd.V("html5_sstm_fixes"))for(l=g.B(T.T),v=l.next();!v.done;v=l.next())v=v.value,Q(v)&&(T.L.delete(v.cpn),v.lC&&T.Y.delete(v.lC));T.T=k};
  7039. Bp5=function(T,Q){Q=g.OA(T.T,{X_:Q},function(k,l){return k.X_-l.X_});
  7040. return Q>=0?T.T[Q]:null};
  7041. zTC=function(T,Q){var k=T.T.indexOf(Q);k>=0&&T.T.splice(k,1);T.L.delete(Q.cpn);Q.lC&&T.Y.delete(Q.lC)};
  7042. sJg=function(T,Q,k){var l=T.S.get(Q);l?(l.push(k),g.JT(l,function(v,L){return v.R_-L.R_})):T.S.set(Q,[k])};
  7043. g.v5=function(T,Q,k,l){g.x.call(this);var v=this;this.api=T;this.Hd=Q;this.playback=k;this.app=l;this.qO=new g.og;this.S=new Map;this.i9=new Map;this.xm=null;this.Tg=NaN;this.K_=this.zg=null;this.f_=new g.FA(function(){XKb(v,v.Tg,v.zg||void 0)});
  7044. this.events=new g.Bj(this);this.Jj=15E3;this.C=new g.FA(function(){v.j=!0;v.playback.r6(v.Jj);wKC(v);if(v.playback.getVideoData().lf()){var L;v.Fs({togab:(L=v.B)==null?void 0:L.identifier})}v.Ky(!1)},this.Jj);
  7045. this.j=!1;this.N=new Map;this.Bd=[];this.B=null;this.Fk=new Set;this.D=[];this.p_=[];this.Ig=[];this.d5=[];this.e6=new Set;this.Al=0;this.z9=!1;this.Gg=new Set;this.DP=new Set;this.OG=new Set;this.u9=new Set;this.h3=this.N5=0;this.l0=this.QR=!1;this.Tb=this.Y="";this.hj=null;this.logger=new g.Cy("dai");this.dn={BrB:function(){return v.S},
  7046. HO:function(){return v.T.dn.HO()},
  7047. eF6:function(){return v.Y},
  7048. Esd:function(L){v.onCueRangeEnter(v.S.get(L))},
  7049. Y_d:function(L){v.onCueRangeExit(v.S.get(L))},
  7050. tnd:function(L,q){v.S.set(L,q)},
  7051. Oa_:function(L){v.Tb=L},
  7052. eP:function(){return v.eP()},
  7053. wAO:function(L){return v.T.S.get(L)},
  7054. wfm:function(){return v.hj},
  7055. V9j:function(){return v.T.T}};
  7056. this.playback.getPlayerType();this.T=new hTX(this.Hd);this.playback.E7(this);this.sK=this.Hd.J3();g.P(this,this.f_);g.P(this,this.events);g.P(this,this.C);this.events.Z(this.api,g.ej("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.Ft("serverstitchedcuerange"),this.onCueRangeExit);lG(this.app.vG(),this.playback,!1)};
  7057. rbJ=function(T,Q,k,l,v,L,q,Y){var U=dOC(T,L,L+v);T.j&&T.Fs({adaftto:1});k||T.Fs({missadcon:1,enter:L,len:v,aid:Y});T.L&&!T.L.CK&&(T.L.CK=Y);T.l0&&T.Fs({adfbk:1,enter:L,len:v,aid:Y});var R=T.playback;L>q&&Lq(T,{reason:"enterTime_greater_than_return",R_:L,X_:q});var Z=R.SY()*1E3;L<Z&&Lq(T,{reason:"enterTime_less_than_minSeekableTime",enterMs:L,minSkMs:Z},!1);R=R.getDuration()*1E3;q>R&&Lq(T,{reason:"parent_return_greater_than_content_duration",X_:q,NvV:R});(R=Bp5(T.T,L))&&R.X_>L&&NpC(T,Q.video_id||"",
  7058. L,q,R);if(U&&R)for(Z=0;Z<T.D.length;Z++){if(T.D[Z].identifier===U.identifier){T.D.splice(Z,1);break}}else if(U){T.Fs({rejectAttl:1});Y&&!$4(T.d5,function(f){return f===Y})&&(T.Fs({rejectAdBreakAttl:Y},!0),T.d5.push(Y));
  7059. qd(T);return}Q.cpn||(Q.cpn=g.hu(16));U=Q.cpn;Q=new g.mR(T.Hd,Q);Z=T.Hd.V("html5_huli_ssdai_deprecate_playback_timeline_id")?U:"ss_childplayback_"+AbX++;Q.lC=Z;S3H(T.T,{lC:Z,playerType:l,durationMs:v,R_:L,X_:q,cpn:U,videoData:Q,errorCount:0,ssdaiAdsConfig:k,RB:Y?Y:R?R.RB:U});bUf(T,Q,v);T.Fs({attlDone:q-L,acpn:U,et:L,prt:q});T.C.isActive()&&(T.j=!1,T.C.stop(),wKC(T),T.Ky(!0));return Q};
  7060. cbT=function(T,Q,k){return{ssvc:Q,cpn:(k==null?void 0:k.cpn)||"",vid:(k==null?void 0:k.videoData.videoId)||"",ct:(T.playback.getCurrentTime()||0).toFixed(3),cmt:(T.playback.Jb()||0).toFixed(3)}};
  7061. bUf=function(T,Q,k){var l;(l=T.app.vG().B[Q.clientPlaybackNonce]||null)==null||l.dispose();Q=new GGy(T,Q,T.playback,k/1E3);T.i9.set(Q.pB(),Q);T.app.vG().B[Q.pB()]=Q};
  7062. DOJ=function(T,Q){var k=T.app;fX(k.mF())&&k.CA.L[2]&&T.logger.T(360717806,"SSTM lingering playback");T.api.qI();T.api.publish("serverstitchedvideochange",Q.lC,Q.SK)};
  7063. uiC=function(T,Q){return(T=aP5(T,Q*1E3))?Q-T.start/1E3:Q};
  7064. KF6=function(T,Q){return(T=nIf(T,Q*1E3))?T.durationMs/1E3:0};
  7065. xO5=function(T){if(T.l0)return!1;var Q=void 0;T.Tb&&(Q=T.T.pA({cpn:T.Tb}));return T.playback.getVideoData().lf()?!!Q&&!Q.C0:!!Q};
  7066. PTy=function(T,Q){if(!T.l0){var k=void 0;T.Tb&&(k=T.T.pA({cpn:T.Tb}));if(!k){k=nIf(T,Q*1E3);var l,v=(l=k)==null?void 0:l.cpn;T.Tb?v&&T.Tb!==v&&T.Fs({cpcnm:v+"_"+T.Tb,cmt:Q.toFixed(3)}):T.Fs({cpcna:v,cmt:Q.toFixed(3)})}var L;return(L=k)==null?void 0:L.videoData}};
  7067. gk=function(T,Q,k){k=k===void 0?0:k;var l=g.OA(T.T.T,{R_:(Q+k)*1E3},function(Y,U){return Y.R_-U.R_});
  7068. l=l<0?(l+2)*-1:l;if(l>=0)for(var v=Q*1E3,L=l;L<=l+1&&L<T.T.T.length;L++){var q=T.T.T[L];if(v>=q.R_-k*1E3&&v<=q.X_+k*1E3)return{sU:q,BJ:Q}}return{sU:void 0,BJ:Q}};
  7069. nIf=function(T,Q){var k="";(Q=aP5(T,Q))&&(k=Q.getId());return k?T.T.pA({cpn:k}):void 0};
  7070. aP5=function(T,Q){if(T.Tb){var k=T.S.get(T.Tb);if(k&&k.start-200<=Q&&k.end+200>=Q)return k}T=g.B(T.S.values());for(k=T.next();!k.done;k=T.next())if(k=k.value,k.start<=Q&&k.end>=Q)return k};
  7071. XKb=function(T,Q,k){var l=T.K_||T.app.Pd().getPlayerState();Md(T,!0);T.playback.seekTo(Q,k);T=T.app.Pd();Q=T.getPlayerState();l.isOrWillBePlaying()&&!Q.isOrWillBePlaying()?T.playVideo():l.isPaused()&&!Q.isPaused()&&T.pauseVideo()};
  7072. Md=function(T,Q){T.Tg=NaN;T.zg=null;T.f_.stop();T.xm&&Q&&T.xm.jK();T.K_=null;T.xm=null};
  7073. OUg=function(T){var Q=Q===void 0?-1:Q;var k=k===void 0?Infinity:k;HU5(T,Q,k);for(var l=g.B(T.S.values()),v=l.next();!v.done;v=l.next())v=v.value,v.start>=Q&&v.end<=k&&(T.playback.removeCueRange(v),T.S.delete(v.getId()),T.Fs({rmAdCR:1}));l=gk(T,Q/1E3);Q=l.sU;l=l.BJ;Q&&(l=l*1E3-Q.R_,tbT(T,Q,l,Q.R_+l),l=T.S.get(Q.cpn))&&(l.start=Q.R_,l.end=Q.R_+Q.durationMs);if(Q=gk(T,k/1E3).sU){var L;l="playback_timelinePlaybackId_"+Q.lC+"_video_id_"+((L=Q.videoData)==null?void 0:L.videoId)+"_durationMs_"+Q.durationMs+
  7074. "_enterTimeMs_"+Q.R_+"_parentReturnTimeMs_"+Q.X_;T.O4("Invalid_clearEndTimeMs_"+k+"_that_falls_during_"+l+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
  7075. pK6=function(T){T.qO.clearAll();T.S.clear();T.T.clear();T.N.clear();T.Bd=[];T.B=null;T.Fk.clear();T.Hd.experiments.Wd("html5_ssdai_log_missing_ad_config_reason")&&T.e6.clear();T.D=[];T.p_=[];T.Ig=[];T.d5=[];T.Gg.clear();T.DP.clear();T.OG.clear();T.u9.clear();T.j=!1;T.Al=0;T.z9=!1;T.N5=0;T.h3=0;T.QR=!1;T.l0=!1;T.Y="";LFJ(T.app.vG());lG(T.app.vG(),T.playback,!1);T.i9.clear();T.C.isActive()&&qd(T)};
  7076. tbT=function(T,Q,k,l){Q.durationMs=k;Q.X_=l;(l=T.i9.get(Q.cpn))?l.SR(k/1E3):T.Fs({nop_d:Q.cpn})};
  7077. HU5=function(T,Q,k){CTt(T.T,function(l){return l.R_>=Q&&l.X_<=k})};
  7078. Jby=function(T,Q,k,l,v,L){if(!T.l0)if(g.WFX(T,k))T.Fs({gdu:"undec",seg:k,itag:v});else if(Q=$OT(T,Q,k,l,L),!(T.playback.getVideoData().lf()&&(Q==null?0:Q.C0)))return Q};
  7079. $OT=function(T,Q,k,l,v){var L=T.N.get(k);if(!L){if(L=eTg(T,Q))return L;Q=T.H$(k-1,l!=null?l:2);if(v)return T.Fs({misscue:v,sq:k,type:l,prevsstate:Q==null?void 0:Q.gN,prevrecord:T.N.has(k-1)}),T.N.get(k-1);if((Q==null?void 0:Q.gN)===2)return T.Fs({adnf:1,sq:k,type:l,prevrecord:T.N.has(k-1)}),T.N.get(k-1)}return L};
  7080. eTg=function(T,Q){Q+=T.TG();if(T.playback.getVideoData().lf())a:{var k=1;k=k===void 0?0:k;var l=Q*1E3;T=g.B(T.T.T);for(var v=T.next();!v.done;v=T.next()){v=v.value;var L=v.SK?v.SK*1E3:v.R_;if(l>=v.R_-k*1E3&&l<=L+v.durationMs+k*1E3){l={sU:v,BJ:Q};break a}}l={sU:void 0,BJ:Q}}else l=gk(T,Q),((k=l)==null?0:k.sU)||(l=gk(T,Q,1));var q;return(q=l)==null?void 0:q.sU};
  7081. FFJ=function(T,Q){Q=Q===void 0?"":Q;var k=DE(Q)||void 0;if(!Q||!k){var l;T.Fs({adcfg:(l=Q)==null?void 0:l.length,dcfg:k==null?void 0:k.length})}return k};
  7082. EIt=function(T){for(var Q=g.B(T.S.values()),k=Q.next();!k.done;k=Q.next())T.playback.removeCueRange(k.value);T.S.clear();T.qO.clearAll()};
  7083. ybt=function(T,Q,k,l,v,L,q){if(Q&&k){T.Tb=k.cpn;T.PB(k.cpn,k.startTimeSecs||v);DOJ(T,k);var Y=cbT(T,"a2a",k);T.Fs(Y);T.N5++;T.playback.sz(Q,k,l||0,v||0,!!L,!!q)}else T.Fs({misspbkonadtrans:1,enter:(k==null?void 0:k.cpn)||"",exit:(Q==null?void 0:Q.cpn)||"",seek:L,skip:q})};
  7084. Y7=function(T,Q,k){if(k===void 0||!k){k=g.B(T.Bd);for(var l=k.next();!l.done;l=k.next()){l=l.value;if(Q>=l.start&&Q<=l.end)return;if(Q===l.end+1){l.end+=1;return}}T.Bd.push(new IPb(Q))}};
  7085. g.WFX=function(T,Q){T=g.B(T.Bd);for(var k=T.next();!k.done;k=T.next())if(k=k.value,Q>=k.start&&Q<=k.end)return!0;return!1};
  7086. iU5=function(T,Q,k){var l;if(l=T.playback.getVideoData().lf())l=(l=T.T.pA({cpn:Q}))&&l.RB?(T=T.T.S.get(l==null?void 0:l.RB))&&T.slice(-1)[0].cpn===Q:!1;return l&&k===2?1E3:0};
  7087. NpC=function(T,Q,k,l,v){var L;Q={reason:"overlapping_playbacks",iad:Q,R_:k,X_:l,kGB:v.lC,F_6:((L=v.videoData)==null?void 0:L.videoId)||"",Q0e:v.durationMs,hzq:v.R_,L_O:v.X_};Lq(T,Q)};
  7088. Lq=function(T,Q,k){T.playback.JU(Q,k)};
  7089. Vbg=function(T,Q){var k=[];T=T.T.S.get(Q);if(!T)return[];T=g.B(T);for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.cpn&&k.push(Q.cpn);return k};
  7090. Te5=function(T,Q,k){var l=0;T=T.T.S.get(k);if(!T)return-1;T=g.B(T);for(k=T.next();!k.done;k=T.next()){if(k.value.cpn===Q)return l;l++}return-1};
  7091. Q7b=function(T,Q){var k=0;T=T.T.S.get(Q);if(!T)return 0;T=g.B(T);for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.durationMs!==0&&Q.X_!==Q.R_&&k++;return k};
  7092. j7C=function(T,Q,k){var l=!1;if(k=T.T.S.get(k)){k=g.B(k);for(var v=k.next();!v.done;v=k.next())v=v.value,v.durationMs!==0&&v.X_!==v.R_&&(v=v.cpn,Q===v&&(l=!0),l&&!T.DP.has(v)&&(T.Fs({decoratedAd:v}),T.DP.add(v)))}};
  7093. wKC=function(T){T.sK&&T.Fs({adf:"0_"+((new Date).getTime()/1E3-T.h3)+"_isTimeout_"+T.j})};
  7094. dOC=function(T,Q,k){if(T.D.length)for(var l=g.B(T.D),v=l.next(),L={};!v.done;L={ND:void 0},v=l.next()){L.ND=v.value;v=L.ND.startSecs*1E3;var q=L.ND.bf*1E3+v;if(Q>v&&Q<q||k>v&&k<q)return $4(T.Ig,function(Y){return function(U){return U.identifier===Y.ND.identifier}}(L))||(T.Fs({adskip:Q}),T.Ig.push(L.ND)),L.ND}};
  7095. qd=function(T){T.j=!1;T.C.isActive()&&wKC(T);T.C.stop();T.Ky(!1)};
  7096. oUC=function(T,Q){T.Y||T.z9||U0(T,T.Tb);var k=Q.Y9,l=Q.QC;if(l.cpn===T.Tb)T.Fs({igtranssame:1,enter:l.cpn,exit:k.cpn});else{var v=T.z9,L=!!T.Y;T.Y="";var q=Q.Lm,Y=k.playerType===2?k.R_/1E3+k.videoData.Ah:T.eP().videoData.Ah;T.api.V("html5_ssdai_enable_media_end_cue_range")&&(L||v||k.playerType!==2?(v||L)&&T.Fs({mecr:0,seek:v,skip:L}):T.api.E2(k.cpn));if(k.playerType===2&&l.playerType===2)L?T.Fs({igtransskip:1,enter:l.cpn,exit:k.cpn,seek:v,skip:T.Y}):ybt(T,k,l,Y,q,v,L);else{T.Tb=l.cpn;T.PB(l.cpn,l.startTimeSecs||
  7097. q);Q=Q.qgK;if(k.playerType===1&&l.playerType===2){T.Al=0;DOJ(T,l);var U=cbT(T,"c2a",l);T.Fs(U);T.N5++}else if(k.playerType===2&&l.playerType===1){T.api.publish("serverstitchedvideochange");U=cbT(T,"a2c");T.Fs(U);T.N5=0;T.Al=Y;U=k.cpn;var R=T.Al;if(U!==T.playback.pB()){var Z=T.i9.get(U);Z?Z.T=R:T.Fs({nop_e:U})}ka5(T,k.RB)}T.playback.sz(k,l,Y,q,v,L,Q)}laX(T)}};
  7098. vUH=function(T,Q,k,l){if(T.Hd.V("html5_ssdai_log_ssevt_in_loader")||T.Hd.V("html5_ssdai_log_ssevt_in_loader_200ms")||T.Hd.V("html5_ssdai_log_ssevt_in_loader_timers")||T.Hd.V("html5_ssdai_log_ssevt_in_loader_cuerange"))l=T.z9?0:Math.round((l-k)*1E3),T.playback.T9("ssevt",{tag:"sstme",ad:Q!==T.playback.pB(),cpn:Q,st:(k-T.playback.TG()).toFixed(3),late:l})};
  7099. Lif=function(T,Q,k){T.playback.s$();T.playback.seekTo(Q,k);T.playback.playVideo()};
  7100. q1f=function(T,Q,k,l){Q={Y9:Q,QC:k,Lm:T.playback.getCurrentTime(),qgK:l};oUC(T,Q)};
  7101. ka5=function(T,Q){if(T.playback.getVideoData().lf()){var k=T.T.S.get(Q);if(k){k=g.B(k);for(var l=k.next();!l.done;l=k.next()){var v=T;l=l.value;var L=v.S.get(l.cpn);v.S.delete(l.cpn);L&&v.playback.removeCueRange(L);zTC(v.T,l)}T.N.clear();T=T.T;var q;k=(q=T.S.get(Q))!=null?q:[];q=g.B(k);for(k=q.next();!k.done;k=q.next())zTC(T,k.value);T.S.delete(Q)}}};
  7102. U0=function(T,Q){var k=Q||T.Tb,l=T.T.pA({cpn:k});if(l){Q=l.videoData;var v,L;k=l.SK||((L=(v=T.S.get(k))==null?void 0:v.start)!=null?L:0)/1E3;T=T.playback.getCurrentTime()-k;Q.Ah=T>0?T:0}else T.eP().videoData.Ah=T.playback.getCurrentTime()};
  7103. laX=function(T){T.u9.add(T.Y);T.Y="";T.z9=!1};
  7104. MdC=function(T,Q,k,l){g.x.call(this);var v=this;this.api=T;this.Hd=Q;this.T=k;this.app=l;this.N=new Map;this.S=[];this.L=this.C=null;this.z9=NaN;this.B=this.Y=this.D=null;this.j=new g.FA(function(){gU6(v,v.z9,v.D||void 0)});
  7105. this.qO=[];this.hj=new g.FA(function(){var L=v.qO.pop();if(L){var q=L.lC,Y=L.playerVars;L=L.playerType;Y&&(Y.prefer_gapless=!0,v.api.preloadVideoByPlayerVars(Y,L,NaN,"",q),v.qO.length&&g.Ez(v.hj,4500))}});
  7106. this.events=new g.Bj(this);this.dn={j09:function(){return v.S}};
  7107. this.T.getPlayerType();g.P(this,this.j);g.P(this,this.hj);g.P(this,this.events);this.events.Z(this.api,g.ej("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.Pl)};
  7108. ZzJ=function(T,Q,k,l,v,L){var q=Q.cpn,Y=Q.docid||Q.video_id||Q.videoId||Q.id,U=T.T;L=L===void 0?v+l:L;if(v>L)return Rg(T,"enterAfterReturn enterTimeMs="+v+" is greater than parentReturnTimeMs="+L.toFixed(3),q,Y),"";var R=U.SY()*1E3;if(v<R)return Rg(T,"enterBeforeMinSeekable enterTimeMs="+v+" is less than parentMinSeekableTimeMs="+R,q,Y),"";R=U.getDuration()*1E3;if(L>R)return U="returnAfterDuration parentReturnTimeMs="+L.toFixed(3)+" is greater than parentDurationMs="+R+". And timestampOffset in seconds is "+
  7109. U.Px(),Rg(T,U,q,Y),"";R=null;for(var Z=g.B(T.S),f=Z.next();!f.done;f=Z.next()){f=f.value;if(v>=f.R_&&v<f.X_)return Rg(T,"overlappingEnter",q,Y),"";if(L<=f.X_&&L>f.R_)return Rg(T,"overlappingReturn",q,Y),"";if(L===f.R_)return Rg(T,"outOfOrder",q,Y),"";v===f.X_&&(R=f)}q="cs_childplayback_"+Y1f++;Y={qV:ZN(l,!0),kz:Infinity,target:null};var G={lC:q,playerVars:Q,playerType:k,durationMs:l,R_:v,X_:L,R9:Y};T.S=T.S.concat(G).sort(function(z,w){return z.R_-w.R_});
  7110. R?UbX(T,R,{qV:ZN(R.durationMs,!0),kz:R.R9.kz,target:G}):(Q={qV:ZN(v,!1),kz:v,target:G},T.N.set(Q.qV,Q),U.addCueRange(Q.qV));Q=!0;if(T.T===T.app.Pd()&&(U=U.getCurrentTime()*1E3,U>=G.R_&&U<G.X_)){var m=T.app.Pd().getPlayerState(),I=U-G.R_;sJ(function(){R_u(T,G,I/1E3,{},m)});
  7111. Q=!1}Q&&(T.qO.unshift(G),g.Ez(T.hj,0));return q};
  7112. ZN=function(T,Q){return new g.$d(Math.max(0,T-5E3),Q?0x8000000000000:T-1,{namespace:"childplayback",priority:9})};
  7113. fa5=function(T,Q,k,l){T.L=l;T.api.wL(T.T,k,Q)};
  7114. Gaf=function(T,Q,k,l){T.L=l;l=Q.lC;var v=Q.playerVars,L=Q.playerType;T.C=Q;v&&T.api.enqueueVideoByPlayerVars(v,L,k,l)};
  7115. UbX=function(T,Q,k){var l=Q.R9;Q.R9=k;fq(T,Q)&&(k=T.app.Pd(),l.qV===T.L&&Gt(T),k.removeCueRange(l.qV),k.addCueRange(Q.R9.qV))};
  7116. Gt=function(T){T.C=null;T.L=null;T.api.jZ()||T.api.clearQueue()};
  7117. mbu=function(T,Q){fq(T,Q)||Rg(T,"childPlaybackIsNotPresenting");return Q.X_===Q.R_+Q.durationMs?Q.R_+T.app.Pd().getCurrentTime()*1E3:Q.X_};
  7118. Iab=function(T,Q){var k=0;T=g.B(T.S);for(var l=T.next();!l.done;l=T.next()){l=l.value;var v=l.R_/1E3+k,L=v+l.durationMs/1E3;if(v>Q)break;if(L>Q)return{sU:l,BJ:Q-v};k=L-l.X_/1E3}return{sU:null,BJ:Q-k}};
  7119. gU6=function(T,Q,k){k=k===void 0?{}:k;var l=T.B||T.app.Pd().getPlayerState();mL(T,!0);Q=isFinite(Q)?Q:T.T.u8();var v=Iab(T,Q);Q=v.BJ;var L=(v=v.sU)&&!fq(T,v)||!v&&T.T!==T.app.Pd(),q=Q*1E3;q=T.L&&T.L.start<=q&&q<=T.L.end;!L&&q||Gt(T);v?R_u(T,v,Q,k,l):h_y(T,Q,k,l)};
  7120. h_y=function(T,Q,k,l){var v=T.T;v!==T.app.Pd()&&T.app.WJ();v.seekTo(Q,Object.assign({},{I_:"application_timelinemanager"},k));s76(T,l)};
  7121. R_u=function(T,Q,k,l,v){var L=fq(T,Q);if(!L){Q.playerVars.prefer_gapless=!0;var q=new g.mR(T.Hd,Q.playerVars);q.lC=Q.lC;T.api.Ln(q,Q.playerType)}q=T.app.Pd();L||q.addCueRange(Q.R9.qV);q.seekTo(k,Object.assign({},{I_:"application_timelinemanager"},l));s76(T,v)};
  7122. s76=function(T,Q){T=T.app.Pd();var k=T.getPlayerState();Q.isOrWillBePlaying()&&!k.isOrWillBePlaying()?T.playVideo():Q.isPaused()&&!k.isPaused()&&T.pauseVideo()};
  7123. mL=function(T,Q){T.z9=NaN;T.D=null;T.j.stop();T.Y&&Q&&T.Y.jK();T.B=null;T.Y=null};
  7124. fq=function(T,Q){T=T.app.Pd();return!!T&&T.getVideoData().lC===Q.lC};
  7125. S1u=function(T){var Q=T.S.find(function(v){return fq(T,v)});
  7126. if(Q){var k=T.app.Pd();Gt(T);var l=new g.Cd(8);Q=mbu(T,Q)/1E3;h_y(T,Q,{},l);k.T9("forceParentTransition",{childPlayback:1});T.T.T9("forceParentTransition",{parentPlayback:1})}};
  7127. BeX=function(T,Q,k){Q=Q===void 0?-1:Q;k=k===void 0?Infinity:k;for(var l=Q,v=k,L=g.B(T.N),q=L.next();!q.done;q=L.next()){var Y=g.B(q.value);q=Y.next().value;Y=Y.next().value;Y.kz>=l&&Y.target&&Y.target.X_<=v&&(T.T.removeCueRange(q),T.N.delete(q))}l=Q;v=k;L=[];q=g.B(T.S);for(Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,Y.R_>=l&&Y.X_<=v){var U=T;U.C===Y&&Gt(U);fq(U,Y)&&U.app.WJ()}else L.push(Y);T.S=L;l=Iab(T,Q/1E3);Q=l.sU;l=l.BJ;Q&&(l*=1E3,C9y(T,Q,l,Q.X_===Q.R_+Q.durationMs?Q.R_+l:Q.X_));(Q=Iab(T,k/1E3).sU)&&
  7128. Rg(T,"Invalid clearEndTimeMs="+k+" that falls during playback={timelinePlaybackId="+(Q.lC+" video_id="+Q.playerVars.video_id+" durationMs="+Q.durationMs+" enterTimeMs="+Q.R_+" parentReturnTimeMs="+Q.X_+"}.Child playbacks can only have duration updated not their start."))};
  7129. C9y=function(T,Q,k,l){Q.durationMs=k;Q.X_=l;l={qV:ZN(k,!0),kz:k,target:null};UbX(T,Q,l);fq(T,Q)&&T.app.Pd().getCurrentTime()*1E3>k&&(Q=mbu(T,Q)/1E3,k=T.app.Pd().getPlayerState(),h_y(T,Q,{},k))};
  7130. Rg=function(T,Q,k,l){T.T.T9("timelineerror",{e:Q,cpn:k?k:void 0,videoId:l?l:void 0})};
  7131. Xo5=function(T){T&&T!=="web"&&z_5.includes(T)};
  7132. Ig=function(){g.x.call(this);this.T=new Tt(5,null);g.P(this,this.T);this.S=new Tt(15,null);g.P(this,this.S)};
  7133. EYH=function(T,Q){return Q?!!T.T.get(Q):!1};
  7134. wo6=function(T,Q){T.dataset.version=Q};
  7135. AhC=function(T){g.p.call(this,{X:"div",Rk:["html5-video-player"],K:{tabindex:T.G().disableOrganicUi?"":"-1",id:T.webPlayerContextConfig.rootElementId},W:[{X:"div",J:g.Br.VIDEO_CONTAINER,K:{"data-layer":"0"}}]});var Q=this;this.app=T;this.XO=this.L_(g.Br.VIDEO_CONTAINER);this.hJ=new g.tZ(0,0,0,0);this.Q4=null;this.Nu=new g.tZ(0,0,0,0);this.Fa=this.sO=this.eH=NaN;this.Nb=this.X9=this.WL=this.fb=!1;this.rg=NaN;this.TD=!1;this.VA=null;this.HL=function(){Q.element.focus({preventScroll:!0})};
  7136. this.Mr=function(){Q.app.ZV.publish("playerUnderlayVisibilityChange","visible");Q.Q4.classList.remove(g.Br.VIDEO_CONTAINER_TRANSITIONING);Q.Q4.removeEventListener(cR,Q.Mr);Q.Q4.removeEventListener("transitioncancel",Q.Mr)};
  7137. this.Yy=this.kU=!1;var k=this.element.addEventListener,l=this.element.removeEventListener;this.addEventListener=function(L,q,Y){k.apply(Q.element,[L,q,Y])};
  7138. this.removeEventListener=function(L,q,Y){l.apply(Q.element,[L,q,Y])};
  7139. var v=T.G();v.transparentBackground&&this.SX("ytp-transparent");v.controlsType==="0"&&this.SX("ytp-hide-controls");g.oF(this.element,"ytp-exp-bottom-control-flexbox");g.oF(this.element,"ytp-modern-caption");v.V("enable_new_paid_product_placement")&&!g.XT(v)&&g.oF(this.element,"ytp-exp-ppp-update");v.V("html5_enable_ssap")&&g.oF(this.element,"ytp-ssap");g.oF(this.element,"ytp-livebadge-color");if(v.V("delhi_modern_web_player"))switch(g.oF(this.element,"ytp-delhi-modern"),v.V("delhi_modern_web_player_icons")&&
  7140. g.oF(this.element,"ytp-delhi-modern-icons"),S4(v.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.oF(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.oF(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.oF(this.element,"ytp-delhi-modern-with-exclusion")}wo6(this.element,dbX(T));this.AP=!1;this.TZ=new g.Ji(NaN,NaN);Neb(this);this.Z(T.ZV,"onMutedAutoplayChange",this.onMutedAutoplayChange);T=g.jj(v.experiments,"html5_android_mweb_resize_delay");
  7141. T>0&&(this.N7=new g.FA(function(){return void Q.resize()},T),g.P(this,this.N7))};
  7142. Neb=function(T){function Q(q){T.Q4&&hn(T);s0(T)!==T.TD&&T.resize();T.app.G().V("web_enable_smart_zoom")&&T.W3&&(q.state.isPaused()?T.W3.pause():g.RY(q,8)&&T.W3.playState==="paused"&&T.W3.play())}
  7143. function k(q,Y){T.Kp(q,Y)}
  7144. function l(q){q.getVideoData()&&T.updateVideoData(q.getVideoData())}
  7145. function v(){T.Nu=new g.tZ(0,0,0,0);T.hJ=new g.tZ(0,0,0,0)}
  7146. var L=T.app.ZV;L.addEventListener("initializingmode",v);L.addEventListener("videoplayerreset",l);L.addEventListener("videodatachange",k);L.addEventListener("presentingplayerstatechange",Q);T.addOnDisposeCallback(function(){L.removeEventListener("initializingmode",v);L.removeEventListener("videoplayerreset",l);L.removeEventListener("videodatachange",k);L.removeEventListener("presentingplayerstatechange",Q)})};
  7147. rhu=function(T){var Q=T.app.Pd();if(Q=Q?Q.getVideoData():null){if(g.Th(Q)||g.Q5(Q)||g.j$(Q))return 16/9;if(d4(Q)&&Q.L.T)return T=Q.L.videoInfos[0].video,bz5(T.width,T.height)}return(T=T.Q4)?bz5(T.videoWidth,T.videoHeight):16/9};
  7148. ch5=function(T,Q,k,l){var v=k,L=bz5(Q.width,Q.height);T.fb?v=k<L?Infinity:0:isNaN(T.Fa)?isNaN(T.sO)||(v=T.sO):v=T.Fa;isFinite(v)||(v=Math.max(k,L));T=v>L?{width:Q.width,height:Q.width/v,aspectRatio:v}:v<L?{width:Q.height*v,height:Q.height,aspectRatio:v}:{width:Q.width,height:Q.height,aspectRatio:L};l||isNaN(k)||(k>v?T.width=T.height*k:k<v&&(T.height=T.width/k),T.aspectRatio=k);return T};
  7149. bz5=function(T,Q){return Math.abs(DbC*Q-T)<1||Math.abs(DbC/T-Q)<1?DbC:T/Q};
  7150. s0=function(T){if(T.app.getAppState()===1)return!1;if(T.app.getAppState()===6)return!0;var Q=T.app.Pd();if(!Q||Q.Pc())return!1;T=T.app.ZV.getPlayerStateObject();Q=!g.J(T,2)||Q&&Q.getVideoData().C;var k=g.J(T,1024);return T&&Q&&!k&&!T.isCued()};
  7151. hn=function(T){var Q=T.app.G().controlsType==="3"&&!T.Nb&&s0(T)&&!T.app.Oj||!1;T.Q4.controls=Q;T.Q4.tabIndex=Q?0:-1;T.app.G().Y&&(T.Q4.ariaHidden=Q||T.app.G().V("video_element_aria_hidden_ks")?"false":"true");Q?T.Q4.removeEventListener("focus",T.HL):T.Q4.addEventListener("focus",T.HL)};
  7152. aay=function(T){var Q=T.J9(),k=1,l=!1,v=ch5(T,Q,T.getVideoAspectRatio()),L=T.app.G(),q=L.V("enable_desktop_player_underlay"),Y=CHg(),U=g.jj(L.experiments,"player_underlay_min_player_width");U=q&&T.WL&&T.getPlayerSize().width>U;if(s0(T)){var R=rhu(T);var Z=isNaN(R)||g.$n||Gz&&g.mp||U;We&&!g.HX(601)?R=v.aspectRatio:Z=Z||L.controlsType==="3";Z?U?(Z=L.V("place_shrunken_video_on_left_of_player")?16:T.getPlayerSize().width-Q.width-16,R=Math.max((T.getPlayerSize().height-Q.height)/2,0),Z=new g.tZ(Z,R,Q.width,
  7153. Q.height),T.Q4.style.setProperty("border-radius","12px")):Z=new g.tZ(0,0,Q.width,Q.height):(k=v.aspectRatio/R,Z=new g.tZ((Q.width-v.width/k)/2,(Q.height-v.height)/2,v.width/k,v.height),k===1&&g.mp&&(R=Z.width-Q.height*R,R>0&&(Z.width+=R,Z.height+=R)));g.gl(T.element,"ytp-fit-cover-video",Math.max(Z.width-v.width,Z.height-v.height)<1);if(Y||T.AP)T.Q4.style.display="";T.TD=!0}else{Z=-Q.height;We?Z*=window.devicePixelRatio:g.wj&&(Z-=window.screen.height);Z=new g.tZ(0,Z,Q.width,Q.height);if(Y||T.AP)T.Q4.style.display=
  7154. "none";T.TD=!1}O$(T.Nu,Z)||(T.Nu=Z,g.q0(L)?(T.Q4.style.setProperty("width",Z.width+"px","important"),T.Q4.style.setProperty("height",Z.height+"px","important")):g.QP(T.Q4,Z.getSize()),l=new g.WX(Z.left,Z.top),g.yf(T.Q4,Math.round(l.x),Math.round(l.y)),l=!0);Q=new g.tZ((Q.width-v.width)/2,(Q.height-v.height)/2,v.width,v.height);O$(T.hJ,Q)||(T.hJ=Q,l=!0);g.W2(T.Q4,"transform",k===1?"":"scaleX("+k+")");q&&U!==T.X9&&(U&&(T.Q4.addEventListener(cR,T.Mr),T.Q4.addEventListener("transitioncancel",T.Mr),T.Q4.classList.add(g.Br.VIDEO_CONTAINER_TRANSITIONING)),
  7155. T.X9=U,T.app.ZV.publish("playerUnderlayVisibilityChange",T.X9?"transitioning":"hidden"));return l};
  7156. um5=function(T){T.kU=!T.kU;T.Yy=!0;T.element.classList.toggle("ytp-retro-player",T.kU);T.resize();T.Yy=!1;T.app.ZV.tj("onRetroModeChanged",T.kU)};
  7157. nUt=function(){this.csn=g.C9();this.clientPlaybackNonce=null;this.elements=new Set;this.L=new Set;this.T=new Set;this.S=new Set};
  7158. KiC=function(T){if(T.csn!==g.C9())if(T.csn==="UNDEFINED_CSN")T.csn=g.C9();else{var Q=g.C9(),k=g.ST();if(Q&&k){T.csn=Q;for(var l=g.B(T.elements),v=l.next();!v.done;v=l.next())(v=v.value.visualElement)&&v.isClientVe()&&Q&&k&&(g.hH("combine_ve_grafts")?yh(Fv(),v,k):g.E4(g.p9)(void 0,Q,k,v))}if(Q)for(T=g.B(T.T),k=T.next();!k.done;k=T.next())(k=k.value.visualElement)&&k.isClientVe()&&g.iA(Q,k)}};
  7159. g.S5=function(T,Q,k,l){g.x.call(this);var v=this;this.logger=new g.Cy("App");this.Oj=this.PG=!1;this.w6={};this.Bw=[];this.ij=!1;this.G7=null;this.intentionalPlayback=!1;this.oA=!0;this.D9=!1;this.YI=this.bj=this.h0=null;this.ql=!0;this.mediaElement=this.VR=null;this.A0=NaN;this.cY=!1;this.OM=this.gq=this.SD=this.screenLayer=this.playlist=null;this.l1=[];this.XX=0;this.dn={vG:function(){return v.CA},
  7160. N_B:function(){return v.SD}};
  7161. this.logger.debug("constructor begin");if(!k)throw Error("b/179532961");this.C9=(Q==null?void 0:Q.args)||{};this.webPlayerContextConfig=k;LoX();Q=this.C9;this.Hd=new fn(Q,k,k.canaryState,l,this);g.P(this,this.Hd);UO5(this.Hd);k=ZU6(this.Hd);this.Hd.J3()&&this.y7("h5vcc",k);this.Hd.experiments.Wd("jspb_serialize_with_worker")&&tmu();this.Hd.experiments.Wd("gzip_gel_with_worker")&&DNH();this.Hd.S&&!xbC&&(window.addEventListener(ya?"touchstart":"click",ORf,{capture:!0,passive:!0}),xbC=!0);this.V("html5_onesie")&&
  7162. (this.fH=new Iv(this.Hd),g.P(this,this.fH));this.bF=jG(kL(this.Hd)&&!0,Q.enablesizebutton);this.qJ=jG(!1,Q.player_wide);this.visibility=new vI5;g.P(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.bz(jG(!1,Q.player_wide));this.PG=jG(!1,Q.external_list);this.events=new g.Bj(this);g.P(this,this.events);this.V("start_client_gcf")&&(d1(r1(),{mj:qU,u3:key()}),this.mT=r1().resolve(qU),vh5(this.mT));this.aCq=new bt;g.P(this,this.aCq);this.GE=new nUt;k=new rs;this.ZV=new g.Wi(this,k);
  7163. g.P(this,this.ZV);this.template=new AhC(this);g.P(this,this.template);this.appState=1;this.cG=P9f(this);g.P(this,k);k={};this.yN=(k.internalvideodatachange=this.nN,k.playbackready=this.skK,k.playbackstarted=this.C99,k.statechange=this.lVK,k);this.xJ=new Ba(this.ZV);this.TH=Hz5(this);k=this.Hd.B;!1!==k&&this.y7("badps",{hbp:k,hostname:window.location.hostname,ps:this.Hd.playerStyle});this.Rg=new X5g(this.Hd,this.TH);this.ZV.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||WL6(this.TH))&&
  7164. tdC(this);k=10;g.G4(this.Hd)&&(k=3);BB(this.Hd)&&(k=g.jj(this.Hd.experiments,"tvhtml5_unplugged_preload_cache_size"));this.CA=new g.j5(this.ZV,k);k=Oz5(this);this.CA.zj(k);poJ(this);k={};this.Kx=(k.airplayactivechange=this.A3q,k.airplayavailabilitychange=this.jgB,k.beginseeking=this.K16,k.sabrCaptionsDataLoaded=this.y6d,k.endseeking=this.Pg9,k.internalAbandon=this.pxO,k.internalaudioformatchange=this.bce,k.internalvideodatachange=this.c6d,k.internalvideoformatchange=this.EcH,k.liveviewshift=this.trk,
  7165. k.playbackstalledatstart=this.SHO,k.progresssync=this.MrO,k.onAbnormalityDetected=this.Zcd,k.onSnackbarMessage=this.TnO,k.onLoadProgress=this.W1j,k.SEEK_COMPLETE=this.zgm,k.SEEK_TO=this.qHV,k.onVideoProgress=this.Q_V,k.onLoadedMetadata=this.Oc9,k.onAutoplayBlocked=this.IPm,k.onPlaybackPauseAtStart=this.fPH,k.playbackready=this.DYd,k.statechange=this.gf,k.newelementrequired=this.q6,k.heartbeatparams=this.nBk,k.videoelementevent=this.oc6,k.drmoutputrestricted=this.GgH,k.signatureexpired=this.gc_,k.nonfatalerror=
  7166. this.vBm,k.reloadplayer=this.HA_,k);this.Yd=new g.Bj(this);g.P(this,this.Yd);this.m9=new Ig;g.P(this,this.m9);this.di=this.JM=-1;this.uw=new g.FA(this.template.resize,16,this.template);g.P(this,this.uw);this.Gx=new MdC(this.ZV,this.Hd,this.Lc(),this);this.Zq=new Fx(this);g.P(this,this.Zq);this.uM=new Ww(this);g.P(this,this.uM);Xo5(this.Hd.T.c);this.events.Z(this.ZV,g.ej("appapi"),this.V6d);this.events.Z(this.ZV,g.Ft("appapi"),this.wdV);this.events.Z(this.ZV,g.ej("appprogressboundary"),this.d2B);this.events.Z(this.ZV,
  7167. g.Ft("applooprange"),this.aU);this.events.Z(this.ZV,"presentingplayerstatechange",this.Pl);this.events.Z(this.ZV,"resize",this.r6K);this.template.XB(oO(document,T));this.events.Z(this.ZV,"offlineslatestatechange",this.eek);this.events.Z(this.ZV,"sabrCaptionsTrackChanged",this.ph_);this.events.Z(this.ZV,"sabrCaptionsBufferedRangesUpdated",this.ncq);this.TH.U.G().A9&&nk(this.TH,"offline");this.Hd.u9&&g.ND("ux",g.OL);T=g.jj(this.Hd.experiments,"html5_defer_fetch_att_ms");this.wF=new g.FA(this.gP9,T,
  7168. this);g.P(this,this.wF);this.mF().Hk()&&(g.a1()&&this.mF().D.push("remote"),WiT(this));this.Rg.tick("fs");$bT(this);this.Hd.u9&&nk(this.TH,"ux",!0);g.Qk(this.TH.U.G())&&nk(this.TH,"embed");this.V("web_player_sentinel_is_uniplayer")||g.rB(new g.Wy("Player experiment flags missing","web_player_sentinel_is_uniplayer"));T=this.V("web_player_sentinel_yt_experiments_sync");k=g.hH("web_player_sentinel_yt_experiments_sync");T!==k&&g.rB(new g.Wy("b/195699950",{yt:T,player:k}));this.Pb=Jh6(this);if(T=g.jj(this.Hd.experiments,
  7169. "html5_block_pip_safari_delay"))this.eG=new g.FA(this.t8,T,this),g.P(this,this.eG);cD=this.Hd.OG;this.ZV.publish("applicationInitialized");this.logger.debug("constructor end")};
  7170. Jh6=function(T){function Q(k){k.stack&&k.stack.indexOf("player")!==-1&&T.Pd().GA(k)}
  7171. cx.subscribe("handleError",Q);em.push(Q);return function(){cx.unsubscribe("handleError",Q);var k=em.indexOf(Q);k!==-1&&em.splice(k,1)}};
  7172. Oz5=function(T){var Q=new g.mR(T.Hd,T.C9);T.ZV.publish("initialvideodatacreated",Q);return Cq(T,1,Q,!1)};
  7173. poJ=function(T){var Q=T.Lc();Q.setPlaybackRate(T.Hd.Y?1:e_t(T,Number(g.cy("yt-player-playback-rate"))||1));Q.L7(T.yN,T);Q.Ij()};
  7174. Hz5=function(T){var Q="",k=dbX(T);k.indexOf("//")===0&&(k=T.Hd.protocol+":"+k);var l=k.lastIndexOf("/base.js");l!==-1&&(Q=k.substring(0,l+1));if(k=Error().stack)if(k=k.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))k=k[1],k.includes(Q)||g.rB(Error("Player module URL mismatch: "+(k+" vs "+Q+".")));Q=new t5J(T.ZV,Q);k={};Oqy(Q,(k.destroyed=function(){T.onApiChange()},k));
  7175. return Q};
  7176. P9f=function(T){if(T.Hd.storeUserVolume){T=g.cy("yt-player-volume")||{};var Q=T.volume;T={volume:isNaN(Q)?100:g.ti(Math.floor(Q),0,100),muted:!!T.muted}}else T={volume:100,muted:T.Hd.mute};return T};
  7177. B5=function(T){T.mediaElement=T.Hd.deviceIsAudioOnly?new g.i_(g.fO("AUDIO")):pa.pop()||new g.i_(g.fO("VIDEO"));g.P(T,T.mediaElement);T.Pd().setMediaElement(T.mediaElement);try{T.Hd.t6?(T.gq&&T.events.J6(T.gq),T.gq=T.events.Z(T.mediaElement,"volumechange",T.UYB)):(T.mediaElement.r9(T.cG.muted),T.mediaElement.setVolume(T.cG.volume/100))}catch(v){T.XG("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(v&&typeof v==="object"&&"message"in v&&typeof v.message==="string"&&v.message.replace(/[;:,]/g,
  7178. "_")));return}g.N5(T.Yd);FiC(T);var Q=T.template,k=T.mediaElement.xB();Q.Q4=k;Q.Nb=!1;Q.Q4.parentNode||hZ(Q.XO,Q.Q4,0);Q.Nu=new g.tZ(0,0,0,0);aay(Q);hn(Q);k=Q.Q4;g.oF(k,"video-stream");g.oF(k,g.Br.MAIN_VIDEO);var l=Q.app.G();l.E4&&k.setAttribute("data-no-fullscreen","true");l.V("html5_local_playsinline")?"playsInline"in mD()&&(k.playsInline=!0):l.xz&&(k.setAttribute("webkit-playsinline",""),k.setAttribute("playsinline",""));l.vz&&Q.Q4&&Q.Z(k,"click",k.play,k);try{T.mediaElement.activate()}catch(v){T.XG("html5.missingapi",
  7179. 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(v&&typeof v==="object"&&"message"in v&&typeof v.message==="string"&&v.message.replace(/[;:,]/g,"_")))}};
  7180. yh5=function(T){if(!EUX(T)){var Q=T.Lc().T_();Q&&(Q=Q.qz(),Q instanceof Promise&&Q.catch(function(){}));
  7181. zt(T,rf(T.getPlayerStateObject()))}};
  7182. FiC=function(T){var Q=T.mediaElement;SI()?T.Yd.Z(Q,"webkitpresentationmodechanged",T.tVH):window.document.pictureInPictureEnabled&&(T.Yd.Z(Q,"enterpictureinpicture",function(){T.DN(!0)}),T.Yd.Z(Q,"leavepictureinpicture",function(){T.DN(!1)}));
  7183. Fw&&(T.Yd.Z(Q,"webkitbeginfullscreen",function(){T.gA(3)}),T.Yd.Z(Q,"webkitendfullscreen",function(){T.gA(0)}))};
  7184. izX=function(T,Q){var k=Q.getPlayerType(),l=T.CA.L[k]||null;Q!==T.Lc()&&Q!==l&&(l==null||l.dispose(),T.CA.L[k]=Q)};
  7185. Vd5=function(T,Q){Q=Q===void 0?!0:Q;T.logger.debug("start clear presenting player");var k;if(k=T.OM){k=T.OM;var l=T.mediaElement;k=!!l&&l===k.mediaElement}k&&(T.u7(),B5(T));k=T.Pd();k.u7(!Q);k.L5(T.Kx,T);k.getPlayerType()!==1&&k.dispose();Q=T.CA;Q.S=Q.T;k7(Q);T.logger.debug("finish clear presenting player")};
  7186. g.TZC=function(T,Q,k,l){var v=T.Rg;Q===2&&(v=new X5g(T.Hd));return new g.q4(T.Hd,Q,v,T.template,function(L,q,Y){T.ZV.publish(L,q,Y)},function(){return T.ZV.getVisibilityState()},T.visibility,T,k,l)};
  7187. Cq=function(T,Q,k,l,v){T=g.TZC(T,Q,k,v);T=new g.vR(T);l&&T.Ij();return T};
  7188. XU=function(T,Q){return T.Xj(Q)?T.Lc():Q};
  7189. wk=function(T,Q){var k=T.Pd();return Q===T.Lc()&&T.Xj(Q)&&T.Xj(k)?k:Q};
  7190. kMu=function(T){T.logger.debug("start application playback");if(T.Lc().getPlayerState().isError())T.logger.debug("start application playback done, player in error state");else{var Q=dk(T);T.mF().isLoaded();Q&&T.pU(6);QeJ(T);TY5(T.TH)||jey(T)}};
  7191. jey=function(T){if(!dk(T)){var Q=xY(T.TH);Q&&!Q.created&&p5t(T.TH)&&(T.logger.debug("reload ad module"),Q.create())}};
  7192. QeJ=function(T){T.logger.debug("start presenter playback");var Q=T.getVideoData(),k=T.TH;TY5(k)||k.j$();!rx&&k.U.V("html5_allow_asmjs")&&vFu(k);nk(k,"embed");nk(k,"kids");nk(k,"remote");nk(k,"miniplayer");nk(k,"offline");nk(k,"unplugged");nk(k,"ypc",!1,!0);k.U.V("html5_ypc_clickwrap_module_refactor")||nk(k,"ypc_clickwrap",!1,!0);nk(k,"yto",!1,!0);nk(k,"webgl",!1,!0);QwJ(k)||(nk(k,"captions",!0),nk(k,"endscreen"),k.Qs(),nk(k,"creatorendscreen",!0));k.Yr();k.U.publish("modulesCreated");T.ZV.publish("videoready",
  7193. Q)};
  7194. Nd=function(T){T=T.mF();T.Hk();return Mf(T)};
  7195. $bT=function(T){T.logger.debug("start prepare initial playback");T.f1();var Q=T.C9;B5(T);T.events.Z(window,"resize",T.J6d);var k=T.mF();T.ZV.Pk("onVolumeChange",T.cG);if(Q&&AnC(Q)){var l=h9(T.Hd);l&&!T.PG&&(Q.fetch=0);var v=g.Qk(T.Hd);v&&!T.PG&&(Q.fetch=0);An(T,Q);g.Qk(T.Hd)&&T.Rg.tick("ep_pr_s");if(!l||T.PG)if(v&&!T.PG)luH(T);else if(!k.Hk())T.playlist.onReady(function(){bG(T)})}T.l$(T.Lc(),!1,!0);
  7196. g.J(T.Lc().getPlayerState(),128)||(Q=ccT(!T.Hd.deviceIsAudioOnly),Q==="fmt.noneavailable"?T.XG("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Q==="html5.missingapi"?T.XG(Q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):k&&k.Hk()&&Nd(T)&&(T.Hd.ek||T.Hd.NK)?rk(T):k.iL?T.ZV.mutedAutoplay({durationMode:k.mutedAutoplayDurationMode}):g.cy("yt-player-playback-on-reload")?(g.LM("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!T.Hd.hj}),g.ri("yt-player-playback-on-reload",!1),
  7197. rk(T)):N0(T.Hd)||ooy(T),g.Cn(T.Hd)||hS(T.Hd)==="MWEB"?(g.Er(g.iu(),function(){c5(T)}),g.Er(g.iu(),function(){rxb()})):(c5(T),rxb()),T.logger.debug("finish prepare initial playback"))};
  7198. c5=function(T){if(!T.V("use_rta_for_player"))if(T.V("fetch_att_independently"))g.Ez(T.wF);else{var Q=T.getVideoData().botguardData;Q&&g.o3(Q,T.Hd,T.getVideoData().d_||"")}};
  7199. ooy=function(T){T.logger.debug("start initialize to CUED mode");T.ZV.publish("initializingmode");T.pU(2);nk(T.TH,"remote");nk(T.TH,"miniplayer");T.logger.debug("initialized to CUED mode")};
  7200. rk=function(T){T.logger.debug("start initialize application playback");var Q=T.Lc();if(g.J(Q.getPlayerState(),128))return!1;Q=Q.getVideoData();Nd(T)&&T.Hd.NK&&(pa.length&&T.Oj?(DN(T,{muted:!1,volume:T.cG.volume},!1),ag(T,!1)):pa.length||T.cG.muted||(DN(T,{muted:!0,volume:T.cG.volume},!1),ag(T,!0)));Nd(T)&&g.Qk(T.Hd)&&Q.mutedAutoplay&&(DN(T,{muted:!0,volume:T.cG.volume},!1),ag(T,!0));Q.Rq&&DN(T,{muted:!0,volume:T.cG.volume},!1);voC(T,1,Q,!1);var k=T.Lc();T.ZV.publish("initializingmode");T.l$(k);T.pU(3);
  7201. var l;if(!(l=!T.Hd.BH)){if(l=T.OM){l=T.OM;var v=T.mediaElement;l=!!v&&v===l.mediaElement}l=l&&T.ij}l&&(T.u7(),B5(T),k.setMediaElement(T.mediaElement));k.Pw();if(g.J(k.getPlayerState(),128))return!1;Q.dC||zt(T,3);return T.ij=!0};
  7202. dk=function(T){T=e$(T.TH);return!!T&&T.loaded};
  7203. Lgt=function(T,Q){if(!T.VR)return!1;var k=T.VR.startTimeMs*.001-1,l=T.VR.endTimeMs*.001;T.VR.type==="repeatChapter"&&l--;return Math.abs(Q-k)<=1E-6||Math.abs(Q-l)<=1E-6||Q>=k&&Q<=l};
  7204. qbI=function(T){var Q=T.Pd();NY(Q.getVideoData())&&!Q.qG()&&(Q=uG(T)*1E3-T.getVideoData().Sq,T.V("html5_gapless_new_slr")?(T=T.uM,nq(T.app,"gaplessshortslooprange"),Q=new g.$d(0,Q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(T=T.app.Pd())&&T.addCueRange(Q)):T.setLoopRange({startTimeMs:0,endTimeMs:Q,type:"shortsLoop"}))};
  7205. gog=function(T){var Q=T.Lc();if(!(g.J(Q.getPlayerState(),64)&&T.mF().isLivePlayback&&T.VR.startTimeMs<5E3)){if(T.VR.type==="repeatChapter"){var k,l=(k=zE5(T.Bx()))==null?void 0:k.nB(),v;k=(v=T.getVideoData())==null?void 0:v.NK;l instanceof g.Q7&&k&&(v=k[mJ(k,T.VR.startTimeMs)],l.renderChapterSeekingAnimation(0,v.title));isNaN(Number(T.VR.loopCount))?T.VR.loopCount=0:T.VR.loopCount++;T.VR.loopCount===1&&T.ZV.tj("innertubeCommand",T.getVideoData().goB)}l={I_:"application_loopRangeStart"};if(T.VR.type===
  7206. "clips"||T.VR.type==="shortsLoop")l.seekSource=58;Q.seekTo(T.VR.startTimeMs*.001,l)}};
  7207. e_t=function(T,Q){var k=T.ZV.getAvailablePlaybackRates();Q=Number(Q.toFixed(2));T=k[0];k=k[k.length-1];Q<=T?Q=T:Q>=k?Q=k:(T=Math.floor(Q*100+.001)%5,Q=T===0?Q:Math.floor((Q-T*.01)*100+.001)/100);return Q};
  7208. uG=function(T,Q){Q=T.pA({playerType:Q});if(!Q)return T.CA.T.WG();Q=XU(T,Q);return Kq(T,Q.WG(),Q)};
  7209. Kq=function(T,Q,k){if(T.Xj(k)&&(k=k.getVideoData(),!x7(T))){T=T.Gx;for(var l=g.B(T.S),v=l.next();!v.done;v=l.next())if(v=v.value,k.lC===v.lC){Q+=v.R_/1E3;break}l=Q;T=g.B(T.S);for(v=T.next();!v.done;v=T.next()){v=v.value;if(k.lC===v.lC)break;var L=v.R_/1E3;if(L<Q)l+=v.durationMs/1E3+L-v.X_/1E3;else break}return l}return Q};
  7210. MR5=function(T,Q){var k=T.CA.GP;if(k)return rf(k.getPlayerState());if(T.getVideoData().enableServerStitchedDai&&Q===2){var l;return((l=T.SD)==null?0:xO5(l,T.getCurrentTime()))?T.JM:-1}return Q!==2||T.Xj()?T.JM:T.di};
  7211. WiT=function(T){T.logger.debug("reset for new application playback");P5(T);T.setLoopVideo(!1);T.setLoopRange(null);T.ZV.publish("legacyadtrackingpingreset");T.w6={};T.Bw=[];ddX(T.Rg);if(T.SD){var Q=T.SD,k=T.Lc();k.getPlayerType();Md(Q,!1);OUg(Q);pK6(Q);Q.playback=k}Q=T.Gx;T=T.Lc();T.getPlayerType()!==1&&Rg(Q,"invalidParentVideoPlayerType");mL(Q,!1);BeX(Q);Q.T=T};
  7212. luH=function(T,Q){var k=(Q?Q:T.mF()).dL;T.Rg.tick("ep_pr_r");if(k!=null&&(DdX(T.playlist,k),T.D9))T.playlist.onReady(function(){bG(T,Q)})};
  7213. An=function(T,Q){T.playlist&&(g.od(T.playlist),T.playlist=null);Q&&(T.PG&&(Q.fetch=0),T.playlist=new NkX(T.Hd,Q))};
  7214. Ybb=function(T){var Q,k=Number((Q=T.getVideoData().progressBarEndPosition)==null?void 0:Q.utcTimeMillis)/1E3;!isNaN(k)&&(Q=T.xM())&&(Q-=T.getCurrentTime(),k=(k-Q)*1E3,Q=T.w6.progressEndBoundary,(Q==null?void 0:Q.start)!==k&&(Q&&T.Ec([Q]),k=new g.$d(k,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),T.Lc().addCueRange(k),T.w6.progressEndBoundary=k))};
  7215. zt=function(T,Q){T.logger.debug(function(){return"set external state "+Q});
  7216. var k=T.Pd(),l=k.getPlayerType();if(l!==2||T.Xj()){if(l===2&&T.Xj()||l===5||l===6||l===7)if(Q===-1||Q===0||Q===5)return;if(Q===0){if(T.VR)return;if(k.t_()&&g.G4(T.Hd)){T.playVideo();return}}T.JM!==Q&&(T.JM=Q,T.ZV.Pk("onStateChange",Q))}else T.di!==Q&&(T.di=Q,T.ZV.Pk("onAdStateChange",Q))};
  7217. UGI=function(T,Q,k,l,v){l=l===void 0?Infinity:l;v=v===void 0?0:v;T.logger.debug(function(){return"Enqueuing playerType="+k+" at time="+l+"\n videoId="+Q.videoId});
  7218. var L=T.Pd();k=k||L.getPlayerType();(L=voC(T,k,Q,!0))||(L=Cq(T,k,Q,!0));var q=T.Lc();if(k===2&&q){var Y=L.getVideoData();q.Xx(Y.clientPlaybackNonce,Y.pG||"",Y.breakType||0,Y.uK,Y.videoId||"")}T.wL(L,l,0,v)};
  7219. RkT=function(T,Q,k,l,v){var L=H5(k,Q);T.logger.debug(function(){return"start preload video "+L+", trigger="+v});
  7220. var q=T.Pd(),Y=H5(q.getPlayerType(),q.getVideoData());if(L===Y)return q.I3(!0),Q.dispose(),null;Q.A9=!0;Q=Cq(T,k,Q,!0);k===1&&BB(T.Hd)||Q.I3(!0);T.CA.N.set(L,Q,l||3600);return Q};
  7221. ZKT=function(T,Q,k){var l=LY(Q);return T+"_"+l+"_"+k+"_"+ +(Q.autonav==="1"||Q.autonav===!0)+ +(Q.autoplay==="1"||Q.autoplay===!0||Q.autoplay===1)};
  7222. H5=function(T,Q){return T+"_"+Q.videoId+"_"+Q.lC+"_"+ +Q.isAutonav+ +Q.nU};
  7223. voC=function(T,Q,k,l){var v=H5(Q,k),L=T.CA.N.get(v)||null;if(!L||L.wd())return null;T.CA.N.remove(v);if(g.J(L.getPlayerState(),128))return L.dispose(),null;if(L===T.pA({playerType:Q}))return T.Rg.infoGel({isCacheHit:!0}),L;if((L.getVideoData().oauthToken||k.oauthToken)&&L.getVideoData().oauthToken!==k.oauthToken)return null;Q===1&&(Q=T.Pd().getVideoData(),NY(Q)&&Q.isAd()&&l||P5(T));l||T.l$(L,!0);T.Rg.infoGel({isCacheHit:!0});return L};
  7224. fub=function(T,Q){var k;return Q&&T.Hd.i5&&!((k=T.getVideoData())==null?0:k.backgroundable)};
  7225. GM5=function(T,Q){return fub(T,Q)?(T.eG?T.eG.start():T.t8(),!0):!1};
  7226. tn=function(T,Q,k){Q&&(Q=T.pA({playerType:k}))&&Q===T.Lc()&&(Q.getVideoData().ek=!0)};
  7227. O0=function(T,Q,k){k=k===void 0?1:k;T.logger.debug(function(){return"start cue video, vid "+Q.videoId+", type "+k});
  7228. if(Q.Hk()){var l=Cq(T,k,Q,!1);T.cancelPlayback(4,k);T.l$(l);l.Ij();if(k===1){T.pU(1);if(g.Qk(T.Hd)&&!Ia(Q)){Q.dispose();T.Lc().dispose();return}ooy(T)}T.logger.debug("finish cue video")}else T.logger.debug(function(){return"invalid VideoData in cueVideo"}),Q.dispose(),(l=T.pA({playerType:k}))&&l.dispose(),fX(T.mF())&&k===2&&T.qI()};
  7229. mGT=function(T,Q,k,l,v){Q=SnC(Q,k,l,v);(k=g.Qk(T.Hd)&&!T.Hd.qO)&&!T.PG&&(Q.fetch=0);An(T,Q);g.Qk(T.Hd)&&T.Rg.tick("ep_a_pr_s");if(k&&!T.PG)k=T.mF(),n7X(k,Q).then(function(L){T.D9=!0;luH(T,L)});
  7230. else T.playlist.onReady(function(){bG(T)});
  7231. g.Qk(T.Hd)&&T.Rg.tick("ep_a_pr_r")};
  7232. bG=function(T,Q){var k=g.Qk(T.Hd)&&!T.Hd.qO,l=k&&Q?Q:g.wN(T.playlist);Q=k&&Q?Q:T.getVideoData();l&&(Q.dO&&(T.Hd.ek||T.Hd.NK)||!T.oA?(Q=Q.ek,l=T.Ln(l,1),Q&&tn(T,l)):O0(T,l,1));g.Qk(T.Hd)&&T.Rg.tick("ep_p_l");T.D9=!1;T.ZV.UM("onPlaylistUpdate")};
  7233. EUX=function(T){if(T.playlist&&g.Ln(T.Hd)&&T.FS()){var Q=T.Hd.V("html5_player_autonav_logging");T.nextVideo(!1,Q);return!0}return!1};
  7234. IuI=function(T,Q,k,l,v,L,q){Q={id:Q,namespace:q!=null?q:"appapi"};L==="chapter"?(Q.style=WI.CHAPTER_MARKER,Q.visible=!0):isNaN(v)||(L==="ad"?Q.style=WI.AD_MARKER:(Q.style=WI.TIME_MARKER,Q.color=v),Q.visible=!0);T.cB([new g.$d(k*1E3,l*1E3,Q)],1);return!0};
  7235. hkb=function(T,Q,k,l,v,L){L=L===void 0?!0:L;var q=T.xM();if(!q)return L&&T.getVideoData().isLivePlayback&&T.Bw.push({id:Q,qhe:k,z0O:l}),!1;L=q-T.getCurrentTime();return IuI(T,Q,k-L,l-L,void 0,void 0,v)};
  7236. nq=function(T,Q,k){var l=T.pA({playerType:k});l&&(Q=l.uf(Q),k&&T.getPresentingPlayerType()!==k||pq(T,"cuerangesremoved",Q))};
  7237. seH=function(T){var Q=(0,g.XY)(),k=T.getCurrentTime();T=T.getVideoData();k=1E3*(k-T.startSeconds);T.isLivePlayback&&(k=0);return Q-Math.max(k,0)};
  7238. DN=function(T,Q,k){T.Hd.e6&&(T.cG=Q,Q.muted||ag(T,!1),k&&T.Hd.storeUserVolume&&!T.Hd.t6&&(k={volume:Math.floor(Q.volume),muted:Q.muted},k.unstorable||(g.ri("yt-player-volume",k),g.ri("yt-player-volume",k,2592E3))),SbH(T),k=g.hW&&T.mediaElement&&!T.mediaElement.Cz(),T.Hd.t6&&!k||T.ZV.Pk("onVolumeChange",{muted:Q.muted,volume:Q.volume,unstorable:!T.Hd.storeUserVolume}))};
  7239. SbH=function(T){var Q=T.getVideoData();if(!Q.kh){Q=T.Hd.t6?1:Vwu(Q);var k=T.mediaElement;k.r9(T.cG.muted);try{k.setVolume(T.cG.volume*Q/100)}catch(l){g.rB(new g.Wy("b183742307","multiplier: "+Q+", volume: "+T.cG.volume))}}};
  7240. ag=function(T,Q){Q!==T.Oj&&(T.Oj=Q,T.ZV.UM("onMutedAutoplayChange",Q))};
  7241. ut=function(T){return T.Oj&&T.getVideoData().mutedAutoplay};
  7242. CR5=function(T){var Q=md(!0);return Q&&(Q===T.template.element||T.mediaElement&&Q===T.mediaElement.xB())?Q:null};
  7243. zkf=function(T,Q){var k=window.screen&&window.screen.orientation;if(T.Hd.C&&k&&k.lock&&(!g.hW||!BZg))if(Q){Q=k.type.indexOf("portrait")===0;var l=T.template.getVideoAspectRatio(),v=Q;l<1?v=!0:l>1&&(v=!1);if(!T.cY||v!==Q){k=k.lock(v?"portrait":"landscape");if(k!=null)k["catch"](function(){});
  7244. T.cY=!0}}else T.cY&&(T.cY=!1,k.unlock())};
  7245. pq=function(T,Q,k){T.ZV.publish(Q,k);var l=g.G4(T.Hd)||g.q0(T.Hd)||g.uP(T.Hd);if(k&&l){switch(Q){case "cuerangemarkersupdated":var v="onCueRangeMarkersUpdated";break;case "cuerangesadded":v="onCueRangesAdded";break;case "cuerangesremoved":v="onCueRangesRemoved"}v&&T.ZV.tj(v,k.map(function(L){return{getId:function(){return this.id},
  7246. end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible,markerPositionMs:L.markerPositionMs}}))}};
  7247. W5=function(T,Q,k,l,v,L){k=k===void 0?!0:k;var q=T.pA({playerType:v});if(!q||(q.getPlayerType()!==2||T.Xj(q))&&!g.iO(q.getVideoData())){var Y=T.CA.GP;Y?Y.seekTo(Q,{aj:!k,JI:l,I_:"application",seekSource:L}):(q&&q===T.Lc()&&T.VR&&!Lgt(T,Q)&&T.setLoopRange(null),T.seekTo(Q,k,l,v,L))}};
  7248. XF5=function(T,Q,k,l){k&&(T.u7(),B5(T));k=T.Pd();k.Zm(Q);var v=T.getVideoData(),L={};L.video_id=v.videoId;L.adformat=v.adFormat;v.isLivePlayback||(L.start=k.getCurrentTime(),L.resume="1");v.isLivePlayback&&Kt(v)&&g.ZX(T.Hd)&&(L.live_utc_start=k.xM(),L.resume="1");v.i9&&(L.vvt=v.i9);v.B&&(L.vss_credentials_token=v.B,L.vss_credentials_token_type=v.Yz);v.oauthToken&&(L.oauth_token=v.oauthToken);L.autoplay=1;L.reload_count=v.Gg+1;L.reload_reason=Q;v.FZ&&(L.unplugged_partner_opt_out=v.FZ);v.QE&&(L.ypc_is_premiere_trailer=
  7249. v.QE);v.playerParams&&(L.player_params=v.playerParams);T.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,l);Q==="signature"&&T.SD&&jey(T)};
  7250. wFT=function(T,Q){T.mF().autonavState=Q;g.ri("yt-player-autonavstate",Q);T.ZV.publish("autonavchange",Q)};
  7251. dG5=function(T){var Q=T.getVideoData().kh,k=T.Hd.f_,l=T.isInline()&&!T.getVideoData().L9,v=T.mediaElement;Q||k||l?v.a5():(v.qZ(),DN(T,T.cG))};
  7252. P5=function(T){var Q=xY(T.Bx());Q&&Q.created&&(T.logger.debug("reset ad module"),Q.destroy())};
  7253. x7=function(T){return T.getVideoData().enableServerStitchedDai&&!!T.SD};
  7254. NZ5=function(T,Q){Q.bounds=T.getBoundingClientRect();for(var k=g.B(["display","opacity","visibility","zIndex"]),l=k.next();!l.done;l=k.next())l=l.value,Q[l]=eO(T,l);Q.hidden=!!T.hidden};
  7255. dbX=function(T){var Q=T.webPlayerContextConfig.trustedJsUrl;return Q?Ce(Q).toString():T.webPlayerContextConfig.jsUrl};
  7256. ARu=function(T,Q){var k=T.pA({playerType:1});if(k){if(k.getVideoData().clientPlaybackNonce===Q)return k;if((T=T.Zq.T)&&T.getVideoData().clientPlaybackNonce===Q)return T}return null};
  7257. tdC=function(T){function Q(l){return DQ(LwT(T.TH),function(v){return v.oa(l)})}
  7258. T.Rg.tick("wasm_s");var k=CZg(T.webPlayerContextConfig.wasmModuleUrl,WL6(T.TH)?Q:void 0,T.y7.bind(T));k==null||DQ(k,function(l){T.Rg.tick(l.T?"wasm_fa":"wasm_fw")},function(){T.Rg.tick("wasm_ferr")});
  7259. VnJ(T.Hd,k)};
  7260. bKT=function(T){return T.name==="TypeError"&&T.stack.includes("/s/player/")&&PD()<=105};
  7261. rR5=function(T){return T.isTimeout?"NO_BID":"ERR_BID"};
  7262. cR5=function(){var T=null;c8X().then(function(Q){return T=Q},function(Q){return T=rR5(Q)});
  7263. return T};
  7264. DGX=function(){var T=H4(1E3,"NO_BID");return g.nL(J35([c8X(),T]).kE(rR5),function(){T.cancel()})};
  7265. $7=function(T){return T.Ah?g.Py(g.xq(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
  7266. Jn=function(T){this.player=T;this.L=this.T=1};
  7267. no6=function(T,Q,k,l,v,L){Q.client||(Q.client={});T.player.G().V("h5_remove_url_for_get_ad_break")||(Q.client.originalUrl=k);var q=vD(k),Y=g.Rq(k)?!1:!0;(q||Y)&&typeof Intl!=="undefined"&&(Q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);Y=g.Rq(k)?!1:!0;if(q||Y||l!==""){var U={};k=TO(Y5(l)).split("&");var R=new Map;k.forEach(function(Z){Z=Z.split("=");Z.length>1&&R.set(Z[0].toString(),decodeURIComponent(Z[1].toString()))});
  7268. R.has("bid")&&(U.bid=R.get("bid"));U.params=[];auf.forEach(function(Z){R.has(Z)&&(Z={key:Z,value:R.get(Z)},U.params.push(Z))});
  7269. uFb(T,U);Q.adSignalsInfo=U}Q.client.unpluggedAppInfo||(Q.client.unpluggedAppInfo={});Q.client.unpluggedAppInfo.enableFilterMode=!1;k=v.T.cosver;k!=null&&k!=="cosver"&&(Q.client.osVersion=k);k=v.T.cplatform;k!=null&&k!=="cplatform"&&k!==""&&(Q.client.platform=k);k=v.T.cmodel;k!=null&&k!=="cmodel"&&(Q.client.deviceModel=k);k=v.T.cplayer;k!=null&&k!=="cplayer"&&(Q.client.playerType=k);k=v.T.cbrand;k!=null&&k!=="cbrand"&&(Q.client.deviceMake=k);Q.user||(Q.user={});Q.user.lockedSafetyMode=!1;(v.V("embeds_web_enable_iframe_api_send_full_embed_url")||
  7270. v.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Ln(v)&&MBt(Q,L,T.player.getPlayerState(1))};
  7271. PR5=function(T,Q){var k=!1;if(Q==="")return k;Q.split(",").forEach(function(l){var v={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},q="ACTIVE";l[0]==="!"&&(l=l.substring(1),q="INACTIVE");l=l.split("-");l.length<3||(l[0]in Kgy&&(L.clientName=Kgy[l[0]]),l[1]in xGC&&(L.platform=xGC[l[1]]),L.applicationState=q,L.clientVersion=l.length>2?l[2]:"",v.remoteClient=L,T.remoteContexts?T.remoteContexts.push(v):T.remoteContexts=[v],k=!0)});
  7272. return k};
  7273. tR5=function(T){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in HK5))return!1;T=T.split(RegExp("[:&]"));var Q=HK5.FLAG_AUTO_CAPTIONS_DEFAULT_ON,k="f"+(1+Math.floor(Q/31)).toString();Q=1<<Math.floor(Q%31);for(var l=0,v=T.length;l<v;l++){var L=T[l].split("=");if(L[0]===k&&parseInt("0x"+L[1],16)&Q)return!0}return!1};
  7274. uFb=function(T,Q){T=T.player.G();if(g.s8(T)||BB(T)){T=g.$i("INNERTUBE_CONTEXT");var k,l;(T==null?0:(k=T.adSignalsInfo)==null?0:k.advertisingId)&&typeof(T==null?void 0:(l=T.adSignalsInfo)==null?void 0:l.limitAdTracking)!=="undefined"&&(Q.advertisingId=T.adSignalsInfo.advertisingId,Q.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Q.limitAdTracking=T.adSignalsInfo.limitAdTracking)}};
  7275. EoJ=function(T,Q,k,l,v){var L=k.DRIFT_FROM_HEAD_MS&&!Number.isNaN(k.DRIFT_FROM_HEAD_MS)?Math.trunc(k.DRIFT_FROM_HEAD_MS):0,q=OK5.exec(Q);q=q!=null&&q.length>=2?q[1]:"";var Y=pF5.test(Q),U=Wgb.exec(Q);U=U!=null&&U.length>=2?U[1]:"";var R=$GH.exec(Q);R=R!=null&&R.length>=2&&!Number.isNaN(Number(R[1]))?Number(R[1]):1;var Z=JRH.exec(Q);Z=Z!=null&&Z.length>=2?Z[1]:"0";var f=U8(T.player.G().fz),G=T.player.getVideoData(1),m=g.Ee(G.Bd,!0),I="BISCOTTI_ID"in k?k.BISCOTTI_ID:"";no6(T,m,Q,I.toString(),T.player.G(),
  7276. G);G={splay:!1,lactMilliseconds:k.LACT.toString(),playerHeightPixels:Math.trunc(k.P_H),playerWidthPixels:Math.trunc(k.P_W),vis:Math.trunc(k.VIS),signatureTimestamp:20297,autonavState:$7(T.player.G())};l&&(l={},PR5(l,k.YT_REMOTE)&&(G.mdxContext=l));if(l=ek5.includes(f)?void 0:g.uC("PREF")){for(var z=l.split(RegExp("[:&]")),w=0,r=z.length;w<r;w++){var A=z[w].split("=");if((A[0].toUpperCase()==="SML"||A[0].toUpperCase()==="GSML")&&A.length>1&&A[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}G.autoCaptionsDefaultOn=
  7277. tR5(l)}Q=Fg5.exec(Q);(Q=Q!=null&&Q.length>=2?Q[1]:"")&&U&&(m.user.credentialTransferTokens=[{token:Q,scope:"VIDEO"}]);Q={contentPlaybackContext:G};q={adBlock:Math.trunc(k.AD_BLOCK),params:q,breakIndex:R,breakPositionMs:Z,clientPlaybackNonce:k.CPN,topLevelDomain:f,isProxyAdTagRequest:Y,context:m,adSignalsInfoString:TO(Y5(I.toString())),overridePlaybackContext:Q};v!==void 0&&(q.cueProcessedMs=Math.round(v).toString());U&&(q.videoId=U);k.LIVE_TARGETING_CONTEXT&&(q.liveTargetingParams=k.LIVE_TARGETING_CONTEXT);
  7278. k.AD_BREAK_LENGTH&&(q.breakLengthMs=Math.trunc(k.AD_BREAK_LENGTH*1E3).toString());L&&(q.driftFromHeadMs=L.toString());q.currentMediaTimeMs=Math.round(T.player.getCurrentTime(1)*1E3);(T=T.player.getGetAdBreakContext())&&(q.getAdBreakContext=T);return q};
  7279. yRH=function(){Jn.apply(this,arguments)};
  7280. iKf=function(T,Q,k,l,v){var L=k.Bm;var q=k.qV;var Y=T.player.G().Sf,U=0;k.cueProcessedMs&&q&&!L&&(k=q.end-q.start,k>0&&(U=Math.floor(k/1E3)));var R={AD_BLOCK:v,AD_BREAK_LENGTH:L?L.bf:U,AUTONAV_STATE:$7(T.player.G()),CA_TYPE:"image",CPN:T.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:T.player.As()*1E3,LACT:Bd(),LIVE_INDEX:L?T.L++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:q?Math.round(q.start/1E3):0,MIDROLL_POS_MS:q?Math.round(q.start):0,VIS:T.player.getVisibilityState(),
  7281. P_H:T.player.Hx().J9().height,P_W:T.player.Hx().J9().width,YT_REMOTE:Y?Y.join(","):""},Z=M2(gV);Object.keys(Z).forEach(function(f){Z[f]!=null&&(R[f.toUpperCase()]=Z[f].toString())});
  7282. l!==""&&(R.BISCOTTI_ID=l);l={};q2(Q)&&(l.sts="20297",(T=T.player.G().forcedExperiments)&&(l.forced_experiments=T));return oU(g.Ae(Q,R),l)};
  7283. VRC=function(T,Q){var k=T.player.G(),l,v=(l=T.player.getVideoData(1))==null?void 0:l.oauthToken;return g.rj(k,v).then(function(L){if(L&&Lh()){var q=lf();oR(q,L)}return g.uU(T.player.HG(q),Q,"/youtubei/v1/player/ad_break").then(function(Y){return Y})})};
  7284. TPf=function(T){this.Vq=T};
  7285. Qk5=function(T){this.U=T};
  7286. jkg=function(T){this.Vq=T};
  7287. l$f=function(T){g.x.call(this);this.T=T;this.tB=kit(this)};
  7288. kit=function(T){var Q=new cuy(T.T.yp);g.P(T,Q);T=[new TPf(T.T.Vq),new Qk5(T.T.U),new jkg(T.T.Vq),new sa(T.T.O1,T.T.c5),new CT,new X2(T.T.Fj,T.T.Js,T.T.Vq),new S6,new h6];T=g.B(T);for(var k=T.next();!k.done;k=T.next())DEy(Q,k.value);T=g.B(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(k=T.next();!k.done;k=T.next())BQ(Q,k.value,function(){});
  7289. return Q};
  7290. e5=function(T){var Q=T.l9,k=T.Qq;T=T.dc;var l=new FSb,v={mx:new bDI(Q.get(),k),Qq:k};return{A3:new zE(k,T,Q,v),context:v,QD:l}};
  7291. FU=function(T,Q,k,l,v){g.x.call(this);this.S=Q;this.UK=k;this.l9=l;this.DC=v;this.listeners=[];var L=new wi(this);g.P(this,L);L.Z(T,"internalAbandon",this.hek);this.addOnDisposeCallback(function(){g.N5(L)})};
  7292. E0=function(T){this.U=T;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.N=!0;this.S=this.L=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
  7293. ozu=function(T){T.contentCpn=null;T.adCpn=null;T.videoId=null;T.adVideoId=null;T.adFormat=null;T.Y="AD_PLACEMENT_KIND_UNKNOWN";T.actionType="unknown_type";T.L=!1;T.S=!1};
  7294. vzy=function(T,Q){T=g.B(Q);for(Q=T.next();!Q.done;Q=T.next())if((Q=Q.value.renderer)&&(Q.instreamVideoAdRenderer||Q.linearAdSequenceRenderer||Q.sandwichedLinearAdRenderer||Q.instreamSurveyAdRenderer)){dS("ad_i");g.NL({isMonetized:!0});break}};
  7295. LOf=function(T){var Q;(Q=T.U.getVideoData(1))!=null&&Q.qO&&(T.S=!1,Q={},T.T&&T.videoId&&(Q.cttAuthInfo={token:T.T,videoId:T.videoId}),At("video_to_ad",Q))};
  7296. YJ=function(T){T.S=!1;var Q={};T.T&&T.videoId&&(Q.cttAuthInfo={token:T.T,videoId:T.videoId});At("ad_to_video",Q);qKt(T)};
  7297. qKt=function(T){if(T.L)if(T.Y==="AD_PLACEMENT_KIND_START"&&T.actionType==="video_to_ad")zC("video_to_ad");else{var Q={adBreakType:tB(T.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:T.videoStreamType};T.actionType==="ad_to_video"?(T.contentCpn&&(Q.targetCpn=T.contentCpn),T.videoId&&(Q.targetVideoId=T.videoId)):(T.adCpn&&(Q.targetCpn=T.adCpn),T.adVideoId&&(Q.targetVideoId=T.adVideoId));T.adFormat&&(Q.adType=T.adFormat);T.contentCpn&&
  7298. (Q.clientPlaybackNonce=T.contentCpn);T.videoId&&(Q.videoId=T.videoId);T.adCpn&&(Q.adClientPlaybackNonce=T.adCpn);T.adVideoId&&(Q.adVideoId=T.adVideoId);g.NL(Q,T.actionType);T.U.G().experiments.Wd("html5_ads_csi_qoes")&&(Q=T.U.jO(T.actionType==="ad_to_video"?1:2),Q=(0,g.XY)()-1E3*Q,rS("qoes",Q,T.actionType))}};
  7299. yQ=function(T){g.x.call(this);this.U=T;this.T=new Map;this.S=new wi(this);g.P(this,this.S);this.S.Z(this.U,g.ej("ad"),this.onCueRangeEnter,this);this.S.Z(this.U,g.Ft("ad"),this.onCueRangeExit,this)};
  7300. gzu=function(T,Q,k,l,v,L,q){g.$d.call(this,Q,k,{id:T,namespace:"ad",priority:v,visible:l,associatedClipId:L,markerPositionMs:q})};
  7301. iG=function(T){this.U=T};
  7302. M95=function(T,Q){T.U.cueVideoByPlayerVars(Q,2)};
  7303. VQ=function(T){this.U=T};
  7304. Tw=function(T){this.U=T;g.jj(this.U.G().experiments,"tv_pacf_logging_sample_rate")};
  7305. YKC=function(T){return KF(T,"html5_ssap_play_cached_preroll")};
  7306. Y9=function(T,Q){Q=Q===void 0?!1:Q;return T.U.G().V("html5_ssap_force_ads_ctmp")?!0:(Q||T.U.G().J3())&&T.U.G().V("html5_ssap_pacf_qoe_ctmp")};
  7307. Qs=function(T){var Q;return(Q=T.U.getVideoData(1)==null?void 0:!1)!=null?Q:!1};
  7308. KF=function(T,Q){return T.U.G().V(Q)};
  7309. Uk6=function(T){return T.U.G().V("substitute_ad_cpn_macro_in_ssdai")};
  7310. tC=function(T){var Q,k,l;return((Q=T.U.getVideoData(1).getPlayerResponse())==null?void 0:(k=Q.playerConfig)==null?void 0:(l=k.daiConfig)==null?void 0:l.enableServerStitchedDai)||!1};
  7311. t6I=function(T){return T.U.G().V("html5_enable_vod_slar_with_notify_pacf")};
  7312. Rsy=function(T){return T.U.G().V("html5_recognize_predict_start_cue_point")};
  7313. sg=function(T){return T.U.G().experiments.Wd("enable_desktop_player_underlay")};
  7314. Z4y=function(T){return T.U.G().experiments.Wd("html5_load_empty_player_in_media_break_sub_lra")};
  7315. Tn=function(T){return T.U.G().experiments.Wd("html5_load_ads_instead_of_cue")};
  7316. QG=function(T){return T.U.G().experiments.Wd("html5_preload_ads")};
  7317. f$6=function(T){return T.U.G().experiments.Wd("should_ignore_cuepoints_during_lifa_preroll")};
  7318. Ir=function(T){return T.U.G().experiments.Wd("enable_ads_control_flow_deterministic_id_generation")};
  7319. Giu=function(T){return T.U.G().experiments.Wd("enable_desktop_discovery_video_abandon_pings")||g.s8(T.U.G())};
  7320. mkg=function(T){return T.U.G().experiments.Wd("enable_progres_commands_lr_feeds")};
  7321. Og=function(T){return T.U.G().experiments.Wd("html5_cuepoint_identifier_logging")};
  7322. FBf=function(T){T=T.U.getVideoData(1);return!!T&&T.V("html5_preload_first_vod_video_ad")&&!T.isDaiEnabled()&&!T.isLivePlayback};
  7323. I$t=function(T){return T.U.G().experiments.Wd("html5_ssdai_enable_media_end_cue_range")};
  7324. hst=function(T){switch(T){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
  7325. case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
  7326. skt=function(){g.ox.call(this);var T=this;this.T={};this.addOnDisposeCallback(function(){for(var Q=g.B(Object.keys(T.T)),k=Q.next();!k.done;k=Q.next())delete T.T[k.value]})};
  7327. jD=function(){if(SKI===null){SKI=new skt;SC(Fn).S="b";var T=SC(Fn),Q=ts(T)=="h"||ts(T)=="b",k=!(vf(),!1);Q&&k&&(T.N=!0,T.B=new UsX)}return SKI};
  7328. C6f=function(T,Q,k){T.T[Q]=k};
  7329. BPX=function(T){switch(T){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
  7330. case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip";
  7331. case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
  7332. kF=function(T,Q,k){this.UK=T;this.U=Q;this.Qq=k;this.S=new Set;this.T=new Map;jD().subscribe("adactiveviewmeasurable",this.GM,this);jD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.KH,this);jD().subscribe("adviewableimpression",this.PV,this);jD().subscribe("adaudioaudible",this.bq,this);jD().subscribe("adaudiomeasurable",this.IA,this)};
  7333. ow=function(T,Q,k){var l=k.Tm,v=k.n6,L=k.listener,q=k.JZ;k=k.yl===void 0?!1:k.yl;if(T.T.has(Q))MH("Unexpected registration of layout in LidarApi");else{if(q){if(T.S.has(q))return;T.S.add(q)}T.T.set(Q,L);Xl(vf().sH,"fmd",1);CVT(SC(Fn),l);var Y=k?Q:void 0;C6f(jD(),Q,{pm:function(){if(!v)return{};var U=T.U.getPresentingPlayerType(!0),R;return(R=T.U.getVideoData(U))!=null&&R.isAd()?{currentTime:T.UK.get().getCurrentTimeSec(U,!1,Y),duration:v,isPlaying:lI(T.UK.get(),U).isPlaying(),isVpaid:!1,isYouTube:!0,
  7334. volume:T.UK.get().isMuted()?0:T.UK.get().getVolume()/100}:{}}})}};
  7335. vb=function(T,Q){T.T.has(Q)?(T.T.delete(Q),delete jD().T[Q]):MH("Unexpected unregistration of layout in LidarApi")};
  7336. zsH=function(T,Q){if(T.U.isLifaAdPlaying()){var k=T.U.IM(!0,!0);T.mU(Q,k.width*.5*1.1,k.height*.25*1.1,k.width*.5*.9,k.height*.5*.9)}};
  7337. dk5=function(T,Q,k){var l={};XYg(T,l,Q,k);wYT(l);l.LACT=L_(function(){return Bd().toString()});
  7338. l.VIS=L_(function(){return T.getVisibilityState().toString()});
  7339. l.SDKV="h.3.0";l.VOL=L_(function(){return T.isMuted()?"0":Math.round(T.getVolume()).toString()});
  7340. l.VED="";return l};
  7341. NPb=function(T,Q){var k={};if(Q||!T||!T.kind)return k;if(T.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||T.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!T.adTimeOffset||!T.adTimeOffset.offsetStartMilliseconds)return g.bA(Error("malformed AdPlacementConfig")),k;k.MIDROLL_POS=L_(c2(Math.round(aT(T.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else k.MIDROLL_POS=L_(c2("0"));return k};
  7342. L_=function(T){return{toString:function(){return T()}}};
  7343. ADI=function(T,Q,k){function l(Y,U){(U=k[U])&&(L[Y]=U)}
  7344. function v(Y,U){(U=k[U])&&(L[Y]=q(U))}
  7345. if(!k||g.Rs(k))return T;var L=Object.assign({},T),q=Q?encodeURIComponent:function(Y){return Y};
  7346. v("DV_VIEWABILITY","doubleVerifyViewability");v("IAS_VIEWABILITY","integralAdsViewability");v("MOAT_INIT","moatInit");v("MOAT_VIEWABILITY","moatViewability");l("GOOGLE_VIEWABILITY","googleViewability");l("VIEWABILITY","viewability");return L};
  7347. XYg=function(T,Q,k,l){Q.CPN=L_(function(){var v;(v=T.getVideoData(1))?v=v.clientPlaybackNonce:(g.rB(Error("Video data is null.")),v=null);return v});
  7348. Q.AD_MT=L_(function(){if(l!=null)var v=l;else{var L=k;T.G().V("html5_ssap_use_cpn_to_get_time")||(L=void 0);if(T.G().V("enable_h5_shorts_ad_fill_ad_mt_macro")||T.G().V("enable_desktop_discovery_pings_ad_mt_macro")||g.s8(T.G())){var q=T.getPresentingPlayerType(!0),Y;v=((Y=T.getVideoData(q))==null?0:Y.isAd())?b45(T,q,L):0}else v=b45(T,2,L)}return rDT(v)});
  7349. Q.MT=L_(function(){return rDT(T.getCurrentTime(1,!1))});
  7350. Q.P_H=L_(function(){return T.Hx().J9().height.toString()});
  7351. Q.P_W=L_(function(){return T.Hx().J9().width.toString()});
  7352. Q.PV_H=L_(function(){return T.Hx().getVideoContentRect().height.toString()});
  7353. Q.PV_W=L_(function(){return T.Hx().getVideoContentRect().width.toString()})};
  7354. rDT=function(T){return Math.round(Math.max(0,T*1E3)).toString()};
  7355. wYT=function(T){T.CONN=L_(c2("0"));T.WT=L_(function(){return Date.now().toString()})};
  7356. b45=function(T,Q,k){return k!==void 0?T.getCurrentTime(Q,!1,k):T.getCurrentTime(Q,!1)};
  7357. cDt=function(){};
  7358. DkT=function(T,Q,k,l,v){var L,q,Y,U,R,Z,f,G,m,I,z,w,r;g.a(function(A){switch(A.S){case 1:L=!!Q.scrubReferrer;q=g.Ae(Q.baseUrl,ADI(k,L,l));Y={};if(!Q.headers){A.Ym(2);break}U=T.Y();if(!U.T){R=U.getValue();A.Ym(3);break}return g.c(A,U.T,4);case 4:R=A.T;case 3:Z=R;f=g.B(Q.headers);for(G=f.next();!G.done;G=f.next())switch(m=G.value,m.headerType){case "VISITOR_ID":g.$i("VISITOR_DATA")&&(Y["X-Goog-Visitor-Id"]=g.$i("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.$i("EOM_VISITOR_DATA")&&(Y["X-Goog-EOM-Visitor-Id"]=
  7359. g.$i("EOM_VISITOR_DATA"));break;case "USER_AUTH":Z&&(Y.Authorization="Bearer "+Z);break;case "PLUS_PAGE_ID":(I=T.N())&&(Y["X-Goog-PageId"]=I);break;case "AUTH_USER":z=T.T();!Z&&z&&(Y["X-Goog-AuthUser"]=z);break;case "DATASYNC_ID":if(w=void 0,(w=T.L())==null?0:w.Wd("enable_datasync_id_header_in_web_vss_pings"))r=T.S(),vD(q)&&g.$i("LOGGED_IN")&&r&&(Y["X-YouTube-DataSync-Id"]=r)}"X-Goog-EOM-Visitor-Id"in Y&&"X-Goog-Visitor-Id"in Y&&delete Y["X-Goog-Visitor-Id"];case 2:g.uM(q,void 0,L,Object.keys(Y).length!==
  7360. 0?Y:void 0,"",!0,v),g.BT(A)}})};
  7361. a$J=function(T,Q,k,l,v){this.Y=T;this.N=Q;this.T=k;this.S=l;this.L=v};
  7362. u75=function(T,Q){this.T=T;this.Qq=Q};
  7363. qC=function(T,Q,k,l,v,L,q){var Y=Y===void 0?new a$J(function(){var U=T.G(),R=T.getVideoData(1);return g.rj(U,R?g.YD(R):"")},function(){return T.G().pageId},function(){return T.G().hj},function(){var U;
  7364. return(U=T.G().datasyncId)!=null?U:""},function(){return T.G().experiments}):Y;
  7365. this.U=T;this.S=Q;this.kB=k;this.l9=l;this.A3=v;this.Qq=L;this.QD=q;this.Y=Y;this.BP=null;this.T=new Map;this.L=new u75(Y,this.Qq)};
  7366. KOT=function(T,Q,k,l,v){var L=i1(T.S.get(),k);L?(k=mj(T,nz5(L),L,void 0,void 0,l),Q.hasOwnProperty("baseUrl")?T.Y.send(Q,k):T.L.send(Q,k,{},v)):MH("Trying to ping from an unknown layout",void 0,void 0,{layoutId:k})};
  7367. PAu=function(T,Q,k,l,v,L){l=l===void 0?[]:l;var q=i1(T.S.get(),Q);if(q){var Y=T.kB.get().Fw(Q,k),U=mj(T,nz5(q),q,v,L);l.forEach(function(R,Z){R.baseUrl&&(T.L.send(R.baseUrl,U,Y,R.attributionSrcMode),R.serializedAdPingMetadata&&T.A3.M3("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,q,new Iyt(R,Z),void 0,void 0,q.adLayoutLoggingData))})}else MH("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Q,
  7368. trackingType:k})};
  7369. MP=function(T,Q){T.U.sendVideoStatsEngageEvent(Q,void 0,2)};
  7370. hQ=function(T,Q){g.LM("adsClientStateChange",Q)};
  7371. xk5=function(T,Q){T.T.has(Q.v0())?MH("Trying to register an existing AdErrorInfoSupplier."):T.T.set(Q.v0(),Q)};
  7372. P6X=function(T,Q){T.T.delete(Q.v0())||MH("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
  7373. Cw=function(T,Q,k){typeof k==="string"?T.U.getVideoData(1).HW(Q,k):T.U.getVideoData(1).T9(Q,k)};
  7374. nz5=function(T){var Q=FN(T.clientMetadata,"metadata_type_ad_placement_config");T=FN(T.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Q,F4:T}};
  7375. mj=function(T,Q,k,l,v,L){var q=k?H45(T):{},Y=k?t9g(T,k.layoutId):{},U=O4I(T),R,Z=v!=null?v:(R=Kd(T.l9.get(),2))==null?void 0:R.clientPlaybackNonce;v=void 0;if(k){var f;if((f=T.QD.T.get(k.layoutId))==null?0:f.yl)v=k.layoutId}f={};T=Object.assign({},dk5(T.U,v,l),NPb(Q.adPlacementConfig,(k==null?void 0:k.renderingContent)!==void 0),Y,q,U,(f.FINAL=L_(function(){return"1"}),f.AD_CPN=L_(function(){return Z||""}),f));
  7376. (k==null?void 0:k.renderingContent)!==void 0||(T.SLOT_POS=L_(function(){return(Q.F4||0).toString()}));
  7377. k={};L=Object.assign({},T,L);T=g.B(Object.values(pYT));for(l=T.next();!l.done;l=T.next())l=l.value,q=L[l],q!=null&&q.toString()!=null&&(k[l]=q.toString());return k};
  7378. H45=function(T){var Q={},k,l=(k=T.BP)==null?void 0:k.l8/1E3;l!=null&&(Q.SURVEY_ELAPSED_MS=L_(function(){return Math.round(l*1E3).toString()}));
  7379. Q.SURVEY_LOCAL_TIME_EPOCH_S=L_(function(){return Math.round(Date.now()/1E3).toString()});
  7380. return Q};
  7381. t9g=function(T,Q){T=T.T.get(Q);if(!T)return{};T=T.sL();if(!T)return{};Q={};return Q.YT_ERROR_CODE=T.Wr.toString(),Q.ERRORCODE=T.GU.toString(),Q.ERROR_MSG=T.errorMessage,Q};
  7382. O4I=function(T){var Q={},k=T.U.getVideoData(1);Q.ASR=L_(function(){var l;return(l=k==null?void 0:k.Ek)!=null?l:null});
  7383. Q.EI=L_(function(){var l;return(l=k==null?void 0:k.eventId)!=null?l:null});
  7384. return Q};
  7385. gY=function(T,Q,k){g.x.call(this);this.U=T;this.fU=Q;this.Qq=k;this.listeners=[];this.YS=null;this.t$=new Map;Q=new g.Bj(this);g.P(this,Q);Q.Z(T,"videodatachange",this.YM9);Q.Z(T,"serverstitchedvideochange",this.vce);this.Vh=Kd(this)};
  7386. Kd=function(T,Q){var k=T.U.getVideoData(Q);return k?T.pK(k,Q||T.U.getPresentingPlayerType(!0)):null};
  7387. WOu=function(T,Q,k){var l=T.pK(Q,k);T.Vh=l;T.listeners.forEach(function(v){v.Os(l)})};
  7388. $k5=function(T){switch(T){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}};
  7389. MC=function(T,Q,k){g.x.call(this);this.U=T;this.l9=Q;this.Qq=k;this.listeners=[];this.KQ=[];this.T=function(){MH("Called 'doUnlockPreroll' before it's initialized.")};
  7390. Q=new wi(this);k=new g.Bj(this);g.P(this,k);g.P(this,Q);Q.Z(T,"progresssync",this.Xhe);Q.Z(T,"presentingplayerstatechange",this.aPj);Q.Z(T,"fullscreentoggled",this.onFullscreenToggled);Q.Z(T,"onVolumeChange",this.onVolumeChange);Q.Z(T,"minimized",this.Gw);Q.Z(T,"overlayvisibilitychange",this.zk);Q.Z(T,"shortsadswipe",this.gC);Q.Z(T,"resize",this.zx);k.Z(T,g.ej("appad"),this.Hg)};
  7391. YF=function(T){Qs(T.Qq.get())||T.T()};
  7392. JDf=function(T,Q){T.KQ=T.KQ.filter(function(k){return k!==Q})};
  7393. Um=function(T,Q,k){return T.getCurrentTimeSec(Q,k)};
  7394. Rw=function(T,Q){var k;Q=(k=T.l9.get().t$.get(Q))!=null?k:null;if(Q===null)return MH("Expected ad video start time on playback timeline"),0;T=T.U.getCurrentTime(2,!0);return T<Q?0:T-Q};
  7395. lI=function(T,Q){return T.U.getPlayerStateObject(Q)};
  7396. esC=function(T){var Q=T.U.Hx().J9();T=T.U.IM(!0,!0);return Q.height-(T.height+T.top)};
  7397. FO5=function(T){T.U.cueVideoByPlayerVars({videoId:"empty_video"},2)};
  7398. qeJ=function(T,Q){var k=T.U.G();g.vB(k)||k.controlsType!=="3"||T.U.Hx().qP(Q)};
  7399. Zp=function(T,Q){g.oF(T.U.getRootNode(),Q)};
  7400. f_=function(T,Q){g.Lb(T.U.getRootNode(),Q)};
  7401. Ez5=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)});
  7402. g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)});
  7403. g.P(this,Y);var U=bh(function(){return new Eg});
  7404. g.P(this,U);l=bh(function(){return new ew(T)});
  7405. g.P(this,l);var R=bh(function(){return new sn(q,Y,L.Qq)});
  7406. g.P(this,R);var Z=bh(function(){return new Xv});
  7407. g.P(this,Z);this.er=bh(function(){return new cI(v)});
  7408. g.P(this,this.er);this.eV=bh(function(){return new E0(Q)});
  7409. g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)});
  7410. g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)});
  7411. g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)});
  7412. g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)});
  7413. g.P(this,this.Qq);var f=bh(function(){return new kd(L.Qq)});
  7414. g.P(this,f);var G=bh(function(){return new K1(q,R,Y,L.Qq,f,null,null,null,null)});
  7415. g.P(this,G);this.l9=bh(function(){return new gY(Q,Z,L.Qq)});
  7416. g.P(this,this.l9);var m=e5({l9:this.l9,Qq:this.Qq,dc:f}),I=m.context,z=m.QD;this.A3=m.A3;this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)});
  7417. g.P(this,this.UK);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)});
  7418. g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,z)});
  7419. g.P(this,this.Vq);this.Vp=new JC(l,G,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var w=new FU(Q,this.Vp,this.UK,this.l9);this.Ki=bh(function(){return w});
  7420. this.nH=w;this.qK=new Fu(l,R,this.Xk,this.Ki,I);g.P(this,this.qK);this.sM=new l1(this.Qq,l,R,G,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.Df={g9:new Map,Vo:new Map,Fm:new Map,y$:new Map,Em:new Map};this.listeners=[];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:{xO:function(){}},
  7421. O1:U.get(),Fj:this.l9.get()}};
  7422. Gw=function(T,Q){g.x.call(this);this.Tz=Q;this.Tz.get().addListener(this)};
  7423. mw=function(T){this.T=T};
  7424. yD5=function(T,Q){if(!T)return{yh:[],adSlots:[],Oi:!0,ssdaiAdsConfig:void 0};T.trackingParams&&i8(T.trackingParams);if(T.adThrottled)return{yh:[],adSlots:[],Oi:!0,ssdaiAdsConfig:void 0};var k,l=(k=T.adSlots)!=null?k:[],v;k=(v=T.playerAds)!=null?v:[];if(!(k&&k.length||l.length))return{yh:[],adSlots:l,Oi:!1,ssdaiAdsConfig:void 0};v=k.map(function(q){return q.adPlacementRenderer}).filter(function(q){return!(!q||!q.renderer)});
  7425. if(!v.length&&!l.length)return{yh:[],adSlots:l,Oi:!1,ssdaiAdsConfig:void 0};if(Q.end>0){var L=Q.end.toString();v.forEach(function(q){(q=q.config&&q.config.adPlacementConfig)&&q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&q.adTimeOffset&&q.adTimeOffset.offsetEndMilliseconds==="-1"&&q.adTimeOffset.offsetEndMilliseconds!==L&&(q.adTimeOffset.offsetEndMilliseconds=L)});
  7426. l.map(function(q){return g.t(q,oA)}).forEach(function(q){var Y;
  7427. (q=q==null?void 0:(Y=q.slotEntryTrigger)==null?void 0:Y.mediaTimeRangeTrigger)&&q.offsetEndMilliseconds==="-1"&&(q.offsetEndMilliseconds=L)})}return{yh:v,
  7428. adSlots:l,Oi:!1,ssdaiAdsConfig:T.ssdaiAdsConfig}};
  7429. Iw=function(T){g.x.call(this);this.U=T;this.listeners=[];this.T=new wi(this);g.P(this,this.T);this.T.Z(this.U,"aduxclicked",this.onAdUxClicked);this.T.Z(this.U,"aduxmouseover",this.P6);this.T.Z(this.U,"aduxmouseout",this.GD);this.T.Z(this.U,"muteadaccepted",this.RHj)};
  7430. i4f=function(T,Q,k){Q=g.IQ(Q,function(l){return new $56(l,k,l.id)});
  7431. T.U.tj("onAdUxUpdate",Q)};
  7432. hY=function(T,Q){T=g.B(T.listeners);for(var k=T.next();!k.done;k=T.next())Q(k.value)};
  7433. sm=function(T,Q){this.S=T;this.L=Q===void 0?!1:Q;this.T={}};
  7434. V95=function(T,Q){var k=T.startSecs+T.bf;k=k<=0?null:k;if(k===null)return null;switch(T.event){case "start":case "continue":case "stop":break;case "predictStart":if(Q)break;return null;default:return null}Q=Math.max(T.startSecs,0);return{eh:new Cb(Q,k),hm:new M6(Q,k-Q,T.context,T.identifier,T.event,T.T)}};
  7435. T61=function(){this.T=[]};
  7436. nXI=function(T,Q,k){var l=g.OA(T.T,Q);if(l>=0)return Q;Q=-l-1;return Q>=T.T.length||T.T[Q]>k?null:T.T[Q]};
  7437. SD=function(T,Q,k){g.x.call(this);this.U=T;this.Qq=Q;this.Vq=k;this.listeners=[];this.Y=!1;this.DF=[];this.T=null;this.N=new sm(this,Rsy(Q.get()));this.L=new T61;this.S=null};
  7438. QI9=function(T,Q){T.DF.push(Q);for(var k=!1,l=g.B(T.listeners),v=l.next();!v.done;v=l.next())k=v.value.mI(Q)||k;T.Y=k;Og(T.Qq.get())&&Cw(T.Vq.get(),"onci","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs+";cbi."+k)};
  7439. k5m=function(T,Q){hQ(T.Vq.get(),{cuepointTrigger:{event:jIJ(Q.event),cuepointId:Q.identifier,totalCueDurationMs:Q.bf*1E3,playheadTimeMs:Q.T,cueStartTimeMs:Q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:T.U.getVideoData(1).clientPlaybackNonce}})};
  7440. jIJ=function(T){switch(T){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Uk(T,"Unexpected cuepoint event")}};
  7441. C_=function(T){this.U=T};
  7442. Bb=function(T){this.U=T};
  7443. lHd=function(T){switch(T){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Uk(T,"unknown transitionReason")}};
  7444. zw=function(){g.x.apply(this,arguments);this.ICB=new Map};
  7445. obW=function(T){this.U=T};
  7446. vbT=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)});
  7447. g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)});
  7448. g.P(this,Y);var U=bh(function(){return new Eg});
  7449. g.P(this,U);var R=bh(function(){return new ew(T)});
  7450. g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)});
  7451. g.P(this,Z);var f=bh(function(){return new Xv});
  7452. g.P(this,f);this.h6=bh(function(){return new Iw(Q)});
  7453. g.P(this,this.h6);this.er=bh(function(){return new cI(v)});
  7454. g.P(this,this.er);this.eV=bh(function(){return new E0(Q)});
  7455. g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)});
  7456. g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)});
  7457. g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)});
  7458. g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)});
  7459. g.P(this,this.Qq);var G=bh(function(){return new mw(l)});
  7460. g.P(this,G);var m=bh(function(){return new kd(L.Qq)});
  7461. g.P(this,m);this.Og=bh(function(){return new C_(Q)});
  7462. g.P(this,this.Og);this.Tz=bh(function(){return new uh});
  7463. g.P(this,this.Tz);this.l9=bh(function(){return new gY(Q,f,L.Qq)});
  7464. g.P(this,this.l9);var I=e5({l9:this.l9,Qq:this.Qq,dc:m}),z=I.context,w=I.QD;this.A3=I.A3;this.DC=bh(function(){return new SD(Q,L.Qq,L.Vq)});
  7465. g.P(this,this.DC);this.iC=bh(function(){return new Bb(Q)});
  7466. g.P(this,this.iC);this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)});
  7467. g.P(this,this.UK);this.B1=bh(function(){return new zw});
  7468. g.P(this,this.B1);I=bh(function(){return new K1(q,Z,Y,L.Qq,m,"SLOT_TYPE_ABOVE_FEED",L.UK,L.zP,L.yy)});
  7469. g.P(this,I);this.q_=bh(function(){return new nF(L.Qq)});
  7470. this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)});
  7471. g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,w)});
  7472. g.P(this,this.Vq);this.yE=new $N(Wh,XX,function(A,D,K,O){return hC(Y.get(),A,D,K,O)},R,Z,Y,m,this.Qq,this.l9);
  7473. g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var r=new FU(Q,this.Vp,this.UK,this.l9,this.DC);this.Ki=bh(function(){return r});
  7474. this.nH=r;this.zP=new Hh(R,Z,this.Ki,this.DC,this.UK,this.Qq,this.Vq,this.iC);g.P(this,this.zP);this.qK=new Fu(R,Z,this.Xk,this.Ki,z);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK,L.iC)});
  7475. g.P(this,this.N1);this.VU=bh(function(){return new jB});
  7476. g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.xf=new or(T);g.P(this,this.xf);this.yD=new LQ(T,this.Ki,z);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,z);g.P(this,this.gw);this.xH=new gq(T,this.l9);g.P(this,this.xH);this.yy=new Un(T,this.DC,this.UK,this.Vq,this.Ki,this.zP);g.P(this,this.yy);this.CG=new MZ(T);g.P(this,this.CG);this.ZC=new GE(T);g.P(this,this.ZC);this.M1=new YS(T);g.P(this,this.M1);this.Vt=new fQ(T);g.P(this,
  7477. this.Vt);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN});
  7478. g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)});
  7479. g.P(this,this.z0);this.Fe=bh(function(){return new v8T(L.h6,L.Vq,T,U,L.kB)});
  7480. g.P(this,this.Fe);this.Bg=bh(function(){return new Pk(L.sM,R,q)});
  7481. g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)});
  7482. g.P(this,this.JW);this.Hc=bh(function(){return new AQ(T,L.ZC,L.CG,L.l9,L.iC,L.UK,L.B1,L.Vq,f,L.DC,L.kB,L.q_,L.UH,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,U,z,w)});
  7483. g.P(this,this.Hc);this.PL=bh(function(){return new sx6(L.UK,L.Vq,L.er,L.Qq,L.kB,L.l9)});
  7484. g.P(this,this.PL);this.vB=bh(function(){return new LBf(L.h6,L.UK,L.Vq,U,L.kB,L.xf,L.Vt,L.er,L.Qq,k)});
  7485. g.P(this,this.vB);this.pg=bh(function(){return new LMt(L.h6,L.Vq,U)});
  7486. g.P(this,this.pg);this.Pq=new Gw(T,this.Tz,q);g.P(this,this.Pq);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.zP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_ABOVE_FEED",this.VU],["SLOT_TYPE_FORECASTING",this.VU],
  7487. ["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU],["SLOT_TYPE_PLAYER_UNDERLAY",this.VU],["SLOT_TYPE_PLAYBACK_TRACKING",this.VU],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",
  7488. this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ag],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.gw],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
  7489. this.gw],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.gw],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.gw],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
  7490. this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Vt],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.yy],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yy],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yy],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yy]]),y$:new Map([["SLOT_TYPE_ABOVE_FEED",this.UW],
  7491. ["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0],["SLOT_TYPE_PLAYER_UNDERLAY",this.UW],["SLOT_TYPE_PLAYBACK_TRACKING",this.UW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.UW]]),Em:new Map([["SLOT_TYPE_ABOVE_FEED",this.Fe],["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_PLAYER_BYTES",this.Hc],["SLOT_TYPE_PLAYBACK_TRACKING",this.PL],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
  7492. this.PL],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_UNDERLAY",this.pg]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:this.Tz.get(),c5:this.V8,O1:U.get(),Fj:this.l9.get()}};
  7493. LX$=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)});
  7494. g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)});
  7495. g.P(this,Y);var U=bh(function(){return new Eg});
  7496. g.P(this,U);var R=bh(function(){return new ew(T)});
  7497. g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)});
  7498. g.P(this,Z);var f=bh(function(){return new Xv});
  7499. g.P(this,f);this.h6=bh(function(){return new Iw(Q)});
  7500. g.P(this,this.h6);this.er=bh(function(){return new cI(v)});
  7501. g.P(this,this.er);this.eV=bh(function(){return new E0(Q)});
  7502. g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)});
  7503. g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)});
  7504. g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)});
  7505. g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)});
  7506. g.P(this,this.Qq);var G=bh(function(){return new mw(l)});
  7507. g.P(this,G);var m=bh(function(){return new kd(L.Qq)});
  7508. g.P(this,m);var I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,null,L.zP,L.yy)});
  7509. g.P(this,I);this.Og=bh(function(){return new C_(Q)});
  7510. g.P(this,this.Og);this.Tz=bh(function(){return new uh});
  7511. g.P(this,this.Tz);this.l9=bh(function(){return new gY(Q,f,L.Qq)});
  7512. g.P(this,this.l9);var z=e5({l9:this.l9,Qq:this.Qq,dc:m}),w=z.context,r=z.QD;this.A3=z.A3;this.DC=bh(function(){return new SD(Q,L.Qq,L.Vq)});
  7513. this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)});
  7514. g.P(this,this.UK);this.B1=bh(function(){return new zw});
  7515. g.P(this,this.B1);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)});
  7516. g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,r)});
  7517. g.P(this,this.Vq);this.q_=bh(function(){return new nF(L.Qq)});
  7518. g.P(this,this.q_);this.yE=new $N(Wh,XX,function(D,K,O,E){return hC(Y.get(),D,K,O,E)},R,Z,Y,m,this.Qq,this.l9);
  7519. g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var A=new FU(Q,this.Vp,this.UK,this.l9,this.DC);this.Ki=bh(function(){return A});
  7520. this.nH=A;this.zP=new Hh(R,Z,this.Ki,this.DC,this.UK,this.Qq,this.Vq);g.P(this,this.zP);this.qK=new Fu(R,Z,this.Xk,this.Ki,w);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK)});
  7521. g.P(this,this.N1);this.VU=bh(function(){return new jB});
  7522. g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.xf=new or(T);g.P(this,this.xf);this.yD=new LQ(T,this.Ki,w);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,w);g.P(this,this.gw);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.Vt=new fQ(T);g.P(this,this.Vt);this.iC=bh(function(){return new Bb(Q)});
  7523. g.P(this,this.iC);this.ZC=new GE(T);g.P(this,this.ZC);this.yy=new Un(T,this.DC,this.UK,this.Vq,this.Ki,this.zP);g.P(this,this.yy);this.UW=bh(function(){return new VN});
  7524. g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)});
  7525. g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)});
  7526. g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)});
  7527. g.P(this,this.JW);this.vB=bh(function(){return new qHH(L.h6,L.UK,L.Vq,U,L.kB,L.xf,L.Vt,L.er,L.Qq,k)});
  7528. g.P(this,this.vB);this.Hc=bh(function(){return new bZ(T,L.ZC,L.CG,L.Vq,L.kB,L.q_,L.UH,L.l9,L.UK,L.B1,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,L.iC,w,r)});
  7529. g.P(this,this.Hc);this.Pq=new Gw(T,this.Tz,q);g.P(this,this.Pq);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.zP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],
  7530. ["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],
  7531. ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ag],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
  7532. this.Vt],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.yy],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yy],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yy],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yy]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),
  7533. Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.Hc]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:this.Tz.get(),c5:this.V8,O1:U.get(),Fj:this.l9.get()}};
  7534. qtv=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)});
  7535. g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)});
  7536. g.P(this,Y);var U=bh(function(){return new Eg});
  7537. g.P(this,U);var R=bh(function(){return new ew(T)});
  7538. g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)});
  7539. g.P(this,Z);var f=bh(function(){return new Xv});
  7540. g.P(this,f);this.h6=bh(function(){return new Iw(Q)});
  7541. g.P(this,this.h6);this.er=bh(function(){return new cI(v)});
  7542. g.P(this,this.er);this.eV=bh(function(){return new E0(Q)});
  7543. g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)});
  7544. g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)});
  7545. g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)});
  7546. g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)});
  7547. g.P(this,this.Qq);var G=bh(function(){return new mw(l)});
  7548. g.P(this,G);var m=bh(function(){return new kd(L.Qq)});
  7549. g.P(this,m);var I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,null,null,null)});
  7550. g.P(this,I);this.Og=bh(function(){return new C_(Q)});
  7551. g.P(this,this.Og);this.l9=bh(function(){return new gY(Q,f,L.Qq)});
  7552. g.P(this,this.l9);var z=e5({l9:this.l9,Qq:this.Qq,dc:m}),w=z.context,r=z.QD;this.A3=z.A3;this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)});
  7553. g.P(this,this.UK);this.B1=bh(function(){return new zw});
  7554. g.P(this,this.B1);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)});
  7555. g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,r)});
  7556. g.P(this,this.Vq);this.q_=bh(function(){return new nF(L.Qq)});
  7557. g.P(this,this.q_);this.yE=new $N(Wh,XX,function(D,K,O,E){return hC(Y.get(),D,K,O,E)},R,Z,Y,m,this.Qq,this.l9);
  7558. g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var A=new FU(Q,this.Vp,this.UK,this.l9);this.Ki=bh(function(){return A});
  7559. this.nH=A;this.qK=new Fu(R,Z,this.Xk,this.Ki,w);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK)});
  7560. g.P(this,this.N1);this.VU=bh(function(){return new jB});
  7561. g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.yD=new LQ(T,this.Ki,w);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,w);g.P(this,this.gw);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.iC=bh(function(){return new Bb(Q)});
  7562. g.P(this,this.iC);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN});
  7563. g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)});
  7564. g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)});
  7565. g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)});
  7566. g.P(this,this.JW);this.wf=bh(function(){return new hi6(L.h6,L.UK,L.Vq,U,k,L.Qq)});
  7567. g.P(this,this.wf);this.Hc=bh(function(){return new bZ(T,L.ZC,L.CG,L.Vq,L.kB,L.q_,L.UH,L.l9,L.UK,L.B1,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,L.iC,w,r)});
  7568. g.P(this,this.Hc);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
  7569. this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
  7570. this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_ABOVE_FEED",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_IN_PLAYER",
  7571. this.wf],["SLOT_TYPE_PLAYER_BYTES",this.Hc]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:this.V8,O1:U.get(),Fj:this.l9.get()}};
  7572. gbA=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)});
  7573. g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)});
  7574. g.P(this,Y);var U=bh(function(){return new Eg});
  7575. g.P(this,U);var R=bh(function(){return new ew(T)});
  7576. g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)});
  7577. g.P(this,Z);var f=bh(function(){return new Xv});
  7578. g.P(this,f);this.eR=bh(function(){return new obW(Q)});
  7579. g.P(this,this.eR);this.h6=bh(function(){return new Iw(Q)});
  7580. g.P(this,this.h6);this.er=bh(function(){return new cI(v)});
  7581. g.P(this,this.er);this.eV=bh(function(){return new E0(Q)});
  7582. g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)});
  7583. g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)});
  7584. g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)});
  7585. g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)});
  7586. g.P(this,this.Qq);var G=bh(function(){return new mw(l)});
  7587. g.P(this,G);var m=bh(function(){return new kd(L.Qq)});
  7588. g.P(this,m);var I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,null,null,null)});
  7589. g.P(this,I);this.Og=bh(function(){return new C_(Q)});
  7590. g.P(this,this.Og);this.l9=bh(function(){return new gY(Q,f,L.Qq)});
  7591. g.P(this,this.l9);var z=e5({l9:this.l9,Qq:this.Qq,dc:m}),w=z.context,r=z.QD;this.A3=z.A3;this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)});
  7592. g.P(this,this.UK);this.B1=bh(function(){return new zw});
  7593. g.P(this,this.B1);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)});
  7594. g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,r)});
  7595. g.P(this,this.Vq);this.q_=bh(function(){return new nF(L.Qq)});
  7596. g.P(this,this.q_);this.yE=new $N($9C,XX,function(D,K,O,E){return fiy(Y.get(),D,K,O,E)},R,Z,Y,m,this.Qq,this.l9);
  7597. g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var A=new FU(Q,this.Vp,this.UK,this.l9);this.Ki=bh(function(){return A});
  7598. this.nH=A;this.qK=new Fu(R,Z,this.Xk,this.Ki,w);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK)});
  7599. g.P(this,this.N1);this.VU=bh(function(){return new jB});
  7600. g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.yD=new LQ(T,this.Ki,w);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,w);g.P(this,this.gw);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.iC=bh(function(){return new Bb(Q)});
  7601. g.P(this,this.iC);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN});
  7602. g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)});
  7603. g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)});
  7604. g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)});
  7605. g.P(this,this.JW);this.Hc=bh(function(){return new bZ(T,L.ZC,L.CG,L.Vq,L.kB,L.q_,L.UH,L.l9,L.UK,L.B1,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,L.iC,w,r)});
  7606. g.P(this,this.Hc);this.hB=bh(function(){return new MKC(L.h6,L.UK,L.Vq,U,L.eR,k,L.l9)});
  7607. g.P(this,this.hB);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
  7608. this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
  7609. this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_IN_PLAYER",this.hB],["SLOT_TYPE_PLAYER_BYTES",
  7610. this.Hc]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:this.V8,O1:U.get(),Fj:this.l9.get()}};
  7611. Mfp=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)});
  7612. g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)});
  7613. g.P(this,Y);var U=bh(function(){return new Eg});
  7614. g.P(this,U);var R=bh(function(){return new ew(T)});
  7615. g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)});
  7616. g.P(this,Z);var f=bh(function(){return new Xv});
  7617. g.P(this,f);this.eR=bh(function(){return new obW(Q)});
  7618. g.P(this,this.eR);this.h6=bh(function(){return new Iw(Q)});
  7619. g.P(this,this.h6);this.er=bh(function(){return new cI(v)});
  7620. g.P(this,this.er);this.eV=bh(function(){return new E0(Q)});
  7621. g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)});
  7622. g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)});
  7623. g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)});
  7624. g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)});
  7625. g.P(this,this.Qq);var G=bh(function(){return new mw(l)});
  7626. g.P(this,G);var m=bh(function(){return new kd(L.Qq)});
  7627. g.P(this,m);this.Og=bh(function(){return new C_(Q)});
  7628. g.P(this,this.Og);this.l9=bh(function(){return new gY(Q,f,L.Qq)});
  7629. g.P(this,this.l9);var I=e5({l9:this.l9,Qq:this.Qq,dc:m}),z=I.context,w=I.QD;this.A3=I.A3;this.DC=bh(function(){return new SD(Q,L.Qq,L.Vq)});
  7630. g.P(this,this.DC);this.iC=bh(function(){return new Bb(Q)});
  7631. g.P(this,this.iC);this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)});
  7632. g.P(this,this.UK);this.B1=bh(function(){return new zw});
  7633. g.P(this,this.B1);I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,L.UK,L.zP,L.yy,3)});
  7634. g.P(this,I);this.q_=bh(function(){return new nF(L.Qq)});
  7635. this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)});
  7636. g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,w)});
  7637. g.P(this,this.Vq);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var r=new FU(Q,this.Vp,this.UK,this.l9,this.DC);this.Ki=bh(function(){return r});
  7638. this.nH=r;this.yE=new $N(J66,XX,function(A,D,K,O){return fiy(Y.get(),A,D,K,O)},R,Z,Y,m,this.Qq,this.l9);
  7639. g.P(this,this.yE);this.zP=new Hh(R,Z,this.Ki,this.DC,this.UK,this.Qq,this.Vq,this.iC);g.P(this,this.zP);this.qK=new Fu(R,Z,this.Xk,this.Ki,z);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK,L.iC)});
  7640. g.P(this,this.N1);this.VU=bh(function(){return new jB});
  7641. g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.yD=new LQ(T,this.Ki,z);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,z);g.P(this,this.gw);this.xH=new gq(T,this.l9);g.P(this,this.xH);this.yy=new Un(T,this.DC,this.UK,this.Vq,this.Ki,this.zP);g.P(this,this.yy);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN});
  7642. g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)});
  7643. g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)});
  7644. g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)});
  7645. g.P(this,this.JW);this.Hc=bh(function(){return new AQ(T,L.ZC,L.CG,L.l9,L.iC,L.UK,L.B1,L.Vq,f,L.DC,L.kB,L.q_,L.UH,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,U,z,w)});
  7646. g.P(this,this.Hc);this.vB=bh(function(){return new YHJ(L.h6,L.UK,L.Vq,U,L.eR,k,L.Qq,L.l9)});
  7647. g.P(this,this.vB);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.zP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
  7648. this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
  7649. this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
  7650. this.yy],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yy],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yy],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yy]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_PLAYER_BYTES",this.Hc],["SLOT_TYPE_IN_PLAYER",this.vB]])};this.listeners=[U.get()];
  7651. this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:this.V8,O1:U.get(),Fj:this.l9.get()}};
  7652. UJp=function(T,Q,k,l){function v(){return L.S}
  7653. g.x.call(this);var L=this;T.G().experiments.Wd("html5_dispose_of_manager_before_dependency")?(this.T=Yt$(v,T,Q,k,l),this.S=(new r2(this.T)).L(),g.P(this,this.S),g.P(this,this.T)):(this.T=Yt$(v,T,Q,k,l),g.P(this,this.T),this.S=(new r2(this.T)).L(),g.P(this,this.S))};
  7654. wY=function(T){return T.T.jd};
  7655. Yt$=function(T,Q,k,l,v){try{var L=Q.G();if(g.Cn(L))var q=new vbT(T,Q,k,l,v);else if(g.XT(L))q=new LX$(T,Q,k,l,v);else if(Ze(L))q=new qtv(T,Q,k,l,v);else if(g.uP(L))q=new gbA(T,Q,k,l,v);else if(g.q0(L))q=new Mfp(T,Q,k,l,v);else throw new TypeError("Unknown web interface");return q}catch(Y){return q=Q.G(),MH("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:q.T.cplatform,interface:q.T.c,pfk:q.T.cver,nuV:q.T.ctheme,P6e:q.T.cplayer,rYd:q.playerStyle}),new Ez5(T,Q,k,l,v)}};
  7656. RuW=function(T){OC.call(this,T)};
  7657. Z5_=function(T,Q,k,l,v){y6.call(this,T,{X:"div",J:"ytp-ad-timed-pie-countdown-container",W:[{X:"svg",J:"ytp-ad-timed-pie-countdown",K:{viewBox:"0 0 20 20"},W:[{X:"circle",J:"ytp-ad-timed-pie-countdown-background",K:{r:"10",cx:"10",cy:"10"}},{X:"circle",J:"ytp-ad-timed-pie-countdown-inner",K:{r:"5",cx:"10",cy:"10"}},{X:"circle",J:"ytp-ad-timed-pie-countdown-outer",K:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Q,k,l,v);this.Y=this.L_("ytp-ad-timed-pie-countdown-container");this.L=this.L_("ytp-ad-timed-pie-countdown-inner");
  7658. this.B=this.L_("ytp-ad-timed-pie-countdown-outer");this.S=Math.ceil(2*Math.PI*5);this.hide()};
  7659. fHv=function(T,Q,k,l,v,L){Y8.call(this,T,{X:"div",J:"ytp-ad-action-interstitial",K:{tabindex:"0"},W:[{X:"div",J:"ytp-ad-action-interstitial-background-container"},{X:"div",J:"ytp-ad-action-interstitial-slot",W:[{X:"div",J:"ytp-ad-action-interstitial-instream-info"},{X:"div",J:"ytp-ad-action-interstitial-card",W:[{X:"div",J:"ytp-ad-action-interstitial-image-container"},{X:"div",J:"ytp-ad-action-interstitial-headline-container"},{X:"div",J:"ytp-ad-action-interstitial-description-container"},{X:"div",
  7660. J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Q,k,l);this.Hv=v;this.kq=L;this.navigationEndpoint=this.T=this.skipButton=this.S=this.actionButton=null;this.sK=this.L_("ytp-ad-action-interstitial-instream-info");this.Bd=this.L_("ytp-ad-action-interstitial-image-container");this.D=new x8(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-action-interstitial-image");g.P(this,this.D);this.D.XB(this.Bd);this.i9=this.L_("ytp-ad-action-interstitial-headline-container");
  7661. this.B=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-action-interstitial-headline");g.P(this,this.B);this.B.XB(this.i9);this.qO=this.L_("ytp-ad-action-interstitial-description-container");this.L=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-action-interstitial-description");g.P(this,this.L);this.L.XB(this.qO);this.f_=this.L_("ytp-ad-action-interstitial-background-container");this.Jj=new x8(this.api,this.layoutId,this.interactionLoggingClientData,
  7662. this.G9,"ytp-ad-action-interstitial-background",!0);g.P(this,this.Jj);this.Jj.XB(this.f_);this.K_=this.L_("ytp-ad-action-interstitial-action-button-container");this.slot=this.L_("ytp-ad-action-interstitial-slot");this.fG=this.L_("ytp-ad-action-interstitial-card");this.Y=new wi;g.P(this,this.Y);this.hide()};
  7663. G5d=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)};
  7664. sIe=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-overlay-slot",W:[{X:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",Q,k,l);this.D=[];this.f_=this.i9=this.Y=this.K_=this.sK=null;this.Jj=!1;this.B=null;this.qO=0;T=this.L_("ytp-ad-overlay-container");this.Bd=new oY(T,45E3,6E3,.3,.4);g.P(this,this.Bd);this.L=mJv(this);g.P(this,this.L);this.L.XB(T);this.S=IHT(this);g.P(this,this.S);this.S.XB(T);this.T=huA(this);g.P(this,this.T);this.T.XB(T);this.hide()};
  7665. mJv=function(T){var Q=new g.M1({X:"div",J:"ytp-ad-text-overlay",W:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",W:[{X:"button",J:"ytp-ad-overlay-close-button",W:[bD(Ste)]}]},{X:"div",J:"ytp-ad-overlay-title",S6:"{{title}}"},{X:"div",J:"ytp-ad-overlay-desc",S6:"{{description}}"},{X:"div",Rk:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],S6:"{{displayUrl}}"}]});T.Z(Q.L_("ytp-ad-overlay-title"),"click",function(k){dY(T,Q.element,k)});
  7666. T.Z(Q.L_("ytp-ad-overlay-link"),"click",function(k){dY(T,Q.element,k)});
  7667. T.Z(Q.L_("ytp-ad-overlay-close-container"),"click",T.Dv);Q.hide();return Q};
  7668. IHT=function(T){var Q=new g.M1({X:"div",Rk:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",W:[{X:"button",J:"ytp-ad-overlay-close-button",W:[bD(Ste)]}]},{X:"div",J:"ytp-ad-overlay-text-image",W:[{X:"img",K:{src:"{{imageUrl}}"}}]},{X:"div",J:"ytp-ad-overlay-title",S6:"{{title}}"},{X:"div",J:"ytp-ad-overlay-desc",S6:"{{description}}"},{X:"div",Rk:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
  7669. S6:"{{displayUrl}}"}]});T.Z(Q.L_("ytp-ad-overlay-title"),"click",function(k){dY(T,Q.element,k)});
  7670. T.Z(Q.L_("ytp-ad-overlay-link"),"click",function(k){dY(T,Q.element,k)});
  7671. T.Z(Q.L_("ytp-ad-overlay-close-container"),"click",T.Dv);T.Z(Q.L_("ytp-ad-overlay-text-image"),"click",T.chj);Q.hide();return Q};
  7672. huA=function(T){var Q=new g.M1({X:"div",J:"ytp-ad-image-overlay",W:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",W:[{X:"button",J:"ytp-ad-overlay-close-button",W:[bD(Ste)]}]},{X:"div",J:"ytp-ad-overlay-image",W:[{X:"img",K:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});T.Z(Q.L_("ytp-ad-overlay-image"),"click",function(k){dY(T,Q.element,k)});
  7673. T.Z(Q.L_("ytp-ad-overlay-close-container"),"click",T.Dv);Q.hide();return Q};
  7674. Cym=function(T,Q){if(Q){var k=g.t(Q,TT)||null;k==null?g.bA(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Q=g.gK("video-ads ytp-ad-module")||null,Q==null?g.bA(Error("Could not locate the root ads container element to attach the ad info dialog.")):(T.i9=new g.M1({X:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(T,T.i9),T.i9.XB(Q),Q=new ex(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.i9.element,!1),g.P(T,Q),Q.init(k8("ad-info-hover-text-button"),k,T.macros),
  7675. T.B?(Q.XB(T.B,0),Q.subscribe("f",T.Xdm,T),Q.subscribe("e",T.FA,T),T.Z(T.B,"click",T.UOj),T.Z(g.gK("ytp-ad-button",Q.element),"click",function(){var l;if(g.t((l=g.t(k.button,g.jw))==null?void 0:l.serviceEndpoint,jp5))T.Jj=T.api.getPlayerState(1)===2,T.api.pauseVideo();else T.api.onAdUxClicked("ad-info-hover-text-button",T.layoutId)}),T.f_=Q):g.bA(Error("Ad info button container within overlay ad was not present."))))}else g.rB(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
  7676. zuW=function(T,Q){if(B6d(T,NC)||T.api.isMinimized())return!1;var k=UC(Q.title),l=UC(Q.description);if(g.bB(k)||g.bB(l))return!1;T.createServerVe(T.L.element,Q.trackingParams||null);T.L.updateValue("title",UC(Q.title));T.L.updateValue("description",UC(Q.description));T.L.updateValue("displayUrl",UC(Q.displayUrl));Q.navigationEndpoint&&g.cm(T.D,Q.navigationEndpoint);T.L.show();T.Bd.start();T.logVisibility(T.L.element,!0);T.Z(T.L.element,"mouseover",function(){T.qO++});
  7677. return!0};
  7678. XTE=function(T,Q){if(B6d(T,NC)||T.api.isMinimized())return!1;var k=UC(Q.title),l=UC(Q.description);if(g.bB(k)||g.bB(l))return!1;T.createServerVe(T.S.element,Q.trackingParams||null);T.S.updateValue("title",UC(Q.title));T.S.updateValue("description",UC(Q.description));T.S.updateValue("displayUrl",UC(Q.displayUrl));T.S.updateValue("imageUrl",U5T(Q.image));Q.navigationEndpoint&&g.cm(T.D,Q.navigationEndpoint);T.K_=Q.imageNavigationEndpoint||null;T.S.show();T.Bd.start();T.logVisibility(T.S.element,!0);
  7679. T.Z(T.S.element,"mouseover",function(){T.qO++});
  7680. return!0};
  7681. wTW=function(T,Q){if(T.api.isMinimized())return!1;var k=RYt(Q.image),l=k;k.width<NC.width&&(l=NC);if(k.width===0||k.height===0||B6d(T,l))return!1;T.createServerVe(T.T.element,Q.trackingParams||null);T.T.updateValue("imageUrl",U5T(Q.image));T.T.updateValue("width",k.width);T.T.updateValue("height",k.height);Q.navigationEndpoint&&g.cm(T.D,Q.navigationEndpoint);g.W2(T.T.L_("ytp-ad-image-overlay"),"max-width",k.width+"px");T.T.show();T.logVisibility(T.T.element,!0);T.Z(T.T.element,"mouseover",function(){T.qO++;
  7682. T.api.P6("invideo-overlay",T.layoutId)});
  7683. T.Z(T.T.element,"mouseout",function(){T.api.GD("invideo-overlay",T.layoutId)});
  7684. return!0};
  7685. B6d=function(T,Q){var k=T.api.Hx().J9(),l=T.api.IM(!0,!1);return(Q=aN(k,k.height-(l.height+l.top),Q))?(T.sK&&Q&&(k=g.Gs(T.macros),k.ERRORCODE=Q.GU.toString(),k.ERROR_MSG=Q.errorMessage,T.layoutId?aD(T.G9,T.sK,T.layoutId,k):g.bA(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
  7686. dY=function(T,Q,k){var l=g.Gs(T.macros),v=g.jC(Q);l.AW={toString:function(){return v.width.toString()}};
  7687. l.AH={toString:function(){return v.height.toString()}};
  7688. var L=g.To(k,Q).floor();l.I_X={toString:function(){return L.x.toString()}};
  7689. l.NX={toString:function(){return L.x.toString()}};
  7690. l.I_Y={toString:function(){return L.y.toString()}};
  7691. l.NY={toString:function(){return L.y.toString()}};
  7692. l.NM={toString:function(){return T.qO.toString()}};
  7693. Q=g.B(T.D);for(k=Q.next();!k.done;k=Q.next())k=k.value,T.layoutId?aD(T.G9,k,T.layoutId,l):g.bA(Error("Missing layoutId for invideo_overlay_ad."));T.api.pauseVideo()};
  7694. dJA=function(T,Q){T=T.api.getRootNode();g.gl(T,"ytp-ad-overlay-open",Q);g.gl(T,"ytp-ad-overlay-closed",!Q)};
  7695. N6A=function(T,Q,k,l,v){y6.call(this,T,{X:"div",J:"ytp-ad-message-overlay",W:[{X:"div",J:"ytp-ad-message-slot"}]},"ad-message",Q,k,l,v);var L=this;this.B=-1;this.L=0;this.qO=!1;this.i9=this.L_("ytp-ad-message-slot");this.S=new g.M1({X:"span",J:"ytp-ad-message-container"});this.S.XB(this.i9);g.P(this,this.S);this.messageText=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,l,"ytp-ad-message-text");g.P(this,this.messageText);this.messageText.XB(this.S.element);this.Y=new g.TZ(this.S,
  7696. 400,!1,100,function(){L.hide()});
  7697. g.P(this,this.Y);this.hide()};
  7698. A5W=function(T,Q){T=T.api.getRootNode();g.gl(T,"ytp-ad-overlay-open",Q);g.gl(T,"ytp-ad-overlay-closed",!Q)};
  7699. b5W=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-underlay-companion",W:[{X:"div",J:"ytp-ad-underlay-side-container",W:[{X:"div",J:"ytp-ad-underlay-image-container"},{X:"div",J:"ytp-ad-underlay-description-container"},{X:"div",J:"ytp-ad-underlay-headline-container"},{X:"div",J:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",Q,k,l);this.actionButton=null;this.i9=this.L_("ytp-ad-underlay-image-container");this.L=new x8(this.api,this.layoutId,this.interactionLoggingClientData,
  7700. this.G9,"ytp-ad-underlay-image");g.P(this,this.L);this.L.XB(this.i9);this.qO=this.L_("ytp-ad-underlay-headline-container");this.S=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-underlay-headline");g.P(this,this.S);this.S.XB(this.qO);this.D=this.L_("ytp-ad-underlay-description-container");this.Y=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-underlay-description");g.P(this,this.Y);this.Y.XB(this.D);this.B=this.L_("ytp-ad-underlay-action-button-container");
  7701. this.T=this.L_("ytp-ad-underlay-side-container");this.hide()};
  7702. r5W=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)};
  7703. AY=function(T,Q,k,l,v,L){L=L===void 0?function(){}:L;
  7704. Y8.call(this,T,{X:"div",J:"ytp-ad-survey-answer"},"survey-answer",Q,k,l);this.index=v;this.onSelected=L;this.T=null;this.toggledLoggingParams="";this.answer=this.L_("ytp-ad-survey-answer");this.hide()};
  7705. c5m=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",Q,k,l);this.button=null;this.T=this.L_("ytp-ad-survey-none-of-the-above");this.hide()};
  7706. bI=function(T,Q,k,l){var v=["ytp-ad-survey-submit-button"];v.push("ytp-ad-survey-submit-button-rounded");rD.call(this,T,Q,k,l,v,"survey-submit")};
  7707. rY=function(T,Q,k,l,v){Y8.call(this,T,{X:"div",J:"ytp-ad-survey-player-overlay",W:[{X:"div",J:"ytp-ad-survey-player-overlay-instream-info"},{X:"div",J:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{X:"div",J:"ytp-ad-survey-player-overlay-skip-or-preview"},{X:"div",J:"ytp-ad-survey-player-overlay-submit"}]},{X:"div",J:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",Q,k,l);this.Y=v;this.S=this.T=null;this.L=this.L_("ytp-ad-survey-player-overlay-instream-info");
  7708. this.skipOrPreview=this.L_("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.L_("ytp-ad-survey-player-overlay-submit");g.P(this,this.Y);this.hide()};
  7709. cb=function(T,Q,k,l,v,L){L=L===void 0?function(){}:L;
  7710. Y8.call(this,T,{X:"div",J:"ytp-ad-survey-question",W:[{X:"div",Rk:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{X:"div",Rk:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{X:"div",Rk:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{X:"div",J:"ytp-ad-survey-question-background"}]},v,Q,k,l);this.i9=L;this.Y=null;this.S=[];this.T=null;this.D=this.api.G().experiments.Wd("a11y_h5_associate_survey_question");this.question=this.L_("ytp-ad-survey-question");
  7711. this.Bd=this.L_("ytp-ad-survey-question-background");this.questionText=this.L_("ytp-ad-survey-question-text");this.answers=this.L_("ytp-ad-survey-answers");this.playerOverlay=this.L_("ytp-ad-survey-question-player-overlay");this.L=Date.now()};
  7712. DJA=function(T,Q){Q=g.Rx(Q);g.CO(T.questionText,Q);T.D&&T.questionText.setAttribute("id",k8("survey-question-text"))};
  7713. aHA=function(T,Q,k,l){l=new AY(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,l,T.i9);l.XB(T.answers);l.init(k8("survey-answer"),Q,k);T.D&&(Q=T.questionText.getAttribute("id"),Q!=null&&(l.T!==null?l.T.S.setAttribute("aria-describedby",Q):l.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",Q)));T.S.push(l)};
  7714. nbW=function(T,Q){if(Q){var k=Q.background;k&&g.t(k,uge)&&(k=(k=g.t(k,uge).image)&&KD(k)||"",g.bB(k)?g.rB(Error("Found ThumbnailDetails without valid image URL")):g.W2(T.Bd,"backgroundImage","url("+k+")"));if(Q.durationMilliseconds==null||Q.durationMilliseconds===void 0||Q.durationMilliseconds===0)T=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.bA(T);else{T.L=g.R_();T.T=new se(T.api,Q.durationMilliseconds);g.P(T,T.T);if(T.T&&Q.instreamAdPlayerOverlay&&g.t(Q.instreamAdPlayerOverlay,
  7715. VM))try{var l=new rY(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.T);l.XB(T.playerOverlay);l.init(k8("survey-player-overlay"),g.t(Q.instreamAdPlayerOverlay,VM),T.macros);T.Y=l;g.P(T,l);T.Hu()}catch(v){l=Error("ISAPOR had an error when initializing. Error: "+(v+" SurveyAdQuestionCommon: "+JSON.stringify(Q))),g.bA(l)}else l=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.bA(l);T.T&&Q.durationMilliseconds&&Q.durationMilliseconds>0?(Q=new DV(T.api,T.T),
  7716. Q.XB(T.playerOverlay),g.P(T,Q)):(T=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.bA(T))}}else g.bA(Error("addCommonComponents() needs to be called before starting countdown."))};
  7717. KXm=function(T){function Q(k){return{toString:function(){return k()}}}
  7718. T.macros.SURVEY_LOCAL_TIME_EPOCH_S=Q(function(){var k=new Date;return(Math.round(k.valueOf()/1E3)+-1*k.getTimezoneOffset()*60).toString()});
  7719. T.macros.SURVEY_ELAPSED_MS=Q(function(){return(Date.now()-T.L).toString()})};
  7720. xJv=function(T,Q,k,l,v){cb.call(this,T,Q,k,l,"survey-question-multi-select");this.qO=v;this.noneOfTheAbove=null;this.submitEndpoints=[];this.B=null;this.hide()};
  7721. Py_=function(T,Q,k){T.noneOfTheAbove=new c5m(T.api,T.layoutId,T.interactionLoggingClientData,T.G9);T.noneOfTheAbove.XB(T.answers);T.noneOfTheAbove.init(k8("survey-none-of-the-above"),Q,k)};
  7722. tfp=function(T){T.S.forEach(function(Q){Q.T.toggleButton(!1)});
  7723. H5W(T,!0)};
  7724. H5W=function(T,Q){var k=T.Y;T=O5W(T);Q=Q===void 0?!1:Q;k.T&&(T?k.T.hide():k.T.show(),Q&&k.T instanceof GZ&&!k.T.Y&&YY6(k.T,!1));k.S&&(T?k.S.show():k.S.hide())};
  7725. O5W=function(T){return T.S.some(function(Q){return Q.T.isToggled()})||T.noneOfTheAbove.button.isToggled()};
  7726. Dp=function(T,Q,k,l,v){cb.call(this,T,Q,k,l,"survey-question-single-select",function(q){L.api.G().V("supports_multi_step_on_desktop")&&v([q])});
  7727. var L=this;this.hide()};
  7728. aw=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-survey",W:[{X:"div",J:"ytp-ad-survey-questions"}]},"survey",Q,k,l);this.questions=[];this.S=[];this.conditioningRules=[];this.T=0;this.B=this.L_("ytp-ad-survey-questions");this.api.G().V("fix_survey_color_contrast_on_destop")&&this.L_("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().V("web_enable_speedmaster")&&this.L_("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
  7729. $JT=function(T,Q){var k=T.S[Q],l;(l=T.L)==null||l.dispose();g.t(k,iQ)?pTd(T,g.t(k,iQ),T.macros):g.t(k,yM)&&WXd(T,g.t(k,yM),T.macros);T.T=Q};
  7730. pTd=function(T,Q,k){var l=new Dp(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.Y.bind(T));l.XB(T.B);l.init(k8("survey-question-single-select"),Q,k);T.api.G().V("supports_multi_step_on_desktop")?T.L=l:T.questions.push(l);g.P(T,l)};
  7731. WXd=function(T,Q,k){var l=new xJv(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.Y.bind(T));l.XB(T.B);l.init(k8("survey-question-multi-select"),Q,k);T.api.G().V("supports_multi_step_on_desktop")?T.L=l:T.questions.push(l);g.P(T,l)};
  7732. uI=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-survey-interstitial",W:[{X:"div",J:"ytp-ad-survey-interstitial-contents",W:[{X:"div",J:"ytp-ad-survey-interstitial-logo",W:[{X:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Q,k,l);this.T=this.actionButton=null;this.interstitial=this.L_("ytp-ad-survey-interstitial");this.S=this.L_("ytp-ad-survey-interstitial-contents");this.text=this.L_("ytp-ad-survey-interstitial-text");
  7733. this.logoImage=this.L_("ytp-ad-survey-interstitial-logo-image");this.transition=new g.TZ(this,500,!1,300);g.P(this,this.transition)};
  7734. J5v=function(T,Q){Q=Q&&KD(Q)||"";if(g.bB(Q))g.rB(Error("Found ThumbnailDetails without valid image URL"));else{var k=T.style;T=T.style.cssText;var l=document.implementation.createHTMLDocument("").createElement("DIV");l.style.cssText=T;T=HSI(l.style);k.cssText=[T,'background-image:url("'+Q+'");'].join("")}};
  7735. euE=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)};
  7736. n_=function(T,Q,k,l,v,L){L=L===void 0?0:L;y6.call(this,T,{X:"div",J:"ytp-preview-ad",W:[{X:"div",J:"ytp-preview-ad__text"}]},"preview-ad",Q,k,l,v);var q=this;this.qO=L;this.S=0;this.Y=-1;this.L=this.L_("ytp-preview-ad__text");switch(this.qO){case 1:this.L.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.TZ(this,400,!1,100,function(){q.hide()});
  7737. g.P(this,this.transition);this.hide()};
  7738. K_=function(T,Q,k,l){Y8.call(this,T,{X:"img",J:"ytp-ad-avatar"},"ad-avatar",Q,k,l);this.hide()};
  7739. FXE=function(T){switch(T.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
  7740. xF=function(T,Q,k,l,v,L){v=v===void 0?!1:v;L=L===void 0?!1:L;Y8.call(this,T,{X:"button",J:"ytp-ad-button-vm"},"ad-button",Q,k,l);this.buttonText=this.buttonIcon=null;this.hide();this.T=v;this.S=L};
  7741. EbE=function(T,Q,k,l,v){y6.call(this,T,{X:"div",Rk:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{X:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{X:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Q,k,l,v);this.startMilliseconds=0;this.adAvatar=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adAvatar);hZ(this.element,this.adAvatar.element,0);this.headline=new d3(this.api,this.layoutId,
  7742. this.interactionLoggingClientData,this.G9);g.P(this,this.headline);this.headline.XB(this.L_("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.description);this.description.XB(this.L_("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new xF(this.api,
  7743. this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adButton);this.adButton.XB(this.element);this.hide()};
  7744. Pb=function(T,Q,k,l){Y8.call(this,T,{X:"button",J:"ytp-skip-ad-button",W:[{X:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",Q,k,l);var v=this;this.S=!1;this.Y=this.L_("ytp-skip-ad-button__text");this.transition=new g.TZ(this,500,!1,100,function(){v.hide()});
  7745. g.P(this,this.transition);this.T=new oY(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.T);this.hide()};
  7746. y5W=function(T,Q,k,l,v){y6.call(this,T,{X:"div",J:"ytp-skip-ad"},"skip-ad",Q,k,l,v);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.L=new Pb(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.L);this.L.XB(this.element);this.hide()};
  7747. Hb=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",Q,k,l);this.hide()};
  7748. tY=function(T,Q,k,l,v){Y8.call(this,T,{X:"div",J:"ytp-ad-player-overlay-layout",W:[{X:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",J:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Q,k,l);this.S=v;this.i9=this.L_("ytp-ad-player-overlay-layout__player-card-container");this.T=this.L_("ytp-ad-player-overlay-layout__ad-info-container");
  7749. this.D=this.L_("ytp-ad-player-overlay-layout__skip-or-preview-container");this.qO=this.L_("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
  7750. i5d=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-grid-card-text",W:[{X:"div",J:"ytp-ad-grid-card-text__metadata",W:[{X:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",J:"ytp-ad-grid-card-text__metadata__description",W:[{X:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Q,k,l);this.headline=new d3(this.api,this.layoutId,this.interactionLoggingClientData,
  7751. this.G9);g.P(this,this.headline);this.headline.XB(this.L_("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0);g.P(this,this.moreInfoButton);this.moreInfoButton.XB(this.L_("ytp-ad-grid-card-text__button"))};
  7752. Om=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Q,k,l);this.T=[]};
  7753. p_=function(T,Q,k,l,v,L,q){y6.call(this,T,L,q,Q,k,l,v);this.playerProgressOffsetMs=0;this.S=!1};
  7754. VfT=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)};
  7755. T$v=function(T,Q,k,l,v){p_.call(this,T,Q,k,l,v,{X:"div",J:"ytp-display-underlay-text-grid-cards",W:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container",W:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
  7756. {X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Om(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adGridCardCollection);this.adGridCardCollection.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adButton);this.adButton.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
  7757. this.L=this.L_("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.L_("ytp-display-underlay-text-grid-cards__content_container__header")};
  7758. Wb=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-details-line"},"ad-details-line",Q,k,l);this.T=[];this.hide()};
  7759. $F=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-image-background",W:[{X:"img",J:"ytp-image-background-image"}]},"image-background",Q,k,l);this.hide()};
  7760. Q_1=function(T,Q,k,l,v){y6.call(this,T,{X:"svg",J:"ytp-timed-pie-countdown",K:{viewBox:"0 0 20 20"},W:[{X:"circle",J:"ytp-timed-pie-countdown__background",K:{r:"10",cx:"10",cy:"10"}},{X:"circle",J:"ytp-timed-pie-countdown__inner",K:{r:"5",cx:"10",cy:"10"}},{X:"circle",J:"ytp-timed-pie-countdown__outer",K:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Q,k,l,v);this.L=this.L_("ytp-timed-pie-countdown__inner");this.S=Math.ceil(2*Math.PI*5);this.hide()};
  7761. JY=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout",K:{tabindex:"0"},W:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
  7762. {X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Q,k,l);this.S=null;this.Y=this.L_("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.L=new wi;g.P(this,this.L);this.hide()};
  7763. j_A=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)};
  7764. kve=function(T){if(!T.adAvatar||!g.t(T.adAvatar,eD))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!T.headline)return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!T.adBadge||!g.t(T.adBadge,FX))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!T.adButton||!g.t(T.adButton,Em))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!T.adInfoRenderer||
  7765. !g.t(T.adInfoRenderer,TT))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;T=T.durationMilliseconds||0;return typeof T!=="number"||T<=0?(g.bA(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+T)),!1):!0};
  7766. ys=function(T,Q){Q=Q===void 0?2:Q;g.ox.call(this);this.api=T;this.T=null;this.Qp=new wi(this);g.P(this,this.Qp);this.S=UhC;this.Qp.Z(this.api,"presentingplayerstatechange",this.WD);this.T=this.Qp.Z(this.api,"progresssync",this.bC);this.Lv=Q;this.Lv===1&&this.bC()};
  7767. iI=function(T,Q,k){OC.call(this,T);this.api=T;this.G9=Q;this.components={};T=new g.p({X:"div",Rk:["video-ads","ytp-ad-module"]});g.P(this,T);ic&&g.oF(T.element,"ytp-ads-tiny-mode");this.Y=new ZZ(T.element);g.P(this,this.Y);g.TQ(this.api,T.element,4);sg(k)&&(k=new g.p({X:"div",Rk:["ytp-ad-underlay"]}),g.P(this,k),this.S=new ZZ(k.element),g.P(this,this.S),g.TQ(this.api,k.element,0));g.P(this,HYy())};
  7768. l1E=function(T,Q){T=g.ZW(T.components,Q.id,null);T==null&&g.rB(Error("Component not found for element id: "+Q.id));return T||null};
  7769. oET=function(T){g.A4.call(this,T);var Q=this;this.S=null;this.created=!1;this.L=T.G().V("h5_use_refactored_get_ad_break")?new yRH(this.player):new Jn(this.player);this.Y=function(){if(Q.S!=null)return Q.S;var l=new l$f({c5:wY(Q.T).c5,Fj:wY(Q.T).Fj,U:Q.player,Js:wY(Q.T).Js,Vq:Q.T.T.Vq,O1:wY(Q.T).O1,yp:Q.T.T.yp});Q.S=l.tB;return Q.S};
  7770. this.T=new UJp(this.player,this,this.L,this.Y);g.P(this,this.T);var k=T.G();!fF(k)||g.q0(k)||Ze(k)||(g.P(this,new iI(T,wY(this.T).G9,wY(this.T).Js)),g.P(this,new RuW(T)))};
  7771. vEd=function(T){T.created!==T.loaded&&MH("Created and loaded are out of sync")};
  7772. gEA=function(T){g.A4.prototype.load.call(T);var Q=wY(T.T).Js;try{T.player.getRootNode().classList.add("ad-created")}catch(U){MH(U instanceof Error?U:String(U))}var k=T.player.getVideoData(1),l=k&&k.videoId||"",v=k&&k.getPlayerResponse()||{},L=(v&&v.adPlacements||[]).map(function(U){return U.adPlacementRenderer}),q=((v==null?void 0:v.adSlots)||[]).map(function(U){return g.t(U,oA)});
  7773. v=v.playerConfig&&v.playerConfig.daiConfig&&v.playerConfig.daiConfig.enableDai||!1;k&&k.Cc();L=L9W(L,q,Q,wY(T.T).aH);q=k&&k.clientPlaybackNonce||"";k=k&&k.LX||!1;if(Y9(Q,!0)&&k){var Y;Q={};(Y=T.player.getVideoData())==null||Y.T9("p_cpb",(Q.cc=q,Q))}Y=1E3*T.player.getDuration(1);qAW(T);T.T.T.nH.yw(q,Y,k,L.ET,L.xD,L.ET,v,l)};
  7774. qAW=function(T){var Q,k;if(k=(Q=T.player.getVideoData(1))==null||!Q.LX)Q=T.player.G(),k=fF(Q)&&!g.ZX(Q)&&Q.playerStyle==="desktop-polymer";k&&(T=T.player.getInternalApi(),T.addEventListener("updateKevlarOrC3Companion",CnJ),T.addEventListener("updateEngagementPanelAction",BmC),T.addEventListener("changeEngagementPanelVisibility",zp5),window.addEventListener("yt-navigate-start",wef))};
  7775. Vs=function(T,Q){Q===T.gS&&(T.gS=void 0)};
  7776. MAe=function(T){var Q=wY(T.T).Vp,k=Q.Y().gR("SLOT_TYPE_PLAYER_BYTES",1);Q=Kd(Q.l9.get(),1).clientPlaybackNonce;var l=!1;k=g.B(k);for(var v=k.next();!v.done;v=k.next()){v=v.value;var L=v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.slotEntryTrigger instanceof WE?v.slotEntryTrigger.hk:void 0;L&&L===Q&&(l&&MH("More than 1 preroll playerBytes slot detected",v),l=!0)}l||YF(wY(T.T).Ei)};
  7777. YA1=function(T){if(Qs(wY(T.T).Js))return!0;var Q="";T=g.B(wY(T.T).O1.sF.keys());for(var k=T.next();!k.done;k=T.next()){k=k.value;if(k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.Ik==="core")return!0;Q+=k.slotType+" "}Math.random()<.01&&MH("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Q});return!1};
  7778. Upm=function(T){T=g.B(wY(T.T).O1.sF.values());for(var Q=T.next();!Q.done;Q=T.next())if(Q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
  7779. $LI=function(T,Q,k,l,v,L,q){k=k===void 0?[]:k;l=l===void 0?"":l;v=v===void 0?"":v;var Y=wY(T.T).Js,U=T.player.getVideoData(1);U&&U.getPlayerResponse();U&&U.Cc();k=L9W(Q,k,Y,wY(T.T).aH);ytg(wY(T.T).sM,l,k.ET,k.xD,Q,v,L,q)};
  7780. L9W=function(T,Q,k,l){Q={ET:[],xD:Q};T=g.B(T);for(var v=T.next();!v.done;v=T.next())if((v=v.value)&&v.renderer!=null){var L=v.renderer;if(!k.U.G().V("html5_enable_vod_lasr_with_notify_pacf")){var q=void 0,Y=void 0,U=void 0,R=void 0,Z=l;g.t((R=L.sandwichedLinearAdRenderer)==null?void 0:R.adVideoStart,n1)?(q=g.t((U=L.sandwichedLinearAdRenderer)==null?void 0:U.adVideoStart,n1),q=Y9X(q,Z),g.n9(L.sandwichedLinearAdRenderer.adVideoStart,n1,q)):g.t((Y=L.linearAdSequenceRenderer)==null?void 0:Y.adStart,n1)&&
  7781. (U=g.t((q=L.linearAdSequenceRenderer)==null?void 0:q.adStart,n1),q=Y9X(U,Z),g.n9(L.linearAdSequenceRenderer.adStart,n1,q))}Q.ET.push(v)}return Q};
  7782. g.T2=function(T){if(typeof DOMParser!="undefined")return da(new DOMParser,u_5(T),"application/xml");throw Error("Your browser does not support loading xml documents");};
  7783. g.Qo=function(T){g.x.call(this);this.callback=T;this.T=new s7(0,0,.4,0,.2,1,1,1);this.delay=new g.ee(this.next,window,this);g.P(this,this.delay)};
  7784. g.Red=function(T){var Q=T.G();return Q.Hn&&!Q.L&&g.Qk(Q)?T.isEmbedsShortsMode()?(T=T.IM(),Math.min(T.width,T.height)>=315):!T.tb():!1};
  7785. g.jU=function(T){g.p.call(this,{X:"div",J:"ytp-more-videos-view",K:{tabIndex:"-1"}});var Q=this;this.api=T;this.S=!0;this.L=new g.Bj(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.j=this.Y=this.scrollPosition=0;this.title=new g.p({X:"h2",J:"ytp-related-title",S6:"{{title}}"});this.previous=new g.p({X:"button",Rk:["ytp-button","ytp-previous"],K:{"aria-label":"\u663e\u793a\u4e4b\u524d\u7684\u63a8\u8350\u89c6\u9891"},W:[g.GI()]});this.C=new g.Qo(function(k){Q.suggestions.element.scrollLeft=
  7786. -k});
  7787. this.next=new g.p({X:"button",Rk:["ytp-button","ytp-next"],K:{"aria-label":"\u663e\u793a\u66f4\u591a\u63a8\u8350\u89c6\u9891"},W:[g.mM()]});g.P(this,this.L);this.B=T.G().Y;g.P(this,this.title);this.title.XB(this.element);this.suggestions=new g.p({X:"div",J:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.XB(this.element);g.P(this,this.previous);this.previous.XB(this.element);this.previous.listen("click",this.vD,this);g.P(this,this.C);ZW9(this);g.P(this,this.next);this.next.XB(this.element);
  7788. this.next.listen("click",this.OB,this);this.L.Z(this.api,"appresize",this.zx);this.L.Z(this.api,"fullscreentoggled",this.pH);this.L.Z(this.api,"videodatachange",this.onVideoDataChange);this.zx(this.api.Hx().getPlayerSize());this.onVideoDataChange()};
  7789. ZW9=function(T){for(var Q={hN:0};Q.hN<16;Q={hN:Q.hN},++Q.hN){var k=new g.p({X:"a",J:"ytp-suggestion-link",K:{href:"{{link}}",target:T.api.G().D,"aria-label":"{{aria_label}}"},W:[{X:"div",J:"ytp-suggestion-image"},{X:"div",J:"ytp-suggestion-overlay",K:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{X:"div",J:"ytp-suggestion-title",S6:"{{title}}"},{X:"div",J:"ytp-suggestion-author",S6:"{{author_and_views}}"},{X:"div",K:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration",
  7790. S6:"{{duration}}"}]}]});g.P(T,k);var l=k.L_("ytp-suggestion-link");g.W2(l,"transitionDelay",Q.hN/20+"s");T.L.Z(l,"click",function(v){return function(L){var q=v.hN;if(T.S){var Y=T.suggestionData[q],U=Y.sessionData;T.B&&T.api.V("web_player_log_click_before_generating_ve_conversion_params")?(T.api.logClick(T.T[q].element),q=Y.fB(),Y={},g.EU(T.api,Y),q=g.sD(q,Y),g.dh(q,T.api,L)):g.wh(L,T.api,T.B,U||void 0)&&T.api.mG(Y.videoId,U,Y.playlistId)}else L.preventDefault(),document.activeElement.blur()}}(Q));
  7791. k.XB(T.suggestions.element);T.T.push(k);T.api.createServerVe(k.element,k)}};
  7792. f19=function(T){if(T.api.G().V("web_player_log_click_before_generating_ve_conversion_params"))for(var Q=Math.floor(-T.scrollPosition/(T.Y+8)),k=Math.min(Q+T.columns,T.suggestionData.length)-1;Q<=k;Q++)T.api.logVisibility(T.T[Q].element,!0)};
  7793. g.kv=function(T){var Q=T.api.jj()?32:16;Q=T.j/2+Q;T.next.element.style.bottom=Q+"px";T.previous.element.style.bottom=Q+"px";Q=T.scrollPosition;var k=T.containerWidth-T.suggestionData.length*(T.Y+8);g.gl(T.element,"ytp-scroll-min",Q>=0);g.gl(T.element,"ytp-scroll-max",Q<=k)};
  7794. mpJ=function(T){for(var Q=T.suggestionData.length,k=0;k<Q;++k){var l=void 0,v=void 0,L=void 0;l=T;var q=l.api.G(),Y=l.suggestionData[k],U=l.T[k];L=l.api.isEmbedsShortsMode()?Y.shortViewCount||"":Y.shortViewCount?Y.author+" \u2022 "+Y.shortViewCount:Y.author;U.element.style.display="";g.W2(U.L_("ytp-suggestion-link"),"display","inline-block");GvA.test(Y.title)&&(U.L_("ytp-suggestion-title").dir="rtl");GvA.test(L)&&(U.L_("ytp-suggestion-author").dir="rtl");v=Y.isLivePlayback?"\u76f4\u64ad":Y.lengthSeconds?
  7795. g.CN(Y.lengthSeconds):"";var R=Y.fB(l.api.isEmbedsShortsMode());if(g.Qk(q)&&!q.V("web_player_log_click_before_generating_ve_conversion_params")){var Z={};g.Ay(l.api,"addEmbedsConversionTrackingParams",[Z]);R=g.sD(R,Z)}q.V("web_player_log_click_before_generating_ve_conversion_params")&&(q=(q=Y.sessionData)&&q.itct)&&l.api.setTrackingParams(U.element,q);U.update({author_and_views:L,duration:v,link:R,title:Y.title,aria_label:Y.ariaLabel||Y.title,is_live:Y.isLivePlayback,aria_hidden:!!Y.ariaLabel,blink_rendering_hack:g.hW||
  7796. g.Va?"will-change: opacity":void 0});v=U.L_("ytp-suggestion-image");l=l.api.isEmbedsShortsMode()?Y.rO("hq2.jpg"):Y.rO();v.style.backgroundImage=l?"url("+l+")":""}if(Q<16)for(;Q<16;++Q)g.W2(T.T[Q].L_("ytp-suggestion-link"),"display","none");g.kv(T)};
  7797. T6H=[];MJ=typeof Object.defineProperties=="function"?Object.defineProperty:function(T,Q,k){if(T==Array.prototype||T==Object.prototype)return T;T[Q]=k.value;return T};
  7798. g.oI=jIC(this);Yb("Symbol",function(T){function Q(L){if(this instanceof Q)throw new TypeError("Symbol is not a constructor");return new k(l+(L||"")+"_"+v++,L)}
  7799. function k(L,q){this.T=L;MJ(this,"description",{configurable:!0,writable:!0,value:q})}
  7800. if(T)return T;k.prototype.toString=function(){return this.T};
  7801. var l="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",v=0;return Q});
  7802. Yb("Symbol.iterator",function(T){if(T)return T;T=Symbol("Symbol.iterator");for(var Q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),k=0;k<Q.length;k++){var l=g.oI[Q[k]];typeof l==="function"&&typeof l.prototype[T]!="function"&&MJ(l.prototype,T,{configurable:!0,writable:!0,value:function(){return k5T(QIX(this))}})}return T});
  7803. var lHg=typeof Object.create=="function"?Object.create:function(T){function Q(){}
  7804. Q.prototype=T;return new Q},I1T=function(){function T(){function k(){}
  7805. new k;Reflect.construct(k,[],function(){});
  7806. return new k instanceof k}
  7807. if(typeof Reflect!="undefined"&&Reflect.construct){if(T())return Reflect.construct;var Q=Reflect.construct;return function(k,l,v){k=Q(k,l);v&&Reflect.setPrototypeOf(k,v.prototype);return k}}return function(k,l,v){v===void 0&&(v=k);
  7808. v=lHg(v.prototype||Object.prototype);return Function.prototype.apply.call(k,v,l)||v}}(),he_;
  7809. if(typeof Object.setPrototypeOf=="function")he_=Object.setPrototypeOf;else{var s_E;a:{var SA1={a:!0},CWT={};try{CWT.__proto__=SA1;s_E=CWT.a;break a}catch(T){}s_E=!1}he_=s_E?function(T,Q){T.__proto__=Q;if(T.__proto__!==Q)throw new TypeError(T+" is not extensible");return T}:null}var RI=he_,B$W=typeof Object.assign=="function"?Object.assign:function(T,Q){for(var k=1;k<arguments.length;k++){var l=arguments[k];
  7810. if(l)for(var v in l)mX(l,v)&&(T[v]=l[v])}return T};
  7811. Yb("Object.assign",function(T){return T||B$W});
  7812. II.prototype.j=function(T){this.T=T};
  7813. II.prototype.return=function(T){this.L={return:T};this.S=this.N};
  7814. II.prototype.Ym=function(T){this.S=T};
  7815. Yb("globalThis",function(T){return T||g.oI});
  7816. Yb("Reflect",function(T){return T?T:{}});
  7817. Yb("Reflect.construct",function(){return I1T});
  7818. Yb("Reflect.setPrototypeOf",function(T){return T?T:RI?function(Q,k){try{return RI(Q,k),!0}catch(l){return!1}}:null});
  7819. Yb("Promise",function(T){function Q(q){this.T=0;this.L=void 0;this.S=[];this.C=!1;var Y=this.Y();try{q(Y.resolve,Y.reject)}catch(U){Y.reject(U)}}
  7820. function k(){this.T=null}
  7821. function l(q){return q instanceof Q?q:new Q(function(Y){Y(q)})}
  7822. if(T)return T;k.prototype.S=function(q){if(this.T==null){this.T=[];var Y=this;this.L(function(){Y.N()})}this.T.push(q)};
  7823. var v=g.oI.setTimeout;k.prototype.L=function(q){v(q,0)};
  7824. k.prototype.N=function(){for(;this.T&&this.T.length;){var q=this.T;this.T=[];for(var Y=0;Y<q.length;++Y){var U=q[Y];q[Y]=null;try{U()}catch(R){this.Y(R)}}}this.T=null};
  7825. k.prototype.Y=function(q){this.L(function(){throw q;})};
  7826. Q.prototype.Y=function(){function q(R){return function(Z){U||(U=!0,R.call(Y,Z))}}
  7827. var Y=this,U=!1;return{resolve:q(this.hj),reject:q(this.N)}};
  7828. Q.prototype.hj=function(q){if(q===this)this.N(new TypeError("A Promise cannot resolve to itself"));else if(q instanceof Q)this.i9(q);else{a:switch(typeof q){case "object":var Y=q!=null;break a;case "function":Y=!0;break a;default:Y=!1}Y?this.qO(q):this.B(q)}};
  7829. Q.prototype.qO=function(q){var Y=void 0;try{Y=q.then}catch(U){this.N(U);return}typeof Y=="function"?this.e6(Y,q):this.B(q)};
  7830. Q.prototype.N=function(q){this.j(2,q)};
  7831. Q.prototype.B=function(q){this.j(1,q)};
  7832. Q.prototype.j=function(q,Y){if(this.T!=0)throw Error("Cannot settle("+q+", "+Y+"): Promise already settled in state"+this.T);this.T=q;this.L=Y;this.T===2&&this.xm();this.D()};
  7833. Q.prototype.xm=function(){var q=this;v(function(){if(q.z9()){var Y=g.oI.console;typeof Y!=="undefined"&&Y.error(q.L)}},1)};
  7834. Q.prototype.z9=function(){if(this.C)return!1;var q=g.oI.CustomEvent,Y=g.oI.Event,U=g.oI.dispatchEvent;if(typeof U==="undefined")return!0;typeof q==="function"?q=new q("unhandledrejection",{cancelable:!0}):typeof Y==="function"?q=new Y("unhandledrejection",{cancelable:!0}):(q=g.oI.document.createEvent("CustomEvent"),q.initCustomEvent("unhandledrejection",!1,!0,q));q.promise=this;q.reason=this.L;return U(q)};
  7835. Q.prototype.D=function(){if(this.S!=null){for(var q=0;q<this.S.length;++q)L.S(this.S[q]);this.S=null}};
  7836. var L=new k;Q.prototype.i9=function(q){var Y=this.Y();q.DX(Y.resolve,Y.reject)};
  7837. Q.prototype.e6=function(q,Y){var U=this.Y();try{q.call(Y,U.resolve,U.reject)}catch(R){U.reject(R)}};
  7838. Q.prototype.then=function(q,Y){function U(G,m){return typeof G=="function"?function(I){try{R(G(I))}catch(z){Z(z)}}:m}
  7839. var R,Z,f=new Q(function(G,m){R=G;Z=m});
  7840. this.DX(U(q,R),U(Y,Z));return f};
  7841. Q.prototype.catch=function(q){return this.then(void 0,q)};
  7842. Q.prototype.DX=function(q,Y){function U(){switch(R.T){case 1:q(R.L);break;case 2:Y(R.L);break;default:throw Error("Unexpected state: "+R.T);}}
  7843. var R=this;this.S==null?L.S(U):this.S.push(U);this.C=!0};
  7844. Q.resolve=l;Q.reject=function(q){return new Q(function(Y,U){U(q)})};
  7845. Q.race=function(q){return new Q(function(Y,U){for(var R=g.B(q),Z=R.next();!Z.done;Z=R.next())l(Z.value).DX(Y,U)})};
  7846. Q.all=function(q){var Y=g.B(q),U=Y.next();return U.done?l([]):new Q(function(R,Z){function f(I){return function(z){G[I]=z;m--;m==0&&R(G)}}
  7847. var G=[],m=0;do G.push(void 0),m++,l(U.value).DX(f(G.length-1),Z),U=Y.next();while(!U.done)})};
  7848. return Q});
  7849. Yb("Object.setPrototypeOf",function(T){return T||RI});
  7850. Yb("Symbol.dispose",function(T){return T?T:Symbol("Symbol.dispose")});
  7851. Yb("SuppressedError",function(T){function Q(k,l,v){if(!(this instanceof Q))return new Q(k,l,v);v=Error(v);"stack"in v&&(this.stack=v.stack);this.message=v.message;this.error=k;this.suppressed=l}
  7852. if(T)return T;g.S(Q,Error);Q.prototype.name="SuppressedError";return Q});
  7853. Yb("WeakMap",function(T){function Q(U){this.T=(Y+=Math.random()+1).toString();if(U){U=g.B(U);for(var R;!(R=U.next()).done;)R=R.value,this.set(R[0],R[1])}}
  7854. function k(){}
  7855. function l(U){var R=typeof U;return R==="object"&&U!==null||R==="function"}
  7856. function v(U){if(!mX(U,q)){var R=new k;MJ(U,q,{value:R})}}
  7857. function L(U){var R=Object[U];R&&(Object[U]=function(Z){if(Z instanceof k)return Z;Object.isExtensible(Z)&&v(Z);return R(Z)})}
  7858. if(function(){if(!T||!Object.seal)return!1;try{var U=Object.seal({}),R=Object.seal({}),Z=new T([[U,2],[R,3]]);if(Z.get(U)!=2||Z.get(R)!=3)return!1;Z.delete(U);Z.set(R,4);return!Z.has(U)&&Z.get(R)==4}catch(f){return!1}}())return T;
  7859. var q="$jscomp_hidden_"+Math.random();L("freeze");L("preventExtensions");L("seal");var Y=0;Q.prototype.set=function(U,R){if(!l(U))throw Error("Invalid WeakMap key");v(U);if(!mX(U,q))throw Error("WeakMap key fail: "+U);U[q][this.T]=R;return this};
  7860. Q.prototype.get=function(U){return l(U)&&mX(U,q)?U[q][this.T]:void 0};
  7861. Q.prototype.has=function(U){return l(U)&&mX(U,q)&&mX(U[q],this.T)};
  7862. Q.prototype.delete=function(U){return l(U)&&mX(U,q)&&mX(U[q],this.T)?delete U[q][this.T]:!1};
  7863. return Q});
  7864. Yb("Map",function(T){function Q(){var Y={};return Y.previous=Y.next=Y.head=Y}
  7865. function k(Y,U){var R=Y[1];return k5T(function(){if(R){for(;R.head!=Y[1];)R=R.previous;for(;R.next!=R.head;)return R=R.next,{done:!1,value:U(R)};R=null}return{done:!0,value:void 0}})}
  7866. function l(Y,U){var R=U&&typeof U;R=="object"||R=="function"?L.has(U)?R=L.get(U):(R=""+ ++q,L.set(U,R)):R="p_"+U;var Z=Y[0][R];if(Z&&mX(Y[0],R))for(Y=0;Y<Z.length;Y++){var f=Z[Y];if(U!==U&&f.key!==f.key||U===f.key)return{id:R,list:Z,index:Y,entry:f}}return{id:R,list:Z,index:-1,entry:void 0}}
  7867. function v(Y){this[0]={};this[1]=Q();this.size=0;if(Y){Y=g.B(Y);for(var U;!(U=Y.next()).done;)U=U.value,this.set(U[0],U[1])}}
  7868. if(function(){if(!T||typeof T!="function"||!T.prototype.entries||typeof Object.seal!="function")return!1;try{var Y=Object.seal({x:4}),U=new T(g.B([[Y,"s"]]));if(U.get(Y)!="s"||U.size!=1||U.get({x:4})||U.set({x:4},"t")!=U||U.size!=2)return!1;var R=U.entries(),Z=R.next();if(Z.done||Z.value[0]!=Y||Z.value[1]!="s")return!1;Z=R.next();return Z.done||Z.value[0].x!=4||Z.value[1]!="t"||!R.next().done?!1:!0}catch(f){return!1}}())return T;
  7869. var L=new WeakMap;v.prototype.set=function(Y,U){Y=Y===0?0:Y;var R=l(this,Y);R.list||(R.list=this[0][R.id]=[]);R.entry?R.entry.value=U:(R.entry={next:this[1],previous:this[1].previous,head:this[1],key:Y,value:U},R.list.push(R.entry),this[1].previous.next=R.entry,this[1].previous=R.entry,this.size++);return this};
  7870. v.prototype.delete=function(Y){Y=l(this,Y);return Y.entry&&Y.list?(Y.list.splice(Y.index,1),Y.list.length||delete this[0][Y.id],Y.entry.previous.next=Y.entry.next,Y.entry.next.previous=Y.entry.previous,Y.entry.head=null,this.size--,!0):!1};
  7871. v.prototype.clear=function(){this[0]={};this[1]=this[1].previous=Q();this.size=0};
  7872. v.prototype.has=function(Y){return!!l(this,Y).entry};
  7873. v.prototype.get=function(Y){return(Y=l(this,Y).entry)&&Y.value};
  7874. v.prototype.entries=function(){return k(this,function(Y){return[Y.key,Y.value]})};
  7875. v.prototype.keys=function(){return k(this,function(Y){return Y.key})};
  7876. v.prototype.values=function(){return k(this,function(Y){return Y.value})};
  7877. v.prototype.forEach=function(Y,U){for(var R=this.entries(),Z;!(Z=R.next()).done;)Z=Z.value,Y.call(U,Z[1],Z[0],this)};
  7878. v.prototype[Symbol.iterator]=v.prototype.entries;var q=0;return v});
  7879. Yb("Set",function(T){function Q(k){this.T=new Map;if(k){k=g.B(k);for(var l;!(l=k.next()).done;)this.add(l.value)}this.size=this.T.size}
  7880. if(function(){if(!T||typeof T!="function"||!T.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),l=new T(g.B([k]));if(!l.has(k)||l.size!=1||l.add(k)!=l||l.size!=1||l.add({x:4})!=l||l.size!=2)return!1;var v=l.entries(),L=v.next();if(L.done||L.value[0]!=k||L.value[1]!=k)return!1;L=v.next();return L.done||L.value[0]==k||L.value[0].x!=4||L.value[1]!=L.value[0]?!1:v.next().done}catch(q){return!1}}())return T;
  7881. Q.prototype.add=function(k){k=k===0?0:k;this.T.set(k,k);this.size=this.T.size;return this};
  7882. Q.prototype.delete=function(k){k=this.T.delete(k);this.size=this.T.size;return k};
  7883. Q.prototype.clear=function(){this.T.clear();this.size=0};
  7884. Q.prototype.has=function(k){return this.T.has(k)};
  7885. Q.prototype.entries=function(){return this.T.entries()};
  7886. Q.prototype.values=function(){return this.T.values()};
  7887. Q.prototype.keys=Q.prototype.values;Q.prototype[Symbol.iterator]=Q.prototype.values;Q.prototype.forEach=function(k,l){var v=this;this.T.forEach(function(L){return k.call(l,L,L,v)})};
  7888. return Q});
  7889. Yb("String.prototype.endsWith",function(T){return T?T:function(Q,k){var l=Ot(this,Q,"endsWith");Q+="";k===void 0&&(k=l.length);k=Math.max(0,Math.min(k|0,l.length));for(var v=Q.length;v>0&&k>0;)if(l[--k]!=Q[--v])return!1;return v<=0}});
  7890. Yb("Array.prototype.find",function(T){return T?T:function(Q,k){return UJJ(this,Q,k).Kr}});
  7891. Yb("Array.prototype.entries",function(T){return T?T:function(){return WT(this,function(Q,k){return[Q,k]})}});
  7892. Yb("Array.prototype.keys",function(T){return T?T:function(){return WT(this,function(Q){return Q})}});
  7893. Yb("String.prototype.startsWith",function(T){return T?T:function(Q,k){var l=Ot(this,Q,"startsWith");Q+="";var v=l.length,L=Q.length;k=Math.max(0,Math.min(k|0,l.length));for(var q=0;q<L&&k<v;)if(l[k++]!=Q[q++])return!1;return q>=L}});
  7894. Yb("Number.isFinite",function(T){return T?T:function(Q){return typeof Q!=="number"?!1:!isNaN(Q)&&Q!==Infinity&&Q!==-Infinity}});
  7895. Yb("String.prototype.repeat",function(T){return T?T:function(Q){var k=Ot(this,null,"repeat");if(Q<0||Q>1342177279)throw new RangeError("Invalid count value");Q|=0;for(var l="";Q;)if(Q&1&&(l+=k),Q>>>=1)k+=k;return l}});
  7896. Yb("Object.entries",function(T){return T?T:function(Q){var k=[],l;for(l in Q)mX(Q,l)&&k.push([l,Q[l]]);return k}});
  7897. Yb("Array.from",function(T){return T?T:function(Q,k,l){k=k!=null?k:function(Y){return Y};
  7898. var v=[],L=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(typeof L=="function"){Q=L.call(Q);for(var q=0;!(L=Q.next()).done;)v.push(k.call(l,L.value,q++))}else for(L=Q.length,q=0;q<L;q++)v.push(k.call(l,Q[q],q));return v}});
  7899. Yb("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
  7900. Yb("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
  7901. Yb("Number.isInteger",function(T){return T?T:function(Q){return Number.isFinite(Q)?Q===Math.floor(Q):!1}});
  7902. Yb("Number.isSafeInteger",function(T){return T?T:function(Q){return Number.isInteger(Q)&&Math.abs(Q)<=Number.MAX_SAFE_INTEGER}});
  7903. Yb("Object.is",function(T){return T?T:function(Q,k){return Q===k?Q!==0||1/Q===1/k:Q!==Q&&k!==k}});
  7904. Yb("Array.prototype.includes",function(T){return T?T:function(Q,k){var l=this;l instanceof String&&(l=String(l));var v=l.length;k=k||0;for(k<0&&(k=Math.max(k+v,0));k<v;k++){var L=l[k];if(L===Q||Object.is(L,Q))return!0}return!1}});
  7905. Yb("String.prototype.includes",function(T){return T?T:function(Q,k){return Ot(this,Q,"includes").indexOf(Q,k||0)!==-1}});
  7906. Yb("Math.log2",function(T){return T?T:function(Q){return Math.log(Q)/Math.LN2}});
  7907. Yb("Object.values",function(T){return T?T:function(Q){var k=[],l;for(l in Q)mX(Q,l)&&k.push(Q[l]);return k}});
  7908. Yb("Math.trunc",function(T){return T?T:function(Q){Q=Number(Q);if(isNaN(Q)||Q===Infinity||Q===-Infinity||Q===0)return Q;var k=Math.floor(Math.abs(Q));return Q<0?-k:k}});
  7909. Yb("Math.clz32",function(T){return T?T:function(Q){Q=Number(Q)>>>0;if(Q===0)return 32;var k=0;(Q&4294901760)===0&&(Q<<=16,k+=16);(Q&4278190080)===0&&(Q<<=8,k+=8);(Q&4026531840)===0&&(Q<<=4,k+=4);(Q&3221225472)===0&&(Q<<=2,k+=2);(Q&2147483648)===0&&k++;return k}});
  7910. Yb("Number.isNaN",function(T){return T?T:function(Q){return typeof Q==="number"&&isNaN(Q)}});
  7911. Yb("Array.prototype.values",function(T){return T?T:function(){return WT(this,function(Q,k){return k})}});
  7912. Yb("Array.prototype.fill",function(T){return T?T:function(Q,k,l){var v=this.length||0;k<0&&(k=Math.max(0,v+k));if(l==null||l>v)l=v;l=Number(l);l<0&&(l=Math.max(0,v+l));for(k=Number(k||0);k<l;k++)this[k]=Q;return this}});
  7913. Yb("Int8Array.prototype.fill",$b);Yb("Uint8Array.prototype.fill",$b);Yb("Uint8ClampedArray.prototype.fill",$b);Yb("Int16Array.prototype.fill",$b);Yb("Uint16Array.prototype.fill",$b);Yb("Int32Array.prototype.fill",$b);Yb("Uint32Array.prototype.fill",$b);Yb("Float32Array.prototype.fill",$b);Yb("Float64Array.prototype.fill",$b);
  7914. Yb("Object.fromEntries",function(T){return T?T:function(Q){var k={};if(!(Symbol.iterator in Q))throw new TypeError(""+Q+" is not iterable");Q=Q[Symbol.iterator].call(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;if(Object(l)!==l)throw new TypeError("iterable for fromEntries should yield objects");k[l[0]]=l[1]}return k}});
  7915. Yb("String.prototype.replaceAll",function(T){return T?T:function(Q,k){if(Q instanceof RegExp&&!Q.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return Q instanceof RegExp?this.replace(Q,k):this.replace(new RegExp(String(Q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),k)}});
  7916. Yb("String.prototype.padStart",function(T){return T?T:function(Q,k){var l=Ot(this,null,"padStart");Q-=l.length;k=k!==void 0?String(k):" ";return(Q>0&&k?k.repeat(Math.ceil(Q/k.length)).substring(0,Q):"")+l}});
  7917. Yb("Array.prototype.findIndex",function(T){return T?T:function(Q,k){return UJJ(this,Q,k).Ej}});
  7918. Yb("Promise.prototype.finally",function(T){return T?T:function(Q){return this.then(function(k){return Promise.resolve(Q()).then(function(){return k})},function(k){return Promise.resolve(Q()).then(function(){throw k;
  7919. })})}});
  7920. Yb("Math.imul",function(T){return T?T:function(Q,k){Q=Number(Q);k=Number(k);var l=Q&65535,v=k&65535;return l*v+((Q>>>16&65535)*v+l*(k>>>16&65535)<<16>>>0)|0}});
  7921. Yb("Math.sign",function(T){return T?T:function(Q){Q=Number(Q);return Q===0||isNaN(Q)?Q:Q>0?1:-1}});
  7922. Yb("WeakSet",function(T){function Q(k){this.T=new WeakMap;if(k){k=g.B(k);for(var l;!(l=k.next()).done;)this.add(l.value)}}
  7923. if(function(){if(!T||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),v=new T([k]);if(!v.has(k)||v.has(l))return!1;v.delete(k);v.add(l);return!v.has(k)&&v.has(l)}catch(L){return!1}}())return T;
  7924. Q.prototype.add=function(k){this.T.set(k,!0);return this};
  7925. Q.prototype.has=function(k){return this.T.has(k)};
  7926. Q.prototype.delete=function(k){return this.T.delete(k)};
  7927. return Q});
  7928. Yb("AggregateError",function(T){function Q(k,l){l=Error(l);"stack"in l&&(this.stack=l.stack);this.errors=k;this.message=l.message}
  7929. if(T)return T;g.S(Q,Error);Q.prototype.name="AggregateError";return Q});
  7930. Yb("Array.prototype.copyWithin",function(T){function Q(k){k=Number(k);return k===Infinity||k===-Infinity?k:k|0}
  7931. return T?T:function(k,l,v){var L=this.length;k=Q(k);l=Q(l);v=v===void 0?L:Q(v);k=k<0?Math.max(L+k,0):Math.min(k,L);l=l<0?Math.max(L+l,0):Math.min(l,L);v=v<0?Math.max(L+v,0):Math.min(v,L);if(k<l)for(;l<v;)l in this?this[k++]=this[l++]:(delete this[k++],l++);else for(v=Math.min(v,L+l-k),k+=v-l;v>l;)--v in this?this[--k]=this[v]:delete this[--k];return this}});
  7932. Yb("Int8Array.prototype.copyWithin",J5);Yb("Uint8Array.prototype.copyWithin",J5);Yb("Uint8ClampedArray.prototype.copyWithin",J5);Yb("Int16Array.prototype.copyWithin",J5);Yb("Uint16Array.prototype.copyWithin",J5);Yb("Int32Array.prototype.copyWithin",J5);Yb("Uint32Array.prototype.copyWithin",J5);Yb("Float32Array.prototype.copyWithin",J5);Yb("Float64Array.prototype.copyWithin",J5);Yb("Array.prototype.at",function(T){return T?T:Fg});
  7933. Yb("Int8Array.prototype.at",yC);Yb("Uint8Array.prototype.at",yC);Yb("Uint8ClampedArray.prototype.at",yC);Yb("Int16Array.prototype.at",yC);Yb("Uint16Array.prototype.at",yC);Yb("Int32Array.prototype.at",yC);Yb("Uint32Array.prototype.at",yC);Yb("Float32Array.prototype.at",yC);Yb("Float64Array.prototype.at",yC);Yb("String.prototype.at",function(T){return T?T:Fg});
  7934. Yb("Array.prototype.findLastIndex",function(T){return T?T:function(Q,k){return Ru5(this,Q,k).Ej}});
  7935. Yb("Int8Array.prototype.findLastIndex",iy);Yb("Uint8Array.prototype.findLastIndex",iy);Yb("Uint8ClampedArray.prototype.findLastIndex",iy);Yb("Int16Array.prototype.findLastIndex",iy);Yb("Uint16Array.prototype.findLastIndex",iy);Yb("Int32Array.prototype.findLastIndex",iy);Yb("Uint32Array.prototype.findLastIndex",iy);Yb("Float32Array.prototype.findLastIndex",iy);Yb("Float64Array.prototype.findLastIndex",iy);Yb("Number.parseInt",function(T){return T||parseInt});var F_,LW,fH5;F_=F_||{};g.VC=this||self;LW="closure_uid_"+(Math.random()*1E9>>>0);fH5=0;g.fW(Gv,Error);Gv.prototype.name="CustomError";var rTC;var CyT,so,$4;CyT=Array.prototype.indexOf?function(T,Q){return Array.prototype.indexOf.call(T,Q,void 0)}:function(T,Q){if(typeof T==="string")return typeof Q!=="string"||Q.length!=1?-1:T.indexOf(Q,0);
  7936. for(var k=0;k<T.length;k++)if(k in T&&T[k]===Q)return k;return-1};
  7937. g.zeW=Array.prototype.lastIndexOf?function(T,Q){return Array.prototype.lastIndexOf.call(T,Q,T.length-1)}:function(T,Q){var k=T.length-1;
  7938. k<0&&(k=Math.max(0,T.length+k));if(typeof T==="string")return typeof Q!=="string"||Q.length!=1?-1:T.lastIndexOf(Q,k);for(;k>=0;k--)if(k in T&&T[k]===Q)return k;return-1};
  7939. g.EA=Array.prototype.forEach?function(T,Q,k){Array.prototype.forEach.call(T,Q,k)}:function(T,Q,k){for(var l=T.length,v=typeof T==="string"?T.split(""):T,L=0;L<l;L++)L in v&&Q.call(k,v[L],L,T)};
  7940. g.bl=Array.prototype.filter?function(T,Q,k){return Array.prototype.filter.call(T,Q,k)}:function(T,Q,k){for(var l=T.length,v=[],L=0,q=typeof T==="string"?T.split(""):T,Y=0;Y<l;Y++)if(Y in q){var U=q[Y];
  7941. Q.call(k,U,Y,T)&&(v[L++]=U)}return v};
  7942. g.IQ=Array.prototype.map?function(T,Q,k){return Array.prototype.map.call(T,Q,k)}:function(T,Q,k){for(var l=T.length,v=Array(l),L=typeof T==="string"?T.split(""):T,q=0;q<l;q++)q in L&&(v[q]=Q.call(k,L[q],q,T));
  7943. return v};
  7944. so=Array.prototype.reduce?function(T,Q,k){return Array.prototype.reduce.call(T,Q,k)}:function(T,Q,k){var l=k;
  7945. (0,g.EA)(T,function(v,L){l=Q.call(void 0,l,v,L,T)});
  7946. return l};
  7947. $4=Array.prototype.some?function(T,Q){return Array.prototype.some.call(T,Q,void 0)}:function(T,Q){for(var k=T.length,l=typeof T==="string"?T.split(""):T,v=0;v<k;v++)if(v in l&&Q.call(void 0,l[v],v,T))return!0;
  7948. return!1};
  7949. g.hm=Array.prototype.every?function(T,Q,k){return Array.prototype.every.call(T,Q,k)}:function(T,Q,k){for(var l=T.length,v=typeof T==="string"?T.split(""):T,L=0;L<l;L++)if(L in v&&!Q.call(k,v[L],L,T))return!1;
  7950. return!0};var PyI={NONE:0,UNB:1},rZg={bD:0,VeK:1,NAm:2,w4d:3},LI={BD:"a",YF6:"d",VIDEO:"v"};iW.prototype.isVisible=function(){return this.gh?this.Pn>=.3:this.Pn>=.5};var NM={MZV:0,Kx6:1},AZT={NONE:0,Vfj:1,WxB:2};var nby="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");hV.prototype.getValue=function(){return this.S};
  7951. g.S(si,hV);si.prototype.L=function(T){this.S===null&&g.YZ(this.Y,T)&&(this.S=T)};
  7952. g.S(SP,hV);SP.prototype.L=function(T){this.S===null&&typeof T==="number"&&(this.S=T)};
  7953. g.S(CJ,hV);CJ.prototype.L=function(T){this.S===null&&typeof T==="string"&&(this.S=T)};Bg.prototype.disable=function(){this.S=!1};
  7954. Bg.prototype.enable=function(){this.S=!0};
  7955. Bg.prototype.isEnabled=function(){return this.S};
  7956. Bg.prototype.reset=function(){this.T={};this.S=!0;this.L={}};var el=document,rK=window;var XmW=lW(1,!0),xZ=lW(610401301,!1);lW(899588437,!1);var wm$=lW(772657768,!1),dpJ=lW(513659523,!1),N$A=lW(568333945,!1),oGt=lW(1331761403,!1);lW(651175828,!1);lW(722764542,!1);lW(748402145,!1);lW(748402146,!1);var Sk5=lW(748402147,!1);lW(333098724,!1);lW(2147483644,!1);lW(2147483645,!1);lW(2147483646,XmW);lW(2147483647,!0);var Pg=!!g.jA("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var as=String.prototype.trim?function(T){return T.trim()}:function(T){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(T)[1]},L9y=/&/g,qA5=/</g,gEt=/>/g,MAu=/"/g,YAH=/'/g,UpT=/\x00/g,vEg=/[\x00&<>"']/;var Oi,ATm=g.VC.navigator;Oi=ATm?ATm.userAgentData||null:null;var FXb=globalThis.trustedTypes,y2;V2.prototype.toString=function(){return this.T+""};kP.prototype.toString=function(){return this.T};
  7957. var i5g=new kP("about:invalid#zClosurez");var I36=vX("tel"),G2H=vX("sms"),y55=[vX("data"),vX("http"),vX("https"),vX("mailto"),vX("ftp"),new oT(function(T){return/^[^:]*([/?#]|$)/.test(T)})],Vf5=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;RT.prototype.toString=function(){return this.T+""};IT.prototype.toString=function(){return this.T+""};BX.prototype.toString=function(){return this.T};var Xs={};g.bWm=String.prototype.repeat?function(T,Q){return T.repeat(Q)}:function(T,Q){return Array(Q+1).join(T)};PX[" "]=function(){};var $1,Gz,BZg,rTJ,cTE,Dpv,ya,ic,a1A;g.Va=JV();g.RF=O55();g.$n=Wg("Edge");g.wj=g.$n||g.RF;$1=Wg("Gecko")&&!(DW(g.KJ(),"WebKit")&&!Wg("Edge"))&&!(Wg("Trident")||Wg("MSIE"))&&!Wg("Edge");g.Y1=DW(g.KJ(),"WebKit")&&!Wg("Edge");Gz=xP();BZg=I15();g.iC=mpC();rTJ=nl();cTE=Wg("iPad");Dpv=Wg("iPod");ya=Kl();ic=DW(g.KJ(),"KaiOS");
  7958. a:{var udm="",nEA=function(){var T=g.KJ();if($1)return/rv:([^\);]+)(\)|;)/.exec(T);if(g.$n)return/Edge\/([\d\.]+)/.exec(T);if(g.RF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(T);if(g.Y1)return/WebKit\/(\S+)/.exec(T);if(g.Va)return/(?:Version)[ \/]?(\S+)/.exec(T)}();
  7959. nEA&&(udm=nEA?nEA[1]:"");if(g.RF){var ls,K9$=g.VC.document;ls=K9$?K9$.documentMode:void 0;if(ls!=null&&ls>parseFloat(udm)){a1A=String(ls);break a}}a1A=udm}var CW5=a1A,s_b={};var Fw,EG;g.Rn=eP();Fw=nl()||Wg("iPod");EG=Wg("iPad");g.TW=WXg();g.hW=Fl();g.mp=Ei()&&!Kl();var DrT=!g.RF&&!Ei();g.h=g.WX.prototype;g.h.clone=function(){return new g.WX(this.x,this.y)};
  7960. g.h.equals=function(T){return T instanceof g.WX&&$P(this,T)};
  7961. g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
  7962. g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
  7963. g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
  7964. g.h.scale=function(T,Q){this.x*=T;this.y*=typeof Q==="number"?Q:T;return this};g.h=g.Ji.prototype;g.h.clone=function(){return new g.Ji(this.width,this.height)};
  7965. g.h.aspectRatio=function(){return this.width/this.height};
  7966. g.h.isEmpty=function(){return!Fs(this)};
  7967. g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
  7968. g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
  7969. g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
  7970. g.h.scale=function(T,Q){this.width*=T;this.height*=typeof Q==="number"?Q:T;return this};yw.prototype.toString=function(){return this.T};
  7971. var Ek={};new yw(Ek,"");var Xm5=/^[a-z][a-z\d-]*$/i,wm6="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),N$t="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),bWT=["action","formaction","href"];var cTb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=T8.prototype;g.h.xB=function(T){return oO(this.T,T)};
  7972. g.h.getElementsByTagName=function(T,Q){return(Q||this.T).getElementsByTagName(String(T))};
  7973. g.h.L_=function(T){return g.gK(T,this.T)};
  7974. g.h.setProperties=MX;g.h.createElement=function(T){return RO(this.T,T)};
  7975. g.h.appendChild=g.mm;g.h.append=function(T,Q){nEt(Qf(T),T,arguments,1)};
  7976. g.h.canHaveChildren=function(T){if(T.nodeType!=1)return!1;switch(T.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
  7977. g.h.removeNode=g.s$;g.h.getChildren=function(T){return T.children!=void 0?T.children:Array.prototype.filter.call(T.childNodes,function(Q){return Q.nodeType==1})};
  7978. g.h.contains=g.SO;NX.prototype.now=function(){return 0};
  7979. NX.prototype.S=function(){return 0};
  7980. NX.prototype.L=function(){return 0};
  7981. NX.prototype.T=function(){return 0};g.S(b5,NX);b5.prototype.now=function(){return AZ()&&rK.performance.now?rK.performance.now():NX.prototype.now.call(this)};
  7982. b5.prototype.S=function(){return AZ()&&rK.performance.memory?rK.performance.memory.totalJSHeapSize||0:NX.prototype.S.call(this)};
  7983. b5.prototype.L=function(){return AZ()&&rK.performance.memory?rK.performance.memory.usedJSHeapSize||0:NX.prototype.L.call(this)};
  7984. b5.prototype.T=function(){return AZ()&&rK.performance.memory?rK.performance.memory.jsHeapSizeLimit||0:NX.prototype.T.call(this)};var r3T=function(){if(!g.VC.addEventListener||!Object.defineProperty)return!1;var T=!1,Q=Object.defineProperty({},"passive",{get:function(){T=!0}});
  7985. try{var k=function(){};
  7986. g.VC.addEventListener("test",k,Q);g.VC.removeEventListener("test",k,Q)}catch(l){}return T}();var PII=HW5("AnimationEnd"),cR=HW5("TransitionEnd");g.h=KO.prototype;g.h.getHeight=function(){return this.bottom-this.top};
  7987. g.h.clone=function(){return new KO(this.top,this.right,this.bottom,this.left)};
  7988. g.h.contains=function(T){return this&&T?T instanceof KO?T.left>=this.left&&T.right<=this.right&&T.top>=this.top&&T.bottom<=this.bottom:T.x>=this.left&&T.x<=this.right&&T.y>=this.top&&T.y<=this.bottom:!1};
  7989. g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
  7990. g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
  7991. g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
  7992. g.h.scale=function(T,Q){Q=typeof Q==="number"?Q:T;this.left*=T;this.right*=T;this.top*=Q;this.bottom*=Q;return this};g.h=g.tZ.prototype;g.h.clone=function(){return new g.tZ(this.left,this.top,this.width,this.height)};
  7993. g.h.contains=function(T){return T instanceof g.WX?T.x>=this.left&&T.x<=this.left+this.width&&T.y>=this.top&&T.y<=this.top+this.height:this.left<=T.left&&this.left+this.width>=T.left+T.width&&this.top<=T.top&&this.top+this.height>=T.top+T.height};
  7994. g.h.getSize=function(){return new g.Ji(this.width,this.height)};
  7995. g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
  7996. g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
  7997. g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
  7998. g.h.scale=function(T,Q){Q=typeof Q==="number"?Q:T;this.left*=T;this.width*=T;this.top*=Q;this.height*=Q;return this};var OW5={};var F9f=aO(function(){var T=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){T=!0}});
  7999. g.VC.addEventListener("test",null,Q)}catch(k){}return T});EET.prototype.isVisible=function(){return vu(el)===1};var pgI=L8(function(T){return typeof T==="number"}),VP=L8(function(T){return typeof T==="string"}),WyC=L8(function(T){return typeof T==="boolean"}),NZ=L8(function(T){return T!=null&&typeof T==="object"&&typeof T.then==="function"}),Xzg=L8(function(T){return typeof T==="function"}),xpA=L8(function(T){return!!T&&(typeof T==="object"||typeof T==="function")});var iWX={Zdd:"allow-forms",Ax6:"allow-modals",jnd:"allow-orientation-lock",bdq:"allow-pointer-lock",If6:"allow-popups",Kt9:"allow-popups-to-escape-sandbox",Gw6:"allow-presentation",Pl9:"allow-same-origin",nod:"allow-scripts",pTB:"allow-top-navigation",uG9:"allow-top-navigation-by-user-activation"},jsT=aO(function(){return VAX()});var vZu=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Z9.prototype.IK=function(T,Q,k){T=T+"//"+Q+k;var l=MPt(this)-k.length;if(l<0)return"";this.T.sort(function(R,Z){return R-Z});
  8000. k=null;Q="";for(var v=0;v<this.T.length;v++)for(var L=this.T[v],q=this.S[L],Y=0;Y<q.length;Y++){if(!l){k=k==null?L:k;break}var U=gZ6(q[Y],this.L,",$");if(U){U=Q+U;if(l>=U.length){l-=U.length;T+=U;Q=this.L;break}k=k==null?L:k}}l="";k!=null&&(l=""+Q+"trn="+k);return T+l};C8.prototype.setInterval=function(T,Q){return rK.setInterval(T,Q)};
  8001. C8.prototype.clearInterval=function(T){rK.clearInterval(T)};
  8002. C8.prototype.setTimeout=function(T,Q){return rK.setTimeout(T,Q)};
  8003. C8.prototype.clearTimeout=function(T){rK.clearTimeout(T)};var ZU=void 0,Ry,WIu=typeof TextDecoder!=="undefined",Sig,ssI=typeof String.prototype.isWellFormed==="function",hW5=typeof TextEncoder!=="undefined";var wgu={},bS=null,dM5=$1||g.Y1||typeof g.VC.btoa=="function";var Ky6=typeof Uint8Array!=="undefined",cV6=!g.RF&&typeof btoa==="function",DM6=/[-_.]/g,bJC={"-":"+",_:"/",".":"="},cu={};rJ.prototype.isEmpty=function(){return this.T==null};
  8004. rJ.prototype.sizeBytes=function(){var T=aQ(this);return T?T.length:0};
  8005. var nZg;var xMf=void 0;var Pu=typeof Symbol==="function"&&typeof Symbol()==="symbol",PW1=xj("jas",void 0,!0),s5=xj(void 0,"1oa"),ac=xj(void 0,Symbol()),HWW=xj(void 0,"0ub"),RCf=xj(void 0,"0ubs"),fMH=xj(void 0,"0ubsb"),BaJ=xj(void 0,"0actk"),r_=xj("m_m","Q3V",!0),GH5=xj(void 0,"vps"),tA_=xj();Math.max.apply(Math,g.ZH(Object.values({Wme:1,tfO:2,uEK:4,KK_:8,lrm:16,ls_:32,fbK:64,TCd:128,pGV:256,TVB:512,t16:1024,S4k:2048,rsK:4096})));var HJT={EC:{value:0,configurable:!0,writable:!0,enumerable:!1}},PBX=Object.defineProperties,Hu=Pu?PW1:"EC",vS,OWW=[];Oo(OWW,7);vS=Object.freeze(OWW);var cG={},Wu={},ri5=Object.freeze({}),F1={};var TS=typeof g.VC.BigInt==="function"&&typeof g.VC.BigInt(0)==="bigint";var p2=L8(function(T){return TS?T>=pmd&&T<=W9m:T[0]==="-"?$M5(T,$pW):$M5(T,JTW)}),$pW=Number.MIN_SAFE_INTEGER.toString(),pmd=TS?BigInt(Number.MIN_SAFE_INTEGER):void 0,JTW=Number.MAX_SAFE_INTEGER.toString(),W9m=TS?BigInt(Number.MAX_SAFE_INTEGER):void 0;var PXt=typeof Uint8Array.prototype.slice==="function",jk=0,ky=0,G8g;var C2=typeof BigInt==="function"?BigInt.asIntN:void 0,LII=typeof BigInt==="function"?BigInt.asUintN:void 0,w_=Number.isSafeInteger,Rc=Number.isFinite,d_=Math.trunc,yV5=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var mng={};var ee_={ULm:!0};var PG;var Io5,hCy;var aof=Ql(0),uq={};WS.prototype.init=function(T,Q,k,l){var v=l===void 0?{}:l;l=v.AT===void 0?!1:v.AT;v=v.s7===void 0?!1:v.s7;this.AT=l;this.s7=v;T&&(T=pg(T,this.s7),this.S=T.buffer,this.N=T.T,this.Y=Q||0,this.L=k!==void 0?this.Y+k:this.S.length,this.T=this.Y)};
  8006. WS.prototype.free=function(){this.clear();VK.length<100&&VK.push(this)};
  8007. WS.prototype.clear=function(){this.S=null;this.N=!1;this.T=this.L=this.Y=0;this.AT=!1};
  8008. WS.prototype.reset=function(){this.T=this.Y};
  8009. var VK=[];TR.prototype.free=function(){this.T.clear();this.S=this.Y=-1;Q$.length<100&&Q$.push(this)};
  8010. TR.prototype.reset=function(){this.T.reset();this.L=this.T.T;this.S=this.Y=-1};
  8011. var Q$=[];var JiT,FIH;Iy.prototype.length=function(){return this.T.length};
  8012. Iy.prototype.end=function(){var T=this.T;this.T=[];return T};var dg=Xb(),F9A=Xb(),EEm=Xb(),yTE=Xb(),iW9=Xb(),VA9=Xb(),Tz$=Xb(),Qs9=Xb(),jsm=Xb(),ksp=Xb(),lWW=Xb();wg.prototype.toJSON=function(){return $y(this)};
  8013. wg.prototype.xo=function(T){return JSON.stringify($y(this,T))};
  8014. wg.prototype.clone=function(){var T=this.g5,Q=T[Hu]|0;return Ev(this,T,Q)?yl(this,T,!0):new this.constructor(FW(T,Q,!1))};
  8015. wg.prototype[r_]=cG;wg.prototype.toString=function(){return this.g5.toString()};var o1C=A7(function(T,Q,k,l,v){if(T.S!==2)return!1;U6(T,SQ(Q,l,k),v);return!0},lMf),v1X=A7(function(T,Q,k,l,v){if(T.S!==2)return!1;
  8016. U6(T,SQ(Q,l,k),v);return!0},lMf),$A=Symbol(),ay=Symbol(),p3=Symbol(),UXT=Symbol(),g1H=Symbol(),bV,rg;var oZd=E6(function(T,Q,k){if(T.S!==1)return!1;iV(Q,k,yK(T.T));return!0},V$,jsm),vZe=E6(function(T,Q,k){if(T.S!==1)return!1;
  8017. T=yK(T.T);iV(Q,k,T===0?void 0:T);return!0},V$,jsm),LyT=E6(function(T,Q,k,l){if(T.S!==1)return!1;
  8018. I2(Q,k,l,yK(T.T));return!0},V$,jsm),qiW=E6(function(T,Q,k){if(T.S!==0)return!1;
  8019. iV(Q,k,JK(T.T));return!0},Tg,Tz$),gZ$=E6(function(T,Q,k){if(T.S!==0)return!1;
  8020. T=JK(T.T);iV(Q,k,T===0?void 0:T);return!0},Tg,Tz$),MPA=E6(function(T,Q,k,l){if(T.S!==0)return!1;
  8021. I2(Q,k,l,JK(T.T));return!0},Tg,Tz$),YiJ=E6(function(T,Q,k){if(T.S!==0)return!1;
  8022. iV(Q,k,eQ(T.T));return!0},QY,yTE),UMA=E6(function(T,Q,k){if(T.S!==0)return!1;
  8023. T=eQ(T.T);iV(Q,k,T===0?void 0:T);return!0},QY,yTE),RW$=E6(function(T,Q,k,l){if(T.S!==0)return!1;
  8024. I2(Q,k,l,eQ(T.T));return!0},QY,yTE),ZJp=E6(function(T,Q,k){if(T.S!==1)return!1;
  8025. iV(Q,k,E5(T.T));return!0},function(T,Q,k){QOy(T,k,qk6(Q))},Qs9),fWe=y$(function(T,Q,k){if(T.S!==1&&T.S!==2)return!1;
  8026. Q=R2(Q,Q[Hu]|0,k);if(T.S==2)for(k=eQ(T.T)>>>0,k=T.T.T+k;T.T.T<k;)Q.push(E5(T.T));else Q.push(E5(T.T));return!0},function(T,Q,k){Q=Fb(qk6,Q,!1);
  8027. if(Q!=null)for(var l=0;l<Q.length;l++)QOy(T,k,Q[l])},Qs9),GsA=E6(function(T,Q,k){if(T.S!==5)return!1;
  8028. iV(Q,k,FV(T.T));return!0},function(T,Q,k){Q=mY(Q);
  8029. Q!=null&&(BW(T,k,5),SY(T.T,Q))},VA9),mMT=E6(function(T,Q,k){if(T.S!==0)return!1;
  8030. iV(Q,k,iq(T.T));return!0},mX5,F9A),IW1=E6(function(T,Q,k,l){if(T.S!==0)return!1;
  8031. I2(Q,k,l,iq(T.T));return!0},mX5,F9A),o6=E6(function(T,Q,k){if(T.S!==2)return!1;
  8032. iV(Q,k,f3(T));return!0},IMb,EEm),hWv=y$(function(T,Q,k){if(T.S!==2)return!1;
  8033. T=f3(T);R2(Q,Q[Hu]|0,k).push(T);return!0},function(T,Q,k){Q=Fb(AP,Q,!0);
  8034. if(Q!=null)for(var l=0;l<Q.length;l++){var v=T,L=k,q=Q[l];q!=null&&zR(v,L,CBX(q))}},EEm),ss_=E6(function(T,Q,k,l){if(T.S!==2)return!1;
  8035. I2(Q,k,l,f3(T));return!0},IMb,EEm),v_,Ls=void 0;
  8036. Ls=Ls===void 0?dg:Ls;v_=new NW(function(T,Q,k,l,v){if(T.S!==2)return!1;l=ek(void 0,l,!0);R2(Q,Q[Hu]|0,k).push(l);U6(T,l,v);return!0},function(T,Q,k,l,v){if(Array.isArray(Q))for(var L=0;L<Q.length;L++)h7b(T,Q[L],k,l,v)},Ls);
  8037. var qc=A7(function(T,Q,k,l,v,L){if(T.S!==2)return!1;var q=Q[Hu]|0;Gd(Q,q,L,k,Eo(q));Q=SQ(Q,l,k);U6(T,Q,v);return!0},h7b),Sid=E6(function(T,Q,k){if(T.S!==2)return!1;
  8038. iV(Q,k,$n5(T));return!0},function(T,Q,k){Q=gPy(Q);
  8039. Q!=null&&zR(T,k,pg(Q,!0).buffer)},ksp),CB9=y$(function(T,Q,k){if(T.S!==2)return!1;
  8040. T=$n5(T);R2(Q,Q[Hu]|0,k).push(T);return!0},function(T,Q,k){Q=Fb(gPy,Q,!1);
  8041. if(Q!=null)for(var l=0;l<Q.length;l++){var v=T,L=k,q=Q[l];q!=null&&zR(v,L,pg(q,!0).buffer)}},ksp),g9=E6(function(T,Q,k){if(T.S!==0)return!1;
  8042. iV(Q,k,eQ(T.T)>>>0);return!0},function(T,Q,k){Q=mY(Q);
  8043. Q!=null&&Q!=null&&(BW(T,k,0),s6(T.T,Q))},iW9),Mc=E6(function(T,Q,k){if(T.S!==0)return!1;
  8044. iV(Q,k,eQ(T.T));return!0},function(T,Q,k){Q=GS(Q);
  8045. Q!=null&&(Q=parseInt(Q,10),BW(T,k,0),yi5(T.T,Q))},lWW);S$g.prototype.register=function(){PX(this)};g.S(lL,wg);lL.prototype.L=BKI([0,vZe,gZ$,-2,UMA]);var bOI={SUk:1,s0:2,BJ_:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};cZX.prototype.vL=function(T){if(typeof T==="string"&&T.length!=0){var Q=this.sH;if(Q.S){T=T.split("&");for(var k=T.length-1;k>=0;k--){var l=T[k].split("="),v=decodeURIComponent(l[0]);l.length>1?(l=decodeURIComponent(l[1]),l=/^[0-9]+$/g.exec(l)?parseInt(l,10):l):l=1;(v=Q.T[v])&&v.L(l)}}}};var Yv=null;var MT=g.VC.performance,BzT=!!(MT&&MT.mark&&MT.measure&&MT.clearMarks),qT=aO(function(){var T;if(T=BzT){var Q=Q===void 0?window:Q;if(Yv===null){Yv="";try{T="";try{T=Q.top.location.hash}catch(l){T=Q.location.hash}if(T){var k=T.match(/\bdeid=([\d,]+)/);Yv=k?k[1]:""}}catch(l){}}Q=Yv;T=!!Q.indexOf&&Q.indexOf("1337")>=0}return T});
  8046. gy.prototype.disable=function(){this.T=!1;this.events!==this.S.google_js_reporting_queue&&(qT()&&g.EA(this.events,xXI),this.events.length=0)};
  8047. gy.prototype.start=function(T,Q){if(!this.T)return null;var k=n1T()||u3y();T=new KmH(T,Q,k);Q="goog_"+T.label+"_"+T.uniqueId+"_start";MT&&qT()&&MT.mark(Q);return T};
  8048. gy.prototype.end=function(T){if(this.T&&typeof T.value==="number"){var Q=n1T()||u3y();T.duration=Q-T.value;Q="goog_"+T.label+"_"+T.uniqueId+"_end";MT&&qT()&&MT.mark(Q);!this.T||this.events.length>2048||this.events.push(T)}};var P5y=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),zg=/#|$/,$XH=/[?&]($|#)/;e75.prototype.RX=function(T,Q,k,l,v){v=v||this.Gf;try{var L=new Z9;L.T.push(1);L.S[1]=f8("context",T);Q.error&&Q.meta&&Q.id||(Q=new bL(ry(Q)));if(Q.msg){var q=Q.msg.substring(0,512);L.T.push(2);L.S[2]=f8("msg",q)}var Y=Q.meta||{};if(this.OJ)try{this.OJ(Y)}catch(m){}if(l)try{l(Y)}catch(m){}l=[Y];L.T.push(3);L.S[3]=l;var U=qiy();if(U.S){var R=U.S.url||"";L.T.push(4);L.S[4]=f8("top",R)}var Z={url:U.T.url||""};if(U.T.url){var f=g.UD(U.T.url);var G=Y4(f[1],null,f[3],f[4])}else G="";R=[Z,{url:G}];L.T.push(5);
  8049. L.S[5]=R;DXb(this.T,v,L,k)}catch(m){try{DXb(this.T,v,{context:"ecmserr",rctx:T,msg:ry(m),url:U&&U.T.url},k)}catch(I){}}return this.qf};
  8050. g.S(bL,aMf);var NT,A3,dy=new gy;NT=new function(){var T="https:";rK&&rK.location&&rK.location.protocol==="http:"&&(T="http:");this.S=T;this.T=.01};
  8051. A3=new e75;rK&&rK.document&&(rK.document.readyState=="complete"?E1C():dy.T&&oQ(rK,"load",function(){E1C()}));var VO6=Date.now(),x4=-1,nI=-1,q5H,Pf=-1,KI=!1;Hf.prototype.equals=function(T,Q){return!!T&&(!(Q===void 0?0:Q)||this.volume==T.volume)&&this.L==T.L&&P2(this.T,T.T)&&!0};t3.prototype.xB=function(){return this.C};
  8052. t3.prototype.equals=function(T,Q){return this.Y.equals(T.Y,Q===void 0?!1:Q)&&this.C==T.C&&P2(this.L,T.L)&&P2(this.B,T.B)&&this.T==T.T&&this.N==T.N&&this.S==T.S&&this.j==T.j};var zW1={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Fy={RJ:"start",Gd:"firstquartile",cj:"midpoint",Bj:"thirdquartile",COMPLETE:"complete",ERROR:"error",S_:"metric",PAUSE:"pause",iT:"resume",dG:"skip",e_:"viewable_impression",E0:"mute",Vz:"unmute",PD:"fullscreen",Ko:"exitfullscreen",rM:"bufferstart",lD:"bufferfinish",po:"fully_viewable_audible_half_duration_impression",Ti:"measurable_impression",XP:"abandon",I4:"engagedview",uD:"impression",AB:"creativeview",LOADED:"loaded",
  8053. QwO:"progress",CLOSE:"close",Ozj:"collapse",tOd:"overlay_resize",WKK:"overlay_unmeasurable_impression",OpO:"overlay_unviewable_impression",fsK:"overlay_viewable_immediate_impression",vh9:"overlay_viewable_end_of_session_impression",jm:"custom_metric_viewable",Nn:"audio_audible",wM:"audio_measurable",VP:"audio_impression"},hHX="start firstquartile midpoint thirdquartile resume loaded".split(" "),sy6=["start","firstquartile","midpoint","thirdquartile"],MQt=["abandon"],fH={UNKNOWN:-1,RJ:0,Gd:1,cj:2,
  8054. Bj:3,COMPLETE:4,S_:5,PAUSE:6,iT:7,dG:8,e_:9,E0:10,Vz:11,PD:12,Ko:13,po:14,Ti:15,XP:16,I4:17,uD:18,AB:19,LOADED:20,jm:21,rM:22,lD:23,VP:27,wM:28,Nn:29};var QQ5={BOd:"addEventListener",v$B:"getMaxSize",fqK:"getScreenSize",DNV:"getState",aqm:"getVersion",xBB:"removeEventListener",O$O:"isViewable"};qob.prototype.update=function(T){T&&T.document&&(this.C=OD(!1,T,this.isMobileDevice),this.T=OD(!0,T,this.isMobileDevice),MC5(this,T),gjH(this,T))};ED.prototype.cancel=function(){Bu().clearTimeout(this.T);this.T=null};
  8055. ED.prototype.schedule=function(){var T=this,Q=Bu(),k=vf().T.T;this.T=Q.setTimeout(oq(k,Dz(143,function(){T.S++;T.L.sample()})),TJ5())};g.h=yY.prototype;g.h.jI=function(){return!1};
  8056. g.h.initialize=function(){return this.isInitialized=!0};
  8057. g.h.tS=function(){return this.T.i9};
  8058. g.h.PU=function(){return this.T.z9};
  8059. g.h.fail=function(T,Q){if(!this.z9||(Q===void 0?0:Q))this.z9=!0,this.i9=T,this.j=0,this.T!=this||VY(this)};
  8060. g.h.getName=function(){return this.T.sK};
  8061. g.h.lW=function(){return this.T.Ey()};
  8062. g.h.Ey=function(){return{}};
  8063. g.h.An=function(){return this.T.j};
  8064. g.h.Tn=function(){var T=J3();T.T=OD(!0,this.L,T.isMobileDevice)};
  8065. g.h.S4=function(){gjH(J3(),this.L)};
  8066. g.h.ez=function(){return this.Y.T};
  8067. g.h.sample=function(){};
  8068. g.h.isActive=function(){return this.T.B};
  8069. g.h.gm=function(T){var Q=this.T;this.T=T.An()>=this.j?T:this;Q!==this.T?(this.B=this.T.B,VY(this)):this.B!==this.T.B&&(this.B=this.T.B,VY(this))};
  8070. g.h.py=function(T){if(T.S===this.T){var Q=!this.Y.equals(T,this.D);this.Y=T;Q&&R$I(this)}};
  8071. g.h.PA=function(){return this.D};
  8072. g.h.dispose=function(){this.xm=!0};
  8073. g.h.wd=function(){return this.xm};g.h=TJ.prototype;g.h.observe=function(){return!0};
  8074. g.h.unobserve=function(){};
  8075. g.h.mU=function(T){this.N=T};
  8076. g.h.dispose=function(){if(!this.wd()){var T=this.S;g.zv(T.N,this);T.D&&this.PA()&&U_y(T);this.unobserve();this.hj=!0}};
  8077. g.h.wd=function(){return this.hj};
  8078. g.h.lW=function(){return this.S.lW()};
  8079. g.h.An=function(){return this.S.An()};
  8080. g.h.tS=function(){return this.S.tS()};
  8081. g.h.PU=function(){return this.S.PU()};
  8082. g.h.gm=function(){};
  8083. g.h.py=function(){this.h5()};
  8084. g.h.PA=function(){return this.xm};g.h=QB.prototype;g.h.An=function(){return this.T.An()};
  8085. g.h.tS=function(){return this.T.tS()};
  8086. g.h.PU=function(){return this.T.PU()};
  8087. g.h.create=function(T,Q,k){var l=null;this.T&&(l=this.TJ(T,Q,k),iL(this.T,l));return l};
  8088. g.h.cF=function(){return this.bL()};
  8089. g.h.bL=function(){return!1};
  8090. g.h.init=function(T){return this.T.initialize()?(iL(this.T,this),this.Y=T,!0):!1};
  8091. g.h.gm=function(T){T.An()==0&&this.Y(T.tS(),this)};
  8092. g.h.py=function(){};
  8093. g.h.PA=function(){return!1};
  8094. g.h.dispose=function(){this.N=!0};
  8095. g.h.wd=function(){return this.N};
  8096. g.h.lW=function(){return{}};jy.prototype.add=function(T,Q,k){++this.L;T=new f95(T,Q,k);this.T.push(new f95(T.S,T.T,T.L+this.L/4096));this.S=!0;return this};sQu.prototype.toString=function(){var T="//pagead2.googlesyndication.com//pagead/gen_204",Q=ll(this.T);Q.length>0&&(T+="?"+Q);return T};g.x.prototype.vA=!1;g.x.prototype.wd=function(){return this.vA};
  8097. g.x.prototype.dispose=function(){this.vA||(this.vA=!0,this.EK())};
  8098. g.x.prototype[Symbol.dispose]=function(){this.dispose()};
  8099. g.x.prototype.addOnDisposeCallback=function(T,Q){this.vA?Q!==void 0?T.call(Q):T():(this.K7||(this.K7=[]),Q&&(T=T.bind(Q)),this.K7.push(T))};
  8100. g.x.prototype.EK=function(){if(this.K7)for(;this.K7.length;)this.K7.shift()()};var Xgd=[0,qiW,GsA,-1];LC.prototype.update=function(T,Q,k){T&&(this.T+=Q,this.S+=Q,this.Y+=Q,this.L=Math.max(this.L,this.Y));if(k===void 0?!T:k)this.Y=0};var XuC=[1,.75,.5,.3,0];qV.prototype.update=function(T,Q,k,l,v,L){L=L===void 0?!0:L;Q=v?Math.min(T,Q):Q;for(v=0;v<this.S.length;v++){var q=this.S[v],Y=Q>0&&Q>=q;q=!(T>0&&T>=q)||k;this.T[v].update(L&&Y,l,!L||q)}};Z7.prototype.update=function(T,Q,k,l){this.C=this.C!=-1?Math.min(this.C,Q.Pn):Q.Pn;this.qO=Math.max(this.qO,Q.Pn);this.hj=this.hj!=-1?Math.min(this.hj,Q.E1):Q.E1;this.i9=Math.max(this.i9,Q.E1);this.zg.update(Q.E1,k.E1,Q.T,T,l);this.Bd+=T;Q.Pn===0&&(this.sK+=T);this.S.update(Q.Pn,k.Pn,Q.T,T,l);k=l||k.gh!=Q.gh?k.isVisible()&&Q.isVisible():k.isVisible();Q=!Q.isVisible()||Q.T;this.p_.update(k,T,Q)};
  8101. Z7.prototype.D_=function(){return this.p_.L>=this.f_};if(el&&el.URL){var wge=el.URL,dMW;if(dMW=!!wge){var Nz$;a:{if(wge){var AVv=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var UZ=AVv.exec(decodeURIComponent(wge));if(UZ){Nz$=UZ[1]&&UZ[1].length>1?UZ[1].substring(1):"true";break a}}catch(T){}}Nz$=""}dMW=Nz$.length>0}A3.qf=!dMW};var bJJ=new KO(0,0,0,0);var rPg=new KO(0,0,0,0);g.S(BU,g.x);g.h=BU.prototype;
  8102. g.h.EK=function(){if(this.C$.T){if(this.U6.Zt){var T=this.C$.T;typeof T.removeEventListener==="function"&&T.removeEventListener("mouseover",this.U6.Zt,lS());this.U6.Zt=null}this.U6.J0&&(T=this.C$.T,typeof T.removeEventListener==="function"&&T.removeEventListener("mouseout",this.U6.J0,lS()),this.U6.J0=null)}this.mE&&this.mE.dispose();this.nY&&this.nY.dispose();delete this.oO;delete this.B6;delete this.Wb;delete this.C$.kd;delete this.C$.T;delete this.U6;delete this.mE;delete this.nY;delete this.sH;
  8103. g.x.prototype.EK.call(this)};
  8104. g.h.rS=function(){return this.nY?this.nY.T:this.position};
  8105. g.h.vL=function(T){vf().vL(T)};
  8106. g.h.PA=function(){return!1};
  8107. g.h.MI=function(){return new Z7};
  8108. g.h.OF=function(){return this.oO};
  8109. g.h.Yl=function(T){return uW6(this,T,1E4)};
  8110. g.h.Aj=function(T,Q,k,l,v,L,q){this.DH||(this.DY&&(T=this.EQ(T,k,v,q),l=l&&this.I2.Pn>=(this.gh()?.3:.5),this.IF(L,T,l),this.U_=Q,T.Pn>0&&-1===this.kG&&(this.kG=Q),this.Xz==-1&&this.D_()&&(this.Xz=Q),this.d3==-2&&(this.d3=Sy(this.rS())?T.Pn:-1),this.I2=T),this.B6(this))};
  8111. g.h.IF=function(T,Q,k){this.OF().update(T,Q,this.I2,k)};
  8112. g.h.Dj=function(){return new iW};
  8113. g.h.EQ=function(T,Q,k,l){k=this.Dj();k.T=Q;Q=Bu().S;Q=vu(el)===0?-1:Q.isVisible()?0:1;k.S=Q;k.Pn=this.C1(T);k.gh=this.gh();k.E1=l;return k};
  8114. g.h.C1=function(T){return this.opacity===0&&wz(this.sH,"opac")===1?0:T};
  8115. g.h.gh=function(){return!1};
  8116. g.h.Yq=function(){return this.mB||this.UC};
  8117. g.h.JX=function(){uL()};
  8118. g.h.W$=function(){uL()};
  8119. g.h.S9=function(){return 0};
  8120. g.h.D_=function(){return this.oO.D_()};
  8121. g.h.lr=function(){var T=this.DY;T=(this.hasCompleted||this.wd())&&!T;var Q=vf().S!==2||this.Jb9;return this.DH||Q&&T?2:this.D_()?4:3};
  8122. g.h.bV=function(){return 0};g.Xy.prototype.next=function(){return g.R6};
  8123. g.R6={done:!0,value:void 0};g.Xy.prototype.Xu=function(){return this};g.S(tkH,iW);var Z3=pGH([void 0,1,2,3,4,8,16]),fs=pGH([void 0,4,8,16]),rVA={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ao("p0",fs),p1:Ao("p1",fs),p2:Ao("p2",fs),p3:Ao("p3",fs),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:NV("mtos1",[0,2,4],!1,fs),mtos2:NV("mtos2",[0,2,4],!1,fs),mtos3:NV("mtos3",[0,2,4],!1,fs),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ao("a0",fs),a1:Ao("a1",fs),a2:Ao("a2",fs),a3:Ao("a3",fs),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
  8124. vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Ao("c0",fs),c1:Ao("c1",fs),c2:Ao("c2",fs),c3:Ao("c3",fs),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ao("qmtos",Z3),qnc:Ao("qnc",Z3),qmv:Ao("qmv",Z3),qnv:Ao("qnv",Z3),
  8125. raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Ao("ss0",fs),ss1:Ao("ss1",fs),ss2:Ao("ss2",fs),ss3:Ao("ss3",fs),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
  8126. omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},cV$=Object.assign({},rVA,{avid:c2("audio"),avas:"avas",vs:"vs"}),DM$={atos:"atos",avt:NV("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(T,Q){return function(k){return k[T]===void 0&&Q!==void 0?Q:k[T]}}("ss",0),
  8127. t:"t"};D7.prototype.getValue=function(){return this.S};
  8128. D7.prototype.update=function(T,Q){T>=32||(this.T&1<<T&&!Q?this.S&=~(1<<T):this.T&1<<T||!Q||(this.S|=1<<T),this.T|=1<<T)};g.S(ul,Z7);
  8129. ul.prototype.update=function(T,Q,k,l){if(!Q.paused){Z7.prototype.update.call(this,T,Q,k,l);var v=dR(Q)&&dR(k),L=(l?Math.min(Q.Pn,k.Pn):k.Pn)>=.5;Wf(Q.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,Q.volume):Q.volume,this.B=Math.max(this.B,Q.volume));L&&(this.xm+=T,this.D+=v?T:0);this.T.update(Q.Pn,k.Pn,Q.T,T,l,v);this.L.update(!0,T);this.N.update(v,T);this.z9.update(k.fullscreen,T);this.Tg.update(v&&!L,T);T=Math.floor(Q.mediaTime/1E3);this.e6.update(T,Q.isVisible());this.K_.update(T,Q.Pn>=1);this.u9.update(T,
  8130. dR(Q))}};Eyb.prototype.S=function(T){this.L||(this.T(T)?(T=Lsg(this.D,this.Y,T),this.N|=T,T=T==0):T=!1,this.L=T)};g.S(KC,Eyb);KC.prototype.T=function(){return!0};
  8131. KC.prototype.B=function(){return!1};
  8132. KC.prototype.getId=function(){var T=this,Q=Ui(Fy,function(k){return k==T.Y});
  8133. return fH[Q].toString()};
  8134. KC.prototype.toString=function(){var T="";this.B()&&(T+="c");this.L&&(T+="s");this.N>0&&(T+=":"+this.N);return this.getId()+T};g.S(x6,KC);x6.prototype.S=function(T,Q){Q=Q===void 0?null:Q;Q!=null&&this.C.push(Q);KC.prototype.S.call(this,T)};g.S(PU,yPC);PU.prototype.S=function(){return null};
  8135. PU.prototype.L=function(){return[]};g.S(HU,TJ);g.h=HU.prototype;g.h.L1=function(){if(this.element){var T=this.element,Q=this.S.T.L;try{try{var k=ojt(T.getBoundingClientRect())}catch(R){k=new KO(0,0,0,0)}var l=k.right-k.left,v=k.bottom-k.top,L=$py(T,Q),q=L.x,Y=L.y;var U=new KO(Math.round(Y),Math.round(q+l),Math.round(Y+v),Math.round(q))}catch(R){U=bJJ.clone()}this.L=U;this.T=Z8H(this,this.L)}};
  8136. g.h.P2=function(){this.B=this.S.Y.T};
  8137. g.h.VX=function(T){var Q=wz(this.sH,"od")==1;return b25(T,this.B,this.element,Q)};
  8138. g.h.uP=function(){this.timestamp=uL()};
  8139. g.h.h5=function(){this.uP();this.L1();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var T=this.element;var Q=new g.Ji(T.videoWidth,T.videoHeight);T=this.T;var k=x1(T),l=T.getHeight(),v=Q.width;Q=Q.height;v<=0||Q<=0||k<=0||l<=0||(v/=Q,Q=k/l,T=T.clone(),v>Q?(k/=v,l=(l-k)/2,l>0&&(l=T.top+l,T.top=Math.round(l),T.bottom=Math.round(l+k))):(l*=v,k=Math.round((k-l)/2),k>0&&(k=T.left+k,T.left=Math.round(k),T.right=Math.round(k+l))));this.T=T}this.P2();
  8140. T=this.T;k=this.B;T=T.left<=k.right&&k.left<=T.right&&T.top<=k.bottom&&k.top<=T.bottom?new KO(Math.max(T.top,k.top),Math.min(T.right,k.right),Math.min(T.bottom,k.bottom),Math.max(T.left,k.left)):new KO(0,0,0,0);k=T.top>=T.bottom||T.left>=T.right?new KO(0,0,0,0):T;T=this.S.Y;Q=v=l=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.VX(k))k=new KO(0,0,0,0);else{l=J3().Y;Q=new KO(0,l.height,l.width,0);var L;l=CC(k,(L=this.N)!=null?L:this.T);v=CC(k,J3().T);Q=CC(k,Q)}L=k.top>=k.bottom||
  8141. k.left>=k.right?new KO(0,0,0,0):H2(k,-this.T.left,-this.T.top);F6()||(v=l=0);this.D=new t3(T,this.element,this.T,L,l,v,this.timestamp,Q)};
  8142. g.h.getName=function(){return this.S.getName()};var aW$=new KO(0,0,0,0);g.S(to,HU);g.h=to.prototype;g.h.observe=function(){this.Y();return!0};
  8143. g.h.py=function(){HU.prototype.h5.call(this)};
  8144. g.h.uP=function(){};
  8145. g.h.L1=function(){};
  8146. g.h.h5=function(){this.Y();HU.prototype.h5.call(this)};
  8147. g.h.gm=function(T){T=T.isActive();T!==this.j&&(T?this.Y():(J3().T=new KO(0,0,0,0),this.T=new KO(0,0,0,0),this.B=new KO(0,0,0,0),this.timestamp=-1));this.j=T};var G2={},LnJ=(G2.firstquartile=0,G2.midpoint=1,G2.thirdquartile=2,G2.complete=3,G2);g.S(pC,BU);g.h=pC.prototype;g.h.PA=function(){return!0};
  8148. g.h.zz=function(){return this.vg==2};
  8149. g.h.Yl=function(T){return uW6(this,T,Math.max(1E4,this.L/3))};
  8150. g.h.Aj=function(T,Q,k,l,v,L,q){var Y=this,U=this.C(this)||{};g.Is(U,v);this.L=U.duration||this.L;this.D=U.isVpaid||this.D;this.sK=U.isYouTube||this.sK;Bu();this.zg=!1;v=Vkt(this,Q);i2g(this)===1&&(L=v);BU.prototype.Aj.call(this,T,Q,k,l,U,L,q);this.yQ&&this.yQ.L&&g.EA(this.B,function(R){R.S(Y)})};
  8151. g.h.IF=function(T,Q,k){BU.prototype.IF.call(this,T,Q,k);Jo(this).update(T,Q,this.I2,k);this.f_=dR(this.I2)&&dR(Q);this.i9==-1&&this.K_&&(this.i9=this.OF().L.T);this.Sj.L=0;T=this.D_();Q.isVisible()&&cU(this.Sj,"vs");T&&cU(this.Sj,"vw");Wf(Q.volume)&&cU(this.Sj,"am");dR(Q)?cU(this.Sj,"a"):cU(this.Sj,"mut");this.YX&&cU(this.Sj,"f");Q.S!=-1&&(cU(this.Sj,"bm"),Q.S==1&&(cU(this.Sj,"b"),dR(Q)&&cU(this.Sj,"umutb")));dR(Q)&&Q.isVisible()&&cU(this.Sj,"avs");this.f_&&T&&cU(this.Sj,"avw");Q.Pn>0&&cU(this.Sj,
  8152. "pv");ey(this,this.OF().L.T,!0)&&cU(this.Sj,"gdr");UB(this.OF().S,1)>=2E3&&cU(this.Sj,"pmx");this.zg&&cU(this.Sj,"tvoff")};
  8153. g.h.MI=function(){return new ul};
  8154. g.h.OF=function(){return this.oO};
  8155. g.h.Dj=function(){return new tkH};
  8156. g.h.EQ=function(T,Q,k,l){T=BU.prototype.EQ.call(this,T,Q,k,l===void 0?-1:l);T.fullscreen=this.YX;T.paused=this.zz();T.volume=k.volume;Wf(T.volume)||(this.QR++,Q=this.I2,Wf(Q.volume)&&(T.volume=Q.volume));k=k.currentTime;T.mediaTime=k!==void 0&&k>=0?k:-1;return T};
  8157. g.h.C1=function(T){return J3(),this.YX?1:BU.prototype.C1.call(this,T)};
  8158. g.h.S9=function(){return 1};
  8159. g.h.getDuration=function(){return this.L};
  8160. g.h.lr=function(){return this.DH?2:Q25(this)?5:this.D_()?4:3};
  8161. g.h.bV=function(){return this.Tg?this.OF().N.L>=2E3?4:3:2};
  8162. g.h.mU=function(T){this.nY&&this.nY.mU(T)};var ul_=g.R_();Iff.prototype.reset=function(){this.T=[];this.S=[]};
  8163. var T9=SC(Iff);g.S(kB,QB);g.h=kB.prototype;g.h.getName=function(){return(this.S?this.S:this.T).getName()};
  8164. g.h.lW=function(){return(this.S?this.S:this.T).lW()};
  8165. g.h.An=function(){return(this.S?this.S:this.T).An()};
  8166. g.h.init=function(T){var Q=!1;(0,g.EA)(this.L,function(k){k.initialize()&&(Q=!0)});
  8167. Q&&(this.Y=T,iL(this.T,this));return Q};
  8168. g.h.dispose=function(){(0,g.EA)(this.L,function(T){T.dispose()});
  8169. QB.prototype.dispose.call(this)};
  8170. g.h.cF=function(){return $4(this.L,function(T){return T.jI()})};
  8171. g.h.bL=function(){return $4(this.L,function(T){return T.jI()})};
  8172. g.h.TJ=function(T,Q,k){return new HU(T,this.T,Q,k)};
  8173. g.h.py=function(T){this.S=T.S};var dsC={threshold:[0,.3,.5,.75,1]};g.S(lp,HU);g.h=lp.prototype;g.h.observe=function(){var T=this;this.qO||(this.qO=uL());if(iOH(298,function(){return NL5(T)}))return!0;
  8174. this.S.fail("msf");return!1};
  8175. g.h.unobserve=function(){if(this.Y&&this.element)try{this.Y.unobserve(this.element),this.j?(this.j.unobserve(this.element),this.j=null):this.C&&(this.C.disconnect(),this.C=null)}catch(T){}};
  8176. g.h.h5=function(){var T=oj(this);T.length>0&&vH(this,T);HU.prototype.h5.call(this)};
  8177. g.h.L1=function(){};
  8178. g.h.VX=function(){return!1};
  8179. g.h.P2=function(){};
  8180. g.h.lW=function(){var T={};return Object.assign(this.S.lW(),(T.niot_obs=this.qO,T.niot_cbk=this.z9,T))};
  8181. g.h.getName=function(){return"nio"};g.S(LH,QB);LH.prototype.getName=function(){return"nio"};
  8182. LH.prototype.bL=function(){return!J3().S&&this.T.T.L.IntersectionObserver!=null};
  8183. LH.prototype.TJ=function(T,Q,k){return new lp(T,this.T,Q,k)};g.S(qi,yY);qi.prototype.ez=function(){return J3().T};
  8184. qi.prototype.jI=function(){var T=bgJ();this.j!==T&&(this.T!=this&&T>this.T.j&&(this.T=this,VY(this)),this.j=T);return T==2};gw.prototype.sample=function(){UX(this,QR(),!1)};
  8185. gw.prototype.Y=function(){var T=F6(),Q=uL();T?(KI||(x4=Q,g.EA(T9.T,function(k){var l=k.OF();l.Jj=nC(l,Q,k.vg!=1)})),KI=!0):(this.C=uV6(this,Q),KI=!1,q5H=Q,g.EA(T9.T,function(k){k.DY&&(k.OF().j=Q)}));
  8186. UX(this,QR(),!T)};
  8187. var Mi=SC(gw);var Kn5=null,PH="",xB=!1;var HgT=Pqg().nt,Zt=Pqg().tp;var pSX={Gs6:"visible",kPd:"audible",ozH:"time",Ezj:"timetype"},Wnt={visible:function(T){return/^(100|[0-9]{1,2})$/.test(T)},
  8188. audible:function(T){return T=="0"||T=="1"},
  8189. timetype:function(T){return T=="mtos"||T=="tos"},
  8190. time:function(T){return/^(100|[0-9]{1,2})%$/.test(T)||/^([0-9])+ms$/.test(T)}};
  8191. Ogb.prototype.setTime=function(T,Q,k){Q=="ms"?(this.L=T,this.Y=-1):(this.L=-1,this.Y=T);this.N=k===void 0?"tos":k;return this};g.S(Ij,KC);Ij.prototype.getId=function(){return this.C};
  8192. Ij.prototype.B=function(){return!0};
  8193. Ij.prototype.T=function(T){var Q=T.OF(),k=T.getDuration();return $4(this.j,function(l){if(l.T!=void 0)var v=JKC(l,Q);else b:{switch(l.N){case "mtos":v=l.S?Q.N.L:Q.L.T;break b;case "tos":v=l.S?Q.N.T:Q.L.T;break b}v=0}v==0?l=!1:(l=l.L!=-1?l.L:k!==void 0&&k>0?l.Y*k:-1,l=l!=-1&&v>=l);return l})};g.S(hs,$ru);hs.prototype.T=function(T){var Q=new WYg;Q.T=rR(T,rVA);Q.S=rR(T,DM$);return Q};g.S(sX,KC);sX.prototype.T=function(T){return Q25(T)};g.S(Su,yPC);g.S(CH,KC);CH.prototype.T=function(T){return T.OF().D_()};g.S(BH,x6);BH.prototype.T=function(T){var Q=g.CW(this.C,wz(vf().sH,"ovms"));return!T.DH&&(T.vg!=0||Q)};g.S(z9,Su);z9.prototype.S=function(){return new BH(this.T)};
  8194. z9.prototype.L=function(){return[new CH("viewable_impression",this.T),new sX(this.T)]};g.S(Xn,to);Xn.prototype.Y=function(){var T=g.jA("ima.admob.getViewability"),Q=wz(this.sH,"queryid");typeof T==="function"&&Q&&T(Q)};
  8195. Xn.prototype.getName=function(){return"gsv"};g.S(ww,QB);ww.prototype.getName=function(){return"gsv"};
  8196. ww.prototype.bL=function(){var T=J3();vf();return T.S&&!1};
  8197. ww.prototype.TJ=function(T,Q,k){return new Xn(this.T,Q,k)};g.S(dw,to);dw.prototype.Y=function(){var T=this,Q=g.jA("ima.bridge.getNativeViewability"),k=wz(this.sH,"queryid");typeof Q==="function"&&k&&Q(k,function(l){g.Rs(l)&&T.C++;var v=l.opt_nativeViewVisibleBounds||{},L=l.opt_nativeViewHidden;T.T=vjt(l.opt_nativeViewBounds||{});var q=T.S.Y;q.T=L?aW$.clone():vjt(v);T.timestamp=l.opt_nativeTime||-1;J3().T=q.T;l=l.opt_nativeVolume;l!==void 0&&(q.volume=l)})};
  8198. dw.prototype.getName=function(){return"nis"};g.S(Ni,QB);Ni.prototype.getName=function(){return"nis"};
  8199. Ni.prototype.bL=function(){var T=J3();vf();return T.S&&!1};
  8200. Ni.prototype.TJ=function(T,Q,k){return new dw(this.T,Q,k)};g.S(As,yY);g.h=As.prototype;g.h.jI=function(){return this.S.So!=null};
  8201. g.h.Ey=function(){var T={};this.e6&&(T.mraid=this.e6);this.hj&&(T.mlc=1);T.mtop=this.S.zo6;this.C&&(T.mse=this.C);this.Bd&&(T.msc=1);T.mcp=this.S.compatibility;return T};
  8202. g.h.vJ=function(T){var Q=g.HT.apply(1,arguments);try{return this.S.So[T].apply(this.S.So,Q)}catch(k){aq(538,k,.01,function(l){l.method=T})}};
  8203. g.h.initialize=function(){var T=this;if(this.isInitialized)return!this.PU();this.isInitialized=!0;if(this.S.compatibility===2)return this.C="ng",this.fail("w"),!1;if(this.S.compatibility===1)return this.C="mm",this.fail("w"),!1;J3().j=!0;this.L.document.readyState&&this.L.document.readyState=="complete"?yKI(this):GJ(this.L,"load",function(){Bu().setTimeout(Dz(292,function(){return yKI(T)}),100)},292);
  8204. return!0};
  8205. g.h.Tn=function(){var T=J3(),Q=jy5(this,"getMaxSize");T.T=new KO(0,Q.width,Q.height,0)};
  8206. g.h.S4=function(){J3().Y=jy5(this,"getScreenSize")};
  8207. g.h.dispose=function(){VQT(this);yY.prototype.dispose.call(this)};var dXu=new function(T,Q){this.key=T;this.defaultValue=Q===void 0?!1:Q;this.valueType="boolean"}("45378663");g.h=rw.prototype;g.h.iV=function(T){zJ(T,!1);Cqg(T)};
  8208. g.h.EA=function(){};
  8209. g.h.CV=function(T,Q,k,l){var v=this;T=new pC(rK,T,k?Q:-1,7,this.K1(),this.iQ());T.V1=l;KXT(T.sH);Xl(T.sH,"queryid",T.V1);T.vL("");xr5(T,function(){return v.IR.apply(v,g.ZH(g.HT.apply(0,arguments)))},function(){return v.Ku.apply(v,g.ZH(g.HT.apply(0,arguments)))});
  8210. (l=SC(ju).T)&&aOH(T,l);this.L&&(T.mU(this.L),this.L=null);T.C$.kd&&SC(rK6);return T};
  8211. g.h.gm=function(T){switch(T.An()){case 0:if(T=SC(ju).T)T=T.T,g.zv(T.N,this),T.D&&this.PA()&&U_y(T);KH();break;case 2:YB()}};
  8212. g.h.py=function(){};
  8213. g.h.PA=function(){return!1};
  8214. g.h.Ku=function(T,Q){T.DH=!0;switch(T.S9()){case 1:q6y(T,Q);break;case 2:this.g4(T)}};
  8215. g.h.fu=function(T){var Q=T.C(T);Q&&(Q=Q.volume,T.Tg=Wf(Q)&&Q>0);lfb(T,0);return EB(T,"start",F6())};
  8216. g.h.H9=function(T,Q,k){UX(Mi,[T],!F6());return this.cA(T,Q,k)};
  8217. g.h.cA=function(T,Q,k){return EB(T,k,F6())};
  8218. g.h.pu=function(T){return pH(T,"firstquartile",1)};
  8219. g.h.W7=function(T){T.K_=!0;return pH(T,"midpoint",2)};
  8220. g.h.DZ=function(T){return pH(T,"thirdquartile",3)};
  8221. g.h.GI=function(T){var Q=pH(T,"complete",4);WU(T);return Q};
  8222. g.h.P7=function(T){T.vg=3;return EB(T,"error",F6())};
  8223. g.h.L2=function(T,Q,k){Q=F6();if(T.zz()&&!Q){var l=T.OF(),v=uL();l.j=v}UX(Mi,[T],!Q);T.zz()&&(T.vg=1);return EB(T,k,Q)};
  8224. g.h.v7=function(T,Q){Q=this.H9(T,Q||{},"skip");WU(T);return Q};
  8225. g.h.u_=function(T,Q){zJ(T,!0);return this.H9(T,Q||{},"fullscreen")};
  8226. g.h.nu=function(T,Q){zJ(T,!1);return this.H9(T,Q||{},"exitfullscreen")};
  8227. g.h.bZ=function(T,Q,k){Q=T.OF();var l=uL();Q.Jj=nC(Q,l,T.vg!=1);UX(Mi,[T],!F6());T.vg==1&&(T.vg=2);return EB(T,k,F6())};
  8228. g.h.Ou=function(T){UX(Mi,[T],!F6());return T.S()};
  8229. g.h.BI=function(T){UX(Mi,[T],!F6());this.zq(T);WU(T);return T.S()};
  8230. g.h.IR=function(){};
  8231. g.h.g4=function(){};
  8232. g.h.zq=function(){};
  8233. g.h.oW=function(){};
  8234. g.h.GF=function(){};
  8235. g.h.iQ=function(){this.T||(this.T=this.GF());return this.T==null?new PU:new z9(this.T)};
  8236. g.h.K1=function(){return new hs};g.S(WH,KC);WH.prototype.T=function(T){return T.bV()==4};g.S($B,x6);$B.prototype.T=function(T){T=T.bV();return T==3||T==4};g.S(Js,Su);Js.prototype.S=function(){return new $B(this.T)};
  8237. Js.prototype.L=function(){return[new WH(this.T)]};g.S(eu,$ru);eu.prototype.T=function(T){T&&(T.e===28&&(T=Object.assign({},T,{avas:3})),T.vs===4||T.vs===5)&&(T=Object.assign({},T,{vs:3}));var Q=new WYg;Q.T=rR(T,cV$);Q.S=rR(T,DM$);return Q};UWg.prototype.S=function(){return g.jA(this.T)};g.S(Fn,rw);g.h=Fn.prototype;g.h.EA=function(T,Q){var k=this,l=SC(ju);if(l.T!=null)switch(l.T.getName()){case "nis":var v=GRI(this,T,Q);break;case "gsv":v=fU5(this,T,Q);break;case "exc":v=mWC(this,T)}v||(Q.opt_overlayAdElement?v=void 0:Q.opt_adElement&&(v=MYu(this,T,Q.opt_adElement,Q.opt_osdId)));v&&v.S9()==1&&(v.C==g.DM&&(v.C=function(L){return k.oW(L)}),Z35(this,v,Q));
  8238. return v};
  8239. g.h.oW=function(T){T.S=0;T.xm=0;if(T.Y=="h"||T.Y=="n"){vf();T.u9&&(vf(),ts(this)!="h"&&ts(this));var Q=g.jA("ima.common.getVideoMetadata");if(typeof Q==="function")try{var k=Q(T.V1)}catch(v){T.S|=4}else T.S|=2}else if(T.Y=="b")if(Q=g.jA("ytads.bulleit.getVideoMetadata"),typeof Q==="function")try{k=Q(T.V1)}catch(v){T.S|=4}else T.S|=2;else if(T.Y=="ml")if(Q=g.jA("ima.common.getVideoMetadata"),typeof Q==="function")try{k=Q(T.V1)}catch(v){T.S|=4}else T.S|=2;else T.S|=1;T.S||(k===void 0?T.S|=8:k===null?
  8240. T.S|=16:g.Rs(k)?T.S|=32:k.errorCode!=null&&(T.xm=k.errorCode,T.S|=64));k==null&&(k={});Q=k;T.j=0;for(var l in zW1)Q[l]==null&&(T.j|=zW1[l]);Y6b(Q,"currentTime");Y6b(Q,"duration");Wf(k.volume)&&Wf()&&(k.volume*=NaN);return k};
  8241. g.h.GF=function(){vf();ts(this)!="h"&&ts(this);var T=IUt(this);return T!=null?new UWg(T):null};
  8242. g.h.g4=function(T){!T.T&&T.DH&&OX(this,T,"overlay_unmeasurable_impression")&&(T.T=!0)};
  8243. g.h.zq=function(T){T.jx&&(T.D_()?OX(this,T,"overlay_viewable_end_of_session_impression"):OX(this,T,"overlay_unviewable_impression"),T.jx=!1)};
  8244. g.h.IR=function(){};
  8245. g.h.CV=function(T,Q,k,l){if(NKy()){var v=wz(vf().sH,"mm"),L={};(v=(L[LI.BD]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",L[LI.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",L)[v])&&CVT(this,v);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&aq(1044,Error())}T=rw.prototype.CV.call(this,T,Q,k,l);this.N&&(Q=this.B,T.N==null&&(T.N=new PiH),Q.T[T.V1]=T.N,T.N.N=ul_);return T};
  8246. g.h.iV=function(T){T&&T.S9()==1&&this.N&&delete this.B.T[T.V1];return rw.prototype.iV.call(this,T)};
  8247. g.h.iQ=function(){this.T||(this.T=this.GF());return this.T==null?new PU:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Js(this.T):new z9(this.T)};
  8248. g.h.K1=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new eu:new hs};
  8249. g.h.mU=function(T,Q,k,l,v){Q=new KO(k,Q+l,k+v,Q);(T=VB(T9,T))?T.mU(Q):this.L=Q};
  8250. var nZd=cf(193,zH5,void 0,gAJ);g.Tv("Goog_AdSense_Lidar_sendVastEvent",nZd);var Ky$=Dz(194,function(T,Q){Q=Q===void 0?{}:Q;T=S6f(SC(Fn),T,Q);return Bg6(T)});
  8251. g.Tv("Goog_AdSense_Lidar_getViewability",Ky$);var xMA=cf(195,function(){return Gsf()});
  8252. g.Tv("Goog_AdSense_Lidar_getUrlSignalsArray",xMA);var PB9=Dz(196,function(){return JSON.stringify(Gsf())});
  8253. g.Tv("Goog_AdSense_Lidar_getUrlSignalsList",PB9);var dWu=g.G5(["//ep2.adtrafficquality.google/sodar/",""]),Ngt=g.G5(["//tpc.googlesyndication.com/sodar/",""]);g.S(ip,Error);g.S(QT,g.x);QT.prototype.Rf=function(){return this.wpc.f()};
  8254. QT.prototype.bI=function(T){this.wpc.c(T)};
  8255. QT.prototype.xd=function(T){return this.wpc.m(c76(T))};
  8256. QT.prototype.JL=function(T){return this.wpc.mws(c76(T))};
  8257. g.S(VR,g.x);VR.prototype.snapshot=function(T){return this.FI.s(Object.assign({},T.uh&&{c:T.uh},T.z3&&{s:T.z3},T.T3!==void 0&&{p:T.T3}))};
  8258. VR.prototype.QT=function(T){this.FI.e(T)};
  8259. VR.prototype.Lr=function(){return this.FI.l()};var xWJ;g.S(kf,g.x);kf.prototype.share=function(){if(this.wd())throw Error("E:AD");this.S++;return this};
  8260. kf.prototype.dispose=function(){--this.S||g.x.prototype.dispose.call(this)};
  8261. xWJ=Symbol.dispose;PVt.prototype.zW=function(T,Q){this.T.zW("/client_streamz/bg/frs",T,Q)};
  8262. H3I.prototype.zW=function(T,Q,k,l,v,L){this.T.zW("/client_streamz/bg/wrl",T,Q,k,l,v,L)};
  8263. tY5.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/ec",T,Q)};
  8264. O3u.prototype.zW=function(T,Q,k){this.T.zW("/client_streamz/bg/el",T,Q,k)};
  8265. pWu.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/cec",T,Q)};
  8266. WsX.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/po/csc",T,Q)};
  8267. $WH.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/po/ctav",T,Q)};
  8268. J7J.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/po/cwsc",T,Q)};g.S(eHg,wg);g.S(vc,wg);var Rl=[1,2,3];var HJm=[0,Rl,ss_,RW$,IW1];var tPA=[0,v_,[0,oZd,qiW]];g.S(LS,wg);var Uc=[1,2,3];var OJE=[0,Uc,MPA,LyT,qc,tPA];g.S(qw,wg);var pg_=[0,v_,HJm,OJE];var WyJ=[0,o6];g.S(gI,wg);var $Mv=[0,o6,-1,mMT];var JVA=[0,o6,-1,YiJ,mMT];g.S(Mw,wg);var GB5=[1,2,3];var eWA=[0,GB5,qc,$Mv,qc,JVA,qc,WyJ];g.S(Yf,wg);Yf.prototype.CS=function(){var T=gL(this,3,AP,3,!0);eC(T);return T[void 0]};Yf.prototype.L=BKI([0,o6,eWA,hWv,v_,pg_,ZJp,fWe]);g.S(EAI,wg);g.h=ZB.prototype;g.h.isEnabled=function(){if(!g.VC.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{w$:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
  8269. g.h.set=function(T,Q,k){var l=!1;if(typeof k==="object"){var v=k.eZ_;l=k.secure||!1;var L=k.domain||void 0;var q=k.path||void 0;var Y=k.w$}if(/[;=\s]/.test(T))throw Error('Invalid cookie name "'+T+'"');if(/[;\r\n]/.test(Q))throw Error('Invalid cookie value "'+Q+'"');Y===void 0&&(Y=-1);k=L?";domain="+L:"";q=q?";path="+q:"";l=l?";secure":"";Y=Y<0?"":Y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Y*1E3)).toUTCString();this.T.cookie=T+"="+Q+k+q+Y+l+(v!=null?";samesite="+
  8270. v:"")};
  8271. g.h.get=function(T,Q){for(var k=T+"=",l=(this.T.cookie||"").split(";"),v=0,L;v<l.length;v++){L=as(l[v]);if(L.lastIndexOf(k,0)==0)return L.slice(k.length);if(L==T)return""}return Q};
  8272. g.h.remove=function(T,Q,k){var l=this.get(T)!==void 0;this.set(T,"",{w$:0,path:Q,domain:k});return l};
  8273. g.h.zG=function(){return fS(this).keys};
  8274. g.h.b0=function(){return fS(this).values};
  8275. g.h.isEmpty=function(){return!this.T.cookie};
  8276. g.h.clear=function(){for(var T=fS(this).keys,Q=T.length-1;Q>=0;Q--)this.remove(T[Q])};
  8277. var Dq=new ZB(typeof document=="undefined"?null:document);Gy.prototype.compress=function(T){var Q,k,l,v;return g.a(function(L){switch(L.S){case 1:return Q=new CompressionStream("gzip"),k=(new Response(Q.readable)).arrayBuffer(),l=Q.writable.getWriter(),g.c(L,l.write((new TextEncoder).encode(T)),2);case 2:return g.c(L,l.close(),3);case 3:return v=Uint8Array,g.c(L,k,4);case 4:return L.return(new v(L.T))}})};
  8278. Gy.prototype.isSupported=function(T){return T<1024?!1:typeof CompressionStream!=="undefined"};g.S(mf,wg);Il.prototype.setInterval=function(T){this.intervalMs=T;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
  8279. Il.prototype.start=function(){var T=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){T.tick()},this.intervalMs),this.S=this.T())};
  8280. Il.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
  8281. Il.prototype.tick=function(){var T=this;if(this.enabled){var Q=Math.max(this.T()-this.S,0);Q<this.intervalMs*.8?this.timer=setTimeout(function(){T.tick()},this.intervalMs-Q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};g.S(hz,wg);g.S(sc,wg);g.S(SH,wg);SH.prototype.oz=function(){return a2(this,1)};g.S(CS,wg);g.S(Bc,wg);var ZIT=k4(Bc);g.S(Xz,wg);var g4C=["platform","platformVersion","architecture","model","uaFullVersion"],zy=new Bc,wI=null;g.S(dI,wg);g.S(UTt,wg);g.S(Nw,wg);g.S(Az,wg);Az.prototype.V=function(){var T=this.g5;return Ai6(T,T[Hu]|0,UTt,7)!==void 0};
  8282. Az.prototype.ue=function(){return Cg(this,mf,16)};g.S(br,wg);br.prototype.yu=function(T){return HS(this,2,T)};cc.prototype.yu=function(T){this.T.yu(T);return this};
  8283. cc.prototype.build=function(T,Q,k,l,v,L){Q=Q===void 0?0:Q;k=k===void 0?0:k;l=l===void 0?null:l;v=v===void 0?0:v;L=L===void 0?0:L;if(!this.Ok){var q=DB(this);var Y=new SH;Y=HS(Y,1,this.S);Y=lq(Y,2,Uv(this.isFinal));k=lq(Y,3,f2(k>0?k:void 0));k=lq(k,4,f2(v>0?v:void 0));k=lq(k,5,f2(L>0?L:void 0));v=k.g5;L=v[Hu]|0;k=Jm(k,L)?k:Ev(k,v,L)?yl(k,v):new k.constructor(FW(v,L,!0));Ns(q,SH,10,k)}q=this.T.clone();k=Date.now().toString();q=lq(q,4,XW(k));T=AK(q,Az,3,T.slice());l&&(q=new hz,l=lq(q,13,f2(l)),q=new sc,
  8284. l=Ns(q,hz,2,l),q=new Nw,l=Ns(q,sc,1,l),l=HS(l,2,9),Ns(T,Nw,18,l));Q&&Kg(T,14,Q);return T};g.al.prototype.S=0;g.al.prototype.reset=function(){this.T=this.L=this.Y;this.S=0};
  8285. g.al.prototype.getValue=function(){return this.L};g.S(jl,wg);var Fyd=k4(jl);g.S(sOu,wg);var m$;m$=new S$g;g.S(xf,g.x);g.h=xf.prototype;g.h.EK=function(){KS(this);this.S.stop();this.e6.stop();g.x.prototype.EK.call(this)};
  8286. g.h.dispatch=function(T){if(T instanceof Az)this.log(T);else try{var Q=new Az,k=T.xo();var l=xM(Q,8,k);this.log(l)}catch(v){Pc(this,4,1)}};
  8287. g.h.log=function(T){Pc(this,2,1);if(this.Bd){T=T.clone();var Q=this.p_++;T=Kg(T,21,Q);this.componentId&&xM(T,26,this.componentId);Q=T;var k=jQ(Q,1);var l=l===void 0?!1:l;var v=typeof k;l=k==null?k:v==="bigint"?String(C2(64,k)):ZO(k)?v==="string"?Sk(k):l?BG(k):zS(k):void 0;l==null&&(l=Date.now(),l=Number.isFinite(l)?l.toString():"0",lq(Q,1,XW(l)));l=jQ(Q,15);l!=null&&(typeof l==="bigint"?p2(l)?l=Number(l):(l=C2(64,l),l=p2(l)?Number(l):String(l)):l=ZO(l)?typeof l==="number"?zS(l):Sk(l):void 0);l!=null||
  8288. Kg(Q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),Ns(Q,mf,16,l));Pc(this,1,1);Q=this.T.length-1E3+1;Q>0&&(this.T.splice(0,Q),this.Y+=Q,Pc(this,3,Q));this.T.push(T);this.td||this.S.enabled||this.S.start()}};
  8289. g.h.flush=function(T,Q){var k=this;if(this.T.length===0)T&&T();else if(this.i9&&this.z9)this.L.S=3,sqf(this);else{var l=Date.now();if(this.Jj>l&&this.xm<l)Q&&Q("throttled");else{this.network&&(typeof this.network.oz==="function"?RVX(this.L,this.network.oz()):this.L.S=0);var v=this.T.length,L=this.L.build(this.T,this.Y,this.B,this.Ht,this.hj,this.qO),q=this.Kw();if(q&&this.sK===q)Q&&Q("stale-auth-token");else{this.T=[];this.S.enabled&&this.S.stop();this.Y=0;l=L.xo();var Y;this.C&&this.C.isSupported(l.length)&&
  8290. (Y=this.C.compress(l));var U=Iz5(this,l,q),R=function(G){k.N.reset();k.S.setInterval(k.N.getValue());if(G){var m=null;try{var I=JSON.stringify(JSON.parse(G.replace(")]}'\n","")));m=Fyd(I)}catch(r){}if(m){G=Number(usX(m,1,Ql("-1")));G>0&&(k.xm=Date.now(),k.Jj=k.xm+G);G=Z1(ac);var z;Pu&&G&&((z=m.g5[G])==null?void 0:z[175237375])!=null&&K8(HWW,3);a:{var w=w===void 0?!1:w;if(Z1(tA_)&&Z1(ac)&&void 0===tA_){z=m.g5;G=z[ac];if(!G)break a;if(G=G.X1)try{G(z,175237375,ee_);break a}catch(r){X1(r)}}w&&(w=m.g5,
  8291. (z=Z1(ac))&&z in w&&(w=w[z])&&delete w[175237375])}w=m$.T?m$.S(m,m$.T,175237375,m$.L):m$.S(m,175237375,null,m$.L);if(w=w===null?void 0:w)w=rL(w,1,-1),w!==-1&&(k.N=new g.al(w<1?1:w,3E5,.1),k.S.setInterval(k.N.getValue()))}}T&&T();k.B=0},Z=function(G,m){var I=dL(L,Az,3);
  8292. var z=Number(usX(L,14));g.ur(k.N);k.S.setInterval(k.N.getValue());G===401&&q&&(k.sK=q);z&&(k.Y+=z);m===void 0&&(m=k.isRetryable(G));m&&(k.T=I.concat(k.T),k.td||k.S.enabled||k.S.start());Pc(k,7,1);Q&&Q("net-send-failed",G);++k.B},f=function(){k.network&&k.network.send(U,R,Z)};
  8293. Y?Y.then(function(G){Pc(k,5,v);U.requestHeaders["Content-Encoding"]="gzip";U.requestHeaders["Content-Type"]="application/binary";U.body=G;U.aJ=2;f()},function(){Pc(k,6,v);
  8294. f()}):f()}}}};
  8295. g.h.isRetryable=function(T){return 500<=T&&T<600||T===401||T===0};Hc.prototype.send=function(T,Q,k){var l=this,v,L,q,Y,U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:return L=(v=l.lT?new AbortController:void 0)?setTimeout(function(){v.abort()},T.timeoutMillis):void 0,g.z5(I,2,3),q=Object.assign({},{method:T.requestType,
  8296. headers:Object.assign({},T.requestHeaders)},T.body&&{body:T.body},T.withCredentials&&{credentials:"include"},{signal:T.timeoutMillis&&v?v.signal:null}),g.c(I,fetch(T.url,q),5);case 5:Y=I.T;if(Y.status!==200){(U=k)==null||U(Y.status);I.Ym(3);break}if((R=Q)==null){I.Ym(7);break}return g.c(I,Y.text(),8);case 8:R(I.T);case 7:case 3:g.aI(I);clearTimeout(L);g.n5(I,0);break;case 2:Z=g.by(I);switch((f=Z)==null?void 0:f.name){case "AbortError":(G=k)==null||G(408);break;default:(m=k)==null||m(400)}I.Ym(3)}})};
  8297. Hc.prototype.oz=function(){return 4};g.S(tz,g.x);tz.prototype.Ha=function(){this.N=!0;return this};
  8298. tz.prototype.build=function(){this.network||(this.network=new Hc);var T=new xf({logSource:this.logSource,Kw:this.Kw?this.Kw:LCt,sessionIndex:this.sessionIndex,aGV:this.dS,Ok:this.Y,td:!1,Ha:this.N,jq:this.jq,network:this.network});g.P(this,T);if(this.S){var Q=this.S,k=DB(T.L);xM(k,7,Q)}T.C=new Gy;this.componentId&&(T.componentId=this.componentId);this.Ht&&(T.Ht=this.Ht);this.pageId&&(T.pageId=this.pageId);this.T&&((k=this.T)?(T.experimentIds||(T.experimentIds=new mf),Q=T.experimentIds,k=k.xo(),xM(Q,
  8299. 4,k)):T.experimentIds&&lq(T.experimentIds,4));this.L&&(T.i9=T.z9);fzI(T.L);this.network.yu&&this.network.yu(this.logSource);this.network.vPq&&this.network.vPq(T);return T};g.S(Oc,g.x);Oc.prototype.flush=function(T){T=T||[];if(T.length){for(var Q=new EAI,k=[],l=0;l<T.length;l++){var v=T[l],L=VYy(v);k.push(L);v.clear()}AK(Q,Yf,1,k);this.T.dispatch(Q);this.T.flush()}};g.h=pS.prototype;g.h.Gi=function(T){var Q=g.HT.apply(1,arguments),k=this.Zj(Q);k?k.push(new XfX(T)):this.VS(T,Q)};
  8300. g.h.VS=function(T){this.T.set(this.Eo(g.HT.apply(1,arguments)),[new XfX(T)])};
  8301. g.h.Zj=function(){var T=this.Eo(g.HT.apply(0,arguments));return this.T.has(T)?this.T.get(T):void 0};
  8302. g.h.I8=function(){var T=this.Zj(g.HT.apply(0,arguments));return T&&T.length?T[0]:void 0};
  8303. g.h.clear=function(){this.T.clear()};
  8304. g.h.Eo=function(){var T=g.HT.apply(0,arguments);return T?T.join(","):"key"};g.S(Wc,pS);Wc.prototype.L=function(T){var Q=g.HT.apply(1,arguments),k=0,l=this.I8(Q);l&&(k=l.T);this.VS(k+T,Q)};g.S($f,pS);$f.prototype.zW=function(T){this.Gi(T,g.HT.apply(1,arguments))};g.Jz.prototype.stopPropagation=function(){this.S=!0};
  8305. g.Jz.prototype.preventDefault=function(){this.defaultPrevented=!0};g.fW(eH,g.Jz);
  8306. eH.prototype.init=function(T,Q){var k=this.type=T.type,l=T.changedTouches&&T.changedTouches.length?T.changedTouches[0]:null;this.target=T.target||T.srcElement;this.currentTarget=Q;Q=T.relatedTarget;Q||(k=="mouseover"?Q=T.fromElement:k=="mouseout"&&(Q=T.toElement));this.relatedTarget=Q;l?(this.clientX=l.clientX!==void 0?l.clientX:l.pageX,this.clientY=l.clientY!==void 0?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0):(this.clientX=T.clientX!==void 0?T.clientX:T.pageX,this.clientY=
  8307. T.clientY!==void 0?T.clientY:T.pageY,this.screenX=T.screenX||0,this.screenY=T.screenY||0);this.button=T.button;this.keyCode=T.keyCode||0;this.key=T.key||"";this.charCode=T.charCode||(k=="keypress"?T.keyCode:0);this.ctrlKey=T.ctrlKey;this.altKey=T.altKey;this.shiftKey=T.shiftKey;this.metaKey=T.metaKey;this.pointerId=T.pointerId||0;this.pointerType=T.pointerType;this.state=T.state;this.T=T;T.defaultPrevented&&eH.Ye.preventDefault.call(this)};
  8308. eH.prototype.stopPropagation=function(){eH.Ye.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0};
  8309. eH.prototype.preventDefault=function(){eH.Ye.preventDefault.call(this);var T=this.T;T.preventDefault?T.preventDefault():T.returnValue=!1};var wfb="closure_listenable_"+(Math.random()*1E6|0);var dTy=0;g.h=yT.prototype;g.h.add=function(T,Q,k,l,v){var L=T.toString();T=this.listeners[L];T||(T=this.listeners[L]=[],this.T++);var q=VT(T,Q,l,v);q>-1?(Q=T[q],k||(Q.fK=!1)):(Q=new NyH(Q,this.src,L,!!l,v),Q.fK=k,T.push(Q));return Q};
  8310. g.h.remove=function(T,Q,k,l){T=T.toString();if(!(T in this.listeners))return!1;var v=this.listeners[T];Q=VT(v,Q,k,l);return Q>-1?(Ec(v[Q]),g.Bm(v,Q),v.length==0&&(delete this.listeners[T],this.T--),!0):!1};
  8311. g.h.removeAll=function(T){T=T&&T.toString();var Q=0,k;for(k in this.listeners)if(!T||k==T){for(var l=this.listeners[k],v=0;v<l.length;v++)++Q,Ec(l[v]);delete this.listeners[k];this.T--}return Q};
  8312. g.h.Nz=function(T,Q,k,l){T=this.listeners[T.toString()];var v=-1;T&&(v=VT(T,Q,k,l));return v>-1?T[v]:null};
  8313. g.h.hasListener=function(T,Q){var k=T!==void 0,l=k?T.toString():"",v=Q!==void 0;return g.jP(this.listeners,function(L){for(var q=0;q<L.length;++q)if(!(k&&L[q].type!=l||v&&L[q].capture!=Q))return!0;return!1})};var oS="closure_lm_"+(Math.random()*1E6|0),RS={},DTb=0,ZT="__closure_events_fn_"+(Math.random()*1E9>>>0);g.fW(g.fL,g.x);g.fL.prototype[wfb]=!0;g.h=g.fL.prototype;g.h.addEventListener=function(T,Q,k,l){g.Qu(this,T,Q,k,l)};
  8314. g.h.removeEventListener=function(T,Q,k,l){u6X(this,T,Q,k,l)};
  8315. g.h.dispatchEvent=function(T){var Q=this.Za;if(Q){var k=[];for(var l=1;Q;Q=Q.Za)k.push(Q),++l}Q=this.ZE;l=T.type||T;if(typeof T==="string")T=new g.Jz(T,Q);else if(T instanceof g.Jz)T.target=T.target||Q;else{var v=T;T=new g.Jz(l,Q);g.Is(T,v)}v=!0;var L;if(k)for(L=k.length-1;!T.S&&L>=0;L--){var q=T.currentTarget=k[L];v=Gl(q,l,!0,T)&&v}T.S||(q=T.currentTarget=Q,v=Gl(q,l,!0,T)&&v,T.S||(v=Gl(q,l,!1,T)&&v));if(k)for(L=0;!T.S&&L<k.length;L++)q=T.currentTarget=k[L],v=Gl(q,l,!1,T)&&v;return v};
  8316. g.h.EK=function(){g.fL.Ye.EK.call(this);this.rA&&this.rA.removeAll(void 0);this.Za=null};
  8317. g.h.listen=function(T,Q,k,l){return this.rA.add(String(T),Q,!1,k,l)};
  8318. g.h.XC=function(T,Q,k,l){return this.rA.add(String(T),Q,!0,k,l)};
  8319. g.h.J6=function(T,Q,k,l){this.rA.remove(String(T),Q,k,l)};
  8320. g.h.Nz=function(T,Q,k,l){return this.rA.Nz(String(T),Q,k,l)};
  8321. g.h.hasListener=function(T,Q){return this.rA.hasListener(T!==void 0?String(T):void 0,Q)};var IS=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(T){return T&&AsyncContext.Snapshot.wrap(T)}:function(T){return T};m5.prototype.get=function(){if(this.S>0){this.S--;var T=this.T;this.T=T.next;T.next=null}else T=this.L();return T};var hd;Sa.prototype.add=function(T,Q){var k=tlH.get();k.set(T,Q);this.S?this.S.next=k:this.T=k;this.S=k};
  8322. Sa.prototype.remove=function(){var T=null;this.T&&(T=this.T,this.T=this.T.next,this.T||(this.S=null),T.next=null);return T};
  8323. var tlH=new m5(function(){return new CL},function(T){return T.reset()});
  8324. CL.prototype.set=function(T,Q){this.T=T;this.scope=Q;this.next=null};
  8325. CL.prototype.reset=function(){this.next=this.scope=this.T=null};var B4,zl=!1,PL6=new Sa;OIC.prototype.reset=function(){this.context=this.S=this.L=this.T=null;this.Y=!1};
  8326. var pfI=new m5(function(){return new OIC},function(T){T.reset()});
  8327. g.rc.prototype.then=function(T,Q,k){return Vlf(this,IS(typeof T==="function"?T:null),IS(typeof Q==="function"?Q:null),k)};
  8328. g.rc.prototype.$goog_Thenable=!0;g.h=g.rc.prototype;g.h.finally=function(T){var Q=this;T=IS(T);return new Promise(function(k,l){eVf(Q,function(v){T();k(v)},function(v){T();
  8329. l(v)})})};
  8330. g.h.kE=function(T,Q){return Vlf(this,null,IS(T),Q)};
  8331. g.h.catch=g.rc.prototype.kE;g.h.cancel=function(T){if(this.T==0){var Q=new KL(T);g.Ad(function(){FCJ(this,Q)},this)}};
  8332. g.h.K0d=function(T){this.T=0;bo(this,2,T)};
  8333. g.h.Gbj=function(T){this.T=0;bo(this,3,T)};
  8334. g.h.kJ=function(){for(var T;T=E45(this);)y36(this,T,this.T,this.C);this.B=!1};
  8335. var kJJ=X1;g.fW(KL,Gv);KL.prototype.name="cancel";g.fW(g.x3,g.fL);g.h=g.x3.prototype;g.h.enabled=!1;g.h.D8=null;g.h.setInterval=function(T){this.d8=T;this.D8&&this.enabled?(this.stop(),this.start()):this.D8&&this.stop()};
  8336. g.h.Nwq=function(){if(this.enabled){var T=g.R_()-this.I7;T>0&&T<this.d8*.8?this.D8=this.e5.setTimeout(this.Gl,this.d8-T):(this.D8&&(this.e5.clearTimeout(this.D8),this.D8=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
  8337. g.h.start=function(){this.enabled=!0;this.D8||(this.D8=this.e5.setTimeout(this.Gl,this.d8),this.I7=g.R_())};
  8338. g.h.stop=function(){this.enabled=!1;this.D8&&(this.e5.clearTimeout(this.D8),this.D8=null)};
  8339. g.h.EK=function(){g.x3.Ye.EK.call(this);this.stop();delete this.e5};g.S(g.td,g.x);g.h=g.td.prototype;g.h.sendIsolatedPayload=function(T){this.N=T;this.L=1};
  8340. g.h.xq=function(){var T=this.S.values();T=[].concat(g.ZH(T)).filter(function(Q){return Q.T.size});
  8341. T.length&&this.C.flush(T,this.N);v6X(T);this.Y=0;this.T.enabled&&this.T.stop()};
  8342. g.h.Rw=function(T){var Q=g.HT.apply(1,arguments);this.S.has(T)||this.S.set(T,new Wc(T,Q))};
  8343. g.h.Wq=function(T){var Q=g.HT.apply(1,arguments);this.S.has(T)||this.S.set(T,new $f(T,Q))};
  8344. g.h.m7=function(T){this.dD(T,1,g.HT.apply(1,arguments))};
  8345. g.h.dD=function(T,Q){var k=g.HT.apply(2,arguments),l=o6t(this,T);l&&l instanceof Wc&&(l.L(Q,k),l76(this))};
  8346. g.h.zW=function(T,Q){var k=g.HT.apply(2,arguments),l=o6t(this,T);l&&l instanceof $f&&(l.zW(Q,k),l76(this))};g.S(OJ,Error);OJ.prototype.toString=function(){var T="RpcError("+(qB5(this.code)||String(this.code))+")";this.message&&(T+=": "+this.message);return T};g6f.prototype.xo=function(T){var Q=[];W4(this,T,Q);return Q.join("")};
  8347. var UVI={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},YBJ=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var EZJ;g.fW($3,ZCt);$3.prototype.T=function(){return new XMLHttpRequest};
  8348. EZJ=new $3;g.fW(g.Jd,g.fL);var sd5=/^https?$/i,yVW=["POST","PUT"],f7y=[];g.h=g.Jd.prototype;g.h.EX=function(){this.dispose();g.zv(f7y,this)};
  8349. g.h.send=function(T,Q,k,l){if(this.T)throw Error("[goog.net.XhrIo] Object is active with another request="+this.j+"; newUri="+T);Q=Q?Q.toUpperCase():"GET";this.j=T;this.Y="";this.S=0;this.qO=!1;this.L=!0;this.T=this.i9?this.i9.T():EZJ.T();this.T.onreadystatechange=IS((0,g.Mp)(this.cX,this));try{this.getStatus(),this.hj=!0,this.T.open(Q,String(T),!0),this.hj=!1}catch(q){this.getStatus();I7b(this,q);return}T=k||"";k=new Map(this.headers);if(l)if(Object.getPrototypeOf(l)===Object.prototype)for(var v in l)k.set(v,
  8350. l[v]);else if(typeof l.keys==="function"&&typeof l.get==="function"){v=g.B(l.keys());for(var L=v.next();!L.done;L=v.next())L=L.value,k.set(L,l.get(L))}else throw Error("Unknown input type for opt_headers: "+String(l));l=Array.from(k.keys()).find(function(q){return"content-type"==q.toLowerCase()});
  8351. v=g.VC.FormData&&T instanceof g.VC.FormData;!g.CW(yVW,Q)||l||v||k.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Q=g.B(k);for(l=Q.next();!l.done;l=Q.next())k=g.B(l.value),l=k.next().value,k=k.next().value,this.T.setRequestHeader(l,k);this.xm&&(this.T.responseType=this.xm);"withCredentials"in this.T&&this.T.withCredentials!==this.C&&(this.T.withCredentials=this.C);try{this.B&&(clearTimeout(this.B),this.B=null),this.z9>0&&(this.getStatus(),this.B=setTimeout(this.Tp.bind(this),
  8352. this.z9)),this.getStatus(),this.D=!0,this.T.send(T),this.D=!1}catch(q){this.getStatus(),I7b(this,q)}};
  8353. g.h.Tp=function(){typeof F_!="undefined"&&this.T&&(this.Y="Timed out after "+this.z9+"ms, aborting",this.S=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
  8354. g.h.abort=function(T){this.T&&this.L&&(this.getStatus(),this.L=!1,this.N=!0,this.T.abort(),this.N=!1,this.S=T||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ea(this))};
  8355. g.h.EK=function(){this.T&&(this.L&&(this.L=!1,this.N=!0,this.T.abort(),this.N=!1),ea(this,!0));g.Jd.Ye.EK.call(this)};
  8356. g.h.cX=function(){this.wd()||(this.hj||this.D||this.N?hQy(this):this.Bnm())};
  8357. g.h.Bnm=function(){hQy(this)};
  8358. g.h.isActive=function(){return!!this.T};
  8359. g.h.isComplete=function(){return g.EJ(this)==4};
  8360. g.h.getStatus=function(){try{return g.EJ(this)>2?this.T.status:-1}catch(T){return-1}};
  8361. g.h.getResponseHeader=function(T){if(this.T&&this.isComplete())return T=this.T.getResponseHeader(T),T===null?void 0:T};
  8362. g.h.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};Q9.prototype.send=function(T,Q,k){Q=Q===void 0?function(){}:Q;
  8363. k=k===void 0?function(){}:k;
  8364. GJJ(T.url,function(l){l=l.target;yu(l)?Q(g.io(l)):k(l.getStatus())},T.requestType,T.body,T.requestHeaders,T.timeoutMillis,T.withCredentials)};
  8365. Q9.prototype.oz=function(){return 1};k2.prototype.done=function(){this.logger.RA(this.event,jh()-this.startTime)};
  8366. g.S(lH,kf);g.S(vn,lH);g.h=vn.prototype;g.h.Rt=function(){};
  8367. g.h.NA=function(){};
  8368. g.h.RA=function(){};
  8369. g.h.O4=function(){};
  8370. g.h.UE=function(){};
  8371. g.h.BQ=function(T,Q,k,l){return l};
  8372. g.h.zA=function(){};
  8373. g.h.Mb=function(){};
  8374. g.h.yL=function(){};
  8375. g.S(Li,lH);g.h=Li.prototype;g.h.update=function(T){this.logger.dispose();this.logger=T};
  8376. g.h.NA=function(T){this.logger.NA(T)};
  8377. g.h.RA=function(T,Q){this.logger.RA(T,Q)};
  8378. g.h.O4=function(T){this.logger.O4(T)};
  8379. g.h.UE=function(){this.logger.UE()};
  8380. g.h.BQ=function(T,Q,k,l){return this.logger.BQ(T,Q,k,l)};
  8381. g.h.zA=function(T){this.logger.zA(T)};
  8382. g.h.Mb=function(T){this.logger.Mb(T)};
  8383. g.h.yL=function(T){this.logger.yL(T)};
  8384. g.h.Rt=function(T){this.logger.Rt(T)};
  8385. g.S(BRJ,g.x);g.S(qS,lH);g.h=qS.prototype;g.h.Rt=function(T){this.metrics.geB.zW(T,this.XJ)};
  8386. g.h.NA=function(T){this.metrics.eventCount.ML(T,this.XJ)};
  8387. g.h.RA=function(T,Q){this.metrics.Ll.zW(Q,T,this.XJ)};
  8388. g.h.O4=function(T){this.metrics.errorCount.ML(T,this.XJ)};
  8389. g.h.BQ=function(T,Q,k,l){function v(Y){if(!L.wd()){var U=jh()-q;L.metrics.oo9.zW(U,T,k,Y,Q,L.XJ)}}
  8390. var L=this,q=jh();l.then(function(){return void v(0)},function(Y){return void v(Y instanceof OJ?Y.code:-1)});
  8391. return l};
  8392. g.h.zA=function(T){this.metrics.QnB.ML(T,this.XJ)};
  8393. g.h.Mb=function(T){this.metrics.HS.ML(T,this.XJ)};
  8394. g.h.yL=function(T){this.metrics.EoO.ML(T,this.XJ)};
  8395. g.S(gb,qS);gb.prototype.UE=function(){zQX(this.T)};g.S(MS,wg);g.S(Y2,wg);g.S(Up,wg);var xV5=k4(Up),dVX=function(T){return L8(function(Q){return Q instanceof T&&!Jm(Q)})}(Up);
  8396. Up.messageId="bfkj";g.S(XUX,wg);g.S(jH,wg);g.S(R5,wg);var NRH=k4(R5);g.S(fi,g.x);fi.prototype.snapshot=function(T){if(this.wd())throw Error("Already disposed");this.logger.NA("n");var Q=this.logger.share();return this.L.then(function(k){var l=k.Wj;return new Promise(function(v){var L=new k2(Q,"n");l(function(q){L.done();Q.Rt(q.length);Q.UE();Q.dispose();v(q)},[T.uh,
  8397. T.z3,T.QP,T.T3])})})};
  8398. fi.prototype.Gq=function(T){var Q=this;if(this.wd())throw Error("Already disposed");this.logger.NA("n");var k=o5(this.logger,function(){return Q.Y([T.uh,T.z3,T.QP,T.T3])},"n");
  8399. this.logger.Rt(k.length);this.logger.UE();return k};
  8400. fi.prototype.QT=function(T){this.L.then(function(Q){var k;(k=Q.sKj)==null||k(T)})};
  8401. fi.prototype.Lr=function(){return this.logger.share()};g.S(I5,wg);g.S(h8,wg);sp.prototype.Xo=function(T){return OCu(this,T,new vn,0)};g.S(Sh,g.x);Sh.prototype.snapshot=function(T){var Q=this;return g.a(function(k){switch(k.S){case 1:if(Q.wd())throw Error("Already disposed");if(Q.S||Q.C){k.Ym(2);break}return g.c(k,Q.N.promise,2);case 2:if(!Q.S){k.Ym(4);break}return g.c(k,Q.S.snapshot(T),5);case 5:return k.return(k.T);case 4:throw Q.C;}})};
  8402. Sh.prototype.QT=function(T){var Q,k;(Q=this.S)==null||(k=Q.QT)==null||k.call(Q,T)};
  8403. Sh.prototype.handleError=function(T){if(!this.wd()){this.C=T;this.N.resolve();var Q,k;(k=(Q=this.options).gBd)==null||k.call(Q,T)}};
  8404. Sh.prototype.Lr=function(){return this.logger.share()};
  8405. var $Vu={Tcj:432E5,Lg:3E5,xG:10,xW:1E4,X7:3E4,j3:3E4,agm:6E4,Ea:1E3,o8:6E4,Qe:6E5,hq:.25,cZ:2,maxAttempts:10};var iJ_,QjT=(iJ_=Math.imul)!=null?iJ_:function(T,Q){return T*Q|0},Xp=[196,
  8406. 200,224,18];wb.prototype.xo=function(){return String(this.T)+","+this.S.join()};
  8407. wb.prototype.o2=function(T,Q){var k=void 0;if(this.S[this.T]!==T){var l=this.S.indexOf(T);l!==-1?(this.S.splice(l,1),l<this.T&&this.T--,this.S.splice(this.T,0,T)):(k=this.S[this.T],this.S[this.T]=T)}this.T=(this.T+1)%this.maxItems;T=TwJ("iU5q-!O9@$",this.xo());k&&T&&Q(k);return T};var Uit={toString:function(T){var Q=[],k=0;T-=-2147483648;Q[k++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(T%52);for(T=Math.floor(T/52);T>0;)Q[k++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(T%62),T=Math.floor(T/62);return Q.join("")}};var ZH5;g.S(NS,g.x);NS.prototype.JL=function(T,Q){var k=this.xd(T);Q==null||Q(k);return o5(this.logger,function(){return g.dJ(k,2)},this.S)};
  8408. ZH5=Symbol.dispose;g.S(rb,NS);rb.prototype.xd=function(T,Q){var k=this;this.logger.NA(this.T);++this.N>=this.B&&this.L.resolve();var l=T();T=o5(this.logger,function(){return k.Y(l)},"C");
  8409. if(T===void 0)throw new ip(17,"YNJ:Undefined");if(!(T instanceof Uint8Array))throw new ip(18,"ODM:Invalid");Q==null||Q(T);return T};
  8410. g.S(cn,NS);cn.prototype.xd=function(){return this.Y};
  8411. g.S(Db,NS);Db.prototype.xd=function(){var T=this;return o5(this.logger,function(){return Am(T.Y)},"d")};
  8412. Db.prototype.JL=function(){return this.Y};
  8413. g.S(a5,NS);a5.prototype.xd=function(){if(this.Y)return this.Y;this.Y=ftT(this,function(T){return"_"+Rtg(T)});
  8414. return ftT(this,function(T){return T})};
  8415. g.S(ni,NS);ni.prototype.xd=function(){var T=Math.floor(Date.now()/1E3),Q=[Math.random()*255,Math.random()*255],k=Q.concat([this.Y&255,this.clientState],[T>>24&255,T>>16&255,T>>8&255,T&255]);T=new Uint8Array(2+k.length);T[0]=34;T[1]=k.length;T.set(k,2);k=T.subarray(2);for(var l=Q=Q.length;l<k.length;++l)k[l]^=k[l%Q];this.logger.zA(this.clientState);return T};var miH={Ua:3E4,TwO:2E4};g.S(x2,g.x);g.h=x2.prototype;g.h.Rf=function(){return this.L.promise};
  8416. g.h.xd=function(T){return wHI(this,Object.assign({},T),!1)};
  8417. g.h.JL=function(T){return wHI(this,Object.assign({},T),!0)};
  8418. g.h.bI=function(T){if(!(T>150))try{this.cache=new qXX(T,this.logger)}catch(Q){this.reportError(new ip(22,"GBJ:init",Q))}};
  8419. g.h.reportError=function(T){this.logger.O4(T.code);this.onError(T);return T};
  8420. var ItJ=function(T){return L8(function(Q){if(!xpA(Q))return!1;for(var k=g.B(Object.entries(T)),l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;if(!(l in Q)){if(v.WHe===!0)continue;return!1}if(!v(Q[l]))return!1}return!0})}({FI:function(T){return L8(function(Q){return Q instanceof T})}(Sh)},"");var Vay=(new Date).getTime();g.S(t8,wg);var VPA=k4(t8);dif.prototype.getMetadata=function(){return this.metadata};Op.prototype.getMetadata=function(){return this.metadata};
  8421. Op.prototype.getStatus=function(){return this.status};pi.prototype.C=function(T,Q){Q=Q===void 0?{}:Q;return new dif(T,this,Q)};
  8422. pi.prototype.getName=function(){return this.name};var TaW=new pi("/google.internal.waa.v1.Waa/Create",I5,t8,function(T){return T.xo()},VPA);g.S(Wn,wg);var HCb=new pi("/google.internal.waa.v1.Waa/GenerateIT",h8,Wn,function(T){return T.xo()},k4(Wn));var lB6=new Set(["SAPISIDHASH","APISIDHASH"]);g.S($2,wg);$2.prototype.getValue=function(){var T=jQ(this,2);if(Array.isArray(T)||T instanceof wg)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return YM(this,2)};g.S(J8,wg);J8.prototype.getMessage=function(){return Df(this,2)};
  8423. var Diy=k4(J8);eh.prototype.cz=function(T,Q){T=="data"?this.L.push(Q):T=="metadata"?this.N.push(Q):T=="status"?this.B.push(Q):T=="end"?this.Y.push(Q):T=="error"&&this.S.push(Q);return this};
  8424. eh.prototype.removeListener=function(T,Q){T=="data"?V9(this.L,Q):T=="metadata"?V9(this.N,Q):T=="status"?V9(this.B,Q):T=="end"?V9(this.Y,Q):T=="error"&&V9(this.S,Q);return this};
  8425. eh.prototype.cancel=function(){this.T.abort()};
  8426. eh.prototype.cancel=eh.prototype.cancel;eh.prototype.removeListener=eh.prototype.removeListener;eh.prototype.on=eh.prototype.cz;g.S(Asf,Error);g.fW(g.Tm,ZCt);g.Tm.prototype.T=function(){var T=new Qq(this.Y,this.L);this.S&&T.setCredentialsMode(this.S);return T};
  8427. g.Tm.prototype.setCredentialsMode=function(T){this.S=T};
  8428. g.fW(Qq,g.fL);g.h=Qq.prototype;g.h.open=function(T,Q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qO=T;this.z9=Q;this.readyState=1;je(this)};
  8429. g.h.send=function(T){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.j.signal.aborted)throw this.abort(),Error("Request was aborted.");this.T=!0;var Q={headers:this.D,method:this.qO,credentials:this.N,cache:void 0,signal:this.j.signal};T&&(Q.body=T);(this.hj||g.VC).fetch(new Request(this.z9,Q)).then(this.b_.bind(this),this.Xg.bind(this))};
  8430. g.h.abort=function(){this.response=this.responseText="";this.D=new Headers;this.status=0;this.j.abort();this.L&&this.L.cancel("Request was aborted.").catch(function(){});
  8431. this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,kQ(this));this.readyState=0};
  8432. g.h.b_=function(T){if(this.T&&(this.Y=T,this.S||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.S=T.headers,this.readyState=2,je(this)),this.T&&(this.readyState=3,je(this),this.T)))if(this.responseType==="arraybuffer")T.arrayBuffer().then(this.Ar.bind(this),this.Xg.bind(this));else if(typeof g.VC.ReadableStream!=="undefined"&&"body"in T){this.L=T.body.getReader();if(this.B){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
  8433. []}else this.response=this.responseText="",this.C=new TextDecoder;at5(this)}else T.text().then(this.jC.bind(this),this.Xg.bind(this))};
  8434. g.h.NH=function(T){if(this.T){if(this.B&&T.value)this.response.push(T.value);else if(!this.B){var Q=T.value?T.value:new Uint8Array(0);if(Q=this.C.decode(Q,{stream:!T.done}))this.response=this.responseText+=Q}T.done?kQ(this):je(this);this.readyState==3&&at5(this)}};
  8435. g.h.jC=function(T){this.T&&(this.response=this.responseText=T,kQ(this))};
  8436. g.h.Ar=function(T){this.T&&(this.response=T,kQ(this))};
  8437. g.h.Xg=function(){this.T&&kQ(this)};
  8438. g.h.setRequestHeader=function(T,Q){this.D.append(T,Q)};
  8439. g.h.getResponseHeader=function(T){return this.S?this.S.get(T.toLowerCase())||"":""};
  8440. g.h.getAllResponseHeaders=function(){if(!this.S)return"";for(var T=[],Q=this.S.entries(),k=Q.next();!k.done;)k=k.value,T.push(k[0]+": "+k[1]),k=Q.next();return T.join("\r\n")};
  8441. g.h.setCredentialsMode=function(T){this.N=T};
  8442. Object.defineProperty(Qq.prototype,"withCredentials",{get:function(){return this.N==="include"},
  8443. set:function(T){this.setCredentialsMode(T?"include":"same-origin")}});g.lN.prototype.toString=function(){var T=[],Q=this.N;Q&&T.push(YQ(Q,QTd,!0),":");var k=this.T;if(k||Q=="file")T.push("//"),(Q=this.j)&&T.push(YQ(Q,QTd,!0),"@"),T.push(g.Nn(k).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),k=this.L,k!=null&&T.push(":",String(k));if(k=this.S)this.T&&k.charAt(0)!="/"&&T.push("/"),T.push(YQ(k,k.charAt(0)=="/"?jT9:kH$,!0));(k=this.Y.toString())&&T.push("?",k);(k=this.B)&&T.push("#",YQ(k,loJ));return T.join("")};
  8444. g.lN.prototype.resolve=function(T){var Q=this.clone(),k=!!T.N;k?g.oZ(Q,T.N):k=!!T.j;k?Q.j=T.j:k=!!T.T;k?g.v0(Q,T.T):k=T.L!=null;var l=T.S;if(k)g.LV(Q,T.L);else if(k=!!T.S){if(l.charAt(0)!="/")if(this.T&&!this.S)l="/"+l;else{var v=Q.S.lastIndexOf("/");v!=-1&&(l=Q.S.slice(0,v+1)+l)}v=l;if(v==".."||v==".")l="";else if(g.rz(v,"./")||g.rz(v,"/.")){l=AV(v,"/");v=v.split("/");for(var L=[],q=0;q<v.length;){var Y=v[q++];Y=="."?l&&q==v.length&&L.push(""):Y==".."?((L.length>1||L.length==1&&L[0]!="")&&L.pop(),
  8445. l&&q==v.length&&L.push("")):(L.push(Y),l=!0)}l=L.join("/")}else l=v}k?Q.S=l:k=T.Y.toString()!=="";k?qj(Q,T.Y.clone()):k=!!T.B;k&&(Q.B=T.B);return Q};
  8446. g.lN.prototype.clone=function(){return new g.lN(this)};
  8447. var QTd=/[#\/\?@]/g,kH$=/[#\?:]/g,jT9=/[#\?]/g,PpH=/[#\?@]/g,loJ=/#/g;g.h=Mj.prototype;g.h.add=function(T,Q){Zg(this);this.L=null;T=fV(this,T);var k=this.T.get(T);k||this.T.set(T,k=[]);k.push(Q);this.S=this.S+1;return this};
  8448. g.h.remove=function(T){Zg(this);T=fV(this,T);return this.T.has(T)?(this.L=null,this.S=this.S-this.T.get(T).length,this.T.delete(T)):!1};
  8449. g.h.clear=function(){this.T=this.L=null;this.S=0};
  8450. g.h.isEmpty=function(){Zg(this);return this.S==0};
  8451. g.h.forEach=function(T,Q){Zg(this);this.T.forEach(function(k,l){k.forEach(function(v){T.call(Q,v,l,this)},this)},this)};
  8452. g.h.zG=function(){Zg(this);for(var T=Array.from(this.T.values()),Q=Array.from(this.T.keys()),k=[],l=0;l<Q.length;l++)for(var v=T[l],L=0;L<v.length;L++)k.push(Q[l]);return k};
  8453. g.h.b0=function(T){Zg(this);var Q=[];if(typeof T==="string")tuH(this,T)&&(Q=Q.concat(this.T.get(fV(this,T))));else{T=Array.from(this.T.values());for(var k=0;k<T.length;k++)Q=Q.concat(T[k])}return Q};
  8454. g.h.set=function(T,Q){Zg(this);this.L=null;T=fV(this,T);tuH(this,T)&&(this.S=this.S-this.T.get(T).length);this.T.set(T,[Q]);this.S=this.S+1;return this};
  8455. g.h.get=function(T,Q){if(!T)return Q;T=this.b0(T);return T.length>0?String(T[0]):Q};
  8456. g.h.toString=function(){if(this.L)return this.L;if(!this.T)return"";for(var T=[],Q=Array.from(this.T.keys()),k=0;k<Q.length;k++){var l=Q[k],v=g.Nn(l);l=this.b0(l);for(var L=0;L<l.length;L++){var q=v;l[L]!==""&&(q+="="+g.Nn(l[L]));T.push(q)}}return this.L=T.join("&")};
  8457. g.h.clone=function(){var T=new Mj;T.L=this.L;this.T&&(T.T=new Map(this.T),T.S=this.S);return T};
  8458. g.h.extend=function(T){for(var Q=0;Q<arguments.length;Q++)KeI(arguments[Q],function(k,l){this.add(l,k)},this)};g.fW(g.mo,g.x);var oPJ=[];g.h=g.mo.prototype;g.h.listen=function(T,Q,k,l){Array.isArray(Q)||(Q&&(oPJ[0]=Q.toString()),Q=oPJ);for(var v=0;v<Q.length;v++){var L=g.Qu(T,Q[v],k||this.handleEvent,l||!1,this.S||this);if(!L)break;this.T[L.key]=L}return this};
  8459. g.h.XC=function(T,Q,k,l){return WeH(this,T,Q,k,l)};
  8460. g.h.J6=function(T,Q,k,l,v){if(Array.isArray(Q))for(var L=0;L<Q.length;L++)this.J6(T,Q[L],k,l,v);else k=k||this.handleEvent,l=g.vm(l)?!!l.capture:!!l,v=v||this.S||this,k=k3(k),l=!!l,Q=Fz(T)?T.Nz(Q,k,l,v):T?(T=lo(T))?T.Nz(Q,k,l,v):null:null,Q&&(Y3(Q),delete this.T[Q.key])};
  8461. g.h.removeAll=function(){g.VJ(this.T,function(T,Q){this.T.hasOwnProperty(Q)&&Y3(T)},this);
  8462. this.T={}};
  8463. g.h.EK=function(){g.mo.Ye.EK.call(this);this.removeAll()};
  8464. g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};$iy.prototype.isInputValid=function(){return this.L};IZ.prototype.isInputValid=function(){return this.T!=3};
  8465. IZ.prototype.dw=function(){return this.B};
  8466. IZ.prototype.sf=function(){return!0};
  8467. IZ.prototype.parse=function(T){function Q(U){U&128&&he(L,q,Y,"invalid tag");(U&7)!=2&&he(L,q,Y,"invalid wire type");L.L=U>>>3;L.L!=1&&L.L!=2&&L.L!=15&&he(L,q,Y,"unexpected tag");L.T=1;L.S=0;L.Y=0}
  8468. function k(U){L.Y++;L.Y==5&&U&240&&he(L,q,Y,"message length too long");L.S|=(U&127)<<(L.Y-1)*7;U&128||(L.T=2,L.j=0,typeof Uint8Array!=="undefined"?L.N=new Uint8Array(L.S):L.N=Array(L.S),L.S==0&&v())}
  8469. function l(U){L.N[L.j++]=U;L.j==L.S&&v()}
  8470. function v(){if(L.L<15){var U={};U[L.L]=L.N;L.C.push(U)}L.T=0}
  8471. for(var L=this,q=T instanceof Array?T:new Uint8Array(T),Y=0;Y<q.length;){switch(L.T){case 3:he(L,q,Y,"stream already broken");break;case 0:Q(q[Y]);break;case 1:k(q[Y]);break;case 2:l(q[Y]);break;default:throw Error("unexpected parser state: "+L.T);}L.D++;Y++}T=L.C;L.C=[];return T.length>0?T:null};sz.prototype.isInputValid=function(){return this.T===null};
  8472. sz.prototype.dw=function(){return this.T};
  8473. sz.prototype.sf=function(){return!1};
  8474. sz.prototype.parse=function(T){this.T!==null&&etb(this,T,"stream already broken");var Q=null;try{var k=this.L;k.L||JsC(k,T,"stream already broken");k.T+=T;var l=Math.floor(k.T.length/4);if(l==0)var v=null;else{try{var L=AV5(k.T.slice(0,l*4))}catch(q){JsC(k,k.T,q.message)}k.S+=l*4;k.T=k.T.slice(l*4);v=L}Q=v===null?null:this.Y.parse(v)}catch(q){etb(this,T,q.message)}this.S+=T.length;return Q};var vPJ={INIT:0,Eq:1,j8:2,zc:3,SI:4,Te:5,STRING:6,Z4:7,Gn:8,yO:9,zl:10,q7:11,gs:12,TX:13,SJ:14,c_:15,uB:16,WF:17,Oo:18,LZ:19,A$:20};g.h=CV.prototype;g.h.isInputValid=function(){return this.N!=3};
  8475. g.h.dw=function(){return this.D};
  8476. g.h.done=function(){return this.N===2};
  8477. g.h.sf=function(){return!1};
  8478. g.h.parse=function(T){function Q(){for(;G<T.length;)if(Se(T[G]))G++,L.L++;else break;return G<R}
  8479. function k(){for(var I;;){I=T[G++];if(!I)break;L.L++;switch(L.T){case U.INIT:I==="{"?L.T=U.j8:I==="["?L.T=U.SI:Se(I)||B0(L,T,G);continue;case U.Z4:case U.j8:if(Se(I))continue;if(L.T===U.Z4)q.push(U.Gn);else if(I==="}"){v("{}");L.T=l();continue}else q.push(U.zc);I==='"'?L.T=U.STRING:B0(L,T,G);continue;case U.Gn:case U.zc:if(Se(I))continue;I===":"?(L.T===U.zc&&(q.push(U.zc),L.S++),L.T=U.Eq):I==="}"?(L.S--,v(),L.T=l()):I===","?(L.T===U.zc&&q.push(U.zc),L.T=U.Z4):B0(L,T,G);continue;case U.SI:case U.Eq:if(Se(I))continue;
  8480. if(L.T===U.SI)if(L.S++,L.T=U.Eq,I==="]"){L.S--;if(L.S===0){L.T=U.Te;return}v("[]");L.T=l();continue}else q.push(U.Te);I==='"'?L.T=U.STRING:I==="{"?L.T=U.j8:I==="["?L.T=U.SI:I==="t"?L.T=U.yO:I==="f"?L.T=U.gs:I==="n"?L.T=U.uB:I!=="-"&&("0123456789".indexOf(I)!==-1?L.T=U.A$:B0(L,T,G));continue;case U.Te:if(I===",")q.push(U.Te),L.T=U.Eq,L.S===1&&(f=G);else if(I==="]"){L.S--;if(L.S===0)return;v();L.T=l()}else if(Se(I))continue;else B0(L,T,G);continue;case U.STRING:var z=G;a:for(;;){for(;L.j>0;)if(I=T[G++],
  8481. L.j===4?L.j=0:L.j++,!I)break a;if(I==='"'&&!L.C){L.T=l();break}if(I==="\\"&&!L.C&&(L.C=!0,I=T[G++],!I))break;if(L.C)if(L.C=!1,I==="u"&&(L.j=1),I=T[G++])continue;else break;Y.lastIndex=G;I=Y.exec(T);if(!I){G=T.length+1;break}G=I.index+1;I=T[I.index];if(!I)break}L.L+=G-z;continue;case U.yO:if(!I)continue;I==="r"?L.T=U.zl:B0(L,T,G);continue;case U.zl:if(!I)continue;I==="u"?L.T=U.q7:B0(L,T,G);continue;case U.q7:if(!I)continue;I==="e"?L.T=l():B0(L,T,G);continue;case U.gs:if(!I)continue;I==="a"?L.T=U.TX:
  8482. B0(L,T,G);continue;case U.TX:if(!I)continue;I==="l"?L.T=U.SJ:B0(L,T,G);continue;case U.SJ:if(!I)continue;I==="s"?L.T=U.c_:B0(L,T,G);continue;case U.c_:if(!I)continue;I==="e"?L.T=l():B0(L,T,G);continue;case U.uB:if(!I)continue;I==="u"?L.T=U.WF:B0(L,T,G);continue;case U.WF:if(!I)continue;I==="l"?L.T=U.Oo:B0(L,T,G);continue;case U.Oo:if(!I)continue;I==="l"?L.T=l():B0(L,T,G);continue;case U.LZ:I==="."?L.T=U.A$:B0(L,T,G);continue;case U.A$:if("0123456789.eE+-".indexOf(I)!==-1)continue;else G--,L.L--,L.T=
  8483. l();continue;default:B0(L,T,G)}}}
  8484. function l(){var I=q.pop();return I!=null?I:U.Eq}
  8485. function v(I){L.S>1||(I||(I=f===-1?L.Y+T.substring(Z,G):T.substring(f,G)),L.z9?L.B.push(I):L.B.push(JSON.parse(I)),f=G)}
  8486. for(var L=this,q=L.qO,Y=L.hj,U=vPJ,R=T.length,Z=0,f=-1,G=0;G<R;)switch(L.N){case 3:return B0(L,T,G),null;case 2:return Q()&&B0(L,T,G),null;case 0:if(Q()){var m=T[G++];L.L++;if(m==="["){L.N=1;Z=G;L.T=U.SI;continue}else B0(L,T,G)}return null;case 1:return k(),L.S===0&&L.T==U.Te?(L.N=2,L.Y=T.substring(G)):L.Y=f===-1?L.Y+T.substring(Z):T.substring(f),L.B.length>0?(m=L.B,L.B=[],m):null}return null};zm.prototype.isInputValid=function(){return this.N===null};
  8487. zm.prototype.dw=function(){return this.N};
  8488. zm.prototype.sf=function(){return!1};
  8489. zm.prototype.parse=function(T){function Q(U){L.S=6;L.N="The stream is broken @"+L.T+"/"+q+". Error: "+U+". With input:\n";throw Error(L.N);}
  8490. function k(){L.L=new CV({Ztd:!0,Il:!0})}
  8491. function l(U){if(U)for(var R=0;R<U.length;R++){var Z={};Z[1]=U[R];L.Y.push(Z)}}
  8492. function v(U){if(U){(L.B||U.length>1)&&Q("extra status: "+U);L.B=!0;var R={};R[2]=U[0];L.Y.push(R)}}
  8493. for(var L=this,q=0;q<T.length;){var Y;if(Y=L.S!==2){a:{for(;q<T.length;){if(!Se(T[q])){Y=!0;break a}q++;L.T++}Y=!1}Y=!Y}if(Y)return null;switch(L.S){case 6:Q("stream already broken");break;case 0:T[q]==="["?(L.S=1,q++,L.T++):Q("unexpected input token");break;case 1:T[q]==="["?(L.S=2,k()):T[q]===","||T.slice(q,q+5)=="null,"?L.S=3:T[q]==="]"?(L.S=5,q++,L.T++):Q("unexpected input token");break;case 2:Y=L.L.parse(T.substring(q));l(Y);L.L.done()?(L.S=3,Y=L.L.Y,L.T+=T.length-q-Y.length,T=Y,q=0):(L.T+=T.length-
  8494. q,q=T.length);break;case 3:T[q]===","||T.slice(q,q+5)=="null,"?(L.S=4,k(),L.L.parse("["),q+=T[q]===","?1:5,L.T++):T[q]==="]"&&(L.S=5,q++,L.T++);break;case 4:Y=L.L.parse(T.substring(q));v(Y);L.L.done()?(L.S=5,Y=L.L.Y,L.T+=T.length-q-Y.length,T=Y,q=0):(L.T+=T.length-q,q=T.length);break;case 5:Q("extra input after stream end")}}return L.Y.length>0?(T=L.Y,L.Y=[],T):null};XA.prototype.kO=function(){return this.T};
  8495. XA.prototype.getStatus=function(){return this.N};
  8496. XA.prototype.z9=function(T){T=T.target;try{if(T==this.T)a:{var Q=g.EJ(this.T),k=this.T.S,l=this.T.getStatus(),v=g.io(this.T);T=[];if(g.Vu(this.T)instanceof Array){var L=g.Vu(this.T);L.length>0&&L[0]instanceof Uint8Array&&(this.D=!0,T=L)}if(!(Q<3||Q==3&&!v&&T.length==0))if(l=l==200||l==206,Q==4&&(k==8?w0(this,7):k==7?w0(this,8):l||w0(this,3)),this.S||(this.S=Fey(this.T),this.S==null&&w0(this,5)),this.N>2)d0(this);else{if(T.length>this.L){var q=T.length;k=[];try{if(this.S.sf())for(var Y=0;Y<q;Y++){var U=
  8497. this.S.parse(Array.from(T[Y]));U&&(k=k.concat(U))}else{U="";if(!this.B){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.B=new TextDecoder}for(Y=0;Y<q;Y++)U+=this.B.decode(T[Y],{stream:Q==4&&Y==q-1});k=this.S.parse(U)}T.splice(0,q);k&&this.Y(k)}catch(Z){w0(this,5);d0(this);break a}}else if(v.length>this.L){Y=v.slice(this.L);this.L=v.length;try{var R=this.S.parse(Y);R!=null&&this.Y&&this.Y(R)}catch(Z){w0(this,5);d0(this);break a}}Q==4?(v.length!=
  8498. 0||this.D?w0(this,2):w0(this,4),d0(this)):w0(this,1)}}}catch(Z){w0(this,6),d0(this)}};g.h=EBI.prototype;g.h.cz=function(T,Q){var k=this.S[T];k||(k=[],this.S[T]=k);k.push(Q);return this};
  8499. g.h.addListener=function(T,Q){this.cz(T,Q);return this};
  8500. g.h.removeListener=function(T,Q){var k=this.S[T];k&&g.zv(k,Q);(T=this.T[T])&&g.zv(T,Q);return this};
  8501. g.h.once=function(T,Q){var k=this.T[T];k||(k=[],this.T[T]=k);k.push(Q);return this};
  8502. g.h.O_d=function(T){var Q=this.S.data;Q&&ysy(T,Q);(Q=this.T.data)&&ysy(T,Q);this.T.data=[]};
  8503. g.h.gM9=function(){switch(this.L.getStatus()){case 1:Nj(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Nj(this,"error");break;case 8:Nj(this,"close");break;case 2:Nj(this,"end")}};iH5.prototype.serverStreaming=function(T,Q,k,l){var v=this,L=T.substring(0,T.length-l.name.length);return ofX(function(q){var Y=q.X4,U=q.getMetadata(),R=Qlt(v,!1);U=jl5(v,U,R,L+Y.getName());var Z=kyf(R,Y.S,!0);q=Y.T(q.Sx);R.send(U,"POST",q);return Z},this.z8).call(this,l.C(Q,k))};vf5.prototype.create=function(T,Q,k){var l=this.T,v=this.S+"/$rpc/google.internal.waa.v1.Waa/Create";Q=Q||{};k=k===void 0?{}:k;return tyb(l,v,T,Q,TaW,k)};var Lfy="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),qcf=/\bocr\b/;var MHT=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(T){throw T;}},{a6K:!0,
  8504. HUj:!0,yV_:!1,zzj:dpJ,q_m:N$A,gse:!1,Apq:!1,MoH:!0,S_d:wm$,Dyj:!1,XAH:!1,MPK:!1});var r0=null,Dg=!1,Cr5=1,hmX=Symbol("SIGNAL"),I6={version:0,D3V:0,RY:!1,pz:void 0,FF:void 0,j9:void 0,Us:0,Wg:void 0,dh:void 0,Ee:!1,QB:!1,kind:"unknown",nx:function(){return!1},
  8505. tK:function(){},
  8506. hD:function(){},
  8507. tod:function(){}};var hX=Symbol("UNSET"),sZ=Symbol("COMPUTING"),SU=Symbol("ERRORED");Object.assign({},I6,{value:hX,RY:!0,error:null,zZ:bN,kind:"computed",nx:function(T){return T.value===hX||T.value===sZ},
  8508. tK:function(T){if(T.value===sZ)throw Error("");var Q=T.value;T.value=sZ;var k=RmC(T),l=!1;try{var v=T.Fl();c0(null);l=Q!==hX&&Q!==SU&&v!==SU&&T.zZ(Q,v)}catch(L){v=SU,T.error=L}finally{ZS5(T,k)}l?T.value=Q:(T.value=v,T.version++)}});var IBJ=Object.assign({},I6,{zZ:bN,value:void 0,kind:"signal"});Object.assign({},I6,{value:hX,RY:!0,error:null,zZ:bN,kind:"linkedSignal",nx:function(T){return T.value===hX||T.value===sZ},
  8509. tK:function(T){if(T.value===sZ)throw Error("");var Q=T.value;T.value=sZ;var k=RmC(T);try{var l=T.source();var v=T.Fl(l,Q===hX||Q===SU?void 0:{source:T.Sgm,value:Q});T.Sgm=l}catch(L){v=SU,T.error=L}finally{ZS5(T,k)}Q!==hX&&v!==SU&&T.zZ(Q,v)?T.value=Q:(T.value=v,T.version++)}});Object.assign({},I6,{QB:!0,Ee:!1,hD:function(T){T.schedule!==null&&T.schedule(T.bae)},
  8510. Anq:!1,GzB:function(){}});g.S(xQ,g.fL);xQ.prototype.dispose=function(){window.removeEventListener("offline",this.L);window.removeEventListener("online",this.L);this.qy.wC(this.N);delete xQ.instance};
  8511. xQ.prototype.In=function(){return this.T};
  8512. xQ.prototype.Jh=function(){var T=this;this.N=this.qy.oD(function(){var Q;return g.a(function(k){if(k.S==1)return T.T?((Q=window.navigator)==null?0:Q.onLine)?k.Ym(3):g.c(k,KV(T),3):g.c(k,KV(T),3);T.Jh();g.BT(k)})},3E4)};g.S(zm6,wg);var LI_=C56(zm6,[0,Mc,Xgd,YiJ,Mc,-2,YiJ,qiW]);H0.prototype.set=function(T,Q){Q=Q===void 0?!0:Q;0<=T&&T<52&&Number.isInteger(T)&&this.data[T]!==Q&&(this.data[T]=Q,this.T=-1)};
  8513. H0.prototype.get=function(T){return!!this.data[T]};var Oz;g.fW(g.ee,g.x);g.h=g.ee.prototype;g.h.start=function(){this.stop();this.Y=!1;var T=wcI(this),Q=dw5(this);T&&!Q&&this.S.mozRequestAnimationFrame?(this.T=g.Qu(this.S,"MozBeforePaint",this.L),this.S.mozRequestAnimationFrame(null),this.Y=!0):this.T=T&&Q?T.call(this.S,this.L):this.S.setTimeout(tAI(this.L),20)};
  8514. g.h.stop=function(){if(this.isActive()){var T=wcI(this),Q=dw5(this);T&&!Q&&this.S.mozRequestAnimationFrame?Y3(this.T):T&&Q?Q.call(this.S,this.T):this.S.clearTimeout(this.T)}this.T=null};
  8515. g.h.isActive=function(){return this.T!=null};
  8516. g.h.S7=function(){this.Y&&this.T&&Y3(this.T);this.T=null;this.B.call(this.N,g.R_())};
  8517. g.h.EK=function(){this.stop();g.ee.Ye.EK.call(this)};g.fW(g.FA,g.x);g.h=g.FA.prototype;g.h.Ie=0;g.h.EK=function(){g.FA.Ye.EK.call(this);this.stop();delete this.T;delete this.S};
  8518. g.h.start=function(T){this.stop();this.Ie=g.P4(this.L,T!==void 0?T:this.d8)};
  8519. g.h.stop=function(){this.isActive()&&g.VC.clearTimeout(this.Ie);this.Ie=0};
  8520. g.h.isActive=function(){return this.Ie!=0};
  8521. g.h.Qk=function(){this.Ie=0;this.T&&this.T.call(this.S)};g.S(g.Vq,g.x);g.h=g.Vq.prototype;g.h.SF=function(T){this.L=arguments;this.D8||this.S?this.T=!0:Te(this)};
  8522. g.h.stop=function(){this.D8&&(g.VC.clearTimeout(this.D8),this.D8=null,this.T=!1,this.L=null)};
  8523. g.h.pause=function(){this.S++};
  8524. g.h.resume=function(){this.S--;this.S||!this.T||this.D8||(this.T=!1,Te(this))};
  8525. g.h.EK=function(){g.x.prototype.EK.call(this);this.stop()};g.QO.prototype[Symbol.iterator]=function(){return this};
  8526. g.QO.prototype.next=function(){var T=this.T.next();return{value:T.done?void 0:this.S.call(void 0,T.value),done:T.done}};g.fW(g.MN,g.fL);g.h=g.MN.prototype;g.h.isPlaying=function(){return this.T==1};
  8527. g.h.isPaused=function(){return this.T==-1};
  8528. g.h.ZQ=function(){this.jR("begin")};
  8529. g.h.EE=function(){this.jR("end")};
  8530. g.h.onFinish=function(){this.jR("finish")};
  8531. g.h.onStop=function(){this.jR("stop")};
  8532. g.h.jR=function(T){this.dispatchEvent(T)};var qk$=aO(function(){var T=g.fO("DIV"),Q=g.Y1?"-webkit":$1?"-moz":null,k="transition:opacity 1s linear;";Q&&(k+=Q+"-transition:opacity 1s linear;");Q=ATT({style:k});if(T.nodeType===1&&/^(script|style)$/i.test(T.tagName))throw Error("");T.innerHTML=fl(Q);return g.JZ(T.firstChild,"transition")!=""});g.fW(Yh,g.MN);g.h=Yh.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.ZQ();this.jR("play");this.startTime=g.R_();this.T=1;if(qk$())return g.W2(this.S,this.B),this.L=g.P4(this.bYd,void 0,this),!0;this.xi(!1);return!1};
  8533. g.h.bYd=function(){g.jC(this.S);bSX(this.S,this.C);g.W2(this.S,this.Y);this.L=g.P4((0,g.Mp)(this.xi,this,!1),this.N*1E3)};
  8534. g.h.stop=function(){this.isPlaying()&&this.xi(!0)};
  8535. g.h.xi=function(T){g.W2(this.S,"transition","");g.VC.clearTimeout(this.L);g.W2(this.S,this.Y);this.endTime=g.R_();this.T=0;if(T)this.onStop();else this.onFinish();this.EE()};
  8536. g.h.EK=function(){this.stop();Yh.Ye.EK.call(this)};
  8537. g.h.pause=function(){};var czy={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};U7("Element","attributes")||U7("Node","attributes");U7("Element","innerHTML")||U7("HTMLElement","innerHTML");U7("Node","nodeName");U7("Node","nodeType");U7("Node","parentNode");U7("Node","childNodes");U7("HTMLElement","style")||U7("Element","style");U7("HTMLStyleElement","sheet");var xwb=aBX("getPropertyValue"),Pr5=aBX("setProperty");U7("Element","namespaceURI")||U7("Node","namespaceURI");var Kfu={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var pc6,GvA,OSt,tHg,WfX;pc6=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");GvA=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.gPW=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
  8538. g.Z5=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");OSt=/^http:\/\/.*/;g.MNp=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");tHg=/\s+/;WfX=/[\d\u06f0-\u06f9]/;Ge.prototype.Xu=function(){return new mz(this.S())};
  8539. Ge.prototype[Symbol.iterator]=function(){return new IF(this.S())};
  8540. Ge.prototype.T=function(){return new IF(this.S())};
  8541. g.S(mz,g.Xy);mz.prototype.next=function(){return this.S.next()};
  8542. mz.prototype[Symbol.iterator]=function(){return new IF(this.S)};
  8543. mz.prototype.T=function(){return new IF(this.S)};
  8544. g.S(IF,Ge);IF.prototype.next=function(){return this.L.next()};s7.prototype.clone=function(){return new s7(this.T,this.C,this.L,this.N,this.Y,this.B,this.S,this.j)};
  8545. s7.prototype.equals=function(T){return this.T==T.T&&this.C==T.C&&this.L==T.L&&this.N==T.N&&this.Y==T.Y&&this.B==T.B&&this.S==T.S&&this.j==T.j};Cb.prototype.clone=function(){return new Cb(this.start,this.end)};(function(){if(BZg){var T=/Windows NT ([0-9.]+)/;return(T=T.exec(g.KJ()))?T[1]:"0"}return Gz?(T=/1[0|1][_.][0-9_.]+/,(T=T.exec(g.KJ()))?T[0].replace(/_/g,"."):"10"):g.iC?(T=/Android\s+([^\);]+)(\)|;)/,(T=T.exec(g.KJ()))?T[1]:""):rTJ||cTE||Dpv?(T=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(T=T.exec(g.KJ()))?T[1].replace(/_/g,"."):""):""})();var JzI=function(){if(g.Rn)return Bq(/Firefox\/([0-9.]+)/);if(g.RF||g.$n||g.Va)return CW5;if(g.hW){if(Kl()||xP()){var T=Bq(/CriOS\/([0-9.]+)/);if(T)return T}return Bq(/Chrome\/([0-9.]+)/)}if(g.mp&&!Kl())return Bq(/Version\/([0-9.]+)/);if(Fw||EG){if(T=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.KJ()))return T[1]+"."+T[2]}else if(g.TW)return(T=Bq(/Android\s+([0-9.]+)/))?T:Bq(/Version\/([0-9.]+)/);return""}();g.fW(g.XE,g.x);g.h=g.XE.prototype;g.h.subscribe=function(T,Q,k){var l=this.S[T];l||(l=this.S[T]=[]);var v=this.B;this.T[v]=T;this.T[v+1]=Q;this.T[v+2]=k;this.B=v+3;l.push(v);return v};
  8546. g.h.unsubscribe=function(T,Q,k){if(T=this.S[T]){var l=this.T;if(T=T.find(function(v){return l[v+1]==Q&&l[v+2]==k}))return this.Y_(T)}return!1};
  8547. g.h.Y_=function(T){var Q=this.T[T];if(Q){var k=this.S[Q];this.Y!=0?(this.L.push(T),this.T[T+1]=function(){}):(k&&g.zv(k,T),delete this.T[T],delete this.T[T+1],delete this.T[T+2])}return!!Q};
  8548. g.h.publish=function(T,Q){var k=this.S[T];if(k){var l=Array(arguments.length-1),v=arguments.length,L;for(L=1;L<v;L++)l[L-1]=arguments[L];if(this.C)for(L=0;L<k.length;L++)v=k[L],emX(this.T[v+1],this.T[v+2],l);else{this.Y++;try{for(L=0,v=k.length;L<v&&!this.wd();L++){var q=k[L];this.T[q+1].apply(this.T[q+2],l)}}finally{if(this.Y--,this.L.length>0&&this.Y==0)for(;k=this.L.pop();)this.Y_(k)}}return L!=0}return!1};
  8549. g.h.clear=function(T){if(T){var Q=this.S[T];Q&&(Q.forEach(this.Y_,this),delete this.S[T])}else this.T.length=0,this.S={}};
  8550. g.h.EK=function(){g.XE.Ye.EK.call(this);this.clear();this.L.length=0};g.wl.prototype.set=function(T,Q){Q===void 0?this.T.remove(T):this.T.set(T,g.pL(Q))};
  8551. g.wl.prototype.get=function(T){try{var Q=this.T.get(T)}catch(k){return}if(Q!==null)try{return JSON.parse(Q)}catch(k){throw"Storage: Invalid value was encountered";}};
  8552. g.wl.prototype.remove=function(T){this.T.remove(T)};g.fW(dl,g.wl);dl.prototype.set=function(T,Q){dl.Ye.set.call(this,T,Eft(Q))};
  8553. dl.prototype.S=function(T){T=dl.Ye.get.call(this,T);if(T===void 0||T instanceof Object)return T;throw"Storage: Invalid value was encountered";};
  8554. dl.prototype.get=function(T){if(T=this.S(T)){if(T=T.data,T===void 0)throw"Storage: Invalid value was encountered";}else T=void 0;return T};g.fW(NN,dl);NN.prototype.set=function(T,Q,k){if(Q=Eft(Q)){if(k){if(k<g.R_()){NN.prototype.remove.call(this,T);return}Q.expiration=k}Q.creation=g.R_()}NN.Ye.set.call(this,T,Q)};
  8555. NN.prototype.S=function(T,Q){var k=NN.Ye.S.call(this,T);if(k)if(!Q&&g.yz5(k))NN.prototype.remove.call(this,T);else return k};g.fW(g.AJ,NN);g.fW(bw,iS5);bw.prototype[Symbol.iterator]=function(){return g.hJ(this.Xu(!0)).T()};
  8556. bw.prototype.clear=function(){var T=Array.from(this);T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())this.remove(Q.value)};g.fW(rl,bw);g.h=rl.prototype;g.h.isAvailable=function(){if(this.S===null){var T=this.T;if(T)try{T.setItem("__sak","1");T.removeItem("__sak");var Q=!0}catch(k){Q=k instanceof DOMException&&(k.name==="QuotaExceededError"||k.code===22||k.code===1014||k.name==="NS_ERROR_DOM_QUOTA_REACHED")&&T&&T.length!==0}else Q=!1;this.S=Q}return this.S};
  8557. g.h.set=function(T,Q){cq(this);try{this.T.setItem(T,Q)}catch(k){if(this.T.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
  8558. g.h.get=function(T){cq(this);T=this.T.getItem(T);if(typeof T!=="string"&&T!==null)throw"Storage mechanism: Invalid value was encountered";return T};
  8559. g.h.remove=function(T){cq(this);this.T.removeItem(T)};
  8560. g.h.Xu=function(T){cq(this);var Q=0,k=this.T,l=new g.Xy;l.next=function(){if(Q>=k.length)return g.R6;var v=k.key(Q++);if(T)return g.wR(v);v=k.getItem(v);if(typeof v!=="string")throw"Storage mechanism: Invalid value was encountered";return g.wR(v)};
  8561. return l};
  8562. g.h.clear=function(){cq(this);this.T.clear()};
  8563. g.h.key=function(T){cq(this);return this.T.key(T)};g.fW(D5,rl);g.fW(VHy,rl);g.fW(aF,bw);aF.prototype.set=function(T,Q){this.S.set(this.T+T,Q)};
  8564. aF.prototype.get=function(T){return this.S.get(this.T+T)};
  8565. aF.prototype.remove=function(T){this.S.remove(this.T+T)};
  8566. aF.prototype.Xu=function(T){var Q=this.S[Symbol.iterator](),k=this,l=new g.Xy;l.next=function(){var v=Q.next();if(v.done)return v;for(v=v.value;v.slice(0,k.T.length)!=k.T;){v=Q.next();if(v.done)return v;v=v.value}return g.wR(T?v.slice(k.T.length):k.S.get(v))};
  8567. return l};nb.prototype.getValue=function(){return this.S};
  8568. nb.prototype.clone=function(){return new nb(this.T,this.S)};g.h=Kb.prototype;g.h.o2=function(T,Q){var k=this.T;k.push(new nb(T,Q));T=k.length-1;Q=this.T;for(k=Q[T];T>0;){var l=T-1>>1;if(Q[l].T>k.T)Q[T]=Q[l],T=l;else break}Q[T]=k};
  8569. g.h.remove=function(){var T=this.T,Q=T.length,k=T[0];if(!(Q<=0)){if(Q==1)T.length=0;else{T[0]=T.pop();T=0;Q=this.T;for(var l=Q.length,v=Q[T];T<l>>1;){var L=T*2+1,q=T*2+2;L=q<l&&Q[q].T<Q[L].T?q:L;if(Q[L].T>v.T)break;Q[T]=Q[L];T=L}Q[T]=v}return k.getValue()}};
  8570. g.h.b0=function(){for(var T=this.T,Q=[],k=T.length,l=0;l<k;l++)Q.push(T[l].getValue());return Q};
  8571. g.h.zG=function(){for(var T=this.T,Q=[],k=T.length,l=0;l<k;l++)Q.push(T[l].T);return Q};
  8572. g.h.clone=function(){return new Kb(this)};
  8573. g.h.isEmpty=function(){return this.T.length===0};
  8574. g.h.clear=function(){this.T.length=0};g.S(xh,Kb);xh.prototype.enqueue=function(T,Q){this.o2(T,Q)};Pq.Zf=void 0;Pq.getInstance=function(){return Pq.Zf?Pq.Zf:Pq.Zf=new Pq};
  8575. Pq.prototype.T=0;var Hq={},Yk9=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Hq.assign=function(T){for(var Q=Array.prototype.slice.call(arguments,1);Q.length;){var k=Q.shift();if(k){if(typeof k!=="object")throw new TypeError(k+"must be non-object");for(var l in k)Object.prototype.hasOwnProperty.call(k,l)&&(T[l]=k[l])}}return T};
  8576. Hq.ya=function(T,Q){if(T.length===Q)return T;if(T.subarray)return T.subarray(0,Q);T.length=Q;return T};
  8577. var Und={En:function(T,Q,k,l,v){if(Q.subarray&&T.subarray)T.set(Q.subarray(k,k+l),v);else for(var L=0;L<l;L++)T[v+L]=Q[k+L]},
  8578. Oe:function(T){var Q,k;var l=k=0;for(Q=T.length;l<Q;l++)k+=T[l].length;var v=new Uint8Array(k);l=k=0;for(Q=T.length;l<Q;l++){var L=T[l];v.set(L,k);k+=L.length}return v}},RCA={En:function(T,Q,k,l,v){for(var L=0;L<l;L++)T[v+L]=Q[k+L]},
  8579. Oe:function(T){return[].concat.apply([],T)}};
  8580. Hq.fgd=function(){Yk9?(Hq.Pt=Uint8Array,Hq.oY=Uint16Array,Hq.JB=Int32Array,Hq.assign(Hq,Und)):(Hq.Pt=Array,Hq.oY=Array,Hq.JB=Array,Hq.assign(Hq,RCA))};
  8581. Hq.fgd();var ZlT=!0;try{new Uint8Array(1)}catch(T){ZlT=!1};var U4={};U4=function(T,Q,k,l){var v=T&65535|0;T=T>>>16&65535|0;for(var L;k!==0;){L=k>2E3?2E3:k;k-=L;do v=v+Q[l++]|0,T=T+v|0;while(--L);v%=65521;T%=65521}return v|T<<16|0};for(var Rb={},Cs,foT=[],B_=0;B_<256;B_++){Cs=B_;for(var GHW=0;GHW<8;GHW++)Cs=Cs&1?3988292384^Cs>>>1:Cs>>>1;foT[B_]=Cs}Rb=function(T,Q,k,l){k=l+k;for(T^=-1;l<k;l++)T=T>>>8^foT[(T^Q[l])&255];return T^-1};var ki={};ki={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var E7=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],VO=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],z8b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R8I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Le=Array(576);tJ(Le);var qI=Array(60);tJ(qI);var iw=Array(512);tJ(iw);var FE=Array(256);tJ(FE);var yO=Array(29);tJ(yO);var Tf=Array(30);tJ(Tf);var SJT,Co5,BcH,sSt=!1;var Ib;Ib=[new ma(0,0,0,0,function(T,Q){var k=65535;for(k>T.MB-5&&(k=T.MB-5);;){if(T.Hh<=1){Z0(T);if(T.Hh===0&&Q===0)return 1;if(T.Hh===0)break}T.UG+=T.Hh;T.Hh=0;var l=T.l5+k;if(T.UG===0||T.UG>=l)if(T.Hh=T.UG-l,T.UG=l,gE(T,!1),T.Wn.EW===0)return 1;if(T.UG-T.l5>=T.Ay-262&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=0;if(Q===4)return gE(T,!0),T.Wn.EW===0?3:4;T.UG>T.l5&&gE(T,!1);return 1}),
  8582. new ma(4,4,8,4,fe),new ma(4,5,16,8,fe),new ma(4,6,32,32,fe),new ma(4,4,16,16,Gf),new ma(8,16,32,32,Gf),new ma(8,16,128,128,Gf),new ma(8,32,128,256,Gf),new ma(32,128,258,1024,Gf),new ma(32,258,258,4096,Gf)];var h8u={};h8u=function(){this.input=null;this.wY=this.KB=this.jp=0;this.output=null;this.wW=this.EW=this.v$=0;this.msg="";this.state=null;this.v3=2;this.CY=0};var X4T=Object.prototype.toString;
  8583. hI.prototype.push=function(T,Q){var k=this.Wn,l=this.options.chunkSize;if(this.ended)return!1;var v=Q===~~Q?Q:Q===!0?4:0;typeof T==="string"?k.input=jST(T):X4T.call(T)==="[object ArrayBuffer]"?k.input=new Uint8Array(T):k.input=T;k.jp=0;k.KB=k.input.length;do{k.EW===0&&(k.output=new Hq.Pt(l),k.v$=0,k.EW=l);T=IT5(k,v);if(T!==1&&T!==0)return this.EE(T),this.ended=!0,!1;if(k.EW===0||k.KB===0&&(v===4||v===2))if(this.options.to==="string"){var L=Hq.ya(k.output,k.v$);Q=L;L=L.length;if(L<65537&&(Q.subarray&&
  8584. ZlT||!Q.subarray))Q=String.fromCharCode.apply(null,Hq.ya(Q,L));else{for(var q="",Y=0;Y<L;Y++)q+=String.fromCharCode(Q[Y]);Q=q}this.chunks.push(Q)}else Q=Hq.ya(k.output,k.v$),this.chunks.push(Q)}while((k.KB>0||k.EW===0)&&T!==1);if(v===4)return(k=this.Wn)&&k.state?(l=k.state.status,l!==42&&l!==69&&l!==73&&l!==91&&l!==103&&l!==113&&l!==666?T=lK(k,-2):(k.state=null,T=l===113?lK(k,-3):0)):T=-2,this.EE(T),this.ended=!0,T===0;v===2&&(this.EE(0),k.EW=0);return!0};
  8585. hI.prototype.EE=function(T){T===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Hq.Oe(this.chunks));this.chunks=[];this.err=T;this.msg=this.Wn.msg};var Sm="@@redux/INIT"+s4(),rd6="@@redux/REPLACE"+s4();var cdy=typeof Symbol==="function"&&Symbol.observable||"@@observable";var mnd=[0,Sid,-3,g9];g.S(n3b,wg);var WNf=C56(n3b,[0,Mc,CB9,o6,Sid,o6,-1,g9,Sid,g9,-1,Mc,g9,CB9,v_,mnd,o6,-1,g9]);var K5f=1317161496;var jp5=new g.zf("adInfoDialogEndpoint");var urC=new g.zf("adPingingEndpoint");var kZC=new g.zf("crossDeviceProgressCommand");var dO=new g.zf("actionCompanionAdRenderer");var y1=new g.zf("adActionInterstitialRenderer");var Iov=new g.zf("adDurationRemainingRenderer");var TT=new g.zf("adHoverTextButtonRenderer");var Tm6=new g.zf("adInfoDialogRenderer");var n1=new g.zf("adMessageRenderer");var QN=new g.zf("adPreviewRenderer");var Ak=new g.zf("adsEngagementPanelRenderer");var bGI=new g.zf("dismissablePanelTextPortraitImageRenderer");var NSu=new g.zf("adsEngagementPanelSectionListViewModel");var hCW=new g.zf("flyoutCtaRenderer");var NA=new g.zf("imageCompanionAdRenderer");var FS=new g.zf("instreamAdPlayerOverlayRenderer");var uge=new g.zf("instreamSurveyAdBackgroundImageRenderer");var VM=new g.zf("instreamSurveyAdPlayerOverlayRenderer");var HO=new g.zf("instreamSurveyAdRenderer"),iQ=new g.zf("instreamSurveyAdSingleSelectQuestionRenderer"),yM=new g.zf("instreamSurveyAdMultiSelectQuestionRenderer"),z2=new g.zf("instreamSurveyAdAnswerRenderer"),sTv=new g.zf("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var xK=new g.zf("instreamVideoAdRenderer");var SkW=new g.zf("textOverlayAdContentRenderer"),CXd=new g.zf("enhancedTextOverlayAdContentRenderer"),Bap=new g.zf("imageOverlayAdContentRenderer");var EP=new g.zf("playerOverlayLayoutRenderer");var iE=new g.zf("videoInterstitialButtonedCenteredLayoutRenderer");var uP6=new g.zf("aboveFeedAdLayoutRenderer");var ns5=new g.zf("belowPlayerAdLayoutRenderer");var ayT=new g.zf("inPlayerAdLayoutRenderer");var p7=new g.zf("playerBytesAdLayoutRenderer");var ER=new g.zf("playerBytesSequenceItemAdLayoutRenderer");var Fj=new g.zf("playerUnderlayAdLayoutRenderer");var PO=new g.zf("adIntroRenderer");var n7=new g.zf("playerBytesSequentialLayoutRenderer");var fCt=new g.zf("slidingTextPlayerOverlayRenderer");var tk=new g.zf("surveyTextInterstitialRenderer");var WO=new g.zf("videoAdTrackingRenderer");var XP5=new g.zf("videoInterstitialCenteredLayoutViewModel");var zCA=new g.zf("simpleAdBadgeRenderer");var wM=new g.zf("skipAdRenderer"),XXd=new g.zf("skipButtonRenderer");var oA=new g.zf("adSlotRenderer");var Jk=new g.zf("squeezebackPlayerSidePanelRenderer");var wXe=new g.zf("timedPieCountdownRenderer");var eD=new g.zf("adAvatarViewModel");var FX=new g.zf("adBadgeViewModel");var Em=new g.zf("adButtonViewModel");var dn9=new g.zf("adDetailsLineViewModel");var Nav=new g.zf("adDisclosureBannerViewModel");var Ai$=new g.zf("adPodIndexViewModel");var blm=new g.zf("imageBackgroundViewModel");var riv=new g.zf("adGridCardCollectionViewModel");var ciA=new g.zf("adGridCardTextViewModel");var Dne=new g.zf("adPreviewViewModel");var aoA=new g.zf("playerAdAvatarLockupCardButtonedViewModel");var us9=new g.zf("skipAdButtonViewModel");var nPA=new g.zf("skipAdViewModel");var KI1=new g.zf("timedPieCountdownViewModel");var xnJ=new g.zf("visitAdvertiserLinkViewModel");var bQ=new g.zf("bannerImageLayoutViewModel");var rO=new g.zf("topBannerImageTextIconButtonedLayoutViewModel");var cO=new g.zf("adsEngagementPanelLayoutViewModel");var eg=new g.zf("displayUnderlayTextGridCardsLayoutViewModel");g.Ey=new g.zf("browseEndpoint");var PXA=new g.zf("confirmDialogEndpoint");var e95=new g.zf("commandContext");var Zh5=new g.zf("rawColdConfigGroup");var RIu=new g.zf("rawHotConfigGroup");g.fN=new g.zf("commandExecutorCommand");g.S(Pog,wg);var pEI={r_q:0,tR9:1,qxB:32,EUe:61,myH:67,Lf9:103,hPq:86,zP6:42,gUd:60,O7V:62,oUq:73,SxO:76,kzj:88,Ffk:90,it9:99,Ht6:98,Yxd:100,cp_:102,dyO:41,xyk:69,X5B:70,Uy9:71,Jsq:2,Zp_:27,ANDROID:3,OdV:54,voq:14,Te9:91,ff6:55,DKq:24,af_:20,Mjd:18,y9_:21,z9B:104,c9H:30,Q2j:29,h9m:28,G6m:101,Loe:34,S$B:36,Hzj:38,IOS:5,e1k:15,Iz9:92,sB9:40,lz9:25,rWe:17,JWO:19,Z$j:64,AWB:66,jBj:26,GkO:22,PSm:33,nEK:68,pgk:35,b$k:53,KmV:37,CSq:39,i7k:7,dEm:57,xEK:43,UEK:59,XHK:93,E_6:74,RwO:75,BV6:85,NVV:65,wHk:80,ew_:8,YYd:10,
  8586. Cyd:58,sxd:63,VRq:72,o_B:23,NyV:11,Voe:13,uwH:12,mEK:16,yp9:56,QGd:31,sMm:77,M19:84,TyK:87,yWH:89,H$B:94,Y16:95};g.S(XH,wg);XH.prototype.Kl=function(){return Df(this,3)};
  8587. XH.prototype.vZ=function(){return Df(this,5)};
  8588. XH.prototype.sE=function(T){return xM(this,5,T)};g.S(wE,wg);g.S(HLt,wg);g.S(dE,wg);g.h=dE.prototype;g.h.getDeviceId=function(){return Df(this,6)};
  8589. g.h.ue=function(T){var Q=gL(this,9,GS,3,!0);eC(Q,T);return Q[T]};
  8590. g.h.getPlayerType=function(){return a2(this,36)};
  8591. g.h.setHomeGroupInfo=function(T){return Ns(this,HLt,81,T)};
  8592. g.h.clearLocationPlayabilityToken=function(){return lq(this,89)};g.S(NI,wg);NI.prototype.getValue=function(){return Df(this,hK(this,YGb,2))};
  8593. var YGb=[2,3,4,5,6];g.S(AI,wg);AI.prototype.setTrackingParams=function(T){return lq(this,1,tPf(T,!1))};g.S(bK,wg);g.S(rE,wg);rE.prototype.ue=function(T){var Q=gL(this,5,mY,3,!0);eC(Q,T);return Q[T]};g.S(cN,wg);cN.prototype.getToken=function(){return ng(this,2)};
  8594. cN.prototype.setToken=function(T){return xM(this,2,T)};g.S(D0,wg);D0.prototype.setSafetyMode=function(T){return HS(this,5,T)};g.S(ab,wg);ab.prototype.HP=function(T){return Ns(this,dE,1,T)};var kN=new g.zf("thumbnailLandscapePortraitRenderer");g.Hl_=new g.zf("changeEngagementPanelVisibilityAction");var rF5=new g.zf("continuationCommand");g.tNJ=new g.zf("openPopupAction");g.XD=new g.zf("webCommandMetadata");var hDH=new g.zf("metadataBadgeRenderer");var bM6=new g.zf("signalServiceEndpoint");var Dh=new g.zf("innertubeCommand");var Rpf=new g.zf("loggingDirectives");var XnI={wGV:"EMBEDDED_PLAYER_MODE_UNKNOWN",B8O:"EMBEDDED_PLAYER_MODE_DEFAULT",V16:"EMBEDDED_PLAYER_MODE_PFP",N8d:"EMBEDDED_PLAYER_MODE_PFL"};var $yX=new g.zf("channelThumbnailEndpoint");var WZu=new g.zf("embeddedPlayerErrorMessageRenderer");var H1I=new g.zf("embeddedPlayerOverlayVideoDetailsRenderer"),JCg=new g.zf("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),eD5=new g.zf("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var GTX=new g.zf("embedsInfoPanelRenderer");var Ole=new g.zf("feedbackEndpoint");var pX$=new g.zf("callToActionButtonViewModel");var WIe=new g.zf("interactionLoggingCommandMetadata");var sFu={MR_:"WEB_DISPLAY_MODE_UNKNOWN",vz9:"WEB_DISPLAY_MODE_BROWSER",DE9:"WEB_DISPLAY_MODE_MINIMAL_UI",ar9:"WEB_DISPLAY_MODE_STANDALONE",frk:"WEB_DISPLAY_MODE_FULLSCREEN"};g.S(uK,wg);uK.prototype.getPlayerType=function(){return a2(this,7)};
  8595. uK.prototype.Dg=function(){return Df(this,19)};
  8596. uK.prototype.setVideoId=function(T){return xM(this,19,T)};g.S(ne,wg);g.S(Ke,wg);g.S(xi,wg);
  8597. var $nv=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
  8598. 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var Jim=new g.zf("loggingContext");g.S(PN,wg);g.S(HN,wg);HN.prototype.Dg=function(){return ng(this,hK(this,L9,1))};
  8599. HN.prototype.setVideoId=function(T){return mn(this,1,L9,Nr(T))};
  8600. HN.prototype.getPlaylistId=function(){return ng(this,hK(this,L9,2))};
  8601. var L9=[1,2];g.S(taI,wg);var XC=new g.zf("changeKeyedMarkersVisibilityCommand");var eCA=new g.zf("changeMarkersVisibilityCommand");var Sgb=new g.zf("loadMarkersCommand");var FI1=new g.zf("suggestedActionDataViewModel");var Tkt=new g.zf("timelyActionViewModel");var VWy=new g.zf("timelyActionsOverlayViewModel");var YOy=new g.zf("productListItemRenderer");var EP_=new g.zf("shoppingOverlayRenderer");var twu=new g.zf("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var yiW=new g.zf("adFeedbackEndpoint");var ilT=new g.zf("menuEndpoint");var mc6=new g.zf("phoneDialerEndpoint");var f3t=new g.zf("sendSmsEndpoint");var P1y=new g.zf("copyTextEndpoint");var VNm=new g.zf("shareEndpoint"),TKA=new g.zf("shareEntityEndpoint"),QOW=new g.zf("shareEntityServiceEndpoint"),jOT=new g.zf("webPlayerShareEntityServiceEndpoint");g.uD=new g.zf("urlEndpoint");g.Bv=new g.zf("watchEndpoint");var k8p=new g.zf("watchPlaylistEndpoint");g.lMA=new g.zf("offlineOrchestrationActionCommand");var uaf=new g.zf("compositeVideoOverlayRenderer");var o1J=new g.zf("miniplayerRenderer");var KZt=new g.zf("paidContentOverlayRenderer");var v19=new g.zf("playerMutedAutoplayOverlayRenderer"),Lme=new g.zf("playerMutedAutoplayEndScreenRenderer");var DAH=new g.zf("unserializedPlayerResponse"),q$E=new g.zf("unserializedPlayerResponse");var g11=new g.zf("playlistEditEndpoint");var w9;g.jw=new g.zf("buttonRenderer");w9=new g.zf("toggleButtonRenderer");var dL5=new g.zf("counterfactualRenderer");var MOp=new g.zf("resolveUrlCommandMetadata");var Y$_=new g.zf("modifyChannelNotificationPreferenceEndpoint");var aZy=new g.zf("pingingEndpoint");var UXm=new g.zf("unsubscribeEndpoint");g.yv=new g.zf("subscribeButtonRenderer");var R7A=new g.zf("subscribeEndpoint");var YVX=new g.zf("buttonViewModel");var Atu=new g.zf("qrCodeRenderer");var $lC={S1H:"LIVING_ROOM_APP_MODE_UNSPECIFIED",q16:"LIVING_ROOM_APP_MODE_MAIN",zUB:"LIVING_ROOM_APP_MODE_KIDS",ghd:"LIVING_ROOM_APP_MODE_MUSIC",TJ9:"LIVING_ROOM_APP_MODE_UNPLUGGED",ys9:"LIVING_ROOM_APP_MODE_GAMING"};var RDC=new g.zf("autoplaySwitchButtonRenderer");var Vk,owC,H7C,G0C;Vk=new g.zf("decoratedPlayerBarRenderer");owC=new g.zf("chapteredPlayerBarRenderer");H7C=new g.zf("multiMarkersPlayerBarRenderer");G0C=new g.zf("chapterRenderer");g.gwf=new g.zf("markerRenderer");var SfC=new g.zf("decoratedPlayheadRenderer");var myu=new g.zf("desktopOverlayConfigRenderer");var rtf=new g.zf("engagementPanelSectionListRenderer");var fDt=new g.zf("gatedActionsOverlayViewModel");var RM5=new g.zf("heatMarkerRenderer");var Uq5=new g.zf("heatmapRenderer");var sAH=new g.zf("watchToWatchTransitionRenderer");var O15=new g.zf("playlistPanelRenderer");var ZO1=new g.zf("productUpsellSuggestedActionViewModel");var fM1=new g.zf("suggestedActionTimeRangeTrigger"),G8d=new g.zf("suggestedActionsRenderer"),mXv=new g.zf("suggestedActionRenderer");var ZEH=new g.zf("timedMarkerDecorationRenderer");var tB6=new g.zf("cipher");var awX=new g.zf("playerVars");var IME=new g.zf("playerVars");var d9=g.VC.window,h7E,sOe,tI=(d9==null?void 0:(h7E=d9.yt)==null?void 0:h7E.config_)||(d9==null?void 0:(sOe=d9.ytcfg)==null?void 0:sOe.data_)||{};g.Tv("yt.config_",tI);var em=[];var iLy=/^[\w.]*$/,e8t={q:!0,search_query:!0},Jd5=String(Vt);var gV=new function(){var T=window.document;this.T=window;this.S=T};
  8602. g.Tv("yt.ads_.signals_.getAdSignalsString",function(T){return TO(Y5(T))});g.R_();var TbJ="XMLHttpRequest"in g.VC?function(){return new XMLHttpRequest}:null;var S$d="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.ZH(S$d);var lbX={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
  8603. "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},fbt="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.ZH(S$d)),Ypt=!1,qpI=BD;g.S(wV,Gv);AH.prototype.then=function(T,Q,k){return this.T?this.T.then(T,Q,k):this.L===1&&T?(T=T.call(k,this.S))&&typeof T.then==="function"?T:rV(T):this.L===2&&Q?(T=Q.call(k,this.S))&&typeof T.then==="function"?T:bC(T):this};
  8604. AH.prototype.getValue=function(){return this.S};
  8605. AH.prototype.$goog_Thenable=!0;var cD=!1;var We=Fw||EG;var Bbg=/^([0-9\.]+):([0-9\.]+)$/;g.S(Yq,Gv);Yq.prototype.name="BiscottiError";g.S(M5,Gv);M5.prototype.name="BiscottiMissingError";var dS5={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ur=null;var j_f=g.G5(["data-"]),n2t={};var C5$=0,R1=g.Y1?"webkit":$1?"moz":g.RF?"ms":g.Va?"o":"",BK_=g.jA("ytDomDomGetNextId")||function(){return++C5$};
  8606. g.Tv("ytDomDomGetNextId",BK_);var Hit={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};hg.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
  8607. hg.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
  8608. hg.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var sr=g.VC.ytEventsEventsListeners||{};g.Tv("ytEventsEventsListeners",sr);var pny=g.VC.ytEventsEventsCounter||{count:0};g.Tv("ytEventsEventsCounter",pny);var e1I=aO(function(){var T=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){T=!0}});
  8609. window.addEventListener("test",null,Q)}catch(k){}return T}),W_I=aO(function(){var T=!1;
  8610. try{var Q=Object.defineProperty({},"capture",{get:function(){T=!0}});
  8611. window.addEventListener("test",null,Q)}catch(k){}return T});var Nc;Nc=window;g.XY=Nc.ytcsi&&Nc.ytcsi.now?Nc.ytcsi.now:Nc.performance&&Nc.performance.timing&&Nc.performance.now&&Nc.performance.timing.navigationStart?function(){return Nc.performance.timing.navigationStart+Nc.performance.now()}:function(){return(new Date).getTime()};g.fW(X4,g.x);X4.prototype.D=function(T){T.T===void 0&&thu(T);var Q=T.T;T.S===void 0&&thu(T);this.T=new g.WX(Q,T.S)};
  8612. X4.prototype.rS=function(){return this.T||new g.WX};
  8613. X4.prototype.z9=function(){if(this.T){var T=(0,g.XY)();if(this.Y!=0){var Q=this.B,k=this.T,l=Q.x-k.x;Q=Q.y-k.y;l=Math.sqrt(l*l+Q*Q)/(T-this.Y);this.S[this.L]=Math.abs((l-this.N)/this.N)>.5?1:0;for(k=Q=0;k<4;k++)Q+=this.S[k]||0;Q>=3&&this.C();this.N=l}this.Y=T;this.B=this.T;this.L=(this.L+1)%4}};
  8614. X4.prototype.EK=function(){g.m6(this.j);g.CY(this.qO)};g.S(wi,g.x);wi.prototype.Z=function(T,Q,k,l,v){k=g.E4((0,g.Mp)(k,l||this.d5));k={target:T,name:Q,callback:k};var L;v&&e1I()&&(L={passive:!0});T.addEventListener(Q,k.callback,L);this.C.push(k);return k};
  8615. wi.prototype.J6=function(T){for(var Q=0;Q<this.C.length;Q++)if(this.C[Q]==T){this.C.splice(Q,1);T.target.removeEventListener(T.name,T.callback);break}};
  8616. wi.prototype.EK=function(){g.N5(this);g.x.prototype.EK.call(this)};var GEb=["att/get"],uUJ=["embedded_player"],IZ5=["account/get_setting_values"],z7A=["share/get_share_panel"],X2$=["share/get_web_player_share_panel"],w2E=["feedback"],dXe=["notification/modify_channel_preference"],Kcg=["player"],NKW=["browse/edit_playlist"],Squ=["account/set_setting"],AZm=["subscription/subscribe"],bO_=["subscription/unsubscribe"],HkI=["next","unplugged/watch_next"];var bu;g.Ag=aO(function(){try{var T=new D5;var Q=T.isAvailable()?T:null}catch(k){return null}return Q?new g.AJ(Q):null});
  8617. bu=aO(function(){var T=new VHy;return T.isAvailable()?new g.AJ(T):null});g.rZd=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Tv("yt.msgs_",g.rZd);nY.prototype.LP=function(T,Q){T={};var k=[];"USER_SESSION_ID"in tI&&k.push({key:"u",value:g.$i("USER_SESSION_ID")});if(k=LCt(k))T.Authorization=k,k=Q=Q==null?void 0:Q.sessionIndex,k===void 0&&(k=Number(g.$i("SESSION_INDEX",0)),k=isNaN(k)?0:k),g.hH("voice_search_auth_header_removal")||(T["X-Goog-AuthUser"]=k.toString()),"INNERTUBE_HOST_OVERRIDE"in tI||(T["X-Origin"]=window.location.origin),Q===void 0&&"DELEGATED_SESSION_ID"in tI&&(T["X-Goog-PageId"]=g.$i("DELEGATED_SESSION_ID"));return T};var US={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Hy=g.jA("ytglobal.prefsUserPrefsPrefs_")||{};g.Tv("ytglobal.prefsUserPrefsPrefs_",Hy);var KY;g.h=Vhf.prototype;g.h.get=function(T,Q){pY(T);Or(T);T=Hy[T]!==void 0?Hy[T].toString():null;return T!=null?T:Q?Q:""};
  8618. g.h.set=function(T,Q){pY(T);Or(T);if(Q==null)throw Error("ExpectedNotNull");Hy[T]=Q.toString()};
  8619. g.h.remove=function(T){pY(T);Or(T);delete Hy[T]};
  8620. g.h.save=function(){var T=!0;g.hH("web_secure_pref_cookie_killswitch")&&(T=!1);g.aU(this.T,this.dump(),63072E3,this.S,T)};
  8621. g.h.clear=function(){g.ugu(Hy)};
  8622. g.h.dump=function(){var T=[],Q;for(Q in Hy)Hy.hasOwnProperty(Q)&&T.push(Q+"="+encodeURIComponent(String(Hy[Q])));return T.join("&")};
  8623. g.h.parse=function(T){T=decodeURIComponent(T).split("&");for(var Q=0;Q<T.length;Q++){var k=T[Q].split("="),l=k[0];(k=k[1])&&(Hy[l]=k.toString())}};var jZC={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},S7C={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
  8624. CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},Cwf={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},lg5={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.S(g.Wy,Error);eG.prototype.oD=function(T,Q){return F4(T,1,Q)};
  8625. eG.prototype.zO=function(T){(T=this.T.get(T))&&T()};g.jA("yt.scheduler.instance.timerIdMap_");g.S(ye,eG);ye.prototype.wC=function(T){if(T===void 0||!Number.isNaN(Number(T))){var Q=g.jA("yt.scheduler.instance.cancelJob");Q?Q(T):g.GO(T)}};
  8626. ye.prototype.start=function(){var T=g.jA("yt.scheduler.instance.start");T&&T()};
  8627. ye.prototype.pause=function(){var T=g.jA("yt.scheduler.instance.pause");T&&T()};
  8628. g.P0=g.iu();QH.prototype.set=function(T,Q,k,l){k=k||31104E3;this.remove(T);if(this.T)try{this.T.set(T,Q,Date.now()+k*1E3);return}catch(L){}var v="";if(l)try{v=escape(g.pL(Q))}catch(L){return}else v=escape(Q);g.aU(T,v,k,this.S)};
  8629. QH.prototype.get=function(T,Q){var k=void 0,l=!this.T;if(!l)try{k=this.T.get(T)}catch(v){l=!0}if(l&&(k=g.uC(T))&&(k=unescape(k),Q))try{k=JSON.parse(k)}catch(v){this.remove(T),k=void 0}return k};
  8630. QH.prototype.remove=function(T){this.T&&this.T.remove(T);g.nh(T,"/",this.S)};
  8631. QH.prototype.getCreationTime=function(T){return this.T&&(T=(this.T.S(T)||{}).creation,typeof T==="number")?T:null};var jo=function(){var T;return function(){T||(T=new QH("ytidb"));return T}}();var qh=[],ln,gm=!1;var AX={},qzg=(AX.AUTH_INVALID="No user identifier specified.",AX.EXPLICIT_ABORT="Transaction was explicitly aborted.",AX.IDB_NOT_SUPPORTED="IndexedDB is not supported.",AX.MISSING_INDEX="Index not created.",AX.MISSING_OBJECT_STORES="Object stores not created.",AX.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",AX.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",AX.UNKNOWN_ABORT=
  8632. "Transaction was aborted for unknown reasons.",AX.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",AX.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",AX.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",AX.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",AX),bs={},gQt=(bs.AUTH_INVALID="ERROR",bs.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",bs.EXPLICIT_ABORT="IGNORED",
  8633. bs.IDB_NOT_SUPPORTED="ERROR",bs.MISSING_INDEX="WARNING",bs.MISSING_OBJECT_STORES="ERROR",bs.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",bs.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",bs.QUOTA_EXCEEDED="WARNING",bs.QUOTA_MAYBE_EXCEEDED="WARNING",bs.UNKNOWN_ABORT="WARNING",bs.INCOMPATIBLE_DB_VERSION="WARNING",bs),r9={},Mef=(r9.AUTH_INVALID=!1,r9.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,r9.EXPLICIT_ABORT=!1,r9.IDB_NOT_SUPPORTED=!1,r9.MISSING_INDEX=!1,r9.MISSING_OBJECT_STORES=!1,r9.DB_DELETED_BY_MISSING_OBJECT_STORES=
  8634. !1,r9.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,r9.QUOTA_EXCEEDED=!1,r9.QUOTA_MAYBE_EXCEEDED=!0,r9.UNKNOWN_ABORT=!0,r9.INCOMPATIBLE_DB_VERSION=!1,r9);g.S(g.ZA,g.Wy);g.S(fM,g.ZA);g.S(GB,Error);var YzJ=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.So.all=function(T){return new g.So(new sY(function(Q,k){var l=[],v=T.length;v===0&&Q(l);for(var L={QH:0};L.QH<T.length;L={QH:L.QH},++L.QH)g.So.resolve(T[L.QH]).then(function(q){return function(Y){l[q.QH]=Y;v--;v===0&&Q(l)}}(L)).catch(function(q){k(q)})}))};
  8635. g.So.resolve=function(T){return new g.So(new sY(function(Q,k){T instanceof g.So?T.then(Q,k):Q(T)}))};
  8636. g.So.reject=function(T){return new g.So(new sY(function(Q,k){k(T)}))};
  8637. g.So.prototype.then=function(T,Q){var k=this,l=T!=null?T:RfI,v=Q!=null?Q:Ujt;return new g.So(new sY(function(L,q){k.state.status==="PENDING"?(k.T.push(function(){ZV5(k,k,l,L,q)}),k.S.push(function(){fgT(k,k,v,L,q)})):k.state.status==="FULFILLED"?ZV5(k,k,l,L,q):k.state.status==="REJECTED"&&fgT(k,k,v,L,q)}))};
  8638. g.So.prototype.catch=function(T){return this.then(void 0,T)};g.h=Szu.prototype;g.h.add=function(T,Q,k){return g.AF(this,[T],{mode:"readwrite",r5:!0},function(l){return l.objectStore(T).add(Q,k)})};
  8639. g.h.clear=function(T){return g.AF(this,[T],{mode:"readwrite",r5:!0},function(Q){return Q.objectStore(T).clear()})};
  8640. g.h.close=function(){this.T.close();var T;((T=this.options)==null?0:T.closed)&&this.options.closed()};
  8641. g.h.count=function(T,Q){return g.AF(this,[T],{mode:"readonly",r5:!0},function(k){return k.objectStore(T).count(Q)})};
  8642. g.h.delete=function(T,Q){return g.AF(this,[T],{mode:"readwrite",r5:!0},function(k){return k.objectStore(T).delete(Q)})};
  8643. g.h.get=function(T,Q){return g.AF(this,[T],{mode:"readonly",r5:!0},function(k){return k.objectStore(T).get(Q)})};
  8644. g.h.getAll=function(T,Q,k){return g.AF(this,[T],{mode:"readonly",r5:!0},function(l){return l.objectStore(T).getAll(Q,k)})};
  8645. g.h.objectStoreNames=function(){return Array.from(this.T.objectStoreNames)};
  8646. g.h.getName=function(){return this.T.name};
  8647. g.h=wm.prototype;g.h.add=function(T,Q){return Be(this.T.add(T,Q))};
  8648. g.h.autoIncrement=function(){return this.T.autoIncrement};
  8649. g.h.clear=function(){return Be(this.T.clear()).then(function(){})};
  8650. g.h.count=function(T){return Be(this.T.count(T))};
  8651. g.h.delete=function(T){return T instanceof IDBKeyRange?X05(this,T):Be(this.T.delete(T))};
  8652. g.h.get=function(T){return Be(this.T.get(T))};
  8653. g.h.getAll=function(T,Q){return"getAll"in IDBObjectStore.prototype?Be(this.T.getAll(T,Q)):w05(this,T,Q)};
  8654. g.h.index=function(T){try{return new bVJ(this.T.index(T))}catch(Q){if(Q instanceof Error&&Q.name==="NotFoundError")throw new GB(T,this.T.name);throw Q;}};
  8655. g.h.getName=function(){return this.T.name};
  8656. g.h.keyPath=function(){return this.T.keyPath};
  8657. ce.prototype.abort=function(){this.T.abort();this.S=!0;throw new g.ZA("EXPLICIT_ABORT");};
  8658. ce.prototype.objectStore=function(T){T=this.T.objectStore(T);var Q=this.L.get(T);Q||(Q=new wm(T),this.L.set(T,Q));return Q};
  8659. g.h=bVJ.prototype;g.h.count=function(T){return Be(this.T.count(T))};
  8660. g.h.delete=function(T){return g.KM(this,{query:T},function(Q){return Q.delete().then(function(){return g.un(Q)})})};
  8661. g.h.get=function(T){return Be(this.T.get(T))};
  8662. g.h.getAll=function(T,Q){return"getAll"in IDBIndex.prototype?Be(this.T.getAll(T,Q)):reX(this,T,Q)};
  8663. g.h.keyPath=function(){return this.T.keyPath};
  8664. g.h.unique=function(){return this.T.unique};
  8665. xn.prototype.delete=function(){return Be(this.cursor.delete()).then(function(){})};
  8666. xn.prototype.getValue=function(){return this.cursor.value};
  8667. xn.prototype.update=function(T){return Be(this.cursor.update(T))};He.prototype.S=function(T,Q,k){k=k===void 0?{}:k;return Djb(T,Q,k)};
  8668. He.prototype.delete=function(T){T=T===void 0?{}:T;return Pe(this.name,T)};
  8669. He.prototype.open=function(){function T(){var L,q,Y,U,R,Z,f,G,m,I;return g.a(function(z){switch(z.S){case 1:return q=(L=Error().stack)!=null?L:"",g.z5(z,2),g.c(z,k.S(k.name,k.options.version,v),4);case 4:for(var w=Y=z.T,r=k.options,A=[],D=g.B(Object.keys(r.Sn)),K=D.next();!K.done;K=D.next()){K=K.value;var O=r.Sn[K],E=O.Fl9===void 0?Number.MAX_VALUE:O.Fl9;!(w.T.version>=O.C7)||w.T.version>=E||w.T.objectStoreNames.contains(K)||A.push(K)}U=A;if(U.length===0){z.Ym(5);break}R=Object.keys(k.options.Sn);
  8670. Z=Y.objectStoreNames();if(k.N<g.sG("ytidb_reopen_db_retries",0))return k.N++,Y.close(),Mh(new g.ZA("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:k.name,expectedObjectStores:R,foundObjectStores:Z})),z.return(T());if(!(k.Y<g.sG("ytidb_remake_db_retries",1))){z.Ym(6);break}k.Y++;return g.c(z,k.delete(),7);case 7:return Mh(new g.ZA("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:k.name,expectedObjectStores:R,foundObjectStores:Z})),z.return(T());case 6:throw new fM(Z,R);case 5:return z.return(Y);case 2:f=
  8671. g.by(z);if(f instanceof DOMException?f.name!=="VersionError":"DOMError"in self&&f instanceof DOMError?f.name!=="VersionError":!(f instanceof Object&&"message"in f)||f.message!=="An attempt was made to open a database using a lower version than the existing version."){z.Ym(8);break}return g.c(z,k.S(k.name,void 0,Object.assign({},v,{upgrade:void 0})),9);case 9:G=z.T;m=G.T.version;if(k.options.version!==void 0&&m>k.options.version+1)throw G.close(),k.L=!1,agb(k,m);return z.return(G);case 8:throw Q(),
  8672. f instanceof Error&&!g.hH("ytidb_async_stack_killswitch")&&(f.stack=f.stack+"\n"+q.substring(q.indexOf("\n")+1)),Ip(f,k.name,"",(I=k.options.version)!=null?I:-1);}})}
  8673. function Q(){k.T===l&&(k.T=void 0)}
  8674. var k=this;if(!this.L)throw agb(this);if(this.T)return this.T;var l,v={blocking:function(L){L.close()},
  8675. closed:Q,U_9:Q,upgrade:this.options.upgrade};return this.T=l=T()};var OY=new He("YtIdbMeta",{Sn:{databases:{C7:1}},upgrade:function(T,Q){Q(1)&&g.dm(T,"databases",{keyPath:"actualName"})}});var eo,JF=new function(){}(new function(){});new g.Zb;g.S(yH,He);yH.prototype.S=function(T,Q,k){k=k===void 0?{}:k;return(this.options.shared?p05:OVy)(T,Q,Object.assign({},k))};
  8676. yH.prototype.delete=function(T){T=T===void 0?{}:T;return(this.options.shared?ef5:Wog)(this.name,T)};var cZ9={},EQu=g.VH("ytGcfConfig",{Sn:(cZ9.coldConfigStore={C7:1},cZ9.hotConfigStore={C7:1},cZ9),shared:!1,upgrade:function(T,Q){Q(1)&&(g.DA(g.dm(T,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.DA(g.dm(T,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
  8677. version:1});g.S(QV,g.x);QV.prototype.EK=function(){for(var T=g.B(this.S),Q=T.next();!Q.done;Q=T.next()){var k=this.T;Q=k.indexOf(Q.value);Q>=0&&k.splice(Q,1)}this.S.length=0;g.x.prototype.EK.call(this)};qU.prototype.sE=function(T){this.hotHashData=T;g.Tv("yt.gcf.config.hotHashData",this.hotHashData||null)};var DXE=typeof TextEncoder!=="undefined"?new TextEncoder:null,xN5=DXE?function(T){return DXE.encode(T)}:function(T){T=g.wJ(T);
  8678. for(var Q=new Uint8Array(T.length),k=0;k<Q.length;k++)Q[k]=T[k];return Q};var Mz5={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},UU5={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};RK.prototype.xo=function(){return{version:this.version,args:this.args}};Z2.prototype.toString=function(){return this.topic};var aMA=g.jA("ytPubsub2Pubsub2Instance")||new g.XE;g.XE.prototype.subscribe=g.XE.prototype.subscribe;g.XE.prototype.unsubscribeByKey=g.XE.prototype.Y_;g.XE.prototype.publish=g.XE.prototype.publish;g.XE.prototype.clear=g.XE.prototype.clear;g.Tv("ytPubsub2Pubsub2Instance",aMA);var m4=g.jA("ytPubsub2Pubsub2SubscribedKeys")||{};g.Tv("ytPubsub2Pubsub2SubscribedKeys",m4);var IK=g.jA("ytPubsub2Pubsub2TopicToKeys")||{};g.Tv("ytPubsub2Pubsub2TopicToKeys",IK);var Xqb=g.jA("ytPubsub2Pubsub2IsAsync")||{};
  8679. g.Tv("ytPubsub2Pubsub2IsAsync",Xqb);g.Tv("ytPubsub2Pubsub2SkipSubKey",null);var Sz=void 0,sS=void 0;var uEt=g.sG("max_body_size_to_compress",5E5),nhf=g.sG("min_body_size_to_compress",500),Xh=!0,Ax=0,NU=0,Pwy=g.sG("compression_performance_threshold_lr",250),HbX=g.sG("slow_compressions_before_abandon_count",4),Bl=!1,zP=new Map,w7=1,KzI=!0;g.h=r7.prototype;g.h.writeThenSend=function(T,Q){var k=this;Q=Q===void 0?{}:Q;if(bM(this)&&this.T){var l={url:T,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.E$.set(l,this.Sk).then(function(v){l.id=v;k.Kd.In()&&k.OI(l)}).catch(function(v){k.OI(l);
  8680. cl(k,v)})}else this.sendFn(T,Q)};
  8681. g.h.sendThenWrite=function(T,Q,k){var l=this;Q=Q===void 0?{}:Q;if(bM(this)&&this.T){var v={url:T,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.Wd&&this.Wd("nwl_skip_retry")&&(v.skipRetry=k);if(this.Kd.In()||this.Wd&&this.Wd("nwl_aggressive_send_then_write")&&!v.skipRetry){if(!v.skipRetry){var L=Q.onError?Q.onError:function(){};
  8682. Q.onError=function(q,Y){return g.a(function(U){if(U.S==1)return g.c(U,l.E$.set(v,l.Sk).catch(function(R){cl(l,R)}),2);
  8683. L(q,Y);g.BT(U)})}}this.sendFn(T,Q,v.skipRetry)}else this.E$.set(v,this.Sk).catch(function(q){l.sendFn(T,Q,v.skipRetry);
  8684. cl(l,q)})}else k=this.Wd&&this.Wd("nwl_skip_retry")&&k,this.sendFn(T,Q,k)};
  8685. g.h.sendAndWrite=function(T,Q){var k=this;Q=Q===void 0?{}:Q;if(bM(this)&&this.T){var l={url:T,options:Q,timestamp:this.now(),status:"NEW",sendCount:0},v=!1,L=Q.onSuccess?Q.onSuccess:function(){};
  8686. l.options.onSuccess=function(q,Y){l.id!==void 0?k.E$.V2(l.id,k.Sk):v=!0;k.Kd.ZK&&k.Wd&&k.Wd("vss_network_hint")&&k.Kd.ZK(!0);L(q,Y)};
  8687. this.sendFn(l.url,l.options,void 0,!0);this.E$.set(l,this.Sk).then(function(q){l.id=q;v&&k.E$.V2(l.id,k.Sk)}).catch(function(q){cl(k,q)})}else this.sendFn(T,Q,void 0,!0)};
  8688. g.h.f4=function(){var T=this;if(!bM(this))throw Error("IndexedDB is not supported: throttleSend");this.S||(this.S=this.qy.oD(function(){var Q;return g.a(function(k){if(k.S==1)return g.c(k,T.E$.ir("NEW",T.Sk),2);if(k.S!=3)return Q=k.T,Q?g.c(k,T.OI(Q),3):(T.YZ(),k.return());T.S&&(T.S=0,T.f4());g.BT(k)})},this.Qc))};
  8689. g.h.YZ=function(){this.qy.wC(this.S);this.S=0};
  8690. g.h.OI=function(T){var Q=this,k;return g.a(function(l){switch(l.S){case 1:if(!bM(Q))throw Error("IndexedDB is not supported: immediateSend");if(T.id===void 0){l.Ym(2);break}return g.c(l,Q.E$.We(T.id,Q.Sk),3);case 3:(k=l.T)||Q.T4(Error("The request cannot be found in the database."));case 2:if(Q.nj(T,Q.qS)){l.Ym(4);break}Q.T4(Error("Networkless Logging: Stored logs request expired age limit"));if(T.id===void 0){l.Ym(5);break}return g.c(l,Q.E$.V2(T.id,Q.Sk),5);case 5:return l.return();case 4:T.skipRetry||
  8691. (T=JJH(Q,T));if(!T){l.Ym(0);break}if(!T.skipRetry||T.id===void 0){l.Ym(8);break}return g.c(l,Q.E$.V2(T.id,Q.Sk),8);case 8:Q.sendFn(T.url,T.options,!!T.skipRetry),g.BT(l)}})};
  8692. g.h.nj=function(T,Q){T=T.timestamp;return this.now()-T>=Q?!1:!0};
  8693. g.h.Wi=function(){var T=this;if(!bM(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.E$.ir("QUEUED",this.Sk).then(function(Q){Q&&!T.nj(Q,T.vX)?T.qy.oD(function(){return g.a(function(k){if(k.S==1)return Q.id===void 0?k.Ym(2):g.c(k,T.E$.F1(Q.id,T.Sk),2);T.Wi();g.BT(k)})}):T.Kd.In()&&T.f4()})};var D2;var m2J={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
  8694. mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
  8695. nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
  8696. assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
  8697. liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
  8698. visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
  8699. spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
  8700. vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
  8701. mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
  8702. kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
  8703. transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
  8704. ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
  8705. ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
  8706. accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
  8707. musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
  8708. yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
  8709. notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
  8710. tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
  8711. iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
  8712. mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
  8713. mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
  8714. clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
  8715. mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
  8716. mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
  8717. cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
  8718. startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
  8719. keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
  8720. adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var u3W={},kft=g.VH("ServiceWorkerLogsDatabase",{Sn:(u3W.SWHealthLog={C7:1},u3W),shared:!0,upgrade:function(T,Q){Q(1)&&g.DA(g.dm(T,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
  8721. version:1});var nj={},gi5=0;var Kj;Pl.prototype.requestComplete=function(T,Q){Q&&(this.S=!0);T=this.removeParams(T);this.T.get(T)||this.T.set(T,Q)};
  8722. Pl.prototype.isEndpointCFR=function(T){T=this.removeParams(T);return(T=this.T.get(T))?!1:T===!1&&this.S?!0:null};
  8723. Pl.prototype.removeParams=function(T){return T.split("?")[0]};
  8724. Pl.prototype.removeParams=Pl.prototype.removeParams;Pl.prototype.isEndpointCFR=Pl.prototype.isEndpointCFR;Pl.prototype.requestComplete=Pl.prototype.requestComplete;Pl.getInstance=Hl;g.S(tx,g.fL);g.h=tx.prototype;g.h.In=function(){return this.T.In()};
  8725. g.h.ZK=function(T){this.T.T=T};
  8726. g.h.Y7=function(){var T=window.navigator.onLine;return T===void 0?!0:T};
  8727. g.h.al=function(){this.S=!0};
  8728. g.h.listen=function(T,Q){return this.T.listen(T,Q)};
  8729. g.h.yY=function(T){T=KV(this.T,T);T.then(function(Q){g.hH("use_cfr_monitor")&&Hl().requestComplete("generate_204",Q)});
  8730. return T};
  8731. tx.prototype.sendNetworkCheckRequest=tx.prototype.yY;tx.prototype.listen=tx.prototype.listen;tx.prototype.enableErrorFlushing=tx.prototype.al;tx.prototype.getWindowStatus=tx.prototype.Y7;tx.prototype.networkStatusHint=tx.prototype.ZK;tx.prototype.isNetworkAvailable=tx.prototype.In;tx.getInstance=UIT;g.S(g.OS,g.fL);g.OS.prototype.In=function(){var T=g.jA("yt.networkStatusManager.instance.isNetworkAvailable");return T?T.bind(this.S)():!0};
  8732. g.OS.prototype.ZK=function(T){var Q=g.jA("yt.networkStatusManager.instance.networkStatusHint").bind(this.S);Q&&Q(T)};
  8733. g.OS.prototype.yY=function(T){var Q=this,k;return g.a(function(l){k=g.jA("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Q.S);return g.hH("skip_network_check_if_cfr")&&Hl().isEndpointCFR("generate_204")?l.return(new Promise(function(v){var L;Q.ZK(((L=window.navigator)==null?void 0:L.onLine)||!0);v(Q.In())})):k?l.return(k(T)):l.return(!0)})};var pj;g.S(Wl,r7);Wl.prototype.writeThenSend=function(T,Q){Q||(Q={});Q=Jx(T,Q);g.Jg()||(this.T=!1);r7.prototype.writeThenSend.call(this,T,Q)};
  8734. Wl.prototype.sendThenWrite=function(T,Q,k){Q||(Q={});Q=Jx(T,Q);g.Jg()||(this.T=!1);r7.prototype.sendThenWrite.call(this,T,Q,k)};
  8735. Wl.prototype.sendAndWrite=function(T,Q){Q||(Q={});Q=Jx(T,Q);g.Jg()||(this.T=!1);r7.prototype.sendAndWrite.call(this,T,Q)};
  8736. Wl.prototype.awaitInitialization=function(){return this.L.promise};var mI5=g.VC.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Tv("ytNetworklessLoggingInitializationOptions",mI5);g.ez.prototype.isReady=function(){!this.config_&&RKt()&&(this.config_=g.MU());return!!this.config_};var n1m,yV,VV;n1m=g.VC.ytPubsubPubsubInstance||new g.XE;yV=g.VC.ytPubsubPubsubSubscribedKeys||{};VV=g.VC.ytPubsubPubsubTopicToKeys||{};g.iM=g.VC.ytPubsubPubsubIsSynchronous||{};g.XE.prototype.subscribe=g.XE.prototype.subscribe;g.XE.prototype.unsubscribeByKey=g.XE.prototype.Y_;g.XE.prototype.publish=g.XE.prototype.publish;g.XE.prototype.clear=g.XE.prototype.clear;g.Tv("ytPubsubPubsubInstance",n1m);g.Tv("ytPubsubPubsubTopicToKeys",VV);g.Tv("ytPubsubPubsubIsSynchronous",g.iM);
  8737. g.Tv("ytPubsubPubsubSubscribedKeys",yV);var BE5={};g.S(R$,g.x);R$.prototype.append=function(T){if(!this.S)throw Error("This does not support the append operation");T=T.xB();this.xB().appendChild(T)};
  8738. g.S(ZZ,R$);ZZ.prototype.xB=function(){return this.T};g.S(fZ,g.x);fZ.prototype.onTouchStart=function(T){this.C=!0;this.S=T.touches.length;this.T.isActive()&&(this.T.stop(),this.N=!0);T=T.touches;this.B=wNb(this,T)||T.length!=1;var Q=T.item(0);this.B||!Q?this.D=this.j=Infinity:(this.j=Q.clientX,this.D=Q.clientY);for(Q=this.L.length=0;Q<T.length;Q++){var k=T.item(Q);this.L.push(k.identifier)}};
  8739. fZ.prototype.onTouchMove=function(T){T=T.changedTouches.item(0);var Q;if(Q=Kl()){Q=g.KJ();var k="";if(I15())k=/Windows (?:NT|Phone) ([0-9.]+)/,k=(Q=k.exec(Q))?Q[1]:"0.0";else if(Kl())k=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,k=(Q=k.exec(Q))&&Q[1].replace(/_/g,".");else if(xP())k=/Mac OS X ([0-9_.]+)/,k=(Q=k.exec(Q))?Q[1].replace(/_/g,"."):"10";else if(DW(g.KJ(),"KaiOS"))k=/(?:KaiOS)\/(\S+)/i,k=(Q=k.exec(Q))&&Q[1];else if(mpC())k=/Android\s+([^\);]+)(\)|;)/,k=(Q=k.exec(Q))&&Q[1];else if(uX()?Oi.platform===
  8740. "Chrome OS":Wg("CrOS"))k=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,k=(Q=k.exec(Q))&&Q[1];Q=!(g.nJ(k||"",8)>=0)}if(Q||T&&Math.pow(T.clientX-this.j,2)+Math.pow(T.clientY-this.D,2)>25)this.Y=!0};
  8741. fZ.prototype.onTouchEnd=function(T){var Q=T.changedTouches;Q&&this.C&&this.S==1&&!this.Y&&!this.N&&!this.B&&wNb(this,Q)&&(this.z9=T,this.T.start());this.S=T.touches.length;this.S===0&&(this.Y=this.C=!1,this.L.length=0);this.N=!1};var GA=Date.now().toString();var CZ={};var NE=Symbol("injectionDeps");zA.prototype.toString=function(){return"InjectionToken("+this.name+")"};
  8742. AIu.prototype.resolve=function(T){return T instanceof Xr?Au(this,T.key,[],!0):Au(this,T,[])};var bv;var cd=window;var nZ=g.hH("web_enable_lifecycle_monitoring")&&DZ()!==0,ni5=g.hH("web_enable_lifecycle_monitoring");DIH.prototype.cancel=function(){for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.jobId===void 0||Q.VT||this.scheduler.wC(Q.jobId),Q.VT=!0;this.S.resolve()};g.h=KZ.prototype;g.h.install=function(T){this.plugins.push(T);return this};
  8743. g.h.uninstall=function(){var T=this;g.HT.apply(0,arguments).forEach(function(Q){Q=T.plugins.indexOf(Q);Q>-1&&T.plugins.splice(Q,1)})};
  8744. g.h.transition=function(T,Q){var k=this;nZ&&rIH(this.state);var l=this.transitions.find(function(L){return Array.isArray(L.from)?L.from.find(function(q){return q===k.state&&L.to===T}):L.from===k.state&&L.to===T});
  8745. if(l){this.S&&(a0t(this.S),this.S=void 0);Kab(this,T,Q);this.state=T;nZ&&a$(this.state);l=l.action.bind(this);var v=this.plugins.filter(function(L){return L[T]}).map(function(L){return L[T]});
  8746. l(uHu(this,v),Q)}else throw Error("no transition specified from "+this.state+" to "+T);};
  8747. g.h.NcH=function(T){var Q=g.HT.apply(1,arguments);g.iu();for(var k=g.B(T),l=k.next(),v={};!l.done;v={xI:void 0},l=k.next())v.xI=l.value,vQI(function(L){return function(){Pd(L.xI.name);tu(function(){return L.xI.callback.apply(L.xI,g.ZH(Q))});
  8748. Hd(L.xI.name)}}(v))};
  8749. g.h.BcV=function(T){var Q=g.HT.apply(1,arguments),k,l,v,L;return g.a(function(q){q.S==1&&(g.iu(),k=g.B(T),l=k.next(),v={});if(q.S!=3){if(l.done)return q.Ym(0);v.Qi=l.value;v.Iq=void 0;L=function(Y){return function(){Pd(Y.Qi.name);var U=tu(function(){return Y.Qi.callback.apply(Y.Qi,g.ZH(Q))});
  8750. NZ(U)?Y.Iq=g.hH("web_lifecycle_error_handling_killswitch")?U.then(function(){Hd(Y.Qi.name)}):U.then(function(){Hd(Y.Qi.name)},function(R){cIC(R);
  8751. Hd(Y.Qi.name)}):Hd(Y.Qi.name)}}(v);
  8752. vQI(L);return v.Iq?g.c(q,v.Iq,3):q.Ym(3)}v={Qi:void 0,Iq:void 0};l=k.next();return q.Ym(2)})};
  8753. g.h.C2=function(T){var Q=g.HT.apply(1,arguments),k=this,l=T.map(function(v){return{SH:function(){Pd(v.name);tu(function(){return v.callback.apply(v,g.ZH(Q))});
  8754. Hd(v.name)},
  8755. priority:x_(k,v)}});
  8756. l.length&&(this.S=new DIH(l))};
  8757. g.oI.Object.defineProperties(KZ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var pZ;g.S(Oq,KZ);Oq.prototype.N=function(T,Q){var k=this;this.T=g.Er(0,function(){k.currentState==="application_navigating"&&k.transition("none")},5E3);
  8758. T(Q==null?void 0:Q.event)};
  8759. Oq.prototype.B=function(T,Q){this.T&&(g.P0.wC(this.T),this.T=null);T(Q==null?void 0:Q.event)};var f9=[];g.Tv("yt.logging.transport.getScrapedGelPayloads",function(){return f9});Wd.prototype.storePayload=function(T,Q){T=$_(T);this.store[T]?this.store[T].push(Q):(this.S={},this.store[T]=[Q]);this.T++;g.hH("more_accurate_gel_parser")&&(Q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Q));return T};
  8760. Wd.prototype.smartExtractMatchingEntries=function(T){if(!T.keys.length)return[];for(var Q=eV(this,T.keys.splice(0,1)[0]),k=[],l=0;l<Q.length;l++)this.store[Q[l]]&&T.sizeLimit&&(this.store[Q[l]].length<=T.sizeLimit?(k.push.apply(k,g.ZH(this.store[Q[l]])),delete this.store[Q[l]]):k.push.apply(k,g.ZH(this.store[Q[l]].splice(0,T.sizeLimit))));this.T-=k.length;(T==null?0:T.sizeLimit)&&k.length<(T==null?void 0:T.sizeLimit)&&(T.sizeLimit-=k.length,k.push.apply(k,g.ZH(this.smartExtractMatchingEntries(T))));
  8761. return k};
  8762. Wd.prototype.extractMatchingEntries=function(T){T=eV(this,T);for(var Q=[],k=0;k<T.length;k++)this.store[T[k]]&&(Q.push.apply(Q,g.ZH(this.store[T[k]])),delete this.store[T[k]]);this.T-=Q.length;return Q};
  8763. Wd.prototype.getSequenceCount=function(T){T=eV(this,T);for(var Q=0,k=0;k<T.length;k++){var l=void 0;Q+=((l=this.store[T[k]])==null?void 0:l.length)||0}return Q};
  8764. Wd.prototype.getSequenceCount=Wd.prototype.getSequenceCount;Wd.prototype.extractMatchingEntries=Wd.prototype.extractMatchingEntries;Wd.prototype.smartExtractMatchingEntries=Wd.prototype.smartExtractMatchingEntries;Wd.prototype.storePayload=Wd.prototype.storePayload;var lq5=g.sG("initial_gel_batch_timeout",2E3),kOJ=g.sG("gel_queue_timeout_max_ms",6E4),o5t=g.sG("gel_min_batch_size",5),ku=void 0,GO5=new Fr,fqt=new Fr,jUf=new Fr,QUT=new Fr,oP,Yu=!0,Zh=1,yz=new Map,gB=g.VC.ytLoggingTransportTokensToCttTargetIds_||{};g.Tv("ytLoggingTransportTokensToCttTargetIds_",gB);var q8=g.VC.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Tv("ytLoggingTransportTokensToJspbCttTargetIds_",q8);var T$={},PKb=!1;var G$=g.VC.ytLoggingGelSequenceIdObj_||{};g.Tv("ytLoggingGelSequenceIdObj_",G$);var yH6=[];var AHX,c_=g.VC.ytLoggingDocDocumentNonce_;c_||(c_=g.hu(16),g.Tv("ytLoggingDocDocumentNonce_",c_));AHX=c_;var wDJ={bD:0,bz_:1,HBK:2,oJ:3,E$H:4,pHd:5,C5d:6,SHARE:7,F7O:8,swO:9,A_d:10,asd:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var hIy=1;g.h=IP.prototype;g.h.getAsJson=function(){var T={};this.T.trackingParams!==void 0?T.trackingParams=this.T.trackingParams:(T.veType=this.T.veType,this.T.veCounter!==void 0&&(T.veCounter=this.T.veCounter),this.T.elementIndex!==void 0&&(T.elementIndex=this.T.elementIndex));this.T.dataElement!==void 0&&(T.dataElement=this.T.dataElement.getAsJson());this.T.youtubeData!==void 0&&(T.youtubeData=this.T.youtubeData);this.T.isCounterfactual&&(T.isCounterfactual=!0);return T};
  8765. g.h.getAsJspb=function(){var T=new AI;this.T.trackingParams!==void 0?T.setTrackingParams(this.T.trackingParams):(this.T.veType!==void 0&&lq(T,2,f2(this.T.veType)),this.T.veCounter!==void 0&&lq(T,6,f2(this.T.veCounter)),this.T.elementIndex!==void 0&&lq(T,3,f2(this.T.elementIndex)),this.T.isCounterfactual&&lq(T,5,Uv(!0)));if(this.T.dataElement!==void 0){var Q=this.T.dataElement.getAsJspb();Ns(T,AI,7,Q)}this.T.youtubeData!==void 0&&Ns(T,Pog,8,this.T.jspbYoutubeData);return T};
  8766. g.h.toString=function(){return JSON.stringify(this.getAsJson())};
  8767. g.h.isClientVe=function(){return!this.T.trackingParams&&!!this.T.veType};
  8768. g.h.getLoggingDirectives=function(){return this.T.loggingDirectives};g.Tv("yt_logging_screen.getRootVeType",BVf);g.Tv("yt_logging_screen.getCurrentCsn",g.C9);g.Tv("yt_logging_screen.getCttAuthInfo",Bx);g.Tv("yt_logging_screen.setCurrentScreen",bhH);var D2T="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var W65=[{w3:function(T){return"Cannot read property '"+T.key+"'"},
  8769. hU:{Error:[{oB:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{oB:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{oB:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{oB:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
  8770. groups:["value","key"]},{oB:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{oB:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{oB:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{w3:function(T){return"Cannot call '"+T.key+"'"},
  8771. hU:{TypeError:[{oB:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{oB:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{oB:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{oB:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{oB:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
  8772. {oB:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{w3:function(T){return T.key+" is not defined"},
  8773. hU:{ReferenceError:[{oB:/(.*) is not defined/,groups:["key"]},{oB:/Can't find variable: (.*)/,groups:["key"]}]}}];var x2t={qk:[],Uk:[{callback:aqb,weight:500},{callback:uwu,weight:500}]};var Xf;var cx=new g.XE;var $25=new Set,tSb=0,F6g=0,eI5=0,pDC=[],Oh6=[],E5f=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var VSg=new g.zf("parallelCommand");var j15=new g.zf("performOnceCommand");var Q1t=new g.zf("serialCommand");var aP=void 0;nV({},"sgPmTd");nV(null,"jypsq");nV(null,"mWiOof");g.S(K9,RK);var zK5=new Z2("screen-created",K9),E2=[],lkb=gqT,yU=0,Px=new Map,Hx=new Map,ta=new Map;g.fW(g.ox,g.x);g.h=g.ox.prototype;g.h.subscribe=function(T,Q,k){return this.wd()?0:this.b7.subscribe(T,Q,k)};
  8774. g.h.unsubscribe=function(T,Q,k){return this.wd()?!1:this.b7.unsubscribe(T,Q,k)};
  8775. g.h.Y_=function(T){return this.wd()?!1:this.b7.Y_(T)};
  8776. g.h.publish=function(T,Q){return this.wd()?!1:this.b7.publish.apply(this.b7,arguments)};
  8777. g.h.L7=function(T,Q){for(var k in T)this.subscribe(k,T[k],Q)};
  8778. g.h.L5=function(T,Q){for(var k in T)this.unsubscribe(k,T[k],Q)};var DbC=16/9,D3=[.25,.5,.75,1,1.25,1.5,1.75,2],Km1=D3.concat([3,4,5,6,7,8,9,10,15]),xX_=D3.concat([2.5,3,3.5,4]),P5W=D3.concat([2.5,3]);var MGX=1;g.S(g.LD,g.x);g.h=g.LD.prototype;
  8779. g.h.createElement=function(T,Q){Q=Q||T.X==="svg";var k=T.J,l=T.Rk;if(Q){var v=document.createElementNS("http://www.w3.org/2000/svg",T.X);g.wj&&(T.K||(T.K={}),T.K.focusable="false")}else v=g.fO(T.X);if(k){if(k=q1(this,v,"class",k))gD(this,v,"class",k),this.Gg[k]=v}else if(l){k=g.B(l);for(var L=k.next();!L.done;L=k.next())this.Gg[L.value]=v;gD(this,v,"class",l.join(" "))}l=T.S6;k=T.W;if(l)Q=q1(this,v,"child",l),Q!==void 0&&v.appendChild(g.G8(Q));else if(k)for(l=0,k=g.B(k),L=k.next();!L.done;L=k.next())if(L=
  8780. L.value)if(typeof L==="string")L=q1(this,v,"child",L),L!=null&&v.appendChild(g.G8(L));else if(L.element)v.appendChild(L.element);else{var q=L;L=this.createElement(q,Q);v.appendChild(L);q.kc&&(q=vZ(),L.id=q,L=document.createElementNS("http://www.w3.org/2000/svg","use"),L.setAttribute("class","ytp-svg-shadow"),L.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+q),hZ(v,L,l++))}if(T=T.K)for(Q=v,l=g.B(Object.keys(T)),k=l.next();!k.done;k=l.next())k=k.value,L=T[k],gD(this,Q,k,typeof L==="string"?
  8781. q1(this,Q,k,L):L);return v};
  8782. g.h.L_=function(T){return this.Gg[T]};
  8783. g.h.XB=function(T,Q){typeof Q==="number"?hZ(T,this.element,Q):T.appendChild(this.element)};
  8784. g.h.detach=function(){g.s$(this.element)};
  8785. g.h.update=function(T){for(var Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next())k=k.value,this.updateValue(k,T[k])};
  8786. g.h.updateValue=function(T,Q){(T=this.OW["{{"+T+"}}"])&&gD(this,T[0],T[1],Q)};
  8787. g.h.EK=function(){this.Gg={};this.OW={};this.detach();g.x.prototype.EK.call(this)};g.S(g.p,g.LD);g.h=g.p.prototype;g.h.qF=function(T,Q){this.updateValue(Q||"content",T)};
  8788. g.h.show=function(){this.Sr||(g.W2(this.element,"display",""),this.Sr=!0)};
  8789. g.h.hide=function(){this.Sr&&(g.W2(this.element,"display","none"),this.Sr=!1)};
  8790. g.h.o_=function(T){T?this.show():this.hide()};
  8791. g.h.vx=function(T){this.N=T};
  8792. g.h.listen=function(T,Q,k){return this.Z(this.element,T,Q,k)};
  8793. g.h.Z=function(T,Q,k,l){k=(0,g.Mp)(k,l||this);l={target:T,type:Q,listener:k};this.listeners.push(l);T.addEventListener(Q,k);return l};
  8794. g.h.J6=function(T){var Q=this;this.listeners.forEach(function(k,l){k===T&&(k=Q.listeners.splice(l,1)[0],k.target.removeEventListener(k.type,k.listener))})};
  8795. g.h.focus=function(){this.element.focus()};
  8796. g.h.EK=function(){for(;this.listeners.length;){var T=this.listeners.pop();T&&T.target.removeEventListener(T.type,T.listener)}g.LD.prototype.EK.call(this)};g.S(g.M1,g.p);g.M1.prototype.subscribe=function(T,Q,k){return this.u9.subscribe(T,Q,k)};
  8797. g.M1.prototype.unsubscribe=function(T,Q,k){return this.u9.unsubscribe(T,Q,k)};
  8798. g.M1.prototype.Y_=function(T){return this.u9.Y_(T)};
  8799. g.M1.prototype.publish=function(T){return this.u9.publish.apply(this.u9,[T].concat(g.ZH(g.HT.apply(1,arguments))))};var HO$=new WeakSet;g.S(Y8,g.M1);g.h=Y8.prototype;g.h.bind=function(T){this.p_||T.renderer&&this.init(T.id,T.renderer,{},T);return Promise.resolve()};
  8800. g.h.init=function(T,Q,k){this.p_=T;this.element.setAttribute("id",this.p_);this.Tg&&g.oF(this.element,this.Tg);this.z9=Q&&Q.adRendererCommands;this.e6=Q.interaction;var l;((l=this.e6)==null?0:l.onTap)&&g.oF(this.element,"ytp-ad-component--clickable");this.macros=k;this.j=Q.trackingParams||null;var v,L;this.C=(L=(v=g.t(Q.rendererContext,Jim))==null?void 0:v.loggingDirectives)!=null?L:Q.loggingDirectives;this.j!=null?this.createServerVe(this.element,this.j):this.C&&(T=this.element,Q=this.C,this.api.createServerVe(T,
  8801. this,!0),this.api.setTrackingParams(T,Q.trackingParams||null))};
  8802. g.h.clear=function(){};
  8803. g.h.hide=function(){g.M1.prototype.hide.call(this);(this.j!=null||this.C)&&this.logVisibility(this.element,!1)};
  8804. g.h.show=function(){g.M1.prototype.show.call(this);if(!this.QR){this.QR=!0;var T=this.z9&&this.z9.impressionCommand,Q,k=(Q=this.e6)==null?void 0:Q.onFirstVisible;T?this.WY(T):k&&(T=uA(k))&&this.WY(T)}(this.j!=null||this.C)&&this.logVisibility(this.element,!0)};
  8805. g.h.onClick=function(T){if((this.j||this.C)&&!HO$.has(T)){var Q=this.element;this.api.hasVe(Q)&&this.Sr&&this.api.logClick(Q,this.interactionLoggingClientData);HO$.add(T)}var k=this.z9&&this.z9.clickCommand,l;Q=(l=this.e6)==null?void 0:l.onTap;if(k)Q=this.WX(k),this.WY(Q);else{if(l=Q)a:{l=this.element;T=T.composedPath();T=g.B(T);for(k=T.next();!k.done;k=T.next()){k=k.value;if(k===l)break;if(k.className.indexOf("ytp-ad-component--clickable")>=0){l=!1;break a}}l=!0}l&&(Q=uA(Q))&&this.WY(Q)}};
  8806. g.h.WX=function(T){return T};
  8807. g.h.onTouchStart=function(T){this.hj.onTouchStart(T)};
  8808. g.h.onTouchMove=function(T){this.hj.onTouchMove(T)};
  8809. g.h.onTouchEnd=function(T){if(this.hj)this.hj.onTouchEnd(T)};
  8810. g.h.WY=function(T){this.layoutId?this.G9.executeCommand(T,this.layoutId):(T=new g.Wy("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.bA(T))};
  8811. g.h.createServerVe=function(T,Q){this.api.createServerVe(T,this);this.api.setTrackingParams(T,Q)};
  8812. g.h.logVisibility=function(T,Q){this.api.hasVe(T)&&this.api.logVisibility(T,Q,this.interactionLoggingClientData)};
  8813. g.h.EK=function(){this.clear(null);this.J6(this.zg);for(var T=g.B(this.xm),Q=T.next();!Q.done;Q=T.next())this.J6(Q.value);g.M1.prototype.EK.call(this)};g.S(rD,Y8);
  8814. rD.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.T=Q;if(Q.text==null&&Q.icon==null)g.rB(Error("ButtonRenderer did not have text or an icon set."));else{switch(Q.style||null){case "STYLE_UNKNOWN":T="ytp-ad-button-link";break;default:T=null}T!=null&&g.oF(this.element,T);Q.text!=null&&(T=g.Rx(Q.text),g.bB(T)||(this.element.setAttribute("aria-label",T),this.L=new g.M1({X:"span",J:"ytp-ad-button-text",S6:T}),g.P(this,this.L),this.L.XB(this.element)));Q.accessibilityData&&Q.accessibilityData.accessibilityData&&
  8815. Q.accessibilityData.accessibilityData.label&&!g.bB(Q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Q.accessibilityData.accessibilityData.label);Q.icon!=null&&(Q=bD(Q.icon,this.Y),Q!=null&&(this.S=new g.M1({X:"span",J:"ytp-ad-button-icon",W:[Q]}),g.P(this,this.S)),this.B?hZ(this.element,this.S.element,0):this.S.XB(this.element))}};
  8816. rD.prototype.clear=function(){this.hide()};
  8817. rD.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T);T=g.B(PuI(this));for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.S(cZ,g.x);cZ.prototype.EK=function(){this.S&&g.CY(this.S);this.T.clear();DF=null;g.x.prototype.EK.call(this)};
  8818. cZ.prototype.register=function(T,Q){Q&&this.T.set(T,Q)};
  8819. var DF=null;g.S(nD,Y8);
  8820. nD.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);T=Q.hoverText||null;Q=Q.button&&g.t(Q.button,g.jw)||null;Q==null?g.bA(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,void 0,void 0,void 0,void 0,this.L),g.P(this,this.button),this.button.init(k8("button"),Q,this.macros),T&&this.button.element.setAttribute("aria-label",g.Rx(T)),this.button.XB(this.element),this.D&&!g.lw(this.button.element,
  8821. "ytp-ad-clickable")&&g.oF(this.button.element,"ytp-ad-clickable"),this.L&&g.oF(this.button.element,"ytp-ad-hover-text-button--clean-player"),T&&(this.S=new g.M1({X:"div",J:"ytp-ad-hover-text-container"}),this.B&&(Q=new g.M1({X:"div",J:"ytp-ad-hover-text-callout"}),Q.XB(this.S.element),g.P(this,Q)),g.P(this,this.S),this.S.XB(this.element),Q=ax(T),hZ(this.S.element,Q,0)),this.show())};
  8822. nD.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();Y8.prototype.hide.call(this)};
  8823. nD.prototype.show=function(){this.button&&this.button.show();Y8.prototype.show.call(this)};g.S(x8,Y8);
  8824. x8.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);k=(T=Q.thumbnail)&&KD(T)||"";g.bB(k)?Math.random()<.01&&g.rB(Error("Found AdImage without valid image URL")):(this.T?g.W2(this.element,"backgroundImage","url("+k+")"):MX(this.element,{src:k}),MX(this.element,{alt:T&&T.accessibility&&T.accessibility.label||""}),Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
  8825. x8.prototype.clear=function(){this.hide()};g.S(PZ,Y8);g.h=PZ.prototype;g.h.hide=function(){Y8.prototype.hide.call(this);this.L&&this.L.focus()};
  8826. g.h.show=function(){this.L=document.activeElement;Y8.prototype.show.call(this);this.Y.focus()};
  8827. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.S=Q;Q.dialogMessages||Q.title!=null?Q.confirmLabel==null?g.bA(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Q.cancelLabel==null?g.bA(Error("ConfirmDialogRenderer.cancelLabel was not set.")):py5(this,Q):g.bA(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
  8828. g.h.clear=function(){g.N5(this.T);this.hide()};
  8829. g.h.us=function(){this.hide()};
  8830. g.h.Xf=function(){var T=this.S.cancelEndpoint;T&&(this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for confirm dialog.")));this.hide()};
  8831. g.h.t0=function(){var T=this.S.confirmNavigationEndpoint||this.S.confirmEndpoint;T&&(this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for confirm dialog.")));this.hide()};g.S(HZ,Y8);g.h=HZ.prototype;
  8832. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.L=Q;if(Q.defaultText==null&&Q.defaultIcon==null)g.bA(Error("ToggleButtonRenderer must have either text or icon set."));else if(Q.defaultIcon==null&&Q.toggledIcon!=null)g.bA(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Q.style){switch(Q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":T="ytp-ad-toggle-button-default-style";break;default:T=null}T!=null&&g.oF(this.Y,T)}T={};Q.defaultText?
  8833. (k=g.Rx(Q.defaultText),g.bB(k)||(T.buttonText=k,this.api.G().experiments.Wd("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",k),this.api.G().experiments.Wd("fix_h5_toggle_button_a11y")&&this.S.setAttribute("aria-label",k))):g.kj(this.i9,!1);Q.defaultTooltip&&(T.tooltipText=Q.defaultTooltip,this.T.hasAttribute("aria-label")||this.S.setAttribute("aria-label",Q.defaultTooltip));Q.defaultIcon?(k=bD(Q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",k),Q.toggledIcon?(this.qO=
  8834. !0,k=bD(Q.toggledIcon),this.updateValue("toggledIconTemplateSpec",k)):(g.kj(this.D,!0),g.kj(this.B,!1)),g.kj(this.T,!1)):g.kj(this.S,!1);g.Rs(T)||this.update(T);Q.isToggled&&(g.oF(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(Q.isToggled));tc(this);this.Z(this.element,"change",this.hw);this.show()}};
  8835. g.h.onClick=function(T){this.xm.length>0&&(this.toggleButton(!this.isToggled()),this.hw());Y8.prototype.onClick.call(this,T)};
  8836. g.h.hw=function(){g.gl(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var T=g.B(Wd5(this,this.isToggled())),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);tc(this)};
  8837. g.h.clear=function(){this.hide()};
  8838. g.h.toggleButton=function(T){g.gl(this.Y,"ytp-ad-toggle-button-toggled",T);this.T.checked=T;tc(this)};
  8839. g.h.isToggled=function(){return this.T.checked};g.S(OC,wi);OC.prototype.N=function(T){if(Array.isArray(T)){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q instanceof $56&&this.L(Q)}};g.S(pD,Y8);g.h=pD.prototype;g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);Q.reasons?Q.confirmLabel==null?g.bA(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Q.cancelLabel==null&&g.rB(Error("AdFeedbackRenderer.cancelLabel was not set.")),Q.title==null&&g.rB(Error("AdFeedbackRenderer.title was not set.")),Eqg(this,Q)):g.bA(Error("AdFeedbackRenderer.reasons were not set."))};
  8840. g.h.clear=function(){By(this.B);By(this.D);this.Y.length=0;this.hide()};
  8841. g.h.hide=function(){this.T&&this.T.hide();this.S&&this.S.hide();Y8.prototype.hide.call(this);this.L&&this.L.focus()};
  8842. g.h.show=function(){this.T&&this.T.show();this.S&&this.S.show();this.L=document.activeElement;Y8.prototype.show.call(this);this.B.focus()};
  8843. g.h.PN=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
  8844. g.h.FFO=function(){this.hide()};
  8845. WZ.prototype.xB=function(){return this.T.element};
  8846. WZ.prototype.getCommand=function(){return this.S};
  8847. WZ.prototype.isChecked=function(){return this.L.checked};g.S($8,PZ);$8.prototype.us=function(T){PZ.prototype.us.call(this,T);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
  8848. $8.prototype.Xf=function(T){PZ.prototype.Xf.call(this,T);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
  8849. $8.prototype.t0=function(T){PZ.prototype.t0.call(this,T);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.S(Jc,Y8);g.h=Jc.prototype;
  8850. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.B=Q;if(Q.dialogMessage==null&&Q.title==null)g.bA(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Q.confirmLabel==null&&g.rB(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(T=Q.closeOverlayRenderer&&g.t(Q.closeOverlayRenderer,g.jw)||null)this.T=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
  8851. g.P(this,this.T),this.T.init(k8("button"),T,this.macros),this.T.XB(this.element);Q.title&&(T=g.Rx(Q.title),this.updateValue("title",T));if(Q.adReasons)for(T=Q.adReasons,k=0;k<T.length;k++){var l=ax(T[k]);if(!g.bB(l.textContent)){var v=ZM("LI");v.appendChild(l);this.Bd.appendChild(v)}}else g.kj(this.Bd,!1);Q.dialogMessage&&(T=ax(Q.dialogMessage,!0),this.Jj.appendChild(T));Q.confirmLabel&&(T=g.Rx(Q.confirmLabel),this.updateValue("confirmLabel",T));Q.muteAdRenderer&&(Q=g.t(Q.muteAdRenderer,g.jw)||null)&&
  8852. (T=Q.navigationEndpoint&&g.t(Q.navigationEndpoint,yiW)||null,k=Q.navigationEndpoint&&g.t(Q.navigationEndpoint,PXA)||null,T==null&&k==null?g.rB(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(T?ygt(this,T):k&&iYT(this,k),this.L=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-info-dialog-mute-button"],"button",!0),g.P(this,this.L),this.L.init(k8("button"),Q,this.macros),this.L.listen("click",
  8853. this.N5k,this),this.L.XB(this.K_)));VGg(this)}};
  8854. g.h.clear=function(){By(this.D);this.hide()};
  8855. g.h.hide=function(){this.S?this.S.hide():this.Y&&this.Y.hide();this.T&&this.T.hide();this.L&&this.L.hide();Y8.prototype.hide.call(this);this.qO&&this.qO.focus()};
  8856. g.h.show=function(){this.T&&this.T.show();this.L&&this.L.show();if(!this.sK){for(var T=g.B(this.B&&this.B.impressionEndpoints||[]),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for ad info dialog."));this.sK=!0}this.qO=document.activeElement;Y8.prototype.show.call(this);this.D.focus()};
  8857. g.h.L8=function(){if(this.B&&this.B.confirmServiceEndpoint){var T=this.B.confirmServiceEndpoint;this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
  8858. g.h.N5k=function(){var T=this.S?this.S:this.Y;T&&!T.Sr&&(this.hide(),T.show())};g.S(ex,nD);ex.prototype.init=function(T,Q,k){nD.prototype.init.call(this,T,Q,k);T=Q.button&&g.t(Q.button,g.jw)||null;T!=null&&(lA5(this,T,k),this.show())};
  8859. ex.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();nD.prototype.hide.call(this)};
  8860. ex.prototype.show=function(){this.button&&this.button.show();nD.prototype.show.call(this)};
  8861. ex.prototype.clear=function(){this.hide()};g.S(Fc,Y8);
  8862. Fc.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.T=Q;this.isTemplated()||g.CO(this.element,UC(this.T));if(Q.backgroundImage&&(T=(T=Q.backgroundImage.thumbnail)?KD(T):"",k=(k=this.api.getVideoData(1))&&k.i5,T&&k&&(this.element.style.backgroundImage="url("+T+")",this.element.style.backgroundSize="100%"),Q.style&&Q.style.adTextStyle))switch(Q.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(T=g.cX(Q.targetId))&&this.element.setAttribute("data-tooltip-target-id",T);
  8863. Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
  8864. Fc.prototype.isTemplated=function(){return this.T.isTemplated||!1};
  8865. Fc.prototype.clear=function(){this.hide()};var UhC={seekableStart:0,seekableEnd:1,current:0};g.S(y6,Y8);y6.prototype.clear=function(){this.dispose()};g.S(g.TZ,g.x);g.h=g.TZ.prototype;g.h.show=function(T){this.state!==1&&this.state!==2&&(this.state===4&&this.cK(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.T&&this.T()):this.element.Sr||(Qr(this,!0),this.state=1,T?this.delay.start(T):this.cK()))};
  8866. g.h.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Sr&&(Qr(this,!0),this.state=4,this.delay.start(this.L)))};
  8867. g.h.cK=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Qr(this,!1);this.state=3;this.delay.start(this.S);break;case 3:this.state=null;this.T&&this.T();break;case 4:this.element.hide();Qr(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
  8868. g.h.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.cK()};
  8869. g.h.EK=function(){this.element.wd()||this.element.element.removeAttribute("aria-hidden");g.x.prototype.EK.call(this)};g.S(jM,y6);g.h=jM.prototype;
  8870. g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);T=Q.durationMilliseconds;typeof T==="number"&&T<0&&g.bA(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+T));this.f_&&(this.Y?g.oF(this.S.element,"modern-countdown-next-to-thumbnail"):g.oF(this.S.element,"countdown-next-to-thumbnail"));T=Q.durationMilliseconds;this.Bd=T==null||T===0?this.T.Kk():T;if(Q.templatedCountdown)var l=Q.templatedCountdown.templatedAdText;else Q.staticPreview&&(l=Q.staticPreview);
  8871. this.L.init(k8("ad-text"),l,k);(l=this.api.getVideoData(1))&&l.i5&&Q.thumbnail?this.B.init(k8("ad-image"),Q.thumbnail,k):(this.i9.hide(),this.Y&&this.f_&&g.oF(this.L.element,"ytp-ad-preview-text-modern-postroll"))};
  8872. g.h.clear=function(){this.hide()};
  8873. g.h.hide=function(){this.S.hide();this.L.hide();this.B.hide();V6(this);y6.prototype.hide.call(this)};
  8874. g.h.show=function(){iD(this);this.S.show();this.L.show();this.B.show();y6.prototype.show.call(this)};
  8875. g.h.yF=function(){this.hide()};
  8876. g.h.yb=function(){if(this.T!=null){var T=this.T.getProgressState();T!=null&&T.current!=null&&(T=1E3*T.current,!this.Jj&&T>=this.Bd?(this.qO.hide(),this.Jj=!0,this.publish("i")):this.L&&this.L.isTemplated()&&(T=Math.max(0,Math.ceil((this.Bd-T)/1E3)),T!=this.K_&&(EC(this.L,{TIME_REMAINING:String(T)}),this.K_=T)))}};g.S(kX,y6);g.h=kX.prototype;
  8877. g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if((T=Q.actionButton&&g.t(Q.actionButton,g.jw))&&T.navigationEndpoint){var l=this.api.getVideoData(2);if(l!=null)if(Q.image&&Q.image.thumbnail){var v=Q.image.thumbnail.thumbnails;v!=null&&v.length>0&&g.bB(g.cX(v[0].url))&&(v[0].url=l.profilePicture)}else g.rB(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(k8("ad-image"),Q.image,k);this.B.init(k8("ad-text"),
  8878. Q.headline,k);this.Y.init(k8("ad-text"),Q.description,k);this.S.init(k8("button"),T,k);k=Je(this.S.element);pV(this.S.element,k+" This link opens in new tab");this.qO=T.navigationEndpoint;this.api.VH()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.FN.bind(this));this.i9=Q.startMs||0;iD(this)}else g.bA(Error("FlyoutCtaRenderer has no valid action button."));else g.bA(Error("FlyoutCtaRenderer has no description AdText."));else g.bA(Error("FlyoutCtaRenderer has no headline AdText."));
  8879. else g.rB(Error("FlyoutCtaRenderer has no image."))};
  8880. g.h.onClick=function(T){y6.prototype.onClick.call(this,T);this.api.pauseVideo();!g.SO(this.S.element,T.target)&&this.qO&&(this.layoutId?this.G9.executeCommand(this.qO,this.layoutId):g.bA(Error("Missing layoutId for flyout cta.")))};
  8881. g.h.yb=function(){if(this.T){var T=this.T.getProgressState();(T&&T.current||this.Bd)&&1E3*T.current>=this.i9&&(V6(this),g.Lb(this.element,"ytp-flyout-cta-inactive"),this.S.element.removeAttribute("tabIndex"))}};
  8882. g.h.yF=function(){this.clear()};
  8883. g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.FN.bind(this))};
  8884. g.h.show=function(){this.S&&this.S.show();y6.prototype.show.call(this)};
  8885. g.h.hide=function(){this.S&&this.S.hide();y6.prototype.hide.call(this)};
  8886. g.h.FN=function(T){T=="hidden"?this.show():this.hide()};g.S(lP,Y8);g.h=lP.prototype;
  8887. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.T=Q;if(this.T.rectangle)for(T=this.T.likeButton&&g.t(this.T.likeButton,w9),Q=this.T.dislikeButton&&g.t(this.T.dislikeButton,w9),this.L.init(k8("toggle-button"),T,k),this.S.init(k8("toggle-button"),Q,k),this.Z(this.element,"change",this.Y2),this.Y.show(100),this.show(),k=g.B(this.T&&this.T.impressionCommands||[]),T=k.next();!T.done;T=k.next())T=T.value,this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for instream user sentiment."))};
  8888. g.h.clear=function(){this.hide()};
  8889. g.h.hide=function(){this.L.hide();this.S.hide();Y8.prototype.hide.call(this)};
  8890. g.h.show=function(){this.L.show();this.S.show();Y8.prototype.show.call(this)};
  8891. g.h.Y2=function(){AzX(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.tj("onYtShowToast",this.T.postMessageAction);this.Y.hide()};
  8892. g.h.onClick=function(T){this.xm.length>0&&this.Y2();Y8.prototype.onClick.call(this,T)};g.S(oY,g.x);g.h=oY.prototype;g.h.EK=function(){this.reset();g.x.prototype.EK.call(this)};
  8893. g.h.reset=function(){g.N5(this.Y);this.B=!1;this.T&&this.T.stop();this.N.stop();this.L&&(this.L=!1,this.C.play())};
  8894. g.h.start=function(){this.reset();this.Y.Z(this.S,"mouseover",this.iB,this);this.Y.Z(this.S,"mouseout",this.mq,this);this.z9&&(this.Y.Z(this.S,"focusin",this.iB,this),this.Y.Z(this.S,"focusout",this.mq,this));this.T?this.T.start():(this.B=this.L=!0,g.W2(this.S,{opacity:this.D}))};
  8895. g.h.iB=function(){this.L&&(this.L=!1,this.C.play());this.N.stop();this.T&&this.T.stop()};
  8896. g.h.mq=function(){this.B?this.N.start():this.T&&this.T.start()};
  8897. g.h.lP=function(){this.L||(this.L=!0,this.j.play(),this.B=!0)};var qYX=[new v8("b.f_",!1,0),new v8("j.s_",!1,2),new v8("r.s_",!1,4),new v8("e.h_",!1,6),new v8("i.s_",!0,8),new v8("s.t_",!1,10),new v8("p.h_",!1,12),new v8("s.i_",!1,14),new v8("f.i_",!1,16),new v8("a.b_",!1,18),new v8("a.o_",!1),new v8("g.o_",!1,22),new v8("p.i_",!1,24),new v8("p.m_",!1),new v8("n.k_",!0,20),new v8("i.f_",!1),new v8("a.s_",!0),new v8("m.c_",!1),new v8("n.h_",!1,26),new v8("o.p_",!1),new v8("m.p_",!0,28),new v8("o.a_",!1),new v8("d.p_",!1),new v8("e.i_",!1)].reduce(function(T,Q){T[Q.S]=
  8898. Q;return T},{});g.S(ZV,y6);g.h=ZV.prototype;
  8899. g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);this.qO=Q;(this.i9=Mou(this))&&g.rB(Error("hasAdControlInClickCommands_ is true."));if(!Q||g.Rs(Q))g.bA(Error("SkipButtonRenderer was not specified or empty."));else if(!Q.message||g.Rs(Q.message))g.bA(Error("SkipButtonRenderer.message was not specified or empty."));else if(T=this.B?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},Q=bD(T),Q==null?g.bA(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+T.iconType+".")):
  8900. (this.api.G().V("disable_touch_events_on_skip_button")&&(Q.K=Object.assign({},Q.K,{"aria-hidden":"true",UAB:"false"})),this.L=new g.M1({X:"button",Rk:[this.B?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{X:"span",J:this.B?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[Q]}]}),g.P(this,this.L),this.L.XB(this.Y.element),this.S=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-skip-button-text"),this.B&&this.S.element.classList.add("ytp-ad-skip-button-text-centered"),
  8901. this.S.init(k8("ad-text"),this.qO.message,k),g.P(this,this.S),hZ(this.L.element,this.S.element,0)),!this.api.G().V("disable_touch_events_on_skip_button")){var l=l===void 0?null:l;k=this.api.G();!(this.xm.length>0)&&k.S&&(ic?0:"ontouchstart"in document.documentElement&&(yTb()||M_()))&&(this.J6(this.zg),l&&this.J6(l),this.xm=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}};
  8902. g.h.clear=function(){this.Bd.reset();this.hide()};
  8903. g.h.hide=function(){this.Y.hide();this.S&&this.S.hide();V6(this);y6.prototype.hide.call(this)};
  8904. g.h.onClick=function(T){if(this.L!=null){if(T){var Q=T||window.event;Q.returnValue=!1;Q.preventDefault&&Q.preventDefault()}var k;if(vnu(T,{contentCpn:((k=this.api.getVideoData(1))==null?void 0:k.clientPlaybackNonce)||""})===0)this.api.tj("onAbnormalityDetected");else if(y6.prototype.onClick.call(this,T),this.publish("j"),this.api.tj("onAdSkip"),this.Jj||!this.i9)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
  8905. g.h.WX=function(T){if(!this.Jj)return this.i9&&MH("SkipButton click commands not pruned while ALC exist"),T;var Q,k=(Q=g.t(T,g.fN))==null?void 0:Q.commands;if(!k)return T;T=[];for(Q=0;Q<k.length;Q++){var l=k[Q];l.adLifecycleCommand&&gnT(l.adLifecycleCommand)||l.pingingEndpoint||l.adPingingEndpoint||T.push(l)}return{commandExecutorCommand:{commands:T}}};
  8906. g.h.show=function(){this.Bd.start();this.Y.show();this.S&&this.S.show();iD(this);y6.prototype.show.call(this);this.K_&&this.api.G().V("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
  8907. g.h.yF=function(){this.publish("k")};
  8908. g.h.yb=function(){};g.S(GZ,y6);g.h=GZ.prototype;
  8909. g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);T=Q&&Q.preskipRenderer&&g.t(Q.preskipRenderer,QN)||{};(T=g.Rs(T)?null:T)?(this.B=T.durationMilliseconds!=null&&T.durationMilliseconds!==void 0?T.durationMilliseconds:5E3,this.S=new jM(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T,S4(this.api.G().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&fF(this.api.G())),this.S.init(k8("preskip-component"),T,k),T=this.S,T.qO.show(100),T.show(),
  8910. g.P(this,this.S),this.S.XB(this.element)):Q.skipOffsetMilliseconds&&(this.B=Q.skipOffsetMilliseconds);T=Q&&Q.skippableRenderer&&g.t(Q.skippableRenderer,XXd)||{};T=g.Rs(T)?null:T;T==null?g.bA(Error("SkipButtonRenderer was not set in player response.")):(this.L=new ZV(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T,this.qO),this.L.init(k8("skip-button"),T,k),g.P(this,this.L),this.L.XB(this.element),this.api.G().experiments.Wd("enable_skip_to_next_messaging")&&(Q=g.cX(Q.targetId))&&
  8911. (k=this.L,k.L!=null&&(k.K_=!0,k.L.element.setAttribute("data-tooltip-target-id",Q),k.L.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
  8912. g.h.show=function(){this.Y&&this.L?this.L.show():this.S&&this.S.show();iD(this);y6.prototype.show.call(this)};
  8913. g.h.yF=function(){};
  8914. g.h.clear=function(){this.S&&this.S.clear();this.L&&this.L.clear();V6(this);y6.prototype.hide.call(this)};
  8915. g.h.hide=function(){this.S&&this.S.hide();this.L&&this.L.hide();V6(this);y6.prototype.hide.call(this)};
  8916. g.h.yb=function(){1E3*this.T.getProgressState().current>=this.B&&YY6(this,!0)};g.S(mP,rD);mP.prototype.init=function(T,Q,k){rD.prototype.init.call(this,T,Q,k);T=!1;Q.text!=null&&(T=g.Rx(Q.text),T=!g.bB(T));T?Q.navigationEndpoint==null?g.rB(Error("No visit advertiser clickthrough provided in renderer,")):Q.style!=="STYLE_UNKNOWN"?g.rB(Error("Button style was not a link-style type in renderer,")):this.show():g.rB(Error("No visit advertiser text was present in the renderer."))};g.S(IY,Y8);
  8917. IY.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);T=Q.text;g.bB(UC(T))?g.rB(Error("SimpleAdBadgeRenderer has invalid or empty text")):(T&&T.text&&(Q=T.text,this.L&&!this.S&&(Q=this.api.G(),Q=T.text+" "+(Q&&Q.S?"\u2022":"\u00b7")),Q={text:Q,isTemplated:T.isTemplated},T.style&&(Q.style=T.style),T.targetId&&(Q.targetId=T.targetId),T=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),T.init(k8("simple-ad-badge"),Q,k),T.XB(this.element),g.P(this,T)),this.show())};
  8918. IY.prototype.clear=function(){this.hide()};g.S(h$,lD);g.S(se,g.ox);g.h=se.prototype;g.h.Kk=function(){return this.durationMs};
  8919. g.h.stop=function(){this.T&&this.Qp.J6(this.T)};
  8920. g.h.bC=function(T){this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:T.current};this.publish("h")};
  8921. g.h.getProgressState=function(){return this.S};
  8922. g.h.c8=function(T){g.RY(T,2)&&this.publish("g")};g.S(SM,g.ox);g.h=SM.prototype;g.h.Kk=function(){return this.durationMs};
  8923. g.h.start=function(){this.T||(this.T=!0,this.timer.start())};
  8924. g.h.stop=function(){this.T&&(this.T=!1,this.timer.stop())};
  8925. g.h.bC=function(){this.l8+=100;var T=!1;this.l8>this.durationMs&&(this.l8=this.durationMs,this.timer.stop(),T=!0);this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.l8/1E3};this.publish("h");T&&this.publish("g")};
  8926. g.h.getProgressState=function(){return this.S};g.S(zZ,y6);g.h=zZ.prototype;g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);var l;if(Q==null?0:(l=Q.templatedCountdown)==null?0:l.templatedAdText){T=Q.templatedCountdown.templatedAdText;if(!T.isTemplated){g.rB(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.S=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);this.S.init(k8("ad-text"),T,{});this.S.XB(this.element);g.P(this,this.S)}this.show()};
  8927. g.h.clear=function(){this.hide()};
  8928. g.h.hide=function(){V6(this);y6.prototype.hide.call(this)};
  8929. g.h.yF=function(){this.hide()};
  8930. g.h.yb=function(){if(this.T!=null){var T=this.T.getProgressState();if(T!=null&&T.current!=null&&this.S){var Q=this.T instanceof se?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:T.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof SM?T.seekableEnd:this.api.getDuration(2,!1);T=T.current;var k,l,v=((k=this.api.getVideoData())==null?0:(l=k.lf)==null?0:l.call(k))?Math.max(Q-T,0):Q-T;EC(this.S,{FORMATTED_AD_DURATION_REMAINING:String(g.CN(v)),
  8931. TIME_REMAINING:String(Math.ceil(v))})}}};
  8932. g.h.show=function(){iD(this);y6.prototype.show.call(this)};g.S(X8,Fc);X8.prototype.onClick=function(T){Fc.prototype.onClick.call(this,T);this.api.onAdUxClicked(this.componentType)};g.S(d3,Y8);d3.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(T=Q.content){g.CO(this.element,T);var k,l;Q=((k=Q.interaction)==null?void 0:(l=k.accessibility)==null?void 0:l.label)||T;this.element.setAttribute("aria-label",Q)}else g.bA(Error("AdSimpleAttributedString does not have text content"))};
  8933. d3.prototype.clear=function(){this.hide()};
  8934. d3.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T)};g.S(NH,Y8);
  8935. NH.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});(T=Q.label)&&T.content&&!g.bB(T.content)?(this.adBadgeText.init(k8("ad-simple-attributed-string"),new w3(T)),(Q=Q.adPodIndex)&&Q.content&&!g.bB(Q.content)&&(this.T=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),this.T.XB(this.element),g.P(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(k8("ad-simple-attributed-string"),new w3(Q))),this.element.classList.add(this.S?"ytp-ad-badge--stark-clean-player":
  8936. "ytp-ad-badge--stark"),this.show()):g.bA(Error("No label is returned in AdBadgeViewModel."))};
  8937. NH.prototype.show=function(){this.adBadgeText.show();var T;(T=this.T)==null||T.show();Y8.prototype.show.call(this)};
  8938. NH.prototype.hide=function(){this.adBadgeText.hide();var T;(T=this.T)==null||T.hide();Y8.prototype.hide.call(this)};g.S(A$,Y8);A$.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});(T=Q.adPodIndex)&&T.content&&!g.bB(T.content)&&(this.T=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),this.T.XB(this.element),g.P(this,this.T),this.T.init(k8("ad-simple-attributed-string"),new w3(T)),Q.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()};
  8939. A$.prototype.show=function(){var T;(T=this.T)==null||T.show();Y8.prototype.show.call(this)};
  8940. A$.prototype.hide=function(){var T;(T=this.T)==null||T.hide();Y8.prototype.hide.call(this)};g.S(bP,Y8);
  8941. bP.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q!=null&&Q.text){var k;if(((k=Q.text)==null?0:k.content)&&!g.bB(Q.text.content)){this.T=new g.M1({X:"div",J:"ytp-ad-disclosure-banner__text",S6:Q.text.content});g.P(this,this.T);this.T.XB(this.element);var l,v;T=((l=Q.interaction)==null?void 0:(v=l.accessibility)==null?void 0:v.label)||Q.text.content;this.element.setAttribute("aria-label",T);var L;if((L=Q.interaction)==null?0:L.onTap)this.S=new g.M1({X:"div",J:"ytp-ad-disclosure-banner__chevron",W:[g.mM()]}),
  8942. g.P(this,this.S),this.S.XB(this.element);this.show()}}else g.bA(Error("No banner text found in AdDisclosureBanner."))};
  8943. bP.prototype.clear=function(){this.hide()};g.S(DV,g.M1);DV.prototype.bC=function(){var T=this.S.getProgressState(),Q=T.seekableEnd;this.api.getPresentingPlayerType()===2&&(Q=this.L?this.L/1E3:T.seekableEnd);this.progressBar.style.width=c8(new r3(T.seekableStart,Q),T.current,0)*100+"%"};
  8944. DV.prototype.onStateChange=function(){g.q0(this.api.G())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.S.subscribe("h",this.bC,this),this.bC()):this.T!==-1&&(this.hide(),this.S.Y_(this.T),this.T=-1))};g.S(aY,Y8);
  8945. aY.prototype.init=function(T,Q,k,l){Y8.prototype.init.call(this,T,Q,k);if(Q.skipOrPreviewRenderer){if(T=g.t(Q.skipOrPreviewRenderer,wM))k=new GZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,this.D),k.XB(this.sK),k.init(k8("skip-button"),T,this.macros),g.P(this,k);if(T=g.t(Q.skipOrPreviewRenderer,wM))var v=T.skipOffsetMilliseconds}Q.brandInteractionRenderer&&(T=Q.brandInteractionRenderer.brandInteractionRenderer,k=new lP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),
  8946. k.XB(this.i9),k.init(k8("instream-user-sentiment"),T,this.macros),g.P(this,k));if(T=g.t(Q,hCW))if(T=g.t(T,hCW))k=new kX(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,!!Q.showWithoutLinkedMediaLayout),g.P(this,k),k.XB(this.B),k.init(k8("flyout-cta"),T,this.macros);l=l&&l.videoAdDurationSeconds;Q.adBadgeRenderer&&(k=Q.adBadgeRenderer,T=g.t(k,FX),T!=null?(k=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!1),g.P(this,k),k.XB(this.T),k.init(k8("ad-badge"),
  8947. T,this.macros),this.L=k.element):(T=k.simpleAdBadgeRenderer,T==null&&(T={text:{text:"\u5e7f\u544a",isTemplated:!1}}),k=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0),g.P(this,k),k.XB(this.T),k.init(k8("simple-ad-badge"),T,this.macros)));Q.adPodIndex&&(T=g.t(Q.adPodIndex,Ai$),T!=null&&(k=new A$(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,k),k.XB(this.T),k.init(k8("ad-pod-index"),T)));Q.adDurationRemaining&&!Q.showWithoutLinkedMediaLayout&&
  8948. (T=Q.adDurationRemaining.adDurationRemainingRenderer,T==null&&(T={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),l=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,l,!1),g.P(this,l),l.XB(this.T),l.init(k8("ad-duration-remaining"),T,this.macros));Q.adInfoRenderer&&(l=g.t(Q.adInfoRenderer,TT))&&(T=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,void 0,!1),g.P(this,T),this.L!==null?this.T.insertBefore(T.element,
  8949. this.L.nextSibling):T.XB(this.T),T.init(k8("ad-info-hover-text-button"),l,this.macros));Q.visitAdvertiserRenderer&&(T=g.t(Q.visitAdvertiserRenderer,g.jw))&&(k=fA5(this)&&this.Y?this.Y:this.T)&&(l=new mP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,l),l.XB(k),l.init(k8("visit-advertiser"),T,this.macros),te(l.element),T=Je(l.element),pV(l.element,T+" This link opens in new tab"));!(l=this.api.G())||g.vB(l)||g.Qk(l)||l.controlsType!="3"&&!l.disableOrganicUi||(v=new DV(this.api,
  8950. this.S,v,!1),v.XB(this.Bd),g.P(this,v));Q.adDisclosureBannerRenderer&&(Q=g.t(Q.adDisclosureBannerRenderer,Nav))&&(v=new bP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),v.XB(this.qO),v.init(k8("ad-disclosure-banner"),Q),g.P(this,v));this.api.G().V("enable_updated_html5_player_focus_style")&&g.oF(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
  8951. aY.prototype.clear=function(){this.hide()};g.KN.prototype.flush=function(T,Q){T=T===void 0?[]:T;Q=Q===void 0?!1:Q;if(g.hH("enable_client_streamz_web")){T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=VYy(k.value),this.T&&Ns(k,Mw,2,this.T),k={serializedIncrementBatch:g.dJ(k.L())},g.LM("streamzIncremented",k,{sendIsolatedPayload:Q})}};
  8952. g.S(mht,g.KN);var RR6=new Map;xX.prototype.set=function(T,Q,k){k=k!==void 0?Date.now()+k:void 0;this.T.set(T,Q,k)};
  8953. xX.prototype.get=function(T){return this.T.get(T)};
  8954. xX.prototype.remove=function(T){this.T.remove(T)};var hpX=null;var pN=null,W8=null,$X=null,XeC=null;g.Tv("yt.www.ads.eventcache.getLastCompanionData",function(){return pN});
  8955. g.Tv("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
  8956. g.Tv("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return W8});
  8957. g.Tv("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return $X});
  8958. g.Tv("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return XeC});var dhT=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);J$.prototype.handleResponse=function(T,Q){if(!Q)throw Error("request needs to be passed into ConsistencyService");var k,l;Q=((k=Q.Ys.context)==null?void 0:(l=k.request)==null?void 0:l.consistencyTokenJars)||[];var v;(T=(v=T.responseContext)==null?void 0:v.consistencyTokenJar)&&this.replace(Q,T)};
  8959. J$.prototype.replace=function(T,Q){T=g.B(T);for(var k=T.next();!k.done;k=T.next())delete this.T[k.value.encryptedTokenJarContents];AFT(this,Q)};var tOm=window.location.hostname.split(".").slice(-2).join("."),a6;F8.getInstance=function(){a6=g.jA("yt.clientLocationService.instance");a6||(a6=new F8,g.Tv("yt.clientLocationService.instance",a6));return a6};
  8960. g.h=F8.prototype;
  8961. g.h.setLocationOnInnerTubeContext=function(T){T.client||(T.client={});if(this.T)T.client.locationInfo||(T.client.locationInfo={}),T.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),T.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),T.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),T.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.L||this.locationPlayabilityToken)T.client.locationPlayabilityToken=this.L||
  8962. this.locationPlayabilityToken};
  8963. g.h.handleResponse=function(T){var Q;T=(Q=T.responseContext)==null?void 0:Q.locationPlayabilityToken;T!==void 0&&(this.locationPlayabilityToken=T,this.T=void 0,g.$i("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=eM(this))&&this.localStorage.set("yt-location-playability-token",T,15552E3):g.aU("YT_CL",JSON.stringify({loctok:T}),15552E3,tOm,!0))};
  8964. g.h.clearLocationPlayabilityToken=function(T){T==="TVHTML5"?(this.localStorage=eM(this))&&this.localStorage.remove("yt-location-playability-token"):g.nh("YT_CL");this.L=void 0;this.S!==-1&&(clearTimeout(this.S),this.S=-1)};
  8965. g.h.getCurrentPositionFromGeolocation=function(){var T=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Q=!1,k=1E4;g.$i("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Q=!0,k=15E3);return new Promise(function(l,v){navigator.geolocation.getCurrentPosition(function(L){T.T=L;l(L)},function(L){v(L)},{enableHighAccuracy:Q,
  8966. maximumAge:0,timeout:k})})};
  8967. g.h.createUnpluggedLocationInfo=function(T){var Q={};T=T.coords;if(T==null?0:T.latitude)Q.latitudeE7=Math.floor(T.latitude*1E7);if(T==null?0:T.longitude)Q.longitudeE7=Math.floor(T.longitude*1E7);if(T==null?0:T.accuracy)Q.locationRadiusMeters=Math.round(T.accuracy);return Q};
  8968. g.h.createLocationInfo=function(T){var Q={};T=T.coords;if(T==null?0:T.latitude)Q.latitudeE7=Math.floor(T.latitude*1E7);if(T==null?0:T.longitude)Q.longitudeE7=Math.floor(T.longitude*1E7);return Q};g.h=aAt.prototype;g.h.contains=function(T){return Object.prototype.hasOwnProperty.call(this.T,T)};
  8969. g.h.get=function(T){if(this.contains(T))return this.T[T]};
  8970. g.h.set=function(T,Q){this.T[T]=Q};
  8971. g.h.zG=function(){return Object.keys(this.T)};
  8972. g.h.remove=function(T){delete this.T[T]};yr.prototype.getModuleId=function(T){return T.serviceId.getModuleId()};
  8973. yr.prototype.get=function(T){a:{var Q=this.mappings.get(T.toString());switch(Q.type){case "mapping":T=Q.value;break a;case "factory":Q=Q.value();this.mappings.set(T.toString(),{type:"mapping",value:Q});T=Q;break a;default:T=Uk(Q)}}return T};
  8974. yr.prototype.registerService=function(T,Q){this.mappings.set(T.toString(),{type:"mapping",value:Q});return T};
  8975. new yr;var us={},uYy=(us.WEB_UNPLUGGED="^unplugged/",us.WEB_UNPLUGGED_ONBOARDING="^unplugged/",us.WEB_UNPLUGGED_OPS="^unplugged/",us.WEB_UNPLUGGED_PUBLIC="^unplugged/",us.WEB_CREATOR="^creator/",us.WEB_KIDS="^kids/",us.WEB_EXPERIMENTS="^experiments/",us.WEB_MUSIC="^music/",us.WEB_REMIX="^music/",us.WEB_MUSIC_EMBEDDED_PLAYER="^music/",us.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",us);TC.prototype.N=function(T,Q,k){Q=Q===void 0?{}:Q;k=k===void 0?US:k;var l={context:g.Ee(T.clickTrackingParams,!1,this.Y)};var v=this.S(T);if(v){this.T(l,v,Q);var L;Q=g.Vr(this.L());(v=(L=g.t(T.commandMetadata,g.XD))==null?void 0:L.apiUrl)&&(Q=v);L=Ib5(Kh(Q));T=Object.assign({},{command:T},void 0);l={input:L,Om:x5(L),Ys:l,config:T};l.config.gZ?l.config.gZ.identity=k:l.config.gZ={identity:k};return l}k=new g.Wy("Error: Failed to create Request from Command.",T);g.bA(k)};
  8976. g.oI.Object.defineProperties(TC.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}});
  8977. g.S(Qi,TC);g.S(jK,Qi);jK.prototype.N=function(){return{input:"/getDatasyncIdsEndpoint",Om:x5("/getDatasyncIdsEndpoint","GET"),Ys:{}}};
  8978. jK.prototype.L=function(){return[]};
  8979. jK.prototype.S=function(){};
  8980. jK.prototype.T=function(){};var OOW={},f2C=(OOW.GET_DATASYNC_IDS=iP(jK),OOW);var ns={},p2J=(ns["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",ns["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",ns["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",ns["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",ns["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",ns["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",ns["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
  8981. ns["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",ns["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",ns["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",ns["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",ns["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",ns["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",ns["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",ns["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
  8982. ns["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",ns["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",ns["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",ns["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",ns["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",ns["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",ns["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
  8983. ns["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",ns.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",ns["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",ns["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",ns["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",ns["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",ns["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",ns["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
  8984. ns["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",ns["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",ns["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",ns["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",ns["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",ns["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",ns["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",ns["dialog.copyright_strikes"]=
  8985. "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",ns["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",ns["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",ns.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",ns["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",ns["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",ns["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",ns["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",ns["owner.asset_groups"]=
  8986. "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",ns["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",ns["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",ns["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",ns["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",ns["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",ns["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ns["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ns["owner.delivery"]=
  8987. "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",ns["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",ns["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",ns["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",ns["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",ns["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",ns["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",ns["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",ns["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
  8988. ns["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",ns["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",ns["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",ns["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",ns["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",ns["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",ns["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",ns["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",ns["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
  8989. ns["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",ns["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",ns["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",ns["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",ns["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",ns["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",ns["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",ns["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
  8990. ns),Ks={},OMC=(Ks.auto_search="LATENCY_ACTION_AUTO_SEARCH",Ks.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Ks.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Ks.app_startup="LATENCY_ACTION_APP_STARTUP",Ks.browse="LATENCY_ACTION_BROWSE",Ks.cast_splash="LATENCY_ACTION_CAST_SPLASH",Ks.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Ks.channels="LATENCY_ACTION_CHANNELS",Ks.chips="LATENCY_ACTION_CHIPS",Ks.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Ks.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
  8991. Ks.editor="LATENCY_ACTION_EDITOR",Ks.embed="LATENCY_ACTION_EMBED",Ks.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Ks.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Ks.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Ks.explore="LATENCY_ACTION_EXPLORE",Ks.favorites="LATENCY_ACTION_FAVORITES",Ks.home="LATENCY_ACTION_HOME",Ks.inboarding="LATENCY_ACTION_INBOARDING",Ks.landing="LATENCY_ACTION_LANDING",Ks.learning="LATENCY_ACTION_LEARNING",
  8992. Ks.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Ks.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Ks.library="LATENCY_ACTION_LIBRARY",Ks.live="LATENCY_ACTION_LIVE",Ks.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Ks.management="LATENCY_ACTION_MANAGEMENT",Ks.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Ks.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Ks.onboarding="LATENCY_ACTION_ONBOARDING",Ks.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
  8993. Ks.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Ks.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Ks.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Ks.prebuffer="LATENCY_ACTION_PREBUFFER",Ks.prefetch="LATENCY_ACTION_PREFETCH",Ks.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Ks.profile_switcher="LATENCY_ACTION_LOGIN",Ks.projects="LATENCY_ACTION_PROJECTS",Ks.reel_watch="LATENCY_ACTION_REEL_WATCH",Ks.results="LATENCY_ACTION_RESULTS",Ks.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
  8994. Ks.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Ks.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Ks.review="LATENCY_ACTION_REVIEW",Ks.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Ks.search_ui="LATENCY_ACTION_SEARCH_UI",Ks.search_suggest="LATENCY_ACTION_SUGGEST",Ks.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Ks.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Ks.seek="LATENCY_ACTION_PLAYER_SEEK",Ks.settings="LATENCY_ACTION_SETTINGS",Ks.store="LATENCY_ACTION_STORE",
  8995. Ks.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Ks.tenx="LATENCY_ACTION_TENX",Ks.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Ks.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Ks.watch="LATENCY_ACTION_WATCH",Ks.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Ks["watch,watch7"]="LATENCY_ACTION_WATCH",Ks["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Ks["watch,watch7ad"]="LATENCY_ACTION_WATCH",Ks["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Ks.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
  8996. Ks.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Ks.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Ks.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Ks.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Ks.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Ks.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Ks.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Ks);Object.assign(OMC,p2J);g.S(Ys,RK);var kP6=new Z2("aft-recorded",Ys);var Wm9=g.VC.ytLoggingGelSequenceIdObj_||{};g.Tv("ytLoggingGelSequenceIdObj_",Wm9);var Zy=g.VC.ytLoggingLatencyUsageStats_||{};g.Tv("ytLoggingLatencyUsageStats_",Zy);UH.prototype.tick=function(T,Q,k,l){fG(this,"tick_"+T+"_"+Q)||g.LM("latencyActionTicked",{tickName:T,clientActionNonce:Q},{timestamp:k,cttAuthInfo:l})};
  8997. UH.prototype.info=function(T,Q,k){var l=Object.keys(T).join("");fG(this,"info_"+l+"_"+Q)||(T=Object.assign({},T),T.clientActionNonce=Q,g.LM("latencyActionInfo",T,{cttAuthInfo:k}))};
  8998. UH.prototype.jspbInfo=function(T,Q,k){for(var l="",v=0;v<$y(T).length;v++)$y(T)[v]!==void 0&&(l=v===0?l.concat(""+v):l.concat("_"+v));if(!fG(this,"info_"+l+"_"+Q)){xM(T,2,Q);k={cttAuthInfo:k};Q=g.hH("jspb_sparse_encoded_pivot")?new xi([{}]):new xi;Dnu(Q,uK,7,$nv,T);k=k===void 0?{}:k;T=!1;g.$i("ytLoggingEventsDefaultDisabled",!1)&&(T=!0);T=T?null:g.ez;k=k===void 0?{}:k;l=Math.round(k.timestamp||(0,g.XY)());Kg(Q,1,l<Number.MAX_SAFE_INTEGER?l:0);l=new Ke;k.lact?Kg(l,1,isFinite(k.lact)?k.lact:-1):k.timestamp?
  8999. Kg(l,1,-1):(v=Bd(),Kg(l,1,isFinite(v)?v:-1));if(k.sequenceGroup&&!g.hH("web_gel_sequence_info_killswitch")){v=k.sequenceGroup;var L=IqC(v),q=new ne;Kg(q,2,L);xM(q,1,v);Ns(l,ne,3,q);k.endOfSequence&&delete Wm9[k.sequenceGroup]}Ns(Q,Ke,33,l);(k.sendIsolatedPayload?Fau:EiT)("latencyActionInfo",{endpoint:"log_event",payload:Q,cttAuthInfo:k.cttAuthInfo,dangerousLogToVisitorSession:k.dangerousLogToVisitorSession},T)}};
  9000. UH.prototype.span=function(T,Q,k){var l=Object.keys(T).join("");fG(this,"span_"+l+"_"+Q)||(T.clientActionNonce=Q,g.LM("latencyActionSpan",T,{cttAuthInfo:k}))};var xv=window,GC=xv.performance||xv.mozPerformance||xv.msPerformance||xv.webkitPerformance||new pef;var jKH=!1,JFT=!1,XP={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
  9001. 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
  9002. 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},or6=(0,g.Mp)(GC.clearResourceTimings||GC.webkitClearResourceTimings||GC.mozClearResourceTimings||GC.msClearResourceTimings||GC.oClearResourceTimings||g.DM,GC);var $X1=window;$X1.ytcsi&&($X1.ytcsi.infoGel=g.NL,$X1.ytcsi.tick=dS);var SSg="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),B75=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var wlu=new zA("INNERTUBE_TRANSPORT_TOKEN");g.S(nG,Qi);nG.prototype.L=function(){return AZm};
  9003. nG.prototype.S=function(T){return g.t(T,R7A)||void 0};
  9004. nG.prototype.T=function(T,Q,k){k=k===void 0?{}:k;Q.channelIds&&(T.channelIds=Q.channelIds);Q.siloName&&(T.siloName=Q.siloName);Q.params&&(T.params=Q.params);k.botguardResponse&&(T.botguardResponse=k.botguardResponse);k.feature&&(T.clientFeature=k.feature)};
  9005. g.oI.Object.defineProperties(nG.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.S(KG,Qi);KG.prototype.L=function(){return bO_};
  9006. KG.prototype.S=function(T){return g.t(T,UXm)||void 0};
  9007. KG.prototype.T=function(T,Q){Q.channelIds&&(T.channelIds=Q.channelIds);Q.siloName&&(T.siloName=Q.siloName);Q.params&&(T.params=Q.params)};
  9008. g.oI.Object.defineProperties(KG.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JZ$=new zA("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.S(xs,Qi);xs.prototype.L=function(){return z7A};
  9009. xs.prototype.S=function(T){return g.t(T,TKA)||g.t(T,QOW)||g.t(T,VNm)};
  9010. xs.prototype.T=function(T,Q){Q.serializedShareEntity&&(T.serializedSharedEntity=Q.serializedShareEntity);if(Q.clientParamIdentifier){var k;if((k=this.B)==null?0:k.T(Q.clientParamIdentifier))T.clientParams=this.B.S(Q.clientParamIdentifier)}};
  9011. xs[NE]=[JZ$];g.S(PP,Qi);PP.prototype.L=function(){return w2E};
  9012. PP.prototype.S=function(T){return g.t(T,Ole)||void 0};
  9013. PP.prototype.T=function(T,Q,k){T.feedbackTokens=[];Q.feedbackToken&&T.feedbackTokens.push(Q.feedbackToken);if(Q=Q.cpn||k.cpn)T.feedbackContext={cpn:Q};T.isFeedbackTokenUnencrypted=!!k.is_feedback_token_unencrypted;T.shouldMerge=!1;k.extra_feedback_tokens&&(T.shouldMerge=!0,T.feedbackTokens=T.feedbackTokens.concat(k.extra_feedback_tokens))};
  9014. g.oI.Object.defineProperties(PP.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.S(HP,Qi);HP.prototype.L=function(){return dXe};
  9015. HP.prototype.S=function(T){return g.t(T,Y$_)||void 0};
  9016. HP.prototype.T=function(T,Q){Q.params&&(T.params=Q.params);Q.secondaryParams&&(T.secondaryParams=Q.secondaryParams)};g.S(tt,Qi);tt.prototype.L=function(){return NKW};
  9017. tt.prototype.S=function(T){return g.t(T,g11)||void 0};
  9018. tt.prototype.T=function(T,Q){Q.actions&&(T.actions=Q.actions);Q.params&&(T.params=Q.params);Q.playlistId&&(T.playlistId=Q.playlistId)};g.S(OH,Qi);OH.prototype.L=function(){return X2$};
  9019. OH.prototype.S=function(T){return g.t(T,jOT)};
  9020. OH.prototype.T=function(T,Q,k){k=k===void 0?{}:k;Q.serializedShareEntity&&(T.serializedSharedEntity=Q.serializedShareEntity);k.includeListId&&(T.includeListId=!0)};var e7v=new zA("FETCH_FN_TOKEN"),Fm9=new zA("PARSE_FN_TOKEN"),E1J=new zA("WINDOW_REQUEST_TOKEN"),yZd=new zA("TEXT_DECODER_TOKEN");g.S(g.pG,g.Wy);var iO1=new zA("NETWORK_SLI_TOKEN");WP.prototype.fetch=function(T,Q,k){var l=this,v,L,q;return g.a(function(Y){v=zAb(l,T,Q);q=(L=l.S)!=null?L:fetch;return Y.return(q(v).then(function(U){return l.handleResponse(U,k)}).catch(function(U){g.rB(U);
  9021. if((k==null?0:k.w_)&&U instanceof g.pG&&U.errorType===1)return Promise.reject(U)}))})};
  9022. WP.prototype.handleResponse=function(T,Q){var k,l=(k=this.L)!=null?k:JSON.parse;k=T.text().then(function(v){if((Q==null?0:Q.NQ)&&T.ok)return jO5(Q.NQ,v);v=v.replace(")]}'","");if((Q==null?0:Q.w_)&&v)try{var L=l(v)}catch(Y){throw new g.pG(1,"JSON parsing failed after fetch");}var q;return(q=L)!=null?q:l(v)});
  9023. T.redirected||T.ok?this.T&&this.T.success():(this.T&&this.T.iU_(),k=k.then(function(v){g.rB(new g.Wy("Error: API fetch failed",T.status,T.url,v));return Object.assign({},v,{errorMetadata:{status:T.status}})}));
  9024. return k};
  9025. WP[NE]=[w1(iO1),w1(e7v),w1(Fm9),w1(E1J),w1(yZd)];var Xlt=new zA("NETWORK_MANAGER_TOKEN");var $s;FP.prototype.bindInnertubeChallengeFetcher=function(T){this.T.bicf(T)};
  9026. FP.prototype.registerChallengeFetchedCallback=function(T){this.T.bcr(T)};
  9027. FP.prototype.getLatestChallengeResponse=function(){return this.T.blc()};var VO$=g.G5(["https://static.doubleclick.net/instream/ad_status.js"]),bj6=[],Axf=g.Vw(VO$),EH=!1;Q8.prototype.Y=function(){var T=this;return g.a(function(Q){return Q.S==1?g.c(Q,Promise.race([T.T,null]),2):Q.return(!!Q.T)})};
  9028. Q8.prototype.L=function(T,Q,k){var l=this,v,L,q;return g.a(function(Y){l.T===null&&cxu(l,TU(l));v=!1;L={};q=function(){var U,R,Z;return g.a(function(f){switch(f.S){case 1:return g.c(f,l.T,2);case 2:U=f.T;L.challenge=U.challenge;if(!U.FI){"c1a"in U.wA&&(L.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");f.Ym(3);break}R=Object.assign({},{c:U.challenge,e:T},Q);g.z5(f,4);v=!0;return g.c(f,U.FI.snapshot({uh:R}),6);case 6:(Z=f.T)?L.webResponse=Z:L.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.d6(f,3);break;case 4:g.by(f),
  9029. L.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(T==="ENGAGEMENT_TYPE_PLAYBACK"){var G=U.wA,m={};G.c6a&&(m.reportingStatus=String(Number(G.c)^yi()));G.c6b&&(m.broadSpectrumDetectionResult=String(Number(G.c)^Number(g.$i("CATSTAT",0))));L.adblockReporting=m}return f.return(L)}})};
  9030. return Y.return(Promise.race([q(),nrI(k,function(){var U=Object.assign({},L);v&&(U.error="ATTESTATION_ERROR_VM_TIMEOUT");return U})]))})};var PMC=["APP_STATE","PI"];var Nn5=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
  9031. 160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
  9032. 74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
  9033. 107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
  9034. 184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
  9035. 74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
  9036. 147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
  9037. 50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
  9038. 49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
  9039. 170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,
  9040. 244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,
  9041. 253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,
  9042. 31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,
  9043. 39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];kl.prototype.getState=function(){return this.store.getState()};
  9044. kl.prototype.dispatch=function(T){return this.store.dispatch(T)};
  9045. kl.prototype.subscribe=function(T){return this.store.subscribe(T)};
  9046. kl.prototype.replaceReducer=function(T){return this.store.replaceReducer(T)};
  9047. kl.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};oV.prototype.append=function(T){if(Oj5(this,T)){var Q=this.T[this.T.length-1];this.T[this.T.length-1]=new Uint8Array(Q.buffer,Q.byteOffset,Q.length+T.length);qg(this)}else this.T.push(T);this.totalLength+=T.length};
  9048. oV.prototype.split=function(T){for(var Q=new oV,k=new oV,l=g.B(this.T),v=l.next();!v.done;v=l.next())v=v.value,T>=v.length?(Q.append(v),T-=v.length):T?(Q.append(new Uint8Array(v.buffer,v.byteOffset,T)),k.append(new Uint8Array(v.buffer,v.byteOffset+T,v.length-T)),T=0):k.append(v);return{Rz:Q,ow:k}};
  9049. oV.prototype.isFocused=function(T){return T>=this.L&&T<this.L+this.T[this.S].length};
  9050. oV.prototype.focus=function(T){if(!this.isFocused(T)){for(T<this.L&&qg(this);this.L+this.T[this.S].length<=T&&this.S<this.T.length;)this.L+=this.T[this.S].length,this.S+=1;this.Y=void 0}};var fx,RV,mQ;g.nr=function(){function T(l){for(var v=new Uint8Array(l.length),L=0;L<l.length;L++)v[L]=l[L];return v}
  9051. function Q(l){return new Uint8Array(l)}
  9052. var k=new Uint8Array([1]);return k.length===1&&k[0]===1?Q:T}();
  9053. fx=Array(1024);RV=window.TextDecoder?new TextDecoder:void 0;mQ=window.TextEncoder?new TextEncoder:void 0;for(var T1T={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
  9054. emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
  9055. mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
  9056. musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
  9057. suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},VzX={},TJv=g.B(Object.entries(T1T)),QQT=TJv.next();!QQT.done;QQT=TJv.next()){var jQv=g.B(QQT.value),ko$=jQv.next().value,l9p=jQv.next().value,ojA=ko$,vjA=l9p;vjA&&(VzX[vjA]=ojA)};var kA6=!1,Qj,j6,kt,lb,oW;g.S(vQ,g.x);
  9058. vQ.prototype.encrypt=function(T){var Q=T.length;T=new Uint8Array(T.buffer.slice(T.byteOffset,T.byteOffset+Q));for(var k=this.S,l=0;l<Q&&this.T<16;)T[l++]^=k[this.T++];for(var v=Q-(Q-l)%16;l<v;)lZ5(this),T[l++]^=k[0],T[l++]^=k[1],T[l++]^=k[2],T[l++]^=k[3],T[l++]^=k[4],T[l++]^=k[5],T[l++]^=k[6],T[l++]^=k[7],T[l++]^=k[8],T[l++]^=k[9],T[l++]^=k[10],T[l++]^=k[11],T[l++]^=k[12],T[l++]^=k[13],T[l++]^=k[14],T[l++]^=k[15];if(l<Q)for(lZ5(this),this.T=0;l<Q;)T[l++]^=k[this.T++];return T};var LT=!1;(function(){function T(l){for(var v=new Uint8Array(l.length),L=0;L<l.length;L++)v[L]=l[L];return v}
  9059. function Q(l){return new Uint8Array(l)}
  9060. var k=new Uint8Array([1]);return k.length===1&&k[0]===1?Q:T})();
  9061. var q9;g.Ua.prototype.encrypt=function(T,Q){var k=this,l;return g.a(function(v){switch(v.S){case 1:if(!k.T){v.Ym(2);break}g.z5(v,3);return g.c(v,k.T.encrypt(T,Q),5);case 5:return v.return(v.T);case 3:l=g.by(v),g.rB(l),LT=!0,k.T=void 0;case 2:return v.return(k.S.encrypt(T,Q))}})};
  9062. g.Ua.prototype.decrypt=function(T,Q){return this.encrypt(T,Q)};
  9063. M9.prototype.encrypt=function(T,Q){var k=this,l;return g.a(function(v){if(v.S==1)return g.z5(v,2),g.c(v,o_g(k,T,Q),4);if(v.S!=2)return v.return(v.T);l=g.by(v);g.rB(l);LT=!0;throw l;})};
  9064. g.Yt.prototype.encrypt=function(T,Q){this.T||(this.T=new vQ(this.S));for(var k=this.T,l=0;l<4;l++)k.counter[l]=Q[l*4]<<24|Q[l*4+1]<<16|Q[l*4+2]<<8|Q[l*4+3];k.T=16;return this.T.encrypt(T)};
  9065. g.Yt.prototype.decrypt=function(T,Q){return this.encrypt(T,Q)};RW.prototype.reset=function(){Lbt(this);this.update(this.L)};
  9066. RW.prototype.update=function(T){var Q=0,k=T.length;this.Y+=k;this.S&&this.S+k>=64&&(this.B.set(T.subarray(0,64-this.S),this.S),Q=64-this.S,this.S=0,v_H(this,this.B,0));for(;Q+64<=k;Q+=64)v_H(this,T,Q);Q<k&&(T=T.subarray(Q),this.B.set(T,this.S),this.S+=T.length)};
  9067. var Zn=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
  9068. 4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var L3W;L3W={};g.qoE=g.VH("yt-idb-pref-storage",{Sn:(L3W.prefs={C7:1},L3W),shared:!1,upgrade:function(T,Q){Q(1)&&g.DA(g.dm(T,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
  9069. version:1});var P_;P_={};g.gj1=(P_.INVALID_ENCODER_VERSION="Invalid encoder version",P_.KEY_CREATION_FAILED="Failed to create encoder key",P_.UNKNOWN_DECODE_ERROR="Failed to decode PES data",P_.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",P_.WRONG_DATA_TYPE="Encoder cannot process the data type",P_);g.y8("","downloadsPageViewConfigurationEntity");g.y8("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.H_=g.y8("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.y8("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.y8("SMART_DOWNLOADS_ENABLED","settingEntity");g.y8("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Xdb=new zA("POSTMESSAGE_TUNNEL_TOKEN");var AuX=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.h=GF.prototype;g.h.initialize=function(T,Q,k,l){this.fz=l;if(T.program){var v;l=(v=T.interpreterUrl)!=null?v:null;if(T.interpreterSafeScript)v=DFy(T.interpreterSafeScript);else{var L;v=(L=T.interpreterScript)!=null?L:null}T.interpreterSafeUrl&&(l=Ce(T.interpreterSafeUrl).toString());N15(this,v,l,T.program,Q,k)}else g.rB(Error("BL:CIP"))};
  9070. g.h.isInitialized=function(){return this.vv()};
  9071. g.h.getState=function(){return this.state};
  9072. g.h.isLoading=function(){return this.state===2};
  9073. g.h.invoke=function(T){T=T===void 0?{}:T;return this.vv()?this.EB({uh:T}):null};
  9074. g.h.dispose=function(){this.t2(null);this.OH(8)};
  9075. g.h.vv=function(){return!!this.FI};
  9076. g.h.EB=function(T){return this.FI.Gq(T)};
  9077. g.h.t2=function(T){g.od(this.FI);this.FI=T};
  9078. g.h.OH=function(T){this.state=T};g.S(IW,GF);IW.prototype.t2=function(T){var Q;(Q=mS())==null||Q.bgvma();T?(Q={bgvma:T.dispose.bind(T),bgvmb:T.snapshot.bind(T),bgvmc:T.Gq.bind(T)},g.Tv("yt.abuse.playerAttLoader",Q),g.Tv("yt.abuse.playerAttLoaderRun",function(k){return T.snapshot(k)})):(g.Tv("yt.abuse.playerAttLoader",null),g.Tv("yt.abuse.playerAttLoaderRun",null))};
  9079. IW.prototype.vv=function(){return!!mS()};
  9080. IW.prototype.EB=function(T){return mS().bgvmc(T)};h6.prototype.CS=function(){return"crossDeviceProgressCommand"};
  9081. h6.prototype.Gm=function(T){if(T.crossDevicePings){var Q=[];T=g.B(T.crossDevicePings);for(var k=T.next();!k.done;k=T.next())Q.push({baseUrl:k.value.baseUrl});g.LM("crossDeviceNotificationTransfer",{crossDevicePings:Q})}};sa.prototype.CS=function(){return"muteAdEndpoint"};
  9082. sa.prototype.Gm=function(T,Q){switch(T.type){case "SKIP":bZt(this.O1,this.c5,Q)}};S6.prototype.CS=function(){return"openPopupAction"};
  9083. S6.prototype.Gm=function(){};CT.prototype.CS=function(){return"pingingEndpoint"};
  9084. CT.prototype.Gm=function(){};var Kbt={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.S(cuy,g.x);var pYT={dK9:"FINAL",Vj_:"AD_BREAK_LENGTH",wT9:"AD_CPN",e0k:"AH",ClV:"AD_MT",lfm:"ASR",Jx9:"AW",P7K:"NM",n_q:"NX",plO:"NY",v_V:"CONN",yy9:"CPN",xN_:"DV_VIEWABILITY",lq_:"ERRORCODE",Ayd:"ERROR_MSG",bB9:"EI",z1_:"GOOGLE_VIEWABILITY",i$e:"IAS_VIEWABILITY",D1_:"LACT",Hpj:"LIVE_TARGETING_CONTEXT",hUO:"I_X",LK6:"I_Y",mm6:"MT",dmB:"MIDROLL_POS",xmm:"MIDROLL_POS_MS",XcH:"MOAT_INIT",Um9:"MOAT_VIEWABILITY",HvV:"P_H",yHd:"PV_H",zsV:"PV_W",qU9:"P_W",TAV:"TRIGGER_TYPE",JHd:"SDKV",DBO:"SLOT_POS",c_d:"SURVEY_LOCAL_TIME_EPOCH_S",
  9085. SYK:"SURVEY_ELAPSED_MS",s0:"VIS",KG_:"VIEWABILITY",Pyk:"VED",nz9:"VOL",um_:"WT",w5e:"YT_ERROR_CODE"};X2.prototype.CS=function(){return"urlEndpoint"};
  9086. X2.prototype.Gm=function(T,Q,k){var l=this.Vq.get(),v=i1(l.S.get(),Q);v?Q=mj(l,nz5(v),v,void 0,void 0,k):(MH("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Q}),Q={});Q=Object.assign({},Q);KF(this.T,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(k=Kd(this.Fj,2))&&(Q.AD_CPN=k.clientPlaybackNonce);Q=g.Ae(T.url,Q);T=g.Oe(Q,void 0,void 0,void 0,T.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME");wdH(T,Q)};wG.prototype.get=function(){return this.value};
  9087. g.S(dG,wG);dG.prototype.T=function(){return"metadata_type_action_companion_ad_renderer"};
  9088. g.S(N9,wG);N9.prototype.T=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
  9089. g.S(A6,wG);A6.prototype.T=function(){return"metadata_type_ads_engagement_panel_renderer"};
  9090. g.S(bb,wG);bb.prototype.T=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
  9091. g.S(rG,wG);rG.prototype.T=function(){return"metadata_type_ad_next_params"};
  9092. g.S(cQ,wG);cQ.prototype.T=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
  9093. g.S(Dn,wG);Dn.prototype.T=function(){return"metadata_type_invideo_overlay_ad_renderer"};
  9094. g.S(aW,wG);aW.prototype.T=function(){return"metadata_type_image_companion_ad_renderer"};
  9095. g.S(ub,wG);ub.prototype.T=function(){return"metadata_type_banner_image_layout_view_model"};
  9096. g.S(nT,wG);nT.prototype.T=function(){return"metadata_type_shopping_companion_carousel_renderer"};
  9097. g.S(KT,wG);KT.prototype.T=function(){return"metadata_type_ad_info_ad_metadata"};
  9098. g.S(xt,wG);xt.prototype.T=function(){return"metadata_ad_video_is_listed"};
  9099. g.S(PQ,wG);PQ.prototype.T=function(){return"metadata_type_ad_placement_config"};
  9100. g.S(HQ,wG);HQ.prototype.T=function(){return"metadata_type_ad_pod_info"};
  9101. g.S(t6,wG);t6.prototype.T=function(){return"metadata_type_ad_pod_skip_index"};
  9102. g.S(Oa,wG);Oa.prototype.T=function(){return"metadata_type_ad_pod_skip_target"};
  9103. g.S(pT,wG);pT.prototype.T=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
  9104. g.S(WQ,wG);WQ.prototype.T=function(){return"metadata_type_ad_video_id"};
  9105. g.S($t,wG);$t.prototype.T=function(){return"metadata_type_content_cpn"};
  9106. g.S(J6,wG);J6.prototype.T=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
  9107. g.S(e6,wG);e6.prototype.T=function(){return"metadata_type_player_overlay_layout_renderer"};
  9108. g.S(F2,wG);F2.prototype.T=function(){return"metadata_type_player_underlay_renderer"};
  9109. g.S(Ea,wG);Ea.prototype.T=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
  9110. g.S(yj,wG);yj.prototype.T=function(){return"metadata_type_media_associated_in_player_slot"};
  9111. g.S(ib,wG);ib.prototype.T=function(){return"metadata_type_shrunken_player_bytes_config"};
  9112. g.S(Vj,wG);Vj.prototype.T=function(){return"metadata_type_ad_action_interstitial_renderer"};
  9113. g.S(Tp,wG);Tp.prototype.T=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
  9114. g.S(QZ,wG);QZ.prototype.T=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
  9115. g.S(jE,wG);jE.prototype.T=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
  9116. g.S(ke,wG);ke.prototype.T=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
  9117. g.S(l2,wG);l2.prototype.T=function(){return"metadata_type_linked_player_bytes_layout_id"};
  9118. g.S(oH,wG);oH.prototype.T=function(){return"metadata_type_linked_in_player_layout_id"};
  9119. g.S(vz,wG);vz.prototype.T=function(){return"metadata_type_linked_in_player_layout_type"};
  9120. g.S(Lp,wG);Lp.prototype.T=function(){return"metadata_type_linked_in_player_slot_id"};
  9121. g.S(qu,wG);qu.prototype.T=function(){return"metadata_type_player_bytes_callback"};
  9122. g.S(gn,wG);gn.prototype.T=function(){return"metadata_type_player_bytes_callback_ref"};
  9123. g.S(Mu,wG);Mu.prototype.T=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
  9124. g.S(Ye,wG);Ye.prototype.T=function(){return"metadata_type_sub_layouts"};
  9125. g.S(U9,wG);U9.prototype.T=function(){return"metadata_type_cue_point"};
  9126. g.S(RH,wG);RH.prototype.T=function(){return"metadata_type_triggering_cue_point"};
  9127. g.S(Zi,wG);Zi.prototype.T=function(){return"metadata_type_video_length_seconds"};
  9128. g.S(fp,wG);fp.prototype.T=function(){return"metadata_type_player_vars"};
  9129. g.S(Gp,wG);Gp.prototype.T=function(){return"metadata_type_preload_player_vars"};
  9130. g.S(mU,wG);mU.prototype.T=function(){return"metadata_type_sodar_extension_data"};
  9131. g.S(IH,wG);IH.prototype.T=function(){return"metadata_type_layout_enter_ms"};
  9132. g.S(hj,wG);hj.prototype.T=function(){return"metadata_type_layout_exit_ms"};
  9133. g.S(s9,wG);s9.prototype.T=function(){return"metadata_type_media_sub_layout_index"};
  9134. g.S(SE,wG);SE.prototype.T=function(){return"metadata_type_dai"};
  9135. g.S(Cp,wG);Cp.prototype.T=function(){return"metadata_type_ad_intro"};
  9136. g.S(Bz,wG);Bz.prototype.T=function(){return"metadata_type_client_forecasting_ad_renderer"};
  9137. g.S(zp,wG);zp.prototype.T=function(){return"metadata_type_drift_recovery_ms"};
  9138. g.S(XN,wG);XN.prototype.T=function(){return"metadata_type_fulfilled_layout"};
  9139. g.S(wn,wG);wn.prototype.T=function(){return"metadata_type_ad_break_request_data"};
  9140. g.S(dn,wG);dn.prototype.T=function(){return"metadata_type_ad_break_response_data"};
  9141. g.S(Nu,wG);Nu.prototype.T=function(){return"metadata_type_remote_slots_data"};
  9142. g.S(Aj,wG);Aj.prototype.T=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
  9143. g.S(b2,wG);b2.prototype.T=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
  9144. g.S(rn,wG);rn.prototype.T=function(){return"metadata_type_legacy_info_card_vast_extension"};
  9145. g.S(cz,wG);cz.prototype.T=function(){return"metadata_type_valid_ad_message_renderer"};
  9146. g.S(Di,wG);Di.prototype.T=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
  9147. g.S(aH,wG);aH.prototype.T=function(){return"metadata_type_served_from_live_infra"};
  9148. g.S(u2,wG);u2.prototype.T=function(){return"metadata_type_survey_overlay"};
  9149. g.S(np,wG);np.prototype.T=function(){return"metadata_type_active_view_traffic_type"};
  9150. g.S(Kp,wG);Kp.prototype.T=function(){return"metadata_type_active_view_identifier"};
  9151. g.S(xe,wG);xe.prototype.T=function(){return"metadata_type_ssdai_ads_config"};
  9152. g.S(Pz,wG);Pz.prototype.T=function(){return"metadata_type_eligible_for_ssap"};
  9153. g.S(Hz,wG);Hz.prototype.T=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
  9154. g.S(tj,wG);tj.prototype.T=function(){return"metadata_type_player_bytes_slot_metadata"};
  9155. g.S(O9,wG);O9.prototype.T=function(){return"metadata_type_prefetch_metadata"};var yu5=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var vuu=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
  9156. "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.S(Jj,Gv);g.S(F,Gv);new Promise(function(){});var tVu=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),Pvu=new Map([["normal",{h7:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{h7:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
  9157. ["muted",{h7:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{h7:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{h7:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{h7:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
  9158. ["error",{h7:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",RT:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.S(lh,g.x);g.h=lh.prototype;g.h.gR=function(T,Q){return this.T.gR(T,Q)};
  9159. g.h.v1=function(T,Q){this.A3.hT("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",T,Q);for(var k=g.B(this.S),l=k.next();!l.done;l=k.next())l.value.v1(T,Q)};
  9160. g.h.Id=function(T){if(g2(this.T,T)){this.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",T);this.T.Id(T);for(var Q=g.B(this.S),k=Q.next();!k.done;k=Q.next())k.value.Id(T);$E5(this,T)}};
  9161. g.h.KG=function(T){if(g2(this.T,T)){this.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",T);this.T.KG(T);for(var Q=g.B(this.S),k=Q.next();!k.done;k=Q.next())k.value.KG(T);g2(this.T,T)&&Mo(this.T,T).N&&LF(this,T,!1)}};
  9162. g.h.DQ=function(T){this.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",T);g2(this.T,T)&&(this.T.DQ(T),LF(this,T,!1))};
  9163. g.h.y4=function(T,Q){if(g2(this.T,T)){this.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",T,Q);for(var k=g.B(this.S),l=k.next();!l.done;l=k.next())l.value.y4(T,Q)}};
  9164. g.h.N2=function(T,Q,k){if(g2(this.T,T)){this.A3.Xw(HZg(k),T,Q);this.T.N2(T,Q);for(var l=g.B(this.S),v=l.next();!v.done;v=l.next())v.value.N2(T,Q,k);(k=BI(this.T,T))&&Q.layoutId===k.layoutId&&k$5(this,T,!1)}};
  9165. g.h.ke=function(T,Q,k,l){k.Cp&&l?(MH(k,T,Q,void 0,k.q5),this.A3.dA(l,k.Cp,T,Q)):MH("adsClientErrorMessage is missing.",T,Q);LF(this,T,!0)};
  9166. g.h.EK=function(){var T=oub(this.T);T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())LF(this,Q.value,!1);g.x.prototype.EK.call(this)};
  9167. g.h.Ry=function(T,Q){this.A3.Xw("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",T,Q);this.A3.Xw("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",T,Q);for(var k=g.B(this.S),l=k.next();!l.done;l=k.next())l=l.value,Q&&l.Ry(T,Q)};lh6.prototype.isActive=function(){switch(this.T){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.S(w2,g.x);g.h=w2.prototype;g.h.gR=function(T,Q){Q=CF(this,T+"_"+Q);T=[];Q=g.B(Q.values());for(var k=Q.next();!k.done;k=Q.next())T.push(k.value.slot);return T};
  9168. g.h.HT=function(T){T=Mo(this,T);T.T!=="not_scheduled"&&z4(T.slot,T.T,"onSlotScheduled");T.T="scheduled"};
  9169. g.h.gH=function(T){T=Mo(this,T);T.Y="fill_requested";T.C.gH()};
  9170. g.h.Id=function(T){T=Mo(this,T);T.T!=="enter_requested"&&z4(T.slot,T.T,"onSlotEntered");T.T="entered"};
  9171. g.h.DQ=function(T){Mo(this,T).Y="fill_canceled"};
  9172. g.h.KG=function(T){T=Mo(this,T);T.T!=="exit_requested"&&z4(T.slot,T.T,"onSlotExited");T.T="scheduled"};
  9173. g.h.N2=function(T,Q){T=Mo(this,T);T.layout!=null&&T.layout.layoutId===Q.layoutId&&(T.T!=="rendering_stop_requested"&&z4(T.slot,T.T,"onLayoutExited"),T.T="entered")};g.S(A0,g.x);A0.prototype.get=function(){Math.random()<.001&&this.wd()&&MH("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.T());return this.instance};g.S(r2,g.x);r2.prototype.L=function(){return this.S};cI.prototype.executeCommand=function(T,Q){zF(this.T(),T,Q)};uh.prototype.addListener=function(T){this.listeners.add(T)};
  9174. uh.prototype.removeListener=function(T){this.listeners.delete(T)};var tX={},WI=(tX.AD_MARKER="ytp-ad-progress",tX.CHAPTER_MARKER="ytp-chapter-marker",tX.TIME_MARKER="ytp-time-marker",tX);var xZC=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),fhT=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
  9175. P8t=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),BB5=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
  9176. S25=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),IhX=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
  9177. HQt=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),hUJ=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),m85=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
  9178. xlu=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
  9179. K1f=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
  9180. MCv=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.$d.prototype.getId=function(){return this.id};
  9181. g.$d.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+d85(this.start)+", "+d85(this.end)+"]"};
  9182. g.$d.prototype.contains=function(T,Q){return T>=this.start&&(T<this.end||T===this.end&&this.start===this.end)&&(Q==null||T<Q&&Q<=this.end)};
  9183. var wxT=1;g.$d.prototype.getId=g.$d.prototype.getId;EI.prototype.gH=function(){var T=this,Q=0;RU5(this.T,function(){var k=FN(T.slot.clientMetadata,"metadata_type_ad_break_request_data");Q=Date.now();Cw(T.Vq.get(),"abrs","ct."+Q+";cmt."+T.UK.get().getCurrentTimeSec(1,!1)+";sid."+T.slot.slotId+";");return T.S.get().fetch({nT:k.getAdBreakUrl,uI:new g.$d(k.xQ,k.i$),Bm:FN(T.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:k.cueProcessedMs})},function(){Aab(T)},function(k){var l=Date.now()-Q;
  9184. Cw(T.Vq.get(),"abrr","ct."+(new Date).getTime()+";cmt."+T.UK.get().getCurrentTimeSec(1,!1)+";l."+l.toString()+";sid."+T.slot.slotId+";");l=k.yh;l.length>=2&&k.ssdaiAdsConfig&&MH("Unexpected ad placement renderers length",T.slot,null,{length:l.length});var v;((v=k.adSlots)==null?0:v.some(function(L){var q,Y;return((q=g.t(L,oA))==null?void 0:(Y=q.adSlotMetadata)==null?void 0:Y.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||l.some(function(L){var q,Y,U,R;
  9185. return!!((q=L.renderer)==null?0:(Y=q.linearAdSequenceRenderer)==null?0:(U=Y.linearAds)==null?0:U.length)||!((R=L.renderer)==null||!R.instreamVideoAdRenderer)})||Aab(T)})};
  9186. EI.prototype.F5=function(){Z9X(this.T)};y0.prototype.gH=function(){var T=this;RU5(this.S,function(){var Q=FN(T.slot.clientMetadata,"metadata_type_ad_break_request_data");return Q.cueProcessedMs?T.T.get().fetch({nT:Q.getAdBreakUrl,uI:new g.$d(Q.xQ,Q.i$),cueProcessedMs:Q.cueProcessedMs}):T.T.get().fetch({nT:Q.getAdBreakUrl,uI:new g.$d(Q.xQ,Q.i$)})})};
  9187. y0.prototype.F5=function(){Z9X(this.S)};ih.prototype.gH=function(){var T=this.slot.clientMetadata,Q,k=(Q=this.slot.fulfilledLayout)!=null?Q:FN(T,"metadata_type_fulfilled_layout");Juy(this.callback,this.slot,k)};
  9188. ih.prototype.F5=function(){qo(this.callback,this.slot,new F("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};T1.prototype.build=function(T,Q){return Q.fulfilledLayout||V0(Q,{YM:["metadata_type_fulfilled_layout"]})?new ih(T,Q):this.L(T,Q)};g.S(Q1,T1);
  9189. Q1.prototype.L=function(T,Q){if(V0(Q,{YM:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new EI(T,Q,this.T,this.S,this.dc,this.Qq,this.Vq,this.UK,this.iC);if(V0(Q,{YM:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new y0(T,Q,this.T,this.S,this.dc,this.Qq);throw new F("Unsupported slot with type: "+Q.slotType+" and client metadata: "+E9(Q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.S(jB,T1);jB.prototype.L=function(T,Q){throw new F("Unsupported slot with type: "+Q.slotType+" and client metadata: "+E9(Q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.h=b9b.prototype;g.h.t3=function(){return this.slot};
  9190. g.h.b9=function(){return this.layout};
  9191. g.h.init=function(){};
  9192. g.h.release=function(){};
  9193. g.h.startRendering=function(T){if(T.layoutId!==this.layout.layoutId)this.callback.ke(this.slot,T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var Q=FN(T.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.y4(this.slot,T),eyC(this.L,
  9194. this.slot,Q)):MH("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,T)}};
  9195. g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.N2(this.slot,T,Q),ca5(this),D8b(this))};g.S(LB,g.ox);g.h=LB.prototype;g.h.t3=function(){return this.S.slot};
  9196. g.h.b9=function(){return this.S.layout};
  9197. g.h.init=function(){this.L.get().addListener(this)};
  9198. g.h.release=function(){this.L.get().removeListener(this);this.dispose()};
  9199. g.h.xO=function(){};
  9200. g.h.iY=function(){};
  9201. g.h.ma=function(){};
  9202. g.h.Yk=function(){};
  9203. g.h.startRendering=function(T){var Q=this;vk(this.S,T,function(){return void Q.mQ()})};
  9204. g.h.mQ=function(){this.L.get().mQ(this.T)};
  9205. g.h.oK=function(T,Q){var k=this;vk(this.S,T,function(){var l=k.L.get();i4f(l,k.T,3);k.T=[];k.callback.N2(k.slot,T,Q)})};
  9206. g.h.EK=function(){this.L.wd()||this.L.get().removeListener(this);g.ox.prototype.EK.call(this)};
  9207. g.oI.Object.defineProperties(LB.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.S.slot}},
  9208. layout:{configurable:!0,enumerable:!0,get:function(){return this.S.layout}}});fB.prototype.Fw=function(T,Q){Q=Q===void 0?!1:Q;var k=(this.L.get(T)||[]).concat();if(Q=Q&&KAJ(T)){var l=this.L.get(Q);l&&k.push.apply(k,g.ZH(l))}I0(this,T,k);this.T.add(T);Q&&this.T.add(Q)};
  9209. fB.prototype.Wx=function(T,Q){Q=Q===void 0?!1:Q;if(!this.T.has(T)){var k=Q&&KAJ(T);k&&(Q=!this.T.has(k));this.Fw(T,Q)}};g.S(H9I,lD);g.S(Bk,LB);g.h=Bk.prototype;g.h.xe=function(T,Q){Yp("ads-engagement-panel-layout",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9210. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,cO),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Q,k,l,v,L){return new H9I(Q,k,l,v,L)},this.T);
  9211. LB.prototype.startRendering.call(this,T)};
  9212. g.h.y4=function(T,Q){this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9213. g.h.N2=function(){};
  9214. g.h.HT=function(){};
  9215. g.h.vT=function(){};
  9216. g.h.PT=function(){};
  9217. g.h.Id=function(){};
  9218. g.h.KG=function(){};
  9219. g.h.ul=function(){};
  9220. g.h.Oh=function(){};
  9221. g.h.il=function(){};
  9222. g.h.Ry=function(){};
  9223. g.h.v1=function(){};
  9224. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(O9C,lD);g.S(z1,LB);g.h=z1.prototype;g.h.xe=function(T,Q){Yp("banner-image",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9225. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,bQ),this.callback,"metadata_type_banner_image_layout_view_model",function(Q,k,l,v,L){return new O9C(Q,k,l,v,L)},this.T);
  9226. LB.prototype.startRendering.call(this,T)};
  9227. g.h.y4=function(T,Q){this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9228. g.h.N2=function(){};
  9229. g.h.HT=function(){};
  9230. g.h.vT=function(){};
  9231. g.h.PT=function(){};
  9232. g.h.Id=function(){};
  9233. g.h.KG=function(){};
  9234. g.h.ul=function(){};
  9235. g.h.Oh=function(){};
  9236. g.h.il=function(){};
  9237. g.h.Ry=function(){};
  9238. g.h.v1=function(){};
  9239. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(XS,lD);g.S(wv,LB);g.h=wv.prototype;g.h.xe=function(T,Q){Yp("action-companion",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9240. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,dO),this.callback,"metadata_type_action_companion_ad_renderer",function(Q,k,l,v,L){return new XS(Q,k,l,v,L)},this.T);
  9241. LB.prototype.startRendering.call(this,T)};
  9242. g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9243. g.h.N2=function(){};
  9244. g.h.HT=function(){};
  9245. g.h.vT=function(){};
  9246. g.h.PT=function(){};
  9247. g.h.Id=function(){};
  9248. g.h.KG=function(){};
  9249. g.h.ul=function(){};
  9250. g.h.Oh=function(){};
  9251. g.h.il=function(){};
  9252. g.h.Ry=function(){};
  9253. g.h.v1=function(){};
  9254. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S($8y,lD);g.S(dv,LB);g.h=dv.prototype;g.h.xe=function(T,Q){Yp("image-companion",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9255. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,NA),this.callback,"metadata_type_image_companion_ad_renderer",function(Q,k,l,v,L){return new $8y(Q,k,l,v,L)},this.T);
  9256. LB.prototype.startRendering.call(this,T)};
  9257. g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9258. g.h.N2=function(){};
  9259. g.h.HT=function(){};
  9260. g.h.vT=function(){};
  9261. g.h.PT=function(){};
  9262. g.h.Id=function(){};
  9263. g.h.KG=function(){};
  9264. g.h.ul=function(){};
  9265. g.h.Oh=function(){};
  9266. g.h.il=function(){};
  9267. g.h.Ry=function(){};
  9268. g.h.v1=function(){};
  9269. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(eUf,lD);g.S(NP,LB);g.h=NP.prototype;g.h.xe=function(T,Q){Yp("shopping-companion",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9270. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Q,k,l,v,L){return new eUf(Q,k,l,v,L)},this.T);
  9271. LB.prototype.startRendering.call(this,T)};
  9272. g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9273. g.h.N2=function(){};
  9274. g.h.HT=function(){};
  9275. g.h.vT=function(){};
  9276. g.h.PT=function(){};
  9277. g.h.Id=function(){};
  9278. g.h.KG=function(){};
  9279. g.h.ul=function(){};
  9280. g.h.Oh=function(){};
  9281. g.h.il=function(){};
  9282. g.h.Ry=function(){};
  9283. g.h.v1=function(){};
  9284. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(bE,LB);g.h=bE.prototype;g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Q,k,l,v,L){return new XS(Q,k,l,v,L)},this.T);
  9285. LB.prototype.startRendering.call(this,T)};
  9286. g.h.y4=function(){};
  9287. g.h.N2=function(){};
  9288. g.h.HT=function(){};
  9289. g.h.vT=function(){};
  9290. g.h.PT=function(){};
  9291. g.h.Id=function(){};
  9292. g.h.KG=function(){};
  9293. g.h.ul=function(){};
  9294. g.h.Oh=function(){};
  9295. g.h.il=function(){};
  9296. g.h.Ry=function(){};
  9297. g.h.v1=function(){};
  9298. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};
  9299. g.h.xe=function(){};g.h=TDH.prototype;g.h.t3=function(){return this.slot};
  9300. g.h.b9=function(){return this.layout};
  9301. g.h.init=function(){this.UK.get().addListener(this);this.UK.get().KQ.push(this);var T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,{Tm:Q,n6:T,listener:this})};
  9302. g.h.release=function(){this.UK.get().removeListener(this);JDf(this.UK.get(),this);UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId)};
  9303. g.h.startRendering=function(T){this.callback.y4(this.slot,T)};
  9304. g.h.oK=function(T,Q){Giu(this.Qq.get())&&!this.T&&(this.n_.Wx("abandon"),this.T=!0);this.callback.N2(this.slot,T,Q)};
  9305. g.h.Hg=function(T){switch(T.id){case "part2viewed":this.n_.Wx("start");this.n_.Wx("impression");break;case "videoplaytime25":this.n_.Wx("first_quartile");break;case "videoplaytime50":this.n_.Wx("midpoint");break;case "videoplaytime75":this.n_.Wx("third_quartile");break;case "videoplaytime100":Giu(this.Qq.get())?this.T||(this.n_.Wx("complete"),this.T=!0):this.n_.Wx("complete");CB(this.n_)&&sP(this.n_,Infinity,!0);mkg(this.Qq.get())&&AM(this.S,Infinity,!0);break;case "engagedview":CB(this.n_)||this.n_.Wx("progress");
  9306. break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:MH("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
  9307. g.h.onVolumeChange=function(){};
  9308. g.h.UF=function(){};
  9309. g.h.Gw=function(){};
  9310. g.h.zk=function(){};
  9311. g.h.onFullscreenToggled=function(){};
  9312. g.h.DG=function(){};
  9313. g.h.qN=function(){};
  9314. g.h.W6=function(T){mkg(this.Qq.get())&&AM(this.S,T*1E3,!1);CB(this.n_)&&sP(this.n_,T*1E3,!1)};
  9315. g.h.gC=function(){};
  9316. g.h.GM=function(){this.n_.Wx("active_view_measurable")};
  9317. g.h.PV=function(){this.n_.Wx("active_view_viewable")};
  9318. g.h.KH=function(){this.n_.Wx("active_view_fully_viewable_audible_half_duration")};
  9319. g.h.IA=function(){this.n_.Wx("audio_measurable")};
  9320. g.h.bq=function(){this.n_.Wx("audio_audible")};g.S(rv,LB);g.h=rv.prototype;g.h.init=function(){LB.prototype.init.call(this);var T=FN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.ZP};this.T.push(new h$(T,this.layout.layoutId,FN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,!0))};
  9321. g.h.wr=function(){this.Y||this.UK.get().resumeVideo(1)};
  9322. g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);Zp(this.UK.get(),"ad-showing");this.callback.y4(this.slot,T);this.N.gS=this};
  9323. g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);f_(this.UK.get(),"ad-showing");Vs(this.N,this)};
  9324. g.h.xe=function(T){switch(T){case "ad-info-icon-button":(this.Y=this.UK.get().zz(1))||this.UK.get().pauseVideo();break;case "visit-advertiser":this.UK.get().pauseVideo()}};
  9325. g.h.EK=function(){LB.prototype.EK.call(this)};g.S(ck,lD);g.S(DJ,LB);g.h=DJ.prototype;g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,k,l,v,L){return new ck(Q,k,l,v,L)},this.T);
  9326. LB.prototype.startRendering.call(this,T)};
  9327. g.h.y4=function(){};
  9328. g.h.N2=function(){};
  9329. g.h.HT=function(){};
  9330. g.h.vT=function(){};
  9331. g.h.PT=function(){};
  9332. g.h.Id=function(){};
  9333. g.h.KG=function(){};
  9334. g.h.ul=function(){};
  9335. g.h.Oh=function(){};
  9336. g.h.il=function(){};
  9337. g.h.Ry=function(){};
  9338. g.h.v1=function(){};
  9339. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};
  9340. g.h.xe=function(){};g.S(a0,lD);g.S(uE,LB);uE.prototype.init=function(){LB.prototype.init.call(this);this.T.push(new a0(g.t(this.layout.renderingContent,eg),this.layout.layoutId,{adsClientData:this.layout.ZP}))};
  9341. uE.prototype.xe=function(){yN(this.Y.get(),this.N)&&MP(this.Vq.get(),3)};
  9342. uE.prototype.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)};
  9343. uE.prototype.EK=function(){LB.prototype.EK.call(this)};g.S(nB,lD);g.S(KB,LB);KB.prototype.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,y1)||FN(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Q=qP(this.n_);this.T.push(new nB(T,Q,this.layout.layoutId,{adsClientData:this.layout.ZP},!0,!0))};
  9344. KB.prototype.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)};
  9345. KB.prototype.xe=function(T,Q){if(Q===this.layout.layoutId)switch(T){case "skip-button":var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}};
  9346. KB.prototype.EK=function(){LB.prototype.EK.call(this)};Pk.prototype.build=function(T,Q,k,l){if(xp(l,{YM:["metadata_type_ad_break_response_data"],zH:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new b9b(T,k,l,this.S,this.L,this.T);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.S(kI5,lD);g.S(Hk,LB);g.h=Hk.prototype;g.h.xe=function(T,Q){Yp("ads-engagement-panel",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9347. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,Ak),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Q,k,l,v,L){return new kI5(Q,k,l,v,L)},this.T);
  9348. LB.prototype.startRendering.call(this,T)};
  9349. g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9350. g.h.N2=function(){};
  9351. g.h.HT=function(){};
  9352. g.h.vT=function(){};
  9353. g.h.PT=function(){};
  9354. g.h.Id=function(){};
  9355. g.h.KG=function(){};
  9356. g.h.ul=function(){};
  9357. g.h.Oh=function(){};
  9358. g.h.il=function(){};
  9359. g.h.Ry=function(){};
  9360. g.h.v1=function(){};
  9361. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(tM,LB);g.h=tM.prototype;g.h.xe=function(T,Q){Yp("top-banner-image-text-icon-buttoned",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)};
  9362. g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,rO),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,k,l,v,L){return new ck(Q,k,l,v,L)},this.T);
  9363. LB.prototype.startRendering.call(this,T)};
  9364. g.h.y4=function(T,Q){this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9365. g.h.N2=function(){};
  9366. g.h.HT=function(){};
  9367. g.h.vT=function(){};
  9368. g.h.PT=function(){};
  9369. g.h.Id=function(){};
  9370. g.h.KG=function(){};
  9371. g.h.ul=function(){};
  9372. g.h.Oh=function(){};
  9373. g.h.il=function(){};
  9374. g.h.Ry=function(){};
  9375. g.h.v1=function(){};
  9376. g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};v8T.prototype.build=function(T,Q,k,l){if(xp(l,lFC())||g.t(l.renderingContent,Ak)!==void 0)return new Hk(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,WA5())||g.t(l.renderingContent,dO)!==void 0)return new wv(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,Ja5())||g.t(l.renderingContent,NA)!==void 0)return new dv(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,FAt()))return new NP(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,VTI()))return new bE(T,k,l,this.h6,this.Vq,this.EH,
  9377. this.kB,this.T);if(xp(l,pxJ())||g.t(l.renderingContent,bQ)!==void 0)return new z1(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,o8y())||g.t(l.renderingContent,rO)!==void 0)return new tM(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,Qxu()))return new DJ(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,tTt())||g.t(l.renderingContent,cO)!==void 0)return new Bk(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+
  9378. E9(l.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};LMt.prototype.build=function(T,Q,k,l){if(xp(l,{YM:["metadata_type_linked_player_bytes_layout_id"],zH:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new uE(T,k,l,this.h6,this.Vq,this.T);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=qC6.prototype;g.h.t3=function(){return this.slot};
  9379. g.h.b9=function(){return this.layout};
  9380. g.h.init=function(){};
  9381. g.h.release=function(){};
  9382. g.h.startRendering=function(T){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.y4(this.slot,T),this.n_.Wx("impression"),UW(this.g8,T,"normal"))};
  9383. g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.N2(this.slot,T,Q)};g.h=MxX.prototype;g.h.t3=function(){return this.slot};
  9384. g.h.b9=function(){return this.layout};
  9385. g.h.init=function(){};
  9386. g.h.release=function(){};
  9387. g.h.startRendering=function(T){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.y4(this.slot,T),this.n_.Wx("impression"),UW(this.g8,T,"normal"))};
  9388. g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.N2(this.slot,T,Q)};OP.prototype.build=function(T,Q,k,l){if(!this.Qq.get().U.G().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(xp(l,g8f()))return new qC6(T,k,l,this.Vq,this.g8)}else if(xp(l,{YM:[],zH:["LAYOUT_TYPE_FORECASTING"]}))return new MxX(T,k,l,this.Vq,this.g8);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.S(Rif,lD);g.S(pB,LB);g.h=pB.prototype;g.h.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,EP)||FN(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Q={adsClientData:this.layout.ZP};this.T.push(new Rif(T,FN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Q))};
  9389. g.h.wr=function(){this.Y||this.UK.get().resumeVideo(2)};
  9390. g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T);this.N.gS=this};
  9391. g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);Vs(this.N,this)};
  9392. g.h.xe=function(T,Q){if(!KF(this.Qq.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Q===this.layout.layoutId){if(yN(this.B.get(),this.C))switch(T){case "visit-advertiser-link":MP(this.Vq.get(),3)}switch(T){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.UK.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.UK.get().zz(2))||this.UK.get().pauseVideo();break;
  9393. case "visit-advertiser-link":this.UK.get().pauseVideo();ZDu(this).GK();break;case "skip-button":if(T=ZDu(this),this.layout.renderingContent&&!pp(this.layout.clientMetadata,"metadata_type_dai")||!T||!T.Iz){var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}else MH("Requesting to skip by LegacyPlayerBytes when components enabled"),T.Ol(this.t3(),this.layout)}}};
  9394. g.h.EK=function(){LB.prototype.EK.call(this)};g.S(Wk,LB);g.h=Wk.prototype;g.h.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,FS)||FN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.ZP},k;(k=!!this.layout.renderingContent)||(k=$p(this),k=!(k&&k.Iz));this.T.push(new h$(T,this.layout.layoutId,FN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,k))};
  9395. g.h.wr=function(){this.Y||this.UK.get().resumeVideo(2)};
  9396. g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T);this.N.gS=this};
  9397. g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);Vs(this.N,this)};
  9398. g.h.xe=function(T,Q){if(!this.Qq||!KF(this.Qq.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Q===this.layout.layoutId){if(yN(this.B.get(),this.C))switch(T){case "visit-advertiser":MP(this.Vq.get(),3)}switch(T){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.UK.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.UK.get().zz(2))||this.UK.get().pauseVideo();break;
  9399. case "visit-advertiser":this.UK.get().pauseVideo();$p(this).GK();break;case "skip-button":if(T=$p(this),this.layout.renderingContent&&!pp(this.layout.clientMetadata,"metadata_type_dai")||!T||!T.Iz){var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}else MH("Requesting to skip by LegacyPlayerBytes"),T.Ol(this.t3(),this.layout)}}};
  9400. g.h.EK=function(){LB.prototype.EK.call(this)};g.S(GII,lD);g.S(JM,LB);g.h=JM.prototype;g.h.startRendering=function(T){var Q=this;vk(this.S,T,function(){Q.T.push(new GII(FN(Q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),T.layoutId,T.ZP));Q.mQ();Q.callback.y4(Q.slot,T);g.J(lI(Q.UK.get(),1),512)&&Q.callback.ke(Q.t3(),Q.b9(),new Jj("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
  9401. g.h.qN=function(){};
  9402. g.h.DG=function(T){if(T.state.isError()){var Q;this.callback.ke(this.t3(),this.b9(),new Jj("A player error happened during adNotify",{playerErrorCode:(Q=T.state.ge)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
  9403. g.h.onFullscreenToggled=function(){};
  9404. g.h.Gw=function(){};
  9405. g.h.zk=function(){};
  9406. g.h.UF=function(){};
  9407. g.h.onVolumeChange=function(){};
  9408. g.h.Hg=function(){};
  9409. g.h.gC=function(){};
  9410. g.h.xe=function(){};g.S(IFt,lD);g.S(eB,LB);eB.prototype.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,iE),Q=qP(this.n_);this.T.push(new IFt(T,Q,this.layout.layoutId,{adsClientData:this.layout.ZP}))};
  9411. eB.prototype.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)};
  9412. eB.prototype.xe=function(T,Q){if(Q===this.layout.layoutId)switch(T){case "skip-button":var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}};
  9413. eB.prototype.EK=function(){LB.prototype.EK.call(this)};hi6.prototype.build=function(T,Q,k,l){if(T=V1(T,k,l,this.h6,this.UK,this.Vq,this.S,this.T,this.Qq))return T;throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.h=jI.prototype;g.h.t3=function(){return this.slot};
  9414. g.h.b9=function(){return this.layout};
  9415. g.h.init=function(){this.UK.get().addListener(this);this.UK.get().KQ.push(this);if(this.layout.renderingContent){var T=this.l9.get();T=Kd(T,1).s9/1E3}else T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Q=g.t(this.layout.renderingContent,WO),k=Q?R0(Q.pings):FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Q=Q?nuH(Q.pings):FN(this.layout.clientMetadata,"metadata_type_active_view_identifier");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,
  9416. {Tm:k,n6:T,listener:this,JZ:Q})};
  9417. g.h.release=function(){this.UK.get().removeListener(this);JDf(this.UK.get(),this);UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId)};
  9418. g.h.startRendering=function(T){this.callback.y4(this.slot,T)};
  9419. g.h.oK=function(T,Q){k9(this,"abandon");this.callback.N2(this.slot,T,Q)};
  9420. g.h.Hg=function(T){switch(T.id){case "part2viewed":this.n_.Wx("start");this.n_.Wx("impression");break;case "videoplaytime25":this.n_.Wx("first_quartile");break;case "videoplaytime50":this.n_.Wx("midpoint");break;case "videoplaytime75":this.n_.Wx("third_quartile");break;case "videoplaytime100":k9(this,"complete");CB(this.n_)&&sP(this.n_,Infinity,!0);break;case "engagedview":CB(this.n_)||this.n_.Wx("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
  9421. default:MH("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
  9422. g.h.onVolumeChange=function(){};
  9423. g.h.UF=function(){};
  9424. g.h.Gw=function(){};
  9425. g.h.zk=function(){};
  9426. g.h.onFullscreenToggled=function(){};
  9427. g.h.DG=function(T){this.T||(g.RY(T,4)&&!g.RY(T,2)?hM(this.n_,"pause"):Ue(T,4)<0&&!(Ue(T,2)<0)&&hM(this.n_,"resume"))};
  9428. g.h.qN=function(){};
  9429. g.h.W6=function(T){CB(this.n_)&&sP(this.n_,T*1E3,!1)};
  9430. g.h.gC=function(){k9(this,"swipe")};
  9431. g.h.GM=function(){this.n_.Wx("active_view_measurable")};
  9432. g.h.PV=function(){this.n_.Wx("active_view_viewable")};
  9433. g.h.KH=function(){this.n_.Wx("active_view_fully_viewable_audible_half_duration")};
  9434. g.h.IA=function(){this.n_.Wx("audio_measurable")};
  9435. g.h.bq=function(){this.n_.Wx("audio_audible")};sx6.prototype.build=function(T,Q,k,l){if(k.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.t(l.renderingContent,WO)!==void 0)return new jI(T,k,l,this.UK,this.Vq,this.Qq,this.kB,this.l9);Q=["metadata_type_ad_placement_config"];for(var v=g.B(G1()),L=v.next();!L.done;L=v.next())Q.push(L.value);if(xp(l,{YM:Q,zH:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return k.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new jI(T,k,l,this.UK,this.Vq,this.Qq,this.kB,this.l9):new TDH(T,k,l,this.UK,this.Vq,
  9436. this.er,this.Qq,this.kB);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Lu={contentCpn:"",ZY:new Map};bDI.prototype.Fs=function(T,Q){var k={};Q=Object.assign({},Q,(k.cc=this.Fj.Zs(),k));this.Fj.U.T9(T,Q)};var Yo_,OZ;
  9437. Yo_={tj6:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",ize:"AUTHENTICATION_MALFORMED",dVe:"AUTHENTICATION_MISSING",UVk:"BAD_REQUEST",C7H:"CAST_SESSION_DEVICE_MISMATCHED",lbe:"CAST_SESSION_VIDEO_MISMATCHED",r9e:"CAST_TOKEN_EXPIRED",J99:"CAST_TOKEN_FAILED",ZzO:"CAST_TOKEN_MALFORMED",A9e:"CGI_PARAMS_MALFORMED",j2d:"CGI_PARAMS_MISSING",o$6:"DEVICE_FALLBACK",ryk:"GENERIC_WITH_LINK_AND_CPN",JyO:"ERROR_HDCP",ZBq:"LICENSE",jDm:"VIDEO_UNAVAILABLE",n$H:"FORMAT_UNAVAILABLE",OBH:"GEO_FAILURE",
  9438. h19:"HTML5_AUDIO_RENDERER_ERROR",LmH:"GENERIC_WITHOUT_LINK",kkK:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Fme:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Y4k:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",m16:"HTML5_SPS_UMP_STATUS_REJECTED",wgH:"INVALID_DRM_MESSAGE",L7j:"PURCHASE_NOT_FOUND",kWV:"PURCHASE_REFUNDED",X4d:"RENTAL_EXPIRED",esq:"RETRYABLE_ERROR",jwq:"SERVER_ERROR",W76:"SIGNATURE_EXPIRED",H7q:"STOPPED_BY_ANOTHER_PLAYBACK",y_d:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",zwH:"STREAMING_NOT_ALLOWED",
  9439. qYe:"STREAM_LICENSE_NOT_FOUND",hwK:"TOO_MANY_REQUESTS",LGV:"TOO_MANY_REQUESTS_WITH_LINK",k6K:"TOO_MANY_STREAMS_PER_ENTITLEMENT",FG9:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",b7O:"VIDEO_FORBIDDEN",Ir9:"VIDEO_NOT_FOUND",wlH:"BROWSER_OR_EXTENSION_ERROR"};OZ={};
  9440. g.Es=(OZ.ALREADY_PINNED_ON_A_DEVICE="\u4f60\u5c06\u6b64\u89c6\u9891\u4e0b\u8f7d\u5230\u7684\u8bbe\u5907\u7684\u6570\u91cf\u5df2\u8fbe\u5230\u5176\u7248\u6743\u6301\u6709\u8005\u89c4\u5b9a\u7684\u4e0a\u9650\u3002\u8981\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\uff0c\u5fc5\u987b\u5148\u5728\u53e6\u4e00\u8bbe\u5907\u4e2d\u53d6\u6d88\u56fa\u5b9a\u5b83\u3002",OZ.DEVICE_FALLBACK="\u5f88\u62b1\u6b49\uff0c\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u8be5\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",OZ.GENERIC_WITH_LINK_AND_CPN=
  9441. "\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002\uff08\u64ad\u653e ID\uff1a$CPN\uff09$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",OZ.LICENSE="\u5f88\u62b1\u6b49\uff0c\u4e3a\u6b64\u89c6\u9891\u6388\u4e88\u8bb8\u53ef\u65f6\u51fa\u9519\u3002",OZ.VIDEO_UNAVAILABLE="\u89c6\u9891\u65e0\u6cd5\u64ad\u653e",OZ.FORMAT_UNAVAILABLE="\u6b64\u89c6\u9891\u65e0\u6cd5\u4ee5\u6240\u9009\u753b\u8d28\u64ad\u653e\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",OZ.GEO_FAILURE="\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u4f60\u6240\u5728\u7684\u56fd\u5bb6/\u5730\u533a\u64ad\u653e\u3002",
  9442. OZ.HTML5_AUDIO_RENDERER_ERROR="\u97f3\u9891\u6e32\u67d3\u5668\u9519\u8bef\u3002\u8bf7\u91cd\u542f\u8ba1\u7b97\u673a\u3002",OZ.GENERIC_WITHOUT_LINK="\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",OZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u4e0d\u652f\u6301\u6b64\u89c6\u9891\u683c\u5f0f\u3002",OZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u4f60\u7684\u6d4f\u89c8\u5668\u76ee\u524d\u65e0\u6cd5\u8bc6\u522b\u4efb\u4f55\u53ef\u7528\u7684\u89c6\u9891\u683c\u5f0f\u3002$BEGIN_LINK\u8bf7\u70b9\u51fb\u6b64\u5904\uff0c\u67e5\u770b\u5173\u4e8eHTML5\u89c6\u9891\u7684\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002$END_LINK",
  9443. OZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="\u4f60\u7684\u6d4f\u89c8\u5668\u65e0\u6cd5\u64ad\u653e\u6b64\u89c6\u9891\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",OZ.HTML5_SPS_UMP_STATUS_REJECTED="\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",OZ.INVALID_DRM_MESSAGE="DRM\u7cfb\u7edf\u4e13\u7528\u6d88\u606f\u65e0\u6548\u3002",OZ.PURCHASE_NOT_FOUND="\u6b64\u89c6\u9891\u9700\u8981\u4ed8\u8d39\u3002",
  9444. OZ.PURCHASE_REFUNDED="\u6b64\u89c6\u9891\u7684\u8d2d\u4e70\u8d39\u7528\u5df2\u9000\u8fd8\u3002",OZ.RENTAL_EXPIRED="\u6b64\u89c6\u9891\u7684\u79df\u501f\u671f\u5df2\u8fc7\u3002",OZ.CAST_SESSION_DEVICE_MISMATCHED="\u6295\u653e\u4f1a\u8bdd\u4e2d\u7684\u8bbe\u5907\u4e0e\u8981\u6c42\u7684\u8bbe\u5907\u4e0d\u76f8\u7b26\u3002",OZ.CAST_SESSION_VIDEO_MISMATCHED="\u6295\u653e\u4f1a\u8bdd\u4e2d\u7684\u89c6\u9891\u4e0e\u8981\u6c42\u7684\u89c6\u9891\u4e0d\u76f8\u7b26\u3002",OZ.CAST_TOKEN_FAILED="\u6295\u653e\u4f1a\u8bdd\u4e0d\u53ef\u7528\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",
  9445. OZ.CAST_TOKEN_EXPIRED="\u6295\u653e\u4f1a\u8bdd\u5df2\u5931\u6548\uff0c\u8bf7\u5237\u65b0\u3002",OZ.CAST_TOKEN_MALFORMED="\u6295\u653e\u4f1a\u8bdd\u65e0\u6548\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",OZ.SERVER_ERROR="\u51fa\u73b0\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",OZ.STOPPED_BY_ANOTHER_PLAYBACK="\u4f60\u7684\u8d26\u53f7\u6b63\u5728\u5176\u4ed6\u4f4d\u7f6e\u64ad\u653e\u6b64\u89c6\u9891\u3002\u8981\u7ee7\u7eed\u89c2\u770b\uff0c\u8bf7\u91cd\u65b0\u52a0\u8f7d\u6b64\u9875\u9762\u3002",
  9446. OZ.STREAM_LICENSE_NOT_FOUND="\u89c6\u9891\u64ad\u653e\u5df2\u4e2d\u65ad\uff0c\u8bf7\u91cd\u8bd5\u3002",OZ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u8fc7\u53bb24\u5c0f\u65f6\u5185\u4f7f\u7528\u7684\u8bbe\u5907/IP\u5730\u5740\u592a\u591a\u3002",OZ.STREAMING_NOT_ALLOWED="\u4e0d\u5141\u8bb8\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u56fa\u5b9a\u5728\u53e6\u4e00\u53f0\u8bbe\u5907\u4e0a\u3002",OZ.RETRYABLE_ERROR="\u51fa\u73b0\u6682\u65f6\u6027\u7684\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",
  9447. OZ.TOO_MANY_REQUESTS="\u8bf7\u767b\u5f55\u4ee5\u89c2\u770b\u6b64\u89c6\u9891\u3002",OZ.TOO_MANY_REQUESTS_WITH_LINK="\u8981\u5728 YouTube \u4e0a\u89c2\u770b\u6b64\u89c6\u9891\uff0c\u8bf7$BEGIN_LINK\u70b9\u51fb\u6b64\u5904$END_LINK\u3002",OZ.TOO_MANY_STREAMS_PER_USER="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u76ee\u524d\u5728\u64ad\u653e\u7684\u89c6\u9891\u4e2d\u6709\u592a\u591a\u5c5e\u4e8e\u540c\u4e00\u8d26\u53f7\u3002",OZ.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u7ecf\u5728\u592a\u591a\u8bbe\u5907\u4e0a\u64ad\u653e\u8fc7\u3002",
  9448. OZ.UNSUPPORTED_DEVICE="\u4e0d\u652f\u6301\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",OZ.VIDEO_FORBIDDEN="\u4f60\u8981\u6c42\u8bbf\u95ee\u6b64\u89c6\u9891\u7684\u8bf7\u6c42\u88ab\u62d2\u3002",OZ.VIDEO_NOT_FOUND="\u627e\u4e0d\u5230\u6b64\u89c6\u9891\u3002",OZ.BROWSER_OR_EXTENSION_ERROR="\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",OZ);var U_W;var R$_=g.KJ(),Z81=R$_.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Z81||Z81.length<2)U_W=void 0;else{var f9T=R$_.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);U_W=f9T&&f9T.length===6?Number(f9T[5].replace("_",".")):0}var jL=U_W,Wa=jL>=0;g.S(g.Bj,wi);g.Bj.prototype.Z=function(T,Q,k,l,v){return wi.prototype.Z.call(this,T,Q,k,l,v)};var ps={},tq=(ps.FAIRPLAY="fairplay",ps.PLAYREADY="playready",ps.WIDEVINE="widevine",ps.CLEARKEY=null,ps.FLASHACCESS=null,ps.UNKNOWN=null,ps.WIDEVINE_CLASSIC=null,ps);zX.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var W_={},$g=(W_.WIDTH={name:"width",video:!0,valid:640,P4:99999},W_.HEIGHT={name:"height",video:!0,valid:360,P4:99999},W_.FRAMERATE={name:"framerate",video:!0,valid:30,P4:9999},W_.BITRATE={name:"bitrate",video:!0,valid:3E5,P4:2E9},W_.EOTF={name:"eotf",video:!0,valid:"bt709",P4:"catavision"},W_.CHANNELS={name:"channels",video:!1,valid:2,P4:99},W_.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",P4:"invalidformat"},W_.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
  9449. P4:"nope"},W_.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",P4:"av99.0.05M.08"},W_.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",P4:"invalid"},W_.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",P4:"false"},W_);var Goe=["h","H"],m_T=["9","("],I9E=["9h","(h"],h$9=["8","*"],sQe=["a","A"],So9=["o","O"],CSJ=["m","M"],BJW=["mac3","MAC3"],z$9=["meac3","MEAC3"],$v={},ttt=($v.h=Goe,$v.H=Goe,$v["9"]=m_T,$v["("]=m_T,$v["9h"]=I9E,$v["(h"]=I9E,$v["8"]=h$9,$v["*"]=h$9,$v.a=sQe,$v.A=sQe,$v.o=So9,$v.O=So9,$v.m=CSJ,$v.M=CSJ,$v.mac3=BJW,$v.MAC3=BJW,$v.meac3=z$9,$v.MEAC3=z$9,$v),XuJ=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),dPy=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var y={},bk=(y["0"]="f",y["160"]="h",y["133"]="h",y["134"]="h",y["135"]="h",y["136"]="h",y["137"]="h",y["264"]="h",y["266"]="h",y["138"]="h",y["298"]="h",y["299"]="h",y["304"]="h",y["305"]="h",y["214"]="h",y["216"]="h",y["374"]="h",y["375"]="h",y["140"]="a",y["141"]="a",y["327"]="sa",y["258"]="m",y["380"]="mac3",y["328"]="meac3",y["161"]="H",y["142"]="H",y["143"]="H",y["144"]="H",y["222"]="H",y["223"]="H",y["145"]="H",y["224"]="H",y["225"]="H",y["146"]="H",y["226"]="H",y["227"]="H",y["147"]="H",y["384"]=
  9450. "H",y["376"]="H",y["385"]="H",y["377"]="H",y["149"]="A",y["261"]="M",y["381"]="MAC3",y["329"]="MEAC3",y["598"]="9",y["278"]="9",y["242"]="9",y["243"]="9",y["244"]="9",y["775"]="9",y["776"]="9",y["777"]="9",y["778"]="9",y["779"]="9",y["780"]="9",y["781"]="9",y["782"]="9",y["783"]="9",y["247"]="9",y["248"]="9",y["353"]="9",y["355"]="9",y["356"]="9",y["271"]="9",y["577"]="9",y["313"]="9",y["579"]="9",y["272"]="9",y["302"]="9",y["303"]="9",y["407"]="9",y["408"]="9",y["308"]="9",y["315"]="9",y["330"]=
  9451. "9h",y["331"]="9h",y["332"]="9h",y["333"]="9h",y["334"]="9h",y["335"]="9h",y["336"]="9h",y["337"]="9h",y["338"]="so",y["600"]="o",y["250"]="o",y["251"]="o",y["774"]="o",y["194"]="*",y["195"]="*",y["220"]="*",y["221"]="*",y["196"]="*",y["197"]="*",y["279"]="(",y["280"]="(",y["317"]="(",y["318"]="(",y["273"]="(",y["274"]="(",y["357"]="(",y["358"]="(",y["275"]="(",y["359"]="(",y["360"]="(",y["276"]="(",y["583"]="(",y["584"]="(",y["314"]="(",y["585"]="(",y["561"]="(",y["277"]="(",y["361"]="(h",y["362"]=
  9452. "(h",y["363"]="(h",y["364"]="(h",y["365"]="(h",y["366"]="(h",y["591"]="(h",y["592"]="(h",y["367"]="(h",y["586"]="(h",y["587"]="(h",y["368"]="(h",y["588"]="(h",y["562"]="(h",y["409"]="(",y["410"]="(",y["411"]="(",y["412"]="(",y["557"]="(",y["558"]="(",y["394"]="1",y["395"]="1",y["396"]="1",y["397"]="1",y["398"]="1",y["399"]="1",y["720"]="1",y["721"]="1",y["400"]="1",y["401"]="1",y["571"]="1",y["402"]="1",y["694"]="1h",y["695"]="1h",y["696"]="1h",y["697"]="1h",y["698"]="1h",y["699"]="1h",y["700"]="1h",
  9453. y["701"]="1h",y["702"]="1h",y["703"]="1h",y["386"]="3",y["387"]="w",y["406"]="6",y["787"]="1",y["788"]="1",y["548"]="1e",y["549"]="1e",y["550"]="1e",y["551"]="1e",y["809"]="1e",y["810"]="1e",y["552"]="1e",y["811"]="1e",y["812"]="1e",y["553"]="1e",y["813"]="1e",y["814"]="1e",y["554"]="1e",y["815"]="1e",y["816"]="1e",y["555"]="1e",y["817"]="1e",y["818"]="1e",y["572"]="1e",y["556"]="1e",y["645"]="(",y["646"]="(",y["647"]="(",y["648"]="(",y["649"]="(",y["650"]="(",y["651"]="(",y["652"]="(",y["653"]="(",
  9454. y["654"]="(",y["655"]="(",y["656"]="(",y["657"]="(",y["658"]="(",y["659"]="(",y["660"]="(",y["661"]="(",y["662"]="(",y["663"]="(",y["664"]="(",y["665"]="(",y["666"]="(",y["667"]="(",y["668"]="(",y["669"]="(",y["670"]="(",y["671"]="(",y["672"]="(",y["673"]="(",y["674"]="(h",y["675"]="(h",y["676"]="(h",y["677"]="(h",y["678"]="(h",y["679"]="(h",y["680"]="(h",y["681"]="(h",y["682"]="(h",y["683"]="(h",y["684"]="(h",y["685"]="(h",y["686"]="(h",y["687"]="(h",y["688"]="A",y["689"]="A",y["690"]="A",y["691"]=
  9455. "MEAC3",y["773"]="i",y["806"]="I",y["805"]="I",y["829"]="9",y["830"]="9",y["831"]="9",y["832"]="9",y["833"]="9",y["834"]="9",y["835"]="9",y["836"]="9",y["892"]="9",y["893"]="9",y["837"]="9",y["838"]="9",y["839"]="9",y["840"]="9",y["841"]="(",y["842"]="(",y["843"]="(",y["844"]="(",y["845"]="(",y["846"]="(",y["847"]="(",y["848"]="(",y["894"]="(",y["895"]="(",y["849"]="(",y["850"]="(",y["851"]="(",y["852"]="(",y["865"]="9",y["866"]="9",y["867"]="9",y["868"]="9",y["869"]="9",y["870"]="9",y["871"]="9",
  9456. y["872"]="9",y["896"]="9",y["897"]="9",y["873"]="9",y["874"]="9",y["875"]="9",y["876"]="9",y["877"]="(",y["878"]="(",y["879"]="(",y["880"]="(",y["881"]="(",y["882"]="(",y["883"]="(",y["884"]="(",y["898"]="(",y["899"]="(",y["885"]="(",y["886"]="(",y["887"]="(",y["888"]="(",y);var JX={},Cef=(JX.STEREO_LAYOUT_UNKNOWN=0,JX.STEREO_LAYOUT_LEFT_RIGHT=1,JX.STEREO_LAYOUT_TOP_BOTTOM=2,JX);var eU,rt;eU={};g.wC=(eU.auto=0,eU.tiny=144,eU.light=144,eU.small=240,eU.medium=360,eU.large=480,eU.hd720=720,eU.hd1080=1080,eU.hd1440=1440,eU.hd2160=2160,eU.hd2880=2880,eU.highres=4320,eU);rt={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var N$="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");dC.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};rC.prototype.Rd=function(){return this.containerType===2};
  9457. rC.prototype.isEncrypted=function(){return!!this.jY};
  9458. rC.prototype.uH=function(){return!!this.audio};
  9459. rC.prototype.bK=function(){return!!this.video};
  9460. var aE=!1;g.S(kT,g.ox);g.h=kT.prototype;g.h.appendBuffer=function(T,Q,k){if(this.kM.hv()!==this.appendWindowStart+this.start||this.kM.jQ()!==this.appendWindowEnd+this.start||this.kM.Px()!==this.timestampOffset+this.start)this.kM.supports(1),this.kM.r4(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.kM.FL(this.timestampOffset+this.start);this.kM.appendBuffer(T,Q,k)};
  9461. g.h.abort=function(){this.kM.abort()};
  9462. g.h.remove=function(T,Q){this.kM.remove(T+this.start,Q+this.start)};
  9463. g.h.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
  9464. g.h.clear=function(){this.kM.clear()};
  9465. g.h.r4=function(T,Q){this.appendWindowStart=T;this.appendWindowEnd=Q};
  9466. g.h.Eb=function(){return this.timestampOffset+this.start};
  9467. g.h.hv=function(){return this.appendWindowStart};
  9468. g.h.jQ=function(){return this.appendWindowEnd};
  9469. g.h.FL=function(T){this.timestampOffset=T};
  9470. g.h.Px=function(){return this.timestampOffset};
  9471. g.h.LG=function(T){T=this.kM.LG(T===void 0?!1:T);return jt(T,this.start,this.end)};
  9472. g.h.Wc=function(){return this.kM.Wc()};
  9473. g.h.h4=function(){return this.kM.h4()};
  9474. g.h.u0=function(){return this.kM.u0()};
  9475. g.h.WI=function(){return this.kM.WI()};
  9476. g.h.YR=function(){this.kM.YR()};
  9477. g.h.QW=function(T){return this.kM.QW(T)};
  9478. g.h.A1=function(){return this.kM.A1()};
  9479. g.h.uV=function(){return this.kM.uV()};
  9480. g.h.AI=function(T,Q,k){this.kM.AI(T,Q,k)};
  9481. g.h.jT=function(T,Q,k){this.kM.jT(T,Q,k)};
  9482. g.h.G5=function(T,Q){return this.kM.G5(T,Q)};
  9483. g.h.supports=function(T){return this.kM.supports(T)};
  9484. g.h.Wy=function(){return this.kM.Wy()};
  9485. g.h.isView=function(){return!0};
  9486. g.h.aq=function(){return this.kM.aq()?this.isActive:!1};
  9487. g.h.isLocked=function(){return this.tA&&!this.isActive};
  9488. g.h.Tx=function(T){T=this.kM.Tx(T);T.vw=this.start+"-"+this.end;return T};
  9489. g.h.tM=function(){return this.kM.tM()};
  9490. g.h.Rr=function(){return this.kM.Rr()};
  9491. g.h.z7=function(){return this.kM.z7()};
  9492. g.h.EK=function(){this.kM.L5(this.WO);g.ox.prototype.EK.call(this)};var u4=!1;g.S(oL,g.ox);g.h=oL.prototype;g.h.appendBuffer=function(T,Q,k){this.CQ=!1;k&&(this.LO=k);if(T.length){var l;((l=this.jr)==null?0:l.appendBuffer)?this.jr.appendBuffer(T):this.jr?this.jr.append(T):this.fd&&this.fd.webkitSourceAppend(this.id,T)}Q&&(Q.isEncrypted()&&(this.Qj=this.LO),Q.type===3&&(this.Qy=Q),this.hL.push(Q.Bh()),this.hL.length>4&&this.hL.shift());this.Rj&&(this.Rj.length>=2||T.length>1048576?delete this.Rj:this.Rj.push(T))};
  9493. g.h.abort=function(){try{this.jr?this.jr.abort():this.fd&&this.fd.webkitSourceAbort(this.id)}catch(Q){if(Y3I){var T=new g.Wy("Error while abort the source buffer: "+Q.name+", "+Q.message);g.bA(T)}}this.LO=this.Qy=null};
  9494. g.h.remove=function(T,Q,k){this.CQ=!1;var l;if((l=this.jr)==null?0:l.remove)k&&k({b:FL(this.LG()),s:T,e:Q}),this.jr.remove(T,Q)};
  9495. g.h.removeAll=function(){this.remove(this.hv(),this.jQ())};
  9496. g.h.clear=function(){this.u0()||(this.abort(),this.removeAll(),this.Qj=this.LO=this.Qy=null,this.appendWindowStart=this.timestampOffset=0,this.hc=eI([],[]),this.CQ=!1,this.Rj=le?[]:void 0,this.gL=!0)};
  9497. g.h.hv=function(){if(u4&&this.bK)return this.appendWindowStart;var T;return((T=this.jr)==null?void 0:T.appendWindowStart)||0};
  9498. g.h.jQ=function(){var T;return((T=this.jr)==null?void 0:T.appendWindowEnd)||0};
  9499. g.h.r4=function(T,Q){this.jr&&(u4&&this.bK?(this.appendWindowStart=T,this.jr.appendWindowEnd=Q):T>this.hv()?(this.jr.appendWindowEnd=Q,this.jr.appendWindowStart=T):(this.jr.appendWindowStart=T,this.jr.appendWindowEnd=Q))};
  9500. g.h.Eb=function(){return this.timestampOffset};
  9501. g.h.FL=function(T){u4?this.timestampOffset=T:this.supports(1)&&(this.jr.timestampOffset=T)};
  9502. g.h.Px=function(){return u4?this.timestampOffset:this.supports(1)?this.jr.timestampOffset:0};
  9503. g.h.LG=function(T){if(T===void 0?0:T)return this.CQ||this.Wc()||(this.hc=this.LG(!1),this.CQ=!0),this.hc;try{return this.jr?this.jr.buffered:this.fd?this.fd.webkitSourceBuffered(this.id):eI([0],[Infinity])}catch(Q){return eI([],[])}};
  9504. g.h.Wc=function(){var T;return((T=this.jr)==null?void 0:T.updating)||!1};
  9505. g.h.u0=function(){return this.gL};
  9506. g.h.WI=function(){return!this.gL&&this.Wc()};
  9507. g.h.YR=function(){this.gL=!1};
  9508. g.h.QW=function(T){var Q=T==null?void 0:T.yR;T=T==null?void 0:T.containerType;return!Q&&!T||Q===this.yR&&T===this.containerType};
  9509. g.h.A1=function(){return this.LO};
  9510. g.h.uV=function(){return this.Qj};
  9511. g.h.G5=function(T,Q){return this.containerType!==T||this.yR!==Q};
  9512. g.h.AI=function(T,Q,k){if(this.containerType!==T||k&&this.G5(T,k))this.supports(4),vM()&&this.jr.changeType(Q),k&&(this.yR=k);this.containerType=T};
  9513. g.h.jT=function(T,Q,k){this.containerType&&this.G5(T,Q)&&vM()&&this.jr.changeType(k);this.containerType=T;this.yR=Q};
  9514. g.h.Wy=function(){return this.Qy};
  9515. g.h.isView=function(){return!1};
  9516. g.h.supports=function(T){switch(T){case 1:var Q;return((Q=this.jr)==null?void 0:Q.timestampOffset)!==void 0;case 0:var k;return!((k=this.jr)==null||!k.appendBuffer);case 2:var l;return!((l=this.jr)==null||!l.remove);case 3:var v,L;return!!(((v=this.jr)==null?0:v.addEventListener)&&((L=this.jr)==null?0:L.removeEventListener));case 4:return!(!this.jr||!this.jr.changeType);default:return!1}};
  9517. g.h.aq=function(){return!this.Wc()};
  9518. g.h.isLocked=function(){return!1};
  9519. g.h.Tx=function(T){T.to=this.Px();T.up=this.Wc();var Q,k=((Q=this.jr)==null?void 0:Q.appendWindowStart)||0,l;Q=((l=this.jr)==null?void 0:l.appendWindowEnd)||Infinity;T.aw=k.toFixed(3)+"-"+Q.toFixed(3);return T};
  9520. g.h.h4=function(){var T;return((T=this.jr)==null?void 0:T.writeHead)||0};
  9521. g.h.tM=function(){for(var T={},Q=0;Q<this.hL.length;Q++)T["s"+Q]=this.hL[Q];return T};
  9522. g.h.EK=function(){this.supports(3)&&(this.jr.removeEventListener("updateend",this.Qp),this.jr.removeEventListener("error",this.Qp));g.ox.prototype.EK.call(this)};
  9523. g.h.Rr=function(){return this.containerType};
  9524. g.h.z7=function(){return this.Rj};
  9525. var le=!1,Y3I=!1;Ld.prototype.dispose=function(){if(!this.wd()){if(this.T)try{URL.revokeObjectURL(this.Xs)}catch(T){}this.S=!0}};
  9526. Ld.prototype.wd=function(){return this.S};
  9527. Ld.prototype.equals=function(T){return T!==null&&T.Xs===this.Xs};
  9528. Ld.prototype.toString=function(){return"MediaResource {"+this.Xs+"}"};g.S(q3,g.x);g.h=q3.prototype;g.h.getDuration=function(){var T;return((T=this.j6)==null?void 0:T.duration)||this.D};
  9529. g.h.SR=function(T){try{this.j6?this.j6.duration=T:(this.D=T,this.fd.webkitSourceSetDuration(T))}catch(Q){}};
  9530. g.h.FG=function(){try{return Zl(this)==="closed"}catch(T){return!0}};
  9531. g.h.Wc=function(){return!!(this.T&&this.T.Wc()||this.S&&this.S.Wc())};
  9532. g.h.isAsync=function(){return this.T?!!this.T.supports(0):fd()};
  9533. g.h.qMH=function(){!this.wd()&&gf(this)&&this.callback&&(this.callback(this),this.callback=null)};
  9534. g.h.zvm=function(){this.dispose()};
  9535. g.h.oL=function(T){if(M3&&!this.Y&&T.u0()&&T.LG().length===0){var Q;UM(this.mediaElement,{l:"mswoue",sr:(Q=this.mediaElement.yq)==null?void 0:Q.e1()},!1);T.YR();this.u0()||(this.mediaElement.wz=!0,this.mediaElement.setCurrentTime(0))}};
  9536. g.h.clear=function(){txC(this,function(){});
  9537. var T;(T=this.T)==null||T.clear();var Q;(Q=this.S)==null||Q.clear()};
  9538. g.h.u0=function(){var T,Q;return((T=this.S)==null?void 0:T.u0())||((Q=this.T)==null?void 0:Q.u0())};
  9539. g.h.QW=function(T,Q){return!!this.T&&!!this.S&&this.T.QW(Q)&&this.S.QW(T)};
  9540. var M3=!1;GN.prototype.then=function(T,Q){return this.promise.then(T,Q)};
  9541. GN.prototype.resolve=function(T){this.LR(T)};
  9542. GN.prototype.reject=function(T){this.qh(T)};g.S(ml,g.x);g.h=ml.prototype;g.h.Ef=function(){return this.Xs};
  9543. g.h.activate=function(T){var Q="";T&&(E85(this,T),Q=T.Xs);if(!this.Cz()||Q)Q&&this.Cz()!==Q&&(this.oV(Q),delete this.S,this.L&&(this.L.reject(),delete this.L),!window.MediaSource&&window.ManagedMediaSource&&this.A2(!(T==null||!T.T))),T&&T.T||this.load(),this.C||(this.addEventListener("volumechange",this.HR),this.C=!0)};
  9544. g.h.JH=function(T,Q){if(this.S)if(Mbf&&RL(this.S)&&!this.S.QW(T,Q)){var k;UM(this,{l:"megms",sr:(k=this.yq)==null?void 0:k.e1()});ei5(this);this.stopVideo()}else return this.j6=this.S,this.S=void 0,this.j6;T=window.MediaSource?new q3(this,new window.MediaSource,!1):window.ManagedMediaSource?new q3(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new q3(this,new window.WebKitMediaSource,!1):new q3(this,void 0,!1);this.activate(T.L);this.j6=T;this.wz=!1;return T};
  9545. g.h.playVideo=function(){var T=this;this.isEnded()&&this.seekTo(0);!this.Cz()&&this.Xs&&(g.bA(Error("playVideo without src")),this.oV(this.Xs.Xs),this.Xs.T||this.load());var Q=this.play(),k;if((k=this.yq)==null||!k.V("html5_remove_ios_7_hack_force_play")){var l;Wa&&(jL||0)>=7&&(!Q||((l=this.yq)==null?0:l.V("mweb_ios_allow_playback_workaround_when_ready")))&&rcb(this,function(){g.Zq(function(){FMt(T,T.getCurrentTime(),0)},500)})}return Q};
  9546. g.h.seekTo=function(T){this.Nm()>0&&(Wa&&jL<4&&(T=Math.max(.1,T)),this.setCurrentTime(T))};
  9547. g.h.T0=function(){if(!this.S&&this.j6)if(this.j6.N)try{var T;UM(this,{l:"mer",sr:(T=this.yq)==null?void 0:T.e1(),rs:Zl(this.j6)});this.j6.clear();this.S=this.j6;this.j6=void 0}catch(Q){T=new g.Wy("Error while clearing Media Source in MediaElement: "+Q.name+", "+Q.message),g.bA(T),this.stopVideo()}else this.stopVideo()};
  9548. g.h.stopVideo=function(){var T=this;if(!this.S){var Q;(Q=this.j6)==null||$1I(Q);if(q3T){if(!this.L){var k=new GN;k.then(void 0,function(){});
  9549. this.L=k;gIb&&this.pause();g.Zq(function(){T.L===k&&(sM(T),k.resolve())},200)}}else sM(this)}};
  9550. g.h.bS=function(){var T=this.Q8();return TN(T)&&this.getDuration()?ik(T,this.getCurrentTime()):0};
  9551. g.h.KX=function(){var T=this.getDuration();return T===Infinity?1:T?this.bS()/T:0};
  9552. g.h.Tx=function(){try{var T=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:FL(this.nX(),",",3),vbu:FL(this.Q8()),vbs:FL(this.MD()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Nm(),vns:""+this.D2(),vec:""+this.SZ(),vemsg:this.dw(),vvol:""+this.getVolume(),vdom:""+ +this.Ob(),vsrc:""+ +!!this.Cz(),vw:""+T.width,vh:""+T.height}}catch(Q){return{}}};
  9553. g.h.hasError=function(){return this.SZ()>0};
  9554. g.h.addEventListener=function(T,Q){this.Y.listen(T,Q,!1,this);this.EL(T)};
  9555. g.h.removeEventListener=function(T,Q){this.Y.J6(T,Q,!1,this)};
  9556. g.h.dispatchEvent=function(T){if(this.L&&T.type==="pause")return!1;if(Mbf){var Q,k=((Q=T.T)==null?void 0:Q.timeStamp)||Infinity;Q=k>performance.now()?k-Date.now()+performance.now():k;k=this.S||this.j6;if((k==null?0:k.u0())||Q<=((k==null?void 0:k.B)||0)){var l;UM(this,{l:"mede",sr:(l=this.yq)==null?void 0:l.e1(),et:T.type});return!1}if(this.wz)return UM(this,{l:"medes",et:T.type}),k&&T.type==="seeking"&&(k.B=performance.now(),this.wz=!1),!1}return this.Y.dispatchEvent(T)};
  9557. g.h.qZ=function(){this.B=!1};
  9558. g.h.a5=function(){this.B=!0;this.r9(!0)};
  9559. g.h.HR=function(){this.B&&!this.fk()&&this.r9(!0)};
  9560. g.h.equals=function(T){return!!T&&T.xB()===this.xB()};
  9561. g.h.EK=function(){this.C&&this.removeEventListener("volumechange",this.HR);q3T&&sM(this);g.x.prototype.EK.call(this)};
  9562. var q3T=!1,gIb=!1,Mbf=!1,iDX=!1;g.h=g.Cd.prototype;g.h.isPaused=function(){return g.J(this,4)};
  9563. g.h.isPlaying=function(){return g.J(this,8)&&!g.J(this,512)&&!g.J(this,64)&&!g.J(this,2)};
  9564. g.h.isOrWillBePlaying=function(){return g.J(this,8)&&!g.J(this,2)&&!g.J(this,1024)};
  9565. g.h.isCued=function(){return g.J(this,64)&&!g.J(this,8)&&!g.J(this,4)};
  9566. g.h.isBuffering=function(){return g.J(this,1)&&!g.J(this,2)};
  9567. g.h.isError=function(){return g.J(this,128)};
  9568. g.h.isSuspended=function(){return g.J(this,512)};
  9569. g.h.a9=function(){return g.J(this,64)&&g.J(this,4)};
  9570. g.h.toString=function(){return"PSt."+this.state.toString(16)};
  9571. var FD={},EZ=(FD.BUFFERING="buffering-mode",FD.CUED="cued-mode",FD.ENDED="ended-mode",FD.PAUSED="paused-mode",FD.PLAYING="playing-mode",FD.SEEKING="seeking-mode",FD.UNSTARTED="unstarted-mode",FD);g.S(Dl,g.x);g.h=Dl.prototype;g.h.n7=function(){return this.L};
  9572. g.h.t3=function(){return this.slot};
  9573. g.h.b9=function(){return this.layout};
  9574. g.h.init=function(){var T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,{Tm:Q,n6:T,listener:this,yl:this.Zg()});xk5(this.Vq.get(),this);T=this.QD;Q=this.layout.layoutId;var k={yl:this.Zg()};T.T.set(Q,k);this.eA()};
  9575. g.h.iA=function(){};
  9576. g.h.release=function(){UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId);P6X(this.Vq.get(),this);this.QD.T.delete(this.layout.layoutId);this.oT()};
  9577. g.h.Fx=function(){};
  9578. g.h.Nk=function(){};
  9579. g.h.startRendering=function(T){M$(aL(this));if(ue(this,T)){var Q=this.T;Y9(Q.params.mx.Qq.get(),!0)&&AcT(Q,"p_sr",{});nd(this);this.Uc(T);this.Zg()||this.nK(!1)}};
  9580. g.h.y4=function(T,Q){if(Q.layoutId===this.layout.layoutId){this.q2="rendering";this.S=this.UK.get().isMuted()||this.UK.get().getVolume()===0;this.Wx("impression");this.Wx("start");if(this.UK.get().isMuted()){OM(this,"mute");var k;T=((k=cM(this))==null?void 0:k.muteCommands)||[];DX(this.er.get(),T,this.layout.layoutId)}if(this.UK.get().isFullscreen()){this.Fw("fullscreen");var l;k=((l=cM(this))==null?void 0:l.fullscreenCommands)||[];DX(this.er.get(),k,this.layout.layoutId)}this.Zg()||(l=this.eV.get(),
  9581. l.L&&!l.S&&(l.N=!1,l.S=!0,l.actionType!=="ad_to_video"&&(cP("pbs",void 0,l.actionType),g.hH("finalize_all_timelines")&&qSt(l.actionType))));this.z6(1);this.cL(Q);var v;Q=((v=cM(this))==null?void 0:v.impressionCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9582. g.h.wP=function(T,Q,k){this.C={Wr:3,GU:T==="load_timeout"?402:400,errorMessage:Q.message};this.Wx("error");var l;T=((l=cM(this))==null?void 0:l.errorCommands)||[];DX(this.er.get(),T,this.layout.layoutId);this.Zg()||this.xU.ke(this.slot,this.layout,Q,k)};
  9583. g.h.Cg=function(){if(this.q2==="rendering"){OM(this,"pause");var T,Q=((T=cM(this))==null?void 0:T.pauseCommands)||[];DX(this.er.get(),Q,this.layout.layoutId);this.z6(2)}};
  9584. g.h.Je=function(){if(this.q2==="rendering"){OM(this,"resume");var T,Q=((T=cM(this))==null?void 0:T.resumeCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9585. g.h.ey=function(T,Q){Q=Q===void 0?!1:Q;if(this.q2==="rendering"){var k={currentTimeSec:T,flush:Q};U_(this.T,"p_ip",k);sP(this.n_,T*1E3,Q);this.S||sP(this.n_,T*1E3,Q===void 0?!1:Q);var l=this.On();if(l){l/=1E3;if(T>=l*.25||Q)this.Wx("first_quartile"),U_(this.T,"p_fq",k);if(T>=l*.5||Q)this.Wx("midpoint"),U_(this.T,"p_sq",k);if(T>=l*.75||Q)this.Wx("third_quartile"),U_(this.T,"p_tq",k);this.Qq.get().U.G().experiments.Wd("enable_progress_command_flush_on_kabuki")?AM(this.Y,T*1E3,Q):AM(this.Y,T*1E3,lVt(this)?
  9586. Q:!1)}}};
  9587. g.h.Zs=function(){var T;return((T=Kd(this.l9.get(),1))==null?void 0:T.clientPlaybackNonce)||""};
  9588. g.h.J7=function(T,Q){T.layoutId!==this.layout.layoutId?this.xU.ke(this.slot,T,new Jj("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):Q()};
  9589. g.h.N2=function(T,Q,k){if(Q.layoutId===this.layout.layoutId)switch(this.q2="not_rendering",this.layoutExitReason=void 0,this.Zg()||(T=k!=="normal"||this.position+1===this.B)&&this.nK(T),this.eW(k),this.z6(0),k){case "abandoned":if(SB(this.n_,"impression")){var l,v=((l=cM(this))==null?void 0:l.abandonCommands)||[];DX(this.er.get(),v,this.layout.layoutId)}break;case "normal":l=((v=cM(this))==null?void 0:v.completeCommands)||[];DX(this.er.get(),l,this.layout.layoutId);break;case "skipped":var L;l=((L=
  9590. cM(this))==null?void 0:L.skipCommands)||[];DX(this.er.get(),l,this.layout.layoutId)}};
  9591. g.h.v0=function(){return this.layout.layoutId};
  9592. g.h.sL=function(){return this.C};
  9593. g.h.GM=function(){if(this.q2==="rendering"){this.n_.Wx("active_view_measurable");var T,Q=((T=cM(this))==null?void 0:T.activeViewMeasurableCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9594. g.h.KH=function(){if(this.q2==="rendering"){this.n_.Wx("active_view_fully_viewable_audible_half_duration");var T,Q=((T=cM(this))==null?void 0:T.activeViewFullyViewableAudibleHalfDurationCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9595. g.h.PV=function(){if(this.q2==="rendering"){this.n_.Wx("active_view_viewable");var T,Q=((T=cM(this))==null?void 0:T.activeViewViewableCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9596. g.h.bq=function(){if(this.q2==="rendering"){this.n_.Wx("audio_audible");var T,Q=((T=cM(this))==null?void 0:T.activeViewAudioAudibleCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9597. g.h.IA=function(){if(this.q2==="rendering"){this.n_.Wx("audio_measurable");var T,Q=((T=cM(this))==null?void 0:T.activeViewAudioMeasurableCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}};
  9598. g.h.nK=function(T){this.eV.get().nK(FN(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,T,this.position,this.B,!1)};
  9599. g.h.onFullscreenToggled=function(T){if(this.q2==="rendering")if(T){this.Fw("fullscreen");var Q,k=((Q=cM(this))==null?void 0:Q.fullscreenCommands)||[];DX(this.er.get(),k,this.layout.layoutId)}else this.Fw("end_fullscreen"),Q=((k=cM(this))==null?void 0:k.endFullscreenCommands)||[],DX(this.er.get(),Q,this.layout.layoutId)};
  9600. g.h.onVolumeChange=function(){if(this.q2==="rendering")if(this.UK.get().isMuted()){OM(this,"mute");var T,Q=((T=cM(this))==null?void 0:T.muteCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}else OM(this,"unmute"),T=((Q=cM(this))==null?void 0:Q.unmuteCommands)||[],DX(this.er.get(),T,this.layout.layoutId)};
  9601. g.h.Gw=function(){};
  9602. g.h.zk=function(){};
  9603. g.h.UF=function(){};
  9604. g.h.Hg=function(){};
  9605. g.h.gC=function(){};
  9606. g.h.Fw=function(T){this.n_.Fw(T,!this.S)};
  9607. g.h.Wx=function(T){this.n_.Wx(T,!this.S)};
  9608. g.h.Zg=function(){var T=FN(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(MH("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Qq.get().Zg(T)};g.S(et,Dl);g.h=et.prototype;g.h.eA=function(){};
  9609. g.h.oT=function(){var T=this.Vq.get();T.BP===this&&(T.BP=null);this.timer.stop()};
  9610. g.h.Fx=function(){this.timer.stop();Dl.prototype.Cg.call(this)};
  9611. g.h.Nk=function(){EM(this);Dl.prototype.Je.call(this)};
  9612. g.h.On=function(){return FN(this.b9().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
  9613. g.h.oK=function(T,Q){var k=this;this.J7(T,function(){k.q2!=="rendering_stop_requested"&&(k.q2="rendering_stop_requested",k.layoutExitReason=Q,xT(k,Q),k.timer.stop())})};
  9614. g.h.bC=function(){var T=Date.now(),Q=T-this.FX;this.FX=T;this.l8+=Q;this.l8>=this.On()?this.Ja():(this.ey(this.l8/1E3),FR(this,this.l8))};
  9615. g.h.eW=function(){};
  9616. g.h.qN=function(){};
  9617. g.S(yd,et);g.h=yd.prototype;g.h.DG=function(T){if(this.q2!=="not_rendering"){T=PM(this,T);var Q=this.UK.get().getPresentingPlayerType()===2;this.q2==="rendering_start_requested"?Q&&TX(T)&&this.EN():Q?g.RY(T,2)?MH("Receive player ended event during MediaBreak",this.t3(),this.b9()):HM(this,T):this.z4()}};
  9618. g.h.Uc=function(){jYH(this);FO5(this.UK.get());this.Vq.get().BP=this;bU("pbp")||bU("pbs")||cP("pbp");bU("pbp","watch")||bU("pbs","watch")||cP("pbp",void 0,"watch");this.EN()};
  9619. g.h.cL=function(T){this.eV.get();var Q=FN(T.clientMetadata,"metadata_type_ad_placement_config").kind,k=this.position===0;T=FN(T.clientMetadata,"metadata_type_linked_in_player_layout_type");T={adBreakType:tB(Q),adType:fVu(T)};var l=void 0;k?Q!=="AD_PLACEMENT_KIND_START"&&(l="video_to_ad"):l="ad_to_ad";dS("ad_mbs",void 0,l);g.NL(T,l);EM(this)};
  9620. g.h.z4=function(){this.bG()};
  9621. g.h.Ja=function(){vXC(this);this.bG()};
  9622. g.S(ie,et);g.h=ie.prototype;g.h.DG=function(T){this.q2!=="not_rendering"&&(T=PM(this,T),HM(this,T))};
  9623. g.h.Uc=function(){MH("Not used in SSAP")};
  9624. g.h.cL=function(){EM(this)};
  9625. g.h.z4=function(){MH("Not used in SSAP")};
  9626. g.h.Ja=function(){vXC(this);this.xU.XV(this.t3(),this.b9(),"normal")};
  9627. g.S(Vd,ie);Vd.prototype.oK=function(T,Q){var k=this;this.J7(T,function(){oE(k.L,Q)&&(k.q2="rendering_stop_requested",k.layoutExitReason=Q,xT(k,Q),k.timer.stop())})};
  9628. Vd.prototype.startRendering=function(T){M$(aL(this));ue(this,T)&&(nd(this),this.Vq.get().BP=this)};g.S(jn,Dl);g.h=jn.prototype;g.h.z4=function(){this.bG()};
  9629. g.h.DG=function(T){if(this.q2!=="not_rendering"){T=PM(this,T);var Q=this.UK.get().getPresentingPlayerType()===2;this.q2==="rendering_start_requested"?Q&&TX(T)&&this.EN():!Q||g.RY(T,2)?this.bG():HM(this,T)}};
  9630. g.h.eA=function(){FN(this.b9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=FN(this.b9().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
  9631. g.h.oT=function(){FN(this.b9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.ej){var T=this.context.mx,Q=this.ej,k=this.b9().layoutId;if(Y9(T.Qq.get(),!0)){var l={};T.Fs("mccru",(l.cid=Q,l.p_ac=k,l))}this.Xk.get().removeCueRange(this.ej)}this.ej=void 0;var v;(v=this.QL)==null||v.dispose();this.pM&&this.pM.dispose()};
  9632. g.h.Uc=function(T){var Q=Tn(this.Qq.get()),k=QG(this.Qq.get());if(Q&&k&&!this.Zg()){k=FN(T.clientMetadata,"metadata_type_preload_player_vars");var l=this.Qq.get();l=g.jj(l.U.G().experiments,"html5_preload_wait_time_secs");k&&this.pM&&this.pM.start(l*1E3)}gXf(this,T);jYH(this);Q?(k=this.UH.get(),T=FN(T.clientMetadata,"metadata_type_player_vars"),k.U.loadVideoByPlayerVars(T,!1,2)):M95(this.UH.get(),FN(T.clientMetadata,"metadata_type_player_vars"));var v;(v=this.QL)==null||v.start();Q||this.UH.get().U.playVideo(2)};
  9633. g.h.cL=function(){var T;(T=this.QL)==null||T.stop();this.mp();(this.adCpn=QYu(this))||MH("Media layout confirmed started, but ad CPN not set.");this.yp.get().bu("onAdStart",this.adCpn);this.dF=Date.now()};
  9634. g.h.On=function(){var T;return(T=Kd(this.l9.get(),2))==null?void 0:T.s9};
  9635. g.h.GK=function(){this.n_.Fw("clickthrough")};
  9636. g.h.oK=function(T,Q){var k=this;this.J7(T,function(){if(k.q2!=="rendering_stop_requested"){k.q2="rendering_stop_requested";k.layoutExitReason=Q;xT(k,Q);var l;(l=k.QL)==null||l.stop();k.pM&&k.pM.stop();MM6(k)}})};
  9637. g.h.onCueRangeEnter=function(T){if(T!==this.ej)MH("Received CueRangeEnter signal for unknown layout.",this.t3(),this.b9(),{cueRangeId:T});else{var Q=this.context.mx,k=this.b9().layoutId;if(Y9(Q.Qq.get(),!0)){var l={};Q.Fs("mccre",(l.cid=T,l.p_ac=k,l))}this.Xk.get().removeCueRange(this.ej);this.ej=void 0;KF(this.context.Qq.get(),"html5_ssap_flush_at_stop_rendering")&&this.Zg()||(T=FN(this.b9().clientMetadata,"metadata_type_video_length_seconds"),this.ey(T,!0),this.Wx("complete"))}};
  9638. g.h.eW=function(T){T!=="abandoned"&&this.yp.get().bu("onAdComplete");this.yp.get().bu("onAdEnd",this.adCpn)};
  9639. g.h.mp=function(){this.ej="adcompletioncuerange:"+this.b9().layoutId;this.Xk.get().addCueRange(this.ej,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var T=this.context.mx,Q=this.ej,k=this.b9().layoutId;if(Y9(T.Qq.get(),!0)){var l={};T.Fs("mccr",(l.cid=Q,l.p_ac=k,l))}};
  9640. g.h.onCueRangeExit=function(){};
  9641. g.h.qN=function(T){this.q2==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&T>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.UK.get().uX(!0),this.ey(T))};
  9642. g.h.ey=function(T,Q){Dl.prototype.ey.call(this,T,Q===void 0?!1:Q);Q=Date.now()-this.dF;var k=T*1E3,l={contentCpn:this.Zs(),adCpn:QYu(this)};if(T-this.JR>=5){var v=Q<k*.4?0:1;LN(v,"n.k_",{metadata:l,bT:Q,IJ:Math.floor(k/1E3)});WN("NKDSTAT",v);if(Q=v===0)Q=FN(this.t3().clientMetadata,"metadata_type_player_bytes_slot_metadata"),Q===void 0&&MH("PlayerBytesSlotMetadata is not filled",this.t3(),this.b9()),Q=(Q==null?void 0:Q.qp)===!0;Q&&this.yp.get().bu("onAbnormalityDetected");this.JR=T}};g.S(lZ,jn);lZ.prototype.DG=function(T){this.q2!=="not_rendering"&&(T=PM(this,T),HM(this,T))};
  9643. lZ.prototype.Uc=function(){MH("Not used in SSAP")};
  9644. g.S(kJ,lZ);kJ.prototype.oK=function(T,Q){var k=this;this.J7(T,function(){if(oE(k.L,Q)){k.q2="rendering_stop_requested";k.layoutExitReason=Q;xT(k,Q);if(KF(k.context.Qq.get(),"html5_ssap_flush_at_stop_rendering")&&Q==="normal"){var l=FN(k.b9().clientMetadata,"metadata_type_video_length_seconds");k.ey(l,!0)}MM6(k)}})};
  9645. kJ.prototype.startRendering=function(T){M$(aL(this));ue(this,T)&&(nd(this),gXf(this,T))};g.S(vE,g.x);g.h=vE.prototype;g.h.init=function(){var T=FN(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=this);this.l9.get().addListener(this);this.M2.init();SCf([this.layout],this.l9.get());this.fW()};
  9646. g.h.fW=function(){var T=FN(this.M2.b9().clientMetadata,"metadata_type_player_vars");T?this.UH.get().addPlayerResponseForAssociation({playerVars:T}):(T=GZy(this.M2.b9()),this.UH.get().addPlayerResponseForAssociation({xr:T}))};
  9647. g.h.Os=function(){};
  9648. g.h.t3=function(){return this.slot};
  9649. g.h.b9=function(){return this.layout};
  9650. g.h.Fx=function(){this.M2.Fx()};
  9651. g.h.Nk=function(){this.M2.Nk()};
  9652. g.h.Ol=function(){MH("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")};
  9653. g.h.y4=function(T,Q){this.M2.y4(T,Q)};
  9654. g.h.HT=function(){};
  9655. g.h.vT=function(){};
  9656. g.h.PT=function(){};
  9657. g.h.Id=function(){};
  9658. g.h.KG=function(){};
  9659. g.h.ul=function(){};
  9660. g.h.Oh=function(){};
  9661. g.h.il=function(){};
  9662. g.h.Ry=function(){};
  9663. g.h.v1=function(){};
  9664. g.h.qN=function(T){this.M2.qN(T)};
  9665. g.h.onFullscreenToggled=function(T){this.M2.onFullscreenToggled(T)};
  9666. g.h.Gw=function(T){this.M2.Gw(T)};
  9667. g.h.UF=function(T){this.M2.UF(T)};
  9668. g.h.onVolumeChange=function(){this.M2.onVolumeChange()};
  9669. g.h.Hg=function(){};
  9670. g.h.gC=function(){};
  9671. g.h.zk=function(){};
  9672. g.h.J4=function(){return this.UK.get().getPresentingPlayerType()===2};
  9673. g.h.un=function(T){wZI({cpn:T,Fj:this.l9.get(),fS:!0});this.layout.layoutId===T&&(MEt(this.ZC,this.slot.slotId),this.Ka.y4(this.slot,this.layout))};
  9674. g.h.startRendering=function(T){if(T.layoutId!==this.layout.layoutId)return void MH("wrong layout");this.UK.get().addListener(this);oD(this.EH(),this);this.M2.startRendering(this.layout)};
  9675. g.h.DG=function(T){this.M2.DG(T)};
  9676. g.h.N2=function(T,Q,k){this.M2.N2(T,Q,k)};
  9677. g.h.release=function(){this.l9.get().removeListener(this);this.M2.release();CD6();vI(this.EH(),this)};
  9678. g.h.Mp=function(){return KF(this.params.context.Qq.get(),"html5_ssap_exit_without_waiting_for_transition")};
  9679. g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?MH("wrong layout"):this.Mp()&&this.M2.n7().currentState>=2||(this.M2.oK(this.layout,Q),T=KF(this.params.context.Qq.get(),"html5_ssap_pass_transition_reason")&&Q==="abandoned",this.J4()&&!T&&(KF(this.params.context.Qq.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Q)||MH("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Q})),this.iC.get().finishSegmentByCpn(this.layout.layoutId,
  9680. Kd(this.l9.get(),1).clientPlaybackNonce,WM(Q,this.params.context.Qq))),this.UK.get().removeListener(this),this.Mp()&&vj(this.M2.n7())&&this.Ka.N2(this.slot,this.layout,this.M2.n7().T))};
  9681. g.h.tL=function(T,Q,k){d1b({cpn:T,Fj:this.l9.get(),fS:!0});this.b9().layoutId!==T||KF(this.params.context.Qq.get(),"html5_ssap_pass_transition_reason")&&k===5||(this.M2.n7().currentState<2&&(T=$T(k,this.params.context.Qq),T==="error"?this.Ka.ke(this.slot,this.layout,new Jj("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:k},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):UW(this.CG,
  9682. this.layout,T)),KF(this.params.context.Qq.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Ka.N2(this.slot,this.layout,this.M2.n7().T))};g.S(Lw,g.x);g.h=Lw.prototype;g.h.t3=function(){return this.slot};
  9683. g.h.b9=function(){return this.layout};
  9684. g.h.Os=function(){};
  9685. g.h.oy=function(){return this.k_[this.x3]};
  9686. g.h.jf=function(){return this.x3};
  9687. g.h.Fx=function(T,Q){var k=this.oy();Q.layoutId!==gM(k,T,Q)?MH("pauseLayout for a PlayerBytes layout that is not currently active",T,Q):k.Fx()};
  9688. g.h.Nk=function(T,Q){var k=this.oy();Q.layoutId!==gM(k,T,Q)?MH("resumeLayout for a PlayerBytes layout that is not currently active",T,Q):k.Nk()};
  9689. g.h.Ol=function(T,Q){var k=this.oy();sYf(this,T,Q);SeH(k,T,Q)&&this.lV(k.t3(),k.b9(),"skipped")};
  9690. g.h.q8=function(T,Q){var k=this.oy();CPt(this);B3y(k,T,Q)&&(T=zB5(this,k,T,Q),T!==void 0&&(this.Zg()?MH("Should not happen. Should delete"):w8I(this,k.t3(),k.b9(),T)))};
  9691. g.h.Fn=function(T,Q){var k=Object.assign({},ql(this),{layoutId:Q.layoutId}),l=k.layoutId,v=k.fS;if(k.yl){var L={};gC(k.Fj,"wrse",(L.ec=l,L.is=v,L.ctp=q$(l),L))}m2(this.ih,T,Q)};
  9692. g.h.y4=function(T,Q){var k;(k=this.oy())==null||k.y4(T,Q)};
  9693. g.h.N2=function(T,Q,k){Q.layoutId===this.b9().layoutId&&(this.HV=!1,vI(this.EH(),this));var l;(l=this.oy())==null||l.N2(T,Q,k)};
  9694. g.h.qN=function(T){var Q;(Q=this.oy())==null||Q.qN(T)};
  9695. g.h.mW=function(T,Q,k){this.jf()===-1&&(this.callback.y4(this.slot,this.layout),this.x3++);var l=this.oy();l?(l.wP(T,Q,k),this.Zg()&&this.callback.ke(this.slot,this.layout,Q,k)):MH("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.jf()),layoutId:this.b9().layoutId})};
  9696. g.h.onFullscreenToggled=function(T){var Q;(Q=this.oy())==null||Q.onFullscreenToggled(T)};
  9697. g.h.Gw=function(T){var Q;(Q=this.oy())==null||Q.Gw(T)};
  9698. g.h.UF=function(T){var Q;(Q=this.oy())==null||Q.UF(T)};
  9699. g.h.onVolumeChange=function(){var T;(T=this.oy())==null||T.onVolumeChange()};
  9700. g.h.lI=function(T,Q,k){ID(this.ih,T,Q,k)};
  9701. g.h.LT=function(T){T.startRendering(T.b9())};
  9702. g.h.init=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=this);if(this.k_.length<1)throw new F("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.k_.length)});if(T=FN(this.b9().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))T.current=this;T=g.B(this.k_);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.init(),eZ5(this.ih,this.slot,Q.b9()),Fb5(this.ih,this.slot,Q.b9());
  9703. if(this.Zg())for(this.l9.get().addListener(this),SCf(hBX(this),this.l9.get()),T=hBX(this),T=g.B(T),Q=T.next();!Q.done;Q=T.next())this.fW(Q.value)};
  9704. g.h.fW=function(T){var Q=FN(T.clientMetadata,"metadata_type_player_vars");Q?(T.layoutType!=="LAYOUT_TYPE_MEDIA"&&MH("Non-video ad contains playerVars",this.slot,T),this.UH.get().addPlayerResponseForAssociation({playerVars:Q})):(T=GZy(T),this.UH.get().addPlayerResponseForAssociation({xr:T}))};
  9705. g.h.release=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=null);if(T=FN(this.b9().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))T.current=null;T=g.B(this.k_);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,E_f(this.ih,this.slot,Q.b9()),Q.release();this.Zg()&&(this.l9.get().removeListener(this),CD6())};
  9706. g.h.J7=function(T){return T.layoutId!==this.b9().layoutId?(this.callback.ke(this.t3(),T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.b9().layoutId+("and LayoutType: "+this.b9().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
  9707. g.h.ZX=function(){this.UK.get().addListener(this);oD(this.EH(),this)};
  9708. g.h.DG=function(T){if(T.state.isError()){var Q,k;this.mW((Q=T.state.ge)==null?void 0:Q.errorCode,new Jj("There was a player error during this media layout.",{playerErrorCode:(k=T.state.ge)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Q=this.oy())&&Q.DG(T)};
  9709. g.h.Zg=function(){var T=FN(this.t3().clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(MH("Expected SSAP eligibility in PlayerBytes slots",this.t3(),this.b9()),!1):this.Qq.get().Zg(T)};
  9710. g.h.zk=function(){};
  9711. g.h.HT=function(){};
  9712. g.h.vT=function(){};
  9713. g.h.PT=function(){};
  9714. g.h.Id=function(){};
  9715. g.h.KG=function(){};
  9716. g.h.ul=function(){};
  9717. g.h.Oh=function(){};
  9718. g.h.il=function(){};
  9719. g.h.Ry=function(){};
  9720. g.h.v1=function(){};
  9721. g.h.Hg=function(){};
  9722. g.h.gC=function(){};
  9723. g.S(RN,Lw);g.h=RN.prototype;g.h.im=function(T,Q,k){this.lV(T,Q,k)};
  9724. g.h.Y8=function(T,Q){this.lV(T,Q,"error")};
  9725. g.h.lV=function(T,Q,k){var l=this;X8b(this,T,Q,k,function(){Ml(l,l.jf()+1)})};
  9726. g.h.startRendering=function(T){this.J7(T)&&(this.ZX(),LOf(this.eV.get()),Z4y(this.Qq.get())||FO5(this.UK.get()),this.jf()===-1&&Ml(this,this.jf()+1))};
  9727. g.h.oK=function(T,Q){var k=this;this.HV=!0;this.jf()===this.k_.length?this.callback.N2(this.slot,this.layout,Q):(T=this.oy(),T.oK(T.b9(),Q),this.E8=function(){k.callback.N2(k.slot,k.layout,Q)});
  9728. this.UK.get().U.WJ();M95(this.UH.get(),{});T=lI(this.UK.get(),1);T.isPaused()&&!g.J(T,2)&&this.UK.get().playVideo();this.UK.get().removeListener(this);this.HV&&dHC(this)};
  9729. g.h.tL=function(){};
  9730. g.h.un=function(){};
  9731. g.h.XV=function(){};
  9732. g.S(ZY,Lw);g.h=ZY.prototype;g.h.im=function(T,Q,k){T=Object.assign({},ql(this),{layoutId:Q.layoutId,layoutExitReason:k});Q=T.layoutId;k=T.layoutExitReason;var l={};gC(T.Fj,"prse",(l.xc=Q,l.ler=k,l.ctp=q$(Q),l))};
  9733. g.h.Y8=function(){MH("onSubLayoutError in SSAP")};
  9734. g.h.lV=function(){MH("exitSubLayoutAndPlayNext in SSAP")};
  9735. g.h.oy=function(){return this.Au};
  9736. g.h.jf=function(){var T=this;return this.k_.findIndex(function(Q){var k;return Q.b9().layoutId===((k=T.Au)==null?void 0:k.b9().layoutId)})};
  9737. g.h.LT=function(T){g3(this.Au===void 0,"replacing another adapter");this.Au=T;T.startRendering(T.b9())};
  9738. g.h.lI=function(T,Q,k){ID(this.ih,T,Q,k);var l;g3(Q.layoutId===((l=this.Au)==null?void 0:l.b9().layoutId),"currentAdapter does not match exiting layout",{slot:T?"slot: "+T.slotType:"",subLayout:qH(Q)})&&(this.Au=void 0)};
  9739. g.h.release=function(){Lw.prototype.release.call(this);g3(this.Au===void 0,"currentAdapter is still active during release");this.Au=void 0};
  9740. g.h.J4=function(){return this.UK.get().getPresentingPlayerType()===2};
  9741. g.h.oK=function(T,Q){function k(){fw(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Q)||MH("Composite stopRendering: Unexpected layout exit reason",this.slot,T,{layoutExitReason:Q}))}
  9742. function l(){this.Au&&Gn(this,this.Au,Q);if(this.J4()&&(!fw(this)||Q!=="abandoned")){k.call(this);var L;var q=((L=this.l9.get().U.getVideoData())==null?void 0:L.clientPlaybackNonce)||"";L=Kd(this.l9.get(),1).clientPlaybackNonce;this.iC.get().finishSegmentByCpn(q,L,WM(Q,this.Qq))}N3I(this,Q)}
  9743. function v(){if(this.Au){var L=this.Au;L.n7().currentState<2&&L.oK(L.b9(),Q);L=fw(this)&&Q==="abandoned";this.J4()&&!L&&(k.call(this),this.iC.get().finishSegmentByCpn(this.Au.b9().layoutId,Kd(this.l9.get(),1).clientPlaybackNonce,WM(Q,this.Qq)))}}
  9744. g3(T.layoutId===this.b9().layoutId,"StopRendering for wrong layout")&&oE(this.FD.S,Q)&&(this.Mp()?l.call(this):v.call(this))};
  9745. g.h.N2=function(T,Q,k){Lw.prototype.N2.call(this,T,Q,k);Q.layoutId===this.b9().layoutId&&this.UK.get().removeListener(this)};
  9746. g.h.Zs=function(){return Kd(this.l9.get(),1).clientPlaybackNonce};
  9747. g.h.tL=function(T,Q,k){d1b(Object.assign({},ql(this),{cpn:T}));if(!fw(this)||k!==5)if(this.Mp()){if(this.Au&&this.Au.b9().layoutId!==Q){var l=this.Au.b9().layoutId;l!==T&&MH("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:l,exitingCpn:T,enteringCpn:Q});T=$T(k,this.Qq);Gn(this,this.Au,T)}else this.Au&&MH("onClipExited: active layout is entering again");Q===this.Zs()&&bNf(this,k)}else{if(this.Au&&this.Au.b9().layoutId===T)A$J(this,this.Au,k);else{var v;MH("Exiting cpn does not match active cpn",
  9748. this.slot,(l=this.Au)==null?void 0:l.b9(),{exitingCpn:T,transitionReason:k,activeCpn:(v=this.Au)==null?void 0:v.b9().layoutId})}Q===this.Zs()&&(this.Au!==void 0&&(MH("active adapter is not properly exited",this.slot,this.layout,{activeLayout:qH(this.Au.b9())}),A$J(this,this.Au,k)),bNf(this,k),N3I(this,this.FD.S.T))}};
  9749. g.h.Mp=function(){return KF(this.Qq.get(),"html5_ssap_exit_without_waiting_for_transition")};
  9750. g.h.startRendering=function(T){this.J7(T)&&(T=this.FD,g3(T.T===1,"tickStartRendering: state is not initial"),T.T=2,this.ZX())};
  9751. g.h.un=function(T){wZI(Object.assign({},ql(this),{cpn:T}));var Q=this.k_.find(function(k){return k.b9().layoutId===T});
  9752. Q?(this.FD.T!==2&&(MEt(this.ZC,this.slot.slotId),g3(this.FD.T===2,"Expect started"),this.callback.y4(this.slot,this.layout)),this.LT(Q),m2(this.ih,this.slot,Q.b9())):r$y(this,T)};
  9753. g.h.Ol=function(T,Q){sYf(this,T,Q);var k=this.oy();k?SeH(k,T,Q)&&c$5(this,"skipped"):DH5(this,"onSkipRequested")};
  9754. g.h.q8=function(T,Q){var k;a:{if(k=this.oy()){if(CPt(this),B3y(k,T,Q)&&(T=zB5(this,k,T,Q),T!==void 0)){k={rG:k,x_k:this.k_[T]};break a}}else DH5(this,"SkipWithAdPodSkip");k=void 0}if(T=k)k=T.rG,Q=T.x_k,T=k.b9().layoutId,this.Mp()?Gn(this,k,"skipped"):k.oK(k.b9(),"skipped"),k=Q.b9().layoutId,this.iC.get().finishSegmentByCpn(T,k,WM("skipped",this.Qq))};
  9755. g.h.Fn=function(){MH("Not used in html5_ssap_fix_layout_exit")};
  9756. g.h.DG=function(T){var Q;(Q=this.oy())==null||Q.DG(T)};
  9757. g.h.mW=function(){MH("Not used in html5_ssap_fix_layout_exit")};
  9758. g.h.XV=function(T,Q,k){var l;if(((l=this.oy())==null?void 0:l.b9().layoutId)!==Q.layoutId)return void MH("requestToExitSubLayout: wrong layout");c$5(this,k)};g.S(m1,g.x);g.h=m1.prototype;g.h.t3=function(){return this.M2.t3()};
  9759. g.h.b9=function(){return this.M2.b9()};
  9760. g.h.init=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=this);this.eA()};
  9761. g.h.eA=function(){this.M2.init()};
  9762. g.h.release=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=null);this.oT()};
  9763. g.h.oT=function(){this.M2.release()};
  9764. g.h.Fx=function(){this.M2.Fx()};
  9765. g.h.Nk=function(){this.M2.Nk()};
  9766. g.h.Ol=function(T,Q){MH("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.t3(),this.b9(),{requestingSlot:T,requestingLayout:Q})};
  9767. g.h.startRendering=function(T){T.layoutId!==this.b9().layoutId?this.callback.ke(this.t3(),T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.b9().layoutId+("and LayoutType: "+this.b9().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.UK.get().addListener(this),oD(this.EH(),this),LOf(this.eV.get()),Z4y(this.Qq.get())||FO5(this.UK.get()),this.M2.startRendering(T))};
  9768. g.h.oK=function(T,Q){this.HV=!0;this.M2.oK(T,Q);this.UK.get().U.WJ();M95(this.UH.get(),{});T=lI(this.UK.get(),1);T.isPaused()&&!g.J(T,2)&&this.UK.get().playVideo();this.UK.get().removeListener(this);this.HV&&this.M2.z4()};
  9769. g.h.y4=function(T,Q){this.M2.y4(T,Q)};
  9770. g.h.N2=function(T,Q,k){Q.layoutId===this.b9().layoutId&&(this.HV=!1,vI(this.EH(),this));this.M2.N2(T,Q,k);Q.layoutId===this.b9().layoutId&&YJ(this.eV.get())};
  9771. g.h.qN=function(T){this.M2.qN(T)};
  9772. g.h.DG=function(T){if(T.state.isError()){var Q,k;this.mW((Q=T.state.ge)==null?void 0:Q.errorCode,new Jj("There was a player error during this media layout.",{playerErrorCode:(k=T.state.ge)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.M2.DG(T)};
  9773. g.h.mW=function(T,Q,k){this.M2.wP(T,Q,k)};
  9774. g.h.onFullscreenToggled=function(T){this.M2.onFullscreenToggled(T)};
  9775. g.h.Gw=function(T){this.M2.Gw(T)};
  9776. g.h.UF=function(T){this.M2.UF(T)};
  9777. g.h.onVolumeChange=function(){this.M2.onVolumeChange()};
  9778. g.h.zk=function(){};
  9779. g.h.HT=function(){};
  9780. g.h.vT=function(){};
  9781. g.h.PT=function(){};
  9782. g.h.Id=function(){};
  9783. g.h.KG=function(){};
  9784. g.h.ul=function(){};
  9785. g.h.Oh=function(){};
  9786. g.h.il=function(){};
  9787. g.h.Ry=function(){};
  9788. g.h.v1=function(){};
  9789. g.h.Hg=function(){};
  9790. g.h.gC=function(){};g.h=IN.prototype;g.h.t3=function(){return this.slot};
  9791. g.h.b9=function(){return this.layout};
  9792. g.h.init=function(){this.DC.get().addListener(this);this.UK.get().addListener(this);var T=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Q=FN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var k=this.DC.get().DF.slice(-1)[0];k!==void 0&&(T=k.startSecs*1E3,Q=(k.startSecs+k.bf)*1E3)}this.iA(T,Q);var l;k=(l=this.l9.get().Vh)==null?void 0:l.clientPlaybackNonce;l=this.layout.ZP.adClientDataEntry;hQ(this.Vq.get(),{daiStateTrigger:{filledAdsDurationMs:Q-T,contentCpn:k,
  9793. adClientData:l}});var v=this.DC.get();v=nXI(v.L,T,Q);v!==null&&(hQ(this.Vq.get(),{daiStateTrigger:{filledAdsDurationMs:v-T,contentCpn:k,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:l}}),this.iC.get().Fc(v,Q))};
  9794. g.h.release=function(){this.oT();this.DC.get().removeListener(this);this.UK.get().removeListener(this)};
  9795. g.h.startRendering=function(){this.Uc();this.callback.y4(this.slot,this.layout)};
  9796. g.h.oK=function(T,Q){this.MS(Q);this.driftRecoveryMs!==null&&(sW(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(KPt(this)-FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.UK.get().U.As()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.N2(this.slot,this.layout,Q)};
  9797. g.h.mI=function(){return!1};
  9798. g.h.OO=function(T){var Q=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=FN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");T*=1E3;if(Q<=T&&T<k){var l;hQ(this.Vq.get(),{daiStateTrigger:{filledAdsDurationMs:T-Q,contentCpn:(l=this.l9.get().Vh)==null?void 0:l.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.ZP.adClientDataEntry}});this.iC.get().Fc(T,k)}};
  9799. g.h.qN=function(T){this.Jt(T);T=Um(this.UK.get(),2,!0);if(yN(this.N.get(),this.layout.layoutId)){var Q=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=this.driftRecoveryMs;if(!(k===null||T*1E3<Q+k)){this.driftRecoveryMs=null;var l=KPt(this),v=this.UK.get().U.As(),L=Math.min(T+v,l/1E3);L<=T?sW(this,{driftRecoveryMs:k.toString(),breakDurationMs:Math.round(l-Q).toString(),driftFromHeadMs:Math.round(v*1E3).toString()}):(sW(this,{driftRecoveryMs:k.toString(),breakDurationMs:Math.round(l-
  9800. Q).toString(),driftFromHeadMs:Math.round(v*1E3).toString(),appliedDriftRecoveryMs:Math.round(T*1E3-Q).toString(),destinationMs:Math.round(L*1E3-Q).toString()}),this.UK.get().U.seekTo(L,void 0,void 0,1))}}};
  9801. g.h.Gw=function(){};
  9802. g.h.zk=function(){};
  9803. g.h.UF=function(){};
  9804. g.h.onVolumeChange=function(){};
  9805. g.h.Hg=function(){};
  9806. g.h.gC=function(){};g.S(Sn,IN);g.h=Sn.prototype;g.h.iA=function(T,Q){this.l9.get().addListener(this);if(this.Y){var k=T,l=0,v=[];T=this.L.slice();T.sort(function(L,q){return FN(L.b9().clientMetadata,"metadata_type_media_sub_layout_index")-FN(q.b9().clientMetadata,"metadata_type_media_sub_layout_index")});
  9807. T.forEach(function(L){var q=k,Y=FN(L.b9().clientMetadata,"metadata_type_video_length_seconds"),U=Math.min(q+Y*1E3,Q);k=U;l++;v.push(Y);L.iA(q,U)})}else this.L.forEach(function(L){L.init()});
  9808. this.S!=null&&Cw(this.Vq.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.S)};
  9809. g.h.oT=function(){this.l9.get().removeListener(this);this.T=null;this.L.forEach(function(T){T.release()})};
  9810. g.h.Uc=function(){if(this.T)MH("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.S)});else{var T,Q=(T=this.l9.get().Vh)==null?void 0:T.layoutId;PPH(this,Q)}};
  9811. g.h.MS=function(T){var Q,k,l,v;(l=this.T)==null||(v=l.UU)==null||v.oK((Q=this.T)==null?void 0:(k=Q.UU)==null?void 0:k.b9(),T);this.T=null};
  9812. g.h.Os=function(T){var Q=T.videoId;T=T.layoutId;if(Q==="nPpU29QrbiU"){var k,l;Cw(this.Vq.get(),"ads_ssmplra_opdcs","vid."+Q+";lid."+this.layout.layoutId+";smlid."+this.S+";slrs."+!!this.T+";slrslid."+((k=this.T)==null?void 0:(l=k.UU)==null?void 0:l.b9().layoutId))}if(this.T){var v;if(((v=this.T.UU)==null?void 0:v.b9().layoutId)===T)MH("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:T});else{var L,q;(q=this.T.UU)==null||q.oK((L=this.T.UU)==null?void 0:L.b9(),"normal");
  9813. PPH(this,T)}}};
  9814. g.h.tL=function(){};
  9815. g.h.un=function(){};
  9816. g.h.Jt=function(){};
  9817. g.h.DG=function(){};
  9818. g.h.onFullscreenToggled=function(){};g.h=y$C.prototype;g.h.t3=function(){return this.slot};
  9819. g.h.b9=function(){return this.layout};
  9820. g.h.n7=function(){MH("Should not get exitStateMachine for DAI");return new lk};
  9821. g.h.iA=function(T,Q){var k=this;FN(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.lC=HNT(this.slot,this.layout,FN(this.layout.clientMetadata,"metadata_type_player_vars"),T,Q,FN(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.iC.get(),this.fU.get(),function(){var l=Object,v=l.assign,L=dM(k.layout);var q=FN(k.slot.clientMetadata,"metadata_type_fulfilled_layout")||k.slot.fulfilledLayout;var Y=FN(q.clientMetadata,"metadata_type_sub_layouts")||
  9822. q.h_;q=Object.assign({},dM(q),{adPlacementConfig:FN(q.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(Y||[]).map(dM)});return v.call(l,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},L,{compositeLayout:q,hasSurveyOverlay:pp(k.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:FN(k.layout.clientMetadata,"metadata_type_survey_overlay")})},this.Vq.get());
  9823. this.UK.get().addListener(this);T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds");Q=FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,{Tm:Q,n6:T,listener:this});eZ5(this.callback,this.slot,this.layout);Fb5(this.callback,this.slot,this.layout)};
  9824. g.h.init=function(){var T=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Q=FN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.iA(T,Q)};
  9825. g.h.release=function(){this.UK.get().removeListener(this);UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId);this.Qq.get();E_f(this.callback,this.slot,this.layout);if(I$t(this.Qq.get())){if(this.ej){var T;Cw(this.Vq.get(),"ads_ccru","acpn."+((T=Kd(this.l9.get(),2))==null?void 0:T.clientPlaybackNonce)+";cr."+this.ej);this.Xk.get().removeCueRange(this.ej)}this.ej=void 0}};
  9826. g.h.startRendering=function(){var T=this;pp(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Cw(this.Vq.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.q2)MH("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:pp(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:FN(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.q2={gy:null,Oz:!1};this.T=!1;if(Uk6(this.Qq.get())){var Q;this.adCpn=
  9827. (Q=Kd(this.l9.get(),2))==null?void 0:Q.clientPlaybackNonce}this.Qq.get().U.G().experiments.Wd("html5_disable_sodar_for_tvhtml5")||tMg(this.slot,this.layout,this.q_.get());UP(this.layout.EG)&&zsH(this.kB.get(),this.layout.layoutId);this.n_.Wx("start");if(tC(this.Qq.get())){Q=lI(this.UK.get());var k=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=Um(this.UK.get(),2,!1);ONf(this.n_,this.q2.gy,Q,k,l,function(){return void VMy(T,"teois")},Kd(this.l9.get(),1).lf)}m2(this.callback,
  9828. this.slot,this.layout);
  9829. I$t(this.Qq.get())&&(this.adCpn||MH("Media layout confirmed started, but ad CPN not set."),this.mp());pp(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Cw(this.Vq.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
  9830. g.h.oK=function(T,Q){var k=this;if(this.q2){if(tC(this.Qq.get()))if(this.lC===null)MH("Unexpected media sub layout exited without a timeline playback ID");else{T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds");var l=Rw(this.UK.get(),this.lC);Uk6(this.Qq.get())&&this.adCpn===void 0&&MH("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:FN(this.layout.clientMetadata,"metadata_type_content_cpn")});x8C(this.n_,l,this.adCpn);zn(this.n_,null,this.q2.gy,T,l,Kd(this.l9.get(),
  9831. 1).lf,function(v){return void iNy(k,v,"fue")},Uk6(this.Qq.get()),I$t(this.Qq.get()))}this.q2=null;
  9832. ID(this.callback,this.slot,this.layout,this.T&&this.Qq.get().U.G().V("dai_layout_log_skip_exit_reason")?"skipped":Q)}else MH("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
  9833. g.h.onCueRangeEnter=function(T){if(T!==this.ej)MH("Received CueRangeEnter signal for unknown layout.",this.t3(),this.b9(),{cueRangeId:T});else if(this.adCpn===void 0&&MH("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:FN(this.layout.clientMetadata,"metadata_type_content_cpn")}),SB(this.n_,"impression")&&tC(this.Qq.get()))if(this.lC===null)MH("Unexpected cue range enter without a timeline playback ID");else{var Q=Rw(this.UK.get(),this.lC),k;Cw(this.Vq.get(),"ads_ccre","cpn."+
  9834. FN(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=Kd(this.l9.get(),2))==null?void 0:k.clientPlaybackNonce)+";cr."+T+";cts."+Q);this.Xk.get().removeCueRange(this.ej);this.ej=void 0;this.n_.Wx("complete")}};
  9835. g.h.onCueRangeExit=function(){};
  9836. g.h.wP=function(){};
  9837. g.h.z4=function(){};
  9838. g.h.qN=function(T){var Q=this;if(this.q2){if(SB(this.n_,"impression")){var k=lI(this.UK.get()),l=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds");Xk(this.n_,k,T,this.q2.gy,l,function(v){return void iNy(Q,v,"tpaqe")})}this.q2.gy=T}};
  9839. g.h.DG=function(T){var Q=this;if(this.q2){tC(this.Qq.get())||this.q2.Oz||(this.q2.Oz=!0,T=new g.YX(T.state,new g.Cd));var k=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=Um(this.UK.get(),2,!1);BE(this.n_,this.q2.gy,T,k,l,Kd(this.l9.get(),1).lf,!tC(this.Qq.get()),function(){return void VMy(Q,"teosc")})}};
  9840. g.h.onFullscreenToggled=function(T){p8t(this.n_,T)};
  9841. g.h.Gw=function(){};
  9842. g.h.zk=function(){};
  9843. g.h.UF=function(){};
  9844. g.h.Ol=function(T,Q){var k;T=this.Vq.get();var l="ti."+SB(this.n_,"impression")+";ts."+SB(this.n_,"skip")+";hp.",v;var L=!((v=this.n_.L.get("skip"))==null||!v.length);Cw(T,"ads_dsr",l+L+";cpn."+FN(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=Kd(this.l9.get(),2))==null?void 0:k.clientPlaybackNonce)+";sl."+(FN(Q.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));SB(this.n_,"impression")&&this.n_.Wx("skip");Q=Kd(this.l9.get(),1).lf;this.T=!0;
  9845. this.iC.get().EY(Q)||(this.T=!1,MH("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
  9846. g.h.onVolumeChange=function(){};
  9847. g.h.y4=function(){};
  9848. g.h.N2=function(){};
  9849. g.h.Fx=function(){};
  9850. g.h.Nk=function(){};
  9851. g.h.GK=function(){WPI(this.n_)};
  9852. g.h.GM=function(){$H5(this.n_)};
  9853. g.h.KH=function(){J$f(this.n_)};
  9854. g.h.PV=function(){eB5(this.n_)};
  9855. g.h.bq=function(){FPT(this.n_)};
  9856. g.h.IA=function(){EXg(this.n_)};
  9857. g.h.Hg=function(){};
  9858. g.h.gC=function(){};
  9859. g.h.mp=function(){if(!this.ej){this.ej="adcompletioncuerange:"+this.b9().layoutId;this.Xk.get().addCueRange(this.ej,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn);var T;Cw(this.Vq.get(),"ads_ccr","acpn."+((T=Kd(this.l9.get(),2))==null?void 0:T.clientPlaybackNonce)+";cr."+this.ej)}};g.S(Nl,IN);g.h=Nl.prototype;
  9860. g.h.iA=function(){var T=this;FN(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var Q=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=FN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.lC=HNT(this.slot,this.layout,FN(this.layout.clientMetadata,"metadata_type_player_vars"),Q,k,FN(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.iC.get(),this.fU.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:Q,
  9861. exitMs:k,adPlacementConfig:FN(T.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.Vq.get());
  9862. var l=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),v=FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,{Tm:v,n6:l,listener:this})};
  9863. g.h.oT=function(){UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId)};
  9864. g.h.Uc=function(){var T=this;if(this.q2)MH("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.q2={gy:null,Oz:!1},tMg(this.slot,this.layout,this.q_.get()),this.n_.Wx("start"),tC(this.Qq.get())){var Q=lI(this.UK.get()),k=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=Um(this.UK.get(),2,!1);ONf(this.n_,this.q2.gy,Q,k,l,function(){return void TSt(T,"teois")},!1)}};
  9865. g.h.MS=function(){var T=this;if(this.q2){if(tC(this.Qq.get()))if(this.lC===null)MH("Unexpected single media layout exited without a timeline playback ID");else{var Q=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),k=Rw(this.UK.get(),this.lC);x8C(this.n_,k);zn(this.n_,null,this.q2.gy,Q,k,!1,function(l){return void Qou(T,l,"fue")})}this.q2=null}else MH("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
  9866. g.h.Jt=function(T){var Q=this;if(this.q2){if(SB(this.n_,"impression")){var k=lI(this.UK.get()),l=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds");Xk(this.n_,k,T,this.q2.gy,l,function(v){return void Qou(Q,v,"tpaqe")})}this.q2.gy=T}};
  9867. g.h.DG=function(T){var Q=this;if(this.q2){tC(this.Qq.get())||this.q2.Oz||(this.q2.Oz=!0,T=new g.YX(T.state,new g.Cd));var k=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=Um(this.UK.get(),2,!1);BE(this.n_,this.q2.gy,T,k,l,!1,!tC(this.Qq.get()),function(){return void TSt(Q,"teosc")})}};
  9868. g.h.onFullscreenToggled=function(T){p8t(this.n_,T)};
  9869. g.h.GK=function(){WPI(this.n_)};
  9870. g.h.GM=function(){$H5(this.n_)};
  9871. g.h.KH=function(){J$f(this.n_)};
  9872. g.h.PV=function(){eB5(this.n_)};
  9873. g.h.bq=function(){FPT(this.n_)};
  9874. g.h.IA=function(){EXg(this.n_)};AQ.prototype.build=function(T,Q,k,l){if(pp(k.clientMetadata,"metadata_type_dai")){var v=FN(l.clientMetadata,"metadata_type_ad_placement_config");xp(l,{YM:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),zH:["LAYOUT_TYPE_MEDIA"]})&&v!==void 0?(v=new fB(l.EG,this.Vq,v,l.layoutId,null),v=new Nl(T,k,l,this.l9,this.iC,this.fU,this.DC,this.UK,v,this.Vq,this.q_,
  9875. this.T,this.kB,this.Qq)):v=null;if(v)return v;a:{var L,q=(L=l.h_)!=null?L:FN(l.clientMetadata,"metadata_type_sub_layouts");v=FN(l.clientMetadata,"metadata_type_ad_placement_config");if(xp(l,{YM:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],zH:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&q!==void 0&&v!==void 0){L=[];q=g.B(q);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var U=FN(Y.clientMetadata,"metadata_type_media_sub_layout_index");if(!xp(Y,{YM:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
  9876. zH:["LAYOUT_TYPE_MEDIA"]})||U===void 0){T=null;break a}U=new fB(Y.EG,this.Vq,v,Y.layoutId,U);L.push(new y$C(Q,k,Y,this.iC,U,this.UK,this.fU,this.kB,this.q_,this.Qq,this.Vq,this.l9,this.Xk))}Q=new fB(l.EG,this.Vq,v,l.layoutId);T=new Sn(T,k,l,this.l9,this.iC,this.DC,this.UK,Q,this.Vq,this.T,L)}else T=null}if(T)return T}else if(T=u85(T,Q,k,l,this.EH,this.ZC,this.g8,this.Vq,this.kB,this.q_,this.UH,this.l9,this.UK,this.B1,this.Xk,this.eV,this.yp,this.er,this.Og,this.Qq,this.iC,this.context,this.QD))return T;
  9877. throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};bZ.prototype.build=function(T,Q,k,l){if(T=u85(T,Q,k,l,this.EH,this.ZC,this.g8,this.Vq,this.kB,this.q_,this.UH,this.l9,this.UK,this.B1,this.Xk,this.eV,this.yp,this.er,this.Og,this.Qq,this.iC,this.context,this.QD))return T;throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.S(jo5,lD);g.S(rM,LB);rM.prototype.startRendering=function(T){var Q=qP(this.n_),k={adsClientData:this.layout.ZP};this.T.push(new jo5(FN(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),Q,this.b9().layoutId,k));LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)};
  9878. rM.prototype.xe=function(T,Q){Q!==this.layout.layoutId||T!=="survey-interstitial"&&T!=="button"||((T=FN(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?T.Ol(this.slot,this.layout):MH("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
  9879. rM.prototype.EK=function(){LB.prototype.EK.call(this)};var DY=new g.Ji(320,63);g.S(nw,lD);g.S(Kw,LB);g.h=Kw.prototype;g.h.qN=function(){};
  9880. g.h.DG=function(){};
  9881. g.h.onFullscreenToggled=function(){};
  9882. g.h.Gw=function(T){T&&vC(this.Y,this.layout)};
  9883. g.h.zk=function(){};
  9884. g.h.UF=function(T){var Q=uZ(this.layout);if(this.C=aN(T,esC(this.UK.get())))Q.onErrorCommand&&this.er.get().executeCommand(Q.onErrorCommand,this.layout.layoutId),vC(this.Y,this.layout)};
  9885. g.h.onVolumeChange=function(){};
  9886. g.h.v0=function(){return this.b9().layoutId};
  9887. g.h.sL=function(){return this.C};
  9888. g.h.xe=function(T){this.N.xe(T);T==="in_video_overlay_close_button"&&vC(this.Y,this.layout)};
  9889. g.h.Yk=function(T){T==="invideo-overlay"&&vC(this.Y,this.layout)};
  9890. g.h.wr=function(){this.N.wr()};
  9891. g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T);this.B.gS=this};
  9892. g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);Vs(this.B,this)};
  9893. g.h.init=function(){LB.prototype.init.call(this);xk5(this.Vq.get(),this);this.UK.get().addListener(this);this.T.push(new nw(uZ(this.layout),qP(this.n_),this.layout.layoutId,{adsClientData:this.layout.ZP}))};
  9894. g.h.release=function(){LB.prototype.release.call(this);this.UK.get().removeListener(this);P6X(this.Vq.get(),this)};
  9895. g.h.Hg=function(){};
  9896. g.h.gC=function(){};g.S(xJ,LB);g.h=xJ.prototype;g.h.init=function(){LB.prototype.init.call(this);xk5(this.Vq.get(),this);this.UK.get().addListener(this);this.T.push(new nw(uZ(this.layout),qP(this.n_),this.layout.layoutId,{adsClientData:this.layout.ZP}))};
  9897. g.h.wr=function(){this.N.wr()};
  9898. g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T);this.B.gS=this};
  9899. g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);Vs(this.B,this)};
  9900. g.h.xe=function(T){this.N.xe(T);T==="in_video_overlay_close_button"&&vC(this.Y,this.layout)};
  9901. g.h.iY=function(T){if(T==="invideo-overlay"){T=geg(this.j,this.layout);T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q.value.stop()}};
  9902. g.h.Yk=function(T){T==="invideo-overlay"&&vC(this.Y,this.layout)};
  9903. g.h.ma=function(T){if(T==="invideo-overlay"){T=geg(this.j,this.layout);T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q.value.start()}};
  9904. g.h.qN=function(){};
  9905. g.h.DG=function(){};
  9906. g.h.onFullscreenToggled=function(){};
  9907. g.h.Gw=function(T){T&&vC(this.Y,this.layout)};
  9908. g.h.zk=function(){};
  9909. g.h.UF=function(T){var Q=uZ(this.layout),k=Q.contentSupportedRenderer.imageOverlayAdContentRenderer,l=esC(this.UK.get());a:{k=k.image;k=k===void 0?null:k;if(k!=null&&(k=k.thumbnail,k!=null&&k.thumbnails!=null&&k.thumbnails.length!=0&&k.thumbnails[0].width!=null&&k.thumbnails[0].height!=null)){k=new g.Ji(k.thumbnails[0].width||0,k.thumbnails[0].height||0);break a}k=new g.Ji(0,0)}if(this.C=aN(T,l,k))Q.onErrorCommand&&this.er.get().executeCommand(Q.onErrorCommand,this.layout.layoutId),vC(this.Y,this.layout)};
  9910. g.h.onVolumeChange=function(){};
  9911. g.h.v0=function(){return this.b9().layoutId};
  9912. g.h.sL=function(){return this.C};
  9913. g.h.release=function(){LB.prototype.release.call(this);this.UK.get().removeListener(this);P6X(this.Vq.get(),this)};
  9914. g.h.Hg=function(){};
  9915. g.h.gC=function(){};PE.prototype.xe=function(T){T==="ad-info-hover-text-button"&&((this.T=this.UK.get().zz(1))||this.UK.get().pauseVideo())};
  9916. PE.prototype.wr=function(){this.T||this.UK.get().resumeVideo(1)};g.S(vsC,lD);g.S(HE,LB);g.h=HE.prototype;g.h.init=function(){LB.prototype.init.call(this);this.UK.get().addListener(this)};
  9917. g.h.startRendering=function(T){var Q=FN(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.T.push(new vsC(Q,this.layout.layoutId,{adsClientData:this.layout.ZP}));LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)};
  9918. g.h.y4=function(){};
  9919. g.h.xe=function(T,Q){Q!==this.layout.layoutId||T!=="ad-info-icon-button"&&T!=="ad-info-dialog-close-button"||((Q=FN(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?T==="ad-info-icon-button"?Q.Fx(this.slot,this.layout):T==="ad-info-dialog-close-button"&&Q.Nk(this.slot,this.layout):MH("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:T}))};
  9920. g.h.UF=function(T){T.width<450&&vC(this.Y,this.layout)};
  9921. g.h.onVolumeChange=function(){};
  9922. g.h.qN=function(){};
  9923. g.h.onFullscreenToggled=function(){};
  9924. g.h.Gw=function(){};
  9925. g.h.zk=function(){};
  9926. g.h.DG=function(){};
  9927. g.h.Hg=function(){};
  9928. g.h.gC=function(){};
  9929. g.h.EK=function(){LB.prototype.EK.call(this)};
  9930. g.h.release=function(){LB.prototype.release.call(this);this.UK.get().removeListener(this)};LBf.prototype.build=function(T,Q,k,l){if(Q=V1(T,k,l,this.h6,this.UK,this.Vq,this.Y,this.T,this.Qq))return Q;if(xp(l,os5()))return new xJ(k,l,this.Vq,this.kB,this.h6,T,this.S,this.L,this.UK,this.er,this.Qq,this.T,new PE(this.UK));if(xp(l,lyb()))return new Kw(k,l,this.Vq,this.kB,this.h6,T,this.S,this.UK,this.er,this.Qq,this.T,new PE(this.UK));if(xp(l,{YM:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],zH:["LAYOUT_TYPE_SURVEY"]}))return new HE(k,l,T,this.h6,this.S,this.UK,this.Qq);if(xp(l,
  9931. {YM:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],zH:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new rM(k,l,T,this.h6,this.Vq);if(xp(l,m1f()))return new JM(k,l,T,this.h6,this.UK,this.Qq);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};qHH.prototype.build=function(T,Q,k,l){if(Q=V1(T,k,l,this.h6,this.UK,this.Vq,this.Y,this.T,this.Qq))return Q;if(xp(l,os5()))return new xJ(k,l,this.Vq,this.kB,this.h6,T,this.S,this.L,this.UK,this.er,this.Qq,this.T,new PE(this.UK));if(xp(l,lyb()))return new Kw(k,l,this.Vq,this.kB,this.h6,T,this.S,this.UK,this.er,this.Qq,this.T,new PE(this.UK));throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
  9932. };g.S(tQ,Wk);tQ.prototype.startRendering=function(T){Wk.prototype.startRendering.call(this,T);if(T.renderingContent?U1J(T,Kd(this.l9.get(),2)||void 0):FN(this.layout.clientMetadata,"metadata_ad_video_is_listed"))T=T.renderingContent?YCt(T,Kd(this.l9.get(),2)||void 0):FN(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.eR.get().U.tj("onAdMetadataAvailable",T)};MKC.prototype.build=function(T,Q,k,l){if(xp(l,gsX())||l.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.t(l.renderingContent,FS)!==void 0)return new tQ(T,k,l,this.h6,this.UK,this.Vq,this.S,this.eR,this.T,this.l9);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};YHJ.prototype.build=function(T,Q,k,l){if(xp(l,gsX()))return new tQ(T,k,l,this.h6,this.UK,this.Vq,this.S,this.eR,this.T,this.l9);if(T=V1(T,k,l,this.h6,this.UK,this.Vq,this.S,this.T,this.Qq))return T;throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};MA.prototype.clone=function(T){var Q=this;return new MA(function(){return Q.triggerId},T)};YK.prototype.clone=function(T){var Q=this;return new YK(function(){return Q.triggerId},T)};UR.prototype.clone=function(T){var Q=this;return new UR(function(){return Q.triggerId},T)};RB.prototype.clone=function(T){var Q=this;return new RB(function(){return Q.triggerId},T)};Zw.prototype.clone=function(T){var Q=this;return new Zw(function(){return Q.triggerId},T)};f7.prototype.clone=function(T){var Q=this;return new f7(function(){return Q.triggerId},T)};g.S(l1,g.x);var dgt={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
  9933. "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var Xu={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],uC:[],layoutExitUserInputSubmittedTriggers:[]};var YL={csd:1,oh9:2,EhH:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.S(Hh,g.x);g.h=Hh.prototype;g.h.aX=function(T){if(this.T)MH("Unexpected multiple fetch instructions for the current content");else{this.T=T;T=g.B(this.DC.get().DF);for(var Q=T.next();!Q.done;Q=T.next())p1(this,this.T,Q.value)}};
  9934. g.h.mI=function(T){if(!this.T){if(!this.Qq.get().U.G().V("high_ccv_client_side_caching_h5")){var Q;(Q=this.iC)==null||Q.get().eM(T.identifier)}return!1}p1(this,this.T,T);return!0};
  9935. g.h.OO=function(){};
  9936. g.h.yw=function(T){this.T&&this.T.contentCpn!==T&&(MH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:T,fetchInstructionsCpn:this.T.contentCpn}),this.T=null)};
  9937. g.h.v4=function(T){this.T&&this.T.contentCpn!==T&&MH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:T,fetchInstructionsCpn:this.T.contentCpn},!0);this.T=null};
  9938. g.h.EK=function(){g.x.prototype.EK.call(this);this.T=null};var XX=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],wuW=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.S($N,g.x);g.h=$N.prototype;g.h.y4=function(T,Q){var k=this;if(Q.layoutType==="LAYOUT_TYPE_MEDIA"&&(Wz(Q,this.B)||Wz(Q,wuW))){var l=Kd(this.l9.get(),2),v=this.Y(Q,l||void 0);v?kp(this.L.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var L=[KQb(k.T.get(),v.contentCpn,v.MA,function(q){return k.N(q.slotId,"core",v,Q0(k.dc.get(),q))},v.inPlayerSlotId)];
  9939. v.instreamAdPlayerUnderlayRenderer&&sg(k.Qq.get())&&L.push(ePJ(k,v,v.instreamAdPlayerUnderlayRenderer));return L}):MH("Expected MediaLayout to carry valid opportunity on entered",T,Q)}};
  9940. g.h.HT=function(){};
  9941. g.h.vT=function(){};
  9942. g.h.Id=function(){};
  9943. g.h.PT=function(){};
  9944. g.h.KG=function(){};
  9945. g.h.ul=function(){};
  9946. g.h.Oh=function(){};
  9947. g.h.il=function(){};
  9948. g.h.Ry=function(){};
  9949. g.h.v1=function(){};
  9950. g.h.N2=function(){};g.S(JC,g.x);JC.prototype.yw=function(T,Q,k,l,v,L,q){var Y=this,U=Kd(this.l9.get(),1);!YKC(this.Qq.get())&&U.LX?YF(this.UK.get()):(vzy(this.eV.get(),l),kp(this.S.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return vh(Y.T.get(),l,v,L,T,Q,q,U,"")}),MAe(this.L))};
  9951. JC.prototype.v4=function(){};g.S(ew,g.x);g.S(Fu,g.x);Fu.prototype.onCueRangeEnter=function(){};
  9952. Fu.prototype.onCueRangeExit=function(T){var Q=this,k=this.T.get(T);k&&(this.T.delete(T),this.Xk.get().removeCueRange(T),kp(this.S.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var l=Q.L.get();l=lE(l.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},k,{slotId:l,slotEntryTrigger:k.slotEntryTrigger?muI(k.slotId,l,k.slotEntryTrigger):void 0,slotFulfillmentTriggers:Ii5(k.slotId,l,k.slotFulfillmentTriggers),slotExpirationTriggers:Ii5(k.slotId,l,k.slotExpirationTriggers)})]},
  9953. k.slotId))};
  9954. Fu.prototype.yw=function(){for(var T=g.B(this.T.keys()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.Xk.get().removeCueRange(Q);this.T.clear()};
  9955. Fu.prototype.v4=function(){};g.S(Eg,g.x);g.h=Eg.prototype;g.h.HT=function(){};
  9956. g.h.vT=function(T){var Q=this;g.Er(g.iu(),function(){var k=Q.T.get(T);k&&MH("Expected layouts to be properly unscheduled",T,void 0,{slotType:T.slotType,layoutTypes:[].concat(g.ZH(k)).map(function(l){return l.layoutType})})},0)};
  9957. g.h.Id=function(){};
  9958. g.h.PT=function(){};
  9959. g.h.KG=function(){};
  9960. g.h.ul=function(){};
  9961. g.h.Oh=function(){};
  9962. g.h.il=function(T,Q){this.T.has(T)||this.T.set(T,new Set);this.T.get(T).add(Q)};
  9963. g.h.Ry=function(T,Q){this.sF.has(T)&&this.sF.get(T)===Q&&MH("Unscheduled a Layout that is currently entered.",T,Q);if(this.T.has(T)){var k=this.T.get(T);k.has(Q)?(k.delete(Q),k.size===0&&this.T.delete(T)):MH("Trying to unscheduled a Layout that was not scheduled.",T,Q)}else MH("Trying to unscheduled a Layout that was not scheduled.",T,Q)};
  9964. g.h.y4=function(T,Q){this.sF.set(T,Q)};
  9965. g.h.N2=function(T){this.sF.delete(T)};
  9966. g.h.v1=function(){};g.h=EtC.prototype;g.h.init=function(){};
  9967. g.h.t3=function(){return this.slot};
  9968. g.h.eQ=function(){this.callback.Id(this.slot)};
  9969. g.h.Ck=function(){this.callback.KG(this.slot)};
  9970. g.h.release=function(){};VN.prototype.build=function(T,Q){return new EtC(T,Q)};g.h=y6T.prototype;g.h.init=function(){};
  9971. g.h.t3=function(){return this.slot};
  9972. g.h.eQ=function(){Zp(this.UK.get(),"ad-showing");this.callback.Id(this.slot)};
  9973. g.h.Ck=function(){this.callback.KG(this.slot);f_(this.UK.get(),"ad-showing")};
  9974. g.h.release=function(){};g.h=iTy.prototype;g.h.init=function(){};
  9975. g.h.t3=function(){return this.slot};
  9976. g.h.eQ=function(){Zp(this.UK.get(),"ad-showing");Zp(this.UK.get(),"ad-interrupting");this.S=this.UK.get().isAtLiveHead();this.T=Math.ceil(Date.now()/1E3);this.callback.Id(this.slot)};
  9977. g.h.Ck=function(){f_(this.UK.get(),"ad-showing");f_(this.UK.get(),"ad-interrupting");var T=this.S?Infinity:Um(this.UK.get(),1,!0)+Math.floor(Date.now()/1E3)-this.T;this.UK.get().U.seekTo(T,void 0,void 0,1);this.callback.KG(this.slot)};
  9978. g.h.release=function(){};g.h=V66.prototype;g.h.init=function(){};
  9979. g.h.t3=function(){return this.slot};
  9980. g.h.eQ=function(){Zp(this.UK.get(),"ad-showing");Zp(this.UK.get(),"ad-interrupting");this.callback.Id(this.slot)};
  9981. g.h.Ck=function(){YF(this.UK.get());f_(this.UK.get(),"ad-showing");f_(this.UK.get(),"ad-interrupting");this.callback.KG(this.slot)};
  9982. g.h.release=function(){YF(this.UK.get())};TE.prototype.build=function(T,Q){if(yZ(Q,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new y6T(T,Q,this.UK);if(Q.slotEntryTrigger instanceof jg&&yZ(Q,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new iTy(T,Q,this.UK);if(yZ(Q,[],"SLOT_TYPE_PLAYER_BYTES"))return new V66(T,Q,this.UK);throw new F("Unsupported slot with type "+Q.slotType+" and client metadata: "+(E9(Q.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.S(Qh,g.x);Qh.prototype.T=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next()){l=l.value;var v=l.trigger;v instanceof gO&&l.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&v.triggeringLayoutId===T&&Q.push(l)}Q.length?h0(this.UJ(),Q):MH("Mute requested but no registered triggers can be activated.")};g.S(kS,Qh);g.h=kS.prototype;g.h.xe=function(T,Q){if(Q)if(T==="skip-button"){T=[];for(var k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next()){l=l.value;var v=l.trigger;v instanceof gO&&l.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&v.triggeringLayoutId===Q&&T.push(l)}T.length&&h0(this.UJ(),T)}else KF(this.Qq.get(),"supports_multi_step_on_desktop")?T==="ad-action-submit-survey"&&js(this,Q):T==="survey-submit"?js(this,Q):T==="survey-single-select-answer-button"&&js(this,Q)};
  9983. g.h.xO=function(T){Qh.prototype.T.call(this,T)};
  9984. g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof Gb||Q instanceof gO))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in AdUxUpdateTriggerAdapter.");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))};
  9985. g.h.hs=function(T){this.w5.delete(T.triggerId)};
  9986. g.h.iY=function(){};
  9987. g.h.ma=function(){};
  9988. g.h.Yk=function(){};g.S(l8,g.x);g.h=l8.prototype;
  9989. g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof MA||Q instanceof YK||Q instanceof UR||Q instanceof RB||Q instanceof Zw||Q instanceof f7||Q instanceof oB||Q instanceof Fk||Q instanceof yG||Q instanceof EW||Q instanceof lQ||Q instanceof en))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in AdsControlFlowEventTriggerAdapter");T=new Xj(T,Q,k,l);this.w5.set(Q.triggerId,T);Q instanceof
  9990. Zw&&this.N.has(Q.triggeringSlotId)&&h0(this.T(),[T]);Q instanceof MA&&this.L.has(Q.triggeringSlotId)&&h0(this.T(),[T]);Q instanceof Fk&&this.S.has(Q.triggeringLayoutId)&&h0(this.T(),[T])};
  9991. g.h.hs=function(T){this.w5.delete(T.triggerId)};
  9992. g.h.HT=function(T){this.N.add(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof Zw&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)};
  9993. g.h.vT=function(T){this.N.delete(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next()){l=l.value;var v=l.trigger;v instanceof f7&&v.triggeringSlotId===T.slotId&&Q.push(l)}Q.length>0&&h0(this.T(),Q)};
  9994. g.h.PT=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next()){l=l.value;var v=l.trigger;v instanceof oB&&v.slotType===T.slotType&&v.T!==T.slotId&&Q.push(l)}Q.length>0&&h0(this.T(),Q)};
  9995. g.h.Id=function(T){this.L.add(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof MA&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)};
  9996. g.h.KG=function(T){this.L.delete(T.slotId);this.Y.add(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())if(l=l.value,l.trigger instanceof YK)T.slotId===l.trigger.triggeringSlotId&&Q.push(l);else if(l.trigger instanceof en){var v=l.trigger;T.slotId===v.slotId&&this.S.has(v.triggeringLayoutId)&&Q.push(l)}Q.length>0&&h0(this.T(),Q)};
  9997. g.h.ul=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof UR&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)};
  9998. g.h.Oh=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof RB&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)};
  9999. g.h.il=function(T,Q){this.B.add(Q.layoutId)};
  10000. g.h.Ry=function(T,Q){this.B.delete(Q.layoutId)};
  10001. g.h.y4=function(T,Q){this.S.add(Q.layoutId);for(var k=[],l=g.B(this.w5.values()),v=l.next();!v.done;v=l.next())if(v=v.value,v.trigger instanceof Fk)Q.layoutId===v.trigger.triggeringLayoutId&&k.push(v);else if(v.trigger instanceof lQ){var L=v.trigger;T.slotType===L.slotType&&Q.layoutType===L.layoutType&&Q.layoutId!==L.T&&k.push(v)}else v.trigger instanceof en&&(L=v.trigger,Q.layoutId===L.triggeringLayoutId&&this.Y.has(L.slotId)&&k.push(v));k.length>0&&h0(this.T(),k)};
  10002. g.h.N2=function(T,Q,k){this.S.delete(Q.layoutId);T=[];for(var l=g.B(this.w5.values()),v=l.next();!v.done;v=l.next())if(v=v.value,v.trigger instanceof yG&&Q.layoutId===v.trigger.triggeringLayoutId&&T.push(v),v.trigger instanceof EW){var L=v.trigger;Q.layoutId===L.triggeringLayoutId&&L.T.includes(k)&&T.push(v)}T.length>0&&h0(this.T(),T)};
  10003. g.h.v1=function(){};
  10004. g.h.yw=function(){this.Y.clear()};
  10005. g.h.v4=function(){};g.S(or,g.x);or.prototype.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof $J))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CloseRequestedTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))};
  10006. or.prototype.hs=function(T){this.w5.delete(T.triggerId)};g.S(LQ,g.x);LQ.prototype.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof WE||Q instanceof L7))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))};
  10007. LQ.prototype.hs=function(T){this.w5.delete(T.triggerId)};
  10008. LQ.prototype.yw=function(T){for(var Q=[],k=Q.push,l=k.apply,v=[],L=g.B(this.w5.values()),q=L.next();!q.done;q=L.next())q=q.value,q.trigger instanceof WE&&q.trigger.hk===T&&v.push(q);l.call(k,Q,g.ZH(v));k=Q.push;l=k.apply;v=[];L=g.B(this.w5.values());for(q=L.next();!q.done;q=L.next())q=q.value,q.trigger instanceof L7&&q.trigger.T!==T&&v.push(q);l.call(k,Q,g.ZH(v));Q.length&&h0(this.T(),Q)};
  10009. LQ.prototype.v4=function(T){for(var Q=[],k=Q.push,l=k.apply,v=[],L=g.B(this.w5.values()),q=L.next();!q.done;q=L.next()){q=q.value;var Y=q.trigger;Y instanceof L7&&Y.T===T&&v.push(q)}l.call(k,Q,g.ZH(v));Q.length&&h0(this.T(),Q)};g.S(qZ,g.x);g.h=qZ.prototype;g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");var v="adtriggercuerange:"+Q.triggerId;if(Q instanceof jg)TnJ(this,T,Q,k,l,v,Q.T.start,Q.T.end,Q.hk,Q.visible);else if(Q instanceof JQ)TnJ(this,T,Q,k,l,v,0x7ffffffffffff,0x8000000000000,Q.hk,Q.visible);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CueRangeTriggerAdapter");};
  10010. g.h.hs=function(T){var Q=this.w5.get(T.triggerId);Q&&this.Xk.get().removeCueRange(Q.cueRangeId);this.w5.delete(T.triggerId)};
  10011. g.h.onCueRangeEnter=function(T){var Q=QHg(this,T);if(Q&&(Q=this.w5.get(Q)))if(g.J(lI(this.UK.get()),32))this.T.add(Q.cueRangeId);else{var k=Q==null?void 0:Q.wI.trigger;if(k instanceof jg||k instanceof JQ){if(Y9(this.context.Qq.get())){var l=Q.wI.slot,v=Q.wI.layout,L={};this.context.mx.Fs("cre",(L.ca=Q.wI.category,L.tt=k.triggerType,L.st=l.slotType,L.lt=v==null?void 0:v.layoutType,L.cid=T,L))}h0(this.S(),[Q.wI])}}};
  10012. g.h.onCueRangeExit=function(T){(T=QHg(this,T))&&(T=this.w5.get(T))&&this.T.delete(T.cueRangeId)};
  10013. g.h.DG=function(T){if(Ue(T,16)<0){T=g.B(this.T);for(var Q=T.next();!Q.done;Q=T.next())this.onCueRangeEnter(Q.value,!0);this.T.clear()}};
  10014. g.h.HT=function(){};
  10015. g.h.vT=function(){};
  10016. g.h.PT=function(){};
  10017. g.h.Id=function(){};
  10018. g.h.KG=function(){};
  10019. g.h.ul=function(){};
  10020. g.h.Oh=function(){};
  10021. g.h.il=function(){};
  10022. g.h.Ry=function(){};
  10023. g.h.y4=function(){};
  10024. g.h.N2=function(){};
  10025. g.h.v1=function(){};
  10026. g.h.qN=function(){};
  10027. g.h.onFullscreenToggled=function(){};
  10028. g.h.Gw=function(){};
  10029. g.h.zk=function(){};
  10030. g.h.UF=function(){};
  10031. g.h.onVolumeChange=function(){};
  10032. g.h.Hg=function(){};
  10033. g.h.gC=function(){};g.S(gq,g.x);g.h=gq.prototype;
  10034. g.h.gJ=function(T,Q,k,l){if(this.S.has(Q.triggerId)||this.L.has(Q.triggerId))throw new F("Tried to re-register the trigger.");T=new Xj(T,Q,k,l);if(T.trigger instanceof QM)this.S.set(T.trigger.triggerId,T);else if(T.trigger instanceof iZ)this.L.set(T.trigger.triggerId,T);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+T.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.S.has(T.trigger.triggerId)&&T.slot.slotId===this.T&&h0(this.Y(),[T])};
  10035. g.h.hs=function(T){this.S.delete(T.triggerId);this.L.delete(T.triggerId)};
  10036. g.h.Os=function(T){T=T.slotId;if(this.T!==T){var Q=[];this.T!=null&&Q.push.apply(Q,g.ZH(jH5(this.L,this.T)));T!=null&&Q.push.apply(Q,g.ZH(jH5(this.S,T)));this.T=T;Q.length&&h0(this.Y(),Q)}};
  10037. g.h.tL=function(){};
  10038. g.h.un=function(){};g.S(MZ,g.x);g.h=MZ.prototype;g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof vO))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))};
  10039. g.h.hs=function(T){this.w5.delete(T.triggerId)};
  10040. g.h.y4=function(){};
  10041. g.h.N2=function(){};
  10042. g.h.HT=function(){};
  10043. g.h.vT=function(){};
  10044. g.h.PT=function(){};
  10045. g.h.Id=function(){};
  10046. g.h.KG=function(){};
  10047. g.h.ul=function(){};
  10048. g.h.Oh=function(){};
  10049. g.h.il=function(){};
  10050. g.h.Ry=function(){};
  10051. g.h.v1=function(){};g.S(YS,g.x);g.h=YS.prototype;g.h.v1=function(T,Q){for(var k=[],l=g.B(this.w5.values()),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.trigger;L.opportunityType===T&&(L.associatedSlotId&&L.associatedSlotId!==Q||k.push(v))}k.length&&h0(this.T(),k)};
  10052. g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof U8T))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OpportunityEventTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))};
  10053. g.h.hs=function(T){this.w5.delete(T.triggerId)};
  10054. g.h.HT=function(){};
  10055. g.h.vT=function(){};
  10056. g.h.PT=function(){};
  10057. g.h.Id=function(){};
  10058. g.h.KG=function(){};
  10059. g.h.ul=function(){};
  10060. g.h.Oh=function(){};
  10061. g.h.il=function(){};
  10062. g.h.Ry=function(){};
  10063. g.h.y4=function(){};
  10064. g.h.N2=function(){};g.S(Un,g.x);g.h=Un.prototype;g.h.gJ=function(T,Q,k,l){T=new Xj(T,Q,k,l);if(Q instanceof VG||Q instanceof kK||Q instanceof Tb||Q instanceof qA||Q instanceof ULb){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");this.w5.set(Q.triggerId,T)}else throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in PrefetchTriggerAdapter");};
  10065. g.h.hs=function(T){this.w5.delete(T.triggerId)};
  10066. g.h.HT=function(T){var Q=T.slotFulfillmentTriggers.find(function(k){return k instanceof VG});
  10067. Q&&(Rr(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Q.breakDurationMs,new Set([T.slotId]),!0),Cw(this.Vq.get(),"ads_css","sid."+T.slotId+";bd."+Q.breakDurationMs))};
  10068. g.h.vT=function(){};
  10069. g.h.PT=function(){};
  10070. g.h.Id=function(){};
  10071. g.h.KG=function(){};
  10072. g.h.ul=function(){};
  10073. g.h.Oh=function(){};
  10074. g.h.il=function(){};
  10075. g.h.Ry=function(){};
  10076. g.h.y4=function(){};
  10077. g.h.N2=function(){};
  10078. g.h.v1=function(){};
  10079. g.h.mI=function(T){var Q=this;if(!this.T)return MH("Unexpected cue break before fetch instructions are available"),!1;this.S&&this.S.stop();this.N&&g.Ez(this.N);var k=veJ(this,T);if(!k){var l=liT(this),v=this.C!==void 0&&Date.now()<=this.C+1E4;Cw(this.Vq.get(),"ads_ncfs","cid."+T.identifier+";cd."+T.bf.toFixed(3)+";ccs."+v+";cfa."+this.Y+";bdc."+l.length+";"+l.slice(0,6).map(function(L){return";bd."+L}).join(""));
  10080. return v?(p1(this.zP,this.T,T),!0):!1}(l=FN(k.slot.clientMetadata,"metadata_type_triggering_cue_point"))?l.current=T:MH("Expected triggering cue point ref to be available",k.slot);(new g.FA(function(){var L=k.trigger,q=k.slot;Rr(Q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",L.breakDurationMs,new Set,!0);Rr(Q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",L.breakDurationMs,new Set,!1);for(var Y=0,U=g.B(Q.w5.values()),R=U.next();!R.done;R=U.next()){R=R.value;var Z=R.trigger;
  10081. R.slot.slotId===q.slotId&&(Q.w5.delete(Z.triggerId),Y++)}Cw(Q.Vq.get(),"ads_csf","sid."+q.slotId+";bd."+L.breakDurationMs+";dt."+Y)},10)).start();
  10082. return!0};
  10083. g.h.OO=function(){};
  10084. g.h.yw=function(T){var Q=this;this.Y=!1;this.C=Date.now();if(this.T&&this.T.contentCpn!==T)MH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:T,fetchInstructionsCpn:this.T.contentCpn}),ZQ(this);else{this.L=new g.FA(function(){if(Q.Y)delete Q.L;else{var l=Q.UK.get().getGetAdBreakContext(),v;if(Number(l==null?void 0:(v=l.livePlaybackPosition)==null?void 0:v.utcTimeMillis)>0)delete Q.L,oe5(Q);else{var L;(L=Q.L)==null||L.start()}}},200);
  10085. var k;(k=this.L)==null||k.start()}};
  10086. g.h.v4=function(T){this.T&&this.T.contentCpn!==T&&MH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:T,fetchInstructionsCpn:this.T.contentCpn},!0);ZQ(this)};
  10087. g.h.aX=function(T){var Q=this;if(this.T)MH("Unexpected multiple fetch instructions for the current content");else{this.T=T;T=q9H(T);this.S=new g.FA(function(){oe5(Q)},T?T:6E5);
  10088. this.S.start();this.N=new g.FA(function(){Q.T&&(Q.S&&(Q.S.stop(),Q.S.start()),kpJ(Q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},LU6(this.T));
  10089. T=this.UK.get().getCurrentTimeSec(1,!1);for(var k=g.B(this.DC.get().DF),l=k.next();!l.done;l=k.next())l=l.value,Cw(this.Vq.get(),"nocache","ct."+Date.now()+";cmt."+T+";d."+l.bf.toFixed(3)+";tw."+(l.startSecs-T)+";cid."+l.identifier+";")}};
  10090. g.h.EK=function(){g.x.prototype.EK.call(this);ZQ(this)};g.S(fQ,g.x);g.h=fQ.prototype;g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof zb))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l));T=this.T.has(Q.triggeringLayoutId)?this.T.get(Q.triggeringLayoutId):new Set;T.add(Q);this.T.set(Q.triggeringLayoutId,T)};
  10091. g.h.hs=function(T){this.w5.delete(T.triggerId);if(!(T instanceof zb))throw new F("Incorrect TriggerType: Tried to unregister trigger of type "+T.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Q=this.S.get(T.triggerId);Q&&(Q.dispose(),this.S.delete(T.triggerId));if(Q=this.T.get(T.triggeringLayoutId))Q.delete(T),Q.size===0&&this.T.delete(T.triggeringLayoutId)};
  10092. g.h.HT=function(){};
  10093. g.h.vT=function(){};
  10094. g.h.PT=function(){};
  10095. g.h.Id=function(){};
  10096. g.h.KG=function(){};
  10097. g.h.ul=function(){};
  10098. g.h.Oh=function(){};
  10099. g.h.il=function(){};
  10100. g.h.Ry=function(){};
  10101. g.h.v1=function(){};
  10102. g.h.y4=function(T,Q){var k=this;if(this.T.has(Q.layoutId)){T=this.T.get(Q.layoutId);T=g.B(T);var l=T.next();for(Q={};!l.done;Q={Cr:void 0},l=T.next())Q.Cr=l.value,l=new g.FA(function(v){return function(){var L=k.w5.get(v.Cr.triggerId);h0(k.L(),[L])}}(Q),Q.Cr.durationMs),l.start(),this.S.set(Q.Cr.triggerId,l)}};
  10103. g.h.N2=function(){};g.S(GE,g.x);GE.prototype.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof OW))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in VideoTransitionTriggerAdapter.");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))};
  10104. GE.prototype.hs=function(T){this.w5.delete(T.triggerId)};sn.prototype.qp=function(T){return T.kind==="AD_PLACEMENT_KIND_START"};g.S(BC,g.x);g.h=BC.prototype;g.h.logEvent=function(T){this.M3(T)};
  10105. g.h.XE=function(T,Q,k){this.M3(T,void 0,void 0,void 0,Q,void 0,void 0,void 0,Q.adSlotLoggingData,void 0,void 0,k)};
  10106. g.h.Xw=function(T,Q,k,l){this.M3(T,void 0,void 0,void 0,Q,k?k:void 0,void 0,void 0,Q.adSlotLoggingData,k?k.adLayoutLoggingData:void 0,void 0,l)};
  10107. g.h.Rm=function(T,Q,k,l){KF(this.Qq.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+T,"trigger:",k,"slot:",Q,"layout:",l);T4(this.T.get())&&this.M3(T,void 0,void 0,void 0,Q,l?l:void 0,void 0,k,Q.adSlotLoggingData,l?l.adLayoutLoggingData:void 0)};
  10108. g.h.hT=function(T,Q,k,l,v){this.M3(T,Q,k,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v)};
  10109. g.h.dA=function(T,Q,k,l){this.M3("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,k,l,void 0,void 0,k.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,{errorType:T,errorMessage:Q})};
  10110. g.h.M3=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){var G=this;f=f===void 0?0:f;KF(this.Qq.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+T,"slot:",v,"layout:",L,"ping:",q,"Opportunity:",{opportunityType:Q,associatedSlotId:k,L6H:l,YpK:Y,adSlotLoggingData:U,adLayoutLoggingData:R});try{var m=function(){if(!G.Qq.get().U.G().V("html5_disable_client_tmp_logs")&&T!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){T||MH("Empty PACF event type",v,L);var I=T4(G.T.get()),z={eventType:T,eventOrder:++G.eventCount},w={};
  10111. v&&(w.slotData=VZ(I,v));L&&(w.layoutData=OZC(I,L));q&&(w.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:q.T.serializedAdPingMetadata,pingIndex:q.index});Y&&(w.triggerData=i2(Y.trigger,Y.category));Q&&(w.opportunityData=pdt(I,Q,k,l));I={organicPlaybackContext:{contentCpn:Kd(G.l9.get(),1).clientPlaybackNonce}};I.organicPlaybackContext.isLivePlayback=Kd(G.l9.get(),1).Cc;var r;I.organicPlaybackContext.isMdxPlayback=(r=Kd(G.l9.get(),1))==null?void 0:r.isMdxPlayback;
  10112. var A;if((A=Kd(G.l9.get(),1))==null?0:A.daiEnabled)I.organicPlaybackContext.isDaiContent=!0;var D;if(r=(D=Kd(G.l9.get(),2))==null?void 0:D.clientPlaybackNonce)I.adVideoPlaybackContext={adVideoCpn:r};I&&(w.externalContext=I);z.adClientData=w;U&&(z.serializedSlotAdServingData=U.serializedSlotAdServingDataEntry);R&&(z.serializedAdServingData=R.serializedAdServingDataEntry);Z&&(z.errorInfo=Z);g.LM("adsClientStateChange",{adsClientEvent:z})}};
  10113. f&&f>0?g.Er(g.iu(),function(){return m()},f):m()}catch(I){KF(this.Qq.get(),"html5_log_pacf_logging_errors")&&g.Er(g.iu(),function(){MH(I instanceof Error?I:String(I),v,L,{pacf_message:"exception during pacf logging"})})}};var d_e=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.S(zE,BC);g.h=zE.prototype;
  10114. g.h.XE=function(T,Q,k){BC.prototype.XE.call(this,T,Q,k);Y9(this.Qq.get())&&(k={},this.context.mx.Fs("pacf",(k.et=T,k.st=Q.slotType,k.si=Q.slotId,k)))};
  10115. g.h.Xw=function(T,Q,k,l){var v=d_e.has(T);BC.prototype.Xw.call(this,T,Q,k,l);Y9(this.Qq.get(),v)&&(l={},this.context.mx.Fs("pacf",(l.et=T,l.st=Q.slotType,l.si=Q.slotId,l.lt=k==null?void 0:k.layoutType,l.li=k==null?void 0:k.layoutId,l.p_ac=k==null?void 0:k.layoutId,l)))};
  10116. g.h.hT=function(T,Q,k,l,v){BC.prototype.hT.call(this,T,Q,k,l,v);Y9(this.Qq.get())&&(k={},this.context.mx.Fs("pacf",(k.et=T,k.ot=Q,k.ss=l==null?void 0:l.length,k)))};
  10117. g.h.Rm=function(T,Q,k,l){BC.prototype.Rm.call(this,T,Q,k,l);if(Y9(this.Qq.get())){var v={};this.context.mx.Fs("pacf",(v.et=T,v.tt=k.trigger.triggerType,v.tc=k.category,v.st=Q.slotType,v.si=Q.slotId,v.lt=l==null?void 0:l.layoutType,v.li=l==null?void 0:l.layoutId,v.p_ac=l==null?void 0:l.layoutId,v))}};
  10118. g.h.dA=function(T,Q,k,l){BC.prototype.dA.call(this,T,Q,k,l);if(Y9(this.Qq.get(),!0)){var v={};this.context.mx.Fs("perror",(v.ert=T,v.erm=Q,v.st=k.slotType,v.si=k.slotId,v.lt=l==null?void 0:l.layoutType,v.li=l==null?void 0:l.layoutId,v.p_ac=l==null?void 0:l.layoutId,v))}};
  10119. g.h.M3=function(T,Q,k,l,v,L,q,Y,U,R,Z){var f=this.Qq.get();g.G4(f.U.G())?(f=this.Qq.get(),f=g.jj(f.U.G().experiments,"H5_async_logging_delay_ms")):f=void 0;BC.prototype.M3.call(this,T,Q,k,l,v,L,q,Y,U,R,Z,f)};Xv.prototype.clear=function(){this.T.clear()};wq.prototype.state=function(){return this.T==="fulfilled"?{state:"fulfilled",value:this.result}:this.T==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}};
  10120. wq.prototype.Y=function(T){NZ(T)||dq(T)?DQ(A1(T),this.Y.bind(this),this.reject.bind(this)):(this.T="fulfilled",this.result=T,cC(this))};
  10121. wq.prototype.reject=function(T){this.T="rejected";this.error=T;cC(this)};
  10122. var dq=L8(function(T){return xpA(T)?T instanceof wq:!1});Object.freeze({BSV:function(T){var Q=PC(T);return DQ(xS(Q,function(k){return Q[k].T==="rejected"}),function(k){return Number.isNaN(k)?Q.map(function(l){return l.state().value}):Q[k]})},
  10123. NSH:function(T){var Q=PC(T);return DQ(xS(Q),function(){return Q.map(function(k){return k.state()})})},
  10124. VXm:function(T){var Q=PC(T);return DQ(xS(Q,function(k){return Q[k].T==="fulfilled"}),function(k){return Number.isNaN(k)?b8(new AggregateError(Q.map(function(l){return l.state().reason}))):Q[k].state().value})},
  10125. wB9:function(T){var Q=PC(T);return DQ(xS(Q,function(){return!0}),function(k){return Q[k]})}});var HC=window.ePO||"zh-CN";WC.prototype.HP=function(T){this.client=T};
  10126. WC.prototype.T=function(){this.clear();this.csn=g.C9()};
  10127. WC.prototype.clear=function(){this.L.clear();this.S.clear();this.Y.clear();this.csn=null};J1.prototype.HP=function(T){g.E4($S().HP).bind($S())(T)};
  10128. J1.prototype.clear=function(){g.E4($S().clear).bind($S())()};g.h=es.prototype;g.h.HP=function(T){this.client=T};
  10129. g.h.dB=function(T,Q){var k=this;Q=Q===void 0?{}:Q;g.E4(function(){var l,v,L,q=((l=g.t(T==null?void 0:T.commandMetadata,g.XD))==null?void 0:l.rootVe)||((v=g.t(T==null?void 0:T.commandMetadata,WIe))==null?void 0:(L=v.screenVisualElement)==null?void 0:L.uiType);if(q){l=g.t(T==null?void 0:T.commandMetadata,MOp);if(l==null?0:l.parentTrackingParams){var Y=g.ha(l.parentTrackingParams);if(l.parentCsn)var U=l.parentCsn}else Q.clickedVisualElement?Y=Q.clickedVisualElement:T.clickTrackingParams&&(Y=g.ha(T.clickTrackingParams));
  10130. a:{l=g.t(T,g.Bv);v=g.t(T,k8p);if(l){if(v=duy(l,"VIDEO")){l={token:v,videoId:l.videoId};break a}}else if(v&&(l=duy(v,"PLAYLIST"))){l={token:l,playlistId:v.playlistId};break a}l=void 0}Q=Object.assign({},{cttAuthInfo:l,parentCsn:U},Q);if(g.hH("expectation_logging")){var R;Q.loggingExpectations=((R=g.t(T==null?void 0:T.commandMetadata,WIe))==null?void 0:R.loggingExpectations)||void 0}En(k,q,Y,Q)}else g.rB(new g.Wy("Error: Trying to create a new screen without a rootVeType",T))})()};
  10131. g.h.clickCommand=function(T,Q,k){T=T.clickTrackingParams;k=k===void 0?0:k;T?(k=g.C9(k===void 0?0:k))?(Ff(this.client,k,g.ha(T),Q),Q=!0):Q=!1:Q=!1;return Q};
  10132. g.h.stateChanged=function(T,Q,k){this.visualElementStateChanged(g.ha(T),Q,k===void 0?0:k)};
  10133. g.h.visualElementStateChanged=function(T,Q,k){k=k===void 0?0:k;k===0&&this.S.has(k)?this.j.push([T,Q]):Dug(this,T,Q,k)};Tq.prototype.fetch=function(T,Q,k){var l=this,v=neX(T,Q,k);return new Promise(function(L,q){function Y(){if(k==null?0:k.w_)try{var R=l.handleResponse(T,v.status,v.response,k);L(R)}catch(Z){q(Z)}else L(l.handleResponse(T,v.status,v.response,k))}
  10134. v.onerror=Y;v.onload=Y;var U;v.send((U=Q.body)!=null?U:null)})};
  10135. Tq.prototype.handleResponse=function(T,Q,k,l){k=k.replace(")]}'","");try{var v=JSON.parse(k)}catch(L){g.rB(new g.Wy("JSON parsing failed after XHR fetch",T,Q,k));if((l==null?0:l.w_)&&k)throw new g.pG(1,"JSON parsing failed after XHR fetch");v={}}Q!==200&&(g.rB(new g.Wy("XHR API fetch failed",T,Q,k)),v=Object.assign({},v,{errorMetadata:{status:Q}}));return v};Qp.getInstance=function(){var T=g.jA("ytglobal.storage_");T||(T=new Qp,g.Tv("ytglobal.storage_",T));return T};
  10136. Qp.prototype.estimate=function(){var T,Q,k;return g.a(function(l){T=navigator;return((Q=T.storage)==null?0:Q.estimate)?l.return(T.storage.estimate()):((k=T.webkitTemporaryStorage)==null?0:k.queryUsageAndQuota)?l.return(KUI()):l.return()})};
  10137. g.Tv("ytglobal.storageClass_",Qp);op.prototype.O4=function(T){this.handleError(T)};
  10138. op.prototype.logEvent=function(T,Q){switch(T){case "IDB_DATA_CORRUPTED":g.hH("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",Q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",Q);break;case "IS_SUPPORTED_COMPLETED":g.hH("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",Q);break;case "QUOTA_EXCEEDED":P25(this,Q);break;case "TRANSACTION_ENDED":this.L&&Math.random()<=.1&&this.T("idbTransactionEnded",Q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":T=
  10139. Object.assign({},Q,{hasWindowUnloaded:this.S}),this.T("idbTransactionAborted",T)}};var yo={},WEJ=g.VH("yt-player-local-media",{Sn:(yo.index={C7:2},yo.media={C7:2},yo.captions={C7:5},yo),shared:!1,upgrade:function(T,Q){Q(2)&&(g.dm(T,"index"),g.dm(T,"media"));Q(5)&&g.dm(T,"captions");Q(6)&&(Nh(T,"metadata"),Nh(T,"playerdata"))},
  10140. version:5});var NJT={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},is;a:{var Vo=g.KJ();Vo=Vo.toLowerCase();if(g.rz(Vo,"android")){var AmW=Vo.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(AmW){var b8v=parseFloat(AmW[1]);if(b8v<100){is=b8v;break a}}var rme=Vo.match("("+Object.keys(NJT).join("|")+")");is=rme?NJT[rme[0]]:0}else is=void 0}var ou=is,lF=ou>=0;var V7X=window;var Hp5=aO(function(){var T,Q;return(Q=(T=window).matchMedia)==null?void 0:Q.call(T,"(prefers-reduced-motion: reduce)").matches});var kg;g.jX=new IW;kg=0;var sd=en5()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.$n?!0:!1;var vr={rd:function(T,Q){T[M[51]](0,Q)},
  10141. UT:function(T){T[M[46]]()},
  10142. N9:function(T,Q){var k=T[0];T[0]=T[Q%T[M[24]]];T[Q%T[M[24]]]=k}};var PZg={rxm:"adunit",cyd:"detailpage",XG6:"editpage",RM9:"embedded",azk:"leanback",cHq:"previewpage",EF9:"profilepage",wG:"unplugged",gFV:"playlistoverview",Me6:"sponsorshipsoffer",nFe:"shortspage",q4d:"handlesclaiming",d1m:"immersivelivepage",qFO:"creatormusic",x16:"immersivelivepreviewpage",NOm:"admintoolyurt",P0_:"shortsaudiopivot",DVO:"consumption"};var Ow6={mVe:0,Fo9:1,Y$k:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var iFf=2592E3;var Tr,cmv,na;Tr={};g.Br=(Tr.STOP_EVENT_PROPAGATION="html5-stop-propagation",Tr.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Tr.IV_DRAWER_OPEN="ytp-iv-drawer-open",Tr.MAIN_VIDEO="html5-main-video",Tr.VIDEO_CONTAINER="html5-video-container",Tr.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Tr.HOUSE_BRAND="house-brand",Tr);cmv={};na=(cmv.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",cmv.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",cmv);var qPJ={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var UPT={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},RFu={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},M$T={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Mwg={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.wt.prototype.getLanguageInfo=function(){return this.MY};
  10143. g.wt.prototype.getXtags=function(){if(!this.xtags){var T=this.id.split(";");T.length>1&&(this.xtags=T[1])}return this.xtags};
  10144. g.wt.prototype.toString=function(){return this.MY.name};
  10145. g.wt.prototype.getLanguageInfo=g.wt.prototype.getLanguageInfo;dt.prototype.equals=function(T){return this.S===T.S&&this.T===T.T&&this.L===T.L&&this.reason===T.reason&&(!A_||this.qY===T.qY)};
  10146. dt.prototype.isLocked=function(){return this.L&&!!this.S&&this.S===this.T};
  10147. dt.prototype.compose=function(T){if(T.L&&bd(T))return GV;if(T.L||bd(this))return T;if(this.L||bd(T))return this;var Q=this.S&&T.S?Math.max(this.S,T.S):this.S||T.S,k=this.T&&T.T?Math.min(this.T,T.T):this.T||T.T;Q=Math.min(Q,k);var l=0;A_&&(l=this.qY!==0&&T.qY!==0?Math.min(this.qY,T.qY):this.qY===0?T.qY:this.qY);return A_&&Q===this.S&&k===this.T&&l===this.qY||!A_&&Q===this.S&&k===this.T?this:A_?new dt(Q,k,!1,k===this.T&&l===this.qY?this.reason:T.reason,l):new dt(Q,k,!1,k===this.T?this.reason:T.reason)};
  10148. dt.prototype.Y=function(T){return!T.video||A_&&this.qY!==0&&this.qY<T.qY?!1:fJf(this,T.video.quality)};
  10149. var D_A=g.NQ("auto","hd1080",!1,"l"),i$X=g.NQ("auto","large",!1,"l"),GV=g.NQ("auto","auto",!1,"p"),A_=!1;a3.prototype.G6=function(T){T=T||GV;for(var Q=g.bl(this.videoInfos,function(q){return T.Y(q)}),k=[],l={},v=0;v<Q.length;v++){var L=Q[v].video;
  10150. l[L.quality]||(k.push(L),l[L.quality]=!0)}return k};
  10151. a3.prototype.Cy=function(T){T=T||GV;return g.bl(this.videoInfos,function(Q){return T.Y(Q)})};
  10152. a3.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var DPH=new Set(["356"]);g.S(ud,g.x);ud.prototype.EK=function(){g.x.prototype.EK.call(this)};g.J_[M[16]][M[10]]=function(T,Q){this[M[5]][T]!==Q&&(this[M[5]][T]=Q,this[M[15]]=M[29])};
  10153. g.J_[M[16]][M[20]]=function(T){eX(this);return this[M[5]][T]||null};
  10154. g.J_[M[16]][M[76]]=function(){this[M[15]]||(this[M[15]]=PE5(this));return this[M[15]]};
  10155. g.J_[M[16]][M[3]]=function(){var T=new g.J_(this[M[22]],this[M[13]]);T[M[28]]=this[M[28]];T[M[31]]=this[M[31]];T[M[30]]=this[M[30]];T[M[5]]=g.Gs(this[M[5]]);T[M[15]]=this[M[15]];return T};
  10156. var xPb=[xFy];g.h=g.Qn.prototype;g.h.LK=function(T){this.segments.push(T)};
  10157. g.h.f7=function(T){return!!this.Ix(T)};
  10158. g.h.getDuration=function(T){return(T=this.Ix(T))?T.duration:0};
  10159. g.h.qe=function(T){return this.getDuration(T)};
  10160. g.h.Z3=function(){return 0};
  10161. g.h.p7=function(){return this.segments.length?this.segments[0].NO:-1};
  10162. g.h.xM=function(T){return(T=this.Ix(T))?T.ingestionTime:NaN};
  10163. g.h.a_=function(){return this.segments.length?this.segments[this.segments.length-1].NO:-1};
  10164. g.h.SE=function(T){return this.a_()===T&&!this.S&&T>=0};
  10165. g.h.l6=function(){var T=this.segments[this.segments.length-1];return T?T.endTime:NaN};
  10166. g.h.SY=function(){return this.segments[0].startTime};
  10167. g.h.DL=function(){return this.segments.length};
  10168. g.h.je=function(){return 0};
  10169. g.h.ll=function(T){return(T=this.ZL(T))?T.NO:-1};
  10170. g.h.qb=function(T){return(T=this.Ix(T))?T.sourceURL:""};
  10171. g.h.getStartTime=function(T){return(T=this.Ix(T))?T.startTime:0};
  10172. g.h.nm=function(T){return this.getStartTime(T)+this.getDuration(T)};
  10173. g.h.SA=T5(1);g.h.isLoaded=function(){return this.segments.length>0};
  10174. g.h.Ix=function(T){if(this.T&&this.T.NO===T)return this.T;T=g.OA(this.segments,new T7(T,0,0,0,""),function(Q,k){return Q.NO-k.NO});
  10175. return this.T=T>=0?this.segments[T]:null};
  10176. g.h.ZL=function(T){if(this.T&&this.T.startTime<=T&&T<this.T.startTime+this.T.duration)return this.T;T=g.OA(this.segments,{startTime:T},function(Q,k){return Q.startTime-k.startTime});
  10177. return this.T=T>=0?this.segments[T]:this.segments[Math.max(0,-T-2)]};
  10178. g.h.append=function(T){if(T.length)if(T=g.r$(T),this.segments.length){var Q=this.segments.length?g.m9(this.segments).endTime:0,k=T[0].NO-this.a_();k>1&&B6g(this.segments);for(k=k>0?0:-k+1;k<T.length;k++){var l=T[k];l.startTime=Q;l.endTime=l.startTime+l.duration;Q+=T[k].duration;this.segments.push(T[k])}}else this.segments=T};
  10179. g.h.Ls=function(){return 0};jv.prototype.skip=function(T){this.T+=T};var Qx={},a9$=(Qx.predictStart="predictStart",Qx.start="start",Qx["continue"]="continue",Qx.stop="stop",Qx),$P6={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Uw.prototype.t5=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
  10180. Uw.prototype.toString=function(){for(var T="",Q=g.B(Object.keys(this.data)),k=Q.next();!k.done;k=Q.next())k=k.value,T+=k+":"+this.data[k]+";";return T};Xo.prototype.H5=function(){var T=this.pos;this.pos=0;var Q=!1;try{Aw(this,440786851)&&(this.pos=0,Aw(this,408125543)&&(Q=!0))}catch(k){if(k instanceof RangeError)this.pos=0,Q=!1,g.rB(k);else throw k;}this.pos=T;return Q};Pt.prototype.set=function(T,Q){this.LB.get(T);this.T[T]=Q;this.url=""};
  10181. Pt.prototype.get=function(T){return this.T[T]||this.LB.get(T)};
  10182. Pt.prototype.IK=function(){this.url||(this.url=Zu5(this));return this.url};g.h=Wt.prototype;g.h.YE=function(T,Q){return T.d5?this.j?this.B=!0:this.B=GXf(this,T,Q):GXf(this,T,Q)};
  10183. g.h.Hp=function(T){return this.S.get(T)};
  10184. g.h.pB=function(){return this.S.get("cpn")||""};
  10185. g.h.Pg=function(T,Q){T.LB===this.T&&(this.T=Ht(T,Q));T.LB===this.Y&&(this.Y=Ht(T,Q))};
  10186. g.h.FO=function(){return this.T!==this.Y&&!this.B};yn.prototype.ZG=function(){return!!this.T&&this.index.isLoaded()};
  10187. yn.prototype.sj=function(){return!1};
  10188. yn.prototype.dj=function(T){return[T]};
  10189. yn.prototype.Ui=function(T){return[T]};ix.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.h=jq.prototype;g.h.Dq=function(){return this.Y&&this.T.index.SE(this.NO)};
  10190. g.h.isEncrypted=function(){return this.T.info.isEncrypted()};
  10191. g.h.equals=function(T){return!(!T||T.T!==this.T||T.type!==this.type||(this.range&&T.range?T.range.start!==this.range.start||T.range.end!==this.range.end:T.range!==this.range)||T.NO!==this.NO||T.S!==this.S||T.L!==this.L)};
  10192. g.h.bK=function(){return!!this.T.info.video};
  10193. g.h.Bh=function(){var T=Ly(this),Q="";g.VJ(T,function(k,l){Q+=l+"_"+k+"_"});
  10194. return Q.slice(0,-1)};gd.prototype.pw=function(){return this.T?this.T.IK():""};
  10195. gd.prototype.isDecorated=function(){return!!(this.T||this.Y&&this.Y.gV)};
  10196. gd.prototype.Zr=function(){return k0(this.MO[0])};
  10197. gd.prototype.Pg=function(T,Q){this.Xs.Pg(T,Q);if(this.T){this.T=Ht(T,Q);Q=g.B(["acpns","cpn","daistate","skipsq"]);for(var k=Q.next();!k.done;k=Q.next())this.T[M[10]](k.value,null)}this.requestId=T.get("req_id")};g.S(RX,yn);g.h=RX.prototype;g.h.tH=function(){return!1};
  10198. g.h.Sp=function(){return!0};
  10199. g.h.Ri=function(){return!1};
  10200. g.h.sj=function(){return!this.N};
  10201. g.h.Ga=function(){return new gd([new jq(1,this,this.initRange,"getMetadataRequestInfo")],this.N)};
  10202. g.h.aT=function(){return null};
  10203. g.h.Kh=function(T){this.zm(T);return this.Sp()&&T.L&&!T.Y?new gd([new jq(T.type,T.T,T.range,"liveGetNextRequestInfoBySegment",T.NO,T.startTime,T.duration,T.S+T.L,NaN,!0)],this.index.qb(T.NO)):this.qT(v9(T),!1)};
  10204. g.h.A5=function(T,Q){Q=Q===void 0?!1:Q;T=this.index.ll(T);Q&&(T=Math.min(this.index.a_(),T+1));return this.qT(T,!0)};
  10205. g.h.dR=function(T){b7(T)};
  10206. g.h.zm=function(T){return T.L===0?!0:this.index.a_()>T.NO&&this.index.p7()<=T.NO+1};
  10207. g.h.update=function(T,Q,k){this.index.append(T);OBu(this.index,k);T=this.index;T.S=Q;T.L="update"};
  10208. g.h.ZG=function(){return this.sj()?!0:yn.prototype.ZG.call(this)};
  10209. g.h.qT=function(T,Q){var k=this.index.qb(T),l=this.index.getStartTime(T),v=this.index.getDuration(T),L;Q?v=L=0:L=this.info.qY>0?this.info.qY*v:1E3;return new gd([new jq(3,this,void 0,"liveCreateRequestInfoForSegment",T,l,v,0,L,!Q)],k)};
  10210. g.h.fm=function(){return this.sj()?0:this.initRange.length};
  10211. g.h.K3=function(){return!1};G3.prototype.update=function(T){var Q=void 0;this.S&&(Q=this.S);var k=new G3,l=Array.from(T.getElementsByTagName("S"));if(l.length){var v=+Zj(T,"timescale")||1,L=(+l[0].getAttribute("t")||0)/v,q=+Zj(T,"startNumber")||0;k.Y=L;var Y=Q?Q.startSecs+Q.bf:0,U=Date.parse(n9t(Zj(T,"yt:segmentIngestTime")))/1E3;k.N=T.parentElement.tagName==="SegmentTemplate";k.N&&(k.C=Zj(T,"media"));T=Q?q-Q.NO:1;k.B=T>0?0:-T+1;T=g.B(l);for(l=T.next();!l.done;l=T.next()){l=l.value;for(var R=+l.getAttribute("d")/v,Z=(+l.getAttribute("yt:sid")||
  10212. 0)/v,f=+l.getAttribute("r")||0,G=0;G<=f;G++)if(Q&&q<=Q.NO)q++;else{var m=new aKf(q,Y,R,U+Z,L);k.T.push(m);var I=l;var z=v,w=m.startSecs;m=I.getAttribute("yt:cuepointTimeOffset");var r=I.getAttribute("yt:cuepointDuration");if(m&&r){m=Number(m);w=-m/z+w;z=Number(r)/z;r=I.getAttribute("yt:cuepointContext")||null;var A=I.getAttribute("yt:cuepointIdentifier")||"";I=I.getAttribute("yt:cuepointEvent")||"";I=new M6(w,z,r,A,a9$[I]||"unknown",m)}else I=null;I&&k.L.push(I);q++;Y+=R;L+=R;U+=R+Z}}k.T.length&&
  10213. (k.S=g.m9(k.T))}this.B=k.B;this.S=k.S||this.S;g.cm(this.T,k.T);g.cm(this.L,k.L);this.N=k.N;this.C=k.C;this.Y===-1&&(this.Y=k.getStreamTimeOffset())};
  10214. G3.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.S(IX,g.Qn);g.h=IX.prototype;g.h.Z3=function(){return this.bH};
  10215. g.h.f7=function(T,Q){T=hq(this,T);return T>=0&&(Q||!this.segments[T].pending)};
  10216. g.h.p7=function(){return this.ly?this.segments.length?this.ZL(this.SY()).NO:-1:g.Qn.prototype.p7.call(this)};
  10217. g.h.SY=function(){if(this.KY)return 0;if(!this.ly)return g.Qn.prototype.SY.call(this);if(!this.segments.length)return 0;var T=Math.max(g.m9(this.segments).endTime-this.Bf,0);return this.sW>0&&this.ZL(T).NO<this.sW?this.Ix(this.sW).startTime:T};
  10218. g.h.l6=function(){if(this.Ic&&this.GW&&this.GW>0)return this.GW/1E3;if(!this.segments.length)return g.Qn.prototype.l6.call(this);var T=this.a_();if(!this.ly||T<=this.segments[this.segments.length-1].NO)T=this.segments[this.segments.length-1];else{var Q=this.segments[this.segments.length-1];T=new T7(T,Math.max(0,Q.startTime-(Q.NO-T)*this.bH),this.bH,0,"sq/"+T,void 0,void 0,!0)}return this.KY?Math.min(this.Bf,T.endTime):T.endTime};
  10219. g.h.DL=function(){return this.ly?this.segments.length?this.a_()-this.p7()+1:0:g.Qn.prototype.DL.call(this)};
  10220. g.h.a_=function(){var T=Math.min(this.Kz,Math.max(g.Qn.prototype.a_.call(this),this.hV)),Q=this.Bf*1E3;Q=this.GW>0&&this.GW<Q;this.KY&&this.Bf>0&&this.hV>0&&!Q&&(Q=this.ZL(this.Bf))&&(T=Math.min(Q.NO-1,T));return T};
  10221. g.h.j2=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
  10222. g.h.LK=function(T){var Q=hq(this,T.NO);if(Q>=0)this.segments[Q]=T;else if(this.segments.splice(-(Q+1),0,T),this.P$&&T.NO%(300/this.bH)===0){var k=this.segments[0].NO,l=Math.floor(this.P$/this.bH);T=T.NO-l;Q=-(Q+1)-l;Q>0&&T>k&&(this.segments=this.segments.slice(Q))}};
  10223. g.h.UI=function(){return this.hV};
  10224. g.h.SE=function(T){return mN?!this.S&&T>=0&&this.a_()<=T:g.Qn.prototype.SE.call(this,T)};
  10225. g.h.ZL=function(T){if(!this.ly)return g.Qn.prototype.ZL.call(this,T);if(!this.segments.length)return null;var Q=this.segments[this.segments.length-1];if(T<this.segments[0].startTime)Q=Math.max(0,this.segments[0].NO-Math.ceil((this.segments[0].startTime-T)/this.bH));else if(T>=Q.endTime)Q=Q.NO+Math.floor((T-Q.endTime)/this.bH+1);else{Q=pW(this.segments,function(l){return T<l.startTime?-1:T>=l.endTime?1:0});
  10226. if(Q>=0)return this.segments[Q];var k=-(Q+1);Q=this.segments[k-1];k=this.segments[k];Q=Math.floor((T-Q.endTime)/((k.startTime-Q.endTime)/(k.NO-Q.NO-1))+1)+Q.NO}return this.Ix(Q)};
  10227. g.h.Ix=function(T){if(!this.ly)return g.Qn.prototype.Ix.call(this,T);if(!this.segments.length)return null;var Q=hq(this,T);if(Q>=0)return this.segments[Q];var k=-(Q+1);Q=this.bH;if(k===0)var l=Math.max(0,this.segments[0].startTime-(this.segments[0].NO-T)*Q);else k===this.segments.length?(l=this.segments[this.segments.length-1],l=l.endTime+(T-l.NO-1)*Q):(l=this.segments[k-1],Q=this.segments[k],Q=(Q.startTime-l.endTime)/(Q.NO-l.NO-1),l=l.endTime+(T-l.NO-1)*Q);return new T7(T,l,Q,0,"sq/"+T,void 0,void 0,
  10228. !0)};
  10229. var mN=!1;g.S(sE,RX);g.h=sE.prototype;g.h.Ri=function(){return!0};
  10230. g.h.ZG=function(){return!0};
  10231. g.h.zm=function(T){return this.Sp()&&T.L&&!T.Y||!T.T.index.SE(T.NO)};
  10232. g.h.Ga=function(){};
  10233. g.h.A5=function(T,Q){return typeof T!=="number"||isFinite(T)?RX.prototype.A5.call(this,T,Q===void 0?!1:Q):new gd([new jq(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.hW,void 0,this.hW*this.info.qY)],"")};
  10234. g.h.qT=function(T,Q){var k=k===void 0?!1:k;if(this.index.f7(T))return RX.prototype.qT.call(this,T,Q);var l=this.index.getStartTime(T),v=Math.round(this.hW*this.info.qY),L=this.hW;Q&&(L=v=0);return new gd([new jq(k?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",T,l,L,void 0,v,!Q)],T>=0?"sq/"+T:"")};g.S(Sq,yn);g.h=Sq.prototype;g.h.tH=function(){return!1};
  10235. g.h.Sp=function(){return!1};
  10236. g.h.Ri=function(){return!1};
  10237. g.h.Ga=function(){return new gd([new jq(1,this,void 0,"otfInit")],this.N)};
  10238. g.h.aT=function(){return null};
  10239. g.h.Kh=function(T){this.zm(T);return WDI(this,v9(T),!1)};
  10240. g.h.A5=function(T,Q){Q=Q===void 0?!1:Q;T=this.index.ll(T);Q&&(T=Math.min(this.index.a_(),T+1));return WDI(this,T,!0)};
  10241. g.h.dR=function(T){T.info.type===1&&(this.T||(this.T=Yl(T.S)),T.T&&T.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&$$b(this,T.T))};
  10242. g.h.zm=function(T){return T.L===0?!0:this.index.a_()>T.NO&&this.index.p7()<=T.NO+1};
  10243. g.h.fm=function(){return 0};
  10244. g.h.K3=function(){return!1};g.Cy.prototype.info=function(){};
  10245. g.Cy.prototype.debug=function(){};
  10246. g.Cy.prototype.T=function(T){B9.apply(null,[5,this.tag,T].concat(g.ZH(g.HT.apply(1,arguments))))};
  10247. var FD5=new Map,iu5=new Map,E95=new function(){var T=this;this.T=new Map;this.dn={JVK:function(){return T.T}}};g.h=g.rd.prototype;g.h.f7=function(T){return T<=this.a_()};
  10248. g.h.je=function(T){return this.offsets[T]};
  10249. g.h.getStartTime=function(T){return this.startTicks[T]/this.T};
  10250. g.h.nm=function(T){return this.getStartTime(T)+this.getDuration(T)};
  10251. g.h.SA=T5(0);g.h.xM=function(){return NaN};
  10252. g.h.getDuration=function(T){T=this.qe(T);return T>=0?T/this.T:-1};
  10253. g.h.qe=function(T){return T+1<this.count||this.S?this.startTicks[T+1]-this.startTicks[T]:-1};
  10254. g.h.Z3=function(){return 0};
  10255. g.h.p7=function(){return 0};
  10256. g.h.a_=function(){return this.count-1};
  10257. g.h.SE=function(T){return this.a_()===T&&T>=0};
  10258. g.h.l6=function(){return this.S?this.startTicks[this.count]/this.T:NaN};
  10259. g.h.SY=function(){return 0};
  10260. g.h.DL=function(){return this.count};
  10261. g.h.qb=function(){return""};
  10262. g.h.ll=function(T){T=g.OA(this.startTicks.subarray(0,this.count),T*this.T);return T>=0?T:Math.max(0,-T-2)};
  10263. g.h.isLoaded=function(){return this.a_()>=0};
  10264. g.h.Ls=function(T,Q){if(T>=this.a_())return 0;var k=0;for(Q=this.getStartTime(T)+Q;T<this.a_()&&Q>this.getStartTime(T);T++)k=Math.max(k,Llb(this,T)/this.getDuration(T));return k};
  10265. g.h.resize=function(T){T+=2;var Q=this.offsets;this.offsets=new Float64Array(T+1);var k=this.startTicks;this.startTicks=new Float64Array(T+1);for(T=0;T<this.count+1;T++)this.offsets[T]=Q[T],this.startTicks[T]=k[T]};
  10266. g.h.cap=function(T,Q){c9(this);this.S=!0;this.startTicks[this.count]=Q;this.offsets[this.count]=T};g.S(Dj,yn);g.h=Dj.prototype;g.h.Ga=function(T,Q){var k=new jq(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q),l=[new jq(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q),k];this.info.contentLength>0&&T&&(k=k.range.end+1,T=Math.min(T,this.info.contentLength-k),T>0&&l.push(new jq(4,this,T3(k,T),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)));return new gd(l)};
  10267. g.h.dR=function(T){if(T.info.type===1){if(this.T)return;this.T=Yl(T.S)}else if(T.info.type===2){if(this.N||this.index.a_()>=0)return;if(g.x9(this.info)){var Q=this.index,k=g.XG(T);T=T.info.range.start;var l=g.Z8(k,0,1936286840);k=jE5(l);Q.T=k.timescale;var v=k.WS;Q.offsets[0]=k.NR+T+l.size;Q.startTicks[0]=v;Q.S=!0;T=k.YC.length;for(l=0;l<T;l++){v=Q;var L=k.qW6[l],q=k.YC[l];v.count++;c9(v);v.offsets[v.count]=v.offsets[v.count-1]+L;v.startTicks[v.count]=v.startTicks[v.count-1]+q}}else this.N=g.XG(T)}if(this.info.Rd()&&
  10268. this.T&&this.N){k=new DataView(this.T.buffer);Q=this.index;l=this.N;T=this.indexRange.end;v=new Xo(k);k=v;v=k.pos;L={Fz:1E6,YG:1E9,duration:0,x5:0,s5:0};if(Aw(k,408125543))if(L.x5=bx(k,!0),L.s5=k.start+k.pos,Aw(k,357149030)){for(q=N6(k);!w8(q);){var Y=bx(q,!1);Y===2807729?L.Fz=ct(q):Y===2807730?L.YG=ct(q):Y===17545?L.duration=at(q):D8(q)}k.pos=v;k=L}else k.pos=v,k=null;else k.pos=v,k=null;if(k!==null){Q.T=k.YG/k.Fz;v=new Xo(l);l=v;q=k.s5;v=l.pos;L=[];if(Aw(l,475249515)){for(Y=N6(l);Aw(Y,187);){var U=
  10269. N6(Y);if(Aw(U,179)){var R=ct(U);if(Aw(U,183)){U=N6(U);for(var Z=q;Aw(U,241);)Z=ct(U)+q;L.push({SQ:Z,sX:R})}}}if(L.length>0&&T===L[0].SQ)for(T=0;T<L.length;T++)L[T].SQ+=1;l.pos=v;T=L}else l.pos=v,T=null;if(T!==null){T=g.B(T);for(l=T.next();!l.done;l=T.next())L=l.value,l=Q,v=L.SQ,L=L.sX,c9(l),l.offsets[l.count]=v,l.startTicks[l.count]=L,l.count++;Q.cap(k.x5+k.s5,k.duration)}}this.N=null}};
  10270. g.h.lk=function(T,Q,k,l){for(var v=[],L=T;L<=this.index.a_();L++){var q=T3(this.index.je(L),Llb(this.index,L)),Y=this.index.getStartTime(L),U=this.index.getDuration(L),R=Math.max(0,Q-q.start),Z=Math.min(q.end+1,Q+k)-(q.start+R);v.push(new jq(3,this,q,"getRequestInfoForRange",L,Y,U,R,Z,void 0,void 0,l));if(q.start+R+Z>=Q+k)break}v.length||(T=new g.Wy("b189619593",""+T,""+Q,""+k),g.bA(T));return new gd(v)};
  10271. g.h.dj=function(T){for(var Q=this.Ui(T.info),k=T.info.range.start+T.info.S,l=[],v=0;v<Q.length;v++){var L=Lx(T.S,Q[v].range.start+Q[v].S-k,Q[v].L);l.push(new z3(Q[v],L))}return l};
  10272. g.h.Ui=function(T){for(var Q=T.range.start+T.S,k=0;k<this.index.a_()&&Q>=this.index.je(k+1);)k++;return this.lk(k,Q,T.L).MO};
  10273. g.h.zm=function(T){T.Dq();return this.ZG()?!0:T.range.end+1<this.info.contentLength};
  10274. g.h.aT=function(T,Q){this.zm(T);if(!this.ZG())return Q=T3(T.range.end+1,Q),Q.end+1>this.info.contentLength&&(Q=new ix(Q.start,this.info.contentLength-1)),new gd([new jq(4,T.T,Q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,T.clipId)]);T.type===4&&(T=this.Ui(T),T=T[T.length-1]);var k=0,l=T.range.start+T.S+T.L;T.type===3&&(T.Dq(),k=T.NO,l===T.range.end+1&&(k+=1));return this.lk(k,l,Q)};
  10275. g.h.Kh=function(){return null};
  10276. g.h.A5=function(T,Q){Q=Q===void 0?!1:Q;T=this.index.ll(T);Q&&(T=Math.min(this.index.a_(),T+1));return this.lk(T,this.index.je(T),0,void 0)};
  10277. g.h.tH=function(){return!0};
  10278. g.h.Sp=function(){return!0};
  10279. g.h.Ri=function(){return!1};
  10280. g.h.fm=function(){return this.indexRange.length+this.initRange.length};
  10281. g.h.K3=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var j0={},Bfb=(j0.COLOR_PRIMARIES_BT709="bt709",j0.COLOR_PRIMARIES_BT2020="bt2020",j0.COLOR_PRIMARIES_UNKNOWN=null,j0.COLOR_PRIMARIES_UNSPECIFIED=null,j0),kG={},gTI=(kG.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",kG.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",kG.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",kG.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",kG.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,kG.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,kG);g.aX.prototype.getName=function(){return this.name};
  10282. g.aX.prototype.getId=function(){return this.id};
  10283. g.aX.prototype.getIsDefault=function(){return this.isDefault};
  10284. g.aX.prototype.toString=function(){return this.name};
  10285. g.aX.prototype.getName=g.aX.prototype.getName;g.aX.prototype.getId=g.aX.prototype.getId;g.aX.prototype.getIsDefault=g.aX.prototype.getIsDefault;var Rjf=/action_display_post/;var Zd6,Ky,x0;g.S(P9,g.ox);g.h=P9.prototype;g.h.isLoading=function(){return this.state===1};
  10286. g.h.u5=function(){return this.state===3};
  10287. g.h.NtH=function(T){var Q=T.getElementsByTagName("Representation");if(T.getElementsByTagName("SegmentList").length>0||T.getElementsByTagName("SegmentTemplate").length>0){this.Cc=this.S=!0;this.timeline||(this.timeline=new x$T);Ou6(this.timeline,T);this.publish("refresh");for(T=0;T<Q.length;T++){var k=bdC(this,Q[T]);if(!this.T[k.id]){var l=W9(fy(Q[T],"BaseURL").textContent),v=fy(Q[T],"Initialization"),L=Zj(v,"sourceURL");v=Vn(Zj(v,"range"));this.T[k.id]=new RX(l,k,L,v)}k=this.T[k.id];l=Zj(Q[T],"id",
  10288. "AdaptationSet");l=l!==""?l:Zj(Q[T],"mimetype","AdaptationSet");L=this.timeline;L=L.L[k.info.id]||L.S[l]||L.T||null;l=L.T;!this.C&&L.getStreamTimeOffset()&&(this.C=L.getStreamTimeOffset());if(L.N){v=[];l=g.B(l);for(var q=l.next();!q.done;q=l.next()){q=q.value;var Y=k.info.id,U=k.info.qY*8,R=q.NO;var Z=q.startSecs;var f=L.C.split("$$");for(var G=0;G<f.length;G++)f[G]=f[G].replace("$RepresentationID$",Y),f[G]=f[G].replace("$Number$",R.toString()),f[G]=f[G].replace("$Bandwidth$",U.toString()),f[G]=f[G].replace("$Time$",
  10289. Z.toString());v.push(new T7(q.NO,q.startSecs,q.bf,q.T,f.join("$"),null,q.S))}l=v}else{L=nW(fy(Q[T],"SegmentList").getElementsByTagName("SegmentURL"),L.B);v=[];for(q=0;q<L.length;q++){Y=v;U=Y.push;R=l[q];Z=void 0;G=L[q];f=G.getAttribute("media");if(G=G.getAttribute("mediaRange")){var m=G.split("-");m[1]&&Number(m[1])>=0?Z=Vn(G):f=f+"?range="+G}U.call(Y,new T7(R.NO,R.startSecs,R.bf,R.T,f,Z,R.S))}l=v}k.update(l,this.isLive,this.Jj)}pjT(this.timeline);return!0}this.duration=uLb(Zj(T,"mediaPresentationDuration"));
  10290. a:{for(T=0;T<Q.length;T++){L=Q[T];k=bdC(this,L);l=W9(fy(L,"BaseURL").textContent);v=fy(L,"SegmentBase");L=Vn(v.attributes.getNamedItem("indexRange").value);v=Vn(v.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);k=new Dj(l,k,v,L);if(!k){Q=!1;break a}ny(this,k)}Q=!0}return Q};
  10291. g.h.refresh=function(){if(!this.isLoading()&&!this.wd()){var T=g.sD(this.sourceUrl,{start_seq:uR6(this).toString()});cBJ(this,T).kE(function(){})}};
  10292. g.h.resume=function(){rB6(this)};
  10293. g.h.EM=function(){if(this.isManifestless&&this.Y&&Jq(this))return Jq(this);var T=this.T,Q=!1,k=NaN,l=NaN,v;for(v in T){var L=T[v],q=L.index;q.isLoaded()&&!Wj(L.info.mimeType)&&(L.Y&&(Q=!0),q=q.l6(),L.info.uH()&&(isNaN(k)||q<k)?k=q:L.info.bK()&&(isNaN(l)||q<l)&&(l=q))}return Q||isNaN(l)?k:Math.min(k,l)};
  10294. g.h.SY=function(){if(this.isManifestless){if(eq(this))return eq(this);if(this.Ig){var T=this.xM(this.EM());if(T&&(T-=this.Ig,T>0))return this.EM()-T}}T=this.T;for(var Q in T){var k=T[Q].index;if(k.isLoaded()&&!Wj(T[Q].info.mimeType))return k.SY()}return 0};
  10295. g.h.getStreamTimeOffset=function(){return this.C};
  10296. g.h.xM=function(T){for(var Q in this.T){var k=this.T[Q].index;if(k.isLoaded()){var l=k.ll(T),v=k.xM(l);if(v)return v+T-k.getStartTime(l)}}return NaN};
  10297. var T6=null,u1$,Qa=!((u1$=navigator.mediaCapabilities)==null||!u1$.decodingInfo),AB5={commentary:1,alternate:2,dub:3,main:4};var wT=new Set,j4=new Map;on.prototype.clone=function(T){return new on(this.flavor,T,this.S,this.experiments)};
  10298. on.prototype.Tx=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
  10299. on.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
  10300. var nj1={},fc=(nj1.playready=["com.youtube.playready","com.microsoft.playready"],nj1.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],nj1),l0={},nxJ=(l0.widevine="DRM_SYSTEM_WIDEVINE",l0.fairplay="DRM_SYSTEM_FAIRPLAY",l0.playready="DRM_SYSTEM_PLAYREADY",l0),oM={},K3A=(oM.widevine=1,oM.fairplay=2,oM.playready=3,oM);var In;g.S(G6,g.x);
  10301. G6.prototype.initialize=function(T,Q){for(var k=this,l=g.B(Object.keys(T)),v=l.next();!v.done;v=l.next()){v=g.B(T[v.value]);for(var L=v.next();!L.done;L=v.next())if(L=L.value,L.jY)for(var q=g.B(Object.keys(L.jY)),Y=q.next();!Y.done;Y=q.next()){var U=Y.value;Y=U;U=fc[U];!U&&this.V("html5_enable_vp9_fairplay")&&Y==="fairplay"&&(U=["com.youtube.fairplay.sbdl"]);if(U){U=g.B(U);for(var R=U.next();!R.done;R=U.next())R=R.value,this.L[R]=this.L[R]||new on(Y,R,L.jY[Y],this.FB.experiments),this.T[Y]=this.T[Y]||
  10302. {},this.T[Y][L.mimeType]=!0}}}WD()&&(this.L["com.youtube.fairplay"]=new on("fairplay","com.youtube.fairplay","",this.FB.experiments),this.V("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.S=OdH(Q,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(Z){return!!k.L[Z]})};
  10303. G6.prototype.V=function(T){return this.FB.experiments.Wd(T)};var x__={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};Fly.prototype.V=function(T){return this.experiments.Wd(T)};var tn6={RED:"red",RPj:"white"};ETC.prototype.Wd=function(T){T=this.flags[T];JSON.stringify(T);return T==="true"};var VtJ=Promise.resolve(),kn6=window.queueMicrotask?window.queueMicrotask.bind(window):TMI;Cc.prototype.canPlayType=function(T,Q){T=T.canPlayType?T.canPlayType(Q):!1;We?T=T||PSE[Q]:ou===2.2?T=T||H8$[Q]:OG()&&(T=T||tCd[Q]);return!!T};
  10304. Cc.prototype.isTypeSupported=function(T){return this.D?window.cast.receiver.platform.canDisplayType(T):s_(T)};
  10305. var H8$={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},tCd={"application/x-mpegURL":"maybe"},PSE={"application/x-mpegURL":"maybe"};g.S(XK,g.ox);XK.prototype.add=function(T,Q){if(!this.items[T]&&(Q.Hy||Q.iI||Q.Vc)){var k=this.items,l=Q;Object.isFrozen&&!Object.isFrozen(Q)&&(l=Object.create(Q),Object.freeze(l));k[T]=l;this.publish("vast_info_card_add",T)}};
  10306. XK.prototype.remove=function(T){var Q=this.get(T);delete this.items[T];return Q};
  10307. XK.prototype.get=function(T){return this.items[T]||null};
  10308. XK.prototype.isEmpty=function(){return g.Rs(this.items)};wx.prototype.encrypt=function(T){this.T.exports.AES128CTRCipher_encrypt(this.cipher,T.byteOffset,T.byteLength);return T};
  10309. wx.prototype.wd=function(){return this.cipher===0};
  10310. wx.prototype.dispose=function(){this.T.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Nx.prototype.zW=function(T,Q){Q=Q===void 0?1:Q;this.kf+=Q;this.S+=T;T/=Q;for(var k=0;k<dx.length&&!(T<dx[k]);++k)this.T[k]+=Q};
  10311. Nx.prototype.toString=function(){return""};
  10312. var dx=[20,100,500,2E3];g.h=gJH.prototype;g.h.isActive=function(){return!0};
  10313. g.h.R7=function(T,Q){if(Q){var k=this,l={},v;for(v in Q)l={cR:void 0,xp:void 0},Q.hasOwnProperty(v)&&(l.xp=T.prototype[v],l.cR=Q[v],T.prototype[v]=function(L){return function(){var q=g.HT.apply(0,arguments),Y=this,U=(0,g.XY)(),R=L.xp.apply(Y,q);return UlI(k,R,null,U,function(Z){return L.cR.apply(Y,[Z].concat(q))})}}(l))}};
  10314. g.h.Ya=function(){return new qWf};
  10315. g.h.AS=function(T,Q,k){k=k===void 0?1:k;Q instanceof qWf&&(Mng(this,T,(0,g.XY)()-Q.startTimeMs,k),Q.T=!0)};
  10316. g.h.Mg=function(T,Q){var k=(0,g.XY)();Q=Q();UlI(this,Q,T,k)};
  10317. g.h.vR=function(){var T={},Q;for(Q in this.T)if(this.T.hasOwnProperty(Q)){var k=this.T[Q];if(k.kf===0)k=null;else{for(var l=Math.ceil(k.kf).toFixed(0)+"."+k.S.toFixed(0),v=0;v<dx.length;++v)if(k.T[v]>0)l+="."+dx[v].toFixed(0)+"_"+k.T[v].toFixed(0);else break;k=l}k&&(T[Q]=k)}this.T=new L15;return T};
  10318. g.h.toString=function(){return""};g.h=RGf.prototype;g.h.isActive=function(){return!1};
  10319. g.h.R7=function(){};
  10320. g.h.Ya=function(){};
  10321. g.h.AS=function(){};
  10322. g.h.Mg=function(T,Q){Q()};
  10323. g.h.vR=function(){return{}};
  10324. g.h.toString=function(){return""};var O8e=new RGf,puJ=!!+JI("html5_enable_profiler"),W3m=!!+JI("html5_onesie_enable_profiler"),v$=puJ||W3m?new gJH:O8e,kGg=puJ?v$:O8e,bc=W3m?v$:O8e;hGt.prototype.emscripten_notify_memory_growth=function(){};g.h=AS.prototype;g.h.malloc=function(T){return this.exports.malloc(T)};
  10325. g.h.free=function(T){this.exports.free(T)};
  10326. g.h.realloc=function(T,Q){return this.exports.realloc(T,Q)};
  10327. g.h.RH=function(T){if(T.buffer!==this.exports.memory.buffer){var Q=this.malloc(T.byteLength);Q=new Uint8Array(this.exports.memory.buffer,Q,T.byteLength);Q.set(T);return Q}};
  10328. g.h.AL=function(T){if(T.buffer===this.exports.memory.buffer){var Q=T.slice();this.free(T.byteOffset);return Q}};
  10329. var Zw5=new function(){this.L=this.Y="WebAssembly"in window},rx="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);
  10330. bc.R7(AS,{RH:function(T){return{profile:"copyj2w",kf:T===void 0?0:Math.ceil(T.byteLength/16)}},
  10331. AL:function(T){return{profile:"copyw2j",kf:T===void 0?0:Math.ceil(T.byteLength/16)}}});cL.prototype.encrypt=function(T,Q){try{return this.T.AL(BMT(this,T,Q))}catch(k){g.rB(Error("ocwce: wasm encrypt failed: "+k))}};
  10332. cL.prototype.wd=function(){return this.L};
  10333. cL.prototype.dispose=function(){this.wd()||(g.od(this.S),this.T.free(this.Y.byteOffset),this.L=!0)};g.S(zGT,g.x);g.S(wEu,g.x);var an;uc.prototype.add=function(T){if(this.pos+20>this.data.length){var Q=new Uint8Array(this.data.length*2);Q.set(this.data);this.data=Q}for(;T>31;)this.data[this.pos++]=an[(T&31)+32],T>>=5;this.data[this.pos++]=an[T|0]};
  10334. uc.prototype.xo=function(){return g.GU(this.data.subarray(0,this.pos))};
  10335. uc.prototype.reset=function(){this.pos=0};Kc.prototype.Q1=function(T,Q){var k=Math.pow(this.alpha,T);this.T=Q*(1-k)+k*this.T;this.S+=T};
  10336. Kc.prototype.hx=function(){return this.T/(1-Math.pow(this.alpha,this.S))};xm.prototype.Q1=function(T,Q){for(var k=0;k<10;k++){var l=this.T[k],v=l+(k===0?T:0),L=1*Math.pow(2,k);if(v<=L)break;l=Math.min(1,(v-L*.5)/l);for(v=0;v<16;v++)L=this.values[k*16+v]*l,this.values[(k+1)*16+v]+=L,this.T[k+1]+=L,this.values[k*16+v]-=L,this.T[k]-=L}l=k=0;v=8192;Q>8192&&(k=Math.ceil(Math.log(Q/8192)/Math.log(2)),l=8192*Math.pow(2,k-1),v=l*2);k+2>16?this.values[15]+=T:(Q=(Q-l)/(v-l),this.values[k]+=T*(1-Q),this.values[k+1]+=T*Q);this.T[0]+=T};
  10337. xm.prototype.hx=function(){var T=T===void 0?this.S:T;var Q=Q===void 0?.02:Q;var k=k===void 0?.98:k;for(var l=this.L,v=0;v<16;v++)l[v]=this.values[v];v=this.T[0];for(var L=1;L<11;L++){var q=this.T[L];if(q===0)break;for(var Y=Math.min(1,(T-v)/q),U=0;U<16;U++)l[U]+=this.values[L*16+U]*Y;v+=q*Y;if(Y<1)break}for(L=T=q=0;L<16;L++){Y=q+l[L]/v;T+=Math.max(0,Math.min(Y,k)-Math.max(q,Q))*(L>0?8192*Math.pow(2,L-1):0);if(Y>k)break;q=Y}return T/(k-Q)};PL.prototype.Q1=function(T,Q){T=Math.min(this.T,Math.max(1,Math.round(T*this.resolution)));T+this.S>=this.T&&(this.L=!0);for(;T--;)this.values[this.S]=Q,this.S=(this.S+1)%this.T;this.RY=!0};
  10338. PL.prototype.percentile=function(T){var Q=this;if(!this.L&&this.S===0)return 0;this.RY&&(g.JT(this.N,function(k,l){return Q.values[k]-Q.values[l]}),this.RY=!1);
  10339. return this.values[this.N[Math.round(T*((this.L?this.T:this.S)-1))]]||0};
  10340. PL.prototype.hx=function(){return this.B?(this.percentile(this.Y-this.B)+this.percentile(this.Y)+this.percentile(this.Y+this.B))/3:this.percentile(this.Y)};g.S(HL,g.x);HL.prototype.p_=function(){var T;(T=this.sK)==null||T.start();if(FK(this)&&this.policy.j){var Q;(Q=this.nA)==null||Q.RQ()}};cQg.prototype.V=function(T){return this.experiments.Wd(T)};g.S(aYy,g.x);var Hw5="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),eGy={q$m:"caoe",g_B:"capsv",Nem:"cbrand",VZj:"cbr",e9_:"cbrver",Ib_:"cchip",tZH:"ccappver",WoB:"ccrv",P8K:"cfrmver",U1O:"c",NC_:"cver",BCV:"ctheme",R1d:"cplayer",RUj:"cmodel",Qz:"cnetwork",uUO:"cos",OS_VERSION:"cosver",MOO:"cplatform",BA6:"crqyear"};g.S(fn,g.x);g.h=fn.prototype;g.h.V=function(T){return this.experiments.Wd(T)};
  10341. g.h.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
  10342. g.h.getVideoUrl=function(T,Q,k,l,v,L,q){Q={list:Q};k&&(v?Q.time_continue=k:Q.t=k);k=q?"music.youtube.com":g.mq(this);v=k==="www.youtube.com";!L&&l&&v?L="https://youtu.be/"+T:g.q0(this)?(L="https://"+k+"/fire",Q.v=T):(L&&v?(L=this.protocol+"://"+k+"/shorts/"+T,l&&(Q.feature="share")):(L=this.protocol+"://"+k+"/watch",Q.v=T),We&&(T=OL5())&&(Q.ebc=T));return g.sD(L,Q)};
  10343. g.h.getVideoEmbedCode=function(T,Q,k,l){Q="https://"+g.mq(this)+"/embed/"+Q;l&&(Q=g.sD(Q,{list:l}));l=k.width;k=k.height;Q=ra(Q);T=ra(T!=null?T:"YouTube video player");return'<iframe width="'+l+'" height="'+k+'" src="'+Q+'" title="'+(T+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
  10344. g.h.supportsGaplessAudio=function(){return g.hW&&!We&&PD()>=74||g.Rn&&g.HX(68)?!0:!1};
  10345. g.h.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.Jj||g.mp?!1:!0};
  10346. g.h.getPlayerType=function(){return this.T.cplayer};
  10347. g.h.J3=function(){return this.uK};
  10348. var iwX=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],JQH=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],EJu=[19];var L0={},jB5=(L0["140"]={numChannels:2},L0["141"]={numChannels:2},L0["251"]={audioSampleRate:48E3,numChannels:2},L0["774"]={audioSampleRate:48E3,numChannels:2},L0["380"]={numChannels:6},L0["328"]={numChannels:6},L0["773"]={},L0),qe={},TOt=(qe["1"]='video/mp4; codecs="av01.0.08M.08"',qe["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',qe["1e"]='video/mp4; codecs="av01.0.08M.08"',qe["9"]='video/webm; codecs="vp9"',qe["("]='video/webm; codecs="vp9"',qe["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
  10349. qe.h='video/mp4; codecs="avc1.64001e"',qe.H='video/mp4; codecs="avc1.64001e"',qe.o='audio/webm; codecs="opus"',qe.a='audio/mp4; codecs="mp4a.40.2"',qe.ah='audio/mp4; codecs="mp4a.40.2"',qe.mac3='audio/mp4; codecs="ac-3"; channels=6',qe.meac3='audio/mp4; codecs="ec-3"; channels=6',qe.i='audio/mp4; codecs="iamf.001.001.Opus"',qe),gF={},QB6=(gF["337"]={width:3840,height:2160,bitrate:3E7,fps:30},gF["336"]={width:2560,height:1440,bitrate:15E6,fps:30},gF["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
  10350. gF["702"]={width:7680,height:4320,bitrate:4E7,fps:60},gF["701"]={width:3840,height:2160,bitrate:2E7,fps:60},gF["700"]={width:2560,height:1440,bitrate:1E7,fps:60},gF["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},gF["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},gF["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},gF["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
  10351. gF["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},gF["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},gF["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},gF["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},gF["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},gF["315"]={width:3840,height:2160,bitrate:2E7,fps:60},gF["308"]={width:2560,
  10352. height:1440,bitrate:1E7,fps:60},gF["303"]={width:1920,height:1080,bitrate:5E6,fps:60},gF["302"]={width:1280,height:720,bitrate:25E5,fps:60},gF["299"]={width:1920,height:1080,bitrate:75E5,fps:60},gF["298"]={width:1280,height:720,bitrate:35E5,fps:60},gF["571"]={width:7680,height:4320,bitrate:3E7,fps:60},gF["401"]={width:3840,height:2160,bitrate:15E6,fps:60},gF["400"]={width:2560,height:1440,bitrate:75E5,fps:60},gF["399"]={width:1920,height:1080,bitrate:2E6,fps:60},gF["398"]={width:1280,height:720,bitrate:1E6,
  10353. fps:60},gF["397"]={width:854,height:480,bitrate:4E5,fps:30},gF["396"]={width:640,height:360,bitrate:25E4,fps:30},gF["787"]={width:1080,height:608,bitrate:2E5,fps:30},gF["788"]={width:1080,height:608,bitrate:4E5,fps:30},gF["572"]={width:7680,height:4320,bitrate:3E7,fps:60},gF["555"]={width:3840,height:2160,bitrate:15E6,fps:60},gF["554"]={width:2560,height:1440,bitrate:75E5,fps:60},gF["553"]={width:1920,height:1080,bitrate:2E6,fps:60},gF["552"]={width:1280,height:720,bitrate:1E6,fps:60},gF["551"]={width:854,
  10354. height:480,bitrate:4E5,fps:30},gF["550"]={width:640,height:360,bitrate:25E4,fps:30},gF["313"]={width:3840,height:2160,bitrate:8E6,fps:30},gF["271"]={width:2560,height:1440,bitrate:4E6,fps:30},gF["248"]={width:1920,height:1080,bitrate:2E6,fps:30},gF["247"]={width:1280,height:720,bitrate:15E5,fps:30},gF["244"]={width:854,height:480,bitrate:52E4,fps:30},gF["243"]={width:640,height:360,bitrate:28E4,fps:30},gF["137"]={width:1920,height:1080,bitrate:4E6,fps:30},gF["136"]={width:1280,height:720,bitrate:3E6,
  10355. fps:30},gF["135"]={width:854,height:480,bitrate:1E6,fps:30},gF["385"]={width:1920,height:1080,bitrate:6503313,fps:60},gF["376"]={width:1280,height:720,bitrate:5706960,fps:60},gF["384"]={width:1280,height:720,bitrate:3660979,fps:60},gF["225"]={width:1280,height:720,bitrate:5805E3,fps:30},gF["224"]={width:1280,height:720,bitrate:453E4,fps:30},gF["145"]={width:1280,height:720,bitrate:2682052,fps:30},gF);g.h=au.prototype;g.h.getInfo=function(){return this.T};
  10356. g.h.Ge=function(){return null};
  10357. g.h.T1=function(){var T=this.Ge();return T?(T=g.k5(T.Xs),Number(T.expire)):NaN};
  10358. g.h.Cq=function(){};
  10359. g.h.getHeight=function(){return this.T.video.height};vK5.prototype.build=function(){gK5(this);var T=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Q={};a:if(this.T)var k=this.T;else{k="";for(var l=g.B(this.L),v=l.next();!v.done;v=l.next())if(v=v.value,v.MY){if(v.MY.getIsDefault()){k=v.MY.getId();break a}k||(k=v.MY.getId())}}l=g.B(this.L);for(v=l.next();!v.done;v=l.next())if(v=v.value,this.B||!v.MY||v.MY.getId()===k)Q[v.itag]||(Q[v.itag]=[]),Q[v.itag].push(v);k=g.B(this.S);for(l=k.next();!l.done;l=k.next())if(l=l.value,v=Q[l.T]){v=g.B(v);for(var L=v.next();!L.done;L=
  10360. v.next()){var q=T,Y=q.push;L=L.value;var U="#EXT-X-MEDIA:TYPE=AUDIO,",R="YES",Z="audio";if(L.MY){Z=L.MY;var f=Z.getId().split(".")[0];f&&(U+='LANGUAGE="'+f+'",');(this.T?this.T===Z.getId():Z.getIsDefault())||(R="NO");Z=Z.getName()}f="";l!==null&&(f=l.itag.toString());f=nn(this,L.url,f);U=U+('NAME="'+Z+'",DEFAULT='+(R+',AUTOSELECT=YES,GROUP-ID="'))+(qR6(L,l)+'",URI="'+(f+'"'));Y.call(q,U)}}k=g.B(this.N);for(l=k.next();!l.done;l=k.next())l=l.value,v=$_e,l=(q=l.MY)?'#EXT-X-MEDIA:URI="'+nn(this,l.url)+
  10361. '",TYPE=SUBTITLES,GROUP-ID="'+v+'",LANGUAGE="'+q.getId()+'",NAME="'+q.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,l&&T.push(l);k=this.N.length>0?$_e:void 0;l=g.B(this.S);for(v=l.next();!v.done;v=l.next())v=v.value,Y=Q[v.T],q=void 0,((q=Y)==null?void 0:q.length)>0&&(q=v,Y=Y[0],Y="#EXT-X-STREAM-INF:BANDWIDTH="+(q.bitrate+Y.bitrate)+',CODECS="'+(q.codecs+","+Y.codecs+'",RESOLUTION=')+(q.width+"x"+q.height+',AUDIO="')+(qR6(Y,q)+'",')+(k?'SUBTITLES="'+k+'",':"")+"CLOSED-CAPTIONS=NONE",q.fps>1&&(Y+=
  10362. ",FRAME-RATE="+q.fps),q.qo&&(Y+=",VIDEO-RANGE="+q.qo),T.push(Y),T.push(nn(this,v.url,"")));return T.join("\n")};
  10363. var $_e="text";g.S(Kn,au);Kn.prototype.T1=function(){return this.expiration};
  10364. Kn.prototype.Ge=function(){if(!this.Xs||this.Xs.wd()){var T=this.S.build();T="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(T);this.Xs=new Ld(T)}return this.Xs};g.S(xL,au);xL.prototype.Ge=function(){return new Ld(this.S.IK())};
  10365. xL.prototype.Cq=function(){this.S=id(this.S)};g.S(PB,au);PB.prototype.Ge=function(){return new Ld(this.S)};var Me={},hrb=(Me.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Me.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Me.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Me.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Me);g.h=g.HB.prototype;g.h.getId=function(){return this.id};
  10366. g.h.getName=function(){return this.name};
  10367. g.h.isServable=function(){return this.T};
  10368. g.h.IK=function(){return this.url};
  10369. g.h.getXtags=function(){return this.xtags};
  10370. g.h.toString=function(){return this.languageCode+": "+g.t9(this)+" - "+this.vssId+" - "+(this.captionId||"")};
  10371. g.h.equals=function(T){return T?this.toString()===T.toString():!1};
  10372. g.h.Hk=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var XO5={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},wOT={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},dAg=/^(\d*)_((\d*)_?(\d*))$/;var Aku={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},b7J={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var YG={},JmW=(YG.ALWAYS=1,YG.BY_REQUEST=3,YG.UNKNOWN=void 0,YG),UO={},e$W=(UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",UO);var tz5;
  10373. tz5=function(T){for(var Q=Object.keys(T),k={},l=0;l<Q.length;l++){var v=Q[l];typeof T[v]==="function"&&(k[v]=T[v])}var L=Object.keys(k);try{Adf(k)}catch(Y){var q=Y}return function(Y,U){Y=Y===void 0?{}:Y;if(q)throw q;for(var R=!1,Z={},f=0;f<L.length;f++){var G=L[f],m=Y[G],I=(0,k[G])(m,U);if(typeof I==="undefined")throw Y=U&&U.type,Error("When called with an action of type "+(Y?'"'+String(Y)+'"':"(unknown type)")+', the slice reducer for key "'+G+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');Z[G]=
  10374. I;R=R||I!==m}return(R=R||L.length!==Object.keys(Y).length)?Z:Y}}({entities:function(T,Q){T=T===void 0?{}:T;
  10375. return j$y(T,Q)}});
  10376. g.w4=new kl;FT.prototype.toString=function(){return this.type+this.id};yk.prototype.rO=function(T){T=T||"hqdefault.jpg";var Q=this.j[T];if(Q)return Q;if(T==="sddefault.jpg"||T==="hq720.jpg"||T==="maxresdefault.jpg")return Q;if(this.T)return Iu(this.FB,this.T,T)};
  10377. yk.prototype.fB=function(){return this.FB.getVideoUrl(this.videoId,this.playlistId)};iF.prototype.rO=function(T){T||(T="hqdefault.jpg");var Q=this.j[T];return Q?Q:T==="pop1.jpg"||T==="pop2.jpg"||T==="sddefault.jpg"||T==="hq720.jpg"||T==="maxresdefault.jpg"?Q:Iu(this.FB,this.videoId,T)};
  10378. iF.prototype.fB=function(T){return this.watchUrl||this.FB.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,T)};var Qv=void 0;Hj5("LMS",function(){return g.a(function(T){return T.return(g.j7())})});var vv;vv=0;g.VgJ=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Hj5("LMDB",function(){var T,Q;return g.a(function(k){if(k.S==1)return g.c(k,g.EY(),2);if(k.S!=3){T=k.T;if(!T)throw g.hF("edd");return g.c(k,g.o8(T),3)}Q=k.T;return k.return(g.AF(Q,["index","media","captions"],{mode:"readonly",r5:!0},function(l){var v={};l=[g.ap(l.objectStore("index"),{},function(L){v[L.cursor.key]=L.getValue();return g.un(L)}),
  10379. N0X(l.objectStore("media")),N0X(l.objectStore("captions"))];return g.So.all(l).then(function(L){var q=g.B(L);q.next();L=q.next().value;q=q.next().value;return{index:v,media:THH(L||[]),captions:q}})}))})});g.S(qY,g.ox);qY.prototype.EK=function(){this.T&&(this.T=this.T.onload=null);g.ox.prototype.EK.call(this)};g.h=g.Uy.prototype;g.h.getHeight=function(){return this.height};
  10380. g.h.QM=T5(2);g.h.nk=function(){return this.frameCount};
  10381. g.h.isDefault=function(){return this.L.indexOf("default")!==-1};
  10382. g.h.isLoaded=function(T){return this.loaded.has(T)};
  10383. g.h.IK=function(T){var Q=this.Y;Q=Q.replace("$N",this.L);Q=Q.replace("$L",this.level.toString());Q=Q.replace("$M",T.toString());this.signature&&(Q=g.sD(Q,{sigh:this.signature}));return pF(Q)};
  10384. g.h.Fd=function(T){var Q=this.nk()-1;return g.ti(this.T===0?Math.round(T*this.frameCount/this.videoLength):Math.round(T*1E3/this.T),0,Q)};
  10385. g.h.MU=function(){return this.frameCount-1};
  10386. g.h.Bq=function(){return this.frameCount?0:-1};
  10387. g.h.XN=function(){};g.S(R8,qY);R8.prototype.S=function(T,Q){var k=[];T=T.split("|");for(var l=T[0],v=1;v<T.length;v++){var L=this.N(v-1,l,T[v],Q);(this.C||L.getHeight()<180)&&k.push(L)}return k};
  10388. R8.prototype.N=function(T,Q,k,l){return new g.Uy(T,Q,k,l)};g.S(Zd,g.Uy);g.h=Zd.prototype;g.h.nk=function(){return this.S.DL()};
  10389. g.h.Fd=function(T){var Q=this.rows*this.columns*this.N,k=this.S,l=k.a_();T=k.ll(T);return T>l-Q?-1:T};
  10390. g.h.MU=function(){return this.S.a_()};
  10391. g.h.Bq=function(){return this.S.p7()};
  10392. g.h.XN=function(T){this.S=T};g.S(ft,R8);ft.prototype.S=function(T,Q){return R8.prototype.S.call(this,"$N|"+T,Q)};
  10393. ft.prototype.N=function(T,Q,k){return new Zd(T,Q,k,this.isLive)};g.S(g.mR,g.ox);g.h=g.mR.prototype;
  10394. g.h.setData=function(T){T=T||{};var Q=T.errordetail;Q!=null&&(this.errorDetail=Q);var k=T.errorcode;k!=null?this.errorCode=k:T.status==="fail"&&(this.errorCode="auth");var l=T.reason;l!=null&&(this.errorReason=l);var v=T.subreason;v!=null&&(this.by=v);this.clientPlaybackNonce||(this.clientPlaybackNonce=T.cpn||(this.FB.J3()?"r"+g.hu(15):g.hu(16)));this.zg=jG(this.FB.zg,T.livemonitor);LZ5(this,T);var L=T.raw_player_response;if(L)this.ES=L;else{var q=T.player_response;q&&(L=JSON.parse(q))}L&&(this.playerResponse=
  10395. L);if(this.playerResponse){var Y=this.playerResponse.annotations;if(Y)for(var U=g.B(Y),R=U.next();!R.done;R=U.next()){var Z=R.value.playerAnnotationsUrlsRenderer;if(Z){Z.adsOnly&&(this.QV=!0);var f=Z.loadPolicy;f&&(this.annotationsLoadPolicy=JmW[f]);var G=Z.invideoUrl;G&&(this.sK=pF(G));break}}var m=this.playerResponse.attestation;m&&ckC(this,m);var I=this.playerResponse.cotn;I&&(this.cotn=I);var z=this.playerResponse.heartbeatParams;if(z){this.hC=!0;var w=z.heartbeatToken;w&&(this.drmSessionId=z.drmSessionId||
  10396. "",this.heartbeatToken=w,this.p5=Number(z.intervalMilliseconds),this.BC=Number(z.maxRetries),this.ew=!!z.softFailOnError,this.hF=!!z.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=z.heartbeatServerData;var r;this.xE=!((r=z.heartbeatAttestationConfig)==null||!r.requiresAttestation)}var A=this.playerResponse.messages;A&&nKJ(this,A);var D=this.playerResponse.overlay;if(D){var K=D.playerControlsOverlayRenderer;if(K)if(xA5(this,K.controlBgHtml),K.mutedAutoplay){var O=g.t(K.mutedAutoplay,v19);if(O&&
  10397. O.endScreen){var E=g.t(O.endScreen,Lme);E&&E.text&&(this.Mf=g.Rx(E.text))}}else this.mutedAutoplay=!1}var e=this.playerResponse.playabilityStatus;if(e){var vT=e.backgroundability;vT&&vT.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var f5,qJ;if((f5=e.offlineability)==null?0:(qJ=f5.offlineabilityRenderer)==null?0:qJ.offlineable)this.offlineable=!0;var g6=e.contextParams;g6&&(this.contextParams=g6);var QC=e.pictureInPicture;QC&&QC.pictureInPictureRenderer.playableInPip&&(this.pipable=
  10398. !0);e.playableInEmbed&&(this.allowEmbed=!0);var A5=e.ypcClickwrap;if(A5){var Et=A5.playerLegacyDesktopYpcClickwrapRenderer,QJ=A5.ypcRentalActivationRenderer;if(Et)this.wJ=Et.durationMessage||"",this.m0=!0;else if(QJ){var I_=QJ.durationMessage;this.wJ=I_?g.Rx(I_):"";this.m0=!0}}var g$$=e.errorScreen;if(g$$){if(g$$.playerLegacyDesktopYpcTrailerRenderer){var cT=g$$.playerLegacyDesktopYpcTrailerRenderer;this.Hf=cT.trailerVideoId||"";var vg=g$$.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var KW=vg&&
  10399. vg.ypcTrailerRenderer}else if(g$$.playerLegacyDesktopYpcOfferRenderer)cT=g$$.playerLegacyDesktopYpcOfferRenderer;else if(g$$.ypcTrailerRenderer){KW=g$$.ypcTrailerRenderer;var Wm=KW.fullVideoMessage;this.xs=Wm?g.Rx(Wm):"";var LJ,b;this.Hf=((LJ=g.t(KW,q$E))==null?void 0:(b=LJ.videoDetails)==null?void 0:b.videoId)||""}cT&&(this.XQ=cT.itemTitle||"",cT.itemUrl&&(this.jy=cT.itemUrl),cT.itemBuyUrl&&(this.CR=cT.itemBuyUrl),this.A7=cT.itemThumbnail||"",this.IT=cT.offerHeadline||"",this.R0=cT.offerDescription||
  10400. "",this.eO=cT.offerId||"",this.bx=cT.offerButtonText||"",this.Mo=cT.offerButtonFormattedText||null,this.bX=cT.overlayDurationMsec||NaN,this.xs=cT.fullVideoMessage||"",this.E4=!0);if(KW){var Hg=g.t(KW,q$E);if(Hg)this.s1={raw_player_response:Hg};else{var D1=g.t(KW,IME);this.s1=D1?QI(D1):null}this.E4=!0}}}var kb=this.playerResponse.playbackTracking;if(kb){var w$=T,X=J9(kb.googleRemarketingUrl);X&&(this.googleRemarketingUrl=X);var jf=J9(kb.youtubeRemarketingUrl);jf&&(this.youtubeRemarketingUrl=jf);var cg=
  10401. {},qn=J9(kb.ptrackingUrl);if(qn){var tT=eF(qn),ef=tT.oid;ef&&(this.zX=ef);var kE=tT.pltype;kE&&(this.qx=kE);var Qw=tT.ptchn;Qw&&(this.y_=Qw);var tV=tT.ptk;tV&&(this.f5=encodeURIComponent(tV));var d=tT.m;d&&(this.K5=d)}var C=J9(kb.qoeUrl);if(C){for(var N=g.k5(C),u=g.B(Object.keys(N)),H=u.next();!H.done;H=u.next()){var Ut=H.value,W=N[Ut];N[Ut]=Array.isArray(W)?W.join(","):W}this.V9=N;var V=N.cat;V&&(this.V("html5_enable_qoe_cat_list")?this.VF=this.VF.concat(V.split(",")):this.Dz=V);var n=N.live;n&&
  10402. (this.cQ=n);var uy=N.drm_product;uy&&(this.drmProduct=uy)}var p5=J9(kb.videostatsPlaybackUrl);if(p5){var L5=eF(p5),UA=L5.adformat;if(UA){w$.adformat=UA;var DH=this.G(),w6=NOb(UA,this.qU,DH.Y,DH.j);w6&&(this.adFormat=w6)}var k1=L5.aqi;k1&&(w$.ad_query_id=k1);var Xd=L5.autoplay;Xd&&(this.dO=Xd=="1",this.nU=Xd=="1");var xE=L5.autonav;xE&&(this.isAutonav=xE=="1");var NJ=L5.delay;NJ&&(this.QR=aT(NJ));var z8=L5.ei;z8&&(this.eventId=z8);var r6=DE(L5.adcontext);if(r6)try{var a_=LI_(r6);a_&&(this.i_=a_)}catch(T3d){g.rB(Error("Malformed adContext"))}if(r6||
  10403. UA)this.dO=!0;var d$=L5.feature;d$&&(this.wV=d$);var qM=L5.list;qM&&(this.playlistId=qM);var Np=L5.of;Np&&(this.XF=Np);var jY=L5.osid;jY&&(this.osid=jY);var lB=L5.referrer;lB&&(this.referrer=lB);var $E=L5.sdetail;$E&&(this.rZ=$E);var uW=L5.ssrt;uW&&(this.Ap=uW=="1");var Ai=L5.subscribed;Ai&&(this.subscribed=Ai=="1");var yP=L5.uga;yP&&(this.userGenderAge=yP);var Ic=L5.upt;Ic&&(this.LH=Ic);var HG=L5.vm;HG&&(this.videoMetadata=HG);cg.playback=L5}var kA=J9(kb.videostatsWatchtimeUrl);if(kA){var lV=eF(kA),
  10404. q_=lV.ald;q_&&(this.SP=q_);cg.watchtime=lV}var X3=J9(kb.atrUrl);if(X3){var n3=eF(X3);cg.atr=n3}var iS=J9(kb.engageUrl);if(iS){var K3=eF(iS);cg.engage=K3}this.Rx=cg;if(kb.promotedPlaybackTracking){var l5=kb.promotedPlaybackTracking;l5.startUrls&&(this.aS=l5.startUrls);l5.firstQuartileUrls&&(this.O3=l5.firstQuartileUrls);l5.secondQuartileUrls&&(this.vP=l5.secondQuartileUrls);l5.thirdQuartileUrls&&(this.c9=l5.thirdQuartileUrls);l5.completeUrls&&(this.WP=l5.completeUrls);l5.engagedViewUrls&&(l5.engagedViewUrls.length>
  10405. 1&&g.rB(new g.Wy("There are more than one engaged_view_urls.")),this.E6=l5.engagedViewUrls[0])}}var hP=this.playerResponse.playerCueRanges;hP&&hP.length>0&&(this.cueRanges=hP);var tP=this.playerResponse.playerCueRangeSet;tP&&g.S7(this,tP);a:{var BS=this.playerResponse.adPlacements;if(BS)for(var oy=g.B(BS),zd=oy.next();!zd.done;zd=oy.next()){var vW=void 0,L3=void 0,qW=(vW=zd.value.adPlacementRenderer)==null?void 0:(L3=vW.renderer)==null?void 0:L3.videoAdTrackingRenderer;if(qW){var gg=qW;break a}}gg=
  10406. null}var XV=gg;kb&&kb.promotedPlaybackTracking&&XV&&g.rB(new g.Wy("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var gJ;if(!(gJ=XV))a:{for(var MW=g.B(this.playerResponse.adSlots||[]),mh=MW.next();!mh.done;mh=MW.next()){var Id=g.t(mh.value,oA);if(Id===void 0||!KBu(Id))break;var Dt=void 0,PW=(Dt=Id.fulfillmentContent)==null?void 0:Dt.fulfilledLayout,HW=g.t(PW,ER);if(HW&&$K(HW)){gJ=!0;break a}}gJ=!1}gJ&&(this.f9=!0);var t7=this.playerResponse.playerAds;if(t7)for(var v4=
  10407. T,aj=g.B(t7),Sl=aj.next();!Sl.done;Sl=aj.next()){var up=Sl.value;if(up){var LL=up.playerLegacyDesktopWatchAdsRenderer;if(LL){var O6=LL.playerAdParams;if(O6){O6.autoplay=="1"&&(this.nU=this.dO=!0);this.Ek=O6.encodedAdSafetyReason||null;O6.showContentThumbnail!==void 0&&(this.i5=!!O6.showContentThumbnail);v4.enabled_engage_types=O6.enabledEngageTypes;break}}}}var wK=this.playerResponse.playerConfig;if(wK){var wL=wK.manifestlessWindowedLiveConfig;if(wL){var O4=Number(wL.minDvrSequence),qF=Number(wL.maxDvrSequence),
  10408. ho=Number(wL.minDvrMediaTimeMs),MF=Number(wL.maxDvrMediaTimeMs),nH=Number(wL.startWalltimeMs);O4&&(this.sW=O4);ho&&(this.xm=ho/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this)&&(this.Jp=ho/1E3));qF&&(this.Kz=qF);MF&&(this.d5=MF/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this)&&(this.mK=MF/1E3));nH&&(this.Ig=nH/1E3);(O4||ho)&&(qF||MF)&&(this.allowLiveDvr=this.isLivePlayback=this.hj=!0,this.KY=!1)}var sB=wK.daiConfig;if(sB){if(sB.enableDai){this.Xj=
  10409. !0;var Lj=sB.enableServerStitchedDai;Lj&&(this.enableServerStitchedDai=Lj);var O_=sB.enablePreroll;O_&&(this.IS=O_)}var gs;if(sB.daiType==="DAI_TYPE_SS_DISABLED"||((gs=sB.debugInfo)==null?0:gs.isDisabledUnpluggedChannel))this.hd=!0;sB.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Et=!0);sB.allowUstreamerRequestAdconfig&&(this.h8=!0)}var UJ=wK.audioConfig;if(UJ){var pe=UJ.loudnessDb;pe!=null&&(this.uK=pe);var RL5=UJ.trackAbsoluteLoudnessLkfs;RL5!=null&&(this.Pp=RL5);var ZAg=UJ.loudnessTargetLkfs;ZAg!=
  10410. null&&(this.loudnessTargetLkfs=ZAg);UJ.audioMuted&&(this.kh=!0);UJ.muteOnStart&&(this.Rq=!0);var mE=UJ.loudnessNormalizationConfig;if(mE){mE.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);mE.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var fRb=mE.minimumLoudnessTargetLkfs;fRb!=null&&(this.minimumLoudnessTargetLkfs=fRb);var GQ5=mE.maxStatefulTimeThresholdSec;GQ5!=null&&(this.maxStatefulTimeThresholdSec=GQ5)}UJ.playAudioOnly&&(this.OW=!0)}var wuy=wK.playbackEndConfig;
  10411. if(wuy){var mz5=wuy.endSeconds,IRH=wuy.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(mz5&&(this.endSeconds=mz5),IRH&&(this.limitedPlaybackDurationInSeconds=IRH))}var sN=wK.fairPlayConfig;if(sN){var hLT=sN.certificate;hLT&&(this.Jj=DE(hLT));var sRf=Number(sN.keyRotationPeriodMs);sRf>0&&(this.Ps=sRf);var SQu=Number(sN.keyPrefetchMarginMs);SQu>0&&(this.Gt=SQu)}var r5=wK.playbackStartConfig;if(r5){this.BH=Number(r5.startSeconds);var CfH=r5.liveUtcStartSeconds,Bhg=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>
  10412. 0;CfH&&!Bhg&&(this.liveUtcStartSeconds=Number(CfH));var d_u=r5.startPosition;if(d_u){var zLT=d_u.utcTimeMillis;zLT&&!Bhg&&(this.liveUtcStartSeconds=Number(zLT)*.001);var XRX=d_u.streamTimeMillis;XRX&&(this.gt=Number(XRX)*.001)}this.progressBarStartPosition=r5.progressBarStartPosition;this.progressBarEndPosition=r5.progressBarEndPosition}else{var NJ5=wK.skippableSegmentsConfig;if(NJ5){var wRu=NJ5.introSkipDurationMs;wRu&&(this.xz=Number(wRu)/1E3);var dz5=NJ5.outroSkipDurationMs;dz5&&(this.PQ=Number(dz5)/
  10413. 1E3)}}var Am5=wK.skippableIntroConfig;if(Am5){var NhH=Number(Am5.startMs),ANI=Number(Am5.endMs);isNaN(NhH)||isNaN(ANI)||(this.VD=NhH,this.nG=ANI)}var bAI=wK.streamSelectionConfig;bAI&&(this.Fk=Number(bAI.maxBitrate));var rNy=wK.vrConfig;rNy&&(this.B$=rNy.partialSpherical=="1");var IB=wK.webDrmConfig;if(IB){IB.skipWidevine&&(this.Er=!0);var cN5=IB.widevineServiceCert;cN5&&(this.RM=DE(cN5));IB.useCobaltWidevine&&(this.useCobaltWidevine=!0);IB.startWithNoQualityConstraint&&(this.NV=!0)}var W0=wK.mediaCommonConfig;
  10414. if(W0){var S3=W0.dynamicReadaheadConfig;if(S3){this.maxReadAheadMediaTimeMs=S3.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=S3.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=S3.readAheadGrowthRateMs||NaN;var DzH,aRX=W0==null?void 0:(DzH=W0.mediaUstreamerRequestConfig)==null?void 0:DzH.videoPlaybackUstreamerConfig;aRX&&(this.vl=DE(aRX));var b85=W0==null?void 0:W0.sabrContextUpdates;if(b85&&b85.length>0)for(var ueI=g.B(b85),rmu=ueI.next();!rmu.done;rmu=ueI.next()){var Qz=rmu.value;
  10415. if(Qz.type&&Qz.value){var sU9={type:Qz.type,scope:Qz.scope,value:DE(Qz.value)||void 0,sendByDefault:Qz.sendByDefault};this.sabrContextUpdates.set(Qz.type,sU9)}}}var nHy=W0.serverPlaybackStartConfig;nHy&&(this.serverPlaybackStartConfig=nHy);W0.useServerDrivenAbr&&(this.cg=!0);var KWf=W0.requestPipeliningConfig;KWf&&(this.requestPipeliningConfig=KWf)}var xz6=wK.inlinePlaybackConfig;xz6&&(this.L9=!!xz6.showAudioControls);var C$=wK.embeddedPlayerConfig;if(C$){this.embeddedPlayerConfig=C$;var cm5=C$.embeddedPlayerMode;
  10416. if(cm5){var Pfb=this.G();Pfb.xm=cm5;Pfb.L=cm5==="EMBEDDED_PLAYER_MODE_PFL"}var HA5=C$.permissions;HA5&&(this.allowImaMonetization=!!HA5.allowImaMonetization)}var B6=wK.webPlayerConfig;B6&&(B6.gatewayExperimentGroup&&(this.gatewayExperimentGroup=B6.gatewayExperimentGroup),B6.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var $Q=this.playerResponse.streamingData;if($Q){var D_t=$Q.formats;if(D_t){for(var hk=[],tc5=g.B(D_t),a96=tc5.next();!a96.done;a96=tc5.next()){var u16=a96.value;hk.push(u16.itag+
  10417. "/"+u16.width+"x"+u16.height)}this.Sg=hk.join(",");hk=[];for(var OAC=g.B(D_t),njH=OAC.next();!njH.done;njH=OAC.next()){var sR=njH.value,Sg={itag:sR.itag,type:sR.mimeType,quality:sR.quality},pR5=sR.url;pR5&&(Sg.url=pR5);var zD=Vp(sR),SG1=zD.rI,CCe=zD.Fq,BVA=zD.s;zD.vO&&(Sg.url=SG1,Sg.sp=CCe,Sg.s=BVA);hk.push(g.h3(Sg))}this.Wk=hk.join(",")}var K3f=$Q.hlsFormats;if(K3f){var WW6=wK||null,XJ={};if(WW6){var x_I=WW6.audioPairingConfig;if(x_I&&x_I.pairs)for(var $zb=g.B(x_I.pairs),PSb=$zb.next();!PSb.done;PSb=
  10418. $zb.next()){var JNy=PSb.value,H86=JNy.videoItag;XJ[H86]||(XJ[H86]=[]);XJ[H86].push(JNy.audioItag)}}for(var eLg={},FWT=g.B(K3f),tCg=FWT.next();!tCg.done;tCg=FWT.next()){var EHg=tCg.value;eLg[EHg.itag]=EHg.bitrate}for(var yNf=[],iAt=g.B(K3f),O8u=iAt.next();!O8u.done;O8u=iAt.next()){var eY=O8u.value,X_={itag:eY.itag,type:eY.mimeType,url:eY.url,bitrate:eY.bitrate,width:eY.width,height:eY.height,fps:eY.fps},wo=eY.audioTrack;if(wo){var VcH=wo.displayName;VcH&&(X_.name=VcH,X_.audio_track_id=wo.id,wo.audioIsDefault&&
  10419. (X_.is_default="1"))}if(eY.drmFamilies){for(var TQu=[],QzH=g.B(eY.drmFamilies),puC=QzH.next();!puC.done;puC=QzH.next())TQu.push(tq[puC.value]);X_.drm_families=TQu.join(",")}var N7=XJ[eY.itag];if(N7&&N7.length){X_.audio_itag=N7.join(",");var jzT=eLg[N7[0]];jzT&&(X_.bitrate+=jzT)}var k_5=MtH(eY);k_5&&(X_.eotf=k_5);eY.audioChannels&&(X_.audio_channels=eY.audioChannels);yNf.push(g.h3(X_))}this.hlsFormats=yNf.join(",")}var W3T=$Q.licenseInfos;if(W3T&&W3T.length>0){for(var lmf={},oR5=g.B(W3T),$_u=oR5.next();!$_u.done;$_u=
  10420. oR5.next()){var vRt=$_u.value,LGH=vRt.drmFamily,qxg=vRt.url;LGH&&qxg&&(lmf[tq[LGH]]=qxg)}this.jY=lmf}var gR5=$Q.drmParams;gR5&&(this.drmParams=gR5);var MJJ=$Q.dashManifestUrl;MJJ&&(this.DP=g.sD(MJJ,{cpn:this.clientPlaybackNonce}));var Yx6=$Q.hlsManifestUrl;Yx6&&(this.hlsvp=Yx6);var Umy=$Q.probeUrl;Umy&&(this.probeUrl=pF(g.sD(Umy,{cpn:this.clientPlaybackNonce})));var R6y=$Q.serverAbrStreamingUrl;R6y&&(this.Sf=new g.J_(R6y,!0))}var ZrX=this.playerResponse.trackingParams;ZrX&&(this.Bd=ZrX);var Cl=this.playerResponse.videoDetails;
  10421. if(Cl){var wc=T,Jmy=Cl.videoId;Jmy&&(this.videoId=Jmy,wc.video_id||(wc.video_id=Jmy));var e$y=Cl.title;e$y&&(this.title=e$y,wc.title||(wc.title=e$y));var F35=Cl.lengthSeconds;F35&&(this.lengthSeconds=Number(F35),wc.length_seconds||(wc.length_seconds=F35));var fmy=Cl.keywords;fmy&&(this.keywords=YgC(fmy));var EjT=Cl.channelId;EjT&&(this.hH=EjT,wc.ucid||(wc.ucid=EjT));var G_6=Cl.viewCount;G_6&&(this.rawViewCount=Number(G_6));var ymJ=Cl.author;ymJ&&(this.author=ymJ,wc.author||(wc.author=ymJ));var mmf=
  10422. Cl.shortDescription;mmf&&(this.shortDescription=mmf);var ImJ=Cl.isCrawlable;ImJ&&(this.isListed=ImJ);var h6y=Cl.musicVideoType;h6y&&(this.musicVideoType=h6y);var i8f=Cl.isLive;i8f!=null&&(this.isLivePlayback=i8f);if(i8f||Cl.isUpcoming)this.isPremiere=!Cl.isLiveContent;var szX=Cl.thumbnail;szX&&(this.j=$L(szX));var SxJ=Cl.isExternallyHostedPodcast;SxJ&&(this.isExternallyHostedPodcast=SxJ);var VCb=Cl.viewerLivestreamJoinPosition;if(VCb==null?0:VCb.utcTimeMillis)this.Bt=aT(VCb.utcTimeMillis);var C$t=
  10423. wK||null,T_I=T;Cl.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Cl.isUpcoming&&(this.isUpcoming=!0);if(Cl.isPostLiveDvr){this.KY=!0;var BQt=Cl.latencyClass;BQt&&(this.latencyClass=e$W[BQt]||"UNKNOWN");Cl.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Qc5=!1;this.zg?(this.allowLiveDvr=BL()?!0:EG&&jL<5?!1:!0,this.isLivePlayback=!0):Cl.isLive?(T_I.livestream="1",this.allowLiveDvr=Cl.isLiveDvrEnabled?BL()?!0:EG&&jL<5?!1:!0:!1,this.partnerId=27,Qc5=!0):Cl.isUpcoming&&(Qc5=
  10424. !0);if(Cl.isLive||this.zg){Cl.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var z6t=Cl.latencyClass;z6t&&(this.latencyClass=e$W[z6t]||"UNKNOWN");var XJ5=Cl.liveChunkReadahead;XJ5&&(this.liveChunkReadahead=XJ5);var c3=C$t&&C$t.livePlayerConfig;if(c3){c3.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);c3.hasSubfragmentedWebm&&(this.nP=!0);c3.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var wJy=c3.liveExperimentalContentId;wJy&&(this.liveExperimentalContentId=Number(wJy));
  10425. var dmg=c3.isLiveHeadPlayable;this.V("html5_live_head_playable")&&dmg!=null&&(this.isLiveHeadPlayable=dmg)}}Qc5&&(this.isLivePlayback=!0,T_I.adformat&&T_I.adformat.split("_")[1]!=="8"||this.D.push("heartbeat"))}var NQ5=Cl.isPrivate;NQ5!==void 0&&(this.isPrivate=jG(this.isPrivate,NQ5))}if(e){var AUb=Cl||null,bru=!1,DC=e.errorScreen;bru=DC&&(DC.playerLegacyDesktopYpcOfferRenderer||DC.playerLegacyDesktopYpcTrailerRenderer||DC.ypcTrailerRenderer)?!0:AUb&&AUb.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE",
  10426. "FULLSCREEN_ONLY"].includes(e.status);if(!bru){this.errorCode=sBy(e.errorCode)||"auth";var Af=DC&&DC.playerErrorMessageRenderer;if(Af){this.playerErrorMessageRenderer=Af;var rUy=Af.reason;rUy&&(this.errorReason=g.Rx(rUy));var jc5=Af.subreason;jc5&&(this.by=g.Rx(jc5),this.n5=jc5)}else this.errorReason=e.reason||null;var kSC=e.status;if(kSC==="LOGIN_REQUIRED")this.errorDetail="1";else if(kSC==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(kSC==="AGE_CHECK_REQUIRED"){var cU5=e.errorScreen,DmI=
  10427. cU5&&cU5.playerKavRenderer;this.errorDetail=DmI&&DmI.kavUrl?"4":"3"}else this.errorDetail=e.isBlockedInRestrictedMode?"5":"0"}}var am6=this.playerResponse.interstitialPods;am6&&ujy(this,am6);this.sK&&this.eventId&&(this.sK=oU(this.sK,{ei:this.eventId}));var lOu=this.playerResponse.captions;if(lOu&&lOu.playerCaptionsTracklistRenderer)a:{var dc=lOu.playerCaptionsTracklistRenderer;this.captionTracks=[];if(dc.captionTracks)for(var uMT=g.B(dc.captionTracks),oyg=uMT.next();!oyg.done;oyg=uMT.next()){var NF=
  10428. oyg.value,nR5=gN6(NF.baseUrl);if(!nR5)break a;var vyu={is_translateable:!!NF.isTranslatable,languageCode:NF.languageCode,languageName:NF.name&&g.Rx(NF.name),url:nR5,vss_id:NF.vssId,kind:NF.kind};vyu.name=NF.trackName;vyu.displayName=NF.name&&g.Rx(NF.name);this.captionTracks.push(new g.HB(vyu))}this.B9=dc.audioTracks||[];this.eF=dc.defaultAudioTrackIndex||0;this.RS=[];if(dc.translationLanguages)for(var KG5=g.B(dc.translationLanguages),LYb=KG5.next();!LYb.done;LYb=KG5.next()){var aV=LYb.value,jV={};
  10429. jV.languageCode=aV.languageCode;jV.languageName=g.Rx(aV.languageName);if(aV.translationSourceTrackIndices){jV.translationSourceTrackIndices=[];for(var xmb=g.B(aV.translationSourceTrackIndices),qvI=xmb.next();!qvI.done;qvI=xmb.next())jV.translationSourceTrackIndices.push(qvI.value)}if(aV.excludeAudioTrackIndices){jV.excludeAudioTrackIndices=[];for(var P$I=g.B(aV.excludeAudioTrackIndices),gyH=P$I.next();!gyH.done;gyH=P$I.next())jV.excludeAudioTrackIndices.push(gyH.value)}this.RS.push(jV)}this.uL=[];
  10430. if(dc.defaultTranslationSourceTrackIndices)for(var HrC=g.B(dc.defaultTranslationSourceTrackIndices),Mku=HrC.next();!Mku.done;Mku=HrC.next())this.uL.push(Mku.value);this.U2=!!dc.contribute&&!!dc.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.BH=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&
  10431. KEg(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var tJX;this.compositeLiveIngestionOffsetToken=(tJX=this.playerResponse.playbackTracking)==null?void 0:tJX.compositeLiveIngestionOffsetToken;var Ory;this.compositeLiveStatusToken=(Ory=this.playerResponse.playbackTracking)==null?void 0:Ory.compositeLiveStatusToken;this.V("html5_fill_default_mosaic_audio_track_id")&&Ra(this)&&(this.FB.K_=TqT(this))}hL(this,T);T.queue_info&&(this.queueInfo=T.queue_info);var pJ5=T.hlsdvr;
  10432. pJ5!=null&&(this.allowLiveDvr=Number(pJ5)===1?BL()?!0:EG&&jL<5?!1:!0:!1);this.adQueryId=T.ad_query_id||null;this.Ek||(this.Ek=T.encoded_ad_safety_reason||null);this.kh=jG(this.kh,T.infringe||T.muted);this.Be=T.authkey;this.OX=T.authuser;this.mutedAutoplay=jG(this.mutedAutoplay,T&&T.playmuted);this.mutedAutoplayDurationMode=lu(this.mutedAutoplayDurationMode,T&&T.muted_autoplay_duration_mode);this.iL=jG(this.iL,T&&T.mutedautoplay);var bY=T.length_seconds;bY&&(this.lengthSeconds=typeof bY==="string"?
  10433. aT(bY):bY);if(this.isAd()||this.xF||!g.gi(g.M0(this.FB)))this.endSeconds=lu(this.endSeconds,this.PQ||T.end||T.endSeconds);else{var zIp=g.M0(this.FB),ro=this.lengthSeconds;switch(zIp){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ro>30?this.limitedPlaybackDurationInSeconds=30:ro<30&&ro>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=ro*.2}}this.Bd=o1(this.Bd,T.itct);this.FK=jG(this.FK,T.is_live_destination);
  10434. this.isLivePlayback=jG(this.isLivePlayback,T.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Cc();T.isUpcoming&&(this.isUpcoming=jG(this.isUpcoming,T.isUpcoming));this.KY=jG(this.KY,T.post_live_playback);this.hj&&(this.KY=!1);this.isMdxPlayback=jG(this.isMdxPlayback,T.mdx);var c6=T.mdx_control_mode;c6&&(this.mdxControlMode=typeof c6==="number"?c6:aT(c6));this.isInlinePlaybackNoAd=jG(this.isInlinePlaybackNoAd,T.is_inline_playback_no_ad);this.Gg=lu(this.Gg,T.reload_count);
  10435. this.reloadReason=o1(this.reloadReason,T.reload_reason);this.i5=jG(this.i5,T.show_content_thumbnail);this.cycToken=T.cyc||null;var WG5=WB(T);Object.keys(WG5).length>0&&(this.j=WG5);this.i9=o1(this.i9,T.vvt);this.mdxEnvironment=o1(this.mdxEnvironment,T.mdx_environment);T.source_container_playlist_id&&(this.sourceContainerPlaylistId=T.source_container_playlist_id);T.serialized_mdx_metadata&&(this.serializedMdxMetadata=T.serialized_mdx_metadata);this.yuj=T.osig;this.eventId||(this.eventId=T.eventid);
  10436. this.osid||(this.osid=T.osid);this.playlistId=o1(this.playlistId,T.list);T.index&&(this.playlistIndex=this.playlistIndex===void 0?lu(0,T.index):lu(this.playlistIndex,T.index));this.p8=T.pyv_view_beacon_url;this.DO=T.pyv_quartile25_beacon_url;this.aW=T.pyv_quartile50_beacon_url;this.M9=T.pyv_quartile75_beacon_url;this.f8=T.pyv_quartile100_beacon_url;var $mH=T.session_data;!this.H2&&$mH&&(this.H2=Vt($mH,"&").feature);this.isFling=lu(this.isFling?1:0,T.is_fling)===1;this.vnd=lu(this.vnd,T.vnd);this.forceAdsUrl=
  10437. o1(this.forceAdsUrl,T.force_ads_url);this.w8=o1(this.w8,T.ctrl);this.SO=o1(this.SO,T.ytr);this.jg=T.ytrcc;this.gF=T.ytrexp;this.oe=T.ytrext;this.pG=o1(this.pG,T.adformat);this.qU=o1(this.qU,T.attrib);this.slotPosition=lu(this.slotPosition,T.slot_pos);this.breakType=T.break_type;this.Ap=jG(this.Ap,T.ssrt);this.videoId=LY(T)||this.videoId;this.B=o1(this.B,T.vss_credentials_token);this.Yz=o1(this.Yz,T.vss_credentials_token_type);this.OW=jG(this.OW,T.audio_only);this.p_=jG(this.p_,T.aac_high);this.Qd=
  10438. jG(this.Qd,T.prefer_low_quality_audio);this.tQ=jG(this.tQ,T.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?T.qoe_cat&&(this.VF=this.VF.concat(T.qoe_cat.split(","))):this.Dz=o1(this.Dz,T.qoe_cat);this.jl=jG(this.jl,T.download_media);var JUu=T.prefer_gapless;this.C=JUu!=null?jG(this.C,JUu):this.C?this.C:this.FB.preferGapless&&this.FB.supportsGaplessShorts();Uug(this.playerResponse)&&this.D.push("ad");var e6J=T.adaptive_fmts;e6J&&(this.adaptiveFormats=e6J,this.T9("adpfmts",{},!0));var FGy=
  10439. T.allow_embed;FGy&&(this.allowEmbed=Number(FGy)===1);var ERX=T.backgroundable;ERX&&(this.backgroundable=Number(ERX)===1);var yU5=T.autonav;yU5&&(this.isAutonav=Number(yU5)===1);var irf=T.autoplay;irf&&(this.dO=this.nU=Number(irf)===1);var VJJ=T.iv_load_policy;VJJ&&(this.annotationsLoadPolicy=kq(this.annotationsLoadPolicy,VJJ,YL));var TXu=T.cc_lang_pref;TXu&&(this.captionsLanguagePreference=o1(TXu,this.captionsLanguagePreference));var Qmu=T.cc_load_policy;Qmu&&(this.KR=kq(this.KR,Qmu,YL));var jmg;
  10440. this.deviceCaptionsOn=(jmg=T.device_captions_on)!=null?jmg:void 0;var kz5;this.ys=(kz5=T.device_captions_lang_pref)!=null?kz5:"";var ls5;this.fh=(ls5=T.viewer_selected_caption_langs)!=null?ls5:[];var oCb=T.cached_load;oCb&&(this.LX=jG(this.LX,oCb));if(T.dash==="0"||T.dash===0||T.dash===!1)this.DM=!0;var vCX=T.dashmpd;vCX&&(this.DP=g.sD(vCX,{cpn:this.clientPlaybackNonce}));var LrH=T.delay;LrH&&(this.QR=aT(LrH));var Yv5=this.PQ||T.end;if(this.OG?Yv5!=null:Yv5!=void 0)this.clipEnd=lu(this.clipEnd,Yv5);
  10441. var qhX=T.fmt_list;qhX&&(this.Sg=qhX);T.heartbeat_preroll&&this.D.push("heartbeat");this.GT=-Math.floor(Math.random()*10);this.nR=-Math.floor(Math.random()*40);var gC5=T.is_listed;gC5&&(this.isListed=jG(this.isListed,gC5));var MrJ=T.is_private;MrJ&&(this.isPrivate=jG(this.isPrivate,MrJ));var YhJ=T.is_dni;YhJ&&(this.hh=jG(this.hh,YhJ));var Uvb=T.dni_color;Uvb&&(this.v5=o1(this.v5,Uvb));var RwJ=T.pipable;RwJ&&(this.pipable=jG(this.pipable,RwJ));this.QO=(this.Xd=this.pipable&&this.FB.QV)&&!this.FB.showMiniplayerButton;
  10442. var Zft=T.paid_content_overlay_duration_ms;Zft&&(this.paidContentOverlayDurationMs=aT(Zft));var fst=T.paid_content_overlay_text;fst&&(this.paidContentOverlayText=fst);var Gzg=T.url_encoded_fmt_stream_map;Gzg&&(this.Wk=Gzg);var mvC=T.hls_formats;mvC&&(this.hlsFormats=mvC);var Is6=T.hlsvp;Is6&&(this.hlsvp=Is6);var DI=T.live_start_walltime;DI&&(this.rhH=typeof DI==="number"?DI:aT(DI));var av=T.live_manifest_duration;av&&(this.uR=typeof av==="number"?av:aT(av));var hwt=T.player_params;hwt&&(this.playerParams=
  10443. hwt);var smy=T.partnerid;smy&&(this.partnerId=lu(this.partnerId,smy));var Shf=T.probe_url;Shf&&(this.probeUrl=pF(g.sD(Shf,{cpn:this.clientPlaybackNonce})));var Urt=T.pyv_billable_url;Urt&&sPb(Urt)&&(this.E6=Urt);var ROH=T.pyv_conv_url;ROH&&sPb(ROH)&&(this.vF=ROH);Uy5(this,T);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.BH||this.xz||T.start||T.startSeconds)&&this.T9("lss",{css:this.startSeconds,pcss:this.BH,iss:this.xz,ps:T.start||void 0,pss:T.startSeconds||
  10444. void 0}):this.h3=this.startSeconds=lu(this.startSeconds,this.BH||this.xz||T.start||T.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var C4t=T.live_utc_start;if(C4t!=null)this.liveUtcStartSeconds=Number(C4t);else{var Z2t=this.startSeconds;Z2t&&isFinite(Z2t)&&Z2t>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var BX5=T.utc_start_millis;BX5&&(this.liveUtcStartSeconds=Number(BX5)*.001)}var zwu=T.stream_time_start_millis;
  10445. zwu&&(this.gt=Number(zwu)*.001);var fOb=this.xz||T.start;(this.OG?fOb==null||Number(T.resume)===1:fOb==void 0||T.resume=="1")||this.isLivePlayback||(this.clipStart=lu(this.clipStart,fOb));var X7X=T.url_encoded_third_party_media;X7X&&(this.U1=jS(X7X));var GSt=T.ypc_offer_button_formatted_text;if(GSt){var w76=JSON.parse(GSt);this.Mo=w76!=null?w76:null;this.Cf=GSt}var dvJ=T.ypc_offer_button_text;dvJ&&(this.bx=dvJ);var NXg=T.ypc_offer_description;NXg&&(this.R0=NXg);var AAX=T.ypc_offer_headline;AAX&&(this.IT=
  10446. AAX);var bfy=T.ypc_full_video_message;bfy&&(this.xs=bfy);var rA5=T.ypc_offer_id;rA5&&(this.eO=rA5);var cAf=T.ypc_buy_url;cAf&&(this.CR=cAf);var Dv5=T.ypc_item_thumbnail;Dv5&&(this.A7=Dv5);var asT=T.ypc_item_title;asT&&(this.XQ=asT);var uIg=T.ypc_item_url;uIg&&(this.jy=uIg);var nCt=T.ypc_vid;nCt&&(this.Hf=nCt);T.ypc_overlay_timeout&&(this.bX=Number(T.ypc_overlay_timeout));var Kr5=T.ypc_trailer_player_vars;Kr5&&(this.s1=QI(Kr5));var xvf=T.ypc_original_itct;xvf&&(this.id_=xvf);this.hH=o1(this.hH,T.ucid);
  10447. this.O6=T.storyboard_spec||null;this.Ws=T.live_storyboard_spec||null;this.iD=T.iv_endscreen_url||null;this.E4=jG(this.E4,T.ypc_module);this.m0=jG(this.m0,T.ypc_clickwrap_module);this.E4&&this.D.push("ypc");this.m0&&this.D.push("ypc_clickwrap");this.EV={video_id:T.video_id,eventid:T.eventid,cbrand:T.cbrand,cbr:T.cbr,cbrver:T.cbrver,c:T.c,cver:T.cver,ctheme:T.ctheme,cplayer:T.cplayer,cmodel:T.cmodel,cnetwork:T.cnetwork,cos:T.cos,cosver:T.cosver,cplatform:T.cplatform,user_age:T.user_age,user_display_image:T.user_display_image,
  10448. user_display_name:T.user_display_name,user_gender:T.user_gender,csi_page_type:T.csi_page_type,csi_service_name:T.csi_service_name,enablecsi:T.enablecsi,enabled_engage_types:T.enabled_engage_types};qgt(this,T);var P4u=T.cotn;P4u&&(this.cotn=P4u);if(zDT(this))uO(this)&&(this.isLivePlayback&&this.DP&&(this.Hl=!0),this.Jj&&(this.Xm=!0));else if(XhX(this))this.Hl=!0;else{var Hfy,trI,Of5=((Hfy=this.playerResponse)==null?void 0:(trI=Hfy.streamingData)==null?void 0:trI.adaptiveFormats)||[];if(Of5.length>
  10449. 0)var C7=BHg(this,Of5);else{this.V("html5_log_pafmtstr_ctmp")&&this.T9("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var p7b=this.adaptiveFormats;if(p7b&&!uO(this)){this.FB.N.L&&(Qa=!0);var u3=Oy(p7b),mrC=this.jY,Wrg=this.lengthSeconds,XDp=this.isLivePlayback,BO=this.KY,nx=this.FB,wDp=zjH(u3);if(XDp||BO){var $vH=nx==null?void 0:nx.experiments,ad=new P9("",$vH,!0);ad.Cc=!0;ad.isManifestless=!0;ad.S=!BO;ad.isLive=!BO;ad.KY=BO;for(var JAt=g.B(u3),IOt=JAt.next();!IOt.done;IOt=JAt.next()){var Kx=
  10450. IOt.value,ew5=py(Kx,mrC),k_=W9(Kx.url,Kx.sp,Kx.s),Fru=k_.get("id");Fru&&Fru.includes("%7E")&&(ad.D=!0);var ECy=void 0,d2d=(ECy=$vH)==null?void 0:ECy.Wd("html5_max_known_end_time_rebase"),NV1=Number(Kx.target_duration_sec)||5,AH9=Number(Kx.max_dvr_duration_sec)||14400,yAH=Number(k_.get("mindsq")||k_.get("min_sq")||"0"),ifI=Number(k_.get("maxdsq")||k_.get("max_sq")||"0")||Infinity;ad.sW=ad.sW||yAH;ad.Kz=ad.Kz||ifI;var bh1=!Wj(ew5.mimeType);k_&&ny(ad,new sE(k_,ew5,{hW:NV1,ly:bh1,Bf:AH9,sW:yAH,Kz:ifI,
  10451. P$:300,KY:BO,Ic:d2d}))}var VrX=ad}else{if(wDp==="FORMAT_STREAM_TYPE_OTF"){var uY=Wrg;uY=uY===void 0?0:uY;var xl=new P9("",nx==null?void 0:nx.experiments,!1);xl.duration=uY||0;for(var To5=g.B(u3),hO5=To5.next();!hO5.done;hO5=To5.next()){var P3=hO5.value,scC=py(P3,mrC,xl.duration),SvT=W9(P3.url,P3.sp,P3.s);if(SvT)if(scC.streamType==="FORMAT_STREAM_TYPE_OTF")ny(xl,new Sq(SvT,scC,"sq/0"));else{var rHT=Vn(P3.init),cHJ=Vn(P3.index);ny(xl,new Dj(SvT,scC,rHT,cHJ))}}xl.isOtf=!0;var Qv5=xl}else{var n$=Wrg;
  10452. n$=n$===void 0?0:n$;var K$=new P9("",nx==null?void 0:nx.experiments,!1);K$.duration=n$||0;for(var jvu=g.B(u3),Ci5=jvu.next();!Ci5.done;Ci5=jvu.next()){var H3=Ci5.value,D2m=py(H3,mrC,K$.duration),aqE=Vn(H3.init),uwe=Vn(H3.index),kDJ=W9(H3.url,H3.sp,H3.s);kDJ&&ny(K$,new Dj(kDJ,D2m,aqE,uwe))}Qv5=K$}VrX=Qv5}var lI5=VrX;if(u3.length>0){var oxg=u3[0];if(this.G().playerStyle==="hangouts-meet"&&oxg.url){var n5J=g.k5(oxg.url);this.Qm=this.Qm||Number(n5J.expire)}}var K6d=this.isLivePlayback&&!this.KY&&!this.hj&&
  10453. !this.isPremiere;this.V("html5_live_head_playable")&&(!nt(this)&&K6d&&this.T9("missingLiveHeadPlayable",{}),this.FB.z9==="yt"&&(lI5.sK=!0));C7=lI5}else C7=null;this.T9("pafmts",{isManifestFilled:!!C7})}if(C7){Pv(this,C7);var vxy=!0}else vxy=!1;vxy?this.enableServerStitchedDai=this.enableServerStitchedDai&&Kt(this):this.DP&&(this.FB.z9==="yt"&&this.Cc()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?this.T9("deprecateMflFallback",{}):this.Hl=!0)}var B_I=T.adpings;
  10454. B_I&&(this.cf=B_I?QI(B_I):null);var LT5=T.feature;LT5&&(this.wV=LT5);var qNT=T.referrer;qNT&&(this.referrer=qNT);this.clientScreenNonce=o1(this.clientScreenNonce,T.csn);this.tO=lu(this.tO,T.root_ve_type);this.Y3=lu(this.Y3,T.kids_age_up_mode);this.OG||T.kids_app_info==void 0||(this.kidsAppInfo=T.kids_app_info);this.OG&&T.kids_app_info!=null&&(this.kidsAppInfo=T.kids_app_info);this.OR=jG(this.OR,T.upg_content_filter_mode);this.unpluggedFilterModeType=lu(this.unpluggedFilterModeType,T.unplugged_filter_mode_type);
  10455. var gx5=T.unplugged_location_info;gx5&&(this.F_=gx5);var M3y=T.unplugged_partner_opt_out;M3y&&(this.FZ=o1("",M3y));this.qq=jG(this.qq,T.disable_watch_next);this.Q3=o1(this.Q3,T.internal_ip_override);this.LQ=!!T.is_yto_interstitial;(this.interstitials.length||this.LQ)&&this.D.push("yto");var YNT=T.OU;YNT&&(this.OU=YNT);this.z9=o1(this.z9,T.csi_timer);T.watchUrl&&(this.watchUrl=T.watchUrl);var lv=T.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&lv&&BO6(this,lv);if(lv==null?0:
  10456. lv.ustreamerConfig)this.Vl=DE(lv.ustreamerConfig);var U7X,RN5,Z$5=lv==null?void 0:(U7X=lv.loggingContext)==null?void 0:(RN5=U7X.qoeLoggingContext)==null?void 0:RN5.serializedContextData;Z$5&&(this.YhO=Z$5);g.Qk(this.FB)&&this.FB.RM&&(this.embedsRct=o1(this.embedsRct,T.rct),this.embedsRctn=o1(this.embedsRctn,T.rctn));T.embed_config&&(this.bR=T.embed_config);this.dC=this.dC||!!T.pause_at_start;T.default_active_source_video_id&&(this.defaultActiveSourceVideoId=T.default_active_source_video_id)};
  10457. g.h.G=function(){return this.FB};
  10458. g.h.V=function(T){return this.FB.V(T)};
  10459. g.h.Yo=function(){return!this.isLivePlayback||this.allowLiveDvr};
  10460. g.h.hasSupportedAudio51Tracks=function(){var T;return!((T=this.YP)==null||!T.zg)};
  10461. g.h.getUserAudio51Preference=function(){var T=1;BB(this.FB)&&this.V("html5_ytv_surround_toggle_default_off")?T=0:g.s8(this.FB)&&this.isLivePlayback&&this.bl()&&(T=0);var Q;return(Q=g.cy("yt-player-audio51"))!=null?Q:T};
  10462. g.h.uO=function(){this.wd()||(this.T.S||this.T.unsubscribe("refresh",this.uO,this),this.a6(-1))};
  10463. g.h.a6=function(T){if(!this.isLivePlayback||!this.N||this.N.flavor!=="fairplay"){var Q=wMX(this.T,this.Q5);if(Q.length>0){for(var k=g.B(Q),l=k.next();!l.done;l=k.next())l=l.value,l.startSecs=Math.max(l.startSecs,this.SY()),this.V("html5_cuepoint_identifier_logging")&&l.event==="start"&&this.T9("cuepoint",{pubCue:l.identifier,segNum:T});this.publish("cuepointupdated",Q,T);this.Q5+=Q.length;if(Kt(this)&&this.FB.J3())for(Q=g.B(Q),k=Q.next();!k.done;k=Q.next())k=k.value,this.T9("cuepoint",{segNum:T,event:k.event,
  10464. startSecs:k.startSecs,id:k.identifier.slice(-16)}),k.event==="start"&&(k=k.startSecs,this.mS.start=this.Ah,this.mS.end=k+3)}}};
  10465. g.h.MC=function(){this.wd()||(this.loading=!1,this.publish("dataloaded"))};
  10466. g.h.bl=function(){return this.X0!==void 0?this.X0:this.X0=!!this.jY||!!this.T&&Pr(this.T)};
  10467. g.h.pK=function(T){var Q=this;if(this.wd())return bC();this.t6=this.u9=this.L=null;hy(this,"html5_high_res_logging_always")&&(this.FB.uK=!0);return ACf(this,T).then(void 0,function(){return rCX(Q,T)}).then(void 0,function(){return cCX(Q)}).then(void 0,function(){return aDf(Q)})};
  10468. g.h.Tj=function(T){this.L=T;b15(this,this.L.getAvailableAudioTracks());if(this.L){T=g.B(this.L.videoInfos);for(var Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var k=Q.containerType;k!==0&&(this.Bs[k]=Q.id)}}T=this.getAvailableAudioTracks();T=T.concat(this.FU);for(Q=0;Q<this.B9.length;Q++){k=this.B9[Q];for(var l=0;l<T.length;l++){var v=T[l],L=v.MY.id===k.audioTrackId;if(v.MY.isDefault&&Q===this.eF||L){if(k.captionTrackIndices)for(L=0;L<k.captionTrackIndices.length;L++)v.captionTracks[L]=this.captionTracks[k.captionTrackIndices[L]];
  10469. k.defaultCaptionTrackIndex!==void 0&&(v.L=this.captionTracks[k.defaultCaptionTrackIndex]);k.forcedCaptionTrackIndex!==void 0&&(v.T=this.captionTracks[k.forcedCaptionTrackIndex]);v.S=k.visibility||"UNKNOWN";v.captionsInitialState=k.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(this.N&&this.L&&this.L.videoInfos&&!(this.L.videoInfos.length<=0)&&(T=Pj(this.L.videoInfos[0]),this.N.flavor==="fairplay"!==T))for(Q=g.B(this.NE),k=Q.next();!k.done;k=Q.next())if(k=k.value,T===(k.flavor==="fairplay")){this.N=
  10470. k;break}};
  10471. g.h.l7=function(){if(this.cotn)return null;var T=g.ZX(this.FB)||this.V("web_l3_storyboard");if(!this.Lp)if(this.playerResponse&&this.playerResponse.storyboards){var Q=this.playerResponse.storyboards,k=Q.playerStoryboardSpecRenderer;k&&k.spec?this.Lp=new R8(k.spec,this.lengthSeconds,void 0,!1,T):(Q=Q.playerLiveStoryboardSpecRenderer)&&Q.spec&&this.T&&(k=DJt(this.T.T).index)&&(this.Lp=new ft(Q.spec,this.T.isLive,k,T))}else this.O6?this.Lp=new R8(this.O6,this.lengthSeconds,void 0,!1,T):this.Ws&&this.T&&
  10472. (Q=DJt(this.T.T).index)&&(this.Lp=new ft(this.Ws,this.T.isLive,Q,T));return this.Lp};
  10473. g.h.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var T=this.playerResponse.storyboards;return(T=T.playerStoryboardSpecRenderer||T.playerLiveStoryboardSpecRenderer)&&T.spec||null}return this.O6||this.Ws};
  10474. g.h.EM=function(){return this.T&&!isNaN(this.T.EM())?this.T.EM():Kt(this)?0:this.lengthSeconds};
  10475. g.h.SY=function(){return this.T&&!isNaN(this.T.SY())?this.T.SY():0};
  10476. g.h.getPlaylistSequenceForTime=function(T){if(this.T&&this.S){var Q=this.T.T[this.S.id];if(!Q)return null;var k=Q.index.ll(T);Q=Q.index.getStartTime(k);return{sequence:k,elapsed:Math.floor((T-Q)*1E3)}}return null};
  10477. g.h.Hk=function(){return!this.wd()&&!(!this.videoId&&!this.U1)};
  10478. g.h.Wm=function(){var T,Q,k;return!!this.adaptiveFormats||!!((T=this.playerResponse)==null?0:(Q=T.streamingData)==null?0:(k=Q.adaptiveFormats)==null?0:k.length)};
  10479. g.h.isLoaded=function(){return I8(this)&&!this.Hl&&!this.Xm};
  10480. g.h.rO=function(T){T||(T="hqdefault.jpg");var Q=this.j[T];return Q||this.FB.qO||T==="pop1.jpg"||T==="pop2.jpg"||T==="sddefault.jpg"||T==="hq720.jpg"||T==="maxresdefault.jpg"?Q:Iu(this.FB,this.videoId,T)};
  10481. g.h.Cc=function(){return this.isLivePlayback||this.KY||this.hj||!(!this.liveUtcStartSeconds||!this.uR)};
  10482. g.h.isOtf=function(){return!!this.T&&(this.T.isOtf||!this.KY&&!this.isLivePlayback&&this.T.S)};
  10483. g.h.getAvailableAudioTracks=function(){return this.L?this.L.getAvailableAudioTracks().length>0?this.L.getAvailableAudioTracks():this.Yh||[]:[]};
  10484. g.h.getAudioTrack=function(){var T=this;if(this.Y&&!Pj(this.Y)){var Q=g.sA(this.getAvailableAudioTracks(),function(v){return v.id===T.Y.id}),k;
  10485. if(!Q&&((k=this.Y.MY)==null?0:k.id)){var l=this.Y.MY.id;Q=g.sA(this.getAvailableAudioTracks(),function(v){return v.MY.id===l});
  10486. this.T9("nat",{id:this.Y.id,track:!!Q})}return Q||this.FU}if(this.Yh){if(!this.Z6)for(Q=g.B(this.Yh),k=Q.next();!k.done;k=Q.next())if(k=k.value,k.MY.getIsDefault()){this.Z6=k;break}return this.Z6||this.FU}return this.FU};
  10487. g.h.getPlayerResponse=function(){return this.playerResponse};
  10488. g.h.getWatchNextResponse=function(){return this.e6};
  10489. g.h.getHeartbeatResponse=function(){return this.cM};
  10490. g.h.fB=function(){return this.watchUrl?this.watchUrl:this.FB.getVideoUrl(this.videoId)};
  10491. g.h.vI=function(){return!!this.T&&(m3t(this.T)||IlC(this.T)||hj5(this.T))};
  10492. g.h.getEmbeddedPlayerResponse=function(){return this.MV};
  10493. g.h.aD=function(){return(this.eventLabel||this.FB.i9)==="shortspage"};
  10494. g.h.isAd=function(){return!!this.adFormat};
  10495. g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
  10496. g.h.lf=function(){var T,Q,k;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((T=this.playerResponse)==null?0:(Q=T.playerConfig)==null?0:(k=Q.daiConfig)==null?0:k.ssaEnabledPlayback)};
  10497. g.h.fq=function(){return this.hC};
  10498. g.h.E3=function(){return this.E4||this.QE};
  10499. g.h.jF=function(){return hy(this,"html5_samsung_vp9_live")};
  10500. g.h.T9=function(T,Q,k){this.publish("ctmp",T,Q,k)};
  10501. g.h.HW=function(T,Q,k){this.publish("ctmpstr",T,Q,k)};
  10502. g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
  10503. g.h.getGetAdBreakContext=function(T,Q){T=T===void 0?NaN:T;Q=Q===void 0?NaN:Q;var k={isSabr:cv(this)},l,v=(l=this.getHeartbeatResponse())==null?void 0:l.adBreakHeartbeatParams;v&&(k.adBreakHeartbeatParams=v);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(T)&&!isNaN(Q)){Q=T-Q;for(var L in this.T.T)if(l=this.T.T[L],l.info.bK()||l.info.uH())if(l=l.index,l.isLoaded()){L=l.ll(Q);l=l.xM(L)+Q-l.getStartTime(L);this.T9("gabc",{t:T.toFixed(3),mt:Q.toFixed(3),sg:L,igt:l.toFixed(3)});
  10504. k.livePlaybackPosition={utcTimeMillis:""+(l*1E3).toFixed(0)};break}}return k};
  10505. g.h.isEmbedsShortsMode=function(T,Q){if(!g.Qk(this.FB)||(this.FB.xm||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Q)return!1;var k,l;return!!(((k=this.embeddedPlayerConfig)==null?0:(l=k.embeddedPlayerFlags)==null?0:l.isShortsExperienceEligible)&&T.width<=T.height)};
  10506. g.h.EK=function(){g.ox.prototype.EK.call(this);this.cf=null;delete this.MH;delete this.accountLinkingConfig;delete this.T;this.L=this.cM=this.playerResponse=this.e6=null;this.Wk=this.adaptiveFormats="";delete this.botguardData;this.K_=this.suggestions=this.hn=null;this.sabrContextUpdates.clear()};var UZI={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},RE5={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},MsI={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},LxJ={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},gSt={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},qn5={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG",
  10507. 3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},Ynu={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.S(XZ,g.x);g.h=XZ.prototype;g.h.handleExternalCall=function(T,Q,k){var l=this.state.C[T],v=this.state.j[T],L=l;if(v)if(k&&HI(k,MCv))L=v;else if(!l)throw Error('API call from an untrusted origin: "'+k+'"');this.logApiCall(T,k);if(L){k=!1;l=g.B(Q);for(v=l.next();!v.done;v=l.next())if(String(v.value).includes("javascript:")){k=!0;break}k&&g.rB(Error('Dangerous call to "'+T+'" with ['+Q+"]."));return L.apply(this,Q)}throw Error('Unknown API method: "'+T+'".');};
  10508. g.h.logApiCall=function(T,Q,k){var l=this.app.G();l.Jp&&!this.state.D.has(T)&&(this.state.D.add(T),g.LM("webPlayerApiCalled",{callerUrl:l.loaderUrl,methodName:T,origin:Q||void 0,playerStyle:l.playerStyle||void 0,embeddedPlayerMode:l.xm,errorCode:k}))};
  10509. g.h.publish=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));if(T==="videodatachange"||T==="resize"||T==="cardstatechange")this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q))),this.state.Y.publish.apply(this.state.Y,[T].concat(g.ZH(Q)))};
  10510. g.h.tj=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q)))};
  10511. g.h.UM=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q)));this.state.Y.publish.apply(this.state.Y,[T].concat(g.ZH(Q)))};
  10512. g.h.Pk=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q)));this.state.Y.publish.apply(this.state.Y,[T].concat(g.ZH(Q)));this.state.N.publish.apply(this.state.N,[T].concat(g.ZH(Q)))};
  10513. g.h.V=function(T){return this.app.G().V(T)};
  10514. g.h.EK=function(){if(this.state.element){var T=this.state.element,Q;for(Q in this.state.T)this.state.T.hasOwnProperty(Q)&&(T[Q]=null);this.state.element=null}g.x.prototype.EK.call(this)};g.S(bt,g.XE);bt.prototype.publish=function(T){var Q=g.HT.apply(1,arguments);if(this.N.has(T))return this.N.get(T).push(Q),!0;var k=!1;try{for(Q=[Q],this.N.set(T,Q);Q.length;)k=g.XE.prototype.publish.call.apply(g.XE.prototype.publish,[this,T].concat(g.ZH(Q.shift())))}finally{this.N.delete(T)}return k};g.S(rs,g.x);rs.prototype.EK=function(){this.N.dispose();this.Y.dispose();this.S.dispose();this.L.dispose();this.D=this.T=this.j=this.C=this.B=void 0};var srb=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.S(D_,XZ);g.h=D_.prototype;g.h.getApiInterface=function(){return Array.from(this.state.B)};
  10515. g.h.pZ=function(T,Q){this.state.N.subscribe(T,Q)};
  10516. g.h.Qde=function(T,Q){this.state.N.unsubscribe(T,Q)};
  10517. g.h.getPlayerState=function(T){return MR5(this.app,T)};
  10518. g.h.yJ=function(){return MR5(this.app)};
  10519. g.h.Ju9=function(T,Q,k){nX(this)&&(tn(this.app,!0,1),W5(this.app,T,Q,k,1))};
  10520. g.h.getCurrentTime=function(T,Q,k){var l=this.getPlayerState(T);if(this.app.getAppState()===2&&l===5){var v;return((v=this.app.getVideoData())==null?void 0:v.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&l===0?uG(this.app,T):T?this.app.getCurrentTime(T,Q,k):this.app.getCurrentTime(T)};
  10521. g.h.PZ=function(){return this.app.getCurrentTime(1)};
  10522. g.h.fl=function(){var T=this.app.xM(1);return isNaN(T)?this.getCurrentTime(1):T};
  10523. g.h.WZ=function(){return this.app.getDuration(1)};
  10524. g.h.QY=function(T,Q){T=g.ti(Math.floor(T),0,100);isFinite(T)&&DN(this.app,{volume:T,muted:this.isMuted()},Q)};
  10525. g.h.DL9=function(T){this.QY(T,!1)};
  10526. g.h.xx=function(T){DN(this.app,{muted:!0,volume:this.getVolume()},T)};
  10527. g.h.Fe9=function(){this.xx(!1)};
  10528. g.h.JF=function(T){ut(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||DN(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},T)};
  10529. g.h.IGK=function(){ut(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.JF(!1)};
  10530. g.h.getPlayerMode=function(){var T={};this.app.getVideoData().hh&&(T.pfp={enableIma:this.app.mF().allowImaMonetization,autoplay:Mf(this.app.mF()),mutedAutoplay:this.app.mF().mutedAutoplay});return T};
  10531. g.h.GY=function(){var T=this.app.getPresentingPlayerType();if(T===2&&!this.app.Xj()){var Q=xY(this.app.Bx());if(!(YA1(Q)||g.Qk(this.app.G())&&g.J(this.app.Pd().getPlayerState(),1024))||Upm(Q))return}(Q=this.app.vG().GP)?Q.playVideo():this.app.playVideo(T)};
  10532. g.h.jKV=function(){tn(this.app,!0,1);this.GY()};
  10533. g.h.pauseVideo=function(T){var Q=this.app.getPresentingPlayerType();if(Q!==2||this.app.Xj()||YA1(xY(this.app.Bx()))){var k=this.app.vG().GP;k?k.pauseVideo():this.app.pauseVideo(Q,T)}};
  10534. g.h.L0j=function(){var T=this.app,Q=!1;T.Hd.Ig&&(T.ZV.publish("pageTransition"),Q=!0);T.stopVideo(Q)};
  10535. g.h.clearVideo=function(){};
  10536. g.h.getAvailablePlaybackRates=function(){var T=this.app.G();return T.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(T.Y?T.ancestorOrigins[0]:window.location.origin)||T.Z6?Km1:T.supportsVarispeedExtendedFeatures?xX_:T.V("web_remix_allow_up_to_3x_playback_rate")&&g.uP(T)?P5W:D3:[1]};
  10537. g.h.getPlaybackQuality=function(T){return(T=this.app.jD(T))?T.getPlaybackQuality():"unknown"};
  10538. g.h.uIB=function(){};
  10539. g.h.getAvailableQualityLevels=function(T){return(T=this.app.jD(T))?(T=g.IQ(T.G6(),function(Q){return Q.quality}),T.length&&(T[0]==="auto"&&T.shift(),T=T.concat(["auto"])),T):[]};
  10540. g.h.ju=function(){return this.getAvailableQualityLevels(1)};
  10541. g.h.SC=function(){return this.Cs()};
  10542. g.h.c7=function(){return 1};
  10543. g.h.getVideoLoadedFraction=function(T){return this.app.getVideoLoadedFraction(T)};
  10544. g.h.Cs=function(){return this.getVideoLoadedFraction()};
  10545. g.h.QJ=function(){return 0};
  10546. g.h.getSize=function(){var T=this.app.Hx().getPlayerSize();return{width:T.width,height:T.height}};
  10547. g.h.setSize=function(){this.app.Hx().resize()};
  10548. g.h.loadVideoById=function(T,Q,k,l){if(!T)return!1;T=ci(T,Q,k);return this.app.loadVideoByPlayerVars(T,l)};
  10549. g.h.b2=function(T,Q,k){T=this.loadVideoById(T,Q,k,1);tn(this.app,T,1)};
  10550. g.h.cueVideoById=function(T,Q,k,l){T=ci(T,Q,k);this.app.cueVideoByPlayerVars(T,l)};
  10551. g.h.CF=function(T,Q,k){this.cueVideoById(T,Q,k,1)};
  10552. g.h.loadVideoByUrl=function(T,Q,k,l){T=hEX(T,Q,k);return this.app.loadVideoByPlayerVars(T,l)};
  10553. g.h.GC=function(T,Q,k){T=this.loadVideoByUrl(T,Q,k,1);tn(this.app,T,1)};
  10554. g.h.cueVideoByUrl=function(T,Q,k,l){T=hEX(T,Q,k);this.app.cueVideoByPlayerVars(T,l)};
  10555. g.h.Zp=function(T,Q,k){this.cueVideoByUrl(T,Q,k,1)};
  10556. g.h.k7=function(){var T=this.app.G();if(T.qO)return"";var Q=this.app.mF(),k=void 0;Q.isLivePlayback||(k=Math.floor(this.app.getCurrentTime(1)));return T.getVideoUrl(Q.videoId,this.getPlaylistId()||void 0,k)};
  10557. g.h.tq=function(){return this.app.getDebugText()};
  10558. g.h.getVideoEmbedCode=function(){var T=this.app.G();if(T.qO)return"";var Q=this.app.mF();return T.getVideoEmbedCode(Q.isPrivate?"":Q.title,this.app.mF().videoId,this.app.Hx().getPlayerSize(),this.getPlaylistId()||void 0)};
  10559. g.h.Pj=function(T,Q,k){return IuI(this.app,T,Q,k)};
  10560. g.h.removeCueRange=function(T){return this.app.IU(T)};
  10561. g.h.loadPlaylist=function(T,Q,k,l){this.app.loadPlaylist(T,Q,k,l)};
  10562. g.h.Am=function(T,Q,k,l){this.loadPlaylist(T,Q,k,l);tn(this.app,!0,1)};
  10563. g.h.cuePlaylist=function(T,Q,k,l){this.app.cuePlaylist(T,Q,k,l)};
  10564. g.h.nextVideo=function(T,Q){this.app.nextVideo(T,Q)};
  10565. g.h.YKq=function(){this.nextVideo();tn(this.app,!0,1)};
  10566. g.h.previousVideo=function(T){this.app.previousVideo(T)};
  10567. g.h.vMe=function(){this.previousVideo();tn(this.app,!0,1)};
  10568. g.h.playVideoAt=function(T){this.app.playVideoAt(T)};
  10569. g.h.Ahq=function(T){this.playVideoAt(T);tn(this.app,!0,1)};
  10570. g.h.setShuffle=function(T){var Q=this.app.getPlaylist();Q&&Q.setShuffle(T)};
  10571. g.h.setLoop=function(T){var Q=this.app.getPlaylist();Q&&(Q.loop=T)};
  10572. g.h.qH=function(){var T=this.app.getPlaylist();if(!T)return null;for(var Q=[],k=0;k<T.length;k++){var l=g.wN(T,k);l&&Q.push(l.videoId)}return Q};
  10573. g.h.getPlaylistIndex=function(){var T=this.app.getPlaylist();return T?T.index:-1};
  10574. g.h.getPlaylistId=function(){var T=this.app.getPlaylist();return T&&T.listId?T.listId.toString():null};
  10575. g.h.a7=function(T){T==="captions"&&(T=g.uj(this.app.Bx()))&&!T.loaded&&T.load()};
  10576. g.h.uv=function(T){T==="captions"&&(T=g.uj(this.app.Bx()))&&T.loaded&&T.p1O()};
  10577. g.h.Kq=function(T,Q,k){if(!Q)return null;var l=this.app.Bx();return T==="captions"?(T=g.uj(l))&&T.R2(Q,k):null};
  10578. g.h.DW=function(T,Q,k){return CX(this.app.Lc().getVideoData())?{}:this.Kq(T,Q,k)};
  10579. g.h.MZ=function(T){var Q=this.app.Bx();if(T==="captions"){var k;return((k=g.uj(Q))==null?void 0:k.getOptions())||null}return T?null:(T=[],g.uj(Q)&&T.push("captions"),T)};
  10580. g.h.getVolume=function(){return this.app.cG.volume};
  10581. g.h.isMuted=function(){return this.app.cG.muted};
  10582. g.h.destroy=function(){this.app.dispose()};
  10583. g.h.logImaAdEvent=function(T,Q){var k=this.app.G();this.app.mF().allowImaMonetization&&(T={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:Q,embedUrl:g.tOT(this.app.G().loaderUrl),eventType:T,youtubeHost:g.Rq(this.app.G().fz)||""},T.embeddedPlayerMode=k.xm,g.LM("embedsAdEvent",T))};
  10584. g.h.mutedAutoplay=function(T){var Q=this.app.G(),k,l,v;((k=Q.getWebPlayerContextConfig())==null?0:(l=k.embedsHostFlags)==null?0:(v=l.allowMutedAutoplayDurationMode)==null?0:v.length)&&!Q.L&&this.app.mutedAutoplay(T)};
  10585. g.h.preloadVideoById=function(T,Q,k,l){var v,L;((v=this.app.G().getWebPlayerContextConfig())==null?0:(L=v.embedsHostFlags)==null?0:L.allowPreloadVideoById)&&T&&(T=ci(T,Q,k),this.app.preloadVideoByPlayerVars(T,l))};
  10586. g.h.u__=function(T,Q,k){this.preloadVideoById(T,Q,k,1)};
  10587. g.h.setFauxFullscreen=function(T){g.GL();this.app.gA(T?2:0)};
  10588. g.h.GH_=function(T){var Q,k;((Q=this.app.G().getWebPlayerContextConfig())==null?0:(k=Q.embedsHostFlags)==null?0:k.allowSetFauxFullscreen)&&this.setFauxFullscreen(T)};
  10589. g.h.setCenterCrop=function(T){var Q,k;((Q=this.app.G().getWebPlayerContextConfig())==null?0:(k=Q.embedsHostFlags)==null?0:k.allowSetCenterCrop)&&this.app.Hx().setCenterCrop(T)};
  10590. g.h.wakeUpControls=function(){var T=g.aa(this);T&&T.DS()};var wC5="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.S(KX,D_);g.h=KX.prototype;g.h.uT=function(T,Q){this.state.Y.subscribe(T,Q)};
  10591. g.h.hZd=function(T,Q){this.state.Y.unsubscribe(T,Q)};
  10592. g.h.cueVideoByPlayerVars=function(T,Q){this.app.cueVideoByPlayerVars(T,Q)};
  10593. g.h.Jo=function(T,Q){Q=Q===void 0?1:Q;this.cueVideoByPlayerVars(xD(this,T),Q)};
  10594. g.h.loadVideoByPlayerVars=function(T,Q,k,l,v){this.app.loadVideoByPlayerVars(T,k,Q,l,v)};
  10595. g.h.KC=function(T,Q,k,l){k=k===void 0?1:k;this.loadVideoByPlayerVars(xD(this,T),Q,k,l)};
  10596. g.h.preloadVideoByPlayerVars=function(T,Q,k,l,v){k=k===void 0?NaN:k;this.app.preloadVideoByPlayerVars(T,Q,k,l===void 0?"":l,v===void 0?"":v)};
  10597. g.h.WFe=function(T,Q,k,l){Q=Q===void 0?1:Q;this.preloadVideoByPlayerVars(xD(this,T),Q,k,l)};
  10598. g.h.HN=function(T,Q,k){this.loadVideoById(T,Q,k,1)};
  10599. g.h.y0=function(T,Q,k){this.loadVideoByUrl(T,Q,k,1)};
  10600. g.h.zI=function(T){return this.getPlayerState(T)};
  10601. g.h.sy=function(T){T=T===void 0?1:T;var Q=C85(this,T);if(T=this.app.jD(T)){T=T.getVideoData();Q.backgroundable=T.backgroundable;Q.eventId=T.eventId;Q.cpn=T.clientPlaybackNonce;Q.isLive=T.isLivePlayback;Q.isWindowedLive=T.hj;Q.isManifestless=Kt(T);Q.allowLiveDvr=T.allowLiveDvr;Q.isListed=T.isListed;T.liveUtcStartSeconds!=null&&(Q.liveUtcStartSeconds=T.liveUtcStartSeconds);T.bl()&&(Q.isEncrypted=!0);if(T.L)for(var k=g.B(T.L.videoInfos),l=k.next();!l.done;l=k.next()){var v=void 0;if((v=l.value.video)==
  10602. null?0:v.isHdr()){Q.isHdr=!0;break}}var L,q;Q.isMultiChannelAudio=!!((L=T.Y)==null?0:(q=L.audio)==null?0:q.isMultiChannelAudio())}return Q};
  10603. g.h.seekBy=function(T,Q,k,l,v){nX(this)&&W5(this.app,this.app.getCurrentTime()+T,Q,k,v,l)};
  10604. g.h.lg9=function(T,Q,k){this.seekBy(T,Q,k,void 0,1)};
  10605. g.h.seekTo=function(T,Q,k,l,v){nX(this)&&W5(this.app,T,Q,k,l,v)};
  10606. g.h.ZGd=function(T,Q,k,l){this.seekTo(T,Q,k,l===void 0?1:l)};
  10607. g.h.getStoryboardFormat=function(){return CX(this.app.getVideoData())?null:this.app.getStoryboardFormat()};
  10608. g.h.uc=function(T,Q){return this.getCurrentTime(T===void 0?1:T,Q)};
  10609. g.h.BO=function(){var T=this.app.getPresentingPlayerType(!0);T===2&&this.app.Xj()&&(T=1);return T};
  10610. g.h.getDuration=function(T,Q){return T?this.app.getDuration(T,Q):this.app.getDuration(T)};
  10611. g.h.gU=function(T,Q){return this.getDuration(T===void 0?1:T,Q)};
  10612. g.h.Eu=function(T){return this.getVideoLoadedFraction(T)};
  10613. g.h.loadModule=function(T){if(T==="annotations_module"){var Q=g.t4(this.app.Bx());Q&&!Q.loaded&&Q.load()}this.a7(T)};
  10614. g.h.unloadModule=function(T){if(T==="annotations_module"){var Q=g.t4(this.app.Bx());Q&&Q.loaded&&Q.unload()}this.uv(T)};
  10615. g.h.getOption=function(T,Q,k,l){return(l=this.app.jD(l))&&CX(l.getVideoData())?{}:this.setOption(T,Q,k)};
  10616. g.h.xl=function(T,Q,k){return this.getOption(T,Q,k,1)};
  10617. g.h.getOptions=function(T){var Q=this.app.Bx();switch(T){case "ad":var k,l;return((k=xY(Q))==null?void 0:(l=k.getOptions)==null?void 0:l.call(k))||null;case "remote":var v,L;return((v=e$(Q))==null?void 0:(L=v.getOptions)==null?void 0:L.call(v))||null;case "annotations_module":var q,Y;return((q=g.t4(Q))==null?void 0:(Y=q.getOptions)==null?void 0:Y.call(q))||null;case "creatorendscreen":var U,R;return((U=Os(Q))==null?void 0:(R=U.getOptions)==null?void 0:R.call(U))||null;case "unplugged":var Z,f;return((Z=
  10618. g.Pa(Q))==null?void 0:(f=Z.getOptions)==null?void 0:f.call(Z))||null;case "kids":var G,m;return((G=lpb(Q))==null?void 0:(m=G.getOptions)==null?void 0:m.call(G))||null}if(!T){T=this.MZ();if(!T)return T;xY(Q)&&T.push("ad");e$(Q)&&T.push("remote");g.t4(Q)&&T.push("annotations_module");Os(Q)&&T.push("creatorendscreen");g.Pa(Q)&&T.push("unplugged");lpb(Q)&&T.push("kids");return T}return this.MZ(T)};
  10619. g.h.setOption=function(T,Q,k){if(!Q)return null;var l=this.app.Bx();switch(T){case "ad":return(T=xY(l))&&T.R2&&T.R2(Q,k);case "kids":return(T=lpb(l))&&T.R2(Q,k);case "remote":return(T=e$(l))&&T.R2(Q,k);case "unplugged":return(T=g.Pa(l))&&T.R2(Q,k);case "annotations_module":return(T=g.t4(l))&&T.R2(Q,k);case "creatorendscreen":return(T=Os(l))&&T.R2(Q,k)}return this.Kq(T,Q,k)};
  10620. g.h.addCueRange=function(T,Q,k,l,v){return IuI(this.app,T,Q,k,l,v)};
  10621. g.h.getDebugText=function(T){return this.app.getDebugText(T)};
  10622. g.h.getCurrentBroadcastId=function(){return null};
  10623. g.h.handleGlobalKeyDown=function(T,Q,k,l,v,L,q,Y){Q=Q===void 0?!1:Q;k=k===void 0?!1:k;l=l===void 0?!1:l;v=v===void 0?!1:v;var U=g.aa(this);U&&U.handleGlobalKeyDown(T,Q,k,l,v,L,q,Y)};
  10624. g.h.handleGlobalKeyUp=function(T,Q,k,l,v,L,q){Q=Q===void 0?!1:Q;k=k===void 0?!1:k;l=l===void 0?!1:l;v=v===void 0?!1:v;var Y=g.aa(this);Y&&Y.handleGlobalKeyUp(T,Q,k,l,v,L,q)};
  10625. g.h.setSizeStyle=function(T,Q){this.app.setSizeStyle(T,Q)};
  10626. g.h.showControls=function(){var T=g.aa(this);T&&T.showControls(!0)};
  10627. g.h.hideControls=function(){var T=g.aa(this);T&&T.showControls(!1)};
  10628. g.h.getVideoContentRect=function(T){T=this.app.Hx().getVideoContentRect(T);return{left:T.left,top:T.top,width:T.width,height:T.height}};
  10629. g.h.toggleFullscreen=function(){function T(k){g.rB(k)}
  10630. var Q=this.app.G();if(Q.externalFullscreen){if(!g.XT(Q))return this.isFullscreen()?I1(window.document.documentElement):fY(window.document.documentElement).catch(T)}else if(g.GL()||Q.C)return this.isFullscreen()?I1(md()):Q.controlsType!=="3"&&g.GL()?fY(this.app.Hx().element).catch(T):(Q=this.app.T_().xB())?fY(Q).catch(T):Promise.reject(Error("Media element missing"));this.Pk("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
  10631. g.h.isFullscreen=function(){return this.app.isFullscreen()};
  10632. g.h.m_=function(){return this.app.m_()};
  10633. g.h.cancelPlayback=function(){var T=xY(this.app.Bx());T&&T.created&&T.destroy();this.app.Pd().stopVideo();(T=this.app.Bx().kP.get("endscreen"))&&T.kt()&&g.Jy(this.app.ZV,!0)};
  10634. g.h.getProgressState=function(T){if(this.BO()===3)return e$(this.app.Bx()).getProgressState();var Q=this.app.getVideoData(),k=this.app.jD(T)||this.app.Pd(),l=k.getPlayerType();a:{var v=this.app.getVideoData();var L;if((L=v.progressBarStartPosition)==null?0:L.utcTimeMillis)if(v=Number(v.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(v)){v=Pi(this,v,T);break a}v=0}var q;a:{L=this.app.getVideoData();if((q=L.progressBarEndPosition)==null?0:q.utcTimeMillis)if(q=Number(L.progressBarEndPosition.utcTimeMillis)/
  10635. 1E3,!isNaN(q)){q=Pi(this,q,T);break a}q=0}L=this.getCurrentTime(T);T=this.getDuration(T);var Y=this.app.xM(l),U=this.app.isAtLiveHead(l),R=this.app.bS();var Z=this.app;var f=Z.pA({playerType:l});f?(f=XU(Z,f),Z=Kq(Z,f.r_(),f)):Z=Z.CA.T.r_();f=uG(this.app,l);k=k.Px();var G=this.app.getVideoData().Bt;l=!G||isNaN(G)?0:Pi(this,G,l);return{airingStart:v,airingEnd:q,allowSeeking:this.app.Yo(),clipEnd:Q.clipEnd,clipStart:Q.clipStart,current:L,displayedStart:-1,duration:T,ingestionTime:Y,isAtLiveHead:U,loaded:R,
  10636. seekableStart:Z,seekableEnd:f,offset:k,viewerLivestreamJoinMediaTime:l}};
  10637. g.h.isInline=function(){return this.app.isInline()};
  10638. g.h.setInline=function(T){this.app.setInline(T)};
  10639. g.h.Lu=function(){return this.app.Lc().Tx(!0)};
  10640. g.h.toggleSubtitles=function(){var T=g.uj(this.app.Bx());T&&T.eoV()};
  10641. g.h.getPlayerSize=function(){var T=this.app.Hx().getPlayerSize();return{width:T.width,height:T.height}};
  10642. g.h.setCenterCrop=function(T){this.app.Hx().setCenterCrop(T)};
  10643. g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
  10644. g.h.setLoopVideo=function(T){this.app.setLoopVideo(T)};
  10645. var XCX="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
  10646. NqI="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var RM={},A1H=(RM["api.invalidparam"]=2,RM.auth=150,RM["drm.auth"]=150,RM["heartbeat.net"]=150,RM["heartbeat.servererror"]=150,RM["heartbeat.stop"]=150,RM["html5.unsupportedads"]=5,RM["fmt.noneavailable"]=5,RM["fmt.decode"]=5,RM["fmt.unplayable"]=5,RM["html5.missingapi"]=5,RM["html5.unsupportedlive"]=5,RM["drm.unavailable"]=5,RM["mrm.blocked"]=151,RM["embedder.identity.denied"]=152,RM["embedder.identity.missing.referrer"]=153,RM);g.S(g.Hi,KX);g.h=g.Hi.prototype;g.h.isExternalMethodAvailable=function(T,Q){return this.state.C[T]?!0:!!(this.state.j[T]&&Q&&HI(Q,MCv))};
  10647. g.h.getBandwidthEstimate=function(){return e4(this.app.G().schedule)};
  10648. g.h.reportPlaybackIssue=function(T){T=T===void 0?"":T;var Q=this.app.Pd();T={gpu:(0,g.YO)(),d:T};Q.handleError(new g.ZK("feedback",T))};
  10649. g.h.getInternalApi=function(){return Object.assign({},this.state.T)};
  10650. g.h.getInternalApiInterface=function(){return g.gz(this.state.T)};
  10651. g.h.queueNextVideo=function(T,Q,k,l,v){k=k===void 0?NaN:k;this.app.queueNextVideo(T,Q,k,l===void 0?"":l,v===void 0?"":v)};
  10652. g.h.H7=function(T){T=this.app.getPlayerStateObject(T);return{isBuffering:g.J(T,1),isCued:T.isCued(),isDomPaused:g.J(T,1024),isEnded:g.J(T,2),isError:g.J(T,128),isOrWillBePlaying:T.isOrWillBePlaying(),isPaused:T.isPaused(),isPlaying:T.isPlaying(),isSeeking:g.J(T,16),isUiSeeking:g.J(T,32),isUnstarted:g.J(T,64)}};
  10653. g.h.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
  10654. g.h.startSeekCsiAction=function(){this.app.eZ().Y.T=(0,g.XY)()};
  10655. g.h.Go=function(T,Q,k){return this.getCurrentTime(T===void 0?1:T,Q,k)};
  10656. g.h.seekToStreamTime=function(T,Q,k,l){var v=this.app;Q=Q===void 0?!0:Q;var L=v.pA({playerType:1}),q=0;L&&L.getStreamTimeOffset()&&!L.Px()&&(q=L.getStreamTimeOffset());W5(v,T-q,Q,k,1,l)};
  10657. g.h.getStreamTimeOffset=function(){return this.app.Lc().getStreamTimeOffset()};
  10658. g.h.seekToLiveHead=function(T,Q){var k=this.app.Lc().getVideoData();k&&k.isLivePlayback&&W5(this.app,Infinity,T,Q,1)};
  10659. g.h.requestSeekToWallTimeSeconds=function(T,Q,k){this.app.Lc().R3(T,Q,k)};
  10660. g.h.ruO=function(T,Q,k,l,v){this.seekTo(T,Q,k,l===void 0?1:l,v)};
  10661. g.h.CK6=function(T,Q,k,l){this.seekBy(T,Q,k,l,1)};
  10662. g.h.prefetchKeyPlay=function(T,Q){this.app.Lc().prefetchKeyPlay(T,Q)};
  10663. g.h.setVolume=function(T,Q){this.QY(T,Q===void 0?!0:Q)};
  10664. g.h.mute=function(T){this.xx(T===void 0?!0:T)};
  10665. g.h.unMute=function(T){this.JF(T===void 0?!0:T)};
  10666. g.h.syncVolume=function(){var T=P9f(this.app);DN(this.app,{volume:T.volume,muted:T.muted},!1)};
  10667. g.h.getAvailableQualityLabels=function(){return g.IQ(this.app.Lc().G6(),function(T){return T.qualityLabel})};
  10668. g.h.channelSubscribed=function(){this.tj("SUBSCRIBE",this.app.mF().hH)};
  10669. g.h.channelUnsubscribed=function(){this.tj("UNSUBSCRIBE",this.app.mF().hH)};
  10670. g.h.setScreenLayer=function(T){this.app.setScreenLayer(T)};
  10671. g.h.getCurrentPlaylistSequence=function(){return this.app.Pd().getPlaylistSequenceForTime(this.app.getCurrentTime())};
  10672. g.h.getPlaylistSequenceForTime=function(T){return this.app.Pd().getPlaylistSequenceForTime(T)};
  10673. g.h.shouldSendVisibilityState=function(){return!0};
  10674. g.h.confirmYpcRental=function(){this.app.Lc().Ju("ypc_clickwrap")};
  10675. g.h.setHomeGroupInfo=function(T){this.app.G().homeGroupInfo=T};
  10676. g.h.setConnectedRemoteApps=function(T){this.app.G().Sf=T};
  10677. g.h.setLivingRoomAppMode=function(T){this.app.G().livingRoomAppMode=kq("LIVING_ROOM_APP_MODE_UNSPECIFIED",T,$lC)};
  10678. g.h.setEnablePrivacyFilter=function(T){this.app.G().enablePrivacyFilter=T===void 0?!1:T};
  10679. g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
  10680. g.h.addUtcCueRange=function(T,Q,k,l,v){return hkb(this.app,T,Q,k,l,v)};
  10681. g.h.o1=function(T){T=T===void 0?1:T;var Q=this.sy(T);if(T=this.app.jD(T)){T=T.getVideoData();Q.hasProgressBarBoundaries=T.hasProgressBarBoundaries();Q.isPremiere=T.isPremiere;Q.itct=T.Bd;Q.playerResponseCpn=T.playerResponseCpn;var k;var l=T.hasProgressBarBoundaries()&&((k=T.progressBarStartPosition)==null?0:k.utcTimeMillis)?aT(T.progressBarStartPosition.utcTimeMillis):null;Q.progressBarStartPositionUtcTimeMillis=l;var v;k=T.hasProgressBarBoundaries()&&((v=T.progressBarEndPosition)==null?0:v.utcTimeMillis)?
  10682. aT(T.progressBarEndPosition.utcTimeMillis):null;Q.progressBarEndPositionUtcTimeMillis=k;Q.ypcOriginalItct=T.id_;Q.ypcPreview=T.ypcPreview;Q.paidContentOverlayText=uu5(T);Q.paidContentOverlayDurationMs=nNb(T);T.T&&nP(T.T)&&(Q.usingLocalMedia="true");Q.transitionEndpointAtEndOfStream=T.transitionEndpointAtEndOfStream}return Q};
  10683. g.h.getAdState=function(){return this.app.getAdState()};
  10684. g.h.isNotServable=function(T){if(T!==this.app.C9.video_id)return!1;var Q=(T=this.app.Lc().getPlayerState())?T.ge:null;return!!(T&&Q&&g.J(T,128)&&bQJ(Q.errorCode)===5)};
  10685. g.h.supportsGaplessAudio=function(){return this.app.G().supportsGaplessAudio()};
  10686. g.h.supportsGaplessShorts=function(){return this.app.G().supportsGaplessShorts()};
  10687. g.h.enqueueVideoByPlayerVars=function(T,Q,k,l){k=k===void 0?Infinity:k;this.app.enqueueVideoByPlayerVars(T,Q,k,l===void 0?"":l)};
  10688. g.h.clearQueue=function(){this.app.clearQueue()};
  10689. g.h.nB=function(){return g.aa(this)};
  10690. g.h.sendAbandonmentPing=function(){this.app.Pd().sendAbandonmentPing()};
  10691. g.h.setAutonavState=function(T,Q){Q=Q===void 0?!1:Q;if(this.V("web_player_autonav_use_server_provided_state")&&!Q&&(Q=this.app.mF(),Q==null?0:Ct(Q)))if(T===3)Q.autonavState!==3&&(Q.xb=Q.autonavState);else if(Q.xb!==void 0)T=Q.xb,Q.xb=void 0;else return;wFT(this.app,T)};
  10692. g.h.setAutonav=function(T,Q){this.setAutonavState(T?2:1,Q===void 0?!1:Q)};
  10693. g.h.setLoopRange=function(T){this.app.setLoopRange(T)};
  10694. g.h.getLoopRange=function(){return this.app.getLoopRange()};
  10695. g.h.hasSupportedAudio51Tracks=function(){return this.app.Lc().hasSupportedAudio51Tracks()};
  10696. g.h.setUserAudio51Preference=function(T,Q){this.app.Lc().setUserAudio51Preference(T,Q===void 0?!1:Q)};
  10697. g.h.getUserAudio51Preference=function(){return this.app.Lc().getUserAudio51Preference()};
  10698. g.h.setProximaLatencyPreference=function(T){this.app.Lc().setProximaLatencyPreference(T)};
  10699. g.h.getProximaLatencyPreference=function(){return this.app.Lc().getProximaLatencyPreference()};
  10700. g.h.isProximaLatencyEligible=function(){return this.app.Lc().isProximaLatencyEligible()};
  10701. g.h.getAppState=function(){return this.app.getAppState()};
  10702. g.h.updateLastActiveTime=function(){sq()};
  10703. g.h.setBlackout=function(T){this.app.setBlackout(T)};
  10704. g.h.setUserEngagement=function(T){this.app.G().eO!==T&&(this.app.G().eO=T,this.app.Lc().zE())};
  10705. g.h.updateSubtitlesUserSettings=function(T,Q){Q=Q===void 0?!0:Q;g.uj(this.app.Bx()).yP(T,Q)};
  10706. g.h.getCaptionWindowContainerId=function(){var T=g.uj(this.app.Bx());return T?T.getCaptionWindowContainerId():""};
  10707. g.h.toggleSubtitlesOn=function(){var T=g.uj(this.app.Bx());T&&T.Ut()};
  10708. g.h.isSubtitlesOn=function(){var T=g.uj(this.app.Bx());return T?T.isSubtitlesOn():!1};
  10709. g.h.getPlayerResponse=function(T){return(T=this.app.jD(T))?T.getVideoData().getPlayerResponse():null};
  10710. g.h.MR=function(){return this.getPlayerResponse(1)};
  10711. g.h.getEmbeddedPlayerResponse=function(){return this.app.Lc().getVideoData().getEmbeddedPlayerResponse()};
  10712. g.h.getWatchNextResponse=function(T){return(T=this.app.jD(T))?T.getVideoData().getWatchNextResponse():null};
  10713. g.h.F2=function(){return this.getWatchNextResponse(1)};
  10714. g.h.getHeartbeatResponse=function(T){return(T=this.app.jD(T))?T.getVideoData().getHeartbeatResponse():null};
  10715. g.h.Oa=function(){return this.getHeartbeatResponse(1)};
  10716. g.h.getStoryboardFrame=function(T,Q){var k=this.app.l7();if(!k)return null;Q=k.levels[Q];return Q?(T=g.Ya(Q,T))?{column:T.column,columns:T.columns,height:T.rh,row:T.row,rows:T.rows,url:T.url,width:T.Z1}:null:null};
  10717. g.h.getStoryboardFrameIndex=function(T,Q){var k=this.app.l7();if(!k)return-1;Q=k.levels[Q];if(!Q)return-1;T-=this.Px();return Q.Fd(T)};
  10718. g.h.getStoryboardLevel=function(T){var Q=this.app.l7();return Q?(Q=Q.levels[T])?{index:T,intervalMs:Q.T,maxFrameIndex:Q.MU(),minFrameIndex:Q.Bq()}:null:null};
  10719. g.h.getNumberOfStoryboardLevels=function(){var T=this.app.l7();return T?T.levels.length:0};
  10720. g.h.rl=function(){return this.getAudioTrack(1)};
  10721. g.h.getAudioTrack=function(T){return(T=this.app.jD(T))?T.getAudioTrack():this.app.getVideoData().FU};
  10722. g.h.IN=function(){var T=this.app.jD();return T?T.IN():null};
  10723. g.h.setAudioTrack=function(T,Q,k){var l=this.app.vG().GP;l&&l.lx(T);return(k=this.app.jD(k))?k.lx(T,Q):!1};
  10724. g.h.IgV=function(T,Q){return this.setAudioTrack(T,Q,1)};
  10725. g.h.Aq=function(){return this.getAvailableAudioTracks(1)};
  10726. g.h.getAvailableAudioTracks=function(T){return this.app.jD(T).getAvailableAudioTracks()};
  10727. g.h.getMaxPlaybackQuality=function(){var T=this.app.Lc();return T.getVideoData().S?cr(T.Tv()):"unknown"};
  10728. g.h.getUserPlaybackQualityPreference=function(){return this.app.Lc().getUserPlaybackQualityPreference()};
  10729. g.h.getSubtitlesUserSettings=function(){var T=g.uj(this.app.Bx());return T?T.TI():null};
  10730. g.h.resetSubtitlesUserSettings=function(){g.uj(this.app.Bx()).dLj()};
  10731. g.h.setMinimized=function(T){this.app.setMinimized(T)};
  10732. g.h.setOverlayVisibility=function(T){this.publish("overlayvisibilitychange",T)};
  10733. g.h.setInlinePreview=function(T){this.app.setInlinePreview(T)};
  10734. g.h.setSqueezeback=function(T){this.app.setSqueezeback(T)};
  10735. g.h.setGlobalCrop=function(T){this.app.Hx().setGlobalCrop(T)};
  10736. g.h.setAppFullscreen=function(T){this.app.gA(T?4:0)};
  10737. g.h.Gk=function(){return this.app.Gk()};
  10738. g.h.getVisibilityState=function(){return this.Gk().getVisibilityState(this.Ax(),this.m_()||g.vB(this.app.G()),this.isMinimized(),this.isInline(),this.app.x$(),this.app.Uj(),this.app.CM(),this.app.zs())};
  10739. g.h.isMutedByMutedAutoplay=function(){return this.app.Oj};
  10740. g.h.isMutedByEmbedsMutedAutoplay=function(){return ut(this.app)};
  10741. g.h.setInternalSize=function(T,Q){this.app.Hx().setInternalSize(new g.Ji(T,Q))};
  10742. g.h.Px=function(T){return(T=this.app.jD(T))?T.Px():0};
  10743. g.h.isMinimized=function(){return this.app.isMinimized()};
  10744. g.h.x$=function(){return this.app.x$()};
  10745. g.h.Ax=function(){return this.app.Pd().Ax()};
  10746. g.h.setSafetyMode=function(T){this.app.G().enableSafetyMode=T};
  10747. g.h.canPlayType=function(T){return this.app.canPlayType(T)};
  10748. g.h.updatePlaylist=function(T){if(T){var Q=this.getPlaylistId(),k=!1;Q&&Q!==T.list&&(k=!0);T.external_list!==void 0&&(this.app.PG=jG(!1,T.external_list));var l=T.video;(Q=this.app.getPlaylist())&&!k?this.isFullscreen()&&((k=l[Q.index])&&k.encrypted_id!==g.wN(Q).videoId||(T.index=Q.index)):An(this.app,{list:T.list,index:T.index,playlist_length:l.length});DdX(this.app.getPlaylist(),T);this.UM("onPlaylistUpdate")}else this.app.updatePlaylist()};
  10749. g.h.updateVideoData=function(T,Q){g.sy(this.app.Lc().getVideoData(),T,Q)};
  10750. g.h.updateEnvironmentData=function(T){Ru(this.app.G(),T,!1)};
  10751. g.h.jd9=function(T){this.app.sendVideoStatsEngageEvent(T,1)};
  10752. g.h.productsInVideoVisibilityUpdated=function(T){this.publish("changeProductsInVideoVisibility",T)};
  10753. g.h.isAtLiveHead=function(T,Q){return this.app.isAtLiveHead(T,Q===void 0?!0:Q)};
  10754. g.h.getVideoAspectRatio=function(){return this.app.Hx().getVideoAspectRatio()};
  10755. g.h.getPreferredQuality=function(){return this.app.Pd().getPreferredQuality()};
  10756. g.h.getPlaybackQualityLabel=function(T){if(T=this.app.jD(T)){var Q,k;return((k=(Q=T.getVideoData().S)==null?void 0:Q.video)==null?void 0:k.qualityLabel)||""}return""};
  10757. g.h.setPlaybackQualityRange=function(T,Q,k,l){(l=this.app.jD(l))&&l.TU(g.NQ(T,Q||T,!0,"m"),!0,k)};
  10758. g.h.tDH=function(T,Q,k){this.setPlaybackQualityRange(T,Q,k,1)};
  10759. g.h.onAdUxClicked=function(T,Q){this.publish("aduxclicked",T,Q)};
  10760. g.h.showAirplayPicker=function(){this.app.showAirplayPicker()};
  10761. g.h.dispatchReduxAction=function(T){g.w4.dispatch(T)};
  10762. g.h.highlightSettingsMenuItem=function(T){this.publish("highlightSettingsMenu",T)};
  10763. g.h.openSettingsMenuItem=function(T){this.publish("openSettingsMenuItem",T)};
  10764. g.h.nZ=function(T,Q){this.state.S.subscribe(T,Q)};
  10765. g.h.EPk=function(T,Q){this.state.S.unsubscribe(T,Q)};
  10766. g.h.lN=function(T,Q){this.cueVideoByPlayerVars(T,Q===void 0?1:Q)};
  10767. g.h.Ia=function(T,Q,k,l){this.loadVideoByPlayerVars(T,Q,k===void 0?1:k,l)};
  10768. g.h.tYj=function(T,Q,k,l){this.preloadVideoByPlayerVars(T,Q===void 0?1:Q,k,l)};
  10769. g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
  10770. g.h.jj=function(){return g.aa(this).jj()};
  10771. g.h.tb=function(){return g.aa(this).tb()};
  10772. g.h.uS=function(){return g.aa(this).uS()};
  10773. g.h.aK=function(){return this.nB().aK()};
  10774. g.h.Vb=function(){var T=g.HT.apply(0,arguments),Q;(Q=this.aK()).Vb.apply(Q,g.ZH(T))};
  10775. g.h.wO=function(){this.aK().wO()};
  10776. g.h.Ce=function(){this.aK().Ce()};
  10777. g.h.Zb=function(){this.aK().hide()};
  10778. g.h.iM=function(T,Q,k,l,v,L,q,Y){this.aK().iM(T,Q,k,l,v,L,q,Y)};
  10779. g.h.hA=function(T,Q){this.aK().hA(T,Q)};
  10780. g.h.MG=function(T,Q,k,l,v){this.nB().MG(T,Q,k,l,v)};
  10781. g.h.g2=function(T){this.aK().setEnabled(T)};
  10782. g.h.oN=function(T,Q){this.nB().oN(T,Q)};
  10783. g.h.Mq=function(T,Q){this.nB().Mq(T,Q)};
  10784. g.h.le=function(T,Q){this.nB().le(T,Q)};
  10785. g.h.VV=function(){this.nB().VV()};
  10786. g.h.Is=function(T,Q){this.nB().Is(T,Q)};
  10787. g.h.JJ=T5(4);g.h.renderChapterSeekingAnimation=function(T,Q,k){this.nB().renderChapterSeekingAnimation(T,Q,k)};
  10788. g.h.Zu=function(){this.nB().Zu()};
  10789. g.h.getWebPlayerContextConfig=function(){return this.app.G().getWebPlayerContextConfig()};
  10790. g.h.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
  10791. g.h.WH=function(){return this.app.Pd().WH()};
  10792. g.h.EF=function(T,Q,k){k=k===void 0?!1:k;var l;(l=this.nB())==null||l.EF(T,Q,k)};g.S(g.Wi,g.Hi);g.h=g.Wi.prototype;g.h.mG=function(T,Q,k,l,v,L,q){return this.app.mG(T,Q,k,l,v,L,q)};
  10793. g.h.FS=function(){return this.app.FS()};
  10794. g.h.wS=T5(6);g.h.Bx=function(){return this.app.Bx()};
  10795. g.h.eD=function(){var T=this.Bx().kP.get("endscreen");return!!T&&T.eD()};
  10796. g.h.getRootNode=function(){return this.Hx().element};
  10797. g.h.G=function(){return this.app.G()};
  10798. g.h.uy=T5(10);g.h.HG=function(T){return this.app.HG(T)};
  10799. g.h.K$=function(){var T;return((T=g.aa(this))==null?void 0:T.K$())||null};
  10800. g.h.yH=function(){return this.app.Pd().yH()};
  10801. g.h.getPlayerStateObject=function(T){return this.app.getPlayerStateObject(T)};
  10802. g.h.Hx=function(){return this.app.Hx()};
  10803. g.h.getPlaylist=function(){return this.app.getPlaylist()};
  10804. g.h.getVideoData=function(T,Q){Q=Q===void 0?!1:Q;var k=this.app.jD(T);if(!k)return null;k=k.getVideoData();if(Q)var l=k;else k.enableServerStitchedDai&&T===2?(Q=this.app,T=Q.SD?((l=Q.CA.Y)==null?void 0:l.getVideoData())||Q.getVideoData():Q.getVideoData()):T=k,l=T;return l};
  10805. g.h.I9=function(){return this.app.Pd().I9()};
  10806. g.h.l7=function(T){return this.app.l7(T)};
  10807. g.h.zs=function(){return this.app.zs()};
  10808. g.h.isHdr=function(){return this.app.Pd().isHdr()};
  10809. g.h.yj=function(){return this.app.yj()};
  10810. g.h.isEmbedsShortsMode=function(){var T=g.aa(this),Q=this.getVideoData();T=T?T.sA:this.getPlayerSize();var k=!!this.getPlaylist();return!(!Q||!Q.isEmbedsShortsMode(new g.Ji(T.width,T.height),k))};
  10811. g.h.Y6=function(T,Q){this.app.Y6(T,1,Q)};
  10812. g.h.NL=function(T,Q,k,l,v){this.app.XG(T,Q,k,l,v)};
  10813. g.h.tV=T5(14);g.h.playVideo=function(T,Q){try{var k=this.app.vG().GP;if(k){k.playVideo();return}if(!T&&this.getPresentingPlayerType()===2){var l=xY(this.app.Bx());if(l&&Upm(l))return}}catch(v){g.bA(v)}this.app.playVideo(T,Q)};
  10814. g.h.stopVideo=function(T){this.app.jD(T).stopVideo()};
  10815. g.h.T0=function(T){this.app.jD(T).T0()};
  10816. g.h.addEventListener=function(T,Q){this.state.L.subscribe(T,Q)};
  10817. g.h.removeEventListener=function(T,Q){this.state.L.unsubscribe(T,Q)};
  10818. g.h.xA=function(T){this.app.xA(T)};
  10819. g.h.setPlaybackQuality=function(T,Q){this.setPlaybackQualityRange(T,T,Q)};
  10820. g.h.G6=function(){var T={},Q=this.app.Pd().G6();Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,T[k.quality]=k;return T};
  10821. g.h.Cy=function(){return this.app.Pd().Cy()};
  10822. g.h.qA=T5(18);g.h.Pi=function(T){this.app.Pi(T);T&&wFT(this.app,T)};
  10823. g.h.getVideoUrl=function(T,Q,k,l){var v=this.getPresentingPlayerType(),L=v===2;if(l&&L||v===3)L=!1,v=1;l=this.getVideoData(v);if(!l)return"";var q;T||l.isLivePlayback||(q=Math.floor(this.getCurrentTime(v)));T=L?void 0:this.getPlaylistId()||void 0;Q&&T==="WL"&&(T=void 0);return this.app.getVideoUrl(l.videoId,T,q,Q,k)};
  10824. g.h.wH=T5(20);g.h.RD=T5(26);g.h.qm=function(T){this.app.Pd().qm(T)};
  10825. g.h.h9=T5(32);g.h.Lz=T5(38);g.h.bA=function(T,Q){this.Bx().bA(T,Q)};
  10826. g.h.Vw=function(){var T=g.t4(this.Bx());return!!T&&T.Vw()};
  10827. g.h.Kt=function(){var T=g.t4(this.Bx());return!!T&&T.Kt()};
  10828. g.h.C4=function(T,Q,k){var l=g.t4(this.Bx());l&&l.C4(T,Q,k)};
  10829. g.h.w9=T5(39);g.h.tY=function(){this.app.Pd().wZ()};
  10830. g.h.qP=function(T){this.UM("onVideoAreaChange");this.UM(T?"onShowControls":"onHideControls")};
  10831. g.h.IM=function(T,Q){var k=g.aa(this);if(k)return k.IM(T,Q);T=this.app.Hx().J9();return new g.tZ(0,0,T.width,T.height)};
  10832. g.h.zS=function(){var T=this.Bx().kP.get("heartbeat");return!!T&&T.zS()};
  10833. g.h.Yo=function(){var T=this.G();if(T.sK||T.disableSeek)return!1;var Q=this.app.Pd(),k=Q.getVideoData();if(!k.Hk()||g.iO(k)||this.getPresentingPlayerType()===2&&!this.app.Xj()||k.lf()&&this.getPresentingPlayerType(!0)===2||Q.Pc()&&this.getPresentingPlayerType()!==3)return!1;T=g.M0(T);return g.gi(T)&&!k.xF||ut(this.app)?!1:!0};
  10834. g.h.Zw=function(){return this.app.Pd().pk()};
  10835. g.h.isLifaAdPlaying=function(){var T,Q=(T=this.getVideoData())==null?void 0:T.lf();return Q?this.getPresentingPlayerType(Q)===2:!1};
  10836. g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
  10837. g.h.YU=function(){this.app.Pd().YU()};
  10838. g.h.sendVideoStatsEngageEvent=function(T,Q,k){this.app.sendVideoStatsEngageEvent(T,k,Q)};
  10839. g.h.fY=function(T,Q,k){this.app.cB(T,Q,k)};
  10840. g.h.oM=function(T,Q){this.app.Ec(T,Q)};
  10841. g.h.uf=function(T,Q){nq(this.app,T,Q)};
  10842. g.h.o0=T5(43);g.h.E2=function(T){return this.app.E2(T)};
  10843. g.h.Ju=function(T,Q){var k;(k=this.app.jD(Q))==null||k.Ju(T)};
  10844. g.h.Pc=function(){var T=this.app.jD();return T?T.Pc():!0};
  10845. g.h.Wm=function(){var T=this.getVideoData();return!!T&&(T.Wm()||!!T.hlsFormats||!!T.DP)};
  10846. g.h.getPlaybackRate=function(){return this.app.Lc().getPlaybackRate()};
  10847. g.h.setPlaybackRate=function(T,Q){this.app.setPlaybackRate(T,Q)};
  10848. g.h.T_=function(){return this.app.T_()};
  10849. g.h.eZ=function(){return this.app.eZ()};
  10850. g.h.Cd=function(T){return this.app.Cd(T)};
  10851. g.h.createClientVe=function(T,Q,k,l){this.G().p_&&this.app.GE.createClientVe(T,Q,k,l===void 0?!1:l)};
  10852. g.h.createServerVe=function(T,Q,k){this.G().p_&&this.app.GE.createServerVe(T,Q,k===void 0?!1:k)};
  10853. g.h.setTrackingParams=function(T,Q){this.G().p_&&this.app.GE.setTrackingParams(T,Q)};
  10854. g.h.logClick=function(T,Q){this.G().p_&&(this.app.GE.click(T,Q),this.publish("veClickLogged",T))};
  10855. g.h.logVisibility=function(T,Q,k){this.G().p_&&this.app.GE.o_(T,Q,k)};
  10856. g.h.hasVe=function(T){return this.G().p_?this.app.GE.hasVe(T):!1};
  10857. g.h.destroyVe=function(T){this.G().p_&&this.app.GE.destroyVe(T)};
  10858. g.h.getPresentingPlayerType=function(T){return this.app.getPresentingPlayerType(T)};
  10859. g.h.WJ=function(){this.app.WJ()};
  10860. g.h.GB=T5(45);g.h.pU=function(T){this.app.pU(T)};
  10861. g.h.KM=function(){this.app.KM()};
  10862. g.h.addPlayerResponseForAssociation=function(){};
  10863. g.h.finishSegmentByCpn=function(T,Q,k){return this.app.finishSegmentByCpn(T,Q,k)};
  10864. g.h.XK=function(T,Q,k,l,v,L,q,Y){return this.app.XK(T,Q,k,l,v,L,q,Y)};
  10865. g.h.vU=function(T,Q,k,l,v,L,q,Y){this.app.vU(T,Q,k,l,v,L,q,Y)};
  10866. g.h.K9=function(){return this.app.K9()};
  10867. g.h.eM=function(T){this.app.eM(T)};
  10868. g.h.Fc=function(T,Q){Q=Q===void 0?Infinity:Q;this.app.Fc(T===void 0?-1:T,Q)};
  10869. g.h.Zv=function(T){var Q;(Q=g.uj(this.Bx()))==null||Q.Zv(T)};
  10870. g.h.AA=function(T,Q,k){this.app.AA(T,Q,k)};
  10871. g.h.As=function(){return this.app.As()};
  10872. g.h.wL=function(T,Q,k){this.app.wL(T,Q,k===void 0?0:k)};
  10873. g.h.jZ=function(){return this.app.jZ()};
  10874. g.h.Xj=function(){return this.app.Xj()};
  10875. g.h.Ln=function(T,Q,k){return this.app.Ln(T,Q,k)};
  10876. g.h.T9=function(T,Q,k,l){k=k===void 0?!1:k;var v;(v=this.app.jD(l))==null||v.T9(T,Q,k)};
  10877. g.h.P6=function(T,Q){this.publish("aduxmouseover",T,Q)};
  10878. g.h.GD=function(T,Q){this.publish("aduxmouseout",T,Q)};
  10879. g.h.FA=function(T,Q){this.publish("muteadaccepted",T,Q)};
  10880. g.h.VH=function(){return this.app.Hx().VH()};
  10881. g.h.uX=function(T){this.app.Hx().uX(T)};
  10882. g.h.EY=function(T){return T?this.app.oF():this.app.Pd().EY()};
  10883. g.h.G2=function(T){this.app.G2(T)};
  10884. g.h.yV=function(){this.app.Pd().yV()};
  10885. g.h.qI=function(){this.app.qI()};
  10886. g.h.getGetAdBreakContext=function(){var T=this.app.Lc();return T.getVideoData().getGetAdBreakContext(T.getCurrentTime(),T.Px())};
  10887. g.h.Gh=function(T,Q){this.app.Pd().Gh(T,Q)};
  10888. g.h.NC=function(){return this.app.Pd().NC()};
  10889. g.h.zU=T5(47);g.h.JO=T5(49);g.h.jO=function(T){var Q;return((Q=this.app.jD(T))==null?void 0:Q.jO())||0};var kH;g.S(jc,nY);jc.prototype.LP=function(T,Q){T=nY.prototype.LP.call(this,T,Q);return Object.assign({},T,this.requestHeaders)};g.S(g.vR,g.x);g.h=g.vR.prototype;g.h.EK=function(){this.Zh();g.x.prototype.EK.call(this)};
  10890. g.h.Zh=function(){this.yq.dispose()};
  10891. g.h.addCueRange=function(T){this.yq.addCueRange(T)};
  10892. g.h.cB=function(T,Q){this.yq.cB(T,Q)};
  10893. g.h.lG=function(){this.yq.lG()};
  10894. g.h.dZ=function(){return this.yq.dZ()};
  10895. g.h.Lf=function(T){return this.yq===T};
  10896. g.h.wZ=function(){this.yq.tY()};
  10897. g.h.XW=function(T,Q){this.yq.XW(T,Q)};
  10898. g.h.CX=function(T,Q){return this.yq.CX(T,Q)};
  10899. g.h.jK=function(T){this.yq.jK(T)};
  10900. g.h.getAudioTrack=function(){return this.yq.getAudioTrack()};
  10901. g.h.IN=function(){return this.yq.IN()};
  10902. g.h.getAvailableAudioTracks=function(){return this.yq.getAvailableAudioTracks()};
  10903. g.h.G6=function(){return this.yq.G6()};
  10904. g.h.Cy=function(){return this.yq.Cy()};
  10905. g.h.pB=function(){return this.getVideoData().clientPlaybackNonce};
  10906. g.h.TP=function(){return this.yq.TP()};
  10907. g.h.P0=function(){return this.yq.P0()};
  10908. g.h.Jb=function(){return this.yq.Jb()};
  10909. g.h.getCurrentTime=function(){return this.yq.getCurrentTime()};
  10910. g.h.nw=function(){return this.yq.nw()};
  10911. g.h.My=function(){return this.yq.My()};
  10912. g.h.Tx=function(T){return this.yq.Tx(T)};
  10913. g.h.getDuration=function(T){return this.yq.getDuration(T)};
  10914. g.h.u8=function(){return this.yq.u8()};
  10915. g.h.xM=function(){return this.yq.xM()};
  10916. g.h.pk=function(){return this.yq.pk()};
  10917. g.h.As=function(){return this.yq.As()};
  10918. g.h.bS=function(){return this.yq.bS()};
  10919. g.h.uy=T5(9);g.h.jO=function(){return this.yq.jO()};
  10920. g.h.t_=function(){return this.yq.t_()};
  10921. g.h.WG=function(T){return this.yq.WG(T)};
  10922. g.h.T_=function(){return this.yq.T_()};
  10923. g.h.JH=function(){return this.yq.JH()};
  10924. g.h.SY=function(){return this.yq.SY()};
  10925. g.h.r_=function(){return this.yq.r_()};
  10926. g.h.s$=function(T,Q,k){return this.yq.s$(T,Q,k)};
  10927. g.h.qA=T5(17);g.h.getPlaybackQuality=function(){return this.yq.getPlaybackQuality()};
  10928. g.h.getPlaybackRate=function(){return this.yq.getPlaybackRate()};
  10929. g.h.getPlayerState=function(){return this.yq.getPlayerState()};
  10930. g.h.getPlayerType=function(){return this.yq.getPlayerType()};
  10931. g.h.getPlaylistSequenceForTime=function(T){return this.yq.getPlaylistSequenceForTime(T)};
  10932. g.h.Cd=function(T){return this.yq.Cd(T)};
  10933. g.h.WH=function(){return this.yq.WH()};
  10934. g.h.getPreferredQuality=function(){return this.yq.getPreferredQuality()};
  10935. g.h.J5=function(){return this.yq.J5()};
  10936. g.h.getProximaLatencyPreference=function(){return this.yq.getProximaLatencyPreference()};
  10937. g.h.Tv=function(){return this.yq.Tv()};
  10938. g.h.l7=function(){return this.getVideoData().l7()};
  10939. g.h.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
  10940. g.h.getStreamTimeOffset=function(){return this.yq.getStreamTimeOffset()};
  10941. g.h.TG=function(){return this.yq.TG()};
  10942. g.h.Px=function(){return this.yq.Px()};
  10943. g.h.yH=function(){return this.yq.yH()};
  10944. g.h.getUserAudio51Preference=function(){return this.yq.getUserAudio51Preference()};
  10945. g.h.getUserPlaybackQualityPreference=function(){return this.yq.getUserPlaybackQualityPreference()};
  10946. g.h.getVideoData=function(){return this.yq.getVideoData()};
  10947. g.h.I9=function(){return this.yq.I9()};
  10948. g.h.Dg=function(){return this.yq.Dg()};
  10949. g.h.getVideoLoadedFraction=function(){if(g.mK(this.getVideoData()))return 1;var T=this.yq.T_();return T?T.KX():0};
  10950. g.h.Le=function(){return this.yq};
  10951. g.h.Ky=function(T){this.yq.Ky(T)};
  10952. g.h.handleError=function(T){this.yq.handleError(T)};
  10953. g.h.pX=function(T){this.yq.pX(T)};
  10954. g.h.xk=function(T){this.yq.xk(T)};
  10955. g.h.o0=T5(42);g.h.Pc=function(){return this.yq.Pc()};
  10956. g.h.hasSupportedAudio51Tracks=function(){return this.yq.hasSupportedAudio51Tracks()};
  10957. g.h.ME=function(){return this.yq.ME()};
  10958. g.h.Ax=function(){return this.yq.Ax()};
  10959. g.h.isAtLiveHead=function(T,Q){return this.yq.isAtLiveHead(T,Q)};
  10960. g.h.qG=function(){return this.yq.qG()};
  10961. g.h.isGapless=function(){return this.yq.isGapless()};
  10962. g.h.isHdr=function(){return this.yq.isHdr()};
  10963. g.h.a9=function(){return this.yq.a9()};
  10964. g.h.qW=function(){return this.yq.qW()};
  10965. g.h.NC=function(){return this.yq.NC()};
  10966. g.h.isProximaLatencyEligible=function(){return this.yq.isProximaLatencyEligible()};
  10967. g.h.jZ=function(){return this.yq.jZ()};
  10968. g.h.wm=function(T){var Q;return!((Q=this.yq.loader)==null||!Q.wm(T))};
  10969. g.h.hX=function(){return this.yq.hX()};
  10970. g.h.qr=function(){this.yq.qr()};
  10971. g.h.NG=function(T){this.yq.NG(T)};
  10972. g.h.VL=function(){this.yq.VL()};
  10973. g.h.RQ=function(){this.yq.RQ()};
  10974. g.h.KO=function(){this.yq.KO()};
  10975. g.h.KJ=function(){this.yq.KJ()};
  10976. g.h.GA=function(T){this.yq.GA(T)};
  10977. g.h.aM=T5(54);g.h.RD=T5(25);g.h.aO=function(){this.yq.aO()};
  10978. g.h.pauseVideo=function(T){this.yq.pauseVideo(T)};
  10979. g.h.prefetchKeyPlay=function(T,Q){this.yq.prefetchKeyPlay(T,Q)};
  10980. g.h.AJ=function(T){this.yq.AJ(T)};
  10981. g.h.ZF=function(T){this.yq.ZF(T)};
  10982. g.h.playVideo=function(T,Q){return this.yq.playVideo(T,Q)};
  10983. g.h.Xx=function(T,Q,k,l,v){this.yq.Xx(T,Q,k,l,v)};
  10984. g.h.h9=T5(31);g.h.Lz=T5(37);g.h.N8=function(T,Q,k,l,v){this.yq.N8(T,Q,k,l,v)};
  10985. g.h.T9=function(T,Q,k){this.yq.T9(T,Q,k)};
  10986. g.h.qm=function(T){this.yq.qm(T)};
  10987. g.h.Gh=function(T,Q){this.yq.Kc.Gh(T,Q)};
  10988. g.h.PJ=function(T,Q,k){this.yq.PJ(T,Q,k)};
  10989. g.h.RK=function(T){this.yq.RK(T)};
  10990. g.h.r6=function(T){this.yq.r6(T)};
  10991. g.h.JU=function(T,Q){this.yq.JU(T,Q)};
  10992. g.h.sz=function(T,Q,k,l,v,L,q,Y){this.yq.sz(T,Q,k,l,v,L,q,Y)};
  10993. g.h.M6=function(){s45(this.yq.Kc)};
  10994. g.h.Zm=function(T){this.yq.Zm(T)};
  10995. g.h.T0=function(T,Q){this.yq.T0(T,Q)};
  10996. g.h.removeCueRange=function(T){this.yq.removeCueRange(T)};
  10997. g.h.Ec=function(T){this.yq.Ec(T)};
  10998. g.h.uf=function(T){return this.yq.lH.uf(T)};
  10999. g.h.I0=function(T){this.yq.I0(T)};
  11000. g.h.u7=function(T,Q,k){this.yq.u7(T,Q,k)};
  11001. g.h.d9=function(){this.yq.d9()};
  11002. g.h.EZ=function(){this.yq.lH.reset()};
  11003. g.h.tU=function(){this.yq.tU()};
  11004. g.h.R3=function(T,Q,k){this.yq.R3(T,Q,k)};
  11005. g.h.seekTo=function(T,Q){this.yq.seekTo(T,Q)};
  11006. g.h.sendAbandonmentPing=function(){this.yq.sendAbandonmentPing()};
  11007. g.h.sendVideoStatsEngageEvent=function(T,Q){this.yq.sendVideoStatsEngageEvent(T,Q)};
  11008. g.h.fn=function(T,Q,k){this.yq.fn(T,Q,k)};
  11009. g.h.setLoop=function(T){this.yq.setLoop(T)};
  11010. g.h.gK=function(){this.yq.gK()};
  11011. g.h.setMediaElement=function(T){this.yq.setMediaElement(T)};
  11012. g.h.lz=function(T,Q,k,l){this.yq.lz(T,Q,k,l)};
  11013. g.h.setPlaybackRate=function(T){this.yq.setPlaybackRate(T)};
  11014. g.h.NL=function(T,Q,k,l,v,L){this.yq.NL(T,Q,k,l,v,L)};
  11015. g.h.aQ=function(T,Q){this.yq.aQ(T,Q)};
  11016. g.h.Ju=function(T){this.yq.Ju(T)};
  11017. g.h.setProximaLatencyPreference=function(T){this.yq.setProximaLatencyPreference(T)};
  11018. g.h.JY=function(T,Q,k){this.yq.JY(T,Q,k)};
  11019. g.h.Ij=function(){this.yq.Ij()};
  11020. g.h.E7=function(T){this.yq.E7(T)};
  11021. g.h.setUserAudio51Preference=function(T,Q){this.yq.setUserAudio51Preference(T,Q)};
  11022. g.h.TU=function(T,Q,k){this.yq.TU(T,Q,k)};
  11023. g.h.e1=function(){return this.yq.e1()};
  11024. g.h.YU=function(){this.yq.YU()};
  11025. g.h.EY=function(){return this.yq.EY()};
  11026. g.h.I3=function(T){this.yq.I3(T)};
  11027. g.h.Pw=function(){this.yq.Pw()};
  11028. g.h.n4=function(T){this.yq.n4(T)};
  11029. g.h.stopVideo=function(){this.yq.stopVideo()};
  11030. g.h.subscribe=function(T,Q,k){return this.yq.subscribe(T,Q,k)};
  11031. g.h.L7=function(T,Q){this.yq.L7(T,Q)};
  11032. g.h.togglePictureInPicture=function(){this.yq.togglePictureInPicture()};
  11033. g.h.E2=function(T){return this.yq.lH.E2(T)};
  11034. g.h.unsubscribe=function(T,Q,k){return this.yq.unsubscribe(T,Q,k)};
  11035. g.h.L5=function(T,Q){this.yq.L5(T,Q)};
  11036. g.h.lx=function(T,Q){return this.yq.lx(T,Q)};
  11037. g.h.zE=function(){this.yq.zE()};
  11038. g.h.jS=function(T){this.yq.jS(T)};
  11039. g.h.yV=function(){this.yq.yV()};g.S(g.LA,g.M1);g.h=g.LA.prototype;g.h.show=function(){var T=this.n$();g.M1.prototype.show.call(this);this.hj&&(this.j.Z(window,"blur",this.sG),this.j.Z(qz(this),"click",this.Ev));T||this.publish("show",!0)};
  11040. g.h.hide=function(){var T=this.n$();g.M1.prototype.hide.call(this);nS6(this);T&&this.publish("show",!1)};
  11041. g.h.fA=function(T,Q){this.S=T;this.fade.show();Q?(this.D||(this.D=this.j.Z(this.U,"appresize",this.R6)),this.R6()):this.D&&(this.j.J6(this.D),this.D=void 0)};
  11042. g.h.Dh=function(){this.S&&this.element&&(this.S.getAttribute("aria-haspopup"),this.S.setAttribute("aria-expanded","true"),this.focus())};
  11043. g.h.R6=function(){var T=g.aa(this.U);this.S&&T.MG(this.element,this.S)};
  11044. g.h.sG=function(){var T=this.n$();nS6(this);this.fade.hide();T&&this.publish("show",!1)};
  11045. g.h.Ev=function(T){var Q=zL(T);Q&&(g.SO(this.element,Q)||this.S&&g.SO(this.S,Q)||!g.B8(T))||this.sG()};
  11046. g.h.n$=function(){return this.Sr&&this.fade.state!==4};g.S(Mz,g.LA);Mz.prototype.fA=function(){g.LA.prototype.fA.call(this);this.dialog.focus()};g.S(g.UQ,g.M1);g.UQ.prototype.setIcon=function(T){this.updateValue("icon",T)};
  11047. g.UQ.prototype.updateValue=function(T,Q){g.M1.prototype.updateValue.call(this,T,Q);this.publish("size-change")};g.rh={gG:17,U0:16,dBB:15,vFH:14,oJ:13,N$:12,sB:11,Zo:10,R4:9,AUDIO:8,SUBTITLES:7,CZ:6,SLEEP_TIMER:5,X$:4,m8:3,MfO:2,REMOTE:1,abe:0,17:"LOOP",16:"STABLE_VOLUME",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"VOICE_BOOST",5:"SLEEP_TIMER",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.S(ZR,g.UQ);ZR.prototype.vx=function(T){this.S&&this.U.logVisibility(this.element,this.T&&T)};
  11048. ZR.prototype.Y=function(){var T,Q,k=(T=this.U.getVideoData())==null?void 0:(Q=T.accountLinkingConfig)==null?void 0:Q.linked;if(k&&!this.T){var l;T=(l=this.U.getVideoData())==null?void 0:l.accountLinkingConfig;this.setIcon(sC());var v;g.YH(this,fA(T==null?void 0:(v=T.menuData)==null?void 0:v.connectedMenuLabel));var L,q,Y;this.L=new Mz(this.U,fA(T==null?void 0:(L=T.menuData)==null?void 0:L.connectedDialogTitle),fA(T==null?void 0:(q=T.menuData)==null?void 0:q.connectedDialogMessage),fA(T==null?void 0:
  11049. (Y=T.menuData)==null?void 0:Y.confirmButtonText));g.P(this,this.L);var U;l=(T==null?void 0:(U=T.menuData)==null?void 0:U.trackingParams)||null;(this.S=!!l)&&this.U.setTrackingParams(this.element,l);this.YB.A6(this);this.T=!0}else!k&&this.T&&(this.YB.y8(this),this.T=!1)};
  11050. ZR.prototype.onClick=function(){this.S&&this.U.logClick(this.element);this.YB.sG();this.L&&this.L.fA()};g.S(GQ,g.x);GQ.prototype.V=function(T){return this.api.V(T)};g.S(mW,GQ);mW.prototype.onVideoDataChange=function(T){if(!T.accountLinkingConfig){var Q,k=(Q=T.getPlayerResponse())==null?void 0:Q.accountLinkingConfig;T.accountLinkingConfig=k}var l;if(Q=(l=T.accountLinkingConfig)==null?void 0:l.alsParam)T.mL=Q};
  11051. mW.prototype.setAccountLinkState=function(T){this.api.getVideoData().mL=T;this.api.tY()};
  11052. mW.prototype.updateAccountLinkingConfig=function(T){var Q=this.api.getVideoData(),k=Q.accountLinkingConfig;k&&(k.linked=T);this.api.publish("videodatachange","dataupdated",Q,this.api.getPresentingPlayerType())};g.S(hN,GQ);
  11053. hN.prototype.S=function(T){var Q=T.getId(),k=this.api.getVideoData(1),l=!this.api.isInline();if(!k.inlineMetricEnabled||l){if(Q==="part2viewed"){if(k.p8&&g.uM(k.p8),k.JA&&sQ(this,k.JA),k.aS)for(var v={CPN:this.api.getVideoData().clientPlaybackNonce},L=g.B(k.aS),q=L.next();!q.done;q=L.next())sQ(this,g.Ae(q.value,v))}else Q==="engagedview"&&k.E6&&(v={CPN:this.api.getVideoData().clientPlaybackNonce},g.uM(g.Ae(k.E6,v)));k.vF&&(v=k.vF,L=T.getId(),v=lC(v,{label:L}),g.uM(v));switch(Q){case "videoplaytime25":k.K8&&sQ(this,
  11054. k.K8);k.O3&&Sc(this,k.O3);k.DO&&g.uM(k.DO);break;case "videoplaytime50":k.PF&&sQ(this,k.PF);k.vP&&Sc(this,k.vP);k.aW&&g.uM(k.aW);break;case "videoplaytime75":k.n8&&sQ(this,k.n8);k.c9&&Sc(this,k.c9);k.M9&&g.uM(k.M9);break;case "videoplaytime100":k.hf&&sQ(this,k.hf),k.WP&&Sc(this,k.WP),k.f8&&g.uM(k.f8)}(v=this.api.getVideoData().cf)&&tsu(this,v,T.getId())&&tsu(this,v,T.getId()+"gaia")}if(k.inlineMetricEnabled&&!l)switch(Q){case "videoplaybackstart":var Y,U=(Y=k.Mv)==null?void 0:Y.T;U&&sQ(this,U);break;
  11055. case "videoplayback2s":(Y=(U=k.Mv)==null?void 0:U.L)&&sQ(this,Y);break;case "videoplayback10s":var R;(Y=(R=k.Mv)==null?void 0:R.S)&&sQ(this,Y)}this.api.oM([T],1)};g.S(pC5,GQ);g.S(CA,GQ);CA.prototype.getUserAudioQualitySetting=function(){return this.xu};
  11056. CA.prototype.setUserAudioQualitySetting=function(T){this.api.T9("aqs_set",{setting:T});g.ri("yt-player-audio-quality-setting",T);T!==this.xu&&(this.xu=T,this.updateEnvironmentData())};
  11057. CA.prototype.hasHqaAudioTrack=function(){var T,Q,k=(T=this.api.getVideoData())==null?void 0:(Q=T.L)==null?void 0:Q.T;return k?$4(k,function(l){var v;return((v=l.audio)==null?void 0:v.audioQuality)==="AUDIO_QUALITY_HIGH"}):!1};
  11058. CA.prototype.updateEnvironmentData=function(){this.api.G().xu=this.xu};g.S(BR,g.p);g.h=BR.prototype;
  11059. g.h.P9=function(){var T;if(T=this.U.getPresentingPlayerType()!==3&&g.QS(this.U)&&this.U.Hx().getPlayerSize().width>=400)if(T=this.mF(),this.U.G().V("client_respect_autoplay_switch_button_renderer"))T=!!T.autoplaySwitchButtonRenderer;else{var Q,k,l,v;T=!!((Q=T.getWatchNextResponse())==null?0:(k=Q.contents)==null?0:(l=k.twoColumnWatchNextResults)==null?0:(v=l.autoplay)==null?0:v.autoplay)!==!1}if(T)this.T||(this.T=!0,this.o_(this.T),this.U.G().V("web_player_autonav_toggle_always_listen")||Wxg(this),
  11060. Q=this.mF(),this.Uo(Q.autonavState),this.U.logVisibility(this.element,this.T));else if(this.T=!1,this.o_(this.T),!this.U.G().V("web_player_autonav_toggle_always_listen"))for(this.U.G().V("web_player_autonav_toggle_always_listen"),Q=g.B(this.S),k=Q.next();!k.done;k=Q.next())this.J6(k.value)};
  11061. g.h.Uo=function(T){J1T(this)?this.isChecked=T!==1:((T=T!==1)||(g.xq(),T=g.hH("web_autonav_allow_off_by_default")&&!g.Py(0,141)&&g.$i("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Py(0,140)),this.isChecked=T);$Zu(this)};
  11062. g.h.onClick=function(){this.isChecked=!this.isChecked;this.U.Pi(this.isChecked?2:1);$Zu(this);if(J1T(this)){var T=this.mF().autoplaySwitchButtonRenderer;this.isChecked&&(T==null?0:T.onEnabledCommand)?this.U.tj("innertubeCommand",T.onEnabledCommand):!this.isChecked&&(T==null?0:T.onDisabledCommand)&&this.U.tj("innertubeCommand",T.onDisabledCommand)}this.U.logClick(this.element)};
  11063. g.h.getValue=function(){return this.isChecked};
  11064. g.h.mF=function(){return this.U.getVideoData(1)};g.S(eEJ,GQ);g.S(zQ,g.UQ);zQ.prototype.onClick=function(){this.enabled&&(Xe(this,!this.checked),this.publish("select",this.checked))};
  11065. zQ.prototype.getValue=function(){return this.checked};
  11066. zQ.prototype.setEnabled=function(T){(this.enabled=T)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Nz=["en-CA","en","es-MX","fr-CA"];g.S(DR,zQ);DR.prototype.Aj=function(T){T?this.T||(this.YB.A6(this),this.T=!0):this.T&&(this.YB.y8(this),this.T=!1);this.T&&Xe(this,tEy())};
  11067. DR.prototype.Y=function(){g.Lb(this.element,"ytp-menuitem-highlight-transition-enabled")};
  11068. DR.prototype.L=function(T){var Q=tEy();T!==Q&&(Q=g.xq(),tg(190,T),tg(192,!0),Q.save(),this.U.tj("cinematicSettingsToggleChange",T))};
  11069. DR.prototype.EK=function(){this.T&&this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(aR,GQ);aR.prototype.updateCinematicSettings=function(T){this.T=T;var Q;(Q=this.menuItem)==null||Q.Aj(T);this.api.publish("onCinematicSettingsVisibilityChange",T)};g.S(VsI,GQ);g.S(uf,GQ);uf.prototype.setCreatorEndscreenVisibility=function(T){var Q;(Q=Os(this.api.Bx()))==null||Q.o_(T)};
  11070. uf.prototype.T=function(T){function Q(l){l==="creatorendscreen"&&(l=Os(k.api.Bx()))&&l.nP6(k.hideButton)}
  11071. var k=this;this.hideButton=T;this.events.Z(this.api,"modulecreated",Q);Q("creatorendscreen")};g.S(nA,zQ);nA.prototype.Y=function(T){this.L(T?1:0)};
  11072. nA.prototype.S=function(){var T=this.hasDrcAudioTrack(),Q=this.T()===1&&T;Xe(this,Q);this.setEnabled(T)};
  11073. nA.prototype.EK=function(){this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(KA,GQ);KA.prototype.getDrcUserPreference=function(){return this.T};
  11074. KA.prototype.setDrcUserPreference=function(T){g.ri("yt-player-drc-pref",T,31536E3);T!==this.T&&(this.T=T,this.updateEnvironmentData(),this.S()&&this.api.yV())};
  11075. KA.prototype.updateEnvironmentData=function(){this.api.G().OW=this.T===1};
  11076. KA.prototype.S=function(){var T,Q,k=(T=this.api.getVideoData())==null?void 0:(Q=T.L)==null?void 0:Q.T;if(!k)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var l,v,L=(l=this.api.IN())==null?void 0:(v=l.MY)==null?void 0:v.id;return $4(k,function(q){var Y;return q.audio.T&&((Y=q.MY)==null?void 0:Y.id)===L})}return $4(k,function(q){var Y;
  11077. return((Y=q.audio)==null?void 0:Y.T)===!0})};g.S(xH,GQ);xH.prototype.onVideoDataChange=function(){var T=this,Q=this.api.getVideoData();this.api.uf("embargo",1);var k=Q==null?void 0:Q.ER.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(k==null?0:k.length)?Q3H(this,k.filter(function(l){return Tt5(T,l)})):(Q==null?0:Q.cueRanges)&&Q3H(this,Q.cueRanges.filter(function(l){return Tt5(T,l)}))};
  11078. xH.prototype.S=function(T){return T.embargo!==void 0};
  11079. xH.prototype.EK=function(){GQ.prototype.EK.call(this);this.T={}};g.S(PR,GQ);
  11080. PR.prototype.addEmbedsConversionTrackingParams=function(T){var Q=this.api.G(),k=Q.widgetReferrer,l=Q.DP,v=this.T,L="",q=Q.getWebPlayerContextConfig();q&&(L=q.embedsIframeOriginParam||"");k.length>0&&(T.embeds_widget_referrer=k);l.length>0&&(T.embeds_referring_euri=l);Q.Y&&L.length>0&&(T.embeds_referring_origin=L);q&&q.embedsFeature&&(T.feature=q.embedsFeature);v.length>0&&(Q.V("embeds_web_enable_lite_experiment_control_arm_logging")?v.unshift(28572):g.gi(g.M0(Q))&&v.unshift(159628),Q=v.join(","),Q=
  11081. g.ph()?Q:g.N_(Q,4),T.source_ve_path=Q);this.T.length=0};g.S(j36,GQ);g.S(kqu,GQ);g.S(HR,g.x);HR.prototype.EK=function(){g.x.prototype.EK.call(this);this.T=null;this.S&&this.S.disconnect()};g.S(ogb,GQ);g.S(tN,g.p);tN.prototype.show=function(){g.p.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
  11082. tN.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)};
  11083. tN.prototype.onVideoDataChange=function(T){var Q,k,l=(Q=this.api.getVideoData())==null?void 0:(k=Q.getPlayerResponse())==null?void 0:k.playabilityStatus;l&&(Q=vgt(l),g.J(this.api.getPlayerStateObject(),128)||T==="dataloaderror"||!Q?(this.S=0,this.stopTimer(),this.hide()):(T=(Q.remainingTimeSecs||0)*1E3,T>0&&(this.show(),this.updateValue("label",On(Q.label)),qVT(this,T))))};
  11084. tN.prototype.EK=function(){this.stopTimer();g.p.prototype.EK.call(this)};g.S(ggH,GQ);g.S(OQ,g.p);OQ.prototype.onClick=function(){this.ZV.logClick(this.element);this.ZV.tj("onFullerscreenEduClicked")};
  11085. OQ.prototype.Aj=function(){this.ZV.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.ZV.logVisibility(this.element,this.ZV.isFullscreen()&&!this.T)};g.S(pA,GQ);pA.prototype.updateFullerscreenEduButtonSubtleModeState=function(T){var Q;(Q=this.T)!=null&&(g.gl(Q.element,"ytp-fullerscreen-edu-button-subtle",T),T&&!Q.S&&(Q.ZV.V("player_tooltip_data_title_killswitch")?Q.element.setAttribute("title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"):Q.element.setAttribute("data-tooltip-title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"),OU(Q.ZV,Q.element,Q),Q.S=!0))};
  11086. pA.prototype.updateFullerscreenEduButtonVisibility=function(T){var Q;(Q=this.T)!=null&&(Q.T=T,Q.Aj())};g.S(MXX,g.p);g.S(RxC,GQ);g.S(WR,GQ);WR.prototype.getSphericalProperties=function(){var T=g.y5(this.api.Bx());return T?T.getSphericalProperties():{}};
  11087. WR.prototype.setSphericalProperties=function(T){if(T){var Q=g.y5(this.api.Bx());Q&&Q.setSphericalProperties(T,!0)}};g.S($H,GQ);g.h=$H.prototype;g.h.createClientVe=function(T,Q,k,l){this.api.createClientVe(T,Q,k,l===void 0?!1:l)};
  11088. g.h.createServerVe=function(T,Q,k){this.api.createServerVe(T,Q,k===void 0?!1:k)};
  11089. g.h.setTrackingParams=function(T,Q){this.api.setTrackingParams(T,Q)};
  11090. g.h.logClick=function(T,Q){this.api.logClick(T,Q)};
  11091. g.h.logVisibility=function(T,Q,k){this.api.logVisibility(T,Q,k)};
  11092. g.h.hasVe=function(T){return this.api.hasVe(T)};
  11093. g.h.destroyVe=function(T){this.api.destroyVe(T)};var fc5=!1;ec.prototype.setPlaybackRate=function(T){this.playbackRate=Math.max(1,T)};
  11094. ec.prototype.getPlaybackRate=function(){return this.playbackRate};T_.prototype.V5=function(T){var Q=g.Hj(T.info.T.info,this.C_.Cc),k=T.info.NO+this.Y,l=T.info.startTime*1E3;if(this.policy.u9)try{l=this.policy.u9?g.dd(T)*1E3:T.info.startTime*1E3}catch(q){Math.random()>.99&&this.logger&&(l=Yl(T.S).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:T.info.Bh(),encodedDataView:g.dJ(l,4)})),l=T.info.startTime*1E3}var v=T.info.clipId,L=this.policy.u9?g.jLC(T)*1E3:T.info.duration*1E3;this.policy.u9&&(l<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:T.info.Bh(),
  11095. startTimeMs:l,durationMs:L}),this.policy.xz||(l<0&&(l=T.info.startTime*1E3),L<0&&(L=T.info.duration*1E3))),this.policy.xz&&(l<0&&(l=T.info.startTime*1E3),L<0&&(L=T.info.duration*1E3)));return{formatId:Q,NO:k,startTimeMs:l,clipId:v,uN:L}};
  11096. T_.prototype.FL=function(T){this.timestampOffset=T};Qm.prototype.seek=function(T,Q){T!==this.targetTime&&(this.seekCount=0);this.targetTime=T;var k=this.videoTrack.S,l=this.audioTrack.S,v=this.audioTrack.jr,L=DQu(this,this.videoTrack,T,this.videoTrack.jr,Q);Q=DQu(this,this.audioTrack,this.policy.vn?T:L,v,Q);T=Math.max(T,L,Q);this.Y=!0;this.C_.isManifestless&&(Ntu(this,this.videoTrack,k),Ntu(this,this.audioTrack,l));return T};
  11097. Qm.prototype.isSeeking=function(){return this.Y};
  11098. Qm.prototype.u1=function(T){this.S=T};
  11099. var c_T=2/24;var ngg=0;g.h=Ux.prototype;g.h.ZN=function(){this.D=this.now();AQ5(this.V4,this.D);this.m1.ZN()};
  11100. g.h.La=function(T,Q){var k=this.policy.S?(0,g.XY)():0;Rz(this,T,Q);T-this.B<10&&this.S>0||this.Jk(T,Q);this.m1.La(T,Q);this.policy.S&&(T=(0,g.XY)()-k,this.d5+=T,this.zg=Math.max(T,this.zg))};
  11101. g.h.Jk=function(T,Q){var k=(T-this.B)/1E3,l=Q-this.L;this.Ox||($m(this.V4,k,l),this.uu(k,l));this.B=T;this.L=Q};
  11102. g.h.Ex=function(){this.xm&&Kk5(this);this.m1.Ex()};
  11103. g.h.QQ=function(T){this.xm||(this.xm=this.N-this.Ig+T,this.DP=this.N,this.Fk=this.C)};
  11104. g.h.Kn=function(T,Q){T=T===void 0?this.C:T;Q=Q===void 0?this.N:Q;this.S>0||(this.j=T,this.S=Q,this.z9=this.isActive=!0)};
  11105. g.h.vy=function(){return this.bH||2};
  11106. g.h.aE=function(){};
  11107. g.h.i6=function(){var T,Q={rn:this.requestNumber,rt:(this.C-this.T).toFixed(),lb:this.N,stall:(1E3*this.Y).toFixed(),ht:(this.D-this.T).toFixed(),elt:(this.j-this.T).toFixed(),elb:this.S,d:(T=this.i9)==null?void 0:T.xo()};this.url&&ZPC(Q,this.url);this.policy.S&&(Q.mph=this.zg.toFixed(),Q.tph=this.d5.toFixed());Q.ulb=this.e6;Q.ult=this.qO;return Q};
  11108. g.h.now=function(){return(0,g.XY)()};
  11109. g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};g.S(fr,Ux);g.h=fr.prototype;g.h.i6=function(){var T=Ux.prototype.i6.call(this);T.pb=this.JS;T.pt=(1E3*this.Tg).toFixed();T.se=this.OG;return T};
  11110. g.h.aG=function(){var T=this.m1;this.u9||(this.u9=T.aG?T.aG():1);return this.u9};
  11111. g.h.zD=function(){return this.fp?this.aG()!==1:!1};
  11112. g.h.IX=function(T,Q,k){if(!this.Gg){this.Gg=!0;if(!this.Ox){Rz(this,T,Q);this.Jk(T,Q);var l=this.aG();this.OG=k;if(!this.Ox)if(l===2){l=T-this.j<this.vy()*1E3+50;k=this.qO?this.e6/(this.qO/1E3):k||this.f_;var v=this.Ds*1.3;l&&k<v||(this.qO?tS(this.V4,this.qO/1E3,this.e6,this.Jj||this.policy.z9):tS(this.V4,Q/k,Q,.01));pc(this.V4,Q,l?0:this.Y)}else l===1&&(l=(T-this.T)/1E3,!(l<=this.policy.Y)&&this.policy.Y||this.QR||this.policy.D||!(this.S>0)||G_(this,l,Q),this.S>0&&pc(this.V4,Q,this.Y));T=(T-this.T)/
  11113. 1E3||.01;this.policy.j&&!(this.S>0)||Od(this.V4,T,this.L,PdT(this),this.Zr)}this.deactivate()}};
  11114. g.h.Cn=function(T,Q,k){k&&(this.u9=2);T<0&&this.bH&&(T=this.bH);Q?this.p_+=T:this.Jj+=T};
  11115. g.h.vy=function(){return this.Jj||this.p_||Ux.prototype.vy.call(this)};
  11116. g.h.Jk=function(T,Q){var k=(T-this.B)/1E3,l=Q-this.L,v=this.aG();this.isActive?v===1&&((l>0||this.policy.N)&&(k>.2||l<1024)?(this.Y+=k,l>0&&k>.2&&G_(this,this.Ds?k:.05,l),this.QR=!0):l>0&&(G_(this,k,l),this.QR=!0)):Q&&Q>=this.policy.T&&this.Kn(T,Q);Ux.prototype.Jk.call(this,T,Q)};
  11117. g.h.CJ=function(T){if(!this.Ox){Rz(this,T,this.N);var Q=(T-this.T)/1E3;this.aG()!==2&&this.S>0&&(this.Y+=(T-this.B)/1E3,pc(this.V4,this.L,this.Y));Od(this.V4,Q,this.L,PdT(this),this.Zr,!0);T=(T-this.B)/1E3;$m(this.V4,T,0);this.uu(T,0)}};
  11118. g.h.Kn=function(T,Q){T=T===void 0?this.C:T;Q=Q===void 0?this.N:Q;if(!(this.S>0)&&(Ux.prototype.Kn.call(this,T,Q),this.aG()===1)){Q=(this.D-this.T)/1E3;var k=(T-this.D)/1E3;this.fp&&mG(this,this.now());this.h3||this.Ox||(this.bH&&(k=Math.max(0,k-this.bH)),T=this.V4,T.j.Q1(1,Q),T.i9.Q1(1,k))}};
  11119. g.h.RR=function(){this.fp&&mG(this,this.now());return this.sK};
  11120. g.h.cV=function(){var T;if(T=this.L>this.ra)T=(T=this.L)?T>=this.policy.T:!1;return T};
  11121. g.h.zv=function(){return this.K_};
  11122. g.h.T2=function(T){T=T===void 0?this.now():T;if(this.fp){mG(this,T);if(this.u9?this.zD():this.hj!==this.Bd){var Q=this.Bd;if(T<Q){this.K_=this.Bd;return}}else Q=this.hj;Q=Math.max(Q,this.sK)}else Q=this.sK;var k=this.JS-this.L;k<0&&(k=0);k=(k*this.snapshot.stall+k/this.snapshot.byterate)*1E3;this.K_=k=this.S>0?k+T:k+Math.max(T,Q)};
  11123. g.h.G$=function(){return this.now()-this.j};
  11124. g.h.HI=function(){return(this.L-this.S)*1E3/this.G$()||0};
  11125. g.h.Ne=function(){return this.j};Iz.prototype.feed=function(T){v3(this.T,T);this.Jh()};
  11126. Iz.prototype.Jh=function(){if(this.Y){if(!this.T.totalLength)return;var T=this.T.split(this.L-this.S),Q=T.Rz;T=T.ow;if(!this.m1.QQ(this.Y,Q,this.S,this.L))return;this.S+=Q.totalLength;this.T=T;this.S===this.L&&(this.Y=this.L=this.S=void 0)}for(;;){var k=0;T=g.B(prf(this.T,k));Q=T.next().value;k=T.next().value;k=g.B(prf(this.T,k));T=k.next().value;k=k.next().value;if(Q<0||T<0)break;if(!(k+T<=this.T.totalLength)){if(!(this.m1.QQ&&k+1<=this.T.totalLength))break;k=this.T.split(k).ow;this.m1.QQ(Q,k,0,
  11127. T)&&(this.Y=Q,this.S=k.totalLength,this.L=T,this.T=new oV([]));break}T=this.T.split(k).ow.split(T);k=T.ow;this.m1.qt(Q,T.Rz);this.T=k}};
  11128. Iz.prototype.dispose=function(){this.T=new oV};g.h=hU.prototype;g.h.Az=function(){return 0};
  11129. g.h.UI=function(){return null};
  11130. g.h.oR=function(){return null};
  11131. g.h.gT=function(){return this.state>=1};
  11132. g.h.isComplete=function(){return this.state>=3};
  11133. g.h.u5=function(){return this.state===5};
  11134. g.h.onStateChange=function(){};
  11135. g.h.OH=function(T){var Q=this.state;this.state=T;this.onStateChange(Q);this.callback&&this.callback(this,Q)};
  11136. g.h.fM=function(T){T&&this.state<T?this.OH(T):this.callback&&this.callback(this,this.state)};
  11137. g.h.wd=function(){return this.state===-1};
  11138. g.h.Bh=function(){var T="";this.info.MO.forEach(function(Q){T+=Q.Bh()+"."});
  11139. return T.slice(0,-1)};
  11140. g.h.dispose=function(){this.wd()||(this.info.MO[0].T.L=!1,this.OH(-1))};
  11141. g.h.T7=function(){return 0};g.h=sx.prototype;g.h.Hw=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.m1.ZN()};
  11142. g.h.onError=function(){this.L=!0;this.onDone()};
  11143. g.h.onDone=function(){this.wd||(this.Y=!0,this.m1.Ex())};
  11144. g.h.uW=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
  11145. g.h.getResponseHeader=function(T){try{return this.xhr.getResponseHeader(T)}catch(Q){return""}};
  11146. g.h.Yn=function(){return+this.getResponseHeader("content-length")};
  11147. g.h.Zd=function(){return this.S};
  11148. g.h.gY=function(){return this.status>=200&&this.status<300&&!!this.S};
  11149. g.h.Pf=function(){return this.T.totalLength>0};
  11150. g.h.dY=function(){var T=this.T;this.T=new oV;return T};
  11151. g.h.k0=function(){return this.T};
  11152. g.h.abort=function(){this.wd=!0;this.xhr.abort()};
  11153. g.h.gQ=function(){return!0};
  11154. g.h.Cj=function(){return this.L};
  11155. g.h.dw=function(){return""};g.h=exy.prototype;g.h.getResponseHeader=function(T){return T==="content-type"?this.T.get("type"):""};
  11156. g.h.abort=function(){};
  11157. g.h.uW=function(){return!0};
  11158. g.h.Yn=function(){return this.range.length};
  11159. g.h.Zd=function(){return this.loaded};
  11160. g.h.gY=function(){return!!this.loaded};
  11161. g.h.Pf=function(){return!!this.S.totalLength};
  11162. g.h.dY=function(){var T=this.S;this.S=new oV;return T};
  11163. g.h.k0=function(){return this.S};
  11164. g.h.gQ=function(){return!0};
  11165. g.h.Cj=function(){return!!this.error};
  11166. g.h.dw=function(){return this.error};g.h=Eg5.prototype;g.h.start=function(T){var Q={credentials:"include",cache:"no-store"};Object.assign(Q,this.C);this.Y&&(Q.signal=this.Y.signal);T=new Request(T,Q);fetch(T).then(this.D,this.onError).then(void 0,ve)};
  11167. g.h.onDone=function(){this.wd()||this.m1.Ex()};
  11168. g.h.getResponseHeader=function(T){return this.responseHeaders?this.responseHeaders.get(T):null};
  11169. g.h.uW=function(){return!!this.responseHeaders};
  11170. g.h.Zd=function(){return this.S};
  11171. g.h.Yn=function(){return+this.getResponseHeader("content-length")};
  11172. g.h.gY=function(){return this.status>=200&&this.status<300&&!!this.S};
  11173. g.h.Pf=function(){return!!this.T.totalLength};
  11174. g.h.dY=function(){var T=this.T;this.T=new oV;return T};
  11175. g.h.k0=function(){return this.T};
  11176. g.h.wd=function(){return this.N};
  11177. g.h.abort=function(){this.L&&this.L.cancel().catch(function(){});
  11178. this.Y&&this.Y.abort();this.N=!0};
  11179. g.h.gQ=function(){return!0};
  11180. g.h.Cj=function(){return this.B};
  11181. g.h.dw=function(){return this.errorMessage};g.h=y_6.prototype;g.h.onDone=function(){if(!this.wd){this.status=this.xhr.status;try{this.response=this.xhr.response,this.S=this.response.byteLength}catch(T){}this.T=!0;this.m1.Ex()}};
  11182. g.h.Hw=function(){this.xhr.readyState===2&&this.m1.ZN()};
  11183. g.h.M_=function(T){this.wd||(this.status=this.xhr.status,this.T||(this.S=T.loaded),this.m1.La((0,g.XY)(),T.loaded))};
  11184. g.h.uW=function(){return this.xhr.readyState>=2};
  11185. g.h.getResponseHeader=function(T){try{return this.xhr.getResponseHeader(T)}catch(Q){return g.rB(Error("Could not read XHR header "+T)),""}};
  11186. g.h.Yn=function(){return+this.getResponseHeader("content-length")};
  11187. g.h.Zd=function(){return this.S};
  11188. g.h.gY=function(){return this.status>=200&&this.status<300&&this.T&&!!this.S};
  11189. g.h.Pf=function(){return this.T&&!!this.response&&!!this.response.byteLength};
  11190. g.h.dY=function(){var T=this.response;this.response=void 0;return new oV([new Uint8Array(T)])};
  11191. g.h.k0=function(){return new oV([new Uint8Array(this.response)])};
  11192. g.h.abort=function(){this.wd=!0;this.xhr.abort()};
  11193. g.h.gQ=function(){return!1};
  11194. g.h.Cj=function(){return!1};
  11195. g.h.dw=function(){return""};g.S(Cr,g.x);Cr.prototype.TW=function(){if(!this.zb.length)return[];var T=this.zb;this.zb=[];this.L=g.m9(T).info;return T};
  11196. Cr.prototype.Ez=function(){return this.zb};
  11197. Cr.prototype.EK=function(){g.x.prototype.EK.call(this);this.T=null;this.zb.length=0;this.MO.length=0;this.L=null};g.S(z_,g.x);g.h=z_.prototype;
  11198. g.h.YWk=function(){if(!this.wd()){var T=(0,g.XY)(),Q=!1;if(this.policy.RM){T=T-(this.timing.S>0?this.timing.j:this.timing.T)-this.timing.vy()*1E3;var k=Ow(XM(this),!1);T>=2E3*k?Q=!0:T>=this.policy.SP*k&&(this.T=this.policy.xE)}else if(this.timing.S>0){if(this.N){this.policy.Fk&&(this.T=0);return}var l=this.timing.zv();this.timing.T2();var v=this.timing.zv();v-l>=this.policy.OW*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(v-l).toFixed(0)}),Q=this.T>=5):this.T=0}else{var L=T-
  11199. this.timing.RR();
  11200. this.policy.xE&&L>0&&(this.T+=1);Q=Ow(XM(this),!1)*this.policy.c9;(Q=L>Q*1E3)&&this.logger.debug(function(){return"Elbow late by "+L.toFixed(3)})}this.T>0&&this.m1.Xa();
  11201. Q?this.Q$():this.S.start()}};
  11202. g.h.Q$=function(){this.Y=!0;this.m1.qD();this.lastError="net.timeout";dQ(this)};
  11203. g.h.canRetry=function(T){var Q=XM(this);T=T?this.policy.A7:this.policy.vA;return Q.timedOut<this.policy.IT&&Q.T<T};
  11204. g.h.SZ=function(){return this.lastError};
  11205. g.h.Jn=function(){return this.T};
  11206. g.h.dispose=function(){this.S.dispose();g.x.prototype.dispose.call(this)};var Z6={},I8C=(Z6["1h"]=8,Z6["9h"]=4,Z6["1"]=8,Z6["9"]=4,Z6["("]=4,Z6.h=2,Z6.H=2,Z6),f0={},hJ5=(f0.o=3,f0.O=3,f0.so=3,f0.a=1,f0.ah=1,f0.A=1,f0.m=1,f0.M=1,f0.sa=1,f0.mac3=7,f0.MAC3=7,f0.meac3=5,f0.MEAC3=5,f0),Gr={},Swg=(Gr.o=0,Gr.O=0,Gr.a=0,Gr.ah=0,Gr.A=0,Gr.m=1,Gr.M=1,Gr.mac3=1,Gr.MAC3=1,Gr.meac3=1,Gr.MEAC3=1,Gr.so=4,Gr.sa=4,Gr);var Xtf={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var cJ,rQ,Dm=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],U6I=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],RJI=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],Zog=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],f8I=["412","359"],G7f=[["141"],["774"],["380"],["328"]],mH={},gc5=(mH["398"]="397 396 395 394 788 787".split(" "),
  11207. mH["247"]=["780","779","244","243","242"],mH["136"]=["135","134","133","160"],mH["141"]=["140"],mH["774"]=["251","250"],mH),IM={},MvX=(IM["135"]=["134","133","160"],IM["243"]=["242"],IM["781"]=["780","779"],IM["777"]=["776","775"],IM["396"]=["395","394"],IM["141"]=["140"],IM["774"]=["251","250"],IM),hp={},YwJ=(hp["274"]=["317","273","318","280","279"],hp["145"]=["144","222","223","143","142"],hp["141"]=["149"],hp["140"]=["149"],hp["380"]=["381"],hp["328"]=["329"],hp),sO={},LuH=(sO["133"]=240,sO["134"]=
  11208. 360,sO["135"]=480,sO["136"]=720,sO["137"]=1080,sO["242"]=240,sO["243"]=360,sO["244"]=480,sO["247"]=720,sO["248"]=1080,sO["298"]=720,sO["299"]=1080,sO["302"]=720,sO["303"]=1080,sO["395"]=240,sO["396"]=360,sO["397"]=480,sO["398"]=720,sO["399"]=1080,sO);var Cxu={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.S(kR,hU);g.h=kR.prototype;g.h.IB=function(){return this.timing.requestNumber};
  11209. g.h.IK=function(){return this.eY.IK()};
  11210. g.h.HA=function(){var T=l85(this.jV);if(this.Qb){var Q=this.Qb,k=Q.T.totalLength;T.ulen=k;k>0&&(Q=Uj(Q.T,0),T.ubyte=Q,k===1&&Q===0&&(T.b248180278=!0))}this.W1&&(T.rc=this.policy.iy?this.W1:this.W1.toString());this.policy.Hn&&this.d1&&(T.tr=this.d1);T.itag=this.info.MO[0].T.info.itag;T.ml=""+ +this.info.MO[0].T.ZG();T.sq=""+this.info.MO[0].NO;this.eY&&(T.ifi=""+ +yp(this.info.Xs.S));this.W1!==410&&this.W1!==500&&this.W1!==503||(T.fmt_unav="true");var l;(k=this.errorMessage||((l=this.xhr)==null?void 0:
  11211. l.dw()))&&(T.msg=k);this.d2&&(T.smb="1");this.info.isDecorated()&&(T.sdai="1");return T};
  11212. g.h.z1=function(){return HP5(this.timing)};
  11213. g.h.dw=function(){return this.xhr.dw()||""};
  11214. g.h.cV=function(){return this.isComplete()||this.timing.cV()};
  11215. g.h.La=function(){!this.wd()&&this.xhr&&(this.W1=this.xhr.status,this.policy.Bs&&this.N_&&this.Iw(!1),this.HH()?this.fM(2):!this.yX&&this.cV()&&(this.fM(),this.yX=!0))};
  11216. g.h.ZN=function(){if(!this.wd()&&this.xhr){if(!this.xR&&this.xhr.uW()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var T=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.xR=((0,g.XY)()-T)/1E3}this.xhr.uW()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Bp&&!lJb()&&g.ri("yt-player-headers-readable",!0,2592E3);T=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),k;(k=this.Xi)==null||k.stop();this.hV=T||this.hV;
  11217. this.GW=Q||this.GW}};
  11218. g.h.Ex=function(){var T=this.xhr;if(!this.wd()&&T){this.W1=T.status;T=this.Nw(T);if(this.policy.Hn){var Q;(Q=this.Xi)==null||Q.stop()}T===5?dQ(this.jV):this.OH(T);this.jV.S.stop()}};
  11219. g.h.Nw=function(T){var Q=this;bog(this);if(Nm(this.jV,this.xhr.status,this.Up?this.timing.z9||this.rK:this.xhr.gY(),!1,this.El))return 5;var k="";AU(this.jV,this.xhr)&&(k=k76(this.jV,this.xhr));if(k)return tw(XM(this.jV)),this.info.Pg(this.eY,k),3;k=T.Zd();if(this.Qb){this.Iw(!0);bog(this);if(Nm(this.jV,this.xhr.status,this.timing.z9||this.rK,!1,this.El))return 5;if(!this.Kg){if(this.rK)return tw(XM(this.jV)),3;this.jV.lastError="net.closed";return 5}}else{if(Nm(this.jV,this.xhr.status,this.xhr.gY(),
  11220. !1,this.El))return 5;var l=this.info.L;if(l&&l!==k||T.Cj())return this.jV.lastError="net.closed",5;this.Iw(!0)}l=Wk5(this)?T.getResponseHeader("X-Bandwidth-Est"):0;if(T=Wk5(this)?T.getResponseHeader("X-Bandwidth-Est3"):0)this.Rh=!0,this.policy.dE&&(l=T);Qt5(this.jV,k,l?Number(l):0,this.info.MO[0].type===5);this.logger.debug(function(){var v=Q.timing;return"Succeeded, rtpd="+(v.Tg*1E3+v.T-Date.now()).toFixed(0)});
  11221. return 4};
  11222. g.h.canRetry=function(){this.wd();var T=this.info.isDecorated();return this.jV.canRetry(T)};
  11223. g.h.onStateChange=function(){this.isComplete()&&(this.policy.Wz?this.qD():this.timing.deactivate())};
  11224. g.h.Q$=function(){this.jV.Q$()};
  11225. g.h.Xa=function(){this.callback&&this.callback(this,this.state)};
  11226. g.h.Jn=function(){return this.jV.Jn()};
  11227. g.h.dispose=function(){hU.prototype.dispose.call(this);this.jV.dispose();var T;(T=this.Xi)==null||T.dispose();this.policy.Wz||this.qD()};
  11228. g.h.qD=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
  11229. g.h.TW=function(){if(!this.Ez().length)return[];this.VK=!0;return this.N_.TW()};
  11230. g.h.HH=function(){if(this.state<1)return!1;if(this.N_&&this.N_.zb.length)return!0;var T;return((T=this.xhr)==null?0:T.Pf())?!0:!1};
  11231. g.h.Ez=function(){this.Iw(!1);return this.N_?this.N_.Ez():[]};
  11232. g.h.Iw=function(T){try{if(T||this.xhr.uW()&&this.xhr.Pf()&&!AU(this.jV,this.xhr)&&!this.TQ)this.N_||(this.N_=new Cr(this.policy,this.info.MO)),this.xhr.Pf()&&(this.Qb?this.Qb.feed(this.xhr.dY()):BJ(this.N_,this.xhr.dY(),T&&!this.xhr.Pf()))}catch(Q){this.Qb?d66(this,Q):g.rB(Q)}};
  11233. g.h.qt=function(T,Q){switch(T){case 21:T=Q.split(1).ow;N8T(this,T);break;case 22:this.Kg=!0;BJ(this.N_,new oV([]),!0);break;case 43:if(T=w5(new sj(Q),1))this.info.Pg(this.eY,T),this.rK=!0;break;case 45:Q=Gq(new sj(Q));T=Q.Nh;Q=Q.V7;T&&Q&&(this.Of=T/Q);break;case 44:this.Nt=$o5(new sj(Q));var k,l,v;!this.timing.z9&&((k=this.Nt)==null?void 0:k.action)===4&&((l=this.Nt)==null?0:(v=l.mM)==null?0:v.Up)&&(this.Up=this.Nt.mM.Up);break;case 53:this.policy.Hn&&(T=OFI(new sj(Q)).Vm)&&(this.Xi||(this.Vm=T,this.Xi=
  11234. new g.FA(this.kp,T,this)),this.Xi.start());break;case 60:this.AN=fP(new sj(Q));break;case 58:if(T=h3C(new sj(Q)))this.WA=T,T.WA===3&&(this.El=!0)}};
  11235. g.h.QQ=function(T,Q,k,l){k||this.timing.QQ(l);if(T!==21)return!1;if(T=this.policy.Bs)if(T*=this.info.MO[0].T.info.qY,Q.totalLength+k!==l&&Q.totalLength<T)return!1;if(!k){if(Q.totalLength===1)return!0;Q=Q.split(1).ow}N8T(this,Q);return!0};
  11236. g.h.Zd=function(){return this.xhr.Zd()};
  11237. g.h.Az=function(){return this.xR};
  11238. g.h.aG=function(){return this.zD()?2:1};
  11239. g.h.zD=function(){if(!this.policy.C.Jy||!isNaN(this.info.Jx)&&this.info.Jx>0)return!1;if(!this.xhr.uW())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Qb)var T=!this.info.L;else this.xhr.Yn()?T=!1:(T=this.xhr.getResponseHeader("content-type"),T=T==="audio/mp4"||T==="video/mp4"||T==="video/webm");if(!T)return!1;if(isNaN(this.info.Jx)){T=this.xhr.getResponseHeader("x-head-seqnum");var Q=this.timing.policy.C?1:0;if(!T)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
  11240. else if(Number(T)>this.info.MO[0].NO+Q)return!1}return!0};
  11241. g.h.T7=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
  11242. g.h.UI=function(){this.xhr&&(this.hV=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.hV};
  11243. g.h.oR=function(){this.xhr&&(this.GW=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.GW};
  11244. g.h.SZ=function(){return this.jV.SZ()};
  11245. g.h.kp=function(){if(!this.wd()&&this.xhr){this.d1="heartbeat";var T=this.jV;T.T+=2;this.Xa()}};g.S(Kr,Ux);g.h=Kr.prototype;g.h.Jk=function(T,Q){var k=(T-this.B)/1E3,l=Q-this.L;this.S>0?l>0&&(this.hj&&(k>.2||l<1024?(this.Y+=k,k>.2&&rwI(this,.05,l)):rwI(this,k,l)),this.Bd&&(this.sK+=l,this.Jj+=k)):Q>this.policy.T&&this.Kn(T,Q);Ux.prototype.Jk.call(this,T,Q)};
  11246. g.h.IX=function(T,Q){Rz(this,T,Q);this.Jk(T,Q);this.hj&&(Q=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.S>0&&pc(this.V4,this.sK,this.Y),T=(T-this.T)/1E3||.01,this.policy.j&&!(this.S>0)||Od(this.V4,T,this.L,Q,!1))};
  11247. g.h.CJ=function(T){Rz(this,T,this.N);var Q=(T-this.B)/1E3;$m(this.V4,Q,0);this.uu(Q,0);!this.hj&&this.S>0||(Q=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.S>0&&(this.Y+=(T-this.B)/1E3,pc(this.V4,this.sK,this.Y)),Od(this.V4,(T-this.T)/1E3||.01,this.L,Q,!1,!0))};
  11248. g.h.gp=function(T){T=T.o5||2147483647;(T&2)!==2&&(this.Bd=!1);(T&1)===1&&(this.hj=!0)};
  11249. g.h.WQ=function(T){T=T.o5||2147483647;(T&2)===2&&(this.Bd=!1);(T&1)===1&&(this.hj=!1)};
  11250. g.h.Ne=function(){return this.j};
  11251. g.h.G$=function(){var T=this.Bd?this.now()-this.B:0;return Math.max(this.Jj*1E3+T,1)};
  11252. g.h.HI=function(){return this.sK*1E3/this.G$()};
  11253. g.h.Kn=function(T,Q){T=T===void 0?this.C:T;Q=Q===void 0?this.N:Q;this.S>0||(Ux.prototype.Kn.call(this,T,Q),Q=this.V4,T=(T-this.D)/1E3,Q.j.Q1(1,(this.D-this.T)/1E3),Q.i9.Q1(1,T))};
  11254. g.h.aE=function(T){this.p_=T};
  11255. g.h.i6=function(){var T=Ux.prototype.i6.call(this);T.rbw=this.HI();T.rbe=+this.Bd;T.gbe=+this.hj;T.ackt=(this.p_-this.T).toFixed();return T};
  11256. g.h.T2=function(){};
  11257. g.h.zv=function(){return NaN};
  11258. g.h.RR=function(){return this.T+this.snapshot.delay*1E3};xR.prototype.qt=function(T,Q){switch(T){case 20:T=new sj(Q);T={LU:B3(T,1),videoId:w5(T,2),itag:B3(T,3),lmt:B3(T,4),xtags:w5(T,5),Vv:B3(T,6),H5:zU(T,8),qE:B3(T,9),vUV:B3(T,10),startMs:B3(T,11),durationMs:B3(T,12),wv:B3(T,14),timeRange:d5(T,15,jDb),Qw:B3(T,16),rP:B3(T,17),clipId:w5(T,1E3)};this.hG(T);break;case 21:this.EP(Q,!1);break;case 22:this.s_(Q);break;case 31:T=b3(Q,aXI);this.wT(T);break;case 52:T=b3(Q,pIb);this.yv(T);break;default:this.Dt(T,Q)}};
  11259. xR.prototype.hG=function(){};
  11260. xR.prototype.Dt=function(){};g.S(PJ,xR);g.h=PJ.prototype;
  11261. g.h.Dt=function(T,Q){switch(T){case 35:this.CU(Q);break;case 44:this.MW(Q);break;case 43:this.RI(Q);break;case 53:this.xK(Q);break;case 55:T=new sj(Q);d5(T,1,e36);d5(T,2,y0g);break;case 56:this.fO();break;case 57:this.WV(Q);break;case 42:this.yr(Q);break;case 45:this.lX(Q);break;case 59:this.D1(Q);break;case 51:this.z5(Q);break;case 49:this.gp(Q);break;case 50:this.WQ(Q);break;case 47:this.HY(Q);break;case 58:this.rT(Q);break;case 61:this.m1.LY.aE((0,g.XY)());break;case 66:this.hY(Q);break;case 46:this.OS(Q);
  11262. break;case 67:this.onSnackbarMessage(Q);break;case 69:this.o3(Q)}};
  11263. g.h.z5=function(T){T=new sj(T);T={pzB:Al(T,1,Yg),nQK:Al(T,2,Yg)};this.m1.z5(T)};
  11264. g.h.D1=function(T){var Q=new sj(T);T=Ng(Q,1);var k=Ng(Q,2);Q=Ng(Q,3);this.m1.D1(T,k,Q)};
  11265. g.h.lX=function(T){T=Gq(new sj(T));this.m1.lX(T)};
  11266. g.h.HY=function(T){T=b3(T,K2f);this.m1.HY(T)};
  11267. g.h.yr=function(T){T=new sj(T);T={videoId:w5(T,1),formatId:d5(T,2,Yg),endTimeMs:B3(T,3),osj:B3(T,4),mimeType:w5(T,5),Yg:d5(T,6,N2X),indexRange:d5(T,7,N2X),VC:d5(T,8,A0C)};this.m1.yr(T)};
  11268. g.h.WV=function(T){T=y0g(new sj(T));this.m1.WV(T)};
  11269. g.h.fO=function(){this.m1.fO()};
  11270. g.h.CU=function(T){T=utb(new sj(T));this.m1.CU(T)};
  11271. g.h.xK=function(T){T=OFI(new sj(T));this.m1.xK(T)};
  11272. g.h.MW=function(T){T=$o5(new sj(T));this.m1.MW(T)};
  11273. g.h.RI=function(T){T={redirectUrl:w5(new sj(T),1)};this.m1.RI(T)};
  11274. g.h.EP=function(T){var Q=Uj(T,0);if(T.totalLength!==1){T=T.split(1).ow;var k=this.S[Q]||null;k&&JU(this.m1.Li,Q,k,T)}};
  11275. g.h.s_=function(T){T=Uj(T,0);var Q=this.S[T]||null;Q&&this.m1.s_(T,Q)};
  11276. g.h.yv=function(T){this.m1.yv(T)};
  11277. g.h.hG=function(T){var Q=T.LU,k=T.H5,l=T.Vv,v=T.rP,L=T.Qw,q=T.qE,Y=T.startMs,U=T.durationMs,R=T.timeRange,Z=T.wv,f=T.clipId,G=Ew(T);T=XuJ.has(bk[""+T.itag]);this.S[Q]=G;this.m1.Cn(G,T,{LU:Q,H5:!!k,Vv:l!=null?l:-1,qE:q!=null?q:-1,startMs:Y!=null?Y:-1,durationMs:U!=null?U:-1,wv:Z,rP:v,Qw:L,clipId:f,timeRange:R})};
  11278. g.h.gp=function(T){T={o5:B3(new sj(T),1)};this.m1.gp(T)};
  11279. g.h.WQ=function(T){T={o5:B3(new sj(T),1)};this.m1.WQ(T)};
  11280. g.h.wT=function(T){this.m1.wT(T)};
  11281. g.h.rT=function(T){T=h3C(new sj(T));this.m1.rT(T)};
  11282. g.h.hY=function(T){T={Mz:d5(new sj(T),1,HFT)};this.m1.hY(T)};
  11283. g.h.onSnackbarMessage=function(T){T=B3(new sj(T),1);this.m1.onSnackbarMessage(T)};
  11284. g.h.o3=function(T){T={Ue:Al(new sj(T),1,do5)};this.m1.o3(T)};
  11285. g.h.OS=function(T){T=new sj(T);T={reloadPlaybackParams:d5(T,1,IXH),gM:zU(T,2)};this.m1.OS(T)};g.S(HJ,g.x);g.h=HJ.prototype;g.h.eX=function(){return Array.from(this.Wh.keys())};
  11286. g.h.Z0=function(T){T=this.Wh.get(T);var Q=T.zb;T.kR+=Q.totalLength;T.zb=new oV;return Q};
  11287. g.h.FG=function(T){return this.Wh.get(T).FG};
  11288. g.h.yW=function(T){return this.Wh.get(T).yW};
  11289. g.h.Cn=function(T,Q,k){this.Wh.get(T)||ncC(this,T,Q);Q=this.Wh.get(T);this.C_?(T=x6t(this,T,k),KuC(this,k.LU,Q,T)):(k.H5?Q.FR=k.wv:Q.CO.push(k),Q.ev.push(k))};
  11290. g.h.gr=function(T){var Q;return((Q=this.Wh.get(T))==null?void 0:Q.MO)||[]};
  11291. g.h.fM=function(){for(var T=g.B(this.Wh.values()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.f3&&(Q.M_&&Q.M_(),Q.f3=!1)};
  11292. g.h.s_=function(T,Q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+Q});
  11293. var k=this.Wh.get(Q);tU?k&&!k.FG&&(k.MN.get(T)?k.MN.get(T).TM=!0:k.MN.set(T,{data:new oV,WK:0,TM:!0}),k.yW=!0):k&&!k.yW&&(k.yW=!0)};
  11294. g.h.TW=function(T){if(tU){var Q=this.Wh.get(T);if(Q)for(var k=g.B(Q.MN),l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;var L=Q.L6.get(l);if(k0(L[0])){if(!v.TM)continue;var q=v.data,Y=0,U=[];L=g.B(L);for(var R=L.next();!R.done;R=L.next()){R=R.value;var Z=R.L,f=Lx(q,Y,Z);Y+=Z;U.push(new z3(R,f))}Q.lq.push.apply(Q.lq,g.ZH(U))}else if(v.data.totalLength>0||!L[0].range&&v.TM)q=void 0,Y=L[0],U=v.WK,L=v.data,Y.range||(q=v.TM),q=new z3(AWg(Y,Y.S+U,L.totalLength,q),L),
  11295. v.WK+=q.info.L,Q.lq.push(q);Q.MN.get(l).data=new oV;v.TM&&Q.MN.delete(l)}T=this.Wh.get(T);if(!T)return[];Q=T.lq;T.lq=[];k=g.B(Q);for(l=k.next();!l.done;l=k.next())T.kR+=l.value.info.L;return Q||[]}k=(Q=this.Wh.get(T))==null?void 0:Q.N_;if(!k)return[];this.Iw(T,k);return k.TW()};
  11296. g.h.HH=function(T){if(tU)return $R(this,T);var Q,k,l;return!!((k=(Q=this.Wh.get(T))==null?void 0:Q.N_)==null?0:(l=k.Ez())==null?0:l.length)||$R(this,T)};
  11297. g.h.Iw=function(T,Q){for(;$R(this,T);){var k=this.Z0(T);var l=T;l=this.Wh.get(l).FG&&!WJ(this,l);BJ(Q,k,l&&uoT(this,T))}};
  11298. g.h.EK=function(){g.x.prototype.EK.call(this);for(var T=g.B(this.Wh.keys()),Q=T.next();!Q.done;Q=T.next())Ox(this,Q.value);var k;if((k=this.qL)==null?0:k.dJ)for(T=g.B(this.Wh.values()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.MN.clear(),Q.L6.clear(),Q.lq.length=0,Q.MO.length=0,Q.ev.length=0,Q.CO.length=0;this.Wh.clear()};
  11299. var tU=!1;g.S(eJ,g.x);g.h=eJ.prototype;g.h.La=function(){!this.wd()&&this.xhr&&(this.Iw(!1),QE(this.m1,this))};
  11300. g.h.ZN=function(){};
  11301. g.h.Ex=function(){if(!this.wd()&&this.xhr){var T=this.Nw();T===5?dQ(this.jV):this.OH(T);this.jV.S.stop();var Q;(Q=this.jN)==null||Q.stop()}};
  11302. g.h.Nw=function(){var T="";AU(this.jV,this.xhr)&&(T=k76(this.jV,this.xhr));if(T)return this.info.Xs.Pg(this.eY,T),3;this.Iw(!0);if(Nm(this.jV,this.xhr.status,this.xhr.gY(),this.info.u6(),this.El))return 5;if(this.iF)return 3;Qt5(this.jV,this.xhr.Zd(),0,this.u6());this.policy.Z8&&COC(this.m1);return 4};
  11303. g.h.Iw=function(T){var Q=this.xhr;if((T||!AU(this.jV,this.xhr))&&Q.Pf()){T=Q.dY();var k=T.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+k});
  11304. this.Qb.feed(T)}};
  11305. g.h.qt=function(T,Q){this.xhr.gQ()&&T===21&&ptb(this);this.d7.qt(T,Q)};
  11306. g.h.QQ=function(T,Q,k,l){k||(this.LY.QQ(l),this.policy.LH&&T===21&&ptb(this));if(T!==21)return!1;this.LY.z9=!0;T=Q.totalLength;k||(this.OQ=Uj(Q,0),Q=Q.split(1).ow);var v=this.policy.hQ,L=this.d7.S[this.OQ],q=this.C_.L.get(L);if(v&&q&&(v*=q.info.qY,T+k!==l&&T<v))return!1;JU(this.Li,this.OQ,L,Q);return!0};
  11307. g.h.CU=function(T){this.m1.CU(T)};
  11308. g.h.xK=function(T){if(this.policy.enableServerDrivenRequestCancellation){var Q;(Q=this.jN)==null||Q.dispose();this.Sv=T;T.j0&&(this.jN=new g.FA(this.LI,T.j0,this));this.LI()}};
  11309. g.h.LI=function(){var T;if((T=this.Sv)!=null&&T.items){var Q;(Q=this.jN)==null||Q.start();if(this.LY.S>0){this.policy.RM&&this.jV.S.stop();T=this.LY.G$();Q=this.LY.HI();var k=WuT(this,T);if(!(Q>k.Fb||k.r3>0&&this.info.GV()>k.r3)){this.cW=(0,g.XY)();var l;(l=this.jN)==null||l.stop();this.policy.Z8&&(l=this.m1,T={h1:Math.round(Q*T/1E3),NU:T},l.policy.Z8&&(l.i9=T,l.GG++));this.Q$()}}}};
  11310. g.h.Q$=function(){this.jV.Q$()};
  11311. g.h.MW=function(T){this.m1.MW(T,this.IB())};
  11312. g.h.RI=function(T){this.iF=!0;this.info.Xs.Pg(this.eY,T.redirectUrl)};
  11313. g.h.gp=function(T){this.LY instanceof Kr&&this.LY.gp(T)};
  11314. g.h.WQ=function(T){this.LY instanceof Kr&&this.LY.WQ(T)};
  11315. g.h.yr=function(T){var Q=T.formatId,k=Ew({itag:Q.itag,lmt:Q.lmt,xtags:Q.xtags}),l,v,L=new ix(((l=T.Yg)==null?void 0:l.first)||0,((v=T.Yg)==null?void 0:v.rb)||0),q,Y;l=new ix(((q=T.indexRange)==null?void 0:q.first)||0,((Y=T.indexRange)==null?void 0:Y.rb)||0);this.C_.L.get(k)||(k=T.VC||{},k.mimeType=T.mimeType,k.itag=Q.itag,k.lastModified=""+(Q.lmt||0),k.xtags=Q.xtags,T=this.C_,Q=W9(""),k=OE(k,null),ny(T,new Dj(Q,k,L,l)))};
  11316. g.h.lX=function(T){this.m1.lX(T,this.IB())};
  11317. g.h.onSnackbarMessage=function(T){if(this.policy.Q3)this.m1.onSnackbarMessage(T)};
  11318. g.h.o3=function(T){this.policy.iK&&this.m1.o3(T,this.IB())};
  11319. g.h.wT=function(T){this.Dm=T;this.vN=(0,g.XY)();this.m1.wT(T)};
  11320. g.h.D1=function(T,Q,k){this.m1.D1(T,Q,k)};
  11321. g.h.WV=function(T){T.scope===2&&(this.BW=T);this.m1.WV(T)};
  11322. g.h.fO=function(){this.B2=!0;this.m1.fO()};
  11323. g.h.z5=function(T){this.policy.bX&&this.m1.z5(T)};
  11324. g.h.HY=function(T){this.m1.HY(T,this.IB())};
  11325. g.h.rT=function(T){T.WA===3&&(this.El=!0);this.m1.rT(T)};
  11326. g.h.hY=function(T){this.m1.hY(T)};
  11327. g.h.OS=function(T){this.m1.OS(T)};
  11328. g.h.canRetry=function(){this.wd();return this.jV.canRetry(!1)};
  11329. g.h.dispose=function(){if(!this.wd()){g.x.prototype.dispose.call(this);this.jV.dispose();var T;(T=this.jN)==null||T.dispose();this.OH(-1);this.qD()}};
  11330. g.h.OH=function(T){this.state=T;QE(this.m1,this)};
  11331. g.h.u6=function(){return this.info.u6()};
  11332. g.h.kZ=function(){return this.B2};
  11333. g.h.qw=function(){return this.BW};
  11334. g.h.Cn=function(T,Q,k){k.clipId&&(this.clipId=k.clipId);this.policy.S&&!Q&&(this.qB=k.qE);this.Li.Cn(T,Q,k);if(this.policy.XU&&this.Dm&&this.LY instanceof fr){var l=this.Dm.pP;this.LY.Cn(k.durationMs/1E3,Q,l>0&&k.qE+1>=l)}this.Li.Wh.get(T).dI=!0};
  11335. g.h.s_=function(T,Q){this.Li.s_(T,Q)};
  11336. g.h.yv=function(T){this.requestIdentifier=T};
  11337. g.h.TW=function(T){return this.Li.TW(T)};
  11338. g.h.gr=function(T){return this.Li.gr(T)};
  11339. g.h.HH=function(T){return this.Li.HH(T)};
  11340. g.h.eX=function(){return this.Li.eX()};
  11341. g.h.aG=function(){return 1};
  11342. g.h.IB=function(){return this.LY.requestNumber};
  11343. g.h.yK=function(){return this.requestIdentifier};
  11344. g.h.IK=function(){return this.eY.IK()};
  11345. g.h.Zc=function(){this.qD()};
  11346. g.h.qD=function(){this.LY.deactivate();var T;(T=this.xhr)==null||T.abort()};
  11347. g.h.isComplete=function(){return this.state>=3};
  11348. g.h.s8=function(){return this.state===3};
  11349. g.h.u5=function(){return this.state===5};
  11350. g.h.lj=function(){return this.state===4};
  11351. g.h.qj=function(){return this.isComplete()};
  11352. g.h.gT=function(){return this.state>=1};
  11353. g.h.Jn=function(){return this.policy.Fk?this.jV.Jn():0};
  11354. g.h.Xa=function(){this.policy.Fk&&QE(this.m1,this)};
  11355. g.h.VM=function(){return U0T(this.info)};
  11356. g.h.SZ=function(){return this.jV.SZ()};
  11357. g.h.HA=function(){var T=l85(this.jV);Object.assign(T,ZnJ(this.info));T.req="sabr";T.rn=this.IB();var Q;if((Q=this.xhr)==null?0:Q.status)T.rc=this.policy.iy?this.xhr.status:this.xhr.status.toString();var k;(Q=(k=this.xhr)==null?void 0:k.dw())&&(T.msg=Q);this.cW&&(k=WuT(this,this.cW-this.LY.Ne()),T.letm=k.wx,T.mrbps=k.Fb,T.mram=k.r3);return T};$6g.prototype.tick=function(T,Q){this.ticks[T]=Q?window.performance.timing.navigationStart+Q:(0,g.XY)()};g.S(Ex,g.ox);g.h=Ex.prototype;
  11358. g.h.WC=function(T,Q,k,l){if(this.policy.xs&&this.policy.S){var v=T.Bn||null;v?(LNI(this,T.NO,QX(this,T.startTime,T.NO),{Bn:v,NO:T.NO,t5:!!Q,bK:k},this.L),l&&this.L&&this.L.zQ(T.NO,T.startTime,this.S,(Q==null?void 0:Q.T)||[],(Q==null?void 0:Q.S)||[],(Q==null?void 0:Q.Y)||[],k,(Q==null?void 0:Q.gN)||0,(Q==null?void 0:Q.L)||void 0)):this.S===1&&i$(this,5,"noad")}else{var L=!1;this.policy.S&&(L=k?this.xm===T.NO:this.hj===T.NO);if(this.L&&l&&!L){l=[];L=[];var q=[],Y=void 0,U=0;Q&&(l=Q.T,L=Q.S,q=Q.Y,Y=
  11359. Q.L,U=Q.gN,this.T9("sdai",{sq:T.NO,ssvicpns:l.join("."),ssvid:L.join(".")}));this.policy.S&&(k?this.xm=T.NO:this.hj=T.NO);this.L.zQ(T.NO,T.startTime,this.S,l,L,q,k,U,Y)}this.policy.S?k&&(this.S===1&&i$(this,5,"noad"),T.NO!==((v=this.T)==null?void 0:v.NO)&&(ljg(this,T,Q,k),isNaN(T.startTime)||o05(this,T.NO,QX(this,T.startTime,T.NO),!!Q,this.L))):k&&ljg(this,T,Q)}};
  11360. g.h.L3=function(T,Q,k){var l=this.videoTrack.T.index.a_()<=Q;this.T={Bn:T,NO:Q,t5:k};l&&ym(this,T,Q)};
  11361. g.h.t1=function(){this.L&&this.L.t1()};
  11362. g.h.T9=function(T,Q,k){(T!=="sdai"||this.policy.Hf||(k===void 0?0:k))&&this.loader.T9(T,Q)};
  11363. g.h.EY=function(T,Q){var k=this.videoTrack.T.index.ll(T);if(k>=0){var l;var v=((l=Q.Gx.H$(k,2))==null?void 0:l.e2)||"";if(this.policy.S||v)return Q.AY(T,k),Vm(this.loader,T,T,k),this.T9("sdai",{cmskpad:1,t:T.toFixed(3),sq:k}),!0}this.T9("sdai",{cmskpad:0,t:T.toFixed(3),sq:k});return!1};g.h=YEC.prototype;g.h.JY=function(T,Q,k){T=T||this.T;this.S.has(T)||(this.T9("sldai",{setadconfig:"noentry",cid:T}),this.S.set(T,{event:"unknown",startTimeSecs:0,bf:0,Mc:[],YW:Date.now()}));var l=this.S.get(T);l?(l.rE=6,l.Mc.push(k),l.mR=Q):this.T9("sldai",{setadconfig:"notfound",cid:T})};
  11364. g.h.o3=function(T,Q){var k;if(!((((k=T.Ue)==null?void 0:k.length)||0)<=0)&&(T=T.Ue[0],T.Bn)){var l,v,L,q,Y,U;k=new M6(((l=T.Bn)==null?void 0:l.JK)||0,((v=T.Bn)==null?void 0:v.syd)||0,((L=T.Bn)==null?void 0:L.Ao)||"",((q=T.Bn)==null?void 0:q.identifier)||"",RaX(((Y=T.Bn)==null?void 0:Y.event)||0),(((U=T.Bn)==null?void 0:U.JK)||0)*1E3);Utu(this,k,Q)}};
  11365. g.h.Sb=function(T,Q){T!==void 0&&this.j5(T);if(this.T&&(T=this.S.get(this.T),T!=null&&T.mR)){var k={Hm:T.Mc,D4:DE(T.mR||"")||void 0,cuepointId:this.T};T.ST&&(k.dK=T.ST);Q&&(k.tI=aT(Q.split(";")[0]),k.Wv=Q.split(";")[1]||"");T.rE&&(k.rE=T.rE);return k}};
  11366. g.h.AY=function(T,Q){this.j5(T);var k=this.S.get(this.T);k?(this.T9("ssskipad",{cid:this.T,sn:Q,mt:T.toFixed(3)}),k.ST=Q):this.T9("ssskipadfail",{cid:this.T,sn:Q,mt:T.toFixed(3)})};
  11367. g.h.nV=function(){for(var T=g.B(this.S.values()),Q=T.next();!Q.done;Q=T.next())Q.value.ST=NaN};
  11368. g.h.j5=function(T,Q){Q&&(this.L=Q);if(this.T&&(Q=this.S.get(this.T))&&Q.startTimeSecs<=T&&T<=Q.startTimeSecs+Q.bf)return;this.T="";Q=g.B(this.S.entries());for(var k=Q.next();!k.done;k=Q.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;var v=void 0,L=void 0,q=void 0;if(((v=l)==null?void 0:v.startTimeSecs)<=T&&T<=((L=l)==null?void 0:L.startTimeSecs)+((q=l)==null?void 0:q.bf)){this.T=k;break}}};g.S(v7,g.x);v7.prototype.B5=function(T,Q,k){k=k===void 0?{}:k;this.policy.ID=lc(T,k,this.Y,Q===void 0?!1:Q)};YC.prototype.pJ=function(T){var Q=this;if(this.policy.TB){var k=new Set(T);k.size===this.i9.size&&[].concat(g.ZH(k)).every(function(l){return Q.i9.has(l)})||(this.loader.T9("lwnmow",{itagDenylist:[].concat(g.ZH(T)).join(",")}),this.loader.Qt(!!k.size),this.D=-1,this.i9=k,Uh(this,this.T),this.sK=!0)}};
  11369. YC.prototype.B5=function(T,Q,k){k=k===void 0?{}:k;var l=this.policy.ID;this.N.B5(T,Q===void 0?!1:Q,k);if(l!==this.policy.ID){Uh(this,this.T);Rm(this);var v,L;l>this.policy.ID&&((v=this.L)==null?0:uk(v.info))&&((L=this.nextVideo)==null||!uk(L.info))&&(this.z9=!0)}};mr.prototype.FL=function(T){this.timestampOffset=T;this.flush()};
  11370. mr.prototype.flush=function(){if(this.T.pos>0){var T={a:this.track.uH(),u:this.T.xo(),pd:Math.round(this.Y),ad:Math.round(this.L)},Q=this.S;if(Q){var k=Q.T.info;T.itag=k.itag;k.T&&(T.xtags=k.T);T.sq=Q.NO;T.st=Q.startTime;T.sd=Q.duration;this.track.policy.O3&&(T.si=Q.Bh());Q.Y&&(T.esl=Q.S+Q.L);Q.Dq()&&(T.eos=1)}isNaN(this.timestampOffset)||(T.to=this.timestampOffset);var l;if(Q=(l=this.track.jr)==null?void 0:l.Tx({})){for(var v in Q)this.B[v]!==Q[v]&&(T["sb_"+v]=Q[v]);this.B=Q}this.track.T9("sbu",
  11371. T);this.T.reset();this.buffered=[];this.N=this.L=this.Y=0;this.timestampOffset=this.S=void 0}};hA.prototype.dispose=function(){this.qO=!0};
  11372. hA.prototype.wd=function(){return this.qO};
  11373. g.S(XI,Error);Nv.prototype.skip=function(T){this.offset+=T};
  11374. Nv.prototype.je=function(){return this.offset};g.h=iyJ.prototype;g.h.Uy=function(){return this.S};
  11375. g.h.JV=function(){return this.S.length?this.S[this.S.length-1]:null};
  11376. g.h.FJ=function(){this.S=[];Ds(this);rX(this)};
  11377. g.h.Z0=function(T){this.Jj=this.S.shift().info;T.info.equals(this.Jj)};
  11378. g.h.gr=function(){return g.IQ(this.S,function(T){return T.info})};
  11379. g.h.uH=function(){return!!this.N.info.audio};
  11380. g.h.isDrm=function(){return!!this.N.info.jY};
  11381. g.h.getDuration=function(){return this.N.index.l6()};g.S(jJ,hU);g.h=jJ.prototype;g.h.onStateChange=function(){this.wd()&&(pr(this.Li,this.formatId),this.T.dispose())};
  11382. g.h.HA=function(){var T=a8b(this.Li,this.formatId),Q;var k=((Q=this.Li.Wh.get(this.formatId))==null?void 0:Q.bytesReceived)||0;var l;Q=((l=this.Li.Wh.get(this.formatId))==null?void 0:l.kR)||0;return{expected:T,received:k,bytesShifted:Q,sliceLength:WJ(this.Li,this.formatId),isAnyMediaEndReceived:this.Li.yW(this.formatId)}};
  11383. g.h.z1=function(){return 0};
  11384. g.h.cV=function(){return!0};
  11385. g.h.TW=function(){return this.Li.TW(this.formatId)};
  11386. g.h.Ez=function(){return[]};
  11387. g.h.HH=function(){return this.Li.HH(this.formatId)};
  11388. g.h.SZ=function(){return this.lastError};
  11389. g.h.Jn=function(){return 0};g.S(Kf,g.x);g.h=Kf.prototype;g.h.uH=function(){return!!this.T.info.audio};
  11390. g.h.JV=function(){return this.Y.JV()};
  11391. g.h.Z0=function(T){this.Y.Z0(T);var Q;(Q=this.j)!=null&&(Q.N.add(T.info.NO),Q.T=CdC(Q,Q.Yc,Q.Dd,T,Q.T),Q.L=T,Q.B=(0,g.XY)());this.qY=Math.max(this.qY,T.info.T.info.qY||0)};
  11392. g.h.getDuration=function(){return this.T.index.l6()};
  11393. g.h.FJ=function(){l$(this);this.Y.FJ()};
  11394. g.h.va=function(){return this.Y};
  11395. g.h.isRequestPending=function(T){return this.L.length?T===this.L[this.L.length-1].info.MO[0].NO:!1};
  11396. g.h.FL=function(T){var Q;(Q=this.j)==null||Q.FL(T);var k;(k=this.D)==null||k.FL(T)};
  11397. g.h.T9=function(T,Q){this.loader.T9(T,Q)};
  11398. g.h.jO=function(){return this.loader.jO()};
  11399. g.h.dispose=function(){var T;(T=this.D)==null||T.flush();g.x.prototype.dispose.call(this)};g.S(v6,g.x);v6.prototype.L=function(){this.S++>15||(this.T=!this.T,new Hc5(this.loader,this.policy,this.V4,this.Xs,this.T),this.delay.start())};
  11400. g.h=Hc5.prototype;g.h.ZN=function(){};
  11401. g.h.La=function(){};
  11402. g.h.Ex=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Zd()===this.size)this.loader.T9("rqs",this.getInfo());else{var T="net.connect";this.xhr.status>200?T="net.badstatus":this.xhr.uW()&&(T="net.closed");this.onError(T)}};
  11403. g.h.onError=function(T){var Q=this;this.loader.handleError(T,this.getInfo());JN("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(k){Q.loader.T9("pathprobe",k)},function(k){Q.loader.handleError(k.errorCode,k.details)})};
  11404. g.h.getInfo=function(){var T=this.timing.i6();T.shost=FQ(this.location.LB);T.pb=this.size;return T};g.S(L$,g.x);
  11405. L$.prototype.C=function(T,Q){if(T.C){this.C_.isLive?(T=this.C_.sW&&this.C_.Y?T.T.qT(this.C_.sW,!1):T.T.A5(Infinity),T.Jx=this.Jx):T=T.T.qT(0,!1);if(this.z9){var k=this.z9;T.Jx===0&&(T.N=k.j)}else T.N=this.D;return T}k=T.S;if(!k.T.ZG())return k.T.tH()?(T=EQ(this.N,T.T.info.qY,Q.T.info.qY,0),T=k.T.aT(k,T)):T=k.T.Kh(k),T;var l=k.B-this.loader.getCurrentTime(),v=!k.range||k.L===0&&k.S===0?0:k.range.length-(k.S+k.L),L=k.T;this.H6(T,l)&&v===0&&(this.C_.isManifestless?L=T.T:(L=k.startTime+gH5,k.L&&(L+=k.duration),
  11406. Lr(T,L),k=T.S,L=k.T));L.tH()?(v=this.L,Q=EQ(this.N,L.info.qY,Q.T.info.qY,l,v.Y.length>0&&v.j===0&&this.loader.Wf),l=VX(T),T=k.T.aT(k,Q),(Q=T.L)&&T.MO.length>1&&(l||T.Xs.L||T.MO[0].T!==k.T?T=k.T.aT(k,T.MO[0].L):(l=T.MO[T.MO.length-1],L=l.L/Q,!l.Y&&L<.4&&(T=k.T.aT(k,Q-l.L))))):(k.NO<0&&(Q=Ly(k),Q.pr=""+T.L.length,this.loader.isSeeking()&&(Q.sk="1"),Q.snss=k.C,this.loader.T9("nosq",Q)),T=L.Kh(k));if(this.policy.xm)for(k=g.B(T.MO),Q=k.next();!Q.done;Q=k.next())Q.value.type=6;return T};
  11407. L$.prototype.H6=function(T,Q){if(!VX(T)||!T.T.ZG())return!1;var k=this.L.sK||XLX(T)||Q<=this.policy.vP||this.L.z9;this.logger.debug(function(){return"ready to adapt: "+k+", upgrade pending: "+XLX(T)+", health: "+Q});
  11408. return k};
  11409. L$.prototype.EK=function(){g.x.prototype.EK.call(this)};
  11410. var gH5=2/24;g.S(f$,g.x);f$.prototype.nJ=function(T,Q,k){var l;var v=((l=this.S)==null?void 0:l.reason)==="m"?"m":this.S&&juX(this,this.S)?this.S.reason:"a";this.loader.nJ(new om(T,v,k));Rv(this.loader,Q,T,!0)};
  11411. f$.prototype.Xh=function(T,Q){for(var k=g.B(this.xm),l=k.next();!l.done;l=k.next())if(l.value.id===T)return this.N=this.C_.T[T],az(this.qL)&&(this.z9=!0),T=new om(this.N,Q?"t":"m"),Q&&(this.C=!0),T;this.L=[];return null};
  11412. f$.prototype.B5=function(T,Q,k){k=k===void 0?{}:k;this.T.B5(T,Q===void 0?!1:Q,k)};mT.prototype.setData=function(T,Q,k){var l=this;k=k===void 0?{}:k;if(Q==null?0:Q.d5)this.Mu=OoI(this,Q,k),T.FO=this.Xs.FO();if(this.u6())return!0;this.data=T;this.T=MFy(T,function(v,L){var q;(q=l.m1)==null||q.Fs(v,L)},Q==null?void 0:Q.L);
  11413. if(!this.T)return!1;this.S=g.F0(this.T,ChH);return!0};
  11414. mT.prototype.u6=function(){return this.requestType===1};
  11415. mT.prototype.GV=function(){var T;return((T=this.m1)==null?void 0:T.GV())||0};
  11416. mT.prototype.isDecorated=function(){var T;return!((T=this.data)==null||!T.gV)};fe5.prototype.encrypt=function(T){(0,g.XY)();return this.T.T?S8J(this,T,this.iv):(new g.Yt(this.T.S)).encrypt(T,this.iv)};
  11417. fe5.prototype.decrypt=function(T,Q){(0,g.XY)();return this.T.T?S8J(this,T,Q):(new g.Yt(this.T.S)).decrypt(T,Q)};g.S(Iv,g.x);Iv.prototype.L=function(T,Q){if(Q){Q=Q instanceof g.J_?Q:hf(this,Q);var k;((k=this.T.get(T))==null?void 0:FQ(k.location))!==FQ(Q)&&this.T.set(T,new d05(Q,T))}else this.T.delete(T)};
  11418. Iv.prototype.load=function(){var T=this,Q,k,l,v,L,q,Y,U,R,Z;return g.a(function(f){switch(f.S){case 1:Q=T.T.get(0);g.z5(f,2);var G;if(G=Q&&!T.S)G=FQ(Q.location),G=T.S===wQ(G);if(G){f.Ym(4);break}return g.c(f,XBt(T,T.S?2:0),5);case 5:if(k=f.T)T.L(0,k),yp(k)&&T.L(1,id(k));case 4:g.d6(f,3);break;case 2:l=g.by(f);g.rB(l);if(!T.S){f.Ym(3);break}T.S=!1;return g.c(f,T.load(),7);case 7:return f.return();case 3:if(!T.Hd.experiments.Wd("html5_onesie_probe_ec_hosts")){f.Ym(0);break}g.z5(f,9);v=T;L=v.L;q=3;return g.c(f,
  11419. XBt(T,1),11);case 11:return L.call(v,q,f.T),Y=T,U=Y.L,R=4,g.c(f,XBt(T,2),12);case 12:U.call(Y,R,f.T);g.d6(f,0);break;case 9:Z=g.by(f),g.rB(Z),g.BT(f)}})};
  11420. Iv.prototype.C=function(){var T=this,Q,k;return g.a(function(l){g.Ez(T.j);Q=g.jj(T.Hd.experiments,"html5_onesie_prewarm_max_lact_ms");if(Bd()>=Q)return l.return();(k=T.T.get(0))&&z0J(T,k);g.BT(l)})};
  11421. var CFT={oFd:0,ZvB:1,mB9:2,AHe:3,SFV:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Nj5.prototype.decrypt=function(T){var Q=this,k,l,v,L,q,Y;return g.a(function(U){switch(U.S){case 1:if(Q.T.length&&!Q.T[0].isEncrypted)return U.return();Q.S=!0;Q.fv.z_("omd_s");k=new Uint8Array(16);gG()?l=new g.Ua(T):v=new g.Yt(T);case 2:if(!Q.T.length||!Q.T[0].isEncrypted){U.Ym(4);break}L=Q.T.shift();if(!l){q=v.decrypt(Mg(L.buffer),k);U.Ym(5);break}return g.c(U,l.decrypt(Mg(L.buffer),k),6);case 6:q=U.T;case 5:Y=q;for(var R=0;R<k.length;R++)if(k[R]===255)k[R]=0;else{k[R]+=1;break}R=Q.fv;var Z=L.videoId,
  11422. f=L.LU,G=L.formatId,m=new oV([Y]),I;(I=P6(R.Ph,Z))==null||JU(I,f,G,m);U.Ym(2);break;case 4:Q.fv.z_("omd_c"),H6(Q),Q.S=!1,Q.fv.Qr(),g.BT(U)}})};
  11423. Nj5.prototype.enqueue=function(T,Q,k,l,v){this.T.push({videoId:T,LU:Q,formatId:k,buffer:l,isEncrypted:v});this.S||H6(this)};var x0I=!!Uint8Array.prototype.copyWithin,tf=[],A9X=[],c9u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p$=[],ON=[],W6=[],bnb=[];var PFg="DecompressionStream"in window;g.S(tFy,xR);g.h=tFy.prototype;g.h.Qr=function(){this.Ph.Qr()};
  11424. g.h.Dt=function(T,Q){switch(T){case 10:var k=b3(Q,c05);T=k.ev_;var l=!1;switch(T){case 0:this.Y=!k.rf.Yt;this.iv=k.rf.iv;break;case 2:break;case 23:var v=this.Ph;k=k.Tdq;v.z_("omp_r");k.videoId&&(v.jM=k.videoId);v.jM!==v.videoData.videoId&&(v.videoData.RZB=v.jM,v.T9("ompp","vid."+v.jM));v.NJ=!0;break;case 24:k=this.Ph;k.z_("omp_c");k.NJ=!1;k.PY=!1;var L=(v=k.Ug)==null?void 0:v.get(k.jM);k.notifySubscribers(k.jM);L!=null&&(L.T=!0);Jf(k);break;default:l=!0}this.Ph.Kv&&this.Ph.T9("ombup","id.10;pt."+
  11425. T+";len."+Q.totalLength+(l?";ignored.1":""));this.L=T;break;case 11:pBy(this,Q);break;case 12:this.EP(Q,!0);break;case 37:Q=b3(Q,Dob);(Q.vj||Q.Od)&&Q.videoId&&this.Ph.MM.set(Q.videoId,Q);break;case 60:this.SU(Q);break;case 47:this.V("html5_server_playback_start_policy")&&(Q=b3(Q,K2f),this.Ph.playbackStartPolicy=Q);break;case 35:this.CU(Q);break;case 45:this.lX(Q);break;case 66:this.hY(Q);break;default:this.Ph.Kv&&this.Ph.T9("ombup","id."+T+";len."+Q.totalLength+";ignored.1")}};
  11426. g.h.wT=function(T){this.Ph.wT(T)};
  11427. g.h.SU=function(T){T=b3(T,fP);this.Ph.SU(T)};
  11428. g.h.lX=function(T){T=b3(T,Gq);this.Ph.lX(T)};
  11429. g.h.hG=function(T){var Q=T.LU,k=T.H5,l=T.Vv,v=T.Qw,L=T.qE,q=T.startMs,Y=T.durationMs,U=T.timeRange,R=T.wv,Z=Ew(T),f=XuJ.has(bk[""+T.itag]);k&&this.z_(f?"oais_r":"ovis_r");var G=this.T[Z]!==void 0;this.Ph.Kv&&this.Ph.T9("ombup","id.20;hid."+Q+";fid."+Z);var m=T.videoId||"";this.S[Q]=Z;this.N[Q]=m;G||(this.T[Z]={videoId:m,Dx:!1,uH:f,headers:[]});this.T[Z].headers.push(T);this.Ph.Cn(m,Z,f,{LU:Q,H5:!!k,Vv:l!=null?l:-1,qE:L!=null?L:-1,startMs:q!=null?q:-1,durationMs:Y!=null?Y:-1,wv:R!=null?R:0,Qw:v,timeRange:U})};
  11430. g.h.EP=function(T,Q){var k=Uj(T,0);this.Ph.Kv&&this.Ph.T9("ombup","id."+(Q?12:21)+";len."+T.totalLength+";hid."+k);if(T.totalLength!==1){T=T.split(1).ow;var l=this.S[k]||null,v=this.N[k]||"";l&&(this.Uh(this.T[l].uH?"oafs_r":"ovfs_r"),this.queue.enqueue(v,k,l,T,Q))}};
  11431. g.h.s_=function(T){var Q=Uj(T,0);this.Ph.Kv&&this.Ph.T9("ombup","id.22;len."+T.totalLength+";hid."+Q);T=this.S[Q]||null;var k=this.N[Q]||"";if(T)if(this.V("html5_use_ump_request_slicer")){var l=this.queue;l.T.push({videoId:k,LU:Q,formatId:T,isEncrypted:!1,lc:!0});l.S||H6(l)}else this.Ph.s_(k,Q,T)};
  11432. g.h.yv=function(T){this.Ph.yv(T)};
  11433. g.h.iZ=function(T,Q){var k=this,l,v,L,q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:k.Ph.iZ();l=Mg(T);if(!Q){L=l;Z.Ym(2);break}return g.c(Z,kVg(k.Ph,l,k.iv),3);case 3:L=Z.T;case 2:v=L;if(!k.Ph.enableCompression){Z.Ym(4);break}return g.c(Z,Wqy(k,v),5);case 5:v=Z.T;case 4:try{q=b3(v,moI)}catch(G){return Y=G instanceof Error?{name:G.name,message:G.message}:{},Y.webcrypto=""+ +!!gG(),Y.enc=""+ +k.Y,U=new g.ZK("onesie.response.parse",Y),Z.return(Promise.reject(U))}var f=q;if(f.RE!==1)throw new g.ZK("onesie.response.badproxystatus",
  11434. {st:f.RE,webcrypto:!!gG(),textencoder:!!g.VC.TextEncoder});if(f.httpStatus!==200)throw new g.ZK("onesie.response.badstatus",{st:f.httpStatus});R=g.GU(q.body);return Z.return(R)}})};
  11435. g.h.CU=function(T){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(T=b3(T,utb),this.Ph.CU(T))};
  11436. g.h.hY=function(T){T={Mz:d5(new sj(T),1,HFT)};this.Ph.hY(T)};
  11437. g.h.z_=function(T){this.Ph.z_(T)};
  11438. g.h.Uh=function(T){return this.Ph.Uh(T)};
  11439. g.h.V=function(T){return this.Ph.V(T)};g.S(FJ,g.x);g.h=FJ.prototype;g.h.eX=function(T){var Q,k;return((k=(Q=this.Ug)==null?void 0:Q.get(T))==null?void 0:k.eX())||[]};
  11440. g.h.HH=function(T,Q){var k;return!((k=P6(this,Q))==null||!k.HH(T))};
  11441. g.h.TW=function(T,Q){var k;return((k=P6(this,Q))==null?void 0:k.TW(T))||[]};
  11442. g.h.gr=function(T,Q){var k;return((k=P6(this,Q))==null?void 0:k.gr(T))||[]};
  11443. g.h.OH=function(T){this.state=T;this.notifySubscribers()};
  11444. g.h.u6=function(){return!1};
  11445. g.h.kZ=function(){return!1};
  11446. g.h.qw=function(){};
  11447. g.h.z_=function(T){this.yq.z_(T)};
  11448. g.h.Uh=function(T){return this.yq.Uh(T)};
  11449. g.h.QQ=function(T,Q,k,l){k||this.LY.QQ(l);return!1};
  11450. g.h.qt=function(T,Q){this.fv.qt(T,Q)};
  11451. g.h.MJ=function(){this.z_("orfb");this.jA=!0;if(ld5(this)&&this.xhr){var T={rc:this.xhr.status,lb:this.xhr.Zd(),rt:(1E3*HP5(this.LY)).toFixed(),shost:g.Rq(this.C3),trigger:"o1"};this.T9("pathprobe",RE(T))}};
  11452. g.h.iZ=function(){this.z_("opr_r");this.Ho=!0};
  11453. g.h.Cn=function(T,Q,k,l){if(this.Ug){if(!this.Ug.has(T)){var v=new HJ(this);this.Ug.set(T,v);g.P(this,v)}var L;(L=this.Ug.get(T))==null||L.Cn(Q,k,l);Jf(this);k||(this.qB=l.qE)}else Jf(this)};
  11454. g.h.wT=function(T){this.Di=T;T.Dw!=null&&this.yq.Sy(T.Dw)};
  11455. g.h.SU=function(T){this.AN=T};
  11456. g.h.CU=function(T){T.videoId&&this.CI.set(T.videoId,T)};
  11457. g.h.Qr=function(){if(this.Ug)for(var T=g.B(this.Ug.keys()),Q=T.next();!Q.done;Q=T.next()){var k=void 0;(k=this.Ug.get(Q.value))==null||k.fM()}};
  11458. g.h.lX=function(T){this.BX=T};
  11459. g.h.hY=function(T){if(T==null?0:T.Mz)if(T=T.Mz.ao){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.videoId&&this.NZ.set(Q.videoId,Q)}};
  11460. g.h.T9=function(T,Q,k){this.yq.T9(T,Q,k===void 0?!1:k)};
  11461. g.h.s_=function(T,Q,k){var l;(l=P6(this,T))==null||l.s_(Q,k)};
  11462. g.h.yv=function(T){this.Tq.set(T.videoId,T)};
  11463. g.h.fetch=function(){var T=this,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ;return g.a(function(g6){switch(g6.S){case 1:T.logger.debug("Onesie fetch started.");T.bU?T.xZ.start():T.SN.start();T.z_("or_i");Q=T.Hd.experiments.Wd("html5_onesie_verbose_timing");k={};l=(0,g.XY)();v=function(QC){Q&&(k[QC]=(0,g.XY)()-l)};
  11464. v("loc_s");if(L=J95(T.videoData,T.oi)){g6.Ym(2);break}v("loc_async");q=g.jj(T.Hd.experiments,"html5_onesie_redirector_timeout_ms");return g.c(g6,e0I(T.videoData,T.oi,q),3);case 3:L=g6.T;case 2:if(!L)return T.logger.info("Onesie URL creation failed."),Y={url:"0"},U=new g.ZK("onesie.unavailable.hotconfig",Y),T.fail(U),g6.return(T.O_);T.Mu=FQ(L);v("loc_e");R=g.rj(T.Hd,g.YD(T.videoData));Z=!!R.T;if(!Z){f=R.getValue();g6.Ym(4);break}return g.c(g6,R.T,5);case 5:f=g6.T;case 4:G=f;T.V("html5_log_onesie_empty_oauth")&&
  11465. !G&&T.T9("no_token",{async:Z});v("oauth");m=ELg(T.playerRequest,T.Hd,T.videoData,G,wQ(T.Mu));g.z5(g6,6);!T.Hd.VD||(z=m)!=null&&z.Xt||!T.V("html5_wasm_onesie_request_encryption")||(v("or_s_wasm"),I=Q8y(m,T.T5,T.Hd,T.yq,T.Lk.onesieUstreamerConfig,(w=T.videoData.zK)==null?void 0:w.Vl));if(I){g6.Ym(8);break}if(!j8b(T,m)){v("or_s_sync");I=VFX(m,T.T5,T.Hd,T.yq,T.Lk.onesieUstreamerConfig,(r=T.videoData.zK)==null?void 0:r.Vl);g6.Ym(8);break}v("or_s_async");return g.c(g6,T4b(m,T.T5,T.Hd,T.yq,T.Lk.onesieUstreamerConfig,
  11466. (A=T.videoData.zK)==null?void 0:A.Vl),10);case 10:I=g6.T;case 8:g.d6(g6,7);break;case 6:return D=g.by(g6),T.logger.info("Failed to create OnesieRequestProto."),T.fail(D),g6.return(T.O_);case 7:return v("or_e"),Q&&T.T9("oreqvt",k),T.enableCompression=I.innertubeRequest.jL,T.oh=((K=I)==null?void 0:(O=K.Ly)==null?void 0:O.tG)||0,T.z_("osor"),E=nmg(),e=g.F0(I,ip6),vT={method:"POST",body:e,headers:{"Content-Type":"text/plain",Referer:location.origin}},f5=T.V("html5_onesie_media_capabilities"),Fqu(L,T.videoData,
  11467. vab(T),f5),T.logger.debug("Starting Onesie network request."),T.Kv&&T.T9("ombrs","1"),qJ=T.yq.G().schedule,T.LY=new fr(T,{V4:qJ,By:T.Kv,uu:function(QC,A5){T.yq.eN(QC,A5)},
  11468. Zr:!0}),L.set("rn",""+T.LY.requestNumber),T.C3=L.IK(),Zm(T.LY,T.C3),T.z_("or_p"),T.xhr=SJ(new Pt(L),E,T.LY,sd,vT),T.U9.start(),T.yq.onPlayerRequestSent(T.videoData.videoId),g6.return(T.O_)}})};
  11469. g.h.aG=function(){return 2};
  11470. g.h.ZN=function(){this.z_("orh_r")};
  11471. g.h.La=function(){!this.jA&&this.xhr.Zd()&&this.MJ();if(this.Xr&&!this.bU){var T;(T=this.yT)==null||T.start()}this.Iw()};
  11472. g.h.Ex=function(T){T=T===void 0?!1:T;this.logger.debug("onXhrDone");this.Iw();if(!(this.wd()||this.state>=4)){var Q=e3(this),k=this.xhr;Q.rc=k.status;T&&(Q.ab=!0);if(k.dw()){var l="onesie.net";Q.msg=k.dw()}else k.status>=400?l="onesie.net.badstatus":k.gY()?this.Ho||(l="onesie.response.noplayerresponse"):l=k.status===204?"onesie.net.nocontent":"onesie.net.connect";l?this.fail(new g.ZK(l,Q)):(this.z_("or_fs"),this.LY.IX((0,g.XY)(),k.Zd(),0),this.OH(4),this.Kv&&this.T9("rqs",Q));this.Kv&&this.T9("ombre",
  11473. "ok."+ +!l);this.PY=!1;Jf(this);On5(this.fv);if(!this.bU){this.SN.stop();var v;(v=this.yT)==null||v.stop()}var L;if(T=(L=this.oi)==null?void 0:wBy(L))for(L=0;L<T.length;L++)this.T9("pathprobe",T[L])}};
  11474. g.h.Zc=function(){if(this.playerResponse&&this.xhr&&this.Ug)for(var T=g.B(this.Ug.entries()),Q=T.next();!Q.done;Q=T.next())if(Q=g.B(Q.value),Q.next(),Q.next().value.S){this.xhr.abort();this.Ex(!0);break}};
  11475. g.h.G=function(){return this.Hd};
  11476. g.h.V=function(T){return this.Hd.V(T)};
  11477. g.h.yjq=function(){if(ld5(this)&&this.oi&&(!this.jA||this.V("html5_onesie_probe_ec_hosts"))){var T=this.oi;if(T.Hd.experiments.Wd("html5_onesie_probe_ec_hosts")){var Q,k=(Q=T.T.get(3))==null?void 0:FQ(Q.location);k&&xx(T,k,"osc",this);var l;(k=(l=T.T.get(4))==null?void 0:FQ(l.location))&&xx(T,k,"ocy",this)}else{var v;(l=(v=T.T.get(1))==null?void 0:FQ(v.location))&&xx(T,l,"o2",this);(l=(k=T.T.get(2))==null?void 0:FQ(k.location))&&xx(T,l,"o3",this)}}};
  11478. g.h.cS=function(){if(!this.wd()&&!this.isComplete()){if(this.Xr){if((0,g.XY)()-this.LY.C>1E3){var T;(T=this.LY)==null||T.CJ((0,g.XY)());T=e3(this);if(this.Hd.J3()&&this.xhr instanceof sx){var Q=this.xhr;T.xrs=Q.xhr.readyState;T.xpb=Q.T.totalLength;T.xdc=Q.Y}this.fail(new g.ZK("net.timeout",T))}}else(0,g.XY)()-this.LY.T>1E4&&((Q=this.LY)==null||Q.CJ((0,g.XY)()),this.RZ());this.isComplete()||this.xZ.start()}};
  11479. g.h.RZ=function(){this.logger.info("Onesie request timed out");this.PY=!1;if(!Jf(this)){var T=e3(this);T.timeout="1";this.fail(new g.ZK("onesie.request",T))}};
  11480. g.h.fail=function(T){var Q=this;T=GX(T);this.Xr?this.yq.RK(T):(this.O_.reject(T),this.Xr=!0);On5(this.fv);this.bU||this.SN.stop();this.z_("or_fe");var k,l;(k=this.oi)==null||(l=wBy(k))==null||l.forEach(function(v){Q.T9("pathprobe",v)});
  11481. this.OH(5);this.dispose()};
  11482. g.h.isComplete=function(){return this.state>=3};
  11483. g.h.lj=function(){return this.state===4};
  11484. g.h.qj=function(T){var Q,k;return this.isComplete()||!!((Q=this.Ug)==null?0:(k=Q.get(T))==null?0:k.T)};
  11485. g.h.s8=function(){return!1};
  11486. g.h.u5=function(){return this.state===5};
  11487. g.h.notifySubscribers=function(T){for(var Q=0;Q<this.Xq.length;Q++)T&&this.Xq[Q].Dg()!==T||QE(this.Xq[Q],this)};
  11488. g.h.VM=function(){return this.oh};
  11489. g.h.EK=function(){this.playerResponse="";var T;(T=this.xhr)==null||T.abort();On5(this.fv);this.Qb.dispose();var Q;(Q=this.yT)==null||Q.dispose();this.OH(-1);this.Xq=[];g.x.prototype.EK.call(this)};
  11490. g.h.Iw=function(){try{var T=this.xhr;T.Zd()>102400&&!this.Bo&&(this.z_("or100k"),this.Bo=!0);if(T.Pf()){var Q=T.dY(),k=Q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+k});
  11491. this.Kv&&this.T9("ombrss","len."+k);this.Qb.feed(Q)}if(this.Ug)for(var l=g.B(this.Ug.keys()),v=l.next();!v.done;v=l.next()){var L=v.value;T=void 0;(T=this.Ug.get(L))==null||T.fM();this.notifySubscribers(L)}}catch(q){this.fail(q)}};
  11492. g.h.IB=function(){return this.LY.requestNumber};
  11493. g.h.yK=function(T){return this.Tq.get(T)};g.S(qyC,g.x);g.h=qyC.prototype;g.h.Bz=function(T,Q){this.qO=void 0;COC(this);Sy6(this,T,Q)};
  11494. g.h.aZ=function(T){if(this.T.length===0)return!1;var Q=this.T[0];return Q instanceof FJ?T===this.loader.getCurrentTime()*1E3:!(Q instanceof eJ&&R0J(Q.info))&&Math.abs(Q.VM()-T)<50};
  11495. g.h.CU=function(T){this.S=T;this.qO=(0,g.XY)()+(T.backoffTimeMs||0)};
  11496. g.h.MW=function(T,Q){if(T.action===void 0){var k=this.yq.Pm();k!==void 0&&this.loader.Fi(k)}else if(T.action!==0||!this.Jj)if(T.action===0&&this.policy.HM&&(T.action=2),T.Uz==="sabr.malformed_config"&&this.policy.U1>0&&this.p_++<this.policy.U1)this.loader.handleError("sabr.malformed_config",{action:T.action,rn:Q,retry:this.p_},0);else switch(T.Uz==="sabr.malformed_config"&&this.policy.U1>0&&(T.action=2),k={},k.reason=T.Uz,k.action=T.action,k.rn=Q,T.action){case 1:this.policy.S&&this.j&&this.j.eK(void 0,
  11497. void 0,k);break;case 0:this.Jj=!0;this.videoData.lf()&&this.policy.S&&this.j&&this.j.eK(void 0,void 0,k,!1);this.loader.Md(k);break;case 2:SR5(T.Uz)!=="sabr.config"&&delete k.reason;this.loader.handleError(SR5(T.Uz),k,1);break;case 3:this.policy.d5&&((T=this.C_.j)!=null&&(T.j=!0),this.loader.handleError("sabr.hostfallback",k))}};
  11498. g.h.WV=function(T){T&&(this.loader.T9("sabrctxt",{onsbrctxt:T.type,scp:T.scope,dflt:T.sendByDefault}),T.type&&T.sendByDefault&&this.videoData.f_.add(T.type),T.scope!==2&&(T.type&&this.videoData.sabrContextUpdates.set(T.type,T),this.yq.WV(T)))};
  11499. g.h.fO=function(){};
  11500. g.h.lX=function(T,Q){if(T.Nh!==void 0&&T.V7){var k=T.Nh/T.V7;this.audioTrack.C=!1;this.videoTrack.C=!1;if(this.policy.qO||this.policy.K7||this.policy.Ct)this.loader.Eh.T=!1;var l=this.loader.J_(k,1);this.policy.K_&&this.policy.S&&this.loader.j5(l,Q);this.yq.getCurrentTime()!==k&&(Q={I_:"sabr_seek",SM:!0,gW:!0},T.seekSource&&(Q.seekSource=T.seekSource),Mm(this.loader,k+.1,Q))}};
  11501. g.h.onSnackbarMessage=function(T){this.yq.publish("onSnackbarMessage",T)};
  11502. g.h.o3=function(T,Q){this.policy.iK&&this.D&&this.loader.o3(T,Q)};
  11503. g.h.wT=function(T){T.pP&&T.Sd&&i7(this.C_,T.pP,T.Sd);this.policy.IS&&(T.RC&&T.BN&&(this.C_.Jp=T.RC/T.BN),T.oC&&T.ED&&(this.C_.mK=T.oC/T.ED));Vv(this.videoData)&&!this.videoData.hj&&T.Sd&&this.loader.J_(T.Sd,1E3);T.Dw!=null&&this.yq.Sy(T.Dw);this.policy.XQ&&T.Dk&&(T=((0,g.XY)()-T.Dk)/1E3,this.loader.Ad.Q1(1,T))};
  11504. g.h.rT=function(T){this.loader.rT(T)};
  11505. g.h.wm=function(T){return this.videoData.f_.has(T)};
  11506. g.h.D1=function(T,Q,k){this.policy.L&&this.loader.T9("sabrctxtplc",{start:T?T.join("_"):"",stop:Q?Q.join("_"):"",discard:k?k.join("_"):""});if(T){T=g.B(T);for(var l=T.next();!l.done;l=T.next())this.videoData.f_.add(l.value)}if(Q)for(Q=g.B(Q),T=Q.next();!T.done;T=Q.next())T=T.value,this.videoData.f_.has(T)&&this.videoData.f_.delete(T);if(k)for(k=g.B(k),Q=k.next();!Q.done;Q=k.next())if(Q=Q.value,this.videoData.sabrContextUpdates.has(Q)&&(this.videoData.sabrContextUpdates.delete(Q),Q===3&&(this.videoData.Yb=
  11507. "")),this.policy.D&&this.T.length)for(T=g.B(this.T),l=T.next();!l.done;l=T.next())if(l=l.value,!(l instanceof FJ)){var v=void 0;((v=l.BW)==null?void 0:v.type)===Q&&(l.BW=void 0)}};
  11508. g.h.z5=function(){};
  11509. g.h.lF=function(T){this.C=T};
  11510. g.h.J2=function(T){this.B=T};
  11511. g.h.HY=function(T,Q){ov(this.policy,T,4,Q)};
  11512. g.h.hY=function(T){if(T==null?0:T.Mz)if(T=T.Mz.ao){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.formatId){var k=this.C_.L.get(Ew(Q.formatId));k&&k.info&&(k.info.debugInfo=Q.debugInfo)}}};
  11513. g.h.OS=function(T){this.yq.publish("reloadplayer",T)};
  11514. g.h.Dg=function(){return this.yq.Dg()||""};
  11515. g.h.GV=function(){var T=er(this.audioTrack,!0)*1E3,Q=er(this.videoTrack,!0)*1E3;return Math.min(T,Q)};
  11516. g.h.Fs=function(T,Q){this.loader.T9(T,Q)};
  11517. g.h.Zx=function(T){xfX(this.loader,X9f(this.K_,T))};
  11518. g.h.EK=function(){g.x.prototype.EK.call(this);this.S=void 0;Sy6(this,!0,"i");this.T=[]};rLt.prototype.yf=function(){this.isSeeking=!0;this.T===1&&ALI(this.Y);this.T===0&&this.lH.uf("transitiondetector");this.B=!1};PO5.prototype.Jh=function(T,Q){if(this.Y)return WRy(this,Q);if(Q=YR(T)){var k=Q.T;k&&k.L&&k.T&&(T=T.L.length?T.L[0]:null)&&T.state>=2&&!T.u5()&&T.info.Jx===0&&(this.Y=T,this.C=k,this.S=Q.info,this.B=this.startTimeSecs=Date.now()/1E3,this.N=this.S.startTime)}return NaN};
  11519. PO5.prototype.clear=function(){this.S=this.C=this.Y=null;this.T=this.N=this.B=this.startTimeSecs=NaN;this.L=!1};g.S(ezt,g.x);ezt.prototype.EK=function(){Ea5(this);g.x.prototype.EK.call(this)};var yLH=/[?&]cpn=/;g.S(kO,g.x);kO.prototype.flush=function(){var T={};this.S&&(T.pe=this.S);this.T.length>0&&(T.pt=this.T.join("."));this.T=[];return T};
  11520. kO.prototype.stop=function(){var T=this,Q,k,l;return g.a(function(v){if(v.S==1)return g.z5(v,2),g.c(v,(Q=T.Y)==null?void 0:Q.stop(),4);if(v.S!=2)return(k=v.T)&&T.logTrace(k),g.d6(v,0);l=g.by(v);T.S=l_T(l.message);g.BT(v)})};
  11521. kO.prototype.logTrace=function(T){this.encoder.reset();this.encoder.add(1);this.encoder.add(T.resources.length);for(var Q=g.B(T.resources),k=Q.next();!k.done;k=Q.next()){k=k.value.replace("https://www.youtube.com/s/","");this.encoder.add(k.length);for(var l=0;l<k.length;l++)this.encoder.add(k.charCodeAt(l))}this.encoder.add(T.frames.length);Q=g.B(T.frames);for(k=Q.next();!k.done;k=Q.next()){k=k.value;this.encoder.add(k.name.length);for(l=0;l<k.name.length;l++)this.encoder.add(k.name.charCodeAt(l));
  11522. nc(this.encoder,k.resourceId);nc(this.encoder,k.line);nc(this.encoder,k.column)}this.encoder.add(T.samples.length);Q=g.B(T.samples);for(k=Q.next();!k.done;k=Q.next())k=k.value,this.encoder.add(Math.trunc(k.timestamp)),nc(this.encoder,k.stackId);this.encoder.add(T.stacks.length);T=g.B(T.stacks);for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.encoder.add(Q.frameId),nc(this.encoder,Q.parentId);T=this.encoder.xo();this.L+=T.length;this.L<1E7&&this.T.push(T)};
  11523. kO.prototype.EK=function(){this.stop();g.x.prototype.EK.call(this)};var LKf=[2,5,30];g.YO=aO(function(){var T="";try{var Q=g.fO("CANVAS").getContext("webgl");Q&&(Q.getExtension("WEBGL_debug_renderer_info"),T=Q.getParameter(37446),T=T.replace(/[ :]/g,"_"))}catch(k){}return T});g.S(g.vV,g.x);g.h=g.vV.prototype;g.h.ZZ=function(){var T=g.qR(this.provider);YUC(this,T)};
  11524. g.h.BU=function(){return this.lA};
  11525. g.h.J5=function(){return{L4:this.L4,kT:this.kT}};
  11526. g.h.aQ=function(T,Q){this.L4=T;this.kT=Q};
  11527. g.h.Sy=function(T){if(!this.Gg){this.Gg=!0;var Q="";switch(T){case 1:Q="proximaui";break;case 2:Q=NHI(this.provider.videoData)?"proximawpcc":this.provider.videoData.V("html5_enable_proxima")||this.provider.videoData.V("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:Q="proximaauto"}Q!==""&&MR(this,Q)}};
  11528. g.h.pn=function(T,Q,k,l){if(!this.F_.has(T)){this.F_.add(T);var v=g.qR(this.provider);g.of(this,v,"lse",[T,Q,k,l.toFixed(3)])}};
  11529. g.h.wp=function(T){L6(this,"lwc",[T.sW?T.sW.toFixed():"",T.Kz?T.Kz.toFixed():"",T.xm?(T.xm*1E3).toFixed():"",T.d5?(T.d5*1E3).toFixed():"",T.Ig?(T.Ig*1E3).toFixed():""].join(":"))};
  11530. g.h.reportStats=function(T){T=T===void 0?NaN:T;if(!this.wd()&&(T=T>=0?T:g.qR(this.provider),this.hj?F3v.has(this.yU)&&(this.T.size||(this.yU==="PL"?T>=this.S+30:T<=this.z9+30||T>=this.S+1200&&T<=this.z9+86400))&&(g.of(this,T,"vps",[this.yU]),this.S=T):["PL","B","S"].indexOf(this.yU)>-1&&(this.T.size||T>=this.S+30)&&(g.of(this,T,"vps",[this.yU]),this.S=T),this.T.size)){this.sequenceNumber===7E3&&g.rB(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){gT(this,T);var Q=this.provider.yq.ri();
  11531. Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,this.T9(k.key,k.value);Q=T;k=this.provider.yq.Ir();var l=k.droppedVideoFrames||0,v=k.totalVideoFrames||0,L=l-this.L4,q=v&&!this.kT;l>k.totalVideoFrames||L>5E3?I_t(this,"html5.badframedropcount","df."+l+";tf."+k.totalVideoFrames):(L>0||q)&&g.of(this,Q,"df",[L]);this.L4=l;this.kT=v;this.j>0&&(g.of(this,T,"glf",[this.j]),this.j=0);v$.isActive()&&(T=v$.vR(),Object.keys(T).length>0&&this.T9("profile",T));this.d5&&MR(this,"lwnmow");this.provider.Hd.J3()&&
  11532. this.provider.V("html5_record_now")&&this.T9("now",{wt:(0,g.XY)()});T={};this.provider.videoData.S&&(T.fmt=this.provider.videoData.S.itag,(Q=this.provider.videoData.Y)&&Q.itag!==T.fmt&&(T.afmt=Q.itag));T.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(T.adcpn=this.adCpn);this.Tc&&(T.addocid=this.Tc);this.contentCpn&&(T.ccpn=this.contentCpn);this.xm&&(T.cdocid=this.xm);this.provider.videoData.cotn&&(T.cotn=this.provider.videoData.cotn);T.el=vi(this.provider.videoData);T.content_v=qf(this.provider.videoData);
  11533. T.ns=this.provider.Hd.z9;T.fexp=id5(this.provider.Hd.experiments).toString();T.cl=(787819992).toString();(Q=this.provider.videoData.adFormat||this.adFormat)&&(T.adformat=Q);(Q=JL(this.provider.videoData))&&(T.live=Q);this.provider.videoData.bl()&&(T.drm=1,this.provider.videoData.N&&(T.drm_system=K3A[this.provider.videoData.N.flavor]||0),this.provider.videoData.drmProduct&&(T.drm_product=this.provider.videoData.drmProduct));Lh()&&this.provider.videoData.B&&(T.ctt=this.provider.videoData.B,T.cttype=
  11534. this.provider.videoData.Yz,this.provider.videoData.mdxEnvironment&&(T.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(T.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.IP&&(T.dai_fallback="1")):this.provider.videoData.lC?T.dai="cs":this.provider.videoData.hd&&(T.dai="disabled");T.seq=this.sequenceNumber++;if(this.provider.videoData.V9){if(Q=this.provider.videoData.V9,T&&Q)for(Q.ns==="3pp"&&(T.ns="3pp"),this.Ah.has(Q.ns)&&
  11535. MR(this,"hbps"),Q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Q.shbpslc),this.provider.Hd.experiments.Wd("html5_use_server_qoe_el_value")&&this.f_.delete("el"),k=g.B(Object.keys(Q)),l=k.next();!l.done;l=k.next())l=l.value,this.f_.has(l)||(T[l]=Q[l])}else T.event="streamingstats",T.docid=this.provider.videoData.videoId,T.ei=this.provider.videoData.eventId;this.isEmbargoed&&(T.embargoed="1");Object.assign(T,this.provider.Hd.T);if(Q=T.seq)Q={cpn:this.provider.videoData.clientPlaybackNonce,
  11536. sequenceNumber:+Q,serializedWatchEndpointLoggingContext:this.provider.videoData.YhO},this.serializedHouseBrandPlayerServiceLoggingContext&&(Q.serializedHouseBrandPlayerServiceLoggingContext=Am(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.provider.videoData.playerResponseCpn),lg.length&&(Q.decoderInfo=lg),this.remoteControlMode&&(Q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Q.remoteConnectedDevices=
  11537. this.remoteConnectedDevices),Q=g.F0(Q,XIT),Q=g.dJ(Q,4),this.T.set("qclc",[Q]);T=g.sD("//"+this.provider.Hd.VF+"/api/stats/qoe",T);k=Q="";l=g.B(this.T.entries());for(v=l.next();!v.done;v=l.next())L=g.B(v.value),v=L.next().value,L=L.next().value,q=void 0,(q=L)!=null&&q.join&&(v="&"+v+"="+L.join(","),v.length>100?k+=v:Q+=v);ZXg(this,T+Q,k.replace(/ /g,"%20"))}this.T.clear()}};
  11538. g.h.Qt=function(T){this.d5=T};
  11539. g.h.sZ=function(){if(this.provider.videoData.N){var T=this.provider.videoData.N;MR(this,"eme-"+(T.keySystemAccess?"final":Lc(T)?"ms":Mx(T)?"ytfp":gx(T)?"safarifp":"nonfinal"))}};
  11540. g.h.aM=T5(53);g.h.qm=function(T){this.isEmbargoed=T};
  11541. g.h.h9=T5(30);g.h.Lz=T5(36);g.h.onPlaybackRateChange=function(T){var Q=g.qR(this.provider);T&&T!==this.Z8&&(g.of(this,Q,"rate",[T]),this.Z8=T);this.hj||this.reportStats(Q)};
  11542. g.h.RD=T5(24);g.h.getPlayerState=function(T){if(g.J(T,128))return"ER";if(g.J(T,2048))return"B";if(g.J(T,512))return"SU";if(g.J(T,16)||g.J(T,32))return"S";if(T.isOrWillBePlaying()&&g.J(T,64))return"B";var Q=Ejm[rf(T)];g.G4(this.provider.Hd)&&Q==="B"&&this.provider.yq.getVisibilityState()===3&&(Q="SU");Q==="B"&&g.J(T,4)&&(Q="PB");return Q};
  11543. g.h.EK=function(){g.x.prototype.EK.call(this);g.m6(this.qO);g.m6(this.Ig)};
  11544. g.h.Vf=function(T){this.isOffline=T;g.of(this,g.qR(this.provider),"is_offline",[this.isOffline?"1":"0"])};
  11545. g.h.T9=function(T,Q,k){var l=this.gt.indexOf(T)!==-1;l||this.gt.push(T);if(!k||!l){var v=typeof Q!=="string"?RE(Q):Q;v=sa5(v);if(!k&&!/^t[.]/.test(v)){var L=g.qR(this.provider)*1E3;v="t."+L.toFixed()+";"+v}L6(this,"ctmp",T+":"+v);this.logger.debug(function(){return"ctmp "+T+" "+v});
  11546. f_y(this);return L}};
  11547. g.h.PJ=function(T,Q,k){this.N={VDH:Number(this.T9("glrem",{nst:T.toFixed(),rem:Q.toFixed(),ca:+k})),lO:T,oPq:Q,isAd:k}};
  11548. g.h.Xx=function(T,Q,k){g.of(this,g.qR(this.provider),"ad_playback",[T,Q,k])};
  11549. g.h.Gh=function(T,Q){var k=g.qR(this.provider)*1E3;L6(this,"daism","t."+k.toFixed(0)+";smw."+(T*1E3).toFixed(0)+";smo."+(Q*1E3).toFixed(0))};
  11550. g.h.resume=function(){var T=this;isNaN(this.qO)?GhJ(this):this.qO=g.fh(function(){T.reportStats()},1E4)};
  11551. var S0={},Ejm=(S0[5]="N",S0[-1]="N",S0[3]="B",S0[0]="EN",S0[2]="PA",S0[1]="PL",S0[-1E3]="ER",S0[1E3]="N",S0),F3v=new Set(["PL","B","S"]),lg=[];g.S(g.Rf,g.x);g.h=g.Rf.prototype;g.h.initialize=function(T,Q,k){this.logger.debug(function(){return"Initialized, t="+T});
  11552. T=T||0;this.policy.T||(Q=dtH(this.T),t$5(this.yq,new om(Q.video,Q.reason)),this.yq.uq(new om(Q.audio,Q.reason)));this.policy.T&&M7(this);this.C_.isManifestless&&ic6(this.N);this.C&&t7X(this.C,this.videoTrack.T);Q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var l=!this.C_.isManifestless;this.policy.n5&&(l=l||this.C_.KY);if(!this.policy.i9||this.policy.Gg)this.currentTime=l?T:Q;this.policy.qO&&this.seek(this.getCurrentTime(),{}).kE(function(){});
  11553. if(this.policy.T){var v;((v=this.z9)==null?0:LRb(v,this.Dg()||""))&&Ns5(this)&&dfb(this,this.videoTrack)&&dfb(this,this.audioTrack)&&(B4f(this.S,this.z9),this.policy.N&&wib(this))}else this.hj&&(AyT(this,this.videoTrack),AyT(this,this.audioTrack),D6y(this.hj),delete this.hj);k?(ryI(this,!1),g.Ez(this.Ii)):(k=this.getCurrentTime()===0,Yx(this.N,this.videoTrack,this.videoTrack.T,k),Yx(this.N,this.audioTrack,this.audioTrack.T,k),this.policy.T&&YyJ(this.S,!0),this.policy.qO||this.seek(this.getCurrentTime(),
  11554. {}).kE(function(){}),this.timing.tick("gv"));
  11555. (this.C_.sW||this.C_.Kz||this.C_.xm||this.C_.d5||this.C_.Ig)&&this.yq.wp(this.C_)};
  11556. g.h.resume=function(){if(this.isSuspended||this.Wf){this.logger.debug("Resumed.");this.xL=this.Wf=this.isSuspended=!1;try{this.Jh()}catch(T){g.bA(T)}}};
  11557. g.h.qG=function(){return!this.policy.Ah};
  11558. g.h.wN=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;this.logger.debug("detaching media source");uZ5(this);this.yq.e1()&&(this.B=NaN);T?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.e6&&this.T9("loader",{setsmb:1}),this.policy.xm=!0,this.FJ()):(ryI(this,!1),Q||this.FJ())};
  11559. g.h.setAudioTrack=function(T,Q,k){k=k===void 0?!1:k;if(!this.wd()){var l=!isNaN(Q);k&&l&&(this.audioTrack.qO=Date.now(),this.policy.pG&&(this.zg=!0));if(this.policy.T){var v=this.Y.Xh(T.id,l);this.logger.debug(function(){return"Logging new audio format: "+v.T.info.id});
  11560. this.yq.uq(v)}else{var L=za5(this.T,T.id,l);this.logger.debug(function(){return"Logging new audio format: "+L.audio.info.id});
  11561. this.yq.uq(new om(L.audio,L.reason))}l?(this.d5=Date.now(),k=this.audioTrack.T.index.ll(Q),this.T9("setAudio",{id:T.id,cmt:Q,sq:k}),k>=0&&(T=this.policy.hd?k+1:k,this.policy.T&&this.Bz(!0,"mosaic"),FI(this.audioTrack,T,NaN,NaN),!this.policy.nG&&this.C_.isLive&&yb(this.C_,T,!1))):this.yq.Lt()}};
  11562. g.h.setPlaybackRate=function(T){T!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(T)};
  11563. g.h.AJ=function(T){var Q=this.S.C;this.S.lF(T);this.T9("scfidc",{curr:Ew(Q),"new":Ew(T)});T&&Ew(T)!==Ew(Q)&&(this.Bz(!0,"caption change"),this.Jh())};
  11564. g.h.ZF=function(T){this.S.J2(T)};
  11565. g.h.nJ=function(T){var Q=T.T.info.uH();this.logger.debug(function(){return"New "+(Q?"audio":"video")+" format from SABR: "+JW(T.T.info)});
  11566. Q?this.yq.uq(T):t$5(this.yq,T)};
  11567. g.h.Zx=function(T){l7(T.MO[T.MO.length-1])&&xfX(this,X9f(this.T,T.MO[0].T))};
  11568. g.h.WH=function(){return this.yq.WH()};
  11569. g.h.yZ=function(){return this.yq.yZ()};
  11570. g.h.rT=function(T){this.yq.G().J3()&&this.T9("sps",{status:T.WA||""});if(T.WA===1)this.yq.videoData.hQ=0;else if(T.WA===2||T.WA===3){var Q=!1;if(T.WA===3){Q=this.yq.jX();var k;this.Hn=(k=T.cu9)!=null?k:Infinity;this.yq.videoData.hQ=Q+1;(Q=ySg(this))&&this.NG(!0)}this.yq.Ng(!0,Q)}};
  11571. g.h.aN=function(){return this.yq.aN()};
  11572. g.h.TP=function(){return this.yq.TP()};
  11573. g.h.sP=function(T){this.yq.sP(T)};
  11574. g.h.Pfm=function(){var T,Q=(T=this.yq.T_())==null?void 0:T.getCurrentTime();Q?this.yq.T9("rms",{cta:Q}):g.Ez(this.t6)};
  11575. g.h.Jh=function(){KK5(this);if(this.j6&&gf(this.j6)&&!this.j6.Wc()&&(!this.policy.i9||isFinite(this.getCurrentTime()))){var T=P7(this.videoTrack);T=this.policy.mJ&&T&&T.Dq();this.C_.isManifestless&&this.C_.Y&&Jq(this.C_)?(this.B=Jq(this.C_),this.j6.SR(this.B)):Vb(this.C_)&&!T?isNaN(this.B)?(this.B=this.getCurrentTime()+3600,this.j6.SR(this.B)):this.B<=this.getCurrentTime()+1800&&(this.B=Math.max(this.B+1800,this.getCurrentTime()+3600),this.j6.SR(this.B)):this.j6.isView||(T=Math.max(this.audioTrack.getDuration(),
  11576. this.videoTrack.getDuration()),(!isFinite(this.B)||this.B!==T)&&T>0&&(this.j6.SR(T),this.B=T))}if(!this.wd())if($0(this.C_)&&this.C_.u5()){var Q=this.C_;this.handleError("manifest.net.retryexhausted",Q.K_?{rc:Q.W1}:{rc:Q.W1.toString()},1)}else if(this.policy.T)a:{try{Idb(this.S);this.C_.isManifestless&&this.policy.N&&qm(this.Eh);var k;((k=this.j6)==null?0:RL(k))&&this.Qv();YyJ(this.S)}catch(q){g.rB(q);Q=q;if(Q.message.includes("changeType")){this.T9("ctype",{exp:Q.name,msg:Q.message,s:Q.stack});break a}this.handleError("fmt.unplayable",
  11577. {exp:Q.name,msg:Q.message,s:Q.stack,trg:"sabrslicerqt"},1)}vH5(this);g.Ez(this.K_)}else if(!this.C_.S||!Nxy(this.videoTrack)&&!Nxy(this.audioTrack)||(this.videoTrack.N||this.audioTrack.N)&&this.policy.QR?k=!1:(this.FJ(),this.yq.seekTo(Infinity,{I_:"checkLoaderTracksSync",J_:!0}),k=!0),!k){KK5(this);this.C_.isManifestless&&(ASy(this.videoTrack),ASy(this.audioTrack),qm(this.Eh),(k=YR(this.videoTrack))&&k.T&&(k=k.T.L&&!this.policy.lS,this.T9(k===this.policy.C.Jy?"strm":"strmbug",{strm:k,sfmp4:this.policy.C.Jy,
  11578. dfs:this.policy.lS},!0)));if(this.j6)this.Qv();else if(this.policy.Y){var l;k=!1;if(this.policy.B9){var v;T=g.B([this.videoTrack,this.audioTrack]);for(v=T.next();!v.done;v=T.next()){var L=v.value;for(v=YR(L);v&&L.JV()!==P7(L);v=YR(L))L.Z0(v);k=k||!!v}}else(Q=YR(this.videoTrack))&&this.videoTrack.Z0(Q),(l=YR(this.audioTrack))&&this.audioTrack.Z0(l);W7(this.videoTrack)&&W7(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(Q||l||k)&&Tj(this)}bX5(this);Yx(this.N,this.videoTrack,
  11579. this.videoTrack.T,!1);Yx(this.N,this.audioTrack,this.audioTrack.T,!1);this.policy.zB||HXb(this,this.videoTrack,this.audioTrack);pLC(this.N,this.videoTrack,this.audioTrack);pLC(this.N,this.audioTrack,this.videoTrack);vH5(this);this.C&&(Q=this.C,Q.Y?(l=Q.B+Q.policy.bx,Q.L||(l=Math.min(l,Q.startTimeSecs+Q.policy.eO)),Q=Math.max(0,l*1E3-Date.now())):Q=NaN,isNaN(Q)||g.Ez(this.gt,Q));g.Ez(this.K_)}};
  11580. g.h.Md=function(T){this.yq.Md(T)};
  11581. g.h.Qv=function(){var T=this;if(this.j6){var Q=this.j6.T,k=this.j6.S;Uzy(this,this.audioTrack);Uzy(this,this.videoTrack);var l=piT(this);if(l){if(this.policy.g_){if(!Q.A1()){var v=YR(this.audioTrack);if(v){if(!UF(this,this.audioTrack,Q,v.info))return;JyJ(this,this.audioTrack,Q,v)}}if(!k.A1()&&(v=YR(this.videoTrack))){if(!UF(this,this.videoTrack,k,v.info))return;JyJ(this,this.videoTrack,k,v)}}this.qO||(this.qO=(0,g.XY)(),this.logger.debug(function(){return"Appends pause start "+T.qO+" reason "+l}),
  11582. this.policy.L&&this.T9("apdps",{r:l}))}else if(this.qO&&(OXb(this,this.qO),this.qO=0),WKt(this),v=!1,iXX(this,this.videoTrack,k)&&(v=!0,Fuu(this.timing),Vv5(this.timing)),this.j6&&!this.j6.FG()&&(iXX(this,this.audioTrack,Q)&&(v=!0,Ecu(this.timing),TdC(this.timing)),!this.wd()&&this.j6))!this.policy.Ah&&W7(this.videoTrack)&&W7(this.audioTrack)&&gf(this.j6)&&!this.j6.Wc()&&(k=!1,k=P7(this.audioTrack).T,k=k===this.C_.T[k.info.id])&&(this.logger.debug("Setting EOS"),pZt(this.j6),bwI(this.schedule),this.pn("e")),
  11583. v&&!this.j6.isAsync()&&Tj(this)}};
  11584. g.h.pn=function(T){if(this.policy.Rq&&this.C_.isManifestless){var Q=this.videoTrack.T;if(Q){var k=Q.index.a_(),l=-1,v=-1;Q.index instanceof IX&&(l=Q.index.UI(),v=Q.index.l6());this.yq.pn(T,k,l,v)}}};
  11585. g.h.Q6=function(T){var Q,k=T===((Q=this.j6)==null?void 0:Q.T)?this.audioTrack:this.videoTrack,l;if((l=YR(k))==null?0:l.isLocked){if(this.yq.G().J3()){var v;this.T9("eosl",{ounlock:(v=YR(k))==null?void 0:v.info.Bh()})}var L;lRI(this,T===((L=this.j6)==null?void 0:L.T))}var q;if(this.policy.pG&&T===((q=this.j6)==null?void 0:q.T)&&this.Tg){Q=this.Tg-this.getCurrentTime();var Y;this.yq.T9("asl",{l:Q,xtag:(Y=P7(this.audioTrack))==null?void 0:Y.T.info.T});this.zg=!1;this.Tg=0}T.u0()&&T.LG().length===0&&
  11586. (T.YR(),this.j6&&!this.j6.u0()&&(this.yq.G().J3()&&this.yq.T9("rms",{ld:"seek"}),this.j6.B=performance.now(),this.yq.Ba(),this.yq.G().J3()&&g.Ez(this.t6)));var U;(U=k.D)!=null&&Im(U,0);this.policy.DP?Emy(this):this.Jh()};
  11587. g.h.eHB=function(T){if(this.j6){var Q=P7(T===this.j6.T?this.audioTrack:this.videoTrack);if(T=T.z7())for(var k=0;k<T.length;k++)this.T9("appendedbuffer",{i:k,b:g.dJ(T[k].subarray(0,4096),3)});T={};Q&&(T=Ly(Q));T.trg="onappenderr";this.handleError("fmt.unplayable",T,1)}};
  11588. g.h.tX=function(T){this.yq.tX(T)};
  11589. g.h.WC=function(T,Q,k){if(this.C_.isManifestless){T=!!T.info.video;Zc6(this,Q,k,T,!0);if(this.policy.uK&&T){var l;(l=this.QR)==null||KRI(l,Q.NO,k)}if(Q.Bn){l=!!k;var v=Q.Bn||null;if((v==null?void 0:v.event)!=="predictStart"){var L,q=(L=this.S)==null?void 0:zz5(L);L=q.requestNumber;q=q.isDecorated;if(T&&!q){var Y;this.T9("sdai",{underdec:this.policy.Ek?(Y=this.D)==null?void 0:Y.QK(v):1,evt:v==null?void 0:v.event,id:v==null?void 0:v.identifier,sq:Q.NO,mt:Q.startTime.toFixed(3),stif:l,rn:L})}}}Y=T?this.videoTrack:
  11590. this.audioTrack;Y.z9.push({qB:Q.NO,Qy6:k});Y.z9.length>5&&Y.z9.shift();Q=Q.NO;var U;if((U=this.yq.getVideoData())==null?0:U.enableServerStitchedDai)U=aEt(this.audioTrack,Q),k=aEt(this.videoTrack,Q),U!==0&&k!==0&&U!==k&&this.handleError("ssdai.avsync",{sq:Q,a:U,v:k},0)}};
  11591. g.h.L3=function(T,Q,k,l){T.info.video&&this.L.L3(Q,k,l)};
  11592. g.h.pJ=function(T){this.T.pJ(T)};
  11593. g.h.Av=T5(12);g.h.TO=function(){if(g.J(this.yq.getPlayerState(),8)){var T,Q,k=(Q=(T=this.yq.T_())==null?void 0:T.getCurrentTime())!=null?Q:this.yq.getCurrentTime(),l;(l=this.QR)==null||DY6(l,k)}var v;(v=this.Gg)==null||g.Ez(v)};
  11594. g.h.g$=function(){return this.videoTrack.C||this.audioTrack.C};
  11595. g.h.seek=function(T,Q){if(this.wd())return aS();if(this.g$())return aS("seeking to head");if(this.policy.qO&&!isFinite(T))return bPX(this.Eh),g.DT(Infinity);KK5(this);M7(this);this.policy.T||bX5(this,T);this.j6&&this.j6.T&&this.j6.S&&!this.yq.getVideoData().Uf&&(this.j6.T.isLocked()||this.j6.S.isLocked())&&this.yq.Lt({reattachOnLockedBuffer:1,vsb:""+this.j6.S.isLocked(),asb:""+this.j6.T.isLocked()});var k=this.getCurrentTime(),l=this.Eh.seek(T,Q);if(!this.policy.i9||this.policy.Gg)this.currentTime=
  11596. l;jr(this.L,T,k,this.policy.CH&&!Q.SM);Tj(this);return g.DT(l)};
  11597. g.h.aZ=function(T){return this.policy.T&&this.S.aZ(T)};
  11598. g.h.wm=function(T){return this.S.wm(T)};
  11599. g.h.Bz=function(T,Q){this.S.Bz(T,Q)};
  11600. g.h.getCurrentTime=function(){if(this.policy.i9){var T=this.Px()||0;return this.yq.getCurrentTime(!0)-T}return this.currentTime};
  11601. g.h.If=function(){return this.audioTrack.T.info};
  11602. g.h.My=function(){return this.videoTrack.T.info};
  11603. g.h.P0=function(){return this.audioTrack.T.info.yR};
  11604. g.h.nw=function(){return this.videoTrack.T.info.yR};
  11605. g.h.EK=function(){try{this.wN(),l$(this.audioTrack),l$(this.videoTrack),TD(this.audioTrack),TD(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.x.prototype.EK.call(this)}catch(T){g.bA(T)}};
  11606. g.h.handleError=function(T,Q,k){k=k===void 0?0:k;var l=fu(k);T==="fmt.unplayable"&&this.C_.isLive&&(this.policy.g_=!1,EE(this.C_));Q=new g.ZK(T,Q,k);g.qp(this);RE(Q.details);this.yq.handleError(Q);T!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&T!=="fmt.unparseable"&&l&&this.dispose()};
  11607. g.h.Tx=function(){var T=P7(this.audioTrack),Q=P7(this.videoTrack);T={lct:this.getCurrentTime().toFixed(3),lsk:this.Eh.isSeeking(),lmf:this.T.T.isLocked(),lbw:JS(this.schedule).toFixed(3),lhd:WL(this.schedule).toFixed(3),lst:((this.schedule.C.hx()||0)*1E9).toFixed(3),laa:T?T.Bh():"",lva:Q?Q.Bh():"",lar:this.audioTrack.S?this.audioTrack.S.Bh():"",lvr:this.videoTrack.S?this.videoTrack.S.Bh():"",laq:""+$C(this.audioTrack),lvq:""+$C(this.videoTrack)};this.j6&&!this.j6.FG()&&this.j6.T&&this.j6.S&&(T.lab=
  11608. FL(this.j6.T.LG()),T.lvb=FL(this.j6.S.LG()));this.qO&&(T.lapt=((0,g.XY)()-this.qO).toFixed(0),T.lapr=piT(this));this.Bd&&(T.lapmabht=((0,g.XY)()-this.Bd).toFixed(0),T.lapmabh=vJ(this,this.audioTrack).toFixed(0));this.Jj&&(T.lapmvbht=((0,g.XY)()-this.Jj).toFixed(0),T.lapmvbh=vJ(this,this.videoTrack).toFixed(0));this.sK&&(T.lapsdai=((0,g.XY)()-this.sK).toFixed(0));return T};
  11609. g.h.FJ=function(){try{this.policy.T&&this.S.Bz(!1,"pending"),this.audioTrack.FJ(),this.videoTrack.FJ()}catch(T){g.bA(T)}this.policy.Y=""};
  11610. g.h.Jz=function(){return Fe(this.j)};
  11611. g.h.T9=function(T,Q,k){this.yq.T9(T,Q,k===void 0?!1:k)};
  11612. g.h.Dg=function(){return this.yq.Dg()};
  11613. g.h.J_=function(T,Q){T/=Q;isNaN(this.timestampOffset)&&fI5(this,T-Math.min(T,this.policy.ER));return(T-this.timestampOffset)*Q};
  11614. g.h.Px=function(){return this.timestampOffset};
  11615. g.h.isSeeking=function(){return this.Eh.isSeeking()};
  11616. g.h.t1=function(){this.L.t1()};
  11617. g.h.B5=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?{}:k;this.policy.T?this.Y.B5(T,Q,k):this.T.B5(T,Q,k)};
  11618. g.h.EY=function(T,Q){if(this.D&&this.L.EY(T,this.D)){if(this.policy.K_&&this.policy.S){var k=this.videoTrack.T.index.ll(T),l;(l=this.xm)==null||l.AY(T,k)}fI5(this,this.timestampOffset-Q);Tj(this);this.policy.S&&(EE(this.C_),TD(this.audioTrack),TD(this.videoTrack),this.FJ());return!0}Q=this.videoTrack.T.index.ll(T);this.handleError("ad.skipfailed",{dec:!!this.D,t:T.toFixed(3),sq:Q});return!1};
  11619. g.h.getManifest=function(){return this.C_};
  11620. g.h.isOffline=function(){return!!this.yq.getVideoData().cotn};
  11621. g.h.eN=function(T,Q){this.yq.eN(T,Q)};
  11622. g.h.R3=function(T){if(this.policy.T)this.S.Bz(!0,"utc"),this.Jh();else{var Q=this.yq.getVideoData().vl;if(Q){var k=this.N;k.MK=T;k.vl=Q;ZI(this)}}};
  11623. g.h.Fi=function(T){this.videoTrack.C=!1;this.audioTrack.C=!1;this.Eh.T=!1;this.yq.Fi(T)};
  11624. g.h.u1=function(T){this.Eh.u1(T-this.Px())};
  11625. g.h.Jd=function(){this.yq.Jd()};
  11626. g.h.NG=function(T){T!==this.policy.NV&&((this.policy.NV=T)||this.Jh())};
  11627. g.h.Lt=function(T){this.yq.Lt(T)};
  11628. g.h.Qt=function(T){this.yq.Qt(T)};
  11629. g.h.JY=function(T,Q,k){var l;(l=this.xm)==null||l.JY(T,Q,k)};
  11630. g.h.j5=function(T,Q){var k;(k=this.xm)==null||k.j5(T,Q)};
  11631. g.h.Sb=function(T){var Q;return(Q=this.xm)==null?void 0:Q.Sb(void 0,T)};
  11632. g.h.jX=function(){return this.yq.jX()};
  11633. g.h.o3=function(T,Q){if(this.policy.iK){var k;(k=this.xm)==null||k.o3(T,Q)}};g.h=g.Zv.prototype;g.h.pw=function(T,Q,k,l,v,L){return this.Gx.pw(T,Q,k,l,v,L)};
  11634. g.h.QZ=function(T,Q,k,l,v,L){return this.Gx.QZ(T,Q,k,l,v,L)};
  11635. g.h.cI=function(T){return this.Gx.cI(T)};
  11636. g.h.Fg=function(T){this.Gx.Fg(T)};
  11637. g.h.eK=function(T,Q,k,l){return this.Gx.eK(T,Q,k,l)};
  11638. g.h.t1=function(){this.Gx.t1()};
  11639. g.h.AY=function(T,Q){this.Gx.AY(T,Q)};
  11640. g.h.nV=function(){this.Gx.nV()};
  11641. g.h.m$=T5(56);g.h.Pg=function(T,Q,k){this.Gx.Pg(T,Q,k)};
  11642. g.h.F0=T5(59);g.h.zQ=function(T,Q,k,l,v,L,q,Y,U){this.Gx.zQ(T,Q,k,l,v,L,q,Y,U)};
  11643. g.h.WW=function(T){this.Gx.WW(T)};
  11644. g.h.Vi=function(T){return this.Gx.Vi(T)};
  11645. g.h.QK=function(T){return this.Gx.QK(T)};
  11646. g.h.zV=function(T){return this.Gx.zV(T)};g.S(f6,g.ox);g.S(Gj,f6);Gj.prototype.B=function(T,Q){if(T&&Q){var k=Number(X6(T,"cpi"))*1+1;isNaN(k)||k<=0||k<this.L?(this.Y.stop(),this.S.stop(),this.L=-1,this.T={}):(k>this.L&&(this.L=k,g.Rs(this.T)||(this.T={},this.Y.stop(),this.S.stop())),this.T[Q]=T,g.Ez(this.S))}};
  11647. Gj.prototype.N=function(){for(var T=g.B(Object.keys(this.T)),Q=T.next();!Q.done;Q=T.next()){var k=Q.value;Q=this.publish;for(var l=this.L,v=g.UD(this.T[k]),L=[],q=g.B(v[6].split("&")),Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.indexOf("cpi=")===0?L.push("cpi="+l.toString()):Y.indexOf("ek=")===0?L.push("ek="+g.Nn(k)):L.push(Y);v[6]="?"+L.join("&");k="skd://"+v.slice(2).join("");v=k.length*2;l=new Uint8Array(v+4);l[0]=v%256;l[1]=(v-l[0])/256;for(v=0;v<k.length;++v)l[v*2+4]=k.charCodeAt(v);Q.call(this,
  11648. "rotated_need_key_info_ready",new wX(l,"fairplay",!0))}this.T={}};
  11649. Gj.prototype.EK=function(){this.T={};f6.prototype.EK.call(this)};g.S(m7,f6);
  11650. m7.prototype.Y=function(T){var Q;a:{if((Q=T.cryptoPeriodIndex)&&this.T.length>0)for(var k=g.B(this.T),l=k.next();!l.done;l=k.next())if(Q===l.value.info.cryptoPeriodIndex){Q=!0;break a}Q=!1}if(!Q){Q=(0,g.XY)();a:{k=T.cryptoPeriodIndex;if(!isNaN(k)){l=g.B(this.L.values());for(var v=l.next();!v.done;v=l.next())if(Math.abs(v.value.cryptoPeriodIndex-k)<=1){k=!0;break a}}k=!1}k?(k=T.T,k=Math.max(0,Math.random()*((isNaN(k)?120:k)-30))*1E3):k=0;this.publish("log_qoe",{wvagt:"delay."+k,cpi:T.cryptoPeriodIndex,reqlen:this.T.length});
  11651. k<=0?hN5(this,T):(this.T.push({time:Q+k,info:T}),g.Ez(this.S,k))}};
  11652. m7.prototype.EK=function(){this.T=[];f6.prototype.EK.call(this)};var C0={},zN5=(C0.DRM_TRACK_TYPE_AUDIO="AUDIO",C0.DRM_TRACK_TYPE_SD="SD",C0.DRM_TRACK_TYPE_HD="HD",C0.DRM_TRACK_TYPE_UHD1="UHD1",C0);g.S(CY5,g.x);g.S(w65,g.ox);g.h=w65.prototype;g.h.e9=function(T){var Q=this;if(!(this.wd()||T.size<=0)){var k={};T.forEach(function(l,v){var L=qx(Q.S)?v:l;v=new Uint8Array(qx(Q.S)?l:v);qx(Q.S)&&O$J(v);l=g.dJ(v,4);O$J(v);v=g.dJ(v,4);Q.T[l]?Q.T[l].status=L:Q.T[v]?Q.T[v].status=L:Q.T[l]={type:"",status:L};H$g(Q,Q.T[l].type,k)});
  11653. x75(this,",");If(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}};
  11654. g.h.error=function(T,Q,k,l){this.wd()||(this.publish("licenseerror",T,Q,k,l),T==="drm.provision"&&(T=(Date.now()-this.B)/1E3,this.B=NaN,this.publish("ctmp","provf",{et:T.toFixed(3)})));fu(Q)&&this.dispose()};
  11655. g.h.shouldRetry=function(T,Q){return!T&&this.requestNumber===Q.requestNumber};
  11656. g.h.EK=function(){this.T={};g.ox.prototype.EK.call(this)};
  11657. g.h.Tx=function(){var T={ctype:this.j.contentType||"",length:this.j.initData.length,requestedKeyIds:this.hj,cryptoPeriodIndex:this.cryptoPeriodIndex};this.L&&(T.keyStatuses=this.T);return T};
  11658. g.h.getInfo=function(){var T=this.Y.join();if(h2(this)){var Q=new Set,k;for(k in this.T)this.T[k].status!=="usable"&&Q.add(this.T[k].type);T+="/UKS."+Array.from(Q)}return T+="/"+this.cryptoPeriodIndex};
  11659. g.h.IK=function(){return this.url};g.S(S2,g.x);g.h=S2.prototype;g.h.LL=function(T){if(this.N){var Q=T.messageType||"license-request";this.N(new Uint8Array(T.message),Q)}};
  11660. g.h.e9=function(){this.C&&this.C(this.T.keyStatuses)};
  11661. g.h.onClosed=function(){this.wd()||g.tH("xboxone")&&this.L&&this.L("closedShouldNotRetry")};
  11662. g.h.zN=function(T){this.N&&this.N(T.message,"license-request")};
  11663. g.h.yg=function(T){if(this.L){if(this.S){var Q=this.S.error.code;T=this.S.error.systemCode}else Q=T.errorCode,T=T.systemCode;this.L("t.prefixedKeyError;c."+Q+";sc."+T,Q,T)}};
  11664. g.h.HX=function(){this.B&&this.B()};
  11665. g.h.update=function(T){var Q=this;if(this.T)return this.T.update(T).then(null,pQ(function(k){WTg(Q,"t.update",k)}));
  11666. this.S?this.S.update(T):this.element.addKey?this.element.addKey(this.j.keySystem,T,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.j.keySystem,T,this.initData,this.sessionId);return rV()};
  11667. g.h.EK=function(){this.T&&(this.D?this.T.close().catch(g.rB):this.T.close());this.element=null;g.x.prototype.EK.call(this)};g.S(C6,g.x);g.h=C6.prototype;g.h.setServerCertificate=function(){return this.S.setServerCertificate?this.T.flavor==="widevine"&&this.T.RM?this.S.setServerCertificate(this.T.RM):Ym(this.T)&&this.T.Jj?this.S.setServerCertificate(this.T.Jj):null:null};
  11668. g.h.createSession=function(T,Q){var k=T.initData;if(this.T.keySystemAccess){Q&&Q("createsession");var l=this.S.createSession();Mx(this.T)?k=eN5(k,this.T.Jj):Ym(this.T)&&(k=II5(k)||new Uint8Array(0));Q&&Q("genreq");T=l.generateRequest(T.contentType,k);var v=new S2(null,null,null,l,null,this.C);T.then(function(){Q&&Q("genreqsuccess")},pQ(function(q){WTg(v,"t.generateRequest",q)}));
  11669. return v}if(Lc(this.T))return Ex5(this,k);if(gx(this.T))return FT5(this,k);if((l=this.element)==null?0:l.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,k);else{var L;(L=this.element)==null||L.webkitGenerateKeyRequest(this.T.keySystem,k)}return this.Y=new S2(this.element,this.T,k,null,null,this.C)};
  11670. g.h.iJ=function(T){var Q=yf5(this,T);Q&&Q.zN(T)};
  11671. g.h.Yv=function(T){var Q=yf5(this,T);Q&&Q.yg(T)};
  11672. g.h.Fy=function(T){var Q=yf5(this,T);Q&&Q.HX(T)};
  11673. g.h.getMetrics=function(){var T=null;if(this.S&&this.S.getMetrics)try{T=this.S.getMetrics()}catch(Q){}return T};
  11674. g.h.EK=function(){this.L=this.S=null;var T;(T=this.Y)==null||T.dispose();T=g.B(Object.values(this.B));for(var Q=T.next();!Q.done;Q=T.next())Q.value.dispose();this.B={};g.x.prototype.EK.call(this);delete this.element};g.h=BV.prototype;g.h.get=function(T){T=this.findIndex(T);return T!==-1?this.values[T]:null};
  11675. g.h.remove=function(T){T=this.findIndex(T);T!==-1&&(this.keys.splice(T,1),this.values.splice(T,1))};
  11676. g.h.removeAll=function(){this.keys=[];this.values=[]};
  11677. g.h.set=function(T,Q){var k=this.findIndex(T);k!==-1?this.values[k]=Q:(this.keys.push(T),this.values.push(Q))};
  11678. g.h.findIndex=function(T){return g.SA(this.keys,function(Q){return g.eA(T,Q)})};g.S(TT6,g.ox);g.h=TT6.prototype;g.h.ze9=function(T){this.b8({onecpt:1});T.initData&&kju(this,new Uint8Array(T.initData),T.initDataType)};
  11679. g.h.Vre=function(T){this.b8({onndky:1});kju(this,T.initData,T.contentType)};
  11680. g.h.tX=function(T){this.b8({onneedkeyinfo:1});this.Hd.V("html5_eme_loader_sync")&&(this.C.get(T.initData)||this.C.set(T.initData,T));jft(this,T)};
  11681. g.h.Xe=function(T){this.L.push(T);zj(this)};
  11682. g.h.createSession=function(T){var Q=oOy(this)?JqT(T):g.dJ(T.initData);this.S.get(Q);this.xm=!0;T=new w65(this.videoData,this.Hd,T,this.drmSessionId);this.S.set(Q,T);T.subscribe("ctmp",this.IC,this);T.subscribe("keystatuseschange",this.e9,this);T.subscribe("licenseerror",this.ut,this);T.subscribe("newlicense",this.Dc,this);T.subscribe("newsession",this.aC,this);T.subscribe("sessionready",this.Lx,this);T.subscribe("fairplay_next_need_key_info",this.WN,this);this.Hd.V("html5_enable_vp9_fairplay")&&T.subscribe("qualitychange",
  11683. this.Pv,this);T.subscribe("sabrlicenseconstraint",this.ukB,this);b$I(T,this.Y)};
  11684. g.h.Dc=function(T){this.wd()||(this.b8({onnelcswhb:1}),T&&!this.heartbeatParams&&(this.heartbeatParams=T,this.publish("heartbeatparams",T)))};
  11685. g.h.aC=function(){this.wd()||(this.b8({newlcssn:1}),this.L.shift(),this.xm=!1,zj(this))};
  11686. g.h.Lx=function(){if(Lc(this.T)&&(this.b8({onsnrdy:1}),this.Bd--,this.Bd===0)){var T=this.z9,Q,k;(Q=T.element)==null||(k=Q.msSetMediaKeys)==null||k.call(Q,T.L)}};
  11687. g.h.e9=function(T){if(!this.wd()){this.e6||(this.e6=!0,this.Hd.J3()&&vOb(this));this.b8({onksch:1});var Q=this.Pv;if(!h2(T)&&g.$n&&T.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var k="large";else{k=[];var l=!0;if(h2(T))for(var v=g.B(Object.keys(T.T)),L=v.next();!L.done;L=v.next())L=L.value,T.T[L].status==="usable"&&k.push(T.T[L].type),T.T[L].status!=="unknown"&&(l=!1);if(!h2(T)||l)k=T.Y;k=KTJ(k)}Q.call(this,k);if(!h2(T))for(Q={},k=g.B(T.Y),l=k.next();!l.done;l=k.next())H$g(T,
  11688. l.value,Q);this.videoData.authorizedFormats=T.authorizedFormats;this.publish("keystatuseschange",T)}};
  11689. g.h.IC=function(T,Q){this.wd()||this.publish("ctmp",T,Q)};
  11690. g.h.WN=function(T,Q){this.wd()||this.publish("fairplay_next_need_key_info",T,Q)};
  11691. g.h.ut=function(T,Q,k,l){this.wd()||(this.videoData.V("html5_log_drm_metrics_on_error")&&vOb(this),this.publish("licenseerror",T,Q,k,l))};
  11692. g.h.IH=function(){return this.j};
  11693. g.h.Pv=function(T){var Q=g.NQ("auto",T,!1,"l");if(this.videoData.NV){if(this.j.equals(Q))return}else if(fJf(this.j,T))return;this.j=Q;this.publish("qualitychange");this.b8({updtlq:T})};
  11694. g.h.ukB=function(T){this.videoData.sabrLicenseConstraint=T};
  11695. g.h.EK=function(){this.T.keySystemAccess&&this.element&&(this.hj?this.element.setMediaKeys(null).catch(g.rB):this.element.setMediaKeys(null));this.element=null;this.L=[];for(var T=g.B(this.S.values()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.unsubscribe("ctmp",this.IC,this),Q.unsubscribe("keystatuseschange",this.e9,this),Q.unsubscribe("licenseerror",this.ut,this),Q.unsubscribe("newlicense",this.Dc,this),Q.unsubscribe("newsession",this.aC,this),Q.unsubscribe("sessionready",this.Lx,this),Q.unsubscribe("fairplay_next_need_key_info",
  11696. this.WN,this),this.Hd.V("html5_enable_vp9_fairplay")&&Q.unsubscribe("qualitychange",this.Pv,this),Q.dispose();this.S.clear();this.B.removeAll();this.C.removeAll();this.heartbeatParams=null;g.ox.prototype.EK.call(this)};
  11697. g.h.Tx=function(){for(var T={systemInfo:this.T.Tx(),sessions:[]},Q=g.B(this.S.values()),k=Q.next();!k.done;k=Q.next())T.sessions.push(k.value.Tx());return T};
  11698. g.h.getInfo=function(){return this.S.size<=0?"no session":""+this.S.values().next().value.getInfo()+(this.N?"/KR":"")};
  11699. g.h.b8=function(T,Q){Q=Q===void 0?!1:Q;this.wd()||(RE(T),(this.Hd.J3()||Q)&&this.publish("ctmp","drmlog",T))};g.S(YFf,g.x);g.h=YFf.prototype;g.h.NI=function(){return!!this.FC};
  11700. g.h.hX=function(){return this.S};
  11701. g.h.handleError=function(T){var Q=this;mR6(this,T);if((T.errorCode!=="html5.invalidstate"&&T.errorCode!=="fmt.unplayable"&&T.errorCode!=="fmt.unparseable"||!GjH(this,T.errorCode,T.details))&&!SFH(this,T)){if(this.FB.z9!=="yt"&&h2X(this,T)&&this.videoData.Qm&&(0,g.XY)()/1E3>this.videoData.Qm&&this.FB.z9==="hm"){var k=Object.assign({e:T.errorCode},T.details);k.stalesigexp="1";k.expire=this.videoData.Qm;k.init=this.videoData.ov/1E3;k.now=(0,g.XY)()/1E3;k.systelapsed=((0,g.XY)()-this.videoData.ov)/1E3;
  11702. T=new g.ZK(T.errorCode,k,2);this.yq.NL(T.errorCode,2,"SIGNATURE_EXPIRED",RE(T.details))}if(fu(T.severity)){var l;k=(l=this.yq.loader)==null?void 0:l.T.T;if(this.FB.V("html5_use_network_error_code_enums"))if(Ivg(T)&&k&&k.isLocked())var v="FORMAT_UNAVAILABLE";else if(this.FB.B||T.errorCode!=="auth"||T.details.rc!==429)T.errorCode==="ump.spsrejectfailure"&&(v="HTML5_SPS_UMP_STATUS_REJECTED");else{v="TOO_MANY_REQUESTS";var L="6"}else Ivg(T)&&k&&k.isLocked()?v="FORMAT_UNAVAILABLE":this.FB.B||T.errorCode!==
  11703. "auth"||T.details.rc!=="429"?T.errorCode==="ump.spsrejectfailure"&&(v="HTML5_SPS_UMP_STATUS_REJECTED"):(v="TOO_MANY_REQUESTS",L="6");this.yq.NL(T.errorCode,T.severity,v,RE(T.details),L)}else this.yq.publish("nonfatalerror",T),l=/^pp/.test(this.videoData.clientPlaybackNonce),this.RK(T.errorCode,T.details),l&&T.errorCode==="manifest.net.connect"&&(T="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.XY)(),JN(T,"manifest",function(q){Q.B=!0;Q.T9("pathprobe",q)},
  11704. function(q){Q.RK(q.errorCode,q.details)}))}};
  11705. g.h.T9=function(T,Q){this.yq.Kc.T9(T,Q)};
  11706. g.h.RK=function(T,Q){Q=RE(Q);this.yq.Kc.RK(T,Q)};XO.prototype.Cm=function(T){var Q=XVH(this);if(!T)return{e0:GV,eL:GV,K2:GV,o4:GV,Io:GV,n2:GV,DR:Q};var k=GV;if(bd(Q)||this.V("html5_perf_cap_override_sticky"))k=K7J(this,T);return{e0:k,eL:r2y(this,T),K2:A26(this,T),o4:xRX(this,T.videoData),Io:Pgy(this,T.videoData,T),n2:dRC(this,T),DR:Q}};
  11707. XO.prototype.KP=function(T){if(g.G4(this.Hd)&&Wr(this.Hd.N,$g.HEIGHT))var Q=T.T.videoInfos[0].video.qualityOrdinal;else{var k=this.Ip(!!T.T.T);AL(T.videoData)||Z_(T.videoData);T=T.T.videoInfos;if(T.length){var l=g.jj(this.Hd.experiments,"html5_override_oversend_fraction")||.85,v=T[0].video;v.projectionType!=="MESH"&&v.projectionType!=="EQUIRECTANGULAR"&&v.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||lF||(l=.45);v=g.jj(this.Hd.experiments,"html5_viewport_undersend_maximum");for(var L=0;L<
  11708. T.length;L++){Q=T[L];var q=Q.video;if(k===null||q.width*l<k.width&&q.height*l<k.height){v&&L&&q.width<k.width*v&&q.height<k.height*v&&(Q=T[L-1]);break}}k=Q.video;Q=new dt(0,Q.itag==="93"?g.wC[XL(k.width,k.height)]:k.qualityOrdinal,!1,"r")}else Q=GV;Q=Q.T}Q&&(Q=Math.max(Q,360));return new dt(0,Q,!1,"r")};
  11709. XO.prototype.Ip=function(T){var Q;g.vB(this.Hd)&&(Q=window.screen&&window.screen.width?new g.Ji(window.screen.width,window.screen.height):null);Q||(Q=this.Hd.NE?this.Hd.NE.clone():this.GQ.J9());(Fw||Gz||T)&&Q.scale(g.SF());return Q};
  11710. XO.prototype.V=function(T){return this.Hd.V(T)};g.S(dT,g.x);dT.prototype.onError=function(T){if(T!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))T==="sabr.fallback"&&(this.encounteredSabrFallback=!0),T.match(ymp)?this.networkErrorCount++:this.nonNetworkErrorCount++};
  11711. dT.prototype.send=function(){if(!(this.L||this.T<0)){O6y(this);var T=g.qR(this.provider)-this.T,Q="PLAYER_PLAYBACK_STATE_UNKNOWN",k=this.playerState.ge;this.playerState.isError()?Q=k&&k.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.J(this.playerState,2)?Q="PLAYER_PLAYBACK_STATE_ENDED":g.J(this.playerState,64)?Q="PLAYER_PLAYBACK_STATE_UNSTARTED":g.J(this.playerState,16)||g.J(this.playerState,32)?Q="PLAYER_PLAYBACK_STATE_SEEKING":g.J(this.playerState,1)&&g.J(this.playerState,
  11712. 4)?Q="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.J(this.playerState,1)?Q="PLAYER_PLAYBACK_STATE_BUFFERING":g.J(this.playerState,4)?Q="PLAYER_PLAYBACK_STATE_PAUSED":g.J(this.playerState,8)&&(Q="PLAYER_PLAYBACK_STATE_PLAYING");k=x__[JL(this.provider.videoData)];a:switch(this.provider.Hd.playerCanaryState){case "canary":var l="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":l="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:l="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var v=pVu(this.provider),
  11713. L=this.S<0?T:this.S-this.T;T=this.provider.Hd.Wk+36E5<(0,g.XY)();Q={started:this.S>=0,stateAtSend:Q,joinLatencySecs:L,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:l,playerCanaryStage:v,isAd:this.provider.videoData.isAd(),liveMode:k,hasDrm:!!g.Wv(this.provider.videoData),isGapless:this.provider.videoData.C,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
  11714. encounteredSabrFallback:this.encounteredSabrFallback,isSabr:cv(this.provider.videoData)};T||g.LM("html5PlayerHealthEvent",Q);this.L=!0;this.dispose()}};
  11715. dT.prototype.EK=function(){this.L||this.send();window.removeEventListener("error",this.ai);window.removeEventListener("unhandledrejection",this.ai);g.x.prototype.EK.call(this)};
  11716. var ymp=/\bnet\b/;W7f.prototype.update=function(){if(this.C){var T=this.Jb()||0,Q=g.qR(this.provider);T>=this.provider.yq.getDuration()-.1&&(this.previouslyEnded=!0);if(T!==this.T||e2y(this,T,Q)){var k;if(!(k=T<this.T||T-this.T>Q-this.U_+2||e2y(this,T,Q))){k=this.provider.yq.getVolume();var l=k!==this.D,v=this.provider.yq.isMuted()?1:0;v!==this.j?(this.j=v,k=!0):(!l||this.Y>=0||(this.D=k,this.Y=Q),k=Q-this.Y,this.Y>=0&&k>2?(this.Y=-1,k=!0):k=!1)}k&&(A2(this),this.L=T);this.U_=Q;this.T=T}}};
  11717. W7f.prototype.Jb=function(){var T=this.provider.yq.Jb();return this.provider.Hd.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&r4(this.provider.videoData)?T+this.provider.yq.Px():T};F7J.prototype.send=function(T){var Q=this;if(!this.K_){var k=y25(this),l=g.sD(this.uri,k);this.Hd.V("vss_through_gel_double")&&i6g(l);this.xm&&!this.Hd.V("html5_simplify_pings")?kkt(this,l):EOg(this,T).then(function(v){Q.xm&&(v=v||{},v.method="POST",v.postParams={atr:Q.attestationResponse});Qay(l,v,{token:Q.qO,Bv:Q.h3,mdxEnvironment:Q.mdxEnvironment},Q.Hd,T,Q.i9,Q.isFinal&&Q.OW||Q.e6||Q.L&&Q.vk)});
  11718. this.K_=!0}};
  11719. F7J.prototype.S=function(T){T===void 0&&(T=NaN);return Number(T.toFixed(3)).toString()};
  11720. var B$={},Q46=(B$.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,B$.LIVING_ROOM_APP_MODE_MAIN=1,B$.LIVING_ROOM_APP_MODE_KIDS=2,B$.LIVING_ROOM_APP_MODE_MUSIC=3,B$.LIVING_ROOM_APP_MODE_UNPLUGGED=4,B$.LIVING_ROOM_APP_MODE_GAMING=5,B$),zr={},TWb=(zr.EMBEDDED_PLAYER_MODE_UNKNOWN=0,zr.EMBEDDED_PLAYER_MODE_DEFAULT=1,zr.EMBEDDED_PLAYER_MODE_PFP=2,zr.EMBEDDED_PLAYER_MODE_PFL=3,zr);g.S(rT,g.x);rT.prototype.M_=function(){this.T.update();U4y(this)&&(vkt(this),L8b(this))};
  11721. rT.prototype.EK=function(){g.x.prototype.EK.call(this);af(this);$R5(this.T)};
  11722. rT.prototype.Tx=function(){return y25(cV(this,"playback"))};
  11723. rT.prototype.Cd=function(T){var Q=cV(this,"engage");Q.hj=T;return V2y(Q,Ixb(this.provider))};m4T.prototype.isEmpty=function(){return this.endTime===this.startTime};n6.prototype.V=function(T){return this.Hd.V(T)};
  11724. n6.prototype.getCurrentTime=function(){return this.yq.getCurrentTime()};
  11725. n6.prototype.Jb=function(){return this.yq.Jb()};
  11726. var h5C={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.S(g.K6,g.x);g.h=g.K6.prototype;g.h.M_=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bl){var T;(T=this.L.get(this.Bl))==null||T.M_()}else this.T&&this.T.M_()};
  11727. g.h.qm=function(T){this.qoe&&this.qoe.qm(T)};
  11728. g.h.h9=T5(29);g.h.Lz=T5(35);g.h.Gh=function(T,Q){this.qoe&&this.qoe.Gh(T,Q)};
  11729. g.h.wZ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bl){var T;(T=this.L.get(this.Bl))!=null&&A2(T.T)}else this.T&&A2(this.T.T)};
  11730. g.h.RK=function(T,Q){this.qoe&&I_t(this.qoe,T,Q);if(this.S)this.S.onError(T)};
  11731. g.h.onPlaybackRateChange=function(T){if(this.qoe)this.qoe.onPlaybackRateChange(T);this.T&&A2(this.T.T)};
  11732. g.h.aM=T5(52);g.h.T9=function(T,Q,k){this.qoe&&this.qoe.T9(T,Q,k)};
  11733. g.h.PJ=function(T,Q,k){this.qoe&&this.qoe.PJ(T,Q,k)};
  11734. g.h.Sy=function(T){var Q;(Q=this.qoe)==null||Q.Sy(T)};
  11735. g.h.wp=function(T){var Q;(Q=this.qoe)==null||Q.wp(T)};
  11736. g.h.pn=function(T,Q,k,l){var v;(v=this.qoe)==null||v.pn(T,Q,k,l)};
  11737. g.h.Qt=function(T){this.qoe&&this.qoe.Qt(T)};
  11738. g.h.Xx=function(T,Q,k){this.qoe&&this.qoe.Xx(T,Q,k)};
  11739. g.h.RD=T5(23);g.h.BU=function(){if(this.qoe)return this.qoe.BU()};
  11740. g.h.Tx=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bl){var T,Q;return(Q=(T=this.L.get(this.Bl))==null?void 0:T.Tx())!=null?Q:{}}return this.T?this.T.Tx():{}};
  11741. g.h.J5=function(){var T;return(T=this.qoe)==null?void 0:T.J5()};
  11742. g.h.aQ=function(T,Q){var k;(k=this.qoe)==null||k.aQ(T,Q)};
  11743. g.h.Cd=function(T){return this.T?this.T.Cd(T):function(){}};
  11744. g.h.getVideoData=function(){return this.provider.videoData};
  11745. g.h.resume=function(){this.qoe&&this.qoe.resume()};g.S(g.xO,g.x);g.h=g.xO.prototype;g.h.fY=function(T,Q){this.sync();Q&&this.T.array.length>=2E3&&this.CX("captions",1E4);Q=this.T;if(T.length>1&&T.length>Q.array.length)Q.array=Q.array.concat(T),Q.array.sort(Q.T);else{T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value,!Q.array.length||Q.T(k,Q.array[Q.array.length-1])>0?Q.array.push(k):g.Fd(Q.array,k,Q.T)}this.L=NaN;this.sync()};
  11746. g.h.oM=function(T){T.length>1E4&&g.rB(new g.Wy("Over 10k cueRanges removal occurs with a sample: ",T[0]));if(!this.wd()){var Q=new Set(T);this.S=this.S.filter(function(k){return!Q.has(k)});
  11747. u9f(this.T,Q);this.sync()}};
  11748. g.h.IU=function(T,Q){if(!this.wd()){var k=this.TP().find(function(l){return l.id===Q&&l.namespace===T});
  11749. k&&this.oM([k])}};
  11750. g.h.CX=function(T,Q){var k=(isNaN(this.L)?HvH(this):this.L)-Q;Q=this.TP().filter(function(l){return l.namespace===T&&l.end<k});
  11751. this.oM(Q);return Q};
  11752. g.h.TP=function(){return this.wd()?[]:this.T.array};
  11753. g.h.reset=function(){this.started=!1;this.Y.stop();this.T.array=[];this.S=[];this.sync()};
  11754. g.h.uf=function(T){var Q=this.TP().filter(function(k){return k.namespace===T});
  11755. this.oM(Q);return Q};
  11756. g.h.o0=T5(41);g.h.E2=function(T){var Q=[],k=cOt(this.T,0x7ffffffffffff),l=[];k=g.B(k);for(var v=k.next();!v.done;v=k.next())v=v.value,v.active&&T===v.associatedClipId&&l.push(v);Q=Q.concat(x4C(this,l));t8g(this,Q);Q=[];k=[];v=g.B(this.S);for(var L=v.next();!L.done;L=v.next())L=L.value,L.active&&L.associatedClipId===T&&L.start===0x7ffffffffffff&&k.push(L);Q=Q.concat(P_5(this,k));t8g(this,Q);return l.length};
  11757. g.h.sync=function(){this.N=!0;if(!this.B){for(var T=3;this.N&&T;)this.N=!1,this.B=!0,OvC(this),this.B=!1,T--;this.yq.getPlayerState().isPlaying()&&(T=axC(this.T,this.L),!isNaN(T)&&T<0x7ffffffffffff&&(T=(T-this.L)/this.yq.getPlaybackRate(),this.Y.start(T)))}};
  11758. g.h.isEnded=function(T,Q){Q=this.yq.WG()*1E3-Q;Q=this.yq.pS()&&g.J(T,1)&&Q<500;return g.J(T,2)||this.yq.G().V("html5_pseudogapless_shorts")&&Q};
  11759. g.h.EK=function(){this.S=[];this.T.array=[];g.x.prototype.EK.call(this)};HV.prototype.add=function(T){this.T=(this.T+1)%this.data.length;this.data[this.T]=T};
  11760. HV.prototype.forEach=function(T){for(var Q=this.T+1;Q<this.data.length;Q++)T(this.data[Q]||0);for(Q=0;Q<=this.T;Q++)T(this.data[Q]||0)};
  11761. HV.prototype.clear=function(){for(var T=this.data.length,Q=0;Q<T;Q++)this.data[Q]=0;this.S=this.T=this.data.length-1};g.S(OF,g.ox);OF.prototype.iX=function(){return this.C};
  11762. OF.prototype.u8=function(){return this.policy.qO&&this.videoData.T?this.videoData.T.mK:Math.max(this.N()-WV(this)*this.T,this.videoData.SY())};g.S(e2,g.x);e2.prototype.Jh=function(){var T=this,Q=this.yq.T_(),k=this.yq.getPlayerState();if(Q&&!k.isError()){var l=Q.getCurrentTime(),v=k.state===8&&l>this.T,L=g.J(k,8)&&g.J(k,16),q=this.yq.Gk().isBackground()||k.isSuspended();FO(this,this.u9,L&&!q,v,"qoe.slowseek",function(){},"timeout");
  11763. var Y=isFinite(this.T);Y=L&&Y&&ycb(Q,this.T);var U=!l||Math.abs(l-this.T)>10,R=this.Hd.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),Z=l===0&&this.S&&[11,10].includes(this.S);FO(this,this.K_,Y&&U&&!q&&(!R||!Z),v,"qoe.slowseek",function(){Q.seekTo(T.T)},"set_cmt");
  11764. U=Y&&y4(Q.Q8(),this.T);var f=this.yq.loader;Y=!f||f.qG();var G=function(){Q.seekTo(T.T+.001)};
  11765. FO(this,this.e6,U&&Y&&!q,v,"qoe.slowseek",G,"jiggle_cmt");Y=function(){return T.yq.s$()};
  11766. FO(this,this.sK,U&&!q,v,"qoe.slowseek",Y,"new_elem");var m=be(k);Z=k.isBuffering();var I=Q.Q8(),z=E_(I,l),w=z>=0&&I.end(z)>l+5;U=m&&Z&&w;R=this.yq.getVideoData();FO(this,this.Bd,l<.002&&this.T<.002&&L&&g.G4(this.Hd)&&g.LX(R)&&!q,v,"qoe.slowseek",Y,"slow_seek_shorts");FO(this,this.D,R.aD()&&L&&!q&&!R.qO,v,"qoe.slowseek",Y,"slow_seek_gapless_shorts");FO(this,this.z9,U&&!q,m&&!Z,"qoe.longrebuffer",G,"jiggle_cmt");FO(this,this.qO,U&&!q,m&&!Z,"qoe.longrebuffer",Y,"new_elem_nnr");if(f){var r=f.getCurrentTime();
  11767. L=Q.nX();L=PDJ(L,r);L=!f.isSeeking()&&l===L;FO(this,this.d5,m&&Z&&L&&!q,m&&!Z&&!L,"qoe.longrebuffer",function(){Q.seekTo(r)},"seek_to_loader")}L={};
  11768. G=E_(I,Math.max(l-3.5,0));var A=G>=0&&l>I.end(G)-1.1,D=G>=0&&G+1<I.length?I.start(G+1)-I.end(G):9999;L.mindex=z;L.disIndex=G;L.isdisc=G>=0&&A&&D<11;L.close2edge=A;L.gapsize=D;L.buflen=I.length;this.S&&(L.seekSour=this.S);FO(this,this.hj,m&&Z&&!q,m&&!Z,"qoe.longrebuffer",function(){},"timeout",L);
  11769. L=k.isSuspended();L=this.yq.ME()&&!L;FO(this,this.C,L,!L,"qoe.start15s",function(){T.yq.Ju("ad")},"ads_preroll_timeout");
  11770. L=this.Hd.experiments.Wd("html5_use_playback_rate_in_skip_slow_ad")?this.yq.getPlaybackRate()*1E3:1E3;z=l-this.Y<L/1E3/2;A=(G=R.isAd())&&m&&!Z&&z;L=function(){var K=T.yq,O=K.nA.getVideoData();(!O||!K.videoData.isAd()||O.lC!==K.getVideoData().lC)&&K.videoData.Xj||K.NL("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+K.videoData.videoId)};
  11771. FO(this,this.Tg,A,!A,"ad.rebuftimeout",L,"skip_slow_ad");z=G&&Z&&y4(Q.Q8(),l+5)&&z;FO(this,this.QR,z&&!q,!z,"ad.rebuftimeout",L,"skip_slow_ad_buf");L=k.isOrWillBePlaying()&&g.J(k,64)&&!q;FO(this,this.h3,L,v,"qoe.start15s",function(){},"timeout");
  11772. f=!!f&&!f.j6&&k.isOrWillBePlaying();FO(this,this.xm,f,v,"qoe.start15s",Y,"newElemMse");f=Qd(I,0);I=g.J(k,16)||g.J(k,32);f=!q&&k.isOrWillBePlaying()&&Z&&!I&&(g.J(k,64)||l===0)&&f>5;FO(this,this.p_,g.LX(R)&&f,m&&!Z,"qoe.longrebuffer",function(){T.yq.Lt()},"reset_media_source");
  11773. FO(this,this.Jj,g.LX(R)&&f,m&&!Z,"qoe.longrebuffer",Y,"reset_media_element");this.Y===0&&(this.B=l);f=Z&&this.T===0&&l>1&&l===this.B;FO(this,this.i9,g.LX(R)&&f,m&&!Z,"qoe.slowseek",function(){Q.seekTo(0)},"reseek_after_time_jump");
  11774. q=k.isOrWillBePlaying()&&!q;w=this.yq.WG()-l<6&&!w&&this.yq.pS();FO(this,this.j,R.aD()&&q&&Z&&w,m&&!Z,"qoe.longrebuffer",function(){T.yq.s$(!1,!0)},"handoff_end_long_buffer_reload");
  11775. q=this.S===104||this.yq.vu;k=NY(R)&&R.isAd()&&!R.qO&&q&&(Z||g.J(k,8)&&g.J(k,16));FO(this,this.f_,k,v,"qoe.start15s",Y,"gapless_ad_slow_start");k=NY(R)&&!R.qO&&q&&U;FO(this,this.zg,k,v,"qoe.longrebuffer",Y,"gapless_slow_start");this.Y=l;this.N.start()}};
  11776. e2.prototype.RK=function(T,Q,k){Q=this.Tx(Q);Q.wn=k;Q.wdup=this.L[T]?"1":"0";this.yq.RK(new g.ZK(T,Q));this.L[T]=!0};
  11777. e2.prototype.Tx=function(T){T=Object.assign(this.yq.Tx(!0),T.Tx());this.T&&(T.stt=this.T.toFixed(3));this.yq.getVideoData().isLivePlayback&&(T.ct=this.yq.getCurrentTime().toFixed(3),T.to=this.yq.Px().toFixed(3));delete T.uga;delete T.euri;delete T.referrer;delete T.fexp;delete T.vm;return T};
  11778. J2.prototype.reset=function(){this.T=this.S=this.L=this.startTimestamp=0;this.Y=!1};
  11779. J2.prototype.test=function(T){if(!this.N||this.S)return!1;if(!T)return this.reset(),!1;T=(0,g.XY)();if(!this.startTimestamp)this.startTimestamp=T,this.L=0;else if(this.L>=this.N)return this.S=T,!0;this.L+=1;return!1};
  11780. J2.prototype.Tx=function(){var T={},Q=(0,g.XY)();this.startTimestamp&&(T.wsd=(Q-this.startTimestamp).toFixed());this.S&&(T.wtd=(Q-this.S).toFixed());this.T&&(T.wssd=(Q-this.T).toFixed());return T};g.S(vYC,g.x);g.h=vYC.prototype;g.h.setMediaElement=function(T){(this.mediaElement=T)?(this.mediaElement&&(this.N||this.L||!this.mediaElement.h2()||this.seekTo(.01,{I_:"seektimeline_setupMediaElement"})),EF(this)):ig(this)};
  11781. g.h.getCurrentTime=function(T){T=T===void 0?!1:T;if(yE(this.yq)){if(this.V("html5_use_centralized_player_time")&&!T&&!isNaN(this.B))return this.B;if(!isNaN(this.S))return this.S}else{if(this.V("html5_use_centralized_player_time")&&!T&&!isNaN(this.B)&&isFinite(this.B))return this.B;if(!isNaN(this.S)&&isFinite(this.S))return this.S}return this.mediaElement&&SsT(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.L||0};
  11782. g.h.Pm=function(){return this.f_};
  11783. g.h.Jb=function(){return this.getCurrentTime()-this.Px()};
  11784. g.h.u8=function(){return this.T?this.T.u8():Infinity};
  11785. g.h.isAtLiveHead=function(T){if(!this.T)return!1;T===void 0&&(T=this.getCurrentTime());return p6(this.T,T)};
  11786. g.h.iX=function(){return!!this.T&&this.T.iX()};
  11787. g.h.seekTo=function(T,Q){var k=Q===void 0?{}:Q;Q=k.aj===void 0?!1:k.aj;var l=k.JI===void 0?0:k.JI;var v=k.M5===void 0?!1:k.M5;var L=k.Nf===void 0?0:k.Nf;var q=k.I_===void 0?"":k.I_;var Y=k.seekSource===void 0?void 0:k.seekSource;var U=k.J_===void 0?!1:k.J_;var R=k.SM===void 0?!1:k.SM;k=k.gW===void 0?!1:k.gW;U&&(T+=this.Px());cv(this.videoData)&&Y===29&&(this.f_=void 0);U=T<this.sK&&!!this.loader;var Z=cv(this.videoData)&&R;if(U&&!Z&&(this.yq.T9("sdai",{sk2bk:T.toFixed(3),mt:(T-this.timestampOffset).toFixed(3),
  11788. lstadj:this.sK.toFixed(3)}),this.sK=NaN,this.timestampOffset-=1E3,(Z=this.loader)!=null)){fI5(Z,Z.timestampOffset-1E3);var f=Z.C_,G=new Set;for(w in f.T){var m=f.T[w].index,I=m.j2();I&&!G.has(I)&&(I.startTime+=1E3,I.endTime=I.startTime+I.duration,G.add(I));m.segments.length&&(I=m.segments[m.segments.length-1],m.segments=[],m.segments.push(I))}Z.D&&Z.D.nV();if(Z.policy.K_&&Z.policy.S){var z;(z=Z.xm)==null||z.nV()}jr(Z.L,0,0,!0)}var w=T;(z=cv(this.videoData))&&R?w=!0:(Z=this.V("html5_always_allow_sqless_sync")&&
  11789. this.videoData.Cc(),(z||Z)&&q==="chunkSelectorSynchronize"?w=!0:(z=!isFinite(w)||(this.T?p6(this.T,w):w>=this.EM())||!g.iO(this.videoData),z||(w={st:w,mst:this.EM()},this.T&&this.V("html5_high_res_seek_logging")&&(w.ht=this.T.u8(),w.adft=V8X(this.T)),this.yq.T9("seeknotallowed",w)),w=z));if(!w)return this.Y&&(this.Y=null,IGt(this)),g.DT(this.getCurrentTime());w=.005;R&&this.V("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(T-this.S)<=w&&this.i9)return this.N;q&&(w=T,(this.Hd.J3()||this.V("html5_log_seek_reasons"))&&
  11790. this.yq.T9("seekreason",{reason:q,tgt:w}));Y&&(this.z9.S=Y);this.i9&&ig(this);this.N||(this.N=new GN);T&&!isFinite(T)&&MpI(this,!1);(q=k||U)||(q=T,q=!(this.videoData.isLivePlayback&&this.videoData.L&&!this.videoData.L.T&&!(this.mediaElement&&this.mediaElement.Nm()>0&&IL(this.mediaElement)>0)||Kt(this.videoData)&&this.SY()===this.EM(!1)?0:isFinite(q)||!Kt(this.videoData)));q||(T=Tk(this,T,v));T&&!isFinite(T)&&MpI(this,!1);this.V("html5_use_centralized_player_time")?this.B=T:this.S=this.L=T;this.p_=
  11791. L;this.C=0;this.T&&(v=this.T,L=T,TNI(v,L,!1),Qht(v,L));v=this.yq;L=T;q={aj:Q,seekSource:Y};v.KA.L=L;k=v.V3;k.mediaTime=L;k.T=!0;q.aj&&v.n4(q);q=L>v.videoData.endSeconds&&L>v.videoData.limitedPlaybackDurationInSeconds;v.N3&&q&&isFinite(L)&&ikT(v);L<v.EM()-.01&&(q=df(v.playerState,2),g.J(q,8)&&(q=df(q,4)),v.LA(q));v.publish("SEEK_TO",L);this.N&&(Q?l&&this.u9.start(l):oYu(this,{SM:R,seekSource:Y}));(Q=this.yq.N3)&&T>Q.start&&ikT(this.yq);return this.N};
  11792. g.h.EM=function(T){if(!this.videoData.isLivePlayback)return this.yq.videoData.EM();var Q;return sU(this.videoData)&&((Q=this.mediaElement)==null?0:Q.isPaused())&&this.videoData.T?(T=this.getCurrentTime(),jrb(this.xM(T)*1E3)+T):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this.videoData)&&this.videoData.T?T?this.videoData.T.qO||0:this.videoData.T.mK||0:Kt(this.videoData)&&this.videoData.hj&&this.videoData.T?this.videoData.T.EM()+this.timestampOffset:this.videoData.L&&this.videoData.L.T?
  11793. !T&&this.T?this.T.u8():this.yq.videoData.EM()+this.timestampOffset:this.mediaElement?WD()?jrb(this.mediaElement.Q9().getTime()):IL(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
  11794. g.h.SY=function(){if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this.videoData)){var T;return((T=this.videoData.T)==null?void 0:T.Jp)||0}T=this.videoData?this.videoData.SY()+this.timestampOffset:this.timestampOffset;if(sU(this.videoData)&&this.videoData.T){var Q,k=Number((Q=this.videoData.progressBarStartPosition)==null?void 0:Q.utcTimeMillis)/1E3;Q=this.getCurrentTime();Q=this.xM(Q)-Q;if(!isNaN(k)&&!isNaN(Q))return Math.max(T,k-Q)}return T};
  11795. g.h.Ba=function(){this.N||this.seekTo(this.L,{I_:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
  11796. g.h.g$=function(){return this.i9&&!isFinite(this.S)};
  11797. g.h.EK=function(){Ysu(this,null);this.z9.dispose();g.x.prototype.EK.call(this)};
  11798. g.h.Tx=function(){var T={};this.loader&&Object.assign(T,this.loader.Tx());this.mediaElement&&Object.assign(T,this.mediaElement.Tx());return T};
  11799. g.h.eU=function(T){this.timestampOffset=T};
  11800. g.h.getStreamTimeOffset=function(){return Kt(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0};
  11801. g.h.Px=function(){return this.timestampOffset};
  11802. g.h.xM=function(T){return this.videoData&&this.videoData.T?this.videoData.T.xM(T-this.timestampOffset):NaN};
  11803. g.h.KX=function(){if(!this.mediaElement)return 0;if(Vv(this.videoData)){var T=this.mediaElement,Q=T.Q8();T=(TN(Q)&&T.getDuration()?Q.end(Q.length-1):0)+this.timestampOffset-this.SY();Q=this.EM()-this.SY();return Math.max(0,Math.min(1,T/Q))}return this.mediaElement.KX()};
  11804. g.h.uq=function(T){this.j&&(this.j.T=T)};
  11805. g.h.R3=function(T,Q){this.yq.T9("requestUtcSeek",{time:T});cv(this.videoData)&&(this.f_=T);var k;(k=this.loader)==null||k.R3(T);Q&&(this.xm=Q)};
  11806. g.h.Fi=function(T){cv(this.videoData)&&(this.f_=void 0);if(this.xm)this.yq.T9("utcSeekingFallback",{source:"streamTime",timeSeconds:this.xm}),this.yq.seekTo(this.xm,{I_:"utcSeekingFallback_streamTime"}),this.xm=0;else{var Q=this.getCurrentTime();isNaN(Q)||(T=this.xM(Q)-T,Q-=T,this.yq.T9("utcSeekingFallback",{source:"estimate",timeSeconds:Q}),this.yq.seekTo(Q,{I_:"utcSeekingFallback_estimate"}))}};
  11807. g.h.Jd=function(){this.xm=0};
  11808. g.h.V=function(T){return this.Hd&&this.Hd.V(T)};g.S(QW,g.x);QW.prototype.start=function(){this.S.start()};
  11809. QW.prototype.stop=function(){this.S.stop()};
  11810. QW.prototype.clear=function(){for(var T=g.B(this.T.values()),Q=T.next();!Q.done;Q=T.next())Q.value.clear()};
  11811. QW.prototype.sample=function(){for(var T=g.B(this.L),Q=T.next();!Q.done;Q=T.next()){var k=g.B(Q.value);Q=k.next().value;k=k.next().value;this.T.has(Q)||this.T.set(Q,new dD5(i8A.has(Q)));this.T.get(Q).update(k())}this.S.start()};
  11812. var i8A=new Set(["networkactivity"]);dD5.prototype.update=function(T){this.S?(this.buffer.add(T-this.T||0),this.T=T):this.buffer.add(T)};
  11813. dD5.prototype.clear=function(){this.buffer.clear();this.T=0};l_.prototype.gT=function(){return this.started};
  11814. l_.prototype.start=function(){this.started=!0};
  11815. l_.prototype.reset=function(){this.finished=this.started=!1};var c4f=!1;g.S(g.q4,g.ox);g.h=g.q4.prototype;g.h.EK=function(){this.logger.debug("dispose");g.m6(this.Y0);M2X(this.H1);this.visibility.unsubscribe("visibilitystatechange",this.H1);z5b(this.Kc);g.od(this.Kc);Yk(this);g.P0.wC(this.zT);this.u7();this.lK=null;g.od(this.videoData);g.od(this.rJ);g.od(this.qd);g.od(this.gg);g.vU(this.dOq);this.N3=null;g.ox.prototype.EK.call(this)};
  11816. g.h.Xx=function(T,Q,k,l,v){if(this.Hd.V("html5_log_ad_playback_docid")){var L=this.Kc;if(L.qoe){L=L.qoe;var q=this.Hd.z9||"yt";g.of(L,g.qR(L.provider),"ad_playback",[T,Q,k,v,q])}}else this.Kc.Xx(T,Q,k);this.V("html5_log_media_perf_info")&&this.T9("adloudness",{ld:l.toFixed(3),cpn:T})};
  11817. g.h.P0=function(){var T;return(T=this.loader)==null?void 0:T.P0()};
  11818. g.h.nw=function(){var T;return(T=this.loader)==null?void 0:T.nw()};
  11819. g.h.My=function(){var T;return(T=this.loader)==null?void 0:T.My()};
  11820. g.h.If=function(){var T;return(T=this.loader)==null?void 0:T.If()};
  11821. g.h.bl=function(){return this.videoData.bl()};
  11822. g.h.e1=function(){return this.V("html5_not_reset_media_source")&&!this.bl()&&!this.videoData.isLivePlayback&&g.LX(this.videoData)&&!this.Hd.supportsGaplessShorts()};
  11823. g.h.Ij=function(){this.videoData.C&&(this.videoData.OE=this.videoData.OE||this.nA.Pd().P0(),this.videoData.vz=this.videoData.vz||this.nA.Pd().nw());if(ph5(this.videoData)||!Ia(this.videoData)){var T=this.videoData.errorDetail;this.NL(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),T,T,this.videoData.by||void 0)}this.V("html5_generate_content_po_token")&&this.rY();this.V("html5_enable_d6de4")&&this.Z5()};
  11824. g.h.getVideoData=function(){return this.videoData};
  11825. g.h.G=function(){return this.Hd};
  11826. g.h.Cm=function(){return this.BG.Cm(this.lK)};
  11827. g.h.Gk=function(){return this.visibility};
  11828. g.h.I9=function(){return this.mediaElement&&this.mediaElement.rQ()?this.mediaElement.xB():null};
  11829. g.h.T_=function(){return this.mediaElement};
  11830. g.h.dZ=function(){if(this.videoData.errorCode)return!1;this.G().B&&this.G().houseBrandUserStatus&&this.T9("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.Hk())return!0;this.NL("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
  11831. g.h.I3=function(T){(T=T===void 0?!1:T)||s45(this.Kc);this.HJ=T;!this.dZ()||this.YQ.gT()?g.G4(this.Hd)&&this.videoData.isLivePlayback&&this.YQ.gT()&&!this.YQ.finished&&!this.HJ&&this.X5():(this.YQ.start(),T=this.Kc,g.qR(T.provider),T.qoe&&GhJ(T.qoe),this.X5())};
  11832. g.h.X5=function(){if(this.videoData.isLoaded()){var T=this.rJ;g.jj(T.FB.experiments,"html5_player_min_build_cl")>0&&g.jj(T.FB.experiments,"html5_player_min_build_cl")>787819992&&sfb(T,"oldplayer");eSC(this)}else this.videoData.Hl||this.videoData.Xm?this.HJ&&g.G4(this.Hd)&&this.videoData.isLivePlayback||(this.videoData.Hl?dyJ(this.videoData):(T=this.Kc,T.qoe&&(T=T.qoe,MR(T,"protected"),T.provider.videoData.N?T.sZ():T.provider.videoData.subscribe("dataloaded",T.sZ,T)),C1T(this.videoData))):!this.videoData.loading&&
  11833. this.yG&&Wc6(this)};
  11834. g.h.E7=function(T){this.Gx=T;this.loader&&(qQC(this.loader,new g.Zv(T)),this.T9("sdai",{sdsstm:1}))};
  11835. g.h.JY=function(T,Q,k){var l;(l=this.loader)==null||l.JY(T,Q,k)};
  11836. g.h.uy=T5(8);g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
  11837. g.h.isBackground=function(){return this.visibility.isBackground()};
  11838. g.h.yV=function(){var T=this;this.logger.debug("Updating for format change");gW(this).then(function(){return Lv(T)});
  11839. this.playerState.isOrWillBePlaying()&&this.playVideo()};
  11840. g.h.Pw=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.I3();this.dZ()&&!g.J(this.playerState,128)&&(this.mP.gT()||(this.mP.start(),this.videoData.dC?this.LA(wf(this.playerState,4)):this.LA(wf(wf(this.playerState,8),1))),$DH(this))};
  11841. g.h.qW=function(){return this.YQ.finished};
  11842. g.h.sendAbandonmentPing=function(){g.J(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Hr(!0),z5b(this.Kc),g.od(this.Kc),g.P0.wC(this.zT))};
  11843. g.h.fn=function(T,Q,k){T=T===void 0?!0:T;(Q===void 0||Q)&&this.mediaElement&&this.mediaElement.pause();T&&k&&this.loader&&Kt(this.videoData)&&this.loader.pn(k);this.LA(T?new g.Cd(14):new g.Cd)};
  11844. g.h.tY=function(){this.Kc.wZ()};
  11845. g.h.NL=function(T,Q,k,l,v,L){this.logger.debug(function(){return"set player error: ec="+T+", detail="+v});
  11846. var q,Y;g.YZ(Yo_,k)?q=k:k?Y=k:q="GENERIC_WITHOUT_LINK";l=(l||"")+(";a6s."+yi());if(T==="auth"||T==="drm.auth"||T==="heartbeat.stop")k&&(l+=";r."+k.replaceAll(" ","_")),L&&(l+="sr."+L.replaceAll(" ","_"));Q={errorCode:T,errorDetail:v,errorMessage:Y||g.Es[q]||"",k9:q,by:L||"",sT:l,sN:Q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=T;M4(this,"dataloaderror");this.LA(zN(this.playerState,128,Q));g.P0.wC(this.zT);Yk(this);this.T0()};
  11847. g.h.Ju=function(T){this.ZS=this.ZS.filter(function(Q){return T!==Q});
  11848. this.logger.debug(function(){return"set preroll ready for "+T});
  11849. this.mP.gT()&&$DH(this)};
  11850. g.h.Pc=function(){var T;(T=!!this.ZS.length)||(T=this.lH.T.array[0],T=!!T&&T.start<=-0x8000000000000);return T};
  11851. g.h.iX=function(){return this.KA.iX()};
  11852. g.h.isPlaying=function(){return this.playerState.isPlaying()};
  11853. g.h.a9=function(){return this.playerState.a9()&&this.videoData.dC};
  11854. g.h.getPlayerState=function(){return this.playerState};
  11855. g.h.AJ=function(T){var Q;(Q=this.loader)==null||Q.AJ(T)};
  11856. g.h.ZF=function(T){var Q;(Q=this.loader)==null||Q.ZF(T)};
  11857. g.h.getPlayerType=function(){return this.playerType};
  11858. g.h.getPreferredQuality=function(){if(this.lK){var T=this.lK;T=T.videoData.kH.compose(T.videoData.wE);T=cr(T)}else T="auto";return T};
  11859. g.h.qA=T5(16);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
  11860. g.h.setMediaElement=function(T){this.logger.debug("set media element");if(this.mediaElement&&T.xB()===this.mediaElement.xB()&&(T.isView()||this.mediaElement.isView())){if(T.isView()||!this.mediaElement.isView())this.d9(),this.mediaElement=T,this.mediaElement.yq=this,ML5(this),this.KA.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.u7();if(!this.playerState.isError()){var Q=df(this.playerState,512);g.J(Q,8)&&!g.J(Q,2)&&(Q=wf(Q,1));T.isView()&&(Q=df(Q,64));this.LA(Q)}this.mediaElement=
  11861. T;this.mediaElement.yq=this;!g.G4(this.Hd)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ML5(this);this.KA.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.rJ.NI()&&Jc5(this.mediaElement)}};
  11862. g.h.u7=function(T,Q,k){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;k=k===void 0?!1:k;this.logger.debug("remove media element");if(this.mediaElement){var l=this.getCurrentTime();l>0&&(this.KA.L=l);this.KA.setMediaElement(null);!T&&this.e1()?oWb(this):this.I0(k);this.loader&&(Tj(this.loader),fv(this,Q));this.X8.stop();if(this.mediaElement&&(!this.mP.gT()&&!this.ME()||this.playerState.isError()||g.J(this.playerState,2)||this.LA(wf(this.playerState,512)),this.mediaElement)){this.d9();if(T||!this.mediaElement.isView())this.Rg.Sl("mesv_s"),
  11863. this.mediaElement.stopVideo(),Gk(this);this.mediaElement=this.mediaElement.yq=null}}};
  11864. g.h.playVideo=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;var k=this,l,v,L,q,Y,U;return g.a(function(R){if(R.S==1){k.logger.debug("start play video");var Z=window.google_image_requests;Z&&Z.length>10&&(window.google_image_requests=Z.slice(-10));if(g.J(k.playerState,128))return R.return();if(k.rJ.hX())return k.publish("signatureexpired"),R.return();k.mediaElement&&s45(k.Kc);k.Pw();(g.J(k.playerState,64)||T)&&k.LA(wf(k.playerState,8));return k.mP.finished&&k.mediaElement?k.lK||!k.ob?R.Ym(2):g.c(R,
  11865. k.ob,3):R.return()}if(R.S!=2&&g.J(k.playerState,128))return R.return();if(!k.videoData.L)return k.videoData.isLivePlayback&&!g.z6(k.Hd.N,!0)?(l="html5.unsupportedlive",v=2):(l=k.videoData.bl()?"fmt.unplayable":"fmt.noneavailable",v=1),g.rB(Error("selectableFormats")),k.NL(l,v,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),R.return();if(k.Ax()&&k.videoData.L.T)return k.logger.debug("rebuild playbackData for airplay"),R.return(gW(k));if(yE(k))Z=k.KA,nt(Z.videoData)&&!Z.isAtLiveHead(Z.getCurrentTime())&&
  11866. Z.iX()&&Z.yq.seekTo(Infinity,{I_:"seektimeline_peggedToLive",seekSource:34});else if(nt(k.videoData)&&(L=k.getCurrentTime()<k.SY()-15,q=g.iO(k.videoData)&&k.playerState.isPaused(),Y=g.J(k.playerState,1024),Z=k.KA,Z.videoData.Cc()&&Gh(Z.videoData)||Y||!L&&!q||(q?(k.logger.debug("seek to head for live because of live-only"),k.seekTo(Infinity,{I_:"videoplayer_unpauseLiveOnly",seekSource:102})):(k.logger.debug("seek to min seekable for live because of out of window"),k.seekTo(k.SY(),{I_:"videoplayer_outOfWindow",
  11867. seekSource:102}))),!k.isAtLiveHead(void 0,!0)&&k.iX()&&(k.logger.debug("seek to head for live because pegged to live"),U={I_:"videoplayer_peggedToLive",seekSource:34},k.seekTo(Infinity,U)),g.J(k.playerState,256)&&k.videoData.qO&&k.KA.g$()))return k.LA(N3(k.playerState,8,4)),R.return();g.J(k.playerState,4)&&g.J(k.playerState,16)&&k.LA(N3(k.playerState,9,4));if(Lv(k,Q))return GK5(k),R.return();fLu(k);g.BT(R)})};
  11868. g.h.Lt=function(T){this.logger.debug("reset media source");T&&this.RK(new g.ZK("qoe.restart",T));this.LA(wf(this.playerState,2048));this.I0();T=this.videoData.T&&Pr(this.videoData.T);var Q=this.mediaElement&&this.mediaElement.isView();T||Q?(this.loader&&a_C(this.loader),this.s$()):(Lv(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
  11869. g.h.G6=function(){if(!this.lK)return[];var T=z2u(this.BG,this.lK,this.IH());return this.lK.T.G6(T)};
  11870. g.h.Cy=function(){if(!this.lK)return[];var T=z2u(this.BG,this.lK,this.IH());return this.lK.T.Cy(T)};
  11871. g.h.Ip=function(){var T,Q;return this.BG.Ip(!!((T=this.lK)==null?0:(Q=T.T)==null?0:Q.T))};
  11872. g.h.KP=function(){return this.lK?this.BG.KP(this.lK):GV};
  11873. g.h.IH=function(){var T=this.QU?this.QU.IH():d4(this.videoData)&&this.videoData.T&&Pr(this.videoData.T)?this.videoData.NV?GV:i$X:GV;this.d4&&(T=T.compose(D_A));return T};
  11874. g.h.Tv=function(){return this.lK?z2u(this.BG,this.lK,this.IH()):GV};
  11875. g.h.Py=function(){var T=this.Dg(),Q=this.nA.mF().videoId;return this.nA.m9.Py(T)||this.nA.m9.Py(Q)};
  11876. g.h.TU=function(T,Q,k){var l;if((l=this.Kc.qoe)!=null){var v=T.T,L=g.qR(l.provider);g.of(l,L,"vfi",[v===0?"":""+v,v===0?"A":"M"])}this.videoData.kH=T;if(this.lK&&Q&&(Q=this.BG,v=this.lK,v.T.T)){l=(L=g.jj(Q.Hd.experiments,"html5_max_quality_sel_upgrade"))?T.T:g.wC[cr(T)];var q=v.T.videoInfos[0].video.qualityOrdinal,Y=q!==0&&T.T===q;q=mk()>q;if(!Y||!q){L&&Y&&(l=Math.max(l,L));var U;L=wVT(Q,(U=v.T)==null?void 0:U.videoInfos);U=Q.yq.getPlaybackRate();U>1&&L&&(U=jNC(Q.Hd.N,v.T.videoInfos,U),T.T!==0&&U<
  11877. T.T&&Q.yq.setPlaybackRate(1));var R,Z;T=((R=v.videoData.S)==null?void 0:(Z=R.video)==null?void 0:Z.qualityOrdinal)||0;g.ri("yt-player-quality",{quality:l,previousQuality:T},31104E3);Q.Hd.schedule.policy.Y=mk()>=480;if(Q.V("html5_exponential_memory_for_sticky")){R=Q.Hd.nG;Z=1;var f=f===void 0?!1:f;ukg(R,"sticky-lifetime");R.values["sticky-lifetime"]&&R.jP["sticky-lifetime"]||(R.values["sticky-lifetime"]=0,R.jP["sticky-lifetime"]=0);f&&Ed(R,"sticky-lifetime")>.0625&&(Z=R.jP["sticky-lifetime"]*2);R.values["sticky-lifetime"]+=
  11878. 1*Math.pow(2,R.T/Z);R.jP["sticky-lifetime"]=Z;R.Y.start()}if(Q.V("html5_perf_cap_override_sticky")){f=Q.L;R=Q.V("html5_perserve_av1_perf_cap");R=R===void 0?!1:R;if(R===void 0?0:R){Z=h_();T=g.B(Object.keys(Z));for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.indexOf("1")!==0&&delete Z[Q];g.ri("yt-player-performance-cap",Z,2592E3)}else g.Dk("yt-player-performance-cap");j0y(R);if(R){R=g.B(j4.keys());for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.startsWith("1")||j4.delete(Z);R=g.B(wT.values());for(Z=R.next();!Z.done;Z=
  11879. R.next())Z=Z.value,Z.startsWith("1")||wT.delete(Z);R=g.B(f.keys());for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.startsWith("1")||f.delete(Z)}else j4.clear(),wT.clear(),f.clear()}}}this.loader&&(f=this.loader,k=k||"",f.policy.T?gX(f.Y.T,k):gX(f.T.N,k));this.zE()};
  11880. g.h.getUserPlaybackQualityPreference=function(){return this.videoData.L&&!this.videoData.L.T?cr(this.videoData.kH):rt[mk()]};
  11881. g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
  11882. g.h.setUserAudio51Preference=function(T,Q){this.getUserAudio51Preference()!==T&&(this.T9("toggle51",{pref:T}),g.ri("yt-player-audio51",T,Q?31536E3:2592E3),this.yV())};
  11883. g.h.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
  11884. g.h.setProximaLatencyPreference=function(T){var Q=this.getProximaLatencyPreference();this.T9("proxima",{pref:T});g.ri("yt-player-proxima-pref",T,31536E3);Q!==T&&(T=this.KA,T.zg=!0,T.yq.seekTo(Infinity,{I_:"seektimeline_proximaSeekToHead",seekSource:34}))};
  11885. g.h.getProximaLatencyPreference=function(){var T;return(T=I3())!=null?T:0};
  11886. g.h.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
  11887. g.h.rY=function(){this.videoData.videoId?this.nA.rY(this.videoData):this.T9("povid",{})};
  11888. g.h.Z5=function(){this.videoData.videoId?this.nA.Z5(this.videoData):this.T9("piavid",{})};
  11889. g.h.zE=function(){if(!this.wd()&&!g.J(this.playerState,128)&&this.videoData.L){if(this.videoData.L.T)vp(this);else{var T=Zx(this),Q=this.videoData;a:{var k=this.videoData.t6;if(T.T){for(var l=g.B(k),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.getInfo(),q=g.wC[L.video.quality];if((!T.L||L.video.quality!=="auto")&&q<=T.T){k=v;break a}}k=k[k.length-1]}else k=k[0]}Q.u9=k;VpI(this,T.reason,Rgf(this,this.videoData.u9))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.KA.D=
  11890. !1,this.playVideo()}};
  11891. g.h.lx=function(T,Q){if(this.wd()||g.J(this.playerState,128))return!1;var k,l=!((k=this.videoData.L)==null||!k.T);k=l&&Q?this.getCurrentTime()-this.Px():NaN;if(this.Hd.experiments.Wd("html5_record_audio_format_intent")){var v=this.Kc;if(v.qoe){v=v.qoe;var L=[T.MY.id,isNaN(k)?"m":"t"];g.of(v,g.qR(v.provider),"afi",L)}}if(l)return Q&&(l=RSI(this.KA),this.T9("aswh",{id:T.id,xtags:T.xtags,bh:l.toFixed(3)})),this.loader.setAudioTrack(T,k,Q),!0;if(QGT(this)){a:{Q=this.mediaElement.audioTracks();for(l=0;l<
  11892. Q.length;++l)if(k=Q[l],k.label===T.MY.getName()){if(k.enabled){Q=!1;break a}Q=k.enabled=!0;break a}Q=void 0}Q&&this.T9("hlsaudio",{id:T.id})}else{a:if(Q=this.videoData,Q.Y&&!Pj(Q.Y)||T===Q.Z6||!Q.t6||Q.t6.length<=0)Q=!1;else{l=g.B(Q.t6);for(k=l.next();!k.done;k=l.next()){k=k.value;if(!(k instanceof Kn)){Q=!1;break a}v=T.MY.getId();k.S&&(LE6(k.S,v),k.Xs=null)}Q.Z6=T;Q=!0}Q&&Lv(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.T9("hlsaudio",{id:T.id}))}return!0};
  11893. g.h.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
  11894. g.h.getAudioTrack=function(){if(QGT(this)){var T=kKy(this);if(T)return T}return this.videoData.getAudioTrack()};
  11895. g.h.IN=function(){return this.videoData.Y};
  11896. g.h.RQ=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.Cc()&&cv(this.videoData)){var T;(T=this.loader)!=null&&T.Jh()}};
  11897. g.h.VL=function(){if(NY(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var T;(T=this.loader)!=null&&T.Jh()}};
  11898. g.h.onPlayerRequestSent=function(T){this.nA.onPlayerRequestSent(T)};
  11899. g.h.wN=function(T){T=T===void 0?!1:T;if(this.loader){var Q=this.loader,k=Q.wN;var l=this.videoData;l=l.V("html5_ssdai_use_post_for_media")&&l.enableServerStitchedDai?!1:Kt(l)&&l.Xj&&!l.isAd();k.call(Q,l,T)}};
  11900. g.h.I0=function(T){T=T===void 0?!1:T;this.j6&&(this.logger.debug("remove media source"),$1I(this.j6),this.wN(T),this.j6.dispose(),this.j6=null)};
  11901. g.h.JH=function(){return this.j6};
  11902. g.h.lz=function(T,Q,k,l){function v(q){try{gW5(L,q,Q,k)}catch(Y){g.rB(Y),L.handleError(new g.ZK("fmt.unplayable",{msi:"1",ename:Y&&typeof Y==="object"&&"name"in Y?String(Y.name):void 0,trg:"setmediasrc"},1))}}
  11903. var L=this;Q=Q===void 0?!1:Q;k=k===void 0?!1:k;LJu(this,l===void 0?!1:l);this.j6=T;this.e1()&&Zl(this.j6)==="open"?v(this.j6):txC(this.j6,v)};
  11904. g.h.tX=function(T){this.logger.debug("onNeedKeyInfo");this.Si.set(T.initData,T);this.QU&&(this.QU.tX(T),this.V("html5_eme_loader_sync")||this.Si.remove(T.initData))};
  11905. g.h.sP=function(T){this.videoData.CH=g.NQ("auto",T,!1,"u");vp(this)};
  11906. g.h.uq=function(T){var Q=T.reason,k=T.T.info,l=T.token,v=T.videoId,L=this.Kc,q=this.videoData;if(k!==q.Y){var Y=!q.Y;q.Y=k;Q!=="m"&&Q!=="t"&&(Q=Y?"i":"a");var U=Q==="m"||Q==="t";this.Hd.experiments.Wd("html5_refactor_sabr_audio_format_selection_logging")?this.GJ=new BT5(q,k,Q,"",l,v):(Q=new BT5(q,k,Q,"",l),L.qoe&&(L=L.qoe,k=g.qR(L.provider),Bs5(L,k,Q)));this.publish("internalaudioformatchange",q,!Y&&U)}this.KA.uq(T.T.index)};
  11907. g.h.tC=function(T){this.publish("localmediachange",T)};
  11908. g.h.B5=function(T){T=T===void 0?{}:T;var Q;(Q=this.loader)==null||Q.B5(this.Hd,bO(this.videoData),T)};
  11909. g.h.hX=function(){return this.rJ.hX()};
  11910. g.h.Zm=function(T){this.RK(new g.ZK("staleconfig",{reason:T}))};
  11911. g.h.handleError=function(T){this.rJ.handleError(T)};
  11912. g.h.NI=function(){return this.rJ.NI()};
  11913. g.h.Fi=function(T){this.KA.Fi(T)};
  11914. g.h.s$=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;var k=this,l,v,L;return g.a(function(q){if(q.S==1){k.loader&&k.loader.t1();k.loader&&k.loader.wd()&&Yk(k);if(k.V("html5_enable_vp9_fairplay")&&k.bl()&&(l=k.videoData.T)!=null)for(var Y in l.T)l.T.hasOwnProperty(Y)&&(l.T[Y].T=null,l.T[Y].L=!1);k.LA(wf(k.playerState,2048));k.publish("newelementrequired");return T?g.c(q,gW(k),2):q.Ym(2)}k.videoData.Cc()&&((v=k.loader)==null?0:v.i9)&&!yE(k)&&((L=k.isAtLiveHead())&&nt(k.videoData)?k.seekTo(Infinity,
  11915. {I_:"videoPlayer_getNewElement"}):k.videoData.KY&&k.loader&&(Y=k.loader,Y.C_.Cc&&(Y.C_.KY||Y.C_.Y||Y.C_.isPremiere?(Y.seek(0,{I_:"loader_resetSqless"}),Y.videoTrack.C=!0,Y.audioTrack.C=!0,Y.videoTrack.N=!0,Y.audioTrack.N=!0):Vb(Y.C_)&&ZI(Y))));Q&&k.seekTo(0,{seekSource:105});g.J(k.playerState,8)&&k.playVideo();g.BT(q)})};
  11916. g.h.pX=function(T){this.T9("hgte",{ne:+T});this.videoData.C=!1;T&&this.s$();this.loader&&a_C(this.loader)};
  11917. g.h.xk=function(T){this.T9("newelem",{r:T});this.s$()};
  11918. g.h.pauseVideo=function(T){T=T===void 0?!1:T;if((g.J(this.playerState,64)||g.J(this.playerState,2))&&!T)if(g.J(this.playerState,8))this.LA(N3(this.playerState,4,8));else if(this.a9())Lv(this);else return;g.J(this.playerState,128)||(T?this.LA(wf(this.playerState,256)):this.LA(N3(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.iO(this.videoData)&&this.loader&&fv(this,!1)};
  11919. g.h.stopVideo=function(){this.pauseVideo();this.loader&&(fv(this,!1),this.loader.FJ())};
  11920. g.h.T0=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;if(this.e1()&&Q){var k;(k=this.mediaElement)==null||k.T0()}else{var l;(l=this.mediaElement)==null||l.stopVideo()}Gk(this);Yk(this);g.J(this.playerState,128)||(T?this.LA(df(df(wf(this.playerState,4),8),16)):this.LA(zN(this.playerState)));this.videoData.videoId&&this.Hd.Bd.remove(this.videoData.videoId)};
  11921. g.h.seekTo=function(T,Q){Q=Q===void 0?{}:Q;this.logger.debug(function(){return"SeekTo "+T+", "+JSON.stringify(Q)});
  11922. g.J(this.playerState,2)&&Lv(this);Q.cYO&&this.LA(wf(this.playerState,2048));Q.seekSource!==58&&Q.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||C_H(this.Kc,Q.seekSource);this.KA.seekTo(T,Q);this.lH.sync()};
  11923. g.h.n4=function(T){this.Rg.Y.S=(0,g.XY)();g.J(this.playerState,32)||(this.LA(wf(this.playerState,32,T==null?void 0:T.seekSource)),g.J(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.bC()};
  11924. g.h.jK=function(T){T=T==null?void 0:T.seekSource;g.J(this.playerState,32)?(this.LA(N3(this.playerState,16,32,T)),this.publish("endseeking")):g.J(this.playerState,2)||this.LA(wf(this.playerState,16,T));T=this.Rg.Y;var Q=this.videoData,k=this.playerState.isPaused();if(Q.clientPlaybackNonce&&!isNaN(T.T)){if(Math.random()<.01){k=k?"pbp":"pbs";var l={startTime:T.T};Q.B&&(l.cttAuthInfo={token:Q.B,videoId:Q.videoId});At("seek",l);g.NL({clientPlaybackNonce:Q.clientPlaybackNonce},"seek");isNaN(T.S)||dS("pl_ss",
  11925. T.S,"seek");dS(k,(0,g.XY)(),"seek")}T.reset()}};
  11926. g.h.yf=function(T){this.jK(T)};
  11927. g.h.BL=function(){this.publish("SEEK_COMPLETE")};
  11928. g.h.WV=function(T){var Q=this.nA,k=this.videoData.clientPlaybackNonce,l=this.playerType;if(T.scope===4){var v=T.type;if(v){var L=Q.Lc(),q=L.getVideoData().clientPlaybackNonce;l===1&&(q=k);if(l=ARu(Q,q)){if(k=l.getVideoData())T.writePolicy===2&&k.sabrContextUpdates.has(v)||(T.sendByDefault&&k.f_.add(v),k.sabrContextUpdates.set(v,T)),Q.V("html5_enable_t1_enf_on_sabr")&&(T=v===5,v=Uug(k.playerResponse),T?(T=v?1:0,LN(T,"m.p_",{}),WN("MBSTAT",T)):T=1,T===0&&Q.ZV.tj("onAbnormalityDetected"))}else L.T9("scuset",
  11929. {ncpf:"1",ccpn:q,crcpn:k})}else g.rB(Error("b/380308491: contextUpdateType is undefined"))}};
  11930. g.h.jG=function(){if(this.playerType===2)return this.nA.jG("")};
  11931. g.h.getCurrentTime=function(T){return this.KA.getCurrentTime(T===void 0?!1:T)};
  11932. g.h.Pm=function(){return this.KA.Pm()};
  11933. g.h.Jb=function(){return this.KA.Jb()};
  11934. g.h.Km=function(){return this.Jb()};
  11935. g.h.u8=function(){return this.KA.u8()};
  11936. g.h.getPlaylistSequenceForTime=function(T){return this.videoData.getPlaylistSequenceForTime(T-this.Px())};
  11937. g.h.bS=function(){var T=NaN;this.mediaElement&&(T=this.mediaElement.bS());return T>=0?T:this.getCurrentTime()};
  11938. g.h.xM=function(){var T;return((T=this.videoData.T)==null?0:T.xM)?this.videoData.T.xM(this.getCurrentTime()-this.Px()):this.mediaElement&&(T=this.mediaElement.Q9())&&(T=T.getTime(),!isNaN(T))?T/1E3+this.getCurrentTime():NaN};
  11939. g.h.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Px():this.EM()?this.EM():0};
  11940. g.h.rH=function(){var T=new NWg;if(this.loader){var Q=this.Hd.schedule,k=this.Hd.J3();k=k===void 0?!1:k;T.Pz=Q.hj;T.oS=Q.Jj;T.bandwidthEstimate=e4(Q);if(k){k=(Q.j.hx()*1E3).toFixed();var l=(Q.i9.hx()*1E3).toFixed(),v=WL(Q).toFixed(2),L=((Q.C.hx()||0)*1E9).toFixed(2),q=Q.L.hx().toFixed(0),Y=Q.e6.hx().toFixed(0),U=Q.D.percentile(.5).toFixed(2),R=Q.D.percentile(.92).toFixed(2),Z=Q.D.percentile(.96).toFixed(2),f=Q.D.percentile(.98).toFixed(2);Q.T?Q.T.reset():Q.T=new uc;Q.T.add(Q.xm);Q.T.add(Q.interruptions.length);
  11941. for(var G=0,m=Q.interruptions.length-1;m>=0;m--){var I=Q.interruptions[m];Q.T.add(I-G);G=I}G=0;for(m=Q.Y.length-1;m>=0;m--){I=Q.Y[m];var z=I.stamp/36E5;Q.T.add(z-G);G=z;Q.T.add(I.net/1E3);Q.T.add(I.max)}Q=Q.T.xo();T.T={ttr:k,ttm:l,d:v,st:L,bw:q,abw:Y,v50:U,v92:R,v96:Z,v98:f,"int":Q}}LWb(this.loader,T)}else this.mediaElement&&(T.Qh=hB(this.mediaElement));T.Pz=this.Pz;T.oS=this.oS;T.L=this.isAtLiveHead()&&this.isPlaying()?Okf(this):NaN;return T};
  11942. g.h.eN=function(T,Q){this.oS+=T;this.Pz+=Q};
  11943. g.h.KX=function(){return this.mediaElement?g.iO(this.videoData)?1:Vv(this.videoData)?this.isAtLiveHead()||this.iX()?1:this.KA.KX():this.mediaElement.KX():0};
  11944. g.h.yH=function(){var T=this.kC,Q=kk(T,"bandwidth"),k=kk(T,"bufferhealth"),l=kk(T,"livelatency"),v=kk(T,"networkactivity"),L=j8(T,"bandwidth"),q=j8(T,"bufferhealth"),Y=j8(T,"livelatency");T=j8(T,"networkactivity");var U=this.Ir(),R=U.droppedVideoFrames;U=U.totalVideoFrames;var Z=this.getCurrentTime();if(this.QU){var f="IT/"+(this.QU.T.getInfo()+"/"+cr(this.IH()));f+="/"+this.QU.getInfo()}else f="";var G=this.isGapless(),m=this.jZ(),I=this.BU(),z=g.R4(this),w=this.getPlayerState(),r=this.getPlaylistSequenceForTime(this.getCurrentTime());
  11945. a:{var A=0;var D="";if(this.Gx){if(this.Gx.l0){D="D,";break a}A=this.Gx.N5;D=this.Gx.Tb.substring(0,4)}A>0?(A="AD"+A+", ",D&&(A+=D+", "),D=A):D=""}return{I6:L,hS:q,currentTime:Z,vM:f,droppedVideoFrames:R,isGapless:G,jZ:m,lA:I,K0:Q,Gr:k,n0:l,uj:v,f0:Y,ea:T,N6:z,playerState:w,Z7:r,mw:D,totalVideoFrames:U}};
  11946. g.h.Tx=function(T){var Q={};if(T===void 0?0:T){Object.assign(Q,this.Kc.Tx());this.mediaElement&&(Object.assign(Q,this.mediaElement.Tx()),T=this.Ir(),Q.dvf=T.droppedVideoFrames,Q.tvf=T.totalVideoFrames);this.loader&&Object.assign(Q,this.loader.Tx());this.QU&&(Q.drm=JSON.stringify(this.QU.Tx()));Q.state=this.playerState.state.toString(16);g.J(this.playerState,128)&&(Q.debug_error=JSON.stringify(this.playerState.ge));this.Pc()&&(Q.prerolls=this.ZS.join(","));this.videoData.Fk&&(Q.ismb=this.videoData.Fk);
  11947. this.videoData.latencyClass!=="UNKNOWN"&&(Q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Q.is_mosaic=1;this.videoData.cotn&&(Q.is_offline=1,Q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.videoData.playerResponseCpn);this.nA.isOrchestrationLeader()&&(Q.leader=1);this.videoData.isLivePlayback&&
  11948. (this.videoData.T&&FG(this.videoData.T)&&(Q.segduration=FG(this.videoData.T)),T=this.KA,Q.lat=T.j?JOt(T.j.Y):0,Q.liveutcstart=this.videoData.liveUtcStartSeconds);Q.relative_loudness=this.videoData.uK.toFixed(3);if(T=g.R4(this))Q.optimal_format=T.video.qualityLabel;Q.user_qual=mk();Q.release_version=M[7]}Q.debug_videoId=this.videoData.videoId;return Q};
  11949. g.h.addCueRange=function(T){this.cB([T])};
  11950. g.h.removeCueRange=function(T){this.lH.oM([T])};
  11951. g.h.KJ=function(){var T=this.lH;if(T.yq.G().V("html5_sort_cueranges_on_update")&&!(T.TP().length<=0||T.wd())){var Q=T.T;Q.array.sort(Q.T)}T.sync()};
  11952. g.h.CX=function(T,Q){return this.lH.CX(T,Q)};
  11953. g.h.cB=function(T,Q){this.lH.fY(T,Q)};
  11954. g.h.Ec=function(T){this.lH.oM(T)};
  11955. g.h.TP=function(){return this.lH.TP()||[]};
  11956. g.h.pk=function(){return this.Zw};
  11957. g.h.Ax=function(){return this.visibility.Ax()};
  11958. g.h.YU=function(){this.mediaElement&&this.mediaElement.YU()};
  11959. g.h.mFd=function(){M4(this)};
  11960. g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
  11961. g.h.d9=function(){g.N5(this.PP)};
  11962. g.h.x2K=function(){this.bC();this.publish("onLoadProgress",this.KX())};
  11963. g.h.Xn=function(T){var Q=T.target.Cz();if(this.mediaElement&&this.mediaElement.Cz()&&this.mediaElement.Cz()===Q){sG5(this,T.type);switch(T.type){case "error":var k=St(this.mediaElement)||"",l=this.mediaElement.dw();if(k==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.T9("capchg",{msg:l}),this.s$(!0)):gW(this);return}if(this.mediaElement.hasError()&&GjH(this.rJ,k,{msg:l,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.SZ()===4){this.T0();Ul(this,"unplayable");
  11964. return}break;case "durationchange":k=this.mediaElement.getDuration();isFinite(k)&&(!this.j6||k>0)&&k!==1&&this.SR(k);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());nk6(this.lH);this.Kc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":CzT(this);this.publish("onLoadedMetadata");Uag(this);k=this.xM();this.videoData.Bt&&(this.videoData.Bt=k);break;case "loadstart":Uag(this);break;case "progress":case "suspend":this.S0.SF();
  11965. break;case "playing":this.Rg.Sl("plev");this.w4&&!yE(this)&&(this.w4=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{I_:"videoplayer_onPlaying"})));break;case "timeupdate":k=this.mediaElement&&!this.mediaElement.getCurrentTime();l=this.mediaElement&&this.mediaElement.Nm()===0;if(k&&(!this.Nr||l))return;this.Nr=this.Nr||!!this.mediaElement.getCurrentTime();Yug(this);this.bC();if(!this.mediaElement||this.mediaElement.Cz()!==Q)return;this.publish("onVideoProgress",
  11966. this.getCurrentTime());break;case "waiting":if(this.mediaElement.nX().length>0&&this.mediaElement.Q8().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Nm()>2||!this.mediaElement.isSeeking()&&y4(this.mediaElement.Q8(),this.mediaElement.getCurrentTime()))&&(k=this.mediaElement.Tx(),k.bh=hB(this.mediaElement).toFixed(3),this.T9("uwe",k));break;case "resize":CzT(this);
  11967. this.videoData.S&&this.videoData.S.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.ZT&&g.J(this.playerState,8)&&!g.J(this.playerState,1024)&&this.getCurrentTime()===0&&g.mp){Ul(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Cz()===Q){zSb(this.KA,T);this.publish("videoelementevent",T);Q=this.playerState;l=this.V3;var v=this.mediaElement;k=this.videoData.clientPlaybackNonce;if(!g.J(Q,128)){var L=Q.state;
  11968. v=v?v:T.target;var q=v.getCurrentTime();if(!g.J(Q,64)||T.type!=="ended"&&T.type!=="pause"){var Y=v.getDuration();Y=v.isEnded()||q>1&&Math.abs(q-Y)<1.1;var U=T.type==="pause"&&v.isEnded();q=T.type==="ended"||T.type==="waiting"||T.type==="timeupdate"&&!g.J(Q,4)&&!PV(l,q);if(U||Y&&q)v.D2()>0&&v.Cz()&&(L=14);else switch(T.type){case "error":St(v)&&(L|=128);break;case "pause":g.J(Q,256)?(L^=256)||(L=64):g.J(Q,32)||g.J(Q,2)||g.J(Q,4)||(L=4,g.J(Q,1)&&g.J(Q,8)&&(L|=1));break;case "playing":q=L;L=(L|8)&-1093;
  11969. q&4?(L|=1,BM(l,v,!0)):PV(l,v.getCurrentTime())&&(L&=-2);g.J(Q,1)&&BM(l,v)&&(L|=1);break;case "seeking":L|=16;g.J(Q,8)&&(L|=1);L&=-3;break;case "seeked":L&=-17;BM(l,v,!0);break;case "waiting":g.J(Q,2)||(L|=1);BM(l,v);break;case "timeupdate":q=g.J(Q,16),Y=g.J(Q,4),(g.J(Q,8)||q)&&!Y&&PV(l,v.getCurrentTime())&&(L=8),BM(l,v)&&(L|=1)}}l=L;L=null;l&128&&(L=T.target,v=St(L),q=1,v?(v==="capability.changed"&&(q=2),Y="GENERIC_WITHOUT_LINK",U=L.Tx(),U.mediaElem="1",U.trg="melem",/AUDIO_RENDERER/.test(L.dw())&&
  11970. (Y="HTML5_AUDIO_RENDERER_ERROR"),L={errorCode:v,errorMessage:g.Es[Y]||"",k9:Y,sT:RE(U),sN:q,cpn:Q.ge?Q.ge.cpn:""}):L=null,L&&(L.cpn=k));Q=zN(Q,l,L)}!g.J(this.playerState,1)&&g.J(Q,1)&&hgX(this,"evt"+T.type);this.LA(Q)}}};
  11971. g.h.Bd_=function(T){T=T.T.availability==="available";T!==this.Zw&&(this.Zw=T,this.publish("airplayavailabilitychange"))};
  11972. g.h.Nde=function(){var T=(0,g.XY)(),Q=this.mediaElement.Ax();this.T9("airplay",{ia:Q});!Q&&!isNaN(this.Wp)&&T-this.Wp<2E3||(this.Wp=T,Q!==this.Ax()&&(T=this.visibility,T.T!==Q&&(T.T=Q,T.H1()),this.T9("airplay",{rbld:Q}),this.yV()),this.publish("airplayactivechange"))};
  11973. g.h.Ky=function(T){if(this.loader){var Q=this.loader,k=Q.L,l=Q.getCurrentTime(),v=Date.now()-k.D;k.D=NaN;k.T9("sdai",{adfetchdone:T,d:v});T&&!isNaN(k.C)&&k.S!==3&&Vm(k.loader,l,k.C,k.B);k.policy.S?k.N=NaN:k.Y=NaN;i$(k,4,k.S===3?"adfps":"adf");Tj(Q)}};
  11974. g.h.KO=function(){g.m6(this.Y0);this.X8.stop();this.videoData.qO=!0;this.Hd.Ct=!0;this.Hd.h3=0;var T=this.rJ;if(T.videoData.S){var Q=T.FB.N,k=T.videoData.S.yR;Q.Y.has(k)&&(Q.Y.delete(k),Q.S=!0)}T.T.stop();this.lG();g.J(this.playerState,8)&&this.LA(df(this.playerState,65));this.HJ=!1;T=this.Kc;T.T&&qlg(T.T);T.S&&(T=T.S,Q=g.qR(T.provider),T.T<0&&(T.T=Q,T.delay.start()),T.S=Q,T.Y=Q);g.Ez(this.qd);this.publish("playbackstarted");(T=g.jA("yt.scheduler.instance.clearPriorityThreshold"))?T():TB(0)};
  11975. g.h.lG=function(){var T=this.nA.mF(),Q={},k={};!bU("pbs",this.Rg.timerName)&&GC.measure&&GC.getEntriesByName&&(GC.getEntriesByName("mark_nr")[0]?grI("mark_nr"):grI());T.videoId&&(Q.videoId=T.videoId);T.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(Q.clientPlaybackNonce=T.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(k.isPausedOnLoad=!0);k.itag=T.S?Number(T.S.itag):-1;T.A9&&(k.preloadType=String(this.zr?2:1));Q.liveStreamMode=x__[JL(T)];Q.playerInfo=k;this.Rg.infoGel(Q);
  11976. if(this.loader){T=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(T.L&&(Q=window.performance.getEntriesByName(T.L),Q.length&&(Q=Q[0],T.tick("vri",Q.fetchStart),T.tick("vdns",Q.domainLookupEnd),T.tick("vreq",Q.requestStart),T.tick("vrc",Q.responseEnd))),T.S&&(Q=window.performance.getEntriesByName(T.S),Q.length&&(Q=Q[0],T.tick("ari",Q.fetchStart),T.tick("adns",Q.domainLookupEnd),T.tick("areq",Q.requestStart),T.tick("arc",Q.responseEnd))));T=T.ticks;for(var l in T)T.hasOwnProperty(l)&&
  11977. this.Rg.tick(l,T[l])}};
  11978. g.h.bC=function(T){var Q=this;T=T===void 0?!1:T;if(this.mediaElement&&this.videoData){Zk5(this.KA,this.isPlaying());var k=this.getCurrentTime();if(this.loader&&(g.J(this.playerState,4)&&g.iO(this.videoData)||g.J(this.playerState,32)&&cv(this.videoData)||McI(this.loader,k),this.V("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var l;this.T9("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(l=this.loader)==null?void 0:l.currentTime},!0)}k>
  11979. 5&&(this.KA.L=k);(l=g.Ve())?g.P0.wC(this.zT):g.GO(this.zT);var v=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!v||sU(this.videoData))&&!g.J(this.playerState,128)){var L=function(){if(Q.mediaElement&&!g.J(Q.playerState,128)){Q.Hd.J3()&&sG5(Q,"pfx");var q=Q.getCurrentTime();Q.V("html5_buffer_underrun_transition_fix")&&(q-=Q.Px());var Y=hB(Q.mediaElement),U=g.J(Q.playerState,8),R=PV(Q.V3,q),Z=Vx5(Q.V3,q,(0,g.XY)(),Y);U&&R?Q.LA(df(Q.playerState,1)):U&&Z?(U=Q.getDuration(),R=nt(Q.videoData),
  11980. U&&Math.abs(U-q)<1.1?(Q.T9("setended",{ct:q,bh:Y,dur:U,live:R}),Q.mediaElement.t_()?(Q.logger.debug("seek to 0 because of looping"),Q.seekTo(0,{I_:"videoplayer_loop",seekSource:37})):Q.fn()):(Q.playerState.isBuffering()||hgX(Q,"progress_fix"),Q.LA(wf(Q.playerState,1)))):(U&&!R&&!Z&&q>0&&(U=(Date.now()-Q.FC)/1E3,R=Q.getDuration(),q>R-1&&Q.T9("misspg",{t:q.toFixed(2),d:R.toFixed(2),r:U.toFixed(2),bh:Y.toFixed(2)})),Q.playerState.isPaused()&&Q.playerState.isBuffering()&&hB(Q.mediaElement)>5&&Q.LA(df(Q.playerState,
  11981. 1)));Q.bC()}};
  11982. this.mediaElement.nX().length===0?this.zT=l?g.P0.oD(L,100):g.Zq(L,100):this.zT=l?g.P0.oD(L,500):g.Zq(L,500)}this.videoData.Ah=k;!T&&this.isPlaying()&&Zmg(this);nOu(this.BG,this.lK,this.T_(),this.isBackground())&&vp(this);this.publish("progresssync",T);v&&sU(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}};
  11983. g.h.X2=function(){this.NL("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
  11984. g.h.BU=function(){return this.Kc.BU()};
  11985. g.h.Jz=function(){return this.loader?this.loader.Jz():e4(this.Hd.schedule,!0)};
  11986. g.h.LA=function(T){if(!g.AB(this.playerState,T)){this.logger.debug(function(){return"Setting state "+T.toString()});
  11987. var Q=new g.YX(T,this.playerState);this.playerState=T;Suy(this);var k=!this.x0.length;this.x0.push(Q);var l=this.mediaElement&&this.mediaElement.isSeeking();g.RY(Q,1)&&this.loader&&cyT(this.loader);l=Q.oldState.state===8&&!l;g.RY(Q,1)&&l&&g.J(this.playerState,8)&&!g.J(this.playerState,64)&&this.loader&&(DfX(this.loader),this.mediaElement&&hB(this.mediaElement)>=5&&avT(this.BG,this.lK)&&vp(this));(l=g.jj(this.Hd.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.J(T,1)&&(g.J(T,8)||g.J(T,
  11988. 16))?this.GL.start(l):this.GL.stop();(Ue(Q,8)<0||g.RY(Q,1024))&&this.X8.stop();!g.RY(Q,8)||this.videoData.qO||g.J(Q.state,1024)||this.X8.start();g.J(Q.state,8)&&Ue(Q,16)<0&&!g.J(Q.state,32)&&!g.J(Q.state,2)&&this.playVideo();g.J(Q.state,2)&&Vv(this.videoData)&&(this.SR(this.getCurrentTime()),this.bC(!0));g.RY(Q,2)&&(this.Hr(!0),this.Hd.J3()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this.videoData)&&this.videoData.T&&(l={minst:""+this.videoData.T.Jp,cminst:""+(this.videoData.T.SY()+
  11989. this.Px()),maxst:""+this.videoData.T.mK,hts:""+this.videoData.T.qO,cmaxst:""+(this.videoData.T.EM()+this.Px())},this.T9("sabrSeekableBoundaries",l)));g.RY(Q,128)&&this.T0();this.videoData.T&&this.videoData.isLivePlayback&&!this.M0&&(Ue(Q,8)<0?aly(this.videoData.T):g.RY(Q,8)&&this.videoData.T.resume());UDb(this.KA,Q);BWC(this.Kc,Q);if(k&&!this.wd())try{for(var v=g.B(this.x0),L=v.next();!L.done;L=v.next()){var q=L.value;K8t(this.lH,q);this.publish("statechange",q)}}finally{this.x0.length=0}}};
  11990. g.h.UP=function(){this.Rg.tick("qoes")};
  11991. g.h.Ba=function(){this.KA.Ba()};
  11992. g.h.ut=function(T,Q,k,l){a:{var v=this.rJ;l=l===void 0?"LICENSE":l;k=k.substring(0,256);var L=fu(Q);T==="drm.keyerror"&&this.QU&&this.QU.S.keys.length>1&&v.Y<96&&(T="drm.sessionlimitexhausted",L=!1);var q=v.FB.experiments.Wd("html5_retry_on_drm_unavailable"),Y=v.FB.experiments.Wd("html5_retry_on_drm_key_error"),U=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(q&&T==="drm.unavailable"||Y&&T==="drm.keyerror"&&!k.match(U))v.RK("qoe.restart",{retryOnDrmError:1,e:T,detail:k}),v.yq.s$(!0);else{if(L)if(v.videoData.S&&
  11993. v.videoData.S.video.isHdr())Cg5(v,T);else{if(v.yq.NL(T,Q,l,k),R2t(v,{detail:k}))break a}else v.RK(T,{detail:k});T==="drm.sessionlimitexhausted"&&(v.T9("retrydrm",{sessionLimitExhausted:1}),v.Y++,ILJ(v.yq))}}};
  11994. g.h.kg9=function(){var T=this,Q=g.jj(this.Hd.experiments,"html5_license_constraint_delay"),k=TL();Q&&k?(Q=new g.FA(function(){T.zE();M4(T)},Q),g.P(this,Q),Q.start()):(this.zE(),M4(this))};
  11995. g.h.qg=function(T){this.publish("heartbeatparams",T)};
  11996. g.h.e9=function(T){this.T9("keystatuses",PYf(T));var Q="auto",k=!1;this.videoData.S&&(Q=this.videoData.S.video.quality,k=this.videoData.S.video.isHdr());a:{switch(Q){case "highres":case "hd2880":Q="UHD2";break;case "hd2160":case "hd1440":Q="UHD1";break;case "hd1080":case "hd720":Q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Q="SD";break;default:Q="";break a}k&&(Q+="HDR")}Q=h2(T)?sF(T,Q):T.Y.includes(Q);if(this.V("html5_enable_vp9_fairplay")){if(k)if(T.C){var l;if((l=
  11997. this.QU)==null?0:Ym(l.T))if((k=this.QU)==null)k=0;else{for(var v=l=void 0,L=g.B(k.S.values()),q=L.next();!q.done;q=L.next())q=q.value,l||(l=t3I(q,"SD")),v||(v=t3I(q,"AUDIO"));k.b8({sd:l,audio:v});k=l==="output-restricted"||v==="output-restricted"}else k=!Q;if(k){this.T9("drm",{dshdr:1});Cg5(this.rJ);return}}else{this.videoData.HM||(this.videoData.HM=!0,this.T9("drm",{dphdr:1}),this.s$(!0));return}var Y;if((Y=this.QU)==null?0:Ym(Y.T))return}else if(Y=T.C&&Q,k&&!Y){Cg5(this.rJ);return}Q||sF(T,"AUDIO")&&
  11998. sF(T,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),T=PYf(T),this.d4?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.NL("drm.keyerror",2,void 0,"info."+T)):(this.d4=!0,this.RK(new g.ZK("qoe.restart",Object.assign({},{retrydrm:1},T))),vp(this),ILJ(this)))};
  11999. g.h.F1K=function(){if(!this.videoData.qO&&this.mediaElement&&!this.isBackground()){var T="0";this.mediaElement.Nm()>0&&hB(this.mediaElement)>=5&&this.videoData.L&&this.videoData.L.T&&(this.LA(wf(this.playerState,1)),hgX(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),T="1");Suy(this);var Q=this.videoData.L;T={restartmsg:T,mfmt:!d4(this.videoData),mdrm:!(!(Q&&Q.videoInfos&&Q.videoInfos.length&&Q.videoInfos[0].jY)||this.QU),mfmtinfo:!this.videoData.S,prerolls:this.Pc()?this.ZS.join(","):
  12000. "0"};if(this.QU){Q=this.QU;if(Q.S.size<=0){var k="ns;";Q.D||(k+="nr;");Q=k+="ql."+Q.L.length}else Q=PYf(Q.S.values().next().value),Q=RE(Q);T.drmp=Q}var l;Object.assign(T,((l=this.loader)==null?void 0:l.Tx())||{});var v;Object.assign(T,((v=this.mediaElement)==null?void 0:v.Tx())||{});this.Kc.RK("qoe.start15s",RE(T));this.publish("loadsofttimeout")}};
  12001. g.h.SR=function(T){this.videoData.lengthSeconds!==T&&(this.videoData.lengthSeconds=T,M4(this))};
  12002. g.h.Hr=function(T,Q){var k=this;T=T===void 0?!1:T;if(!this.KK)if(bU("att_s","player_att")||cP("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var v,L,q,Y;return g.a(function(U){switch(U.S){case 1:if(!(v=T)){U.Ym(2);break}return g.c(U,g.xUC(),3);case 3:v=!U.T;case 2:if(v)return U.return();g.z5(U,4);L=wpH(k.Kc);if(!L)throw Error();q={};return g.c(U,g.K45((q.cpn=k.videoData.clientPlaybackNonce,q.encryptedVideoId=k.videoData.videoId||"",q),3E4),6);case 6:Y=U.T;if(k.KK)throw Error();
  12003. if(!Y.challenge)throw g.rB(Error("Not sending attestation ping; no attestation challenge string")),Error();k.KK=!0;var R=[Y.challenge];Y.error?R.push("r1c="+Y.error):Y.webResponse&&R.push("r1a="+Y.webResponse);var Z;((Z=Y.adblockReporting)==null?void 0:Z.reportingStatus)!==void 0&&R.push("r6a="+Y.adblockReporting.reportingStatus);var f;((f=Y.adblockReporting)==null?void 0:f.broadSpectrumDetectionResult)!==void 0&&R.push("r6b="+Y.adblockReporting.broadSpectrumDetectionResult);L(R.join("&"));cP("att_f",
  12004. void 0,"player_att");g.d6(U,0);break;case 4:g.by(U),cP("att_e",void 0,"player_att"),g.BT(U)}})})().then(function(){Q==null||Q()});
  12005. else{var l=new g.$ug(this.videoData);if("c1a"in l.wA&&!g.jX.isInitialized()){cP("att_wb",void 0,"player_att");this.zF===2&&Math.random()<.01&&g.rB(Error("Botguard not available after 2 attempts"));if(T)return;if(this.zF<5){g.Ez(this.gg);this.zF++;return}}(l=g.Jjb(l))?(cP("att_f",void 0,"player_att"),Xpg(this.Kc,l),this.KK=!0):cP("att_e",void 0,"player_att")}};
  12006. g.h.WG=function(T){T=T===void 0?!1:T;return nt(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.iX()||g.iO(this.videoData))?this.getCurrentTime():this.EM(T)};
  12007. g.h.r_=function(){return this.SY()};
  12008. g.h.EM=function(T){return this.KA.EM(T===void 0?!1:T)};
  12009. g.h.SY=function(){return this.KA.SY()};
  12010. g.h.Px=function(){return this.KA?this.KA.Px():0};
  12011. g.h.getStreamTimeOffset=function(){return this.KA?this.KA.getStreamTimeOffset():0};
  12012. g.h.TG=function(){var T=0;this.Hd.V("web_player_ss_media_time_offset")&&(T=this.getStreamTimeOffset()===0?this.Px():this.getStreamTimeOffset());return T};
  12013. g.h.setPlaybackRate=function(T){var Q;this.playbackRate!==T&&wVT(this.BG,(Q=this.videoData.L)==null?void 0:Q.videoInfos)&&(this.playbackRate=T,vp(this));this.playbackRate=T;this.mediaElement&&this.mediaElement.setPlaybackRate(T)};
  12014. g.h.getPlaybackRate=function(){return this.playbackRate};
  12015. g.h.getPlaybackQuality=function(){var T="unknown";if(this.videoData.S&&(T=this.videoData.S.video.quality,T==="auto"&&this.mediaElement)){var Q=this.I9();Q&&Q.videoHeight>0&&(T=XL(Q.videoWidth,Q.videoHeight))}return T};
  12016. g.h.isHdr=function(){return!!(this.videoData.S&&this.videoData.S.video&&this.videoData.S.video.isHdr())};
  12017. g.h.sendVideoStatsEngageEvent=function(T,Q){var k=this.Kc;k.T?(k=cV(k.T,"engage"),k.hj=T,k.send(Q)):Q&&Q()};
  12018. g.h.Cd=function(T){return this.Kc.Cd(T)};
  12019. g.h.isAtLiveHead=function(T,Q){Q=Q===void 0?!1:Q;return nt(this.videoData)&&(this.Oy||Q)?this.KA.isAtLiveHead(T):!1};
  12020. g.h.As=function(){var T=this.EM(),Q=this.getCurrentTime(),k;(k=!nt(this.videoData))||(k=this.KA,k=!(k.T&&k.T.L));return k||this.iX()||isNaN(T)||isNaN(Q)?0:Math.max(0,T-Q)};
  12021. g.h.jS=function(T){(this.Oy=T)||this.X8.stop();this.videoData.T&&(T?this.videoData.T.resume():aly(this.videoData.T));if(this.loader){var Q=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.ME()&&this.videoData.isLivePlayback;T&&!Q?this.loader.resume():fv(this,!0)}g.J(this.playerState,2)||T?g.J(this.playerState,512)&&T&&this.LA(df(this.playerState,512)):this.LA(wf(this.playerState,512));Q=this.Kc;Q.qoe&&(Q=Q.qoe,g.of(Q,g.qR(Q.provider),"stream",[T?"A":"I"]))};
  12022. g.h.GA=function(T){this.Kc.RK("player.exception",RE({n:T.name,m:T.message}))};
  12023. g.h.RD=T5(22);g.h.aM=T5(51);g.h.qm=function(T){this.Kc.qm(T)};
  12024. g.h.Sy=function(T){this.Kc.Sy(T)};
  12025. g.h.Qt=function(T){this.Kc.Qt(T)};
  12026. g.h.h9=T5(28);g.h.Lz=T5(34);g.h.wp=function(T){this.Kc.wp(T)};
  12027. g.h.pn=function(T,Q,k,l){this.Kc.pn(T,Q,k,l)};
  12028. g.h.qr=function(){this.T9("hidden",{},!0)};
  12029. g.h.Ir=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
  12030. g.h.qG=function(){return this.loader?this.loader.qG():!0};
  12031. g.h.setLoop=function(T){this.loop=T;this.mediaElement&&!g.G4(this.Hd)&&this.mediaElement.setLoop(T)};
  12032. g.h.t_=function(){return this.mediaElement&&!g.G4(this.Hd)?this.mediaElement.t_():this.loop};
  12033. g.h.eU=function(T){this.T9("timestamp",{o:T.toString()});this.KA.eU(T)};
  12034. g.h.z_=function(T){this.Rg.tick(T)};
  12035. g.h.Uh=function(T){return this.Rg.Uh(T)};
  12036. g.h.Sl=function(T){this.Rg.Sl(T)};
  12037. g.h.T9=function(T,Q,k){this.Kc.T9(T,Q,k===void 0?!1:k)};
  12038. g.h.HW=function(T,Q,k){this.Kc.T9(T,Q,k===void 0?!1:k)};
  12039. g.h.RK=function(T){this.Kc.RK(T.errorCode,RE(T.details));T=T.errorCode;if(this.videoData.isLivePlayback&&(T==="qoe.longrebuffer"||T==="qoe.slowseek")||T==="qoe.restart"){T=this.loader?mxC(this.loader.videoTrack):{};var Q,k;this.T9("lasoe",Object.assign(this.loader?mxC(this.loader.audioTrack):{},(Q=this.j6)==null?void 0:(k=Q.T)==null?void 0:k.tM()));var l,v;this.T9("lvsoe",Object.assign(T,(l=this.j6)==null?void 0:(v=l.S)==null?void 0:v.tM()))}if(this.V("html5_log_centralized_player_time")){var L;this.T9("sabrSeekRefactorCmt",
  12040. {cmt:this.getCurrentTime(),loaderCmt:(L=this.loader)==null?void 0:L.currentTime})}};
  12041. g.h.PJ=function(T,Q,k){this.Kc.PJ(T,Q,k)};
  12042. g.h.sz=function(T,Q,k,l,v,L,q,Y){var U;if((U=this.videoData.T)!=null&&U.isLive){var R=Q.playerType===2?Q:T,Z=T.videoData.videoId,f=Q.videoData.videoId;if(Z&&f){U=this.Kc;if(U.qoe){var G=U.qoe,m=T.cpn,I=Q.cpn,z=R.videoData.pG,w=G.provider.videoData.clientPlaybackNonce,r=G.provider.videoData.videoId,A=I!==w&&f!==r;w=m!==w&&Z!==r;G.reportStats();G.adCpn&&G.adCpn!==m||(G.adCpn=w?m:"",G.Tc=w?Z:"",G.adFormat=w?z:void 0,zqt(G,L?4:v?2:0,I,f,l),G.reportStats(),G.adCpn=A?I:"",G.Tc=A?f:"",G.adFormat=A?z:void 0,
  12043. zqt(G,L?5:v?3:1,m,Z,k),G.reportStats())}k=T.cpn;if(U.L.has(k)){if(v=U.L.get(k),ug(v,!0).send(),af(v),k!==U.provider.videoData.clientPlaybackNonce){Zvg(v);var D;(D=U.T)==null||gku(D);U.L.delete(k)}}else U.Bl=U.provider.videoData.clientPlaybackNonce,U.Bl&&U.T&&(U.L.set(U.Bl,U.T),ug(U.T).send(),af(U.T));D=Q.cpn;R=R.videoData;l-=this.TG();if(U.L.has(D)){l=U.L.get(D);var K=l.L&&isNaN(l.N)?Dv(l):NaN;l=R5C(l,!1);isNaN(K)||(l.C=K);l.send()}else l=d4g(U,U.provider,R,l),U.L.set(D,l),fxg(l,new g.YX(wf(new g.Cd,
  12044. 8),new g.Cd)),qlg(l),(K=U.T)==null||af(K);U.Bl=D;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(U=this.Rg,K=Q.cpn,l=this.videoData.clientPlaybackNonce,Q=Q.videoData,T=(T.cpn===l?"video":"ad")+"_to_"+(K===l?"video":"ad"),T!=="video_to_ad"){l=T==="ad_to_video"?void 0:Q;R=l==null?void 0:l.xr;D={};if(Q==null?0:Q.B)D.cttAuthInfo={token:Q.B,videoId:Q.videoId};q&&(D.startTime=q);At(T,D);var O,E,e;q={targetVideoId:(O=Q==null?void 0:Q.videoId)!=null?O:"empty_video",targetCpn:K,adVideoId:(E=
  12045. l==null?void 0:l.videoId)!=null?E:"empty_video",adClientPlaybackNonce:(e=R==null?void 0:R.cpn)!=null?e:l==null?void 0:l.clientPlaybackNonce};R&&(q.adBreakType=R.adBreakType,q.adType=R.adType);g.NL(q,T);zx(U,Y,T)}}else O=this.Rg,e=this.videoData.clientPlaybackNonce,E=Q.videoData,e=(T.cpn===e?"video":"ad")+"_to_"+(Q.cpn===e?"video":"ad"),T={},E.B&&(T.cttAuthInfo={token:E.B,videoId:E.videoId}),q&&(T.startTime=q),At(e,T),g.NL({targetVideoId:E.videoId,targetCpn:Q.cpn,isSsdai:!0},e),q||zx(O,Y,e)}}else this.logger.T(360717806,
  12046. "SSTEvent for nonSS")};
  12047. g.h.ri=function(){var T=this.nA,Q=T.l1;T.l1=[];return Q};
  12048. g.h.Md=function(T){this.videoData.p9=!0;this.RK(new g.ZK("sabr.fallback",T));this.s$(!0)};
  12049. g.h.XW=function(T,Q){this.videoData.IP=!0;if(Q===void 0||Q)this.RK(new g.ZK("qoe.restart",T)),this.s$(!0)};
  12050. g.h.r6=function(T){this.T9("sdai",{aftimeout:T});this.RK(new g.ZK("ad.fetchtimeout",{timeout:T}))};
  12051. g.h.JU=function(T,Q){this.T9("timelineerror",T);T=new g.ZK("dai.timelineerror",T);Q?this.NL("dai.timelineerror",1,"RETRYABLE_ERROR",RE(T.details)):this.RK(T)};
  12052. g.h.jO=function(){return g.qR(this.Kc.provider)};
  12053. g.h.getPlayerSize=function(){return this.GQ.getPlayerSize()};
  12054. g.h.J9=function(){return this.GQ.J9()};
  12055. g.h.eZ=function(){return this.Rg};
  12056. g.h.Z_=function(){return this.nA.Z_()};
  12057. g.h.getVolume=function(){return this.nA.getVolume()};
  12058. g.h.m_=function(){return this.nA.m_()};
  12059. g.h.isMuted=function(){return this.nA.isMuted()};
  12060. g.h.Gc=function(){return this.nA.Gc()};
  12061. g.h.gK=function(){this.M0=!0};
  12062. g.h.V=function(T){return this.Hd.V(T)};
  12063. g.h.N8=function(T,Q,k,l,v){this.T9("xvt",{m:T,g:Q?1:0,tt:k?1:0,np:l?1:0,c:v})};
  12064. g.h.tU=function(){var T;(T=this.loader)==null||T.resume()};
  12065. g.h.ME=function(){return g.CW(this.ZS,"ad")};
  12066. g.h.EY=function(){var T=this.getCurrentTime(),Q=T-this.Px();var k=this.mediaElement?V4(this.mediaElement.Q8()):0;k=Math.floor(Math.max(k-Q,0))+100;var l;return((l=this.loader)==null?0:l.EY(Q,k))?(this.T9("sdai",{skipad:1,ct:Q.toFixed(3),adj:k.toFixed(3)}),cv(this.videoData)&&this.loader.seek(Q+k,{seekSource:89,I_:"videoplayer_skipServerStitchedAd"}),waX(this.KA,T),!0):!1};
  12067. g.h.J3=function(){return this.Hd.J3()};
  12068. g.h.WH=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.PK||"";this.nA.KT();return this.Hd.vk||""};
  12069. g.h.yZ=function(){if(this.videoData.videoId)return this.videoData.W9};
  12070. g.h.Dg=function(){return this.videoData.videoId};
  12071. g.h.aN=function(){return this.nA.fH};
  12072. g.h.NC=function(){return this.HJ};
  12073. g.h.pS=function(){return this.nA.pS()};
  12074. g.h.R3=function(T,Q,k){this.LA(wf(this.playerState,16,k));this.KA.R3(T,Q)};
  12075. g.h.prefetchKeyPlay=function(){};
  12076. g.h.Jd=function(){this.KA.Jd()};
  12077. g.h.Ng=function(T,Q){var k=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.nA.Ng(T,Q,k)};
  12078. g.h.aQ=function(T,Q){this.Kc.aQ(T,Q)};
  12079. g.h.J5=function(){return this.Kc.J5()};
  12080. g.h.jX=function(){return this.videoData.hQ};
  12081. g.h.jZ=function(){return this.nA.jZ()};
  12082. g.h.Mw=function(){return this.nA.Mw(this)};
  12083. g.h.aO=function(){this.vu=!0};
  12084. g.h.NG=function(T){var Q;(Q=this.loader)==null||Q.NG(T)};g.S(BuC,GQ);g.S(m8,zQ);m8.prototype.T=function(T){T&&Xe(this,this.U.getLoopVideo());this.U.logVisibility(this.element,T)};
  12085. m8.prototype.logClick=function(){this.U.logClick(this.element)};
  12086. m8.prototype.onLoopChange=function(T){Xe(this,T)};
  12087. m8.prototype.S=function(T){this.U.setLoopVideo(T)};g.S(zgb,GQ);g.S(X1J,GQ);g.h=X1J.prototype;g.h.seekToChapterWithAnimation=function(T){var Q=this;if(g.aa(this.api)&&!(T<0)){var k=this.api.getVideoData(),l=k.NK;if(l&&T<l.length){l=g.B(l);for(var v=l.next();!v.done;v=l.next())if(v=v.value,v.index===T){w1X(this,v.startTime,v.title);return}}this.V("web_key_moments_markers")&&(k=k.xj)&&T<k.length&&k.forEach(function(L,q){q===T&&w1X(Q,L.timeRangeStartMillis,L.title)})}};
  12088. g.h.seekToTimeWithAnimation=function(T,Q){g.aa(this.api)&&w1X(this,T,Q)};
  12089. g.h.setMacroMarkers=function(T,Q){Q={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:Q}}}}}};T=T.getVideoData();T.getWatchNextResponse();T&&T.getWatchNextResponse()==null&&(hL(T,{raw_watch_next_response:Q}),T.publish("dataupdated"))};
  12090. g.h.changeMarkerVisibility=function(T,Q,k){var l=this.api.getVideoData();if(l){var v=!1;if(T)for(T=g.B(Q),Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var L=l.K_;if(L&&!L.includes(Q))switch(k){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":NuI(Q,l)||(v=!0,L=void 0,(L=l.K_)==null||L.push(Q));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":L.length===0&&(v=!0,L=void 0,(L=l.K_)==null||L.push(Q));break;default:v=!0,L=void 0,(L=l.K_)==null||L.push(Q)}}else for(k=
  12091. g.B(Q),T=k.next();!T.done;T=k.next())T=T.value,l.visibleOnLoadKeys.includes(T)||g.zv(l.K_,T)&&(v=!0);v&&this.api.publish("updatemarkervisibility")}};
  12092. g.h.isSameMarkerTypeVisible=function(T){var Q=this.api.getVideoData();return Q?NuI(T,Q):!1};g.S(AGg,GQ);AGg.prototype.nN=function(){var T=this.api.getPlaybackRate(),Q;if(Q=this.api.getVideoData()){var k=Q.adFormat==="17_8",l,v=((l=Q.i_)==null?void 0:a2(l,5))===8;Q=Q.isAd()&&(k||v)}else Q=!1;Q?(T!==1&&(this.T=T),this.api.setPlaybackRate(1)):this.T!==null&&(this.api.setPlaybackRate(this.T),this.T=null)};g.S(I4,GQ);
  12093. I4.prototype.updateMetadata=function(){var T=this,Q=this.api.getVideoData();if(Q!=null&&Q.Hk()){var k=this.api.G(),l=[],v="";if(!k.qO){var L=Da6(this);g.uP(k)&&L?(l=aLX(L.thumbnailDetails),L.album&&(v=On(L.album))):l=[{src:Q.rO("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var q;((q=this.api.getVideoData())==null?0:vS5(q))&&rGb(this);bmg(this);cGu(this);navigator.mediaSession.metadata=new MediaMetadata({title:Q.title,artist:Q.author,artwork:l,album:v});k=Q=null;g.FZ(this.api)&&(Q=function(){T.api.nextVideo()},
  12094. k=function(){T.api.previousVideo()});
  12095. hO("nexttrack",Q);hO("previoustrack",k)}};
  12096. I4.prototype.EK=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var T=g.B("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),Q=T.next();!Q.done;Q=T.next())hO(Q.value,null);var k;((k=this.api.getVideoData())==null?0:vS5(k))&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});GQ.prototype.EK.call(this)};g.S(sl,GQ);sl.prototype.setCompositeVideoOverlayRendererComponent=function(T){this.L&&(this.L.remove(),g.Lb(this.L,"ytp-composite-video-overlay-renderer"),this.L=void 0);T&&(g.oF(T,"ytp-composite-video-overlay-renderer"),g.TQ(this.api,T,4),this.L=T)};
  12097. sl.prototype.N=function(T){return T.compositeEmbargo!==void 0};
  12098. sl.prototype.EK=function(){GQ.prototype.EK.call(this);this.S.clear()};g.S(PzX,GQ);g.h=PzX.prototype;g.h.queueOfflineAction=function(T,Q,k,l){var v=this,L,q;return g.a(function(Y){return Y.S==1?(L=Ha(v.api.Bx()))?g.c(Y,L.O9([T],Q,k,l),3):Y.Ym(2):Y.S!=2&&(q=Y.T,q.length)?Y.return(q[0]):Y.return(Promise.reject())})};
  12099. g.h.updateDownloadState=function(T,Q){var k=Ha(this.api.Bx());return k?k.updateDownloadState(T,Q):Promise.reject()};
  12100. g.h.pauseVideoDownload=function(T){var Q=Ha(this.api.Bx());Q&&Q.jU(T)};
  12101. g.h.resumeVideoDownload=function(T){var Q=this,k;return g.a(function(l){return(k=Ha(Q.api.Bx()))?l.return(k.pV(T)):l.return(Promise.reject())})};
  12102. g.h.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
  12103. g.h.refreshAllStaleEntities=function(T){T===void 0&&(T=14400);var Q=Ha(this.api.Bx());return Q?Q.refreshAllStaleEntities(T):Promise.reject()};
  12104. g.h.setUpPositionSyncInterval=function(T){var Q=Ha(this.api.Bx());Q&&Q.setUpPositionSyncInterval(T)};g.S(HmX,GQ);g.h=HmX.prototype;g.h.ox=function(){return kE5(this.api.getVideoData())};
  12105. g.h.load=function(){var T=this;this.loaded||g.q0(this.api.G())||(this.overlay=new g.p({X:"div",Rk:["ytp-ypc-clickwrap-overlay","ytp-player-content"],W:[{X:"h2",J:"ytp-ypc-clickwrap-header",S6:"\u662f\u5426\u8981\u5f00\u59cb\u79df\u501f\uff1f"},{X:"div",J:"ytp-ypc-clickwrap-description",S6:this.api.getVideoData().wJ},{X:"button",Rk:["ytp-ypc-clickwrap-confirm","ytp-button"],S6:"\u5f00\u59cb\u79df\u501f"}]}),g.P(this,this.overlay),g.TQ(this.api,this.overlay.element,4),this.overlay.Z(this.overlay.L_("ytp-ypc-clickwrap-confirm"),
  12106. "click",function(){T.onConfirm()}),this.loaded=!0)};
  12107. g.h.onConfirm=function(){var T=this;this.overlay&&this.overlay.hide();this.T.Z(this.api,"videodatachange",function(){T.api.Ju("ypc_clickwrap")});
  12108. this.api.Ju("ypc_clickwrap")};
  12109. g.h.unload=function(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),g.N5(this.T),this.loaded=!1)};
  12110. g.h.EK=function(){this.unload();GQ.prototype.EK.call(this)};g.S(S8,GQ);S8.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
  12111. S8.prototype.getAvailableQualityData=function(){var T=this.api.getVideoData();if(!T)return[];var Q=[],k,l,v=(k=T.getPlayerResponse())==null?void 0:(l=k.playabilityStatus)==null?void 0:l.paygatedQualitiesMetadata;l=(v==null?void 0:v.qualityDetails)||[];k=new Map;k=g.vm(l)&&!Array.isArray(l)?new Map(Object.entries(l)):new Map(l.map(function(q){return[q.key,q.value]}));
  12112. if(l=v==null?void 0:v.restrictedAdaptiveFormats){v=[];l=g.B(l);for(var L=l.next();!L.done;L=l.next())L=L.value,L=$9(L.mimeType,L.quality,L.itag.toString(),L.width.toString(),L.height.toString(),L.qualityLabel),v.push(L);T=g.Dd(T);t_(v);l=[];v=g.B(v);for(L=v.next();!L.done;L=v.next())L=L.value,xg(T,L,this.api.G().N)===!0&&l.push(L);Q=Q.concat(tLy(l,!1,k))}T=this.api.Cy();Q=Q.concat(tLy(T,!0,k));k=[];if(this.api.V("web_player_enable_premium_hbr_in_h5_api"))return Q=p1J(Q),Omb(Q),Q;T={};Q=g.B(Q);for(v=
  12113. Q.next();!v.done;v=Q.next())v=v.value,l=v.quality,T[l]||(v.formatId=void 0,k.push(v),T[l]=!0);return k};var X5={},VCE=(X5["internal-error"]=-1,X5["non-recoverable-error"]=-2,X5["api-disabled-by-application"]=-3,X5["invalid-argument"]=-4,X5["token-provider-invalid"]=-5,X5);g.S(Cv,GQ);Cv.prototype.Z5=function(T){var Q=this;if($a6())if(!this.S&&this.T){FJt(this,T);try{this.T.then(function(){egH(Q,T)},function(k){Bp(k,"player_update");
  12114. Q.handleError(k,T)})}catch(k){Bp(k,"player_update_catch"),this.handleError(k,T)}}else this.S?egH(this,T):this.api.T9("pf",{m:this.S?1:0,
  12115. p:this.T?1:0})};
  12116. Cv.prototype.handleError=function(T,Q){g.rB(T);if(this.api.V("html5_enable_d6de4_cold_start_and_error")){var k=0;T.mediaIntegrityErrorName?k||(k=VCE[T.mediaIntegrityErrorName]):T.code&&(k=T.code());Q.W9={Jhd:{code:k}}}};g.S(zk,g.p);zk.prototype.Aj=function(T){T=T?"\u9000\u51fa\u753b\u4e2d\u753b":"\u753b\u4e2d\u753b";this.api.G().V("player_tooltip_data_title_killswitch")?this.update({title:T,"data-title-no-tooltip":T}):this.update({"data-tooltip-title":T,"data-title-no-tooltip":T});this.api.wO()};
  12117. zk.prototype.onClick=function(){this.api.togglePictureInPicture()};g.S(X9,GQ);X9.prototype.createButton=function(){var T=this;this.button=new zk(this.api);g.P(this,this.button);this.api.oN(this.button);this.events.Z(this.api,"videodatachange",function(){EWT(T)});
  12118. EWT(this)};
  12119. X9.prototype.setDocumentPictureInPicture=function(T){this.api.Gk().DN(T);T=this.api.x$();var Q=oFT(this.api.Bx());Q&&(T?Q.load():Q.unload());this.api.publish("documentpictureinpicturechange")};g.S(yGI,GQ);g.h=yGI.prototype;g.h.ox=function(){return this.api.getVideoData().D.includes("yto")};
  12120. g.h.load=function(){var T=this;if(!this.loaded){this.N||(this.N=new g.p({X:"div",Rk:["ytp-player-content","ytp-yto-overlay"],W:[{X:"div",Rk:["ytp-yto-preroll-message"],S6:"\u89c6\u9891\u5373\u5c06\u5f00\u59cb\u64ad\u653e"}]}),g.P(this,this.N),im6(this,!1),g.TQ(this.api,this.N.element,4));var Q=this.api.getPresentingPlayerType();this.L.Z(this.api,"playbackChange",function(){var k=T.api.getPresentingPlayerType()===5;g.gl(T.api.getRootNode(),"ytp-yto-preroll",k);im6(T,k)});
  12121. this.L.Z(this.api,"presentingplayerstatechange",function(k){T.onStateChange(k)});
  12122. this.L.Z(this.api,g.ej("yto"),function(k,l){T.onCueRangeEnter(k,l)});
  12123. this.L.Z(this.api,"ytoprerollinternstitialnext",function(){QCJ(T)});
  12124. VLu(this);this.loaded=!0;this.api.Ju("yto",Q)}};
  12125. g.h.onCueRangeEnter=function(T){T=T.getId();if(!this.T){if(g.J(this.api.getPlayerStateObject(1),2)){if(this.B)return}else this.B=!1;this.S.includes(T)||this.S.push(T);this.api.getPresentingPlayerType()===1&&TUf(this)}};
  12126. g.h.onStateChange=function(T){var Q=this.api.getPresentingPlayerType();T=T.state;this.T||Q!==5&&Q!==6&&Q!==7||g.J(T,1)||g.J(T,16)||g.J(T,32)||(Q=g.J(T,128),(g.J(T,2)||Q)&&QCJ(this))};
  12127. g.h.unload=function(){this.loaded&&(this.j=0,this.B=this.T=!1,this.C={},this.Y=0,this.S.length=0,g.N5(this.L),this.loaded=!1)};
  12128. g.h.EK=function(){this.unload();GQ.prototype.EK.call(this)};g.S(jCg,GQ);g.S(N4,g.p);g.h=N4.prototype;g.h.nO=function(){};
  12129. g.h.Np=function(){};
  12130. g.h.Hs=function(){return!0};
  12131. g.h.cbd=function(){if(this.expanded){this.f_.show();var T=this.L.element.scrollWidth}else T=this.L.element.scrollWidth,this.f_.hide();this.DP=this.Jj+T;g.gl(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.Jj:this.DP)+"px";this.K_.start()};
  12132. g.h.zo=function(){this.badge.element.style.width=(this.expanded?this.DP:this.Jj)+"px";this.zg.start()};
  12133. g.h.cC=function(){this.Y&&this.U.logVisibility(this.badge.element,this.Hs());this.z9&&this.U.logVisibility(this.dismissButton.element,this.Hs()&&this.FY())};
  12134. g.h.jt=function(T){this.hj=T;dW(this);wW(this);this.FE()};
  12135. g.h.W0V=function(){g.gl(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
  12136. g.h.FY=function(){return this.qO||this.hj||!this.j};
  12137. g.h.FE=function(){this.Hs()?(this.show(),this.D.show()):this.D.hide();this.cC()};
  12138. g.h.RW=function(){this.enabled=!1;this.FE()};
  12139. g.h.wh=function(T){T?this.z9&&this.U.logClick(this.dismissButton.element):this.Y&&this.U.logClick(this.badge.element)};
  12140. g.h.tkV=function(){this.FE()};
  12141. g.h.b_k=function(T){this.h3=T===1;this.FE();g.gl(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
  12142. g.h.SGV=function(){g.gl(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.U.isFullscreen());this.FE()};g.S(AO,g.M1);AO.prototype.nI=function(){this.publish("size-change")};
  12143. AO.prototype.focus=function(){this.content.focus()};
  12144. AO.prototype.bO=function(){this.publish("back")};g.S(g.b_,AO);g.h=g.b_.prototype;g.h.A6=function(T,Q){if(Q===void 0?0:Q)this.items.push(T),this.menuItems.element.appendChild(T.element);else{Q=g.OA(this.items,T,l4C);if(Q>=0)return;Q=~Q;g.Pm(this.items,Q,0,T);hZ(this.menuItems.element,T.element,Q)}T.subscribe("size-change",this.kK,this);this.menuItems.publish("size-change")};
  12145. g.h.y8=function(T){T.unsubscribe("size-change",this.kK,this);this.wd()||(g.zv(this.items,T),this.menuItems.element.removeChild(T.element),this.menuItems.publish("size-change"))};
  12146. g.h.kK=function(){this.menuItems.publish("size-change")};
  12147. g.h.focus=function(){for(var T=0,Q=0;Q<this.items.length;Q++){var k=this.items[Q].element;if(k.getAttribute("role")==="menuitemradio"){if(k.getAttribute("aria-checked")==="true"){T=Q;break}}else break}this.items[T].focus()};
  12148. g.h.ym=function(){return this.items.length};g.S(g.cp,g.LA);g.h=g.cp.prototype;g.h.show=function(){g.LA.prototype.show.call(this);this.yd()};
  12149. g.h.hide=function(){g.LA.prototype.hide.call(this);this.T.length>1&&g.a4(this)};
  12150. g.h.yd=function(){Lvu(this);this.Sr&&(o$f(this),g.QP(this.element,this.size))};
  12151. g.h.NN=function(){var T=this.T.pop();v$g(this,T,this.T[this.T.length-1],!0)};
  12152. g.h.dk=function(T){if(!T.defaultPrevented)switch(T.keyCode){case 27:this.sG();T.preventDefault();break;case 37:this.T.length>1&&this.NN();T.preventDefault();break;case 39:T.preventDefault()}};
  12153. g.h.focus=function(){this.T.length&&this.T[this.T.length-1].focus()};
  12154. g.h.EK=function(){g.LA.prototype.EK.call(this);this.B&&this.B.dispose();this.C&&this.C.dispose()};g.S(u_,g.cp);u_.prototype.open=function(T,Q){this.initialize(T.items)&&this.fA(Q,!!Q)};
  12155. u_.prototype.initialize=function(T){g.rW(this.xP);if(T===void 0||T.length===0)return!1;var Q=T.length;T=g.B(T);for(var k=T.next();!k.done;k=T.next())this.A6(k.value,Q--);return!0};
  12156. u_.prototype.A6=function(T,Q){T.menuNavigationItemRenderer?MWt(this,T.menuNavigationItemRenderer,Q):T.menuServiceItemRenderer&&YLC(this,T.menuServiceItemRenderer,Q)};g.S(nv,N4);g.h=nv.prototype;g.h.nO=function(T){T.target!==this.dismissButton.element&&T.target!==this.overflowButton.element&&(this.wh(),this.onClickCommand&&this.U.tj("innertubeCommand",this.onClickCommand))};
  12157. g.h.Np=function(){this.enabled=!1;this.D.hide()};
  12158. g.h.Hs=function(){return!!this.T&&this.enabled};
  12159. g.h.onVideoDataChange=function(T,Q){this.NS(Q);if(this.T){this.w7();a:if(!this.isCounterfactual){var k,l,v;this.banner.update({title:(k=this.T)==null?void 0:k.title,subtitle:(l=this.T)==null?void 0:l.subtitle,metadata:(v=this.T)==null?void 0:v.metadataText});var L;this.onClickCommand=g.t((L=this.T)==null?void 0:L.onTap,Dh);var q;if(T=g.t((q=this.T)==null?void 0:q.onOverflow,Dh))this.C=g.t(T,ilT);var Y;if((Y=this.T)==null?0:Y.thumbnailImage){var U,R;q=((U=this.T)==null?void 0:(R=U.thumbnailImage)==
  12160. null?void 0:R.sources)||[];if(q.length===0)break a;this.thumbnailImage.update({url:q[0].url})}else{var Z;if((Z=this.T)==null?0:Z.thumbnailIconName){var f;this.thumbnailIcon.update({icon:(f=this.T)==null?void 0:f.thumbnailIconName})}}var G;this.shouldShowOverflowButton=!((G=this.T)==null||!G.shouldShowOverflowButton);var m;this.shouldHideDismissButton=!((m=this.T)==null||!m.shouldHideDismissButton)}var I;this.banner.element.setAttribute("aria-label",((I=this.T)==null?void 0:I.a11yLabel)||"");var z;
  12161. this.p_=(z=this.T)==null?void 0:z.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;R95(this)}};
  12162. g.h.qG6=function(){this.isVisible=!0;R95(this)};
  12163. g.h.T5q=function(){this.isVisible=!1;R95(this)};
  12164. g.h.cC=function(){N4.prototype.cC.call(this);this.S&&this.U.logVisibility(this.banner.element,this.isVisible)};
  12165. g.h.wh=function(){N4.prototype.wh.call(this,!1);this.S&&this.U.logClick(this.banner.element)};
  12166. g.h.xv=function(T){this.B||(this.B=new u_(this.U),g.P(this,this.B));var Q,k;if((Q=this.C)==null?0:(k=Q.menu)==null?0:k.menuRenderer)this.B.open(this.C.menu.menuRenderer,T.target),T.preventDefault()};
  12167. g.h.NS=function(){};
  12168. g.h.w7=function(){};
  12169. g.h.EK=function(){this.U.uf("suggested_action_view_model");N4.prototype.EK.call(this)};g.S(Kv,nv);
  12170. Kv.prototype.NS=function(T){var Q,k,l;this.productUpsellSuggestedActionViewModel=g.t((Q=T.getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.suggestedActionViewModel,ZO1);var v;if((v=this.productUpsellSuggestedActionViewModel)==null?0:v.content){var L;this.T=g.t((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.content,FI1)}var q,Y;if(this.S=!!((q=this.productUpsellSuggestedActionViewModel)==null?0:(Y=q.loggingDirectives)==null?
  12171. 0:Y.trackingParams)){var U,R;this.U.setTrackingParams(this.banner.element,((U=this.productUpsellSuggestedActionViewModel)==null?void 0:(R=U.loggingDirectives)==null?void 0:R.trackingParams)||null)}var Z;this.isCounterfactual=!((Z=this.productUpsellSuggestedActionViewModel)==null||!Z.isCounterfactualServing)};
  12172. Kv.prototype.w7=function(){var T=[],Q,k=g.B(((Q=this.productUpsellSuggestedActionViewModel)==null?void 0:Q.ranges)||[]);for(Q=k.next();!Q.done;Q=k.next()){var l=Q.value;l&&(Q=Number(l.startTimeMilliseconds),l=Number(l.endTimeMilliseconds),isNaN(Q)||isNaN(l)||T.push(new g.$d(Q,l,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.fY(T)};g.S(Za6,GQ);g.S(xk,GQ);xk.prototype.onVideoDataChange=function(T,Q){var k=this;if(!Ra(Q)&&(T==="newdata"&&GuT(this),this.T&&T==="dataloaded")){this.T=!1;var l;ar(DQ(cB(this.api.G(),(l=this.api.getVideoData())==null?void 0:g.YD(l)),function(v){Caf(k,v)}),function(){k.T=!0})}};
  12173. xk.prototype.HG=function(){var T=this;if(g.G4(this.api.G())){var Q,k=g.rj(this.api.G(),(Q=this.api.getVideoData())==null?void 0:g.YD(Q));return DQ(A1(k),function(l){var v=lf();oR(v,l);return T.api.HG(v)})}return A1(this.api.HG())};g.S(g.Hp,g.UQ);g.h=g.Hp.prototype;g.h.open=function(){g.Dx(this.YB,this.S)};
  12174. g.h.U$=function(T){BU6(this);var Q=this.options[T];Q&&(Q.element.setAttribute("aria-checked","true"),this.qF(this.U4(T)),this.L=T)};
  12175. g.h.VE=function(T){g.rW(this.S);for(var Q={},k=!1,l=0;l<T.length;l++){var v=T[l],L=this.options[v],q=v===this.L;q&&(k=!0);L&&L.priority===-l?(g.YH(this.options[v],this.U4(v,!0)),delete this.options[v]):L=this.Lw(v,-l,q);Q[v]=L;this.S.A6(L,!0)}k||(this.L=null);T=g.B(Object.keys(this.options));for(k=T.next();!k.done;k=T.next())this.options[k.value].dispose();this.options=Q};
  12176. g.h.Lw=function(T,Q,k,l){var v=this;k={X:"div",Rk:["ytp-menuitem",l?"ytp-menuitem-with-footer":""],K:{tabindex:"0",role:"menuitemradio","aria-checked":k?"true":"false"},W:[{X:"div",Rk:["ytp-menuitem-label"],S6:"{{label}}"}]};l&&(l={X:"div",J:"ytp-menuitem-footer",W:[l]},k.W?k.W.push(l):k.W=[l]);Q=new g.UQ(k,Q,this.U4(T,!0));Q.listen("click",function(){v.Yj(T)});
  12177. return Q};
  12178. g.h.enable=function(T){this.D?T||(this.D=!1,this.H0(!1)):T&&(this.D=!0,this.H0(!0))};
  12179. g.h.H0=function(T){T?this.YB.A6(this):this.YB.y8(this)};
  12180. g.h.BT=function(T){this.publish("select",T)};
  12181. g.h.Yj=function(T){this.BT(T)};
  12182. g.h.U4=function(T){return T.toString()};
  12183. g.h.Xy=function(T){T.defaultPrevented||T.keyCode!==39||(this.open(),T.preventDefault())};
  12184. g.h.EK=function(){this.D&&this.YB.y8(this);g.UQ.prototype.EK.call(this);for(var T=g.B(Object.keys(this.options)),Q=T.next();!Q.done;Q=T.next())this.options[Q.value].dispose()};g.S(z9g,g.Hp);g.h=z9g.prototype;g.h.Aj=function(){var T=this.W0("Off");this.U.getPresentingPlayerType()!==2?(Xwf(this),this.U$(this.B),this.T&&(this.B===T?this.T="":this.setSleepTimerTimeLeft(this.T)),this.C&&this.setVideoTimeLeft(this.C),this.enable(!0)):(this.VE([]),this.enable(!1))};
  12185. g.h.BT=function(T){wwX(this,T);this.YB.NN()};
  12186. g.h.W0=function(T){switch(T){case "Off":return"\u5173\u95ed";case "End of video":return"\u89c6\u9891\u7ed3\u5c3e";case "End of playlist":return"\u64ad\u653e\u5217\u8868\u7ed3\u5c3e";default:return(T.toString()+" \u5206\u949f").toLowerCase()}};
  12187. g.h.onVideoDataChange=function(T){T==="dataloaded"&&Xwf(this)};
  12188. g.h.Uv=function(T){this.U.logVisibility(this.element,T)};
  12189. g.h.onClick=function(){this.U.logClick(this.element)};
  12190. g.h.resetSleepTimerMenuSettings=function(){wwX(this,this.W0("Off"))};
  12191. g.h.setSleepTimerTimeLeft=function(T){this.T=T;this.qF(T)};
  12192. g.h.setVideoTimeLeft=function(T){this.C=T;this.Y.qF(T)};g.S(tO,GQ);tO.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
  12193. tO.prototype.setSleepTimerTimeLeft=function(T){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(T)};
  12194. tO.prototype.setVideoTimeLeft=function(T){this.menuItem&&this.menuItem.setVideoTimeLeft(T)};g.S(dK5,GQ);g.S(g.pv,g.ox);g.h=g.pv.prototype;g.h.Z=function(T,Q){this.Y.Z(this.j,T,Q,void 0,!this.T)};
  12195. g.h.cancel=function(){this.L&&(this.L=!1,this.publish("dragend",0,0,null));this.S&&(this.S=!1,this.publish("hoverend",0,0,null),Wp(this),Ol(this))};
  12196. g.h.JX=function(T){Wp(this);this.Z($k("move"),this.BF);this.Z($k("out"),this.W$);this.Z("touchstart",this.Vn);this.T&&this.Z($k("down"),this.Nc);var Q=T.target;T=new g.WX(T.pageX,T.pageY);this.S=!0;this.publish("hoverstart",T.x,T.y,Q);this.publish("hovermove",T.x,T.y,Q)};
  12197. g.h.BF=function(T){var Q=T.target;T=new g.WX(T.pageX,T.pageY);if(this.N){var k=this.N;this.N=null;if(k.relatedTarget===Q&&$P(new g.WX(k.pageX,k.pageY),T))return}this.publish("hovermove",T.x,T.y,Q)};
  12198. g.h.W$=function(T){var Q=new g.WX(T.pageX,T.pageY),k=T.relatedTarget;try{if(k&&g.SO(this.target,k)){this.N=T;this.publish("hovermove",Q.x,Q.y,k);return}}catch(l){}Wp(this);Ol(this);this.S=!1;this.publish("hoverend",Q.x,Q.y,k)};
  12199. g.h.Le6=function(T){this.JX(T);this.Nc(T)};
  12200. g.h.Nc=function(T){if(typeof T.button!=="number"||T.button===0){Wp(this);this.Y.Z(JO(T.target),$k("move"),this.hHe);this.Y.Z(JO(T.target),$k("up"),this.RL);var Q=T.target;if(g.Y1)this.Z("dragstart",this.PS);else if(T.preventDefault(),(g.wj||$1)&&Q)a:{for(var k=Q;k;){if(xpt(k)||k.getAttribute("tabindex")==="-1"){k.focus();break a}k=k.parentElement}JO(Q).activeElement.blur()}this.L=!0;T=new g.WX(T.pageX,T.pageY);this.publish("dragstart",T.x,T.y,Q);this.publish("dragmove",T.x,T.y,Q)}};
  12201. g.h.PS=function(T){T.preventDefault()};
  12202. g.h.hHe=function(T){var Q=T.target;Q===JO(T.target)&&(Q=null);T=new g.WX(T.pageX,T.pageY);this.publish("hovermove",T.x,T.y,Q);this.publish("dragmove",T.x,T.y,Q)};
  12203. g.h.RL=function(T){Wp(this);this.L=!1;var Q=zL(T),k=T.target;T=new g.WX(T.pageX,T.pageY);Q&&g.SO(this.target,Q)?(this.Z($k("move"),this.BF),this.Z($k("out"),this.W$),this.Z($k("down"),this.Nc),this.Z("touchstart",this.Vn),this.publish("dragend",T.x,T.y,k)):(Ol(this),this.S=!1,this.publish("dragend",T.x,T.y,k),this.publish("hoverend",T.x,T.y,k))};
  12204. g.h.Vn=function(T){var Q=T.changedTouches[0];Q&&(Wp(this),this.D||(this.Z("touchmove",this.CHB),this.Z("touchend",this.Vk),this.Z("touchcancel",this.Vk),this.B=Q.identifier,T=T.target,this.S||(this.S=!0,this.publish("hoverstart",Q.pageX,Q.pageY,T)),this.publish("hovermove",Q.pageX,Q.pageY,T),this.T&&(this.L=!0,this.publish("dragstart",Q.pageX,Q.pageY,T),this.publish("dragmove",Q.pageX,Q.pageY,T))))};
  12205. g.h.CHB=function(T){var Q=NUf(this,T);Q&&(this.T&&T.preventDefault(),T=T.target,this.publish("hovermove",Q.pageX,Q.pageY,T),this.T&&this.publish("dragmove",Q.pageX,Q.pageY,T))};
  12206. g.h.Vk=function(T){var Q=NUf(this,T);if(Q){Wp(this);Ol(this);this.S=!1;var k=T.target;this.T&&(this.C||T.preventDefault(),this.L=!1,this.publish("dragend",Q.pageX,Q.pageY,k));this.publish("hoverend",Q.pageX,Q.pageY,k)}};
  12207. g.h.EK=function(){this.T&&(g.Y1&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");Wp(this);g.ox.prototype.EK.call(this)};
  12208. var AEJ=!1;g.S(rEX,g.p);rEX.prototype.Zb=function(){g.W2(this.element,"display","none");this.U.logVisibility(this.T,!1)};g.S(F9,GQ);F9.prototype.qO=function(T,Q){this.wd()||(this.j=[T,Q],this.T.subscribe("dragmove",this.B,this),this.T.subscribe("dragend",this.N,this),this.L||g.Ez(this.delay))};
  12209. F9.prototype.xm=function(){if(this.Y){this.L=!0;this.hj=this.api.getPlaybackRate();this.i9=this.api.getPlayerStateObject().isPaused();var T=this.speedmasterUserEdu;g.W2(T.element,"display","");T.U.logVisibility(T.T,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.C&&(this.C.Fr=!0);this.z9&&(this.z9.WU=!0);this.V("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged",!0)}};
  12210. F9.prototype.B=function(T,Q){if(!this.L){T=[T,Q];var k=this.j;k&&T&&k.length===2&&T.length===2?(Q=Math.abs(k[0]-T[0]),k=Math.abs(k[1]-T[1]),Q=Math.sqrt(Q*Q+k*k)):Q=-1;Q<10?this.j=T:El(this)}};
  12211. F9.prototype.N=function(){El(this)};g.S(yW,g.Jz);yW.prototype.preventDefault=function(){g.Jz.prototype.preventDefault.call(this);this.T&&this.T.preventDefault()};
  12212. yW.prototype.stopPropagation=function(){g.Jz.prototype.stopPropagation.call(this);this.T&&this.T.stopPropagation()};g.S(g.i_,ml);g.h=g.i_.prototype;g.h.rQ=function(){return!0};
  12213. g.h.isView=function(){return!1};
  12214. g.h.h2=function(){return!1};
  12215. g.h.xB=function(){return this.T};
  12216. g.h.Cz=function(){return this.T.src};
  12217. g.h.oV=function(T){var Q=this.getPlaybackRate();this.T.src=T;this.setPlaybackRate(Q)};
  12218. g.h.Kj=function(){this.T.removeAttribute("src")};
  12219. g.h.getPlaybackRate=function(){try{return this.T.playbackRate>=0?this.T.playbackRate:1}catch(T){return 1}};
  12220. g.h.setPlaybackRate=function(T){this.getPlaybackRate()!==T&&(this.T.playbackRate=T);return T};
  12221. g.h.t_=function(){return this.T.loop};
  12222. g.h.setLoop=function(T){this.T.loop=T};
  12223. g.h.canPlayType=function(T,Q){return this.T.canPlayType(T,Q)};
  12224. g.h.isPaused=function(){return this.T.paused};
  12225. g.h.isSeeking=function(){return this.T.seeking};
  12226. g.h.isEnded=function(){return this.T.ended};
  12227. g.h.fk=function(){return this.T.muted};
  12228. g.h.r9=function(T){Cu();this.T.muted=T};
  12229. g.h.nX=function(){return this.T.played||eI([],[])};
  12230. g.h.Q8=function(){try{var T=this.T.buffered}catch(Q){}return T||eI([],[])};
  12231. g.h.MD=function(){return this.T.seekable||eI([],[])};
  12232. g.h.Q9=function(){var T=this.T;return T.getStartDate?T.getStartDate():null};
  12233. g.h.getCurrentTime=function(){return this.T.currentTime};
  12234. g.h.setCurrentTime=function(T){this.T.currentTime=T};
  12235. g.h.getDuration=function(){return this.T.duration};
  12236. g.h.load=function(){var T=this.T.playbackRate;try{this.T.load()}catch(Q){}this.T.playbackRate=T};
  12237. g.h.pause=function(){this.T.pause()};
  12238. g.h.play=function(){var T=this.T.play();if(!T||!T.then)return null;T.then(void 0,function(){});
  12239. return T};
  12240. g.h.Nm=function(){return this.T.readyState};
  12241. g.h.D2=function(){return this.T.networkState};
  12242. g.h.SZ=function(){return this.T.error?this.T.error.code:null};
  12243. g.h.dw=function(){return this.T.error?this.T.error.message:""};
  12244. g.h.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var T=this.T,Q=T.webkitDroppedFrameCount;if(T=T.webkitDecodedFrameCount)return{droppedVideoFrames:Q||0,totalVideoFrames:T}}return{}};
  12245. g.h.Ax=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless};
  12246. g.h.YU=function(){return!!this.T.webkitShowPlaybackTargetPicker()};
  12247. g.h.togglePictureInPicture=function(){var T=this.T,Q=window.document;window.document.pictureInPictureEnabled?this.T!==Q.pictureInPictureElement?T.requestPictureInPicture():Q.exitPictureInPicture():SI()&&T.webkitSetPresentationMode(T.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
  12248. g.h.rS=function(){var T=this.T;return new g.WX(T.offsetLeft,T.offsetTop)};
  12249. g.h.getSize=function(){return g.jC(this.T)};
  12250. g.h.setSize=function(T){g.QP(this.T,T)};
  12251. g.h.getVolume=function(){return this.T.volume};
  12252. g.h.setVolume=function(T){Cu();this.T.volume=T};
  12253. g.h.EL=function(T){this.N[T]||(this.T.addEventListener(T,this.listener),this.N[T]=this.listener)};
  12254. g.h.setAttribute=function(T,Q){this.T.setAttribute(T,Q)};
  12255. g.h.removeAttribute=function(T){this.T.removeAttribute(T)};
  12256. g.h.hasAttribute=function(T){return this.T.hasAttribute(T)};
  12257. g.h.Uq=T5(61);g.h.U3=T5(63);g.h.Rc=T5(65);g.h.mV=T5(67);g.h.qz=function(){return I1(this.T)};
  12258. g.h.SX=function(T){g.oF(this.T,T)};
  12259. g.h.Jv=function(T){return g.JZ(this.T,T)};
  12260. g.h.Ob=function(){return g.SO(document.body,this.T)};
  12261. g.h.audioTracks=function(){var T=this.T;if("audioTracks"in T)return T.audioTracks};
  12262. g.h.EK=function(){for(var T=g.B(Object.keys(this.N)),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.T.removeEventListener(Q,this.N[Q]);ml.prototype.EK.call(this)};
  12263. g.h.A2=function(T){this.T.disableRemotePlayback=T};g.S(VW,g.p);g.S(Q_,g.p);Q_.prototype.show=function(){g.p.prototype.show.call(this);this.Aj();this.ZV.V("html5_enable_moving_s4n_window")&&g.G4(this.ZV.G())&&this.j()};
  12264. Q_.prototype.hide=function(){g.p.prototype.hide.call(this);this.delay.stop();this.Y.stop()};
  12265. Q_.prototype.Aj=function(){var T=(0,g.XY)(),Q=a4C(this.ZV);Tx(this.T,Q.bandwidth_samples);Tx(this.C,Q.network_activity_samples);Tx(this.L,Q.live_latency_samples);Tx(this.S,Q.buffer_health_samples);var k={};Q=g.B(Object.entries(Q));for(var l=Q.next();!l.done;l=Q.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;this.D[l]!==v&&(k[l]=" "+String(v));this.D[l]=v}this.update(k);T=(0,g.XY)()-T>25?5E3:500;this.delay.start(T)};
  12266. Q_.prototype.j=function(){this.B?(this.position+=1,this.position>15&&(this.B=!1)):(--this.position,this.position<=0&&(this.B=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.S(Kvy,GQ);g.S(jp,g.x);jp.prototype.T=function(){var T=(0,g.XY)()-this.startTime;T=T<this.duration?T/this.duration:1;this.S(S_(T__,T));T<1&&this.delay.start()};
  12267. var T__=new s7(0,0,.4,0,.2,1,1,1),pwI=/[0-9.-]+|[^0-9.-]+/g;g.S(kY,g.p);kY.prototype.onClick=function(){var T=this.api.app;var Q=T.V("web_log_theater_mode_visibility")?!T.zs():!T.qJ;T.ZV.tj("SIZE_CLICKED",Q);this.api.logClick(this.element)};
  12268. kY.prototype.Aj=function(){this.o_(this.api.yj()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Sr){var T=this.api.zs();this.zs!==T&&this.bz(T)}this.api.logVisibility(this.element,this.Sr)};
  12269. kY.prototype.bz=function(T){var Q=this.api.V("delhi_modern_web_player_icons")?T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM16.87 6.72H16.86L16.79 6.79L13.58 10L16.79 13.20C16.88 13.30 16.99 13.37 17.11 13.43C17.23 13.48 17.37 13.51 17.50 13.51C17.63 13.51 17.76 13.48 17.89 13.43C18.01 13.38 18.12 13.31 18.21 13.21C18.31 13.12 18.38 13.01 18.43 12.89C18.48 12.76 18.51 12.63 18.51 12.50C18.51 12.37 18.48 12.23 18.43 12.11C18.37 11.99 18.30 11.88 18.20 11.79L16.41 10L18.20 8.20L18.27 8.13C18.42 7.93 18.50 7.69 18.49 7.45C18.47 7.20 18.37 6.97 18.20 6.79C18.02 6.62 17.79 6.52 17.55 6.50C17.30 6.49 17.06 6.57 16.87 6.72ZM5.79 6.79C5.60 6.98 5.50 7.23 5.50 7.5C5.50 7.76 5.60 8.01 5.79 8.20L7.58 10L5.79 11.79L5.72 11.86C5.57 12.06 5.49 12.30 5.50 12.54C5.51 12.79 5.62 13.02 5.79 13.20C5.97 13.37 6.20 13.48 6.45 13.49C6.69 13.50 6.93 13.42 7.13 13.27L7.20 13.20L10.41 10L7.20 6.79C7.01 6.60 6.76 6.50 6.5 6.50C6.23 6.50 5.98 6.60 5.79 6.79ZM3 19V17H21V19H3Z",
  12270. fill:"white"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM7.87 6.72L7.79 6.79L4.58 10L7.79 13.20C7.88 13.30 7.99 13.37 8.11 13.43C8.23 13.48 8.37 13.51 8.50 13.51C8.63 13.51 8.76 13.48 8.89 13.43C9.01 13.38 9.12 13.31 9.21 13.21C9.31 13.12 9.38 13.01 9.43 12.89C9.48 12.76 9.51 12.63 9.51 12.50C9.51 12.37 9.48 12.23 9.43 12.11C9.37 11.99 9.30 11.88 9.20 11.79L7.41 10L9.20 8.20L9.27 8.13C9.42 7.93 9.50 7.69 9.48 7.45C9.47 7.20 9.36 6.97 9.19 6.80C9.02 6.63 8.79 6.52 8.54 6.51C8.30 6.49 8.06 6.57 7.87 6.72ZM14.79 6.79C14.60 6.98 14.50 7.23 14.50 7.5C14.50 7.76 14.60 8.01 14.79 8.20L16.58 10L14.79 11.79L14.72 11.86C14.57 12.06 14.49 12.30 14.50 12.54C14.51 12.79 14.62 13.02 14.79 13.20C14.97 13.37 15.20 13.48 15.45 13.49C15.69 13.50 15.93 13.42 16.13 13.27L16.20 13.20L19.41 10L16.20 6.79C16.01 6.60 15.76 6.50 15.5 6.50C15.23 6.50 14.98 6.60 14.79 6.79ZM3 19V17H21V19H3Z",
  12271. fill:"white"}}]}:T?{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.zs==null||this.api.V("delhi_modern_web_player_icons")?this.updateValue("icon",Q):Oa5(this.transition,
  12272. this.element,Q);T=(this.zs=T)?"\u9ed8\u8ba4\u89c6\u56fe":"\u5f71\u9662\u6a21\u5f0f";this.api.V("player_tooltip_data_title_killswitch")?this.update({title:g.pX(this.api,T,"t"),"data-title-no-tooltip":T}):this.update({"tooltip-title":g.pX(this.api,T,"t"),"data-title-no-tooltip":T});this.api.wO()};g.S(Wv6,GQ);g.S(Fvy,GQ);g.h=Fvy.prototype;g.h.onVideoDataChange=function(T){this.oM();this.videoId=T.videoId;this.L=this.T=void 0;this.timelyActions=JE5(T);E$u(this);oh(this);this.fY()};
  12273. g.h.Pl=function(T){var Q=T.oldState,k=T.state,l=k.seekSource;!g.J(Q,16)&&g.J(k,16)?this.yf(l!=null?l:void 0):g.J(Q,16)&&!g.J(k,16)&&this.BL();T=T.state;T=!T.isCued()&&!g.J(T,1024);this.S.o_(T)};
  12274. g.h.fY=function(){var T=this.TP();T&&this.api.fY(T)};
  12275. g.h.oM=function(){this.api.uf("timelyAction",1);if(this.T!==void 0)this.onCueRangeExit(this.T)};
  12276. g.h.TP=function(){if(this.timelyActions){for(var T=[],Q=g.B(this.timelyActions),k=Q.next();!k.done;k=Q.next())k=k.value,k=k.startTimeMilliseconds!=null&&k.endTimeMilliseconds!=null&&k.cueRangeId!=null?new g.$d(Number(k.startTimeMilliseconds),Number(k.endTimeMilliseconds),{id:k.cueRangeId,namespace:"timelyAction"}):void 0,k&&T.push(k);return T}};
  12277. g.h.onCueRangeEnter=function(T){var Q=lj(this,T);Q&&this.Y[T]!==void 0&&(Q.maxShowCount===void 0||(Q==null?void 0:Q.maxShowCount)>this.Y[T])&&(this.T=T,this.VW())};
  12278. g.h.onCueRangeExit=function(T){var Q=yEb(this,T);Q&&this.T===T&&this.api.tj("innertubeCommand",Q);oh(this);this.T=void 0};
  12279. g.h.yf=function(T){this.L=T};
  12280. g.h.BL=function(){this.VW();this.L=void 0};
  12281. g.h.VW=function(){if(this.T!==void 0){var T=(T=lj(this,this.T))&&T.onCueRangeEnter?uA(T.onCueRangeEnter):void 0;var Q=lj(this,this.T);a:if(Q&&Q.additionalTrigger){var k=g.B(Q.additionalTrigger);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.type){var v=void 0,L=void 0;if((v=this.xm[l.type])==null?0:v((L=l.args)!=null?L:{})){k=!0;break a}}k=!1}else k=!0;T&&k&&(this.api.tj("innertubeCommand",T),ia6(this,Q),this.Y[this.T]!==void 0&&this.Y[this.T]++,this.D=!0)}};
  12282. g.h.EK=function(){this.timelyActions=this.L=this.T=this.videoId=void 0;this.Y={};this.oM();oh(this);GQ.prototype.EK.call(this)};g.S(QgJ,GQ);g.S(va,zQ);va.prototype.B=function(T){this.Y(T?2:1)};
  12283. va.prototype.S=function(){var T=this.U.getPresentingPlayerType();T===2||T===3?(this.T=!1,this.YB.y8(this)):this.T||(T=this.hasVoiceBoostAudioTrack(),this.setEnabled(T),T=this.L()===2&&T,Xe(this,T),this.YB.A6(this),this.T=!0)};
  12284. va.prototype.EK=function(){this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(Lk,GQ);Lk.prototype.getVoiceBoostUserPreference=function(){return this.T};
  12285. Lk.prototype.setVoiceBoostUserPreference=function(T){this.api.T9("vb_set",{pref:T});g.ri("yt-player-voice-boost",T);T!==this.T&&(this.T=T,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.yV())};
  12286. Lk.prototype.hasVoiceBoostAudioTrack=function(){var T,Q,k=(T=this.api.getVideoData())==null?void 0:(Q=T.L)==null?void 0:Q.T;return k?$4(k,function(l){var v;return((v=l.audio)==null?void 0:v.S)===!0}):!1};
  12287. Lk.prototype.updateEnvironmentData=function(){this.api.G().wV=this.T};var UdI=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.S(MD,GQ);MD.prototype.EK=function(){this.C&&(g.m6(this.C),this.C=void 0);GQ.prototype.EK.call(this)};
  12288. MD.prototype.KT=function(){(this.S?!this.T:this.L)&&Us(this)};
  12289. MD.prototype.Ts=function(T,Q,k){var l=this;if(lNy(T)){var v=k||"";if(this.T)Q=Rh(this,v),o7g(T,Q);else{var L=new g.Zb;Q.push(L.promise);this.N.promise.then(function(){var q=Rh(l,v);o7g(T,q);L.resolve()})}}};
  12290. MD.prototype.rY=function(T){var Q=this;if(this.S||this.L)T.PK=Rh(this,T.videoId),this.T||(this.Y=new GN,this.N.promise.then(function(){Q.Rg.Uh("pot_if");T.PK=Rh(Q,T.videoId)}))};g.S(g.fk,g.p);g.fk.prototype.select=function(){this.api.mG(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.rN||void 0)&&this.api.logClick(this.element)};
  12291. g.fk.prototype.onClick=function(T){if(g.Qk(this.api.G())&&this.api.V("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var Q=this.suggestion.fB(),k={};g.EU(this.api,k);Q=g.sD(Q,k);g.dh(Q,this.api,T)}else g.wh(T,this.api,this.S,this.suggestion.sessionData||void 0)&&this.select()};
  12292. g.fk.prototype.onKeyPress=function(T){switch(T.keyCode){case 13:case 32:T.defaultPrevented||(this.select(),T.preventDefault())}};
  12293. g.fk.prototype.onVideoDataChange=function(){var T=this.api.getVideoData(),Q=this.api.G();this.S=T.hh?!1:Q.Y};g.S(mdt,g.p);g.h=mdt.prototype;g.h.EK=function(){this.hide();g.N5(this.Y);g.vU(this.stills);this.stills.length=0;this.S&&this.S.removeEventListener("click",this.yS);this.L&&this.L.removeEventListener("click",this.qC);this.T&&this.T.removeEventListener("click",this.qC);g.p.prototype.EK.call(this)};
  12294. g.h.qC=function(T){this.j&&this.j(T)};
  12295. g.h.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var T,Q,k,l,v;var L=(((T=this.videoData)==null?0:(Q=T.suggestions)==null?0:Q.length)?(k=this.videoData)==null?void 0:k.suggestions:((l=this.videoData)==null?0:g.zV(l))?[(v=this.videoData)==null?void 0:g.zV(v)]:[]).slice(0,18);if((T=this.D)&&this.C&&this.B)if(g.IO(T),L.length)for(this.stills.length>L.length&&g.vU(this.stills.splice(L.length)),this.stills.length=L.length,Q=0;Q<L.length;Q++){if(k=L[Q])l=this.stills[Q],l||(l=
  12296. new g.fk(this.player),this.stills[Q]=l),g.fNb(l,k),T&&T.appendChild(l.element)}else g.vU(this.stills),this.stills.length=0};
  12297. g.h.yS=function(T){this.qC(T);this.player.logClick(this.S);this.player.playVideo()};
  12298. g.h.Pl=function(){GtJ(this)};
  12299. g.h.OH=function(T,Q){Q=Q===void 0?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":Q;if(this.currentState!==T){this.currentState=T;this.element.scrollTop=0;this.o_(this.currentState!==0);if(T===2){var k=g.C9(),l=this.B.visualElement;k&&l&&jx(k,l,Q);this.onVideoDataChange()}T!==0?(this.element.setAttribute("tabindex","0"),Q="",k=g.pX(this.player,"\u66f4\u591a\u89c6\u9891","v"),T===2?Q="\u9690\u85cf\u89c6\u9891":T===1&&(Q="\u66f4\u591a\u89c6\u9891"),this.T&&(this.T.title="\u66f4\u591a\u89c6\u9891",
  12300. this.T.dataset.titleNoTooltip="\u66f4\u591a\u89c6\u9891",this.T.textContent="\u66f4\u591a\u89c6\u9891",this.T.ariaLabel="\u9690\u85cf\u89c6\u9891"),this.update({title:k,"data-title-no-tooltip":Q,"aria-label":Q}),this.player.wO()):(this.element.setAttribute("tabindex","-1"),this.update({title:"","data-title-no-tooltip":"","aria-label":""}));GtJ(this);this.player.wO()}};g.S(Ih,GQ);Ih.prototype.z9=function(){this.L&&this.S!==0&&hRC(this,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")};
  12301. Ih.prototype.setFullscreenQuickActions=function(T){this.D&&this.D.remove();T?(g.oF(T,"ytp-fullscreen-quick-actions"),this.V("web_player_overlay_positioned_layout")?(T.setAttribute("data-overlay-order","12"),this.api.EF(T,4)):(g.oF(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.TQ(this.api,T,4))):g.Lb(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.D=T;Gx(this)};
  12302. Ih.prototype.setPlayerOverlayVideoDetailsRenderer=function(T){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(T){g.oF(T,"ytp-fullscreen-metadata");g.oF(this.api.getRootNode(),"ytp-hide-fullscreen-title");T.setAttribute("data-overlay-order","1");var Q=this.api.V("delhi_modern_web_player_fullscreen_metadata_bottom"),k=Q?3:1;Q=Q?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.oF(this.api.getRootNode(),Q);this.V("web_player_overlay_positioned_layout")?
  12303. this.api.EF(T,k):g.TQ(this.api,T,4)}else g.Lb(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.Lb(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.Lb(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=T;Gx(this)};g.S(Bkt,GQ);g.S(Ba,g.x);Ba.prototype.T=function(){for(var T=g.B(g.HT.apply(0,arguments)),Q=T.next();!Q.done;Q=T.next())(Q=Q.value)&&this.features.push(Q)};
  12304. Ba.prototype.EK=function(){for(var T=this.features.length-1;T>=0;T--)this.features[T].dispose();this.features.length=0;g.x.prototype.EK.call(this)};zRb.prototype.reset=function(){this.T=this.S=NaN};g.h=X5g.prototype;g.h.reset=function(){zC(this.timerName)};
  12305. g.h.tick=function(T,Q){dS(T,Q,this.timerName)};
  12306. g.h.Uh=function(T){return rS(T,void 0,this.timerName)};
  12307. g.h.Sl=function(T){g.JB(T,void 0,this.timerName)};
  12308. g.h.infoGel=function(T){g.NL(T,this.timerName)};g.S(NkX,g.ox);g.h=NkX.prototype;g.h.G0=function(T){return this.loop||!!T||this.index+1<this.length};
  12309. g.h.E_=function(T){return this.loop||!!T||this.index-1>=0};
  12310. g.h.setShuffle=function(T){this.shuffle=T;T=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Q=0;Q<this.items.length;Q++)this.order.push(Q);this.index=T;this.S++;if(this.shuffle){T=this.order[this.index];for(Q=1;Q<this.order.length;Q++){var k=Math.floor(Math.random()*(Q+1)),l=this.order[Q];this.order[Q]=this.order[k];this.order[k]=l}for(Q=0;Q<this.order.length;Q++)this.order[Q]===T&&(this.index=Q);this.S++}this.publish("shuffle")};
  12311. g.h.rO=function(T){T=T||"hqdefault.jpg";var Q=this.j[T];if(Q||this.FB.qO||T==="sddefault.jpg"||T==="hq720.jpg"||T==="maxresdefault.jpg")return Q;if(this.L.length)return Iu(this.FB,this.L[0],T)};
  12312. g.h.findIndex=function(T){if(T&&(T=T.videoId,!this.items[this.index]||this.items[this.index].video_id!==T))for(var Q=0;Q<this.items.length;Q++)if(this.items[Q].video_id===T){this.index=Q;break}};
  12313. g.h.onReady=function(T){this.T=T;this.loaded&&g.Zq(this.T,0)};
  12314. g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
  12315. g.h.fB=function(){return this.FB.getVideoUrl(g.wN(this).videoId,this.getPlaylistId())};
  12316. g.h.EK=function(){this.T=null;g.vU(this.items);g.ox.prototype.EK.call(this)};var dN=new Map;g.S(g.A4,g.ox);g.h=g.A4.prototype;g.h.create=function(){};
  12317. g.h.load=function(){this.loaded=!0};
  12318. g.h.unload=function(){this.loaded=!1};
  12319. g.h.R2=function(){};
  12320. g.h.cH=function(){return!0};
  12321. g.h.EK=function(){this.loaded&&this.unload();g.ox.prototype.EK.call(this)};
  12322. g.h.Tx=function(){return{}};
  12323. g.h.getOptions=function(){return[]};g.S(g.rN,g.x);g.h=g.rN.prototype;g.h.aY=T5(70);g.h.Ul=function(){};
  12324. g.h.Ux=function(){};
  12325. g.h.bW=function(){return""};
  12326. g.h.OP=T5(71);g.h.Ts=function(T,Q){var k=this;if(this.ZV.G().V("html5_dispatch_tracklist_loaded_event")){this.L&&(this.L.reject(),this.L=null);var l=[];this.ZV.publish("trackListLoaded",this.S,l,Q);l.length?(Q=new g.Zb,Q.promise.then(T.Ts,function(){}),this.L=Q,Promise.all(l).then(Q.resolve,Q.reject).finally(function(){k.L=null})):T.Ts()}else T.Ts()};
  12327. g.h.EK=function(){this.L&&(this.L.reject(),this.L=null);this.Ux();g.x.prototype.EK.call(this)};g.S(g.ca,g.rN);g.ca.prototype.aY=T5(69);g.ca.prototype.Ul=function(T){if(this.audioTrack)for(var Q=g.B(this.audioTrack.captionTracks),k=Q.next();!k.done;k=Q.next())g.bj(this.S,k.value);this.Ts(T,this.videoData.videoId)};
  12328. g.ca.prototype.bW=function(T,Q){var k=T.IK(),l={fmt:Q};if(Q==="srv3"||Q==="3"||Q==="json3")g.ph()?Object.assign(l,{xorb:2,xobt:1,xovt:1}):Object.assign(l,{xorb:2,xobt:3,xovt:3});T.translationLanguage&&(l.tlang=g.pn(T));this.Y&&(l.xosf="1");Object.assign(l,this.ZV.G().T);return lC(k,l)};
  12329. g.ca.prototype.Ux=function(){this.T&&this.T.abort()};g.Qcv=new Map;g.S(g.ah,g.rN);g.ah.prototype.aY=T5(68);
  12330. g.ah.prototype.Ul=function(T){var Q=this,k=this.Y,l={type:"list",tlangs:1,v:this.videoId,vssids:1};this.hR&&(l.asrs=1);k=lC(k,l);this.Ux();this.T=g.zO(k,{format:"RAW",onSuccess:function(v){Q.T=null;if((v=v.responseXML)&&v.firstChild){for(var L=v.getElementsByTagName("track"),q=0;q<L.length;q++){var Y=L[q],U=Y.getAttribute("lang_code"),R=Y.getAttribute("lang_translated"),Z=Y.getAttribute("name"),f=Y.getAttribute("kind"),G=Y.getAttribute("id"),m=Y.getAttribute("lang_default")==="true",I=Y.getAttribute("cantran")===
  12331. "true";Y=Y.getAttribute("vss_id");g.bj(Q.S,new g.HB({languageCode:U,languageName:R,name:Z,kind:f,id:G,is_servable:!0,is_translateable:I,vss_id:Y,is_default:m}))}v=v.getElementsByTagName("target");L=v.length;for(q=0;q<L;q++)U={languageCode:v[q].getAttribute("lang_code"),languageName:v[q].getAttribute("lang_translated"),languageOriginal:v[q].getAttribute("lang_original"),id:v[q].getAttribute("id"),isDefault:v[q].getAttribute("lang_default")==="true"},Q.B[U.languageCode]=U.languageName,Q.N.push(U)}Q.Ts(T,
  12332. Q.videoId)},
  12333. withCredentials:!0})};
  12334. g.ah.prototype.bW=function(T,Q){var k=this.Y;Q={v:this.videoId,type:"track",lang:T.languageCode,name:T.getName(),kind:T.kind,fmt:Q};var l=this.ZV.G();l.V("captions_url_add_ei")&&(Q.ei=this.eventId);T.translationLanguage&&(Q.tlang=g.pn(T));Object.assign(Q,l.T);return k=lC(k,Q)};
  12335. g.ah.prototype.Ux=function(){this.T&&this.T.abort()};g.S(t5J,g.x);g.h=t5J.prototype;g.h.createSubtitlesModuleIfNeeded=function(){eRT(this)&&nk(this,"captions");return!!g.uj(this)};
  12336. g.h.E3=function(){return this.U.getVideoData().E3()};
  12337. g.h.fq=function(){return this.U.getVideoData().fq()};
  12338. g.h.Yr=function(){var T=this.kP.get("heartbeat");nk(this,"heartbeat",!1,!0,this.Yr);!T&&this.kP.has("heartbeat")&&this.U.publish("offlineslatestatechange")};
  12339. g.h.Qs=function(){nk(this,"annotations_module",!0,void 0,this.Qs);var T=this.kP.get("annotations_module");if(T)for(var Q in this.S)if(this.S.hasOwnProperty(Q)){var k=Q;T.subscribe(k,this.S[k])}};
  12340. g.h.j$=function(){if(!this.kP.get("ad"))try{p5t(this)?nk(this,"ad",!1,!0,this.j$):this.U.Ju("ad")}catch(T){this.U.Ju("ad"),g.bA(T)}};
  12341. g.h.eZ=function(){return this.T};
  12342. g.h.Z_=function(){var T={},Q=g.uj(this);Q&&Object.assign(T,Q.Z_());return T};
  12343. g.h.bA=function(T,Q){Object.assign(this.T,T||null);Object.assign(this.hM,Q||null)};
  12344. g.h.onVideoDataChange=function(){var T=this.U.getVideoData();this.U.V("enable_wn_infocards")&&g.lt(T)&&!g.t4(this)&&this.Qs()};
  12345. g.h.EK=function(){g.x.prototype.EK.call(this);Kk(this,1,!0);for(var T=g.B(Object.entries(qmC)),Q=T.next();!Q.done;Q=T.next()){var k=g.B(Q.value);Q=k.next().value;k=k.next().value;this.L.has(k)&&dN.delete(Q)}this.L.clear()};
  12346. var wF={},qmC=(wF.ad="ad.js",wF.annotations_module="annotations_module.js",wF.asmjs="asmjs.js",wF.creatorendscreen="annotations_module.js",wF.embed="embed.js",wF.endscreen="endscreen.js",wF.heartbeat="heartbeat.js",wF.kids="kids.js",wF.remote="remote.js",wF.miniplayer="miniplayer.js",wF.offline="offline.js",wF.captions="captions.js",wF.unplugged="unplugged.js",wF.ux="ux.js",wF.webgl="webgl.js",wF.ypc="ypc.js",wF.ypc_clickwrap="ypc_clickwrap.js",wF.yto="yto.js",wF),kwt="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.S(MDC,g.ox);g.h=MDC.prototype;g.h.B8=function(T){T=new g.WX(T.pageX,T.pageY);if(!$P(T,this.Y)){var Q=2;this.B&&(Q|=8);this.Y=T;pk(this,Q,!0)}};
  12347. g.h.LtK=function(){pk(this,2048,!0)};
  12348. g.h.k9j=function(){this.B&&pk(this,8,!0);pk(this,2,!1)};
  12349. g.h.JX=function(T){var Q=new g.WX(T.pageX,T.pageY);$P(Q,this.Y)||(this.Y=Q,(T=T.target)&&this.M4(T)&&(pk(this,4,!0),this.T.J6(this.L),this.L=this.T.Z(this.target,"mouseover",this.W$),this.C=this.T.Z(this.target,"mouseout",this.W$)))};
  12350. g.h.W$=function(T){T=T.relatedTarget;T&&this.M4(T)||(this.Y=new g.WX(NaN,NaN),YmI(this))};
  12351. g.h.Vx=function(){pk(this,1,!0)};
  12352. g.h.Ve=function(T){T=T.target;T instanceof Element&&!(T.tabIndex>0)||pk(this,1,!0)};
  12353. g.h.e4=function(){this.B=!0;this.T.J6(this.N);this.N=this.T.Z(document,"mouseup",this.Na)};
  12354. g.h.Na=function(){this.B=!1;pk(this,8,!1);this.T.J6(this.N);this.N=this.T.Z(this.target,"mousedown",this.e4)};
  12355. g.h.C8=function(T){if(T=(T=T.changedTouches)&&T[0])this.xm=T.identifier,this.T.J6(this.j),this.j=this.T.Z(this.target,"touchend",this.V6,void 0,!0),pk(this,1024,!0)};
  12356. g.h.V6=function(T){if(T=T.changedTouches)for(var Q=0;Q<T.length;Q++){var k=T[Q];if(k.identifier===this.xm){var l=k;break}}l&&(this.T.J6(this.j),this.j=this.T.Z(this.target,"touchstart",this.C8,void 0,!0),pk(this,1024,!1))};
  12357. g.h.DS=function(){pk(this,2,!0)};
  12358. g.h.resize=function(){g.hW&&YmI(this)};
  12359. g.h.toString=function(){return g.ox.prototype.toString.call(this)};g.S(g.$Y,g.p);g.h=g.$Y.prototype;g.h.uj9=function(){this.Aj()};
  12360. g.h.Aj=function(){var T=this.api.getVideoData(),Q=this.api.G(),k=!!this.api.isEmbedsShortsMode();g.gl(this.element,"ytp-shorts-mode",k);k?Q=[{X:"svg",K:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{X:"path",K:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
  12361. fill:"#f00","fill-rule":"evenodd"}},{X:"path",K:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:T.hh?Q=[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{X:"path",J:"ytp-dni-large-play-button-bg",K:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{X:"path",K:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:T.hh&&T.v5?Q=[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{X:"path",J:"ytp-dni-large-play-button-bg",
  12362. K:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{X:"path",K:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:Q.B?(g.gl(this.element,"ytp-touch-device",Q.S),Q=[Q.B?{X:"svg",K:{height:"100%",version:"1.1",
  12363. viewBox:"0 0 60 60",width:"100%"},W:[{X:"path",J:"ytp-large-play-button-bg",K:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{X:"path",K:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{X:"path",J:"ytp-large-play-button-bg",K:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
  12364. fill:"#212121","fill-opacity":"0.8"}},{X:"path",K:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):Q=[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{X:"path",J:"ytp-large-play-button-bg",K:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
  12365. fill:"#f03"}},{X:"path",K:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",Q);T.hh&&T.v5&&this.L_("ytp-dni-large-play-button-bg").setAttribute("fill",T.v5?T.v5:"#1f1f1f")};
  12366. g.h.show=function(){g.p.prototype.show.call(this);this.api.G().V("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
  12367. g.h.Uu=function(){this.api.getVideoData().mutedAutoplay||(this.api.KM(),this.api.playVideo())};
  12368. g.h.OYq=function(T){this.api.getVideoData().mutedAutoplay||T.preventDefault()};g.S(g.J4,g.p);g.h=g.J4.prototype;g.h.show=function(){var T=this;this.Sr||(this.S.Z(this.api,"videodatachange",function(){g.Ez(T.T)}),this.S.Z(this.api,"videoplayerreset",function(){g.Ez(T.T)}));
  12369. g.p.prototype.show.call(this)};
  12370. g.h.hide=function(){this.S&&g.N5(this.S);g.p.prototype.hide.call(this)};
  12371. g.h.zx=function(){g.Ez(this.T)};
  12372. g.h.onStateChange=function(){g.Ez(this.T)};
  12373. g.h.Rvd=function(){g.Ez(this.T)};
  12374. g.h.onReset=function(){this.fade.stop();this.hide();g.Ez(this.T)};
  12375. g.h.Aj=function(){var T=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(T.isPlaying()||T.isPaused()))var Q=!0;else(Q=this.api.Bx().kP.get("ypc"))&&Q.Sw?Q=!0:(Q=this.api.G(),Q=g.J(T,2)&&g.$D(this.api)&&Q.m0?!0:!1);Q?(Q=!0,this.L.hide()):(this.L.show(),Q=T.isCued()&&this.api.getPresentingPlayerType()!==2||g.J(T,2)&&!g.$D(this.api)&&!this.api.FS()||g.J(T,1024)?!0:!1);var k=this.api.getVideoData();Q&&!k.dE?(this.fade.show(),this.D_K(this.api.getPlaylist(),k)):(this.fade.hide(),
  12376. g.J(T,1)||this.fade.stop())};
  12377. g.h.D_K=function(){for(var T=this.api.G(),Q,k=g.B(g.HT.apply(0,arguments)),l=k.next();!l.done;l=k.next())if(l=l.value,!(!l||l instanceof g.mR&&!l.videoId)){Q=this.api.Hx().getPlayerSize();var v=g.SF(),L=Q.width*v;v*=Q.height;if(L>1280||v>720)if(Q=l.rO("maxresdefault.jpg"))break;if(L>640||v>480)if(Q=l.rO("maxresdefault.jpg"))break;if(L>320||v>180)if(Q=l.rO("sddefault.jpg")||l.rO("hqdefault.jpg")||l.rO("mqdefault.jpg"))break;if(Q=l.rO("default.jpg"))break}g.XT(T)&&(T=new Image,T.addEventListener("load",
  12378. function(){Zjg()}),T.src=Q?Q:"",this.api.eZ().tick("ftr"));
  12379. this.Y.style.backgroundImage=Q?"url("+Q+")":""};g.S(g.ep,g.p);g.ep.prototype.resize=function(){};
  12380. g.ep.prototype.S=function(T){var Q=this;this.L=!1;Z_I(this);var k=T.k9,l=this.api.G();k!=="GENERIC_WITHOUT_LINK"||l.B?k==="TOO_MANY_REQUESTS"?(l=this.api.getVideoData(),this.qF(y_(this,"TOO_MANY_REQUESTS_WITH_LINK",l.fB(),void 0,void 0,void 0,!1))):k!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||l.B?this.api.G().V("html5_enable_bandaid_error_screen")&&k==="HTML5_SPS_UMP_STATUS_REJECTED"&&!l.B?(l=l.hostLanguage,T="//support.google.com/youtube?p=videoError",l&&(T=g.sD(T,{hl:l})),this.qF(y_(this,"HTML5_SPS_UMP_STATUS_REJECTED",
  12381. T))):this.api.G().V("enable_adb_handling_in_sabr")&&k==="BROWSER_OR_EXTENSION_ERROR"&&!l.B?(l=l.hostLanguage,T="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",l&&(T=g.sD(T,{hl:l})),this.qF(y_(this,"BROWSER_OR_EXTENSION_ERROR",T))):this.qF(g.FB(T.errorMessage)):this.qF(y_(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(T=l.hostLanguage,k="//support.google.com/youtube/?p=player_error1",T&&(k=g.sD(k,
  12382. {hl:T})),this.qF(y_(this,"GENERIC_WITH_LINK_AND_CPN",k,!0)),l.Ig&&!l.Y&&Rc5(this,function(L){if(g.wh(L,Q.api,!h9(Q.api.G()))){L={as3:!1,html5:!0,player:!0,cpn:Q.api.getVideoData().clientPlaybackNonce};var q=Q.api;q.UM("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:L});q.isFullscreen()&&q.toggleFullscreen()}}));
  12383. if(this.L){var v=this.L_("ytp-error-link");v&&(this.api.createClientVe(v,this,216104),this.api.logVisibility(v,!0),Rc5(this,function(){Q.api.logClick(v)}))}};
  12384. var UC5=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.S(fp5,g.p);fp5.prototype.EF=function(T,Q,k){k=k===void 0?!1:k;switch(Q){case 1:ij(this,T,this.L,k);break;case 2:ij(this,T,this.Y,k);break;case 3:ij(this,T,this.T,k);break;case 4:ij(this,T,this.S,k)}};g.S(Gwf,g.p);g.h=Gwf.prototype;g.h.onClick=function(T){this.innertubeCommand?(this.U.tj("innertubeCommand",this.innertubeCommand),T.preventDefault()):g.wh(T,this.U,!0);this.U.logClick(this.element)};
  12385. g.h.onVideoDataChange=function(T,Q){IpI(this,Q);this.yU&&hc5(this,this.yU)};
  12386. g.h.wk=function(T){var Q=this.U.getVideoData();this.videoId!==Q.videoId&&IpI(this,Q);this.T&&hc5(this,T.state);this.yU=T.state};
  12387. g.h.fA=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)};
  12388. g.h.sG=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.S(V_,g.p);V_.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.p.prototype.hide.call(this)};
  12389. V_.prototype.onStateChange=function(T){this.OH(T.state)};
  12390. V_.prototype.OH=function(T){if(g.J(T,128)||this.api.NC())var Q=!1;else{var k;Q=this.api.V("web_watch_enable_multiview_manager")&&((k=this.api.getVideoData())==null?0:Ra(k))?!1:g.J(T,16)||g.J(T,1)?!0:!1}Q?this.T.start():this.hide()};
  12391. V_.prototype.S=function(){this.message.style.display="block"};g.S(TK,g.LA);TK.prototype.onMutedAutoplayChange=function(T){this.L&&(T?(swJ(this),this.fA()):(this.T&&this.logClick(),this.sG()))};
  12392. TK.prototype.Pl=function(T){this.api.isMutedByMutedAutoplay()&&g.RY(T,2)&&this.sG()};
  12393. TK.prototype.onClick=function(){this.api.unMute();this.logClick()};
  12394. TK.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.S(g.Q7,g.Bj);g.h=g.Q7.prototype;g.h.init=function(){var T=this.api,Q=T.getPlayerStateObject();this.sA=T.getPlayerSize();this.LA(Q);this.q3();this.zx();this.api.publish("basechromeinitialized",this);this.oZ()&&this.api.publish("standardControlsInitialized")};
  12395. g.h.onVideoDataChange=function(T,Q){var k=this.kI!==Q.videoId;if(k||T==="newdata")T=this.api,T.isFullscreen()||(this.sA=T.getPlayerSize());k&&(this.kI=Q.videoId,k=this.Ci,k.i9=3E3,pk(k,512,!0),this.q3());this.api.V("web_render_jump_buttons")&&Q.showSeekingControls&&(this.Ih=572)};
  12396. g.h.J3j=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
  12397. g.h.K4=function(){var T=this.api.Vw()&&this.api.Kt(),Q=this.api.K9();return this.ZI||T||this.eb||Q};
  12398. g.h.Y4=function(){var T=!this.K4();g.gl(this.api.getRootNode(),"ytp-menu-shown",!T)};
  12399. g.h.M4=function(T){try{if(!g.SO(this.api.getRootNode(),T))return!1}catch(Q){return!1}for(;T&&!xpt(T);)T=T===this.api.getRootNode()?null:T.parentElement||null;return!!T};
  12400. g.h.Dl=function(T){var Q=this.api.getRootNode();g.gl(Q,"ytp-autohide",T);g.gl(Q,"ytp-autohide-active",!0);this.rF.start(T?250:100);T&&(this.eS=!1,g.Lb(Q,"ytp-touch-mode"));this.Ac=!T;this.api.qP(!T);this.api.V("delhi_modern_web_player")&&this.api.publish("autohideupdate",T)};
  12401. g.h.pN=function(){var T=this.api.getRootNode();g.gl(T,"ytp-autohide-active",!1)};
  12402. g.h.PCm=function(){this.eT=!0};
  12403. g.h.Gx_=function(T){if(this.api.G().V("player_doubletap_to_seek")||this.api.G().C)this.eT=!1,this.CT&&this.J6(this.CT),this.GS===0&&kW(this,T)?(this.sb(),this.UN.start(),this.CT=this.Z(this.api.Hx(),"touchmove",this.PCm,void 0,!0)):this.UN.stop();zcu(this)&&kW(this,T)&&!this.api.G().C&&CIT(this);var Q=this.Zk.n$();if(!g.Qk(this.api.G())&&ya&&Xbg(this,T))Q&&T.preventDefault();else if(this.eS=!0,g.oF(this.api.getRootNode(),"ytp-touch-mode"),this.Ci.DS(),this.api.G().V("player_doubletap_to_seek")||this.api.G().C)if(Q=
  12404. this.api.getPlayerStateObject(),!(!this.api.Yo()||g.J(Q,2)&&g.$D(this.api)||g.J(Q,64))){Q=Date.now()-this.jB;this.GS+=1;if(Q<=350){this.Oq=!0;Q=this.api.getPlayerSize().width/3;var k=this.api.getRootNode().getBoundingClientRect(),l=T.targetTouches[0].clientX-k.left;k=T.targetTouches[0].clientY-k.top;var v=(this.GS-1)*10;l>0&&l<Q?(this.xT(-1,l,k,v),this.api.seekBy(-10*this.api.getPlaybackRate())):l>Q*2&&l<Q*3&&(this.xT(1,l,k,v),this.api.seekBy(10*this.api.getPlaybackRate()));T.preventDefault()}else Wa&&
  12405. this.api.G().C&&kW(this,T)&&T.preventDefault();this.jB=Date.now();this.QS.start()}};
  12406. g.h.Kr9=function(){this.m2.Fr=!1;this.api.publish("rootnodemousedown",this.m2)};
  12407. g.h.A6q=function(T){if(this.api.G().V("web_fix_fine_scrubbing_false_play")){if(Xbg(this,T)||this.m2.Fr)return}else if(this.m2.Fr||Xbg(this,T))return;zcu(this)||!kW(this,T)||this.UN.isActive()||(CIT(this),T.preventDefault());this.Oq&&(this.Oq=!1)};
  12408. g.h.sb=function(){};
  12409. g.h.Qu=function(){};
  12410. g.h.xT=function(){};
  12411. g.h.renderChapterSeekingAnimation=function(){};
  12412. g.h.GR=function(){var T=this.api.getPlayerStateObject();g.J(T,2)&&g.$D(this.api)||(T.isOrWillBePlaying()?this.api.pauseVideo():(this.A_&&(T.isCued()||g.J(T,1024))&&!this.api.G().V("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.A_.L.element),this.api.KM(),this.api.playVideo(),this.A_&&document.activeElement===this.A_.L.element&&((T=this.oZ())==null?T=0:T.playButton?(T.playButton.focus(),T=!0):T=!1,T||this.api.getRootNode().focus())))};
  12413. g.h.j_6=function(T){var Q=this,k=this.api.getPresentingPlayerType();if(!BYJ(this,zL(T)))if(T=this.api.G(),(this.api.G().V("player_doubletap_to_seek")||this.api.G().C)&&this.Oq)this.Oq=!1;else if(T.Tg&&k!==3)try{this.api.toggleFullscreen().catch(function(l){Q.GZ(l)}),this.api.V("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.Hx().element)}catch(l){this.GZ(l)}};
  12414. g.h.GZ=function(T){String(T).includes("fullscreen error")?g.rB(T):g.bA(T)};
  12415. g.h.bAk=function(T){wbX(this,.3,T.scale);T.preventDefault()};
  12416. g.h.I8q=function(T){wbX(this,.1,T.scale)};
  12417. g.h.zx=function(){var T=this.api.Hx().getPlayerSize(),Q=this.api.getRootNode(),k=T.width>=650,l=T.width<528;this.Ci.resize();if(this.api.V("web_player_use_screen_width_for_big_mode")){var v,L=T.width>=((v=g.jj(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?v:2E3);g.gl(Q,"ytp-big-mode",L)}g.gl(Q,"ytp-fullscreen",this.api.isFullscreen());g.gl(Q,"ytp-large-width-mode",k);this.api.V("delhi_modern_web_player")?g.gl(Q,"ytp-xsmall-width-mode",l):g.gl(Q,"ytp-small-mode",this.tb());
  12418. g.gl(Q,"ytp-tiny-mode",this.Gv());g.gl(Q,"ytp-big-mode",this.jj());this.Gb&&this.Gb.resize(T)};
  12419. g.h.Pl=function(T){this.LA(T.state);this.q3()};
  12420. g.h.JJ=T5(3);g.h.Wa=function(){var T=!!this.kI&&!this.api.eD()&&!this.JG,Q=this.api.getPresentingPlayerType()===2,k=this.api.G();if(Q)return k=xY(this.api.Bx()),T&&(k&&k.player?T=(T=k.player.getVideoData(2))?T.isListed&&!g.ZX(k.player.G()):!1:(MH("showInfoBarDuringAd: this is null"),T=!1)),T;Q=k.V("web_player_imax_theater_mode")&&this.api.zs();return T&&(k.UY||Q||this.api.isFullscreen()||k.QE)};
  12421. g.h.q3=function(){var T=this.Wa();this.Dr!==T&&(this.Dr=T,g.gl(this.api.getRootNode(),"ytp-hide-info-bar",!T))};
  12422. g.h.LA=function(T){var Q=T.isCued()||this.api.Pc()&&this.api.getPresentingPlayerType()!==3;Q!==this.isCued&&(this.isCued=Q,this.l3&&this.J6(this.l3),this.l3=this.Z(this.api.Hx(),"touchstart",this.Gx_,void 0,Q));var k=this.Ci,l=T.isPlaying()&&!g.J(T,32)||this.api.zS();pk(k,128,!l);k=this.Ci;l=this.api.getPresentingPlayerType()===3;pk(k,256,l);k=this.api.getRootNode();g.J(T,2)?l=[EZ.ENDED]:(l=[],g.J(T,8)?l.push(EZ.PLAYING):g.J(T,4)&&l.push(EZ.PAUSED),g.J(T,1)&&!g.J(T,32)&&l.push(EZ.BUFFERING),g.J(T,
  12423. 32)&&l.push(EZ.SEEKING),g.J(T,64)&&l.push(EZ.UNSTARTED));g.eA(this.KW,l)||(g.qN(k,this.KW),this.KW=l,g.vq(k,l));l=this.api.G();var v=g.J(T,2);a:{var L=this.api.G();var q=L.controlsType;switch(q){case "2":case "0":L=!1;break a}L=q==="3"&&!g.J(T,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Upm(xY(this.api.Bx())))||this.api.K9()||g.Qk(L)&&this.api.getPresentingPlayerType()===2?!1:!0}g.gl(k,"ytp-hide-controls",!L);g.gl(k,"ytp-native-controls",l.controlsType==="3"&&!Q&&!v&&!this.eb);g.J(T,
  12424. 128)&&!g.Qk(l)?(this.Gb||(this.Gb=new g.ep(this.api),g.P(this,this.Gb),g.TQ(this.api,this.Gb.element,4)),this.Gb.S(T.ge),this.Gb.show()):this.Gb&&(this.Gb.dispose(),this.Gb=null)};
  12425. g.h.VV=function(){return this.api.Vw()&&this.api.Kt()?(this.api.C4(!1,!1),!0):this.api.eD()?(g.Jy(this.api,!0),!0):!1};
  12426. g.h.onMutedAutoplayChange=function(T){this.eb=T;this.Y4()};
  12427. g.h.jj=function(){return!1};
  12428. g.h.tb=function(){return!this.jj()&&(this.api.getPlayerSize().width<this.Ih||this.api.getPlayerSize().height<290)};
  12429. g.h.Gv=function(){return this.tb()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
  12430. g.h.uS=function(){return this.eS};
  12431. g.h.K$=function(){return null};
  12432. g.h.yM=function(){return null};
  12433. g.h.IM=function(){var T=this.api.Hx().getPlayerSize();return new g.tZ(0,0,T.width,T.height)};
  12434. g.h.handleGlobalKeyDown=function(){return!1};
  12435. g.h.handleGlobalKeyUp=function(){return!1};
  12436. g.h.MG=function(){};
  12437. g.h.showControls=function(T){T!==void 0&&this.api.Hx().qP(T)};
  12438. g.h.DS=function(){};
  12439. g.h.oZ=function(){return null};g.S(g.lz,g.p);g.lz.prototype.show=function(){g.p.prototype.show.call(this);g.Ez(this.T)};
  12440. g.lz.prototype.hide=function(){this.S.stop();g.p.prototype.hide.call(this)};
  12441. g.lz.prototype.Qu=function(T){var Q=this.U.V("delhi_modern_web_player_icons");T?g.J(this.U.getPlayerStateObject(),64)||(Q=Q?Xc():zI(),oG(this,Q,"\u64ad\u653e")):(T=this.U.getVideoData(),T.isLivePlayback&&!T.allowLiveDvr?(Q=Q?Kdb():nqu(),oG(this,Q,"\u505c\u6b62\u76f4\u64ad")):(Q=Q?d5t():wyg(),oG(this,Q,"\u6682\u505c")))};g.S(AYy,g.p);g.h=AYy.prototype;g.h.g2=function(T){T?this.T=OU(this.U,this.element,null):(this.T=this.T,this.T(),this.T=null)};
  12442. g.h.fA=function(){this.U.G().V("player_new_info_card_format")&&g.lw(this.U.getRootNode(),"ytp-cards-teaser-shown")&&!g.Qk(this.U.G())||(this.fade.show(),g.vd("iv-button-shown"))};
  12443. g.h.sG=function(){g.vd("iv-button-hidden");this.fade.hide()};
  12444. g.h.n$=function(){return this.Sr&&this.fade.state!==4};
  12445. g.h.EK=function(){this.T&&this.T();g.p.prototype.EK.call(this)};
  12446. g.h.onHover=function(){g.vd("iv-button-mouseover")};
  12447. g.h.onClicked=function(T){this.U.Vw();var Q=g.lw(this.U.getRootNode(),"ytp-cards-teaser-shown");g.vd("iv-teaser-clicked",Q);var k;if((k=this.U.getVideoData())==null?0:g.kD(k)){var l;T=(l=this.U.getVideoData())==null?void 0:g.lt(l);(T==null?0:T.onIconTapCommand)&&this.U.tj("innertubeCommand",T.onIconTapCommand)}else l=T.screenX===0&&T.screenY===0,this.U.C4(!this.U.Kt(),l,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.S(b_I,g.p);g.h=b_I.prototype;g.h.fg=function(){this.U.Vw()&&this.U.Kt()&&this.n$()&&this.sG()};
  12448. g.h.dW=function(){this.sG();!this.U.Vw()&&this.U.G().V("enable_error_corrections_infocards_icon_web")&&this.cT.sG();g.vd("iv-teaser-clicked",this.T!=null);if(this.onClickCommand)this.U.tj("innertubeCommand",this.onClickCommand);else{var T;((T=this.U.getVideoData())==null?0:g.kD(T))||this.U.C4(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
  12449. g.h.CL=function(){g.vd("iv-teaser-mouseover");this.T&&this.T.stop()};
  12450. g.h.SMe=function(T){this.U.G().V("player_new_info_card_format")&&!g.Qk(this.U.G())?this.cT.sG():this.U.G().V("enable_error_corrections_infocards_icon_web")&&this.cT.fA();this.T||!T||this.U.Kt()||this.S&&this.S.isActive()||(this.fA(T),g.vd("iv-teaser-shown"))};
  12451. g.h.fA=function(T){this.onClickCommand=T.onClickCommand;this.updateValue("text",T.teaserText);this.element.setAttribute("dir",g.fb(T.teaserText));this.fade.show();if(this.U.G().V("player_new_info_card_format")){var Q=this.L_("ytp-cards-teaser-info-icon"),k=this.L_("ytp-cards-teaser-channel-avatar");k&&T.Ni&&g.OI(T.Ni)&&(k.src=T.Ni,k.style.display="block",Q.style.display="none")}this.S=new g.FA(function(){g.oF(this.U.getRootNode(),"ytp-cards-teaser-shown");this.U.V("player_new_info_card_format")&&
  12452. !g.Qk(this.U.G())&&this.cT.sG();this.wD()},0,this);
  12453. this.S.start();this.cT.g2(!1);this.T=new g.FA(this.sG,580+T.durationMs,this);this.T.start();this.Y.push(this.listen("mouseover",this.rj,this));this.Y.push(this.listen("mouseout",this.lB,this))};
  12454. g.h.wD=function(){if(!this.U.G().V("player_new_info_card_format")&&g.Qk(this.U.G())&&this.Sr){var T=this.cT.element.offsetLeft,Q=g.gK("ytp-cards-button-icon"),k=this.U.isFullscreen()?54:36;if(Q){var l=T+Q.offsetLeft;this.element.style.marginRight=this.cT.element.offsetParent.offsetWidth-T-Q.offsetLeft-k+"px";this.element.style.marginLeft=l+"px"}}};
  12455. g.h.QG=function(){g.Qk(this.U.G())&&this.U.tb()&&this.Sr&&this.j.start()};
  12456. g.h.rj=function(){this.B.stop();this.T&&this.T.isActive()&&this.C.start()};
  12457. g.h.lB=function(){this.C.stop();this.T&&!this.T.isActive()&&this.B.start()};
  12458. g.h.B5e=function(){this.T&&this.T.stop()};
  12459. g.h.ReB=function(){this.sG()};
  12460. g.h.e7=function(){this.sG()};
  12461. g.h.sG=function(){!this.T||this.L&&this.L.isActive()||(g.vd("iv-teaser-hidden"),this.fade.hide(),g.Lb(this.U.getRootNode(),"ytp-cards-teaser-shown"),this.L=new g.FA(function(){for(var T=g.B(this.Y),Q=T.next();!Q.done;Q=T.next())this.J6(Q.value);this.Y=[];this.T&&(this.T.dispose(),this.T=null);this.cT.g2(!0);!this.U.Vw()&&this.U.G().V("enable_error_corrections_infocards_icon_web")&&this.cT.sG()},330,this),this.L.start())};
  12462. g.h.n$=function(){return this.Sr&&this.fade.state!==4};
  12463. g.h.EK=function(){var T=this.U.getRootNode();T&&g.Lb(T,"ytp-cards-teaser-shown");g.vU(this.S,this.L,this.T);g.p.prototype.EK.call(this)};var dF={},Lm=(dF.BUTTON="ytp-button",dF.TITLE_NOTIFICATIONS="ytp-title-notifications",dF.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",dF.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",dF.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",dF);g.S(rY6,g.p);
  12464. rY6.prototype.onClick=function(){this.api.logClick(this.element);var T=!this.T;this.updateValue("label",T?"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5":"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5");this.updateValue("pressed",T);cYJ(this,T)};g.Tv("yt.pubsub.publish",g.vd);g.S(g.qa,g.p);g.qa.prototype.Y=function(){window.location.reload()};
  12465. g.qa.prototype.T=function(){g.oF(this.element,"ytp-sb-subscribed")};
  12466. g.qa.prototype.S=function(){g.Lb(this.element,"ytp-sb-subscribed")};g.S(Kwt,g.p);g.h=Kwt.prototype;g.h.G9K=function(T){this.api.logClick(this.S);var Q=this.api.G();Q.S||Q.Jj?tDu(this)&&(this.isExpanded()?this.wg():this.mz()):g.GH(window,nFX(this));T.preventDefault()};
  12467. g.h.Lq=function(){H_f(this);this.channel.classList.remove("ytp-title-expanded")};
  12468. g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
  12469. g.h.mz=function(){if(tDu(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.L&&this.L.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var T=this.api.getVideoData();this.T&&T.XU&&T.subscribed&&(this.T.show(),
  12470. this.api.logVisibility(this.T.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
  12471. g.h.wg=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.L&&this.L.start()};
  12472. g.h.Aj=function(){var T=this.api.G();this.o_(!this.api.isEmbedsShortsMode());var Q=this.api.getVideoData(),k=this.api.G(),l=this.api.getVideoData();this.Y=!1;var v=!!l.videoId&&!!l.Tg&&!!l.profilePicture;this.api.getPresentingPlayerType()===2?this.Y=v&&!!l.isListed&&!!l.author:g.Qk(k)&&(this.Y=v&&!l.hh&&!k.L&&!(k.C&&this.api.getPlayerSize().width<200));k=Q.profilePicture;T=g.Qk(T)?Q.expandedTitle:Q.author;k=k===void 0?"":k;T=T===void 0?"":T;this.Y?(this.C!==k&&(this.S.style.backgroundImage="url("+
  12473. k+")",this.C=k),this.updateValue("channelLink",nFX(this)),this.updateValue("channelLogoLabel",g.o0("$CHANNEL_NAME\u7684\u7167\u7247",{CHANNEL_NAME:T})),g.oF(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Lb(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.S,this.Y&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=Q.hH);this.updateValue("expandedTitle",Q.expandedTitle);this.updateValue("expandedSubtitle",Q.expandedSubtitle)};
  12474. g.h.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.S,this.Y&&T)};g.S(gu,g.UQ);gu.prototype.T=function(T){T.defaultPrevented||T.keyCode!==39||(this.element.click(),T.preventDefault())};g.S(O_6,g.p);g.h=O_6.prototype;g.h.show=function(){g.p.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
  12475. g.h.hide=function(){g.p.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
  12476. g.h.lJ=function(T){var Q=zL(T),k=g.SO(this.closeButton.element,Q),l=g.SO(this.element,Q);T=this.T&&g.SO(this.T,Q)&&g.B8(T);Q&&(l||T)&&!k||this.hide()};
  12477. g.h.rk=function(){apy(g.mq(this.ZV.G()),"user_info_panel",function(){window.location.reload()})};
  12478. g.h.Aj=function(){var T=this.ZV.G(),Q={USER_NAME:T.userDisplayName,USER_EMAIL:T.Hl};this.updateValue("icon",NiX());this.updateValue("watchingAsUsername",g.o0("\u6b63\u5728\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",Q));T.Hl?this.updateValue("watchingAsEmail",g.o0("($USER_EMAIL)",Q)):this.updateValue("watchingAsEmail","")};g.S($C5,g.b_);g.h=$C5.prototype;g.h.LF=function(){this.YB.sG()};
  12479. g.h.t6k=function(){bf(this.B0.element)};
  12480. g.h.c3B=function(){YW(this,this.U.getDebugText(!0))&&oG(this.G_,fD())};
  12481. g.h.oBd=function(){YW(this,this.U.getVideoEmbedCode())&&oG(this.G_,Ikb());this.U.logClick(this.PH.element)};
  12482. g.h.EBk=function(){YW(this,this.U.getVideoUrl(!0,!0))&&oG(this.G_,sC());this.U.logClick(this.getVideoUrl.element)};
  12483. g.h.QgO=function(){YW(this,this.U.getVideoUrl(!1,!0))&&oG(this.G_,sC());this.U.logClick(this.OY.element)};
  12484. g.h.onLoopChange=function(T){var Q;(Q=this.vc)==null||Xe(Q,T)};
  12485. g.h.mYK=function(){this.U.setLoopVideo(this.vc.getValue());this.YB.sG();this.U.logClick(this.vc.element)};
  12486. g.h.l8_=function(T){this.U.reportPlaybackIssue();if(g.wh(T,this.U,!h9(this.U.G()))){T=this.U;var Q=T.app.getFeedbackProductData();T.UM("onFeedbackStartRequest",Q);T.isFullscreen()&&T.toggleFullscreen()}this.YB.sG()};
  12487. g.h.MVB=function(){g.Ay(this.U,"isVideoInfoVisible",[])?g.Ay(this.U,"hideVideoInfo",[]):g.Ay(this.U,"showVideoInfo",[]);this.YB.sG()};
  12488. g.h.a8m=function(){this.Se&&(this.K6||(this.K6=new O_6(this.U,this.Se.element),g.P(this,this.K6),g.TQ(this.U,this.K6.element,4)),this.K6.show(),this.YB.sG(),this.U.logClick(this.Se.element))};
  12489. g.h.onVideoDataChange=function(T,Q){WwH(this,Q)};
  12490. g.h.vx=function(T){g.b_.prototype.vx.call(this,T);this.U.logVisibility(this.PH.element,T);this.U.logVisibility(this.getVideoUrl.element,T);this.U.logVisibility(this.OY.element,T);this.vc&&this.U.logVisibility(this.vc.element,T);this.Se&&this.U.logVisibility(this.Se.element,T)};g.S(Fwf,g.cp);g.h=Fwf.prototype;g.h.onTouchStart=function(T){var Q=zL(T);if(!(Q&&(dK(Q,"a")||dK(Q,null,"ytp-no-contextmenu"))||this.Sr)){var k;this.qO=(T=(k=T.touches)==null?void 0:k.item(0))?new g.WX(T.clientX,T.clientY):new g.WX(0,0);this.z9.start()}};
  12491. g.h.df=function(){this.z9.stop()};
  12492. g.h.LFO=function(){this.open(this.qO)};
  12493. g.h.Dh=function(){if(this.L&&JY5(this.L)){var T=JY5(this.L).element;T.tabIndex=-1;T.focus()}else this.element.tabIndex=-1,this.element.focus()};
  12494. g.h.show=function(){this.L||(this.L=new $C5(this.U,this,this.G_),g.P(this,this.L),g.Dx(this,this.L));this.L.onLoopChange(this.U.getLoopVideo());g.cp.prototype.show.call(this);this.U.logVisibility(this.element,!0);this.L.vx(!0)};
  12495. g.h.hide=function(){ecC(this);g.cp.prototype.hide.call(this);this.U.logVisibility(this.element,!1);this.L&&this.L.vx(!1)};
  12496. g.h.pdK=function(T){var Q=zL(T);this.Sr||Q&&(dK(Q,"a")||dK(Q,null,"ytp-no-contextmenu"))||(T.preventDefault(),this.open(new g.WX(T.pageX,T.pageY)))};
  12497. g.h.fA=function(T){if(T){var Q=T.getBoundingClientRect();this.open(new g.WX(Q.x,Q.y))}g.cp.prototype.fA.call(this,T)};
  12498. g.h.open=function(T){EF5(this);var Q=this.U.getVideoData();g.gl(this.element,"ytp-dni",Q.hh);this.element.style.left="";this.element.style.top="";T.x++;T.y++;g.cp.prototype.fA.call(this);var k=qz(this).body;Q=new KO(0,Infinity,Infinity,0);var l=jO(k);for(var v=l.T.body,L=l.T.documentElement,q=a1f(l.T);k=pmg(k);)if((!g.Y1||k.clientHeight!=0||k!=v)&&k!=v&&k!=L&&F3(k,"overflow")!="visible"){var Y=g.Vf(k),U=new g.WX(k.clientLeft,k.clientTop);Y.x+=U.x;Y.y+=U.y;Q.top=Math.max(Q.top,Y.y);Q.right=Math.min(Q.right,
  12499. Y.x+k.clientWidth);Q.bottom=Math.min(Q.bottom,Y.y+k.clientHeight);Q.left=Math.max(Q.left,Y.x)}v=q.scrollLeft;q=q.scrollTop;Q.left=Math.max(Q.left,v);Q.top=Math.max(Q.top,q);l=Dp5(l.T.defaultView||window);Q.right=Math.min(Q.right,v+l.width);Q.bottom=Math.min(Q.bottom,q+l.height);l=Q.top>=0&&Q.left>=0&&Q.bottom>Q.top&&Q.right>Q.left?Q:null;Q=this.size;T=T.clone();Q=Q.clone();l&&(q=Q,v=5,(v&65)==65&&(T.x<l.left||T.x>=l.right)&&(v&=-2),(v&132)==132&&(T.y<l.top||T.y>=l.bottom)&&(v&=-5),T.x<l.left&&v&1&&
  12500. (T.x=l.left),v&16&&(L=T.x,T.x<l.left&&(T.x=l.left),T.x+q.width>l.right&&(q.width=Math.min(l.right-T.x,L+q.width-l.left),q.width=Math.max(q.width,0))),T.x+q.width>l.right&&v&1&&(T.x=Math.max(l.right-q.width,l.left)),T.y<l.top&&v&4&&(T.y=l.top),v&32&&(L=T.y,T.y<l.top&&(T.y=l.top),T.y+q.height>l.bottom&&(q.height=Math.min(l.bottom-T.y,L+q.height-l.top),q.height=Math.max(q.height,0))),T.y+q.height>l.bottom&&v&4&&(T.y=Math.max(l.bottom-q.height,l.top)));l=new g.tZ(0,0,0,0);l.left=T.x;l.top=T.y;l.width=
  12501. Q.width;l.height=Q.height;g.yf(this.element,new g.WX(l.left,l.top));g.N5(this.Y);this.Y.Z(qz(this),"contextmenu",this.aVH);this.Y.Z(this.U,"fullscreentoggled",this.onFullscreenToggled);this.Y.Z(this.U,"pageTransition",this.Ji)};
  12502. g.h.aVH=function(T){if(!T.defaultPrevented){var Q=zL(T);g.SO(this.element,Q)||this.sG();this.U.G().disableNativeContextMenu&&T.preventDefault()}};
  12503. g.h.onFullscreenToggled=function(){this.sG();EF5(this)};
  12504. g.h.Ji=function(){this.sG()};g.S(Uu,g.p);Uu.prototype.onClick=function(){var T=this,Q,k,l,v;return g.a(function(L){if(L.S==1)return Q=T.api.G(),k=T.api.getVideoData(),l=T.api.getPlaylistId(),v=Q.getVideoUrl(k.videoId,l,void 0,!0),g.c(L,VDu(T,v),2);L.T&&i_5(T);T.api.logClick(T.element);g.BT(L)})};
  12505. Uu.prototype.Aj=function(){this.updateValue("icon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","\u590d\u5236\u94fe\u63a5");this.updateValue("tooltip-title","\u590d\u5236\u94fe\u63a5");
  12506. this.visible=yYH(this);g.gl(this.element,"ytp-copylink-button-visible",this.visible);this.o_(this.visible);this.tooltip.wO();this.api.logVisibility(this.element,this.visible&&this.N)};
  12507. Uu.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};
  12508. Uu.prototype.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.element,"ytp-copylink-button-visible")};g.S(T9t,g.p);g.h=T9t.prototype;g.h.show=function(){g.p.prototype.show.call(this);g.Ez(this.S)};
  12509. g.h.hide=function(){this.Y.stop();this.L=0;this.L_("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Lb(this.element,"ytp-chapter-seek");g.Lb(this.element,"ytp-time-seeking");g.p.prototype.hide.call(this)};
  12510. g.h.xT=function(T,Q,k,l){this.L=T===this.C?this.L+l:l;this.C=T;var v=T===-1?this.D:this.j;v&&this.U.logClick(v);this.B?this.S.stop():g.iN(this.S);this.Y.start();this.element.setAttribute("data-side",T===-1?"back":"forward");var L=3*this.U.Hx().getPlayerSize().height;v=this.U.Hx().getPlayerSize();v=v.width/3-3*v.height;this.T.style.width=L+"px";this.T.style.height=L+"px";T===1?(this.T.style.left="",this.T.style.right=v+"px"):T===-1&&(this.T.style.right="",this.T.style.left=v+"px");var q=L*2.5;L=q/
  12511. 2;var Y=this.L_("ytp-doubletap-ripple");Y.style.width=q+"px";Y.style.height=q+"px";T===1?(T=this.U.Hx().getPlayerSize().width-Q+Math.abs(v),Y.style.left="",Y.style.right=T-L+"px"):T===-1&&(T=Math.abs(v)+Q,Y.style.right="",Y.style.left=T-L+"px");Y.style.top="calc((33% + "+Math.round(k)+"px) - "+L+"px)";if(k=this.L_("ytp-doubletap-ripple"))k.classList.remove("ytp-doubletap-ripple"),k.classList.add("ytp-doubletap-ripple");Q6X(this,this.B?this.L:l)};
  12512. g.h.KU=function(T,Q,k){if(k=k===void 0?null:k){var l=T===-1?this.D.visualElement:this.j.visualElement;k={seekData:k};var v=g.C9();v&&jx(v,l,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",k)}this.L=T===this.C?this.L+Q:Q;this.C=T;l=this.U.Hx().getPlayerSize();this.B?this.S.stop():g.iN(this.S);this.Y.start();this.element.setAttribute("data-side",T===-1?"back":"forward");g.oF(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";k=l.width*.1-15;T===1?this.z9?(this.T.style.right=
  12513. k+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=l.width*.8-30+"px"):T===-1&&(this.z9?(this.T.style.right="",this.T.style.left=k+"px"):(this.T.style.right="",this.T.style.left=l.width*.1-15+"px"));this.T.style.top=l.height*.5+15+"px";Q6X(this,this.B?this.L:Q)};
  12514. g.h.Zn=function(T,Q,k){k=k===void 0?null:k;g.iN(this.S);this.Y.start();switch(T){case -1:T="back";break;case 1:T="forward";break;default:T=""}this.element.setAttribute("data-side",T);this.T.style.width="0";this.T.style.height="0";g.oF(this.element,"ytp-chapter-seek");this.updateValue("seekText",Q);this.updateValue("seekTime","");Q=this.L_("ytp-seek-icon");if(k){a:if(k){switch(k){case "PREMIUM_STANDALONE":k=rgf();break a;case "PREMIUM_STANDALONE_CAIRO":k=cgg();break a}k=void 0}else k=null;this.updateValue("seekIcon",
  12515. k);Q.style.display="inline-block"}else Q.style.display="none"};g.S(j6y,N4);g.h=j6y.prototype;g.h.ZJ=function(T){this.Bd||(this.Bd=new u_(this.U),g.P(this,this.Bd));var Q,k;if((Q=this.QR)==null?0:(k=Q.menu)==null?0:k.menuRenderer)this.Bd.open(this.QR.menu.menuRenderer,T.target),T.preventDefault()};
  12516. g.h.Hs=function(){return!!this.T};
  12517. g.h.FY=function(){return!!this.T};
  12518. g.h.nO=function(T){T.target===this.overflowButton.element?T.preventDefault():(this.Fk&&this.U.tj("innertubeCommand",this.Fk),this.wh(!1))};
  12519. g.h.Np=function(){this.wh(!0);var T,Q;((T=this.T)==null?0:(Q=T.bannerData)==null?0:Q.dismissedStatusKey)&&this.Ig.push(this.T.bannerData.dismissedStatusKey);this.rp()};
  12520. g.h.RW=function(){this.rp();fm(this)};
  12521. g.h.PKm=function(T){var Q=this,k;if(T.id!==((k=this.T)==null?void 0:k.identifier)){this.rp();k=g.B(this.xm);for(var l=k.next();!l.done;l=k.next()){var v=l.value,L=void 0,q=void 0;if((l=(L=v)==null?void 0:(q=L.bannerData)==null?void 0:q.itemData)&&v.identifier===T.id){q=L=void 0;var Y=((L=v)==null?void 0:(q=L.bannerData)==null?void 0:q.dismissedStatusKey)||"";if(this.Ig.includes(Y))return;this.T=v;this.banner.element.setAttribute("aria-label",l.accessibilityLabel||"");l.trackingParams&&(this.Y=!0,
  12522. this.U.setTrackingParams(this.badge.element,l.trackingParams));this.show();this.D.show();dW(this);this.i9.o_(!l.stayInApp);Zs6(this);l3b(this);ZL(this);this.Fk=g.t(l.onTapCommand,Dh);if(v=g.t(l.menuOnTap,Dh))this.QR=g.t(v,ilT);v=void 0;this.banner.update({thumbnail:(v=(l.thumbnailSources||[])[0])==null?void 0:v.url,title:l.productTitle,price:l.priceReplacementText?l.priceReplacementText:l.price,salesOriginalPrice:L$b(this),priceDropReferencePrice:qZ5(this),promotionText:vv5(this),priceA11yText:gvt(this),
  12523. affiliateDisclaimer:l.affiliateDisclaimer,vendor:MUJ(this)});Y=q=L=v=void 0;((v=l)==null?0:(L=v.hiddenProductOptions)==null?0:L.showDropCountdown)&&((q=l)==null?0:(Y=q.hiddenProductOptions)==null?0:Y.dropTimestampMs)&&(this.d5=new g.FA(function(){RoX(Q)},1E3),this.i9.hide(),this.countdownTimer.show(),RoX(this));
  12524. this.U.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&k2t(this)&&(this.OG=new g.FA(function(){ov5(Q)},1E3),ov5(this))}}this.U.getRootNode()&&g.oF(this.U.getRootNode(),"ytp-featured-product-shown")}};
  12525. g.h.rp=function(){this.T&&(this.T=void 0,this.FE(),this.U.getRootNode()&&g.Lb(this.U.getRootNode(),"ytp-featured-product-shown"))};
  12526. g.h.onVideoDataChange=function(T,Q){var k=this;T==="dataloaded"&&fm(this);var l,v,L;T=g.t((l=Q.getWatchNextResponse())==null?void 0:(v=l.playerOverlays)==null?void 0:(L=v.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer,EP_);this.overflowButton.show();this.dismissButton.hide();var q=T==null?void 0:T.featuredProductsEntityKey;this.trendingOfferEntityKey=T==null?void 0:T.trendingOfferEntityKey;this.xm.length||(Uc5(this,q),ZL(this));var Y;(Y=this.Z8)==null||Y.call(this);this.Z8=g.w4.subscribe(function(){Uc5(k,
  12527. q);ZL(k)})};
  12528. g.h.EK=function(){fm(this);Zs6(this);l3b(this);N4.prototype.EK.call(this)};g.S(ho5,g.p);ho5.prototype.onClick=function(){this.U.logClick(this.element,this.S)};g.S(s6b,g.LA);g.h=s6b.prototype;g.h.show=function(){g.LA.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);SZt(this,!0)};
  12529. g.h.hide=function(){g.LA.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);SZt(this,!1)};
  12530. g.h.getId=function(){return this.Y};
  12531. g.h.ym=function(){return this.itemData.length};
  12532. g.h.onVideoDataChange=function(T,Q){if(Q){var k,l,v,L;this.update({title:((k=Q.iS)==null?void 0:(l=k.title)==null?void 0:l.content)||"",body:((v=Q.iS)==null?void 0:(L=v.bodyText)==null?void 0:L.content)||""});var q;T=((q=Q.iS)==null?void 0:q.trackingParams)||null;this.U.setTrackingParams(this.element,T);q=g.B(this.itemData);for(T=q.next();!T.done;T=q.next())T.value.dispose();this.itemData=[];var Y;if((Y=Q.iS)==null?0:Y.ctaButtons)for(Q=g.B(Q.iS.ctaButtons),Y=Q.next();!Y.done;Y=Q.next())if(Y=g.t(Y.value,
  12533. pX$))Y=new ho5(this.U,Y,this.T),Y.Hk&&(this.itemData.push(Y),Y.XB(this.items))}};
  12534. g.h.EK=function(){this.hide();g.LA.prototype.EK.call(this)};g.S(zof,g.p);g.h=zof.prototype;g.h.onVideoDataChange=function(T,Q){B95(this,Q);this.yU&&w_u(this,this.yU)};
  12535. g.h.bJ=function(T){var Q=this.U.getVideoData();this.videoId!==Q.videoId&&B95(this,Q);w_u(this,T.state);this.yU=T.state};
  12536. g.h.pI=function(T){(this.L=T)?this.hide():this.T&&this.show()};
  12537. g.h.j7=function(){this.S||this.fA();this.showControls=!0};
  12538. g.h.Ai=function(){this.S||this.sG();this.showControls=!1};
  12539. g.h.fA=function(){var T,Q=(T=this.U)==null?void 0:T.getPlayerSize();T=Q.width<380;var k;Q=Q.height<(((k=this.U)==null?0:k.isEmbedsShortsMode())?400:280);var l,v;(((l=this.U)==null?0:l.getPlayerStateObject().isCued())||((v=this.U)==null?0:g.J(v.getPlayerStateObject(),1024)))&&T&&Q||!this.T||this.L||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))};
  12540. g.h.sG=function(){this.T&&!this.L&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))};
  12541. g.h.OG9=function(){this.S=!1;this.showControls||this.sG()};var jcT={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(jcT).reduce(function(T,Q){T[jcT[Q]]=Q;return T},{});
  12542. var kSJ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(kSJ).reduce(function(T,Q){T[kSJ[Q]]=Q;return T},{});
  12543. var lOe={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(lOe).reduce(function(T,Q){T[lOe[Q]]=Q;return T},{});var oyd,vye;oyd=[{option:"#fff",text:"\u767d\u8272"},{option:"#ff0",text:"\u9ec4\u8272"},{option:"#0f0",text:"\u7eff\u8272"},{option:"#0ff",text:"\u9752\u8272"},{option:"#00f",text:"\u84dd\u8272"},{option:"#f0f",text:"\u6d0b\u7ea2\u8272"},{option:"#f00",text:"\u7ea2\u8272"},{option:"#080808",text:"\u9ed1\u8272"}];vye=[{option:0,text:GK(0)},{option:.25,text:GK(.25)},{option:.5,text:GK(.5)},{option:.75,text:GK(.75)},{option:1,text:GK(1)}];
  12544. g.SL=[{option:"fontFamily",text:"\u5b57\u4f53\u7cfb\u5217",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"\u5b57\u4f53\u989c\u8272",options:oyd},{option:"fontSizeIncrement",text:"\u5b57\u53f7",options:[{option:-2,text:GK(.5)},{option:-1,text:GK(.75)},{option:0,text:GK(1)},{option:1,
  12545. text:GK(1.5)},{option:2,text:GK(2)},{option:3,text:GK(3)},{option:4,text:GK(4)}]},{option:"background",text:"\u80cc\u666f\u989c\u8272",options:oyd},{option:"backgroundOpacity",text:"\u80cc\u666f\u4e0d\u900f\u660e\u5ea6",options:vye},{option:"windowColor",text:"\u7a97\u53e3\u989c\u8272",options:oyd},{option:"windowOpacity",text:"\u7a97\u53e3\u4e0d\u900f\u660e\u5ea6",options:vye},{option:"charEdgeStyle",text:"\u5b57\u7b26\u8fb9\u7f18\u6837\u5f0f",options:[{option:0,text:"\u65e0"},{option:4,text:"\u9634\u5f71"},
  12546. {option:1,text:"\u51f8\u8d77"},{option:2,text:"\u4e0b\u6c89"},{option:3,text:"\u8fb9\u6846"}]},{option:"textOpacity",text:"\u5b57\u4f53\u4e0d\u900f\u660e\u5ea6",options:[{option:.25,text:GK(.25)},{option:.5,text:GK(.5)},{option:.75,text:GK(.75)},{option:1,text:GK(1)}]}];var LYE=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.S(cXI,g.Bj);g.h=cXI.prototype;
  12547. g.h.Ks=function(T){T.repeat||(this.L.WU=!1);var Q=!1,k=T.keyCode,l=zL(T),v=!T.altKey&&!T.ctrlKey&&!T.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||LYE.includes(k)),L=!1,q=!1,Y=this.api.G();T.defaultPrevented?(v=!1,q=!0):Y.YP&&!this.api.isMutedByEmbedsMutedAutoplay()&&(v=!1);if(k===9)Q=!0;else{if(l)switch(k){case 32:case 13:if(l.tagName==="BUTTON"||l.tagName==="A"||l.tagName==="INPUT")Q=!0,v=!1;else if(v){var U=l.getAttribute("role");!U||U!=="option"&&U!=="button"&&U.indexOf("menuitem")!==0||
  12548. (Q=!0,l.click(),L=!0)}break;case 37:case 39:case 36:case 35:Q=l.getAttribute("role")==="slider";break;case 38:case 40:U=l.getAttribute("role"),l=k===38?l.previousSibling:l.nextSibling,U==="slider"?Q=!0:v&&(U==="option"?(l&&l.getAttribute("role")==="option"&&l.focus(),L=Q=!0):U&&U.indexOf("menuitem")===0&&(l&&l.hasAttribute("role")&&l.getAttribute("role").indexOf("menuitem")===0&&l.focus(),L=Q=!0))}if(v&&!L)switch(k){case 38:L=Math.min(this.api.getVolume()+5,100);v1(this.G_,L,!1);this.api.setVolume(L);
  12549. q=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);v1(this.G_,L,!0);this.api.setVolume(L);q=L=!0;break;case 36:this.api.Yo()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),q=L=!0);break;case 35:this.api.Yo()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),q=L=!0)}}Q&&IG(this,!0);(Q||q)&&this.Ci.DS();(L||v&&this.handleGlobalKeyDown(k,T.shiftKey,T.ctrlKey,T.altKey,T.metaKey,T.key,T.code,T.repeat))&&T.preventDefault();Y.j&&(T={keyCode:T.keyCode,
  12550. altKey:T.altKey,ctrlKey:T.ctrlKey,metaKey:T.metaKey,shiftKey:T.shiftKey,handled:T.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Pk("onKeyPress",T))};
  12551. g.h.G1=function(T){var Q=T.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.L.n9)&&this.handleGlobalKeyUp(Q,T.shiftKey,T.ctrlKey,T.altKey,T.metaKey,T.key,T.code)&&T.preventDefault()};
  12552. g.h.handleGlobalKeyUp=function(T,Q,k,l,v,L,q){this.api.publish("keyboardserviceglobalkeyup",{keyCode:T,shiftKey:Q,ctrlKey:k,altKey:l,metaKey:v,key:L,code:q});Q=!1;if(this.L.WU)return Q;(L=g.y5(this.api.Bx()))&&(L=L.b$)&&L.Sr&&(L.jz(T),Q=!0);switch(T){case 9:IG(this,!0);Q=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.L.n9||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.G().YP){var Y,U;T=(Y=this.progressBar)==
  12553. null?void 0:(U=Y.S)==null?void 0:U.isEnabled;Q=this.GR(T)}break;case 39:(Gz?l:k)&&!v&&this.api.Yo()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),Y=(Y=this.api.getVideoData())?Y.NK:[],U=N9I(Y,this.api.getCurrentTime()*1E3),U!==-1&&this.T!=null&&(this.T.Zn(1,Y[U].title),this.api.seekTo(Y[U].startTime/1E3,void 0,void 0,void 0,52),Q=!0))}return Q};
  12554. g.h.handleGlobalKeyDown=function(T,Q,k,l,v,L,q,Y){Y||(this.L.WU=!1);var U=!1,R=this.api.G();if(R.YP&&!this.api.isMutedByEmbedsMutedAutoplay())return U;var Z=g.y5(this.api.Bx());if(Z&&(Z=Z.b$)&&Z.Sr)switch(T){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:U=Z.Aa(T)}R.B||U||(U=L||String.fromCharCode(T).toLowerCase(),this.S+=U,"awesome".indexOf(this.S)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.S)===0?(U=!0,4===this.S.length&&this.S==="bday"&&this.api.V("web_player_rtr_ctrls")&&
  12555. (um5(this.N),this.Ci.DS()),7===this.S.length&&this.S==="awesome"&&AzX(this.api.getRootNode(),"ytp-color-party")):(this.S=U,U="awesome".indexOf(this.S)===0||"bday".indexOf(this.S)===0));if(!U&&(!this.api.isMutedByEmbedsMutedAutoplay()||LYE.includes(T))){var f=this.api.getVideoData(),G,m;Z=(G=this.progressBar)==null?void 0:(m=G.S)==null?void 0:m.isEnabled;G=f?f.NK:[];m=Gz?l:k;switch(T){case 80:Q&&!R.sK&&(oG(this.G_,D5f(),"\u4e0a\u4e00\u4e2a"),this.api.previousVideo(),U=!0);break;case 78:Q&&!R.sK&&(oG(this.G_,
  12556. Sx(),"\u4e0b\u4e00\u4e2a"),this.api.nextVideo(),U=!0);break;case 74:this.api.Yo()&&(this.api.startSeekCsiAction(),this.T?this.api.V("enable_key_press_seek_logging")?(U=hG(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.KU(-1,10,U)):this.T.KU(-1,10):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
  12557. this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),U=!0);break;case 76:this.api.Yo()&&(this.api.startSeekCsiAction(),this.T?this.api.V("enable_key_press_seek_logging")?(U=hG(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.KU(1,10,U)):this.T.KU(1,10):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
  12558. this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),U=!0);break;case 37:this.api.Yo()&&(this.api.startSeekCsiAction(),m?(m=AXy(G,this.api.getCurrentTime()*1E3),m!==-1&&this.T!=null&&(this.T.Zn(-1,G[m].title),this.api.seekTo(G[m].startTime/1E3,void 0,void 0,void 0,53),U=!0)):(this.T?this.api.V("enable_key_press_seek_logging")?(U=hG(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.T.KU(-1,5,U)):this.T.KU(-1,5):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
  12559. width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
  12560. this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),U=!0));break;case 39:this.api.Yo()&&(this.api.startSeekCsiAction(),m?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(m=N9I(G,this.api.getCurrentTime()*1E3),m!==-1&&this.T!=null&&(this.T.Zn(1,G[m].title),this.api.seekTo(G[m].startTime/1E3,void 0,void 0,void 0,52),U=!0)):(this.T!=null?this.api.V("enable_key_press_seek_logging")?(U=hG(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.KU(1,5,U)):this.T.KU(1,
  12561. 5):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
  12562. this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),U=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),v1(this.G_,this.api.getVolume(),!1)):(this.api.mute(),v1(this.G_,0,!0));U=!0;break;case 32:U=this.api.V("web_speedmaster_spacebar_control")?!this.api.G().sK:this.GR(Z);break;case 75:U=this.GR(Z);break;case 190:Q?R.enableSpeedOptions&&a3t(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U+.25,!0),dCI(this.G_,!1),U=!0):this.api.Yo()&&(this.step(1),U=!0);break;case 188:Q?
  12563. R.enableSpeedOptions&&a3t(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U-.25,!0),dCI(this.G_,!0),U=!0):this.api.Yo()&&(this.step(-1),U=!0);break;case 70:FxH(this.api)&&(this.api.toggleFullscreen().catch(function(){}),U=!0);
  12564. break;case 27:Z?(this.progressBar.Zu(),U=!0):this.B()&&(U=!0)}if(R.controlsType!=="3")switch(T){case 67:g.uj(this.api.Bx())&&(R=this.api.getOption("captions","track"),this.api.toggleSubtitles(),NYb(this.G_,!R||R&&!R.displayName),U=!0);break;case 79:Cm(this,"textOpacity");break;case 87:Cm(this,"windowOpacity");break;case 187:case 61:Cm(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Cm(this,"fontSizeIncrement",!0,!0)}var I;Q||k||l||(T>=48&&T<=57?I=T-48:T>=96&&T<=105&&(I=T-96));I!=null&&this.api.Yo()&&
  12565. !this.api.V("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),R=this.api.getProgressState(),this.api.seekTo(I/10*(R.seekableEnd-R.seekableStart)+R.seekableStart,void 0,void 0,void 0,81),U=!0);U&&this.Ci.DS()}this.L.Va=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:T,shiftKey:Q,ctrlKey:k,altKey:l,metaKey:v,key:L,code:q,repeat:Y},this.L);this.L.Va&&(U=!0,this.Ci.DS());return U};
  12566. g.h.step=function(T){this.api.Yo();if(this.api.getPlayerStateObject().isPaused()){var Q=this.api.getVideoData().S;Q&&(Q=Q.video)&&this.api.seekBy(T/(Q.fps||30),void 0,void 0,T>0?77:78)}};
  12567. g.h.GR=function(T){if(!this.api.G().sK){var Q;var k,l=(Q=this.api.getVideoData())==null?void 0:(k=Q.getPlayerResponse())==null?void 0:k.playabilityStatus;if(l){var v;Q=((v=g.t(l.miniplayer,o1J))==null?void 0:v.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Q=!1;Q&&this.api.tj("onExpandMiniplayer");T?this.progressBar.UL():(T=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.G_.Qu(T),T?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
  12568. g.h.EK=function(){g.iN(this.Y);g.Bj.prototype.EK.call(this)};g.S(B1,g.p);B1.prototype.Aj=function(){var T=this.U.G(),Q=T.L||this.U.V("web_player_hide_overflow_button_if_empty_menu")&&this.nz.isEmpty();T=g.Qk(T)&&g.FZ(this.U)&&g.J(this.U.getPlayerStateObject(),128);var k=this.U.getPlayerSize();this.visible=this.U.tb()&&!T&&k.width>=240&&!this.U.getVideoData().hh&&!Q&&!this.U.isEmbedsShortsMode();g.gl(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.wO();this.U.logVisibility(this.element,this.visible&&this.N)};
  12569. B1.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)};
  12570. B1.prototype.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.element,"ytp-overflow-button-visible")};g.S(uDy,g.LA);g.h=uDy.prototype;g.h.IL=function(T){T=zL(T);g.SO(this.element,T)&&(g.SO(this.T,T)||g.SO(this.closeButton,T)||gh(this))};
  12571. g.h.sG=function(){g.LA.prototype.sG.call(this);this.U.Vb(this.element)};
  12572. g.h.show=function(){this.Sr&&this.U.publish("OVERFLOW_PANEL_OPENED");g.LA.prototype.show.call(this);this.element.setAttribute("aria-modal","true");K$C(this,!0)};
  12573. g.h.hide=function(){g.LA.prototype.hide.call(this);this.element.removeAttribute("aria-modal");K$C(this,!1)};
  12574. g.h.onFullscreenToggled=function(T){!T&&this.n$()&&gh(this)};
  12575. g.h.isEmpty=function(){return this.actionButtons.length===0};
  12576. g.h.focus=function(){for(var T=g.B(this.actionButtons),Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.Sr){Q.focus();break}};g.S(xc5,g.p);xc5.prototype.onClick=function(T){g.wh(T,this.api)&&this.api.playVideoAt(this.index)};g.S(Psu,g.LA);g.h=Psu.prototype;g.h.show=function(){g.LA.prototype.show.call(this);this.T.Z(this.api,"videodatachange",this.e8);this.T.Z(this.api,"onPlaylistUpdate",this.e8);this.e8()};
  12577. g.h.hide=function(){g.LA.prototype.hide.call(this);g.N5(this.T);this.updatePlaylist(null)};
  12578. g.h.e8=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().L&&(this.L_("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.J6(this.L),this.L=null))};
  12579. g.h.pj=function(){var T=this.playlist,Q=T.author,k=Q?"\u6765\u81ea$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",l={CURRENT_POSITION:String(T.index+1),PLAYLIST_LENGTH:String(T.length)};Q&&(l.AUTHOR=Q);this.update({title:T.title,subtitle:g.o0(k,l),playlisturl:this.api.getVideoUrl(!0)});Q=T.S;if(Q===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[T.index];else{k=g.B(this.playlistData);for(l=k.next();!l.done;l=
  12580. k.next())l.value.dispose();k=T.length;this.playlistData=[];for(l=0;l<k;l++){var v=new xc5(this.api,T,l);this.playlistData.push(v);v.XB(this.items)}this.selected=this.playlistData[T.index];this.Y=Q}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
  12581. g.h.QK9=function(T){var Q=this.api.getVideoUrl(!0);g.dh(Q,this.api,T)};
  12582. g.h.updatePlaylist=function(T){this.playlist!==T?(this.playlist&&this.playlist.unsubscribe("shuffle",this.pj,this),this.playlist=T,this.Y=null,T?(T.subscribe("shuffle",this.pj,this),this.pj()):this.Sr&&this.hide()):this.playlist&&this.pj()};
  12583. g.h.focus=function(){this.selected.focus()};
  12584. g.h.EK=function(){this.hide();g.LA.prototype.EK.call(this)};g.S(zK,g.p);zK.prototype.hide=function(){g.p.prototype.hide.call(this);this.vx(!1);this.api.wO()};
  12585. zK.prototype.Aj=function(){var T=g.Qk(this.api.G());g.gl(this.element,"ytp-playlist-menu-button-tiny",this.api.Hx().getPlayerSize().width<400&&!T);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.o0("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.o0("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.o0("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",
  12586. {PLAYLIST_NAME:this.playlist.title})}),this.api.V("delhi_modern_web_player")&&this.update({playlistTitle:g.o0("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Sr||(this.show(),this.api.wO()),this.visible=!0,this.vx(!0)):this.Sr&&this.hide()};
  12587. zK.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};
  12588. zK.prototype.T=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Aj,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Aj,this);this.Aj()};g.S(Hsg,g.p);g.h=Hsg.prototype;g.h.Gp=function(){this.Y?W$C(this):p_6(this)};
  12589. g.h.KL=function(){this.Y?(Xa(this),this.C=!0):p_6(this)};
  12590. g.h.xOj=function(){this.B=!0;this.M8(1);this.U.publish("promotooltipacceptbuttonclicked",this.acceptButton);Xa(this);this.S&&this.U.logClick(this.acceptButton)};
  12591. g.h.DOO=function(){this.B=!0;this.M8(2);Xa(this);this.S&&this.U.logClick(this.dismissButton)};
  12592. g.h.P8=function(T){if(this.U.getPresentingPlayerType()===1||this.U.getPresentingPlayerType()===2&&this.j){var Q=!0,k=g.gK("ytp-ad-overlay-ad-info-dialog-container"),l=g.gK("ytp-ad-player-overlay-layout"),v=zL(T);if(this.L&&v&&g.SO(this.L,v))this.L=null;else{this.U.getPresentingPlayerType()===1&&v&&Array.from(v.classList).forEach(function(U){if(U.startsWith("ytp-ad")||U.startsWith("ytp-skip-ad"))Q=!1});
  12593. var L=$cy(this.tooltipRenderer),q;if(((q=this.tooltipRenderer.dismissStrategy)==null?void 0:q.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")L&&(Q=Q&&!g.SO(this.element,v));else{var Y;((Y=this.tooltipRenderer.dismissStrategy)==null?void 0:Y.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(Q=L?!1:Q&&g.SO(this.element,v))}this.T&&this.Sr&&!k&&!l&&(!v||Q&&g.B8(T))&&(this.B=!0,Xa(this))}}};
  12594. g.h.M8=function(T){var Q=this.tooltipRenderer.promoConfig;if(Q){switch(T){case 0:var k;if((k=Q.impressionEndpoints)==null?0:k.length)var l=Q.impressionEndpoints[0];break;case 1:l=Q.acceptCommand;break;case 2:l=Q.dismissCommand}var v;T=(v=g.t(l,Ole))==null?void 0:v.feedbackToken;l&&T&&(v={feedbackTokens:[T]},T=this.U.HG(),(T==null?0:cFT(l,T.SG))&&ao(T,l,v))}};
  12595. g.h.zx=function(){this.C||(this.T||(this.T=tUg(this)),W$C(this))};
  12596. var Os5={"ytp-settings-button":g.dD()};g.S(wu,g.p);wu.prototype.onStateChange=function(T){this.OH(T.state)};
  12597. wu.prototype.OH=function(T){this.o_(g.J(T,2))};
  12598. wu.prototype.onClick=function(){this.U.getPlayerStateObject().isOrWillBePlaying();this.U.playVideo()};g.S(du,g.p);du.prototype.onClick=function(T){this.api.logClick(this.element);var Q=g.sD(this.api.G().fz,{focusSearch:"true"}),k={};g.Ay(this.api,"addEmbedsConversionTrackingParams",[k]);Q=g.sD(Q,k);var l;(k=(l=this.api.getVideoData().h0d)==null?void 0:l.params)&&(Q=g.sD(Q,{bp:k}));g.GH(window,Q);T.preventDefault()};
  12599. du.prototype.T=function(){if(this.api.V("embeds_web_enable_search_button")){var T=this.api.G();var Q=this.api.getVideoData(),k=this.api.Hx().getPlayerSize().width;T=g.Qk(T)&&k>=this.S&&!T.L&&!Q.isAd()&&!this.api.isEmbedsShortsMode()}else T=!1;this.visible=T;this.o_(this.visible);g.gl(this.element,"ytp-search-button-visible",this.visible);g.gl(this.element,"ytp-show-search-title",!this.api.tb());this.api.logVisibility(this.element,this.visible&&this.N)};
  12600. du.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};g.S(Na,g.p);
  12601. Na.prototype.trigger=function(T,Q,k,l){this.show();if(this.S&&T!==this.S){var v=1;this.L&&(v=isT(this));JXX(this,v,!1);yXu(this)}this.S=T;this.Y=this.S===-1?this.j:this.D;T="";Q?(this.C+=Q,T=(this.S===-1?"\u2212":"+")+" "+this.C):this.C=0;this.updateValue(this.S===-1?"durationBack":"durationForward",T);if(this.T==="hidden"||this.T==="fading-out")Q=0,this.T==="fading-out"&&(Q=isT(this),EvI(this)),eoH(this,Q),this.T!=="fading-out"&&F$y(this,this.Y.querySelector(".ytp-seek-overlay-arrow-persistent")),this.T=
  12602. "fading-in";else if(this.T==="fading-in"||this.T==="lingering")Q=this.Y.querySelector(".ytp-seek-overlay-duration"),T=g.jj(this.U.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,Q.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+T+")"},{offset:1,transform:"scale(1)"}],{duration:184}),EvI(this),this.T==="lingering"&&(this.B.stop(),this.B.start());k&&VUX(this,k,l)};
  12603. Na.prototype.xT=function(T,Q,k,l){this.trigger(T,l)};
  12604. Na.prototype.KU=function(T,Q,k){this.trigger(T,Q);k&&(T=T===-1?this.D.visualElement:this.j.visualElement,k={seekData:k},(Q=g.C9())&&jx(Q,T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",k))};
  12605. Na.prototype.Zn=function(T,Q,k){this.trigger(T,void 0,Q,k)};g.S(AG,g.p);AG.prototype.onClick=function(){var T=this,Q=this.api.G(),k=this.api.getVideoData(this.api.getPresentingPlayerType()),l=this.api.getPlaylistId();Q=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Q.getVideoUrl(k.videoId,l,void 0,!0);if(navigator.share)try{var v=navigator.share({title:k.title,url:Q});v instanceof Promise&&v.catch(function(L){QMf(T,L)})}catch(L){L instanceof Error&&QMf(this,L)}else this.T.VV(),gh(this.S,this.element,!1);
  12606. this.api.logClick(this.element)};
  12607. AG.prototype.Aj=function(){var T=this.api.G(),Q=this.api.isEmbedsShortsMode();g.gl(this.element,"ytp-show-share-title",g.Qk(T)&&!Q);this.T.jj()&&Q?(T=(this.api.Hx().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.W2(this.element,"right",T+"px")):Q&&g.W2(this.element,"right","0px");this.updateValue("icon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
  12608. this.visible=TF6(this);g.gl(this.element,"ytp-share-button-visible",this.visible);this.o_(this.visible);this.tooltip.wO();this.api.logVisibility(this.element,TF6(this)&&this.N)};
  12609. AG.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};
  12610. AG.prototype.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.element,"ytp-share-button-visible")};g.S(krT,g.LA);g.h=krT.prototype;g.h.nL=function(T){T=zL(T);g.SO(this.B,T)||g.SO(this.closeButton,T)||gh(this)};
  12611. g.h.sG=function(){g.LA.prototype.sG.call(this);this.tooltip.Vb(this.element);this.api.logVisibility(this.T,!1);for(var T=g.B(this.L),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.api.hasVe(Q.element)&&this.api.logVisibility(Q.element,!1)};
  12612. g.h.show=function(){var T=this.Sr;g.LA.prototype.show.call(this);this.Aj();T||this.api.tj("onSharePanelOpened")};
  12613. g.h.u2=function(){this.Sr&&this.Aj()};
  12614. g.h.Aj=function(){var T=this;g.oF(this.element,"ytp-share-panel-loading");g.Lb(this.element,"ytp-share-panel-fail");var Q=this.api.getVideoData(),k=this.api.getPlaylistId()&&this.Y.checked;Q.getSharePanelCommand&&ao(this.api.HG(),Q.getSharePanelCommand,{includeListId:k}).then(function(l){T.wd()||(g.Lb(T.element,"ytp-share-panel-loading"),vGf(T,l))});
  12615. Q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Q);this.updateValue("linkText",Q);this.updateValue("shareLinkWithUrl",g.o0("\u5206\u4eab\u94fe\u63a5 $URL",{URL:Q}));bf(this.T);this.api.logVisibility(this.T,!0)};
  12616. g.h.onFullscreenToggled=function(T){!T&&this.n$()&&gh(this)};
  12617. g.h.focus=function(){this.T.focus()};
  12618. g.h.EK=function(){g.LA.prototype.EK.call(this);l6I(this)};g.S(gG6,N4);g.h=gG6.prototype;g.h.EK=function(){Z0t(this);N4.prototype.EK.call(this)};
  12619. g.h.nO=function(T){T.target!==this.dismissButton.element&&(this.wh(!1),this.U.tj("innertubeCommand",this.onClickCommand))};
  12620. g.h.Np=function(){this.u9=!0;this.wh(!0);this.FE()};
  12621. g.h.hge=function(T){this.C=T;this.FE()};
  12622. g.h.onVideoDataChange=function(T,Q){if(T=!!Q.videoId&&this.videoId!==Q.videoId)this.videoId=Q.videoId,this.u9=!1,this.hj=!0,this.j=this.qO=!1,Z0t(this),Rl5(this,!1),this.S=this.T=!1,ru(this),M0H(this);if(T||!Q.videoId)this.z9=this.Y=!1;var k,l;if(Q==null?0:(k=Q.getPlayerResponse())==null?0:(l=k.videoDetails)==null?0:l.isLiveContent)this.H1(!1);else{var v,L,q;Q=g.t((v=Q.getWatchNextResponse())==null?void 0:(L=v.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:q.productsInVideoOverlayRenderer,
  12623. EP_);this.C=this.enabled=!1;if(Q){if(v=Q==null?void 0:Q.featuredProductsEntityKey){L=g.w4.getState().entities;var Y;if((Y=V8(L,"featuredProductsEntity",v))==null?0:Y.productsData){this.H1(!1);return}}if(!Q.text||!Q.onClickCommand||!Q.timing){this.H1(!1);return}this.enabled=!0;if(!this.Y){var U;Y=(U=Q.badgeInteractionLogging)==null?void 0:U.trackingParams;(this.Y=!!Y)&&this.U.setTrackingParams(this.badge.element,Y||null)}if(!this.z9){var R;if(this.z9=!((R=Q.dismissButton)==null||!R.trackingParams)){var Z;
  12624. this.U.setTrackingParams(this.dismissButton.element,((Z=Q.dismissButton)==null?void 0:Z.trackingParams)||null)}}Q.isContentForward&&(U=Q.productsData,Rl5(this,!0),M0H(this),U=UeC(this,U),R=[],U.length>0&&R.push(U[0]),U.length>1&&(Z=new g.p({X:"div",J:"ytp-suggested-action-more-products-icon"}),g.P(this,Z),R.push(Z),R.push.apply(R,g.ZH(U.slice(1)))),this.B=new g.p({X:"div",W:R,J:"ytp-suggested-action-content-forward-container"}),g.P(this,this.B),this.e6.element.append(this.B.element));this.text=g.Rx(Q.text);
  12625. var f;if(U=(f=Q.dismissButton)==null?void 0:f.a11yLabel)this.p_=g.Rx(U);this.onClickCommand=Q.onClickCommand;this.timing=Q.timing;this.fY()}kuy(this);dW(this);this.FE()}};
  12626. g.h.Hs=function(){return!this.C&&this.enabled&&!this.u9&&!this.U.tb()&&!this.h3&&(this.j||this.hj)};
  12627. g.h.jt=function(T){N4.prototype.jt.call(this,T);if(this.T||this.S)this.timing&&bz(this.timing.preview)&&(this.T=!1,ru(this),this.S=!1,ru(this),this.U.uf("shopping_overlay_preview_collapsed"),this.U.uf("shopping_overlay_preview_expanded"),T=c1(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),bz(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.uf("shopping_overlay_expanded"),T.end=this.timing.expanded.endSec*1E3),this.U.fY([T])),
  12628. this.qO=!0,dW(this);ru(this)};
  12629. g.h.H1=function(T){(this.j=T)?(wW(this),dW(this,!1)):(Z0t(this),this.sK.start());this.FE()};
  12630. g.h.fY=function(T){var Q=this.timing;T=(T===void 0?0:T)+this.U.getCurrentTime();var k=[],l=Q.visible,v=Q.preview;Q=Q.expanded;bz(l)&&(LH6(l,T),k.push(c1(l.startSec,l.endSec,"shopping_overlay_visible")));bz(v)&&(LH6(v,T),l=v.startSec+1,k.push(c1(v.startSec,l,"shopping_overlay_preview_collapsed")),k.push(c1(l,v.endSec,"shopping_overlay_preview_expanded")));bz(Q)&&(LH6(Q,T),k.push(c1(Q.startSec,Q.endSec,"shopping_overlay_expanded")));this.U.fY(k)};
  12631. g.h.FE=function(){N4.prototype.FE.call(this);this.U.getRootNode()&&g.gl(this.U.getRootNode(),"ytp-shopping-pill-shown",this.Hs())};g.S(mef,g.p);
  12632. mef.prototype.Aj=function(){var T=this.api.G();this.o_(g.Qk(T)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Sr);var Q=this.api.getVideoData(),k=!1;this.api.getPresentingPlayerType()===2?k=!!Q.videoId&&!!Q.isListed&&!!Q.author&&!!Q.Tg&&!!Q.profilePicture:g.Qk(T)&&(k=!!Q.videoId&&!!Q.Tg&&!!Q.profilePicture&&!Q.hh&&!T.L&&!(T.C&&this.api.getPlayerSize().width<200));var l=Q.profilePicture;T=g.Qk(T)?Q.expandedTitle:Q.author;l=l===void 0?
  12633. "":l;T=T===void 0?"":T;k?(this.S!==l&&(this.T.style.backgroundImage="url("+l+")",this.S=l),this.updateValue("channelLogoLabel",g.o0("$CHANNEL_NAME\u7684\u7167\u7247",{CHANNEL_NAME:T})),g.oF(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Lb(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,k&&this.N);this.api.logVisibility(this.channelName,k&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=Q.hH);this.updateValue("expandedTitle",Q.expandedTitle)};g.S(DL,g.LA);DL.prototype.show=function(){g.LA.prototype.show.call(this);this.T.start()};
  12634. DL.prototype.hide=function(){g.LA.prototype.hide.call(this);this.T.stop()};
  12635. DL.prototype.Kp=function(T,Q){T==="dataloaded"&&((this.VD=Q.VD,this.nG=Q.nG,isNaN(this.VD)||isNaN(this.nG))?this.L&&(this.U.uf("intro"),this.U.removeEventListener(g.ej("intro"),this.C),this.U.removeEventListener(g.Ft("intro"),this.B),this.U.removeEventListener("onShowControls",this.Y),this.hide(),this.L=!1):(this.U.addEventListener(g.ej("intro"),this.C),this.U.addEventListener(g.Ft("intro"),this.B),this.U.addEventListener("onShowControls",this.Y),T=new g.$d(this.VD,this.nG,{priority:9,namespace:"intro"}),
  12636. this.U.fY([T]),this.L=!0))};g.S(aG,g.p);aG.prototype.onClick=function(){this.U.YU()};
  12637. aG.prototype.Aj=function(){var T=!0;g.Qk(this.U.G())&&(T=T&&this.U.Hx().getPlayerSize().width>=480);this.o_(T);T=this.updateValue;var Q=this.U.V("delhi_modern_web_player_icons"),k=Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
  12638. fill:"white"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};Q=Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
  12639. fill:"white"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};T.call(this,"icon",this.U.Ax()?k:Q)};g.S(hl5,g.p);hl5.prototype.EK=function(){this.T=null;g.p.prototype.EK.call(this)};g.S(uz,g.p);uz.prototype.onClick=function(){this.U.tj("innertubeCommand",this.S)};
  12640. uz.prototype.D=function(){if(this.U.V("delhi_modern_web_player")){var T=this.U.getPlayerSize();T.width&&(this.element.style.maxWidth=T.width*.25+"px")}};
  12641. uz.prototype.qO=function(T){T!==this.C&&(this.update({chapterTitle:T,ariaLabel:T}),this.C=T);T?this.show():this.hide()};
  12642. uz.prototype.z9=function(){this.T.disabled=this.S==null;g.gl(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.bC()};g.S(nm,uz);nm.prototype.onClickCommand=function(T){g.t(T,XC)&&this.bC()};
  12643. nm.prototype.updateVideoData=function(T,Q){var k,l,v;T=g.t((k=Q.getWatchNextResponse())==null?void 0:(l=k.playerOverlays)==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,Vk);k=g.t(T==null?void 0:T.playerBarActionButton,g.jw);if(this.U.V("web_player_updated_entrypoint")){this.j=On(k==null?void 0:k.text);var L;l=(L=k==null?void 0:k.tooltip)!=null?L:"\u67e5\u770b\u7ae0\u8282";this.B.setAttribute("title",l)}this.S=k==null?void 0:k.command;uz.prototype.z9.call(this)};
  12644. nm.prototype.bC=function(){var T=this.j,Q=this.Y.T,k,l=((k=this.U.getLoopRange())==null?void 0:k.type)==="clips";if(Q.length>1&&!l){T=this.U.getProgressState().current*1E3;k=mJ(Q,T);T=Q[k].title||"\u7ae0\u8282";if(k!==this.currentIndex||this.L)this.U.tj("innertubeCommand",Q[k].onActiveCommand),this.currentIndex=k;this.L=!1}else this.L=!0;uz.prototype.qO.call(this,T)};g.S(Km,g.M1);Km.prototype.S=function(){var T;(T=this.element.parentElement)==null||T.classList.contains("ytp-right-controls-left");(this.T=!this.T)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")};
  12645. Km.prototype.isExpanded=function(){return this.T};g.S(xW,g.p);xW.prototype.L=function(T){g.J(T.state,32)?SOb(this,this.api.l7()):this.Sr&&(g.J(T.state,16)||g.J(T.state,1))||this.fade.hide()};
  12646. xW.prototype.M_=function(){var T=this.api.getPlayerStateObject();(g.J(T,32)||g.J(T,16))&&C0y(this)};
  12647. xW.prototype.Y=function(){this.frameIndex=NaN;C0y(this)};
  12648. xW.prototype.hide=function(){this.T&&SOb(this,null);g.p.prototype.hide.call(this)};g.S(BF5,g.p);g.h=BF5.prototype;g.h.onClick=function(){var T=this;if(this.U.G().Tg||this.U.G().C){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(Q){T.GZ(Q)})}catch(Q){this.GZ(Q)}}else gh(this.message,this.element,!0)};
  12649. g.h.GZ=function(T){String(T).includes("fullscreen error")?g.rB(T):g.bA(T);this.zY()};
  12650. g.h.zY=function(){this.disable();this.message.fA(this.element,!0)};
  12651. g.h.pH=function(){md()===this.U.getRootNode()?this.L.start():(this.L.stop(),this.message&&this.message.hide())};
  12652. g.h.Sh=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var T=window.screen.width*.9,Q=window.screen.height*.9,k=Math.max(window.outerWidth,window.innerWidth),l=Math.max(window.outerHeight,window.innerHeight);if(k>l!==T>Q){var v=k;k=l;l=v}T>k&&Q>l&&this.zY()}};
  12653. g.h.disable=function(){var T=this;if(!this.message){var Q=(Zk(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"\u65e0\u6cd5\u5168\u5c4f\u64ad\u653e\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK":"\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5168\u5c4f\u6a21\u5f0f\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.LA(this.U,{X:"div",Rk:["ytp-popup","ytp-generic-popup"],K:{role:"alert",
  12654. tabindex:"0"},W:[Q[0],{X:"a",K:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.G().D},S6:Q[2]},Q[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(k){T.S.Mq(T.message,k)});
  12655. g.TQ(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}};
  12656. g.h.Aj=function(){var T=FxH(this.U),Q=this.U.G().C&&this.U.getPlayerSize().width<250;this.o_(T&&!Q);var k;((k=this.U.G())==null?0:k.V("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.Sr&&this.N):this.U.logVisibility(this.element,this.Sr)};
  12657. g.h.gA=function(T){if(T){var Q=g.pX(this.U,"\u9000\u51fa\u5168\u5c4f","f");this.update({"data-title-no-tooltip":"\u9000\u51fa\u5168\u5c4f"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(k){g.rB(k)})}else Q=g.pX(this.U,"\u5168\u5c4f","f"),this.update({"data-title-no-tooltip":"\u5168\u5c4f"});
  12658. T=zl6(this,T);Q=this.message?null:Q;this.U.G().V("player_tooltip_data_title_killswitch")?this.update({title:Q,icon:T}):this.update({"tooltip-title":Q,"aria-label":Q,icon:T});this.S.aK().wO()};
  12659. g.h.EK=function(){this.message||((0,this.T)(),this.T=null);g.p.prototype.EK.call(this)};
  12660. g.h.vx=function(T){g.p.prototype.vx.call(this,T);var Q;((Q=this.U.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Sr&&T)};g.S(P1,g.p);P1.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.T,!0);var T=this.T>0?1:-1,Q=Math.abs(this.T),k=this.U.nB().xV;k&&k.KU(T,Q);this.S.isActive()?this.L=!0:(T=["ytp-jump-spin"],this.T<0&&T.push("backwards"),this.element.classList.add.apply(this.element.classList,g.ZH(T)),g.Ez(this.S))};g.S(H1,uz);H1.prototype.onClickCommand=function(T){g.t(T,eCA)&&this.bC()};
  12661. H1.prototype.updateVideoData=function(){var T,Q;this.S=(T=w$5(this))==null?void 0:(Q=T.onTap)==null?void 0:Q.innertubeCommand;uz.prototype.z9.call(this)};
  12662. H1.prototype.bC=function(){var T="",Q=this.Y.C,k,l=(k=w$5(this))==null?void 0:k.headerTitle;k=l?g.Rx(l):"";var v;l=((v=this.U.getLoopRange())==null?void 0:v.type)==="clips";Q.length>1&&!l&&(T=this.U.getProgressState().current*1E3,v=dc5(Q,T),T=v!=null?Q[v].title:k,v!=null&&v!==this.currentIndex&&(this.U.tj("innertubeCommand",Q[v].onActiveCommand),this.currentIndex=v));uz.prototype.qO.call(this,T)};g.S(tG,g.p);tG.prototype.onClick=function(){this.U.tj("onCollapseMiniplayer");this.U.logClick(this.element)};
  12663. tG.prototype.Aj=function(){this.visible=!this.U.isFullscreen();this.o_(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)};
  12664. tG.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)};g.S(Ou,g.p);Ou.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.j);this.updateValue("slidervalue",this.T);NFf(this,this.T)};
  12665. Ou.prototype.L=function(){pm(this,Number(this.S.value));this.S.focus()};
  12666. Ou.prototype.C=function(T){if(!T.defaultPrevented){switch(T.code){case "ArrowDown":T=-this.j;break;case "ArrowUp":T=this.j;break;default:return}pm(this,Math.min(this.B,Math.max(Number((this.T+T).toFixed(2)),this.Y)))}};g.S(W1,Ou);W1.prototype.onVolumeChange=function(T){if(this.D)this.D=!1;else{var Q=T.volume;Q===0||T.muted?pm(this,0):pm(this,Q)}};
  12667. W1.prototype.L=function(){Ou.prototype.L.call(this);this.z9(this.T)};
  12668. W1.prototype.qO=function(T){var Q=-T.deltaY;Q=T.deltaMode===WheelEvent.DOM_DELTA_LINE||T.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ti(this.T+Q,0,100):g.ti(this.T+g.ti(Q/10,-10,10),0,100);Q===0?pm(this,0):pm(this,Q);this.z9(Q);T.preventDefault();T.stopPropagation()};
  12669. W1.prototype.hj=function(T,Q){this.D=!0;T===0||Q?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(T))};g.S(ApC,g.p);g.S(JG,g.p);g.h=JG.prototype;g.h.Jw=function(){if(!this.U.uS()){this.updateValue("dataTooltipOffsetY",-120);var T;(T=this.T)!=null&&$W(T,!0);var Q;(Q=this.T)!=null&&Q.T.stop()}};
  12670. g.h.Tr=function(){var T;(T=this.T)!=null&&T.T.start()};
  12671. g.h.ZO=function(T){this.visible=T.width>=300||this.Bd;this.o_(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)};
  12672. g.h.YK=function(){this.U.G().e6?this.U.isMuted()?this.U.unMute():this.U.mute():gh(this.message,this.element,!0);this.U.logClick(this.element)};
  12673. g.h.iYd=function(T){if(this.U.G().e6&&this.T)if(T.target===this.L){var Q;if(!this.U.uS()||((Q=this.T)==null?0:Q.isVisible))this.YK();else{var k;(k=this.T)!=null&&$W(k,!0)}}else{var l;(l=this.T)!=null&&$W(l,!0)}else this.YK()};
  12674. g.h.onVolumeChange=function(T){this.setVolume(T.volume,T.muted)};
  12675. g.h.setVolume=function(T,Q){var k=this,l=Q?0:T/100;T=l===0?1:T>50?1:0;if(this.D!==T){var v=this.j;isNaN(v)?a6t(this,T):Hay(this.e6,function(q){a6t(k,v+(k.D-v)*q)},250);
  12676. this.D=T}l=l===0?1:0;if(this.C!==l){var L=this.hj;isNaN(L)?u55(this,l):Hay(this.xm,function(q){u55(k,L+(k.C-L)*q)},250);
  12677. this.C=l}rp5(this,Q)};
  12678. g.h.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)};
  12679. var cp5=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],De5=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
  12680. 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.S(g.eL,g.p);g.h=g.eL.prototype;g.h.onStateChange=function(T){this.OH(T.state);var Q;((Q=this.U.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Sr&&this.N)};
  12681. g.h.OH=function(T){var Q=g.iO(this.U.getVideoData()),k=!1;T.isOrWillBePlaying()?T=Q?4:2:g.J(T,2)?(T=3,k=Q):T=1;this.element.disabled=k;if(this.T!==T){Q=null;switch(T){case 2:Q=g.pX(this.U,"\u6682\u505c","k");this.update({"data-title-no-tooltip":"\u6682\u505c"});break;case 3:Q="\u91cd\u653e";this.update({"data-title-no-tooltip":"\u91cd\u653e"});break;case 1:Q=g.pX(this.U,"\u64ad\u653e","k");this.update({"data-title-no-tooltip":"\u64ad\u653e"});break;case 4:Q="\u505c\u6b62\u76f4\u64ad",this.update({"data-title-no-tooltip":"\u505c\u6b62\u76f4\u64ad"})}T===
  12682. 3?this.U.G().V("player_tooltip_data_title_killswitch")?this.update({title:Q,icon:nGX(this,T)}):this.update({"tooltip-title":Q,icon:nGX(this,T)}):(this.U.V("player_tooltip_data_title_killswitch")?this.update({title:Q}):this.update({"tooltip-title":Q}),(Q=nGX(this,T))&&this.T&&this.T!==3?Oa5(this.transition,this.element,Q):this.updateValue("icon",Q));this.tooltip.wO();this.T=T}};
  12683. g.h.onVideoDataChange=function(){g.gl(this.element,"ytp-play-button-playlist",g.FZ(this.U))};
  12684. g.h.GR=function(T){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var Q={},k;if((k=this.U.getVideoData())==null?0:k.B)Q.cttAuthInfo={token:this.U.getVideoData().B,videoId:this.U.getVideoData().videoId};At("direct_playback",Q);this.U.eZ().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(T==null?void 0:T.type)==="click"&&this.element.blur()};
  12685. g.h.vx=function(T){g.p.prototype.vx.call(this,T);var Q;((Q=this.U.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Sr&&T)};g.S(g.Fa,g.p);g.h=g.Fa.prototype;g.h.onVideoDataChange=function(){P05(this);this.Y&&(this.J6(this.Y),this.Y=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.Z(this.U,"progresssync",this.pL);this.L=H05(this);xe6(this);this.sJ(this.U.Hx().getPlayerSize())};
  12686. g.h.sJ=function(T){T=T===void 0?this.U.Hx().getPlayerSize():T;var Q,k=((Q=this.U.getLoopRange())==null?void 0:Q.type)==="clips";T=(g.FZ(this.U)||this.T&&g.QS(this.U)&&!this.U.V("web_hide_next_button")||t0X(this))&&!k&&(this.T||T.width>=400);this.o_(T);this.U.logVisibility(this.element,T)};
  12687. g.h.onClick=function(T){this.U.logClick(this.element);var Q=!0;this.C?Q=g.wh(T,this.U):T.preventDefault();Q&&(this.T&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.T?(XB(this.U.eZ()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.L?this.U.seekTo(0):(XB(this.U.eZ()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))};
  12688. g.h.pL=function(){var T=H05(this);T!==this.L&&(this.L=T,xe6(this))};
  12689. g.h.EK=function(){this.S&&(this.S(),this.S=null);P05(this);g.p.prototype.EK.call(this)};g.S(p$f,g.p);g.h=p$f.prototype;g.h.W8=function(T){this.J$(T.pageX);this.rD(T.pageX+T.deltaX);WHX(this)};
  12690. g.h.J$=function(T){this.z9=T-this.Bd};
  12691. g.h.rD=function(T){T-=this.Bd;!isNaN(this.z9)&&this.thumbnails.length>0&&(this.D=T-this.z9,this.thumbnails.length>0&&this.D!==0&&(this.L=this.j+this.D,T=EGI(this,this.L),this.L<=this.T/2&&this.L>=FHt(this)?(this.api.seekTo(T,!1,void 0,void 0,25),g.W2(this.hj,"transform","translateX("+(this.L-this.T/2)+"px)"),O05(this,T)):this.L=this.j))};
  12692. g.h.uJ=function(){this.qO&&(this.qO.Fr=!0);var T=(0,g.XY)()-this.Jj<300;if(Math.abs(this.D)<5&&!T){this.Jj=(0,g.XY)();T=this.z9+this.D;var Q=this.T/2-T;this.J$(T);this.rD(T+Q);WHX(this);this.api.logClick(this.B)}WHX(this)};
  12693. g.h.Ov=function(){Eu(this,this.api.getCurrentTime())};
  12694. g.h.play=function(T){this.api.seekTo(EGI(this,this.L),void 0,void 0,void 0,26);this.api.playVideo();T&&this.api.logClick(this.playButton)};
  12695. g.h.onExit=function(T){this.api.seekTo(this.sK,void 0,void 0,void 0,63);this.api.playVideo();T&&this.api.logClick(this.dismissButton)};
  12696. g.h.zx=function(T,Q){this.Bd=T;this.T=Q;Eu(this,this.api.getCurrentTime())};
  12697. g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.sK=this.api.getCurrentTime(),O05(this,this.sK),g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.e6=this.Z(this.element,"wheel",this.W8),this.logVisibility(this.isEnabled))};
  12698. g.h.disable=function(){this.isEnabled=!1;this.hide();g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.e6&&this.J6(this.e6);this.logVisibility(this.isEnabled)};
  12699. g.h.reset=function(){this.disable();this.Y=[];this.i9=!1};
  12700. g.h.logVisibility=function(T){this.api.logVisibility(this.element,T);this.api.logVisibility(this.B,T);this.api.logVisibility(this.dismissButton,T);this.api.logVisibility(this.playButton,T)};
  12701. g.h.EK=function(){for(;this.S.length;){var T=void 0;(T=this.S.pop())==null||T.dispose()}g.p.prototype.EK.call(this)};
  12702. g.S($ef,g.p);g.S(Jpf,g.p);g.S(yp5,g.p);g.S(y7,g.p);y7.prototype.xB=function(T){return T==="PLAY_PROGRESS"?this.j:T==="LOAD_PROGRESS"?this.C:T==="LIVE_BUFFER"?this.B:this.L};TAH.prototype.update=function(T,Q,k,l){k=k===void 0?0:k;this.width=Q;this.Y=k;this.T=Q-k-(l===void 0?0:l);this.position=g.ti(T,k,k+this.T);this.L=this.position-k;this.S=this.L/this.T};g.S(Qib,g.p);g.S(g.Tu,g.M1);g.h=g.Tu.prototype;
  12703. g.h.aP=function(){var T=!1,Q=this.api.getVideoData();if(!Q)return T;this.api.uf("timedMarkerCueRange");lrb(this);for(var k=g.B(Q.K_),l=k.next();!l.done;l=k.next()){l=l.value;var v=void 0,L=(v=this.p_[l])==null?void 0:v.markerType,q=void 0;v=(q=this.p_[l])==null?void 0:q.markers;if(!v)break;if(L==="MARKER_TYPE_TIMESTAMPS"){T=g.B(v);for(L=T.next();!L.done;L=T.next()){q=L.value;L=new Qib;var Y=void 0;L.title=((Y=q.title)==null?void 0:Y.simpleText)||"";L.timeRangeStartMillis=Number(q.startMillis);L.T=
  12704. Number(q.durationMillis);var U=Y=void 0;L.onActiveCommand=(U=(Y=q.onActive)==null?void 0:Y.innertubeCommand)!=null?U:void 0;M15(this,L)}Yf5(this,this.C);T=this.C;L=this.vk;q=[];Y=null;for(U=0;U<T.length;U++){var R=T[U].timeRangeStartMillis;if(!isNaN(R)&&T[U].onActiveCommand){var Z=void 0,f=(Z=T[U].T)!=null?Z:1E4;Y&&Y.end>R&&(Y.end=R);R=bs5(R,R+f);q.push(R);Y=R;L[R.id]=T[U].onActiveCommand}}this.api.fY(q);a:{T=g.B(v);for(v=T.next();!v.done;v=T.next())if(v.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){T=
  12705. !1;break a}T=!0}T&&(this.NK=this.p_[l]);T=!0}else if(L==="MARKER_TYPE_HEATMAP"){l=this.p_[l];Z=R=L=U=Y=q=void 0;if(l&&l.markers){v=(L=(Z=l.markersMetadata)==null?void 0:(R=Z.heatmapMetadata)==null?void 0:R.minHeightDp)!=null?L:0;L=(q=(U=l.markersMetadata)==null?void 0:(Y=U.heatmapMetadata)==null?void 0:Y.maxHeightDp)!=null?q:60;q=this.T.length;Y=null;for(U=0;U<q;U++){Z=this.T[U].startTime;f=U===q-1?Infinity:this.T[U+1].startTime;U===this.Y.length&&k0C(this);R=[];Y&&R.push(Y);for(var G=g.B(l.markers),
  12706. m=G.next();!m.done;m=G.next()){m=m.value;var I=Number(m.startMillis);I>=Z&&I<=f&&R.push(m)}L>0&&(this.qO.style.height=L+"px");Z=this.Y[U];f=R;m=v;var z=L,w=U===0;w=w===void 0?!1:w;i05(Z,z);G=f;I=Z.S;w=w===void 0?!1:w;var r=1E3/G.length,A=[];A.push({x:0,y:100});for(var D=0;D<G.length;D++){var K=(D+.5)*r,O=100-g.ti((G[D].intensityScoreNormalized||0)*100,m/I*100,z/I*100);D!==0||w||A.push({x:0,y:O});A.push({x:K,y:O});D===G.length-1&&A.push({x:1E3,y:O})}A.push({x:1E3,y:100});G=A;f=f.length===0?"":GAX(G);
  12707. Z.api.V("delhi_modern_web_player")?Z.L.setAttribute("d",f):Z.B.setAttribute("d",f);Z.Hk=f!=="";g.gl(Z.api.getRootNode(),"ytp-heat-map",Z.Hk);Z.api.V("delhi_modern_web_player")?(Z.Y.style.display="none",Z.T.style.display="none"):Z.L.style.display="none";R.length>0&&(Y=R[R.length-1])}g.Qg(this)}L=void 0;v=[];if(l=(L=l.markersDecoration)==null?void 0:L.timedMarkerDecorations)for(l=g.B(l),L=l.next();!L.done;L=l.next())L=L.value,U=Y=q=void 0,v.push({visibleTimeRangeStartMillis:(q=L.visibleTimeRangeStartMillis)!=
  12708. null?q:-1,visibleTimeRangeEndMillis:(Y=L.visibleTimeRangeEndMillis)!=null?Y:-1,decorationTimeMillis:(U=L.decorationTimeMillis)!=null?U:NaN,label:L.label?g.Rx(L.label):""});l=v;this.heatMarkersDecorations=l}}Q.xj=this.C;g.gl(this.element,"ytp-timed-markers-enabled",T);return T};
  12709. g.h.zx=function(){g.Qg(this);la(this);Yf5(this,this.C);if(this.S){var T=g.Vf(this.element).x||0;this.S.zx(T,this.B)}};
  12710. g.h.ZAB=function(){var T=this.api.getVideoData();T&&CJ5(this,T)};
  12711. g.h.onClickCommand=function(T){if(T=g.t(T,XC)){var Q=T.key;T.isVisible&&Q&&frI(this,Q)}};
  12712. g.h.EMH=function(T){this.api.tj("innertubeCommand",this.vk[T.id])};
  12713. g.h.bC=function(){la(this);var T=this.api.getCurrentTime();(T<this.clipStart||T>this.clipEnd)&&this.jw()};
  12714. g.h.v8=function(T){if(!T.defaultPrevented){var Q=!1;switch(T.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Q=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&MK(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS");
  12715. this.api.seekBy(5,void 0,void 0,72);Q=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&MK(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),Q=!0}Q&&T.preventDefault()}};
  12716. g.h.Kp=function(T,Q){this.updateVideoData(Q,T==="newdata")};
  12717. g.h.l_=function(){this.Kp("newdata",this.api.getVideoData())};
  12718. g.h.updateVideoData=function(T,Q){Q=Q===void 0?!1:Q;var k=!!T&&T.Hk();k&&(sU(T)||si6(this)?this.m0=!1:this.m0=T.allowLiveDvr,g.gl(this.api.getRootNode(),"ytp-enable-live-buffer",!(T==null||!sU(T))),CJ5(this,T));nw6(this,this.api.Yo());if(Q){if(k){Q=T.clipEnd;this.clipStart=T.clipStart;this.clipEnd=Q;Y$(this);for(La(this,this.z9,this.QR);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.d5={};var l;(l=this.S)==null||l.reset();Gu(this);g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
  12719. V7(this))}else this.jw();this.Zb()}if(T){var v;l=((v=this.VR)==null?void 0:v.type)==="clips";if(v=!T.isLivePlayback){v=this.api.getVideoData();Q=g.TV(v);k=vwu(v);var L;v=Q!=null||k!=null&&k.length>0||((L=v.O2)==null?void 0:L.length)>0}if(v&&!l){L=this.api.getVideoData();l=g.TV(L);v=!1;if(l==null?0:l.markersMap){v=this.api.getVideoData();var q;v.Zy=((q=l.visibleOnLoad)==null?void 0:q.key)||v.Zy;q=g.B(l.markersMap);for(l=q.next();!l.done;l=q.next())l=l.value,l.key&&l.value&&(this.d5[l.key]=l.value,
  12720. l.value.onChapterRepeat&&(v.goB=l.value.onChapterRepeat));v.Zy!=null&&frI(this,v.Zy);v=!0}var Y;if(((Y=L.O2)==null?void 0:Y.length)>0){Y=g.w4.getState().entities;q=g.B(L.O2);for(l=q.next();!l.done;l=q.next()){l=l.value;k=void 0;Q=(k=V8(Y,"macroMarkersListEntity",l))==null?void 0:k.markersList;var U=k=void 0;if(((k=Q)==null?void 0:k.markerType)==="MARKER_TYPE_TIMESTAMPS"||((U=Q)==null?void 0:U.markerType)==="MARKER_TYPE_HEATMAP")this.p_[l]=Q}v=this.aP()||v}!v&&(Y=vwu(L))&&(qfX(this,Y),L.NK=this.T,
  12721. LVg(this));BAf(this,null);T.xw&&this.Y.length===0&&(T=T.xw,Y=T.key,T.isVisible&&Y&&frI(this,Y))}else jif(this),lrb(this)}la(this)};
  12722. g.h.rX=function(T){this.j&&!g.J(T.state,32)&&this.api.getPresentingPlayerType()!==3&&this.j.cancel();var Q;((Q=this.S)==null?0:Q.isEnabled)&&g.J(T.state,8)&&this.api.pauseVideo();T=this.api.getPresentingPlayerType()===2||!this.api.Yo()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.gl(this.Wk,"ytp-hide-scrubber-button",T)};
  12723. g.h.Aw=function(T){var Q=!!this.VR!==!!T,k=this.VR;this.VR=T;BAf(this,k);(T==null?void 0:T.type)!=="clips"&&T||(T?(this.updateValue("clipstarticon",Xyf()),this.updateValue("clipendicon",Xyf()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",m5C()),this.updateValue("clipendicon",GL5()),this.updateValue("clipstarttitle","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891"),this.updateValue("clipendtitle","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891")),
  12724. Q&&(this.updateVideoData(this.api.getVideoData(),!0),g.Qg(this)),Y$(this));La(this,this.z9,this.QR)};
  12725. g.h.kxB=function(){this.api.publish("progressBarHoverStart")};
  12726. g.h.YHO=function(T,Q,k){var l=g.Vf(this.element),v=k$(this).T,L=k?k.getAttribute("data-tooltip"):void 0,q=k?k.getAttribute("data-position"):void 0,Y=k?k.getAttribute("data-offset-y"):void 0;Y=Y?Number(Y):0;q&&(T=c8(this.L,Number(k.getAttribute("data-position")),0)*v+g.Vf(this.progressBar).x);this.Tg.x=T-l.x;this.Tg.y=Q-l.y;T=k$(this);k=gU(this,T);Q=0;var U;if((U=this.api.getVideoData())==null?0:sU(U))(U=this.api.getProgressState().seekableEnd)&&k>U&&(k=U,T.position=c8(this.L,U)*k$(this).T),Q=this.L.S;
  12727. si6(this)&&(Q=this.L.S);U=L||g.CN(this.m0?k-this.L.T:k-Q);Q=T.position+this.A9;k-=this.api.Px();var R;if((R=this.S)==null||!R.isEnabled)if(this.api.l7()){if(this.T.length>1){R=qK(this,this.Tg.x,!0);if(!this.VR)for(l=0;l<this.T.length;)g.gl(this.T[l].T,"ytp-exp-chapter-hover-effect",l===R),l++;if(this.Y.length>1)for(l=0;l<this.T.length;l++)g.gl(this.Y[l].element,"ytp-heatmap-hover",l===R)}if(this.C.length>0)for(R=this.Tg.x,l=g.B(this.C),v=l.next();!v.done;v=l.next())v=v.value,q=jW(this,v.timeRangeStartMillis/
  12728. (this.L.T*1E3),k$(this)),g.gl(v.element,"ytp-timed-marker-hover",q<=R&&q+6>=R);l=this.tooltip.scale;R=this.api.V("delhi_modern_web_player")?67:45;Y=(isNaN(Y)?0:Y)-R*l;this.api.V("web_key_moments_markers")?this.NK?(R=dc5(this.C,k*1E3),R=R!=null?this.C[R].title:""):(R=mJ(this.T,k*1E3),R=this.T[R].title):(R=mJ(this.T,k*1E3),R=this.T[R].title);R||(Y+=16*l);this.tooltip.scale===.6&&(g.Cn(this.api.G())?(Y=this.api.Hx().getPlayerSize().height-225,l=this.api.V("delhi_modern_web_player")?70:110,Y=R?Y+l:Y+
  12729. l+16):Y=R?110:126);l=mJ(this.T,k*1E3);this.i9=XAu(this,k,l)?l:XAu(this,k,l+1)?l+1:-1;g.gl(this.api.getRootNode(),"ytp-progress-bar-snap",this.i9!==-1&&this.T.length>1);l=!1;v=g.B(this.heatMarkersDecorations);for(q=v.next();!q.done;q=v.next()){q=q.value;var Z=k*1E3;Z>=q.visibleTimeRangeStartMillis&&Z<=q.visibleTimeRangeEndMillis&&(R=q.label,U=g.CN(q.decorationTimeMillis/1E3),this.api.V("web_heat_marker_use_current_time")&&(U=g.CN(gU(this,T))),l=!0)}this.nG!==l&&(this.nG=l,this.api.logVisibility(this.YP,
  12730. this.nG));g.gl(this.api.getRootNode(),"ytp-progress-bar-decoration",l);l=160*this.tooltip.scale*2;v=R.length*(this.D?8.55:5.7);v=v<=l?v:l;q=v<160*this.tooltip.scale;l=3;!q&&v/2>T.position&&(l=1);!q&&v/2>this.B-T.position&&(l=2);this.api.G().C&&(Y-=10);this.Y.length&&this.Y[0].Hk&&(Y-=14*(this.D?2:1),this.sK||(this.sK=!0,this.api.logVisibility(this.qO,this.sK)));var f;if(V7(this)&&(((f=this.S)==null?0:f.isEnabled)||this.K_>0)){var G;Y-=((G=this.S)==null?0:G.isEnabled)?RC(this):this.K_}f=void 0;V7(this)&&
  12731. !this.api.V("web_player_hide_fine_scrubbing_edu")&&(f="\u5411\u4e0a\u62c9\u4ee5\u7cbe\u786e\u5730\u8c03\u6574\u64ad\u653e\u8fdb\u5ea6",this.Bd||(this.Bd=!0,this.api.logVisibility(this.vn,this.Bd)));this.tooltip.iM(Q,k,U,!!L,Y,R,l,f)}else this.tooltip.iM(Q,k,U,!!L,Y);g.oF(this.api.getRootNode(),"ytp-progress-bar-hover");hMJ(this)};
  12732. g.h.FrH=function(){this.Zb();g.Lb(this.api.getRootNode(),"ytp-progress-bar-hover");this.sK&&(this.sK=!1,this.api.logVisibility(this.qO,this.sK));this.Bd&&(this.Bd=!1,this.api.logVisibility(this.vn,this.Bd));this.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")};
  12733. g.h.LrV=function(T,Q){var k=g.Vf(this.element);this.t6=T-k.x;V7(this)&&this.S&&(this.S.i9?Eu(this.S,this.api.getCurrentTime()):elC(this.S),this.S.show(),g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.S.isEnabled));this.Tw&&(this.Tw.dispose(),this.Tw=null);this.b7=Q;this.uK=this.api.getCurrentTime();this.T.length>1&&this.i9!==-1?this.api.seekTo(this.T[this.i9].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(gU(this,k$(this)),!1,void 0,void 0,7);g.oF(this.element,"ytp-drag");(this.ek=
  12734. this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
  12735. g.h.m2O=function(){if(V7(this)&&this.S){var T=RC(this);this.K_>=T*.5?(this.S.enable(),Eu(this.S,this.api.getCurrentTime()),uq5(this,T)):Gu(this)}if(g.J(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Q;if((Q=this.S)==null?0:Q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.i9!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&MK(this,this.uK,this.T[this.i9].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
  12736. "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.i9].startTime/1E3,void 0,void 0,void 0,7);else{T=gU(this,k$(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&MK(this,this.uK,T,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(T,void 0,void 0,void 0,7);Q=g.B(this.heatMarkersDecorations);for(var k=Q.next();!k.done;k=Q.next())k=k.value,T*1E3>=k.visibleTimeRangeStartMillis&&T*1E3<=k.visibleTimeRangeEndMillis&&
  12737. this.api.logClick(this.YP)}g.Lb(this.element,"ytp-drag");this.xm&&(this.hj.src=this.xm);this.ek&&!g.J(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
  12738. g.h.iAK=function(T,Q){var k=this,l=k$(this),v=gU(this,l);this.api.Hx().kU||(l.position>this.t6+2?this.Fk&&(this.hj.src=this.Fk):l.position<this.t6-2?this.Z8&&(this.hj.src=this.Z8):this.xm&&(this.hj.src=this.xm),setTimeout(function(){var q=g.Vf(k.element).x||0;k.t6=T-q},150));
  12739. this.api.seekTo(v,!1,void 0,void 0,7);var L;V7(this)&&((L=this.S)==null?0:L.i9)&&(Eu(this.S,v),this.S.isEnabled||(l=RC(this),this.K_=g.ti(this.b7-Q-10,0,l),uq5(this,this.K_)))};
  12740. g.h.Zb=function(){this.tooltip.Ce()};
  12741. g.h.Gu=function(){this.VR||(this.updateValue("clipstarticon",fkt()),this.updateValue("clipendicon",fkt()),g.oF(this.element,"ytp-clip-hover"))};
  12742. g.h.KI=function(){this.VR||(this.updateValue("clipstarticon",m5C()),this.updateValue("clipendicon",GL5()),g.Lb(this.element,"ytp-clip-hover"))};
  12743. g.h.jw=function(){this.clipStart=0;this.clipEnd=Infinity;Y$(this);La(this,this.z9,this.QR)};
  12744. g.h.veO=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.visible){var k=Q.getId();if(!this.Jj[k]){var l=g.fO("DIV");Q.tooltip&&l.setAttribute("data-tooltip",Q.tooltip);this.Jj[k]=Q;this.DP[k]=l;g.kh(l,Q.style);wAJ(this,k);this.api.G().V("disable_ad_markers_on_content_progress_bar")||this.T[0].Y.appendChild(l)}}else ary(this,Q)};
  12745. g.h.Llm=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())ary(this,Q.value)};
  12746. g.h.Zu=function(T){this.S&&(this.S.onExit(T!=null),Gu(this))};
  12747. g.h.UL=function(T){this.S&&(this.S.play(T!=null),Gu(this))};
  12748. g.h.fGe=function(){nw6(this,this.api.Yo())};
  12749. g.h.EK=function(){nw6(this,!1);g.M1.prototype.EK.call(this)};g.S(mv,g.p);mv.prototype.isActive=function(){return!!this.U.getOption("remote","casting")};
  12750. mv.prototype.Aj=function(){var T=!1;this.U.getOptions().includes("remote")&&(T=this.U.getOption("remote","receivers").length>1);this.o_(T&&this.U.Hx().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.Sr);var Q=1;T&&this.isActive()&&(Q=2);if(this.T!==Q){this.T=Q;T=this.U.V("delhi_modern_web_player_icons");switch(Q){case 1:this.updateValue("icon",T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
  12751. fill:"white"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon",
  12752. T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
  12753. fill:"white"}}]}:g.ZYI())}g.gl(this.element,"ytp-remote-button-active",this.isActive())}};
  12754. mv.prototype.S=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var T=this.YB,Q=this.element;if(T.n$())T.sG();else{T.initialize();a:{var k=g.B(T.xP.items);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.priority===1){k=l;break a}k=null}k&&(k.open(),T.fA(Q));T.fA(Q)}}this.U.logClick(this.element)};g.S(IC,g.p);IC.prototype.T=function(T){var Q=this.U.G(),k=400;this.U.V("web_player_small_hbp_settings_menu")&&Q.B?k=300:Q.C&&(k=200);T=this.S&&T.width>=k;this.o_(T);this.U.V("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,T&&this.N):this.U.logVisibility(this.element,T)};
  12755. IC.prototype.L=function(){if(this.YB.Sr)this.YB.sG();else{var T=g.uj(this.U.Bx());T&&!T.loaded&&(T.R2("tracklist",{includeAsr:!0}).length||T.load());this.U.logClick(this.element);this.YB.fA(this.element)}};
  12756. IC.prototype.updateBadge=function(){var T=this.U.isHdr(),Q=this.U.getPresentingPlayerType(),k=Q!==2&&Q!==3,l=g.V5(this.U),v=k&&!!g.y5(this.U.Bx());Q=v&&l.displayMode===1;l=v&&l.displayMode===2;k=(v=Q||l)||!k?null:this.U.getPlaybackQuality();g.gl(this.element,"ytp-hdr-quality-badge",T);g.gl(this.element,"ytp-hd-quality-badge",!T&&(k==="hd1080"||k==="hd1440"));g.gl(this.element,"ytp-4k-quality-badge",!T&&k==="hd2160");g.gl(this.element,"ytp-5k-quality-badge",!T&&k==="hd2880");g.gl(this.element,"ytp-8k-quality-badge",
  12757. !T&&k==="highres");g.gl(this.element,"ytp-3d-badge-grey",!T&&v&&Q);g.gl(this.element,"ytp-3d-badge",!T&&v&&l)};g.S(hE,zQ);hE.prototype.isLoaded=function(){var T=g.t4(this.U.Bx());return T!==void 0&&T.loaded};
  12758. hE.prototype.Aj=function(){g.t4(this.U.Bx())!==void 0&&this.U.getPresentingPlayerType()!==3?this.T||(this.YB.A6(this),this.T=!0):this.T&&(this.YB.y8(this),this.T=!1);Xe(this,this.isLoaded())};
  12759. hE.prototype.onSelect=function(T){this.isLoaded();T?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",T)};
  12760. hE.prototype.EK=function(){this.T&&this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(sL,g.Hp);sL.prototype.Aj=function(){var T=this.U.getAvailableAudioTracks();T.length>1?(this.VE(g.IQ(T,this.T)),this.tracks=g.yJ(T,this.T,this),this.countLabel.qF(T.length?" ("+T.length+")":""),this.publish("size-change"),this.U$(this.T(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)};
  12761. sL.prototype.BT=function(T){g.Hp.prototype.BT.call(this,T);this.U.setAudioTrack(this.tracks[T]);this.YB.NN()};
  12762. sL.prototype.T=function(T){return T.toString()};g.S(SW,zQ);
  12763. SW.prototype.S=function(){var T=this.U.getPresentingPlayerType();if(T!==2&&T!==3&&g.QS(this.U))this.T||(this.YB.A6(this),this.T=!0,this.L.push(this.Z(this.U,"videodatachange",this.S)),this.L.push(this.Z(this.U,"videoplayerreset",this.S)),this.L.push(this.Z(this.U,"onPlaylistUpdate",this.S)),this.L.push(this.Z(this.U,"autonavchange",this.Y)),T=this.U.getVideoData(),this.Y(T.autonavState),this.U.logVisibility(this.element,this.T));else if(this.T){this.YB.y8(this);this.T=!1;T=g.B(this.L);for(var Q=T.next();!Q.done;Q=
  12764. T.next())this.J6(Q.value)}};
  12765. SW.prototype.Y=function(T){Xe(this,T!==1)};
  12766. SW.prototype.onSelect=function(T){this.U.Pi(T?2:1);this.T&&(this.U.logVisibility(this.element,this.T),this.U.logClick(this.element))};
  12767. SW.prototype.EK=function(){this.T&&this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(xq5,g.UQ);xq5.prototype.onClick=function(T){T.preventDefault();var Q,k;(Q=g.aa(this.U))==null||(k=Q.K$())==null||k.sG();var l,v;(l=g.aa(this.U))==null||(v=l.yM())==null||v.fA(T.target)};g.S(PJu,g.Hp);g.h=PJu.prototype;
  12768. g.h.nh=function(){var T=this.U.getPresentingPlayerType();if(T!==2&&T!==3){this.hj=this.U.G6();var Q=this.U.getAvailableQualityLevels();if(this.T){this.Y={};T=g.Ay(this.U,"getAvailableQualityData",[]);T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value,this.Y[k.qualityLabel]=k;T=Object.keys(this.Y);Q[Q.length-1]==="auto"&&T.push("auto");this.xm=new Set(Q)}else if(this.B){k=g.Ay(this.U,"getAvailableQualityData",[]);T=[];k=g.B(k);for(var l=k.next();!l.done;l=k.next())l=l.value,this.j[l.quality]=
  12769. l,l.quality&&T.push(l.quality);Q[Q.length-1]==="auto"&&T.push("auto")}else T=Q;g.DZI(this.U)&&this.U.Wm()&&T.unshift("missing-qualities");Q=this.U.app.Pd();k=Q.getVideoData();if(!k.S||!k.S.video||k.S.video.qualityOrdinal<1080||k.OT)Q=!1;else{l=/^qsa/.test(k.clientPlaybackNonce);var v="r";k.S.id.indexOf(";")>=0&&(l=/^[a-p]/.test(k.clientPlaybackNonce),v="x");l?(Q.T9("iqss",{trigger:v},!0),Q=!0):Q=!1}Q&&T.unshift("inline-survey");this.VE(T);Q=this.U.getVideoData().cotn?!0:!1;k=this.qO.In();k=!g.Cn(this.U.G())||
  12770. !(Q===void 0?0:Q)||!(k===void 0||k);Q=this.S;k=k===void 0?!1:k;Q.aR&&g.gl(Q.L_("ytp-panel-footer"),"ytp-panel-hide-footer",k===void 0?!1:k);if(T.length){this.j4();this.enable(!0);return}}this.enable(!1)};
  12771. g.h.j4=function(){if(this.T){var T=this.U.getPreferredQuality();this.xm.has(T)&&(this.C=this.U.getPlaybackQuality(),this.z9=this.U.getPlaybackQualityLabel(),T==="auto"?(this.U$(T),this.qF(this.U4(T))):this.U$(this.z9))}else T=this.U.getPreferredQuality(),this.options[T]&&(this.C=this.U.getPlaybackQuality(),this.U$(T),T==="auto"&&this.qF(this.U4(T)))};
  12772. g.h.BT=function(T){if(T!=="missing-qualities"){g.Hp.prototype.BT.call(this,T);var Q=this.T?this.Y[T]:this.j[T];var k=Q==null?void 0:Q.quality,l=Q==null?void 0:Q.formatId,v=Q==null?void 0:Q.paygatedQualityDetails;Q=v==null?void 0:v.endpoint;if(v){var L;v=(L=this.options[T])==null?void 0:L.element;this.U.logClick(v)}if(this.T){var q,Y;if((q=g.t(Q,g.tNJ))==null?0:(Y=q.popup)==null?0:Y.notificationActionRenderer)this.U.tj("innertubeCommand",Q);else if(Q){this.U.tj("innertubeCommand",Q);return}l?this.U.setPlaybackQuality(k,
  12773. l):this.U.setPlaybackQuality(k)}else{if(this.B){var U,R;if((U=g.t(Q,g.tNJ))==null?0:(R=U.popup)==null?0:R.notificationActionRenderer)this.U.tj("innertubeCommand",Q);else if(Q){this.U.tj("innertubeCommand",Q);return}}this.U.setPlaybackQuality(T)}this.YB.sG();this.nh()}};
  12774. g.h.open=function(){for(var T=g.B(Object.values(this.options)),Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var k=void 0;this.U.hasVe((k=Q)==null?void 0:k.element)&&(k=void 0,this.U.logVisibility((k=Q)==null?void 0:k.element,!0))}g.Hp.prototype.open.call(this);this.U.logClick(this.element)};
  12775. g.h.Lw=function(T,Q,k){var l=this;if(T==="missing-qualities")return new g.UQ({X:"a",Rk:["ytp-menuitem"],K:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.G().D,tabindex:"0",role:"menuitemradio"},W:[{X:"div",Rk:["ytp-menuitem-label"],S6:"{{label}}"}]},Q,this.U4(T));if(T!=="inline-survey"){var v,L=(v=this.T?this.Y[T]:this.j[T])==null?void 0:v.paygatedQualityDetails;v=L==null?void 0:L.veType;L=L==null?void 0:L.trackingParams;Q=g.Hp.prototype.Lw.call(this,T,Q,k);L?(this.U.createServerVe(Q.element,
  12776. this,!0),this.U.setTrackingParams(Q.element,L)):v&&this.U.createClientVe(Q.element,this,v,!0);return Q}T=[{X:"span",S6:"\u6ee1\u610f\u5417\uff1f"}];k=g.B([!0,!1]);L=k.next();for(v={};!L.done;v={rR:void 0},L=k.next())v.rR=L.value,L=new g.p({X:"span",J:"ytp-menuitem-inline-survey-response",W:[v.rR?zY5():hYT()],K:{tabindex:"0",role:"button"}}),L.listen("click",function(q){return function(){var Y=l.U.app.Pd();Y.T9("iqsr",{tu:q.rR});Y.getVideoData().OT=!0;l.YB.sG();l.nh()}}(v)),T.push(L);
  12777. return new g.UQ({X:"div",J:"ytp-menuitem",K:{"aria-disabled":"true"},W:[{X:"div",Rk:["ytp-menuitem-label"],W:T}]},Q)};
  12778. g.h.U4=function(T,Q){Q=Q===void 0?!1:Q;if(T==="missing-qualities")return{X:"div",S6:"\u7f3a\u5c11\u9009\u9879\uff1f"};if(T==="inline-survey")return"";var k=this.B||this.T?[OE6(this,T,Q,!1)]:[t1f(this,T)];var l=this.U.getPreferredQuality();Q||l!=="auto"||T!=="auto"||(k.push(" "),this.T?k.push(OE6(this,this.z9,Q,!0,["ytp-menu-label-secondary"])):this.B?k.push(OE6(this,this.C,Q,!0,["ytp-menu-label-secondary"])):k.push(t1f(this,this.C,["ytp-menu-label-secondary"])));return{X:"div",W:k}};g.S(Ca,Ou);Ca.prototype.L=function(){Ou.prototype.L.call(this);this.D&&pA5(this)};
  12779. Ca.prototype.xm=function(){this.z9()};
  12780. Ca.prototype.hj=function(){this.U.setPlaybackRate(this.T,!0)};
  12781. Ca.prototype.C=function(T){Ou.prototype.C.call(this,T);this.z9();pA5(this);T.preventDefault()};g.S(Bw,g.p);g.h=Bw.prototype;g.h.init=function(){this.ix(this.T);this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.L)};
  12782. g.h.aL=function(T){if(!T.defaultPrevented){switch(T.keyCode){case 37:case 40:var Q=-this.j;break;case 39:case 38:Q=this.j;break;default:return}this.ix(this.T+Q);T.preventDefault()}};
  12783. g.h.fL=function(T){var Q=this.T;Q+=(T.deltaX||-T.deltaY)<0?-this.D:this.D;this.ix(Q);T.preventDefault()};
  12784. g.h.DJ=function(T){T=(T-g.Vf(this.Y).x)/this.z9*this.range+this.S;this.ix(T)};
  12785. g.h.ix=function(T,Q){Q=Q===void 0?"":Q;T=g.ti(T,this.S,this.L);Q===""&&(Q=T.toString());this.updateValue("valuenow",T);this.updateValue("valuetext",Q);this.qO.style.left=(T-this.S)/this.range*(this.z9-this.i9)+"px";this.T=T};
  12786. g.h.focus=function(){this.e6.focus()};g.S(zu,Bw);zu.prototype.hj=function(){this.U.setPlaybackRate(this.T,!0)};
  12787. zu.prototype.ix=function(T){Bw.prototype.ix.call(this,T,$qf(this,T).toString());this.B&&(WV6(this),this.xm())};
  12788. zu.prototype.updateValues=function(){var T=this.U.getPlaybackRate();$qf(this,this.T)!==T&&(this.ix(T),WV6(this))};g.S(Jrt,g.M1);Jrt.prototype.focus=function(){this.T.focus()};g.S(eM6,AO);g.S(Ew5,g.Hp);g.h=Ew5.prototype;g.h.U4=function(T){return T==="1"?"\u6b63\u5e38":T.toLocaleString()};
  12789. g.h.Aj=function(){var T,Q=(T=this.U.getVideoData())==null?void 0:T.lf();T=this.U.getPresentingPlayerType(Q);this.enable(T!==2&&T!==3);V1f(this)};
  12790. g.h.VE=function(T){g.Hp.prototype.VE.call(this,T);this.j&&this.j.S.focus()};
  12791. g.h.H0=function(T){g.Hp.prototype.H0.call(this,T);T?(this.qO=this.Z(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),V1f(this),yrg(this,this.U.getPlaybackRate())):(this.J6(this.qO),this.qO=null)};
  12792. g.h.onPlaybackRateChange=function(T){var Q=this.U.getPlaybackRate();!this.Y&&this.z9.includes(Q)||iEI(this,Q);yrg(this,T)};
  12793. g.h.Lw=function(T,Q,k){return T===this.T&&Q95(this.U)?g.Hp.prototype.Lw.call(this,T,Q,k,{X:"div",J:"ytp-speed-slider-menu-footer",W:[this.j]}):T===this.B&&FVf(this.U)?Trt(this,T,Q,k):g.Hp.prototype.Lw.call(this,T,Q,k)};
  12794. g.h.BT=function(T){g.Hp.prototype.BT.call(this,T);T===this.T?this.U.setPlaybackRate(this.C,!0):this.U.setPlaybackRate(Number(T),!0);Q95(this.U)&&T===this.T||this.YB.NN()};
  12795. g.h.Yj=function(T){var Q=T===this.T;this.Y=!1;Q&&Xx(this.U)&&!Q95(this.U)?(T=new eM6(this.U),g.Dx(this.YB,T)):g.Hp.prototype.Yj.call(this,T)};g.S(kYC,g.Hp);g.h=kYC.prototype;g.h.U$=function(T){g.Hp.prototype.U$.call(this,T)};
  12796. g.h.bB=function(T){return T.option.toString()};
  12797. g.h.getOption=function(T){return this.settings[T]};
  12798. g.h.U4=function(T){return this.getOption(T).text||""};
  12799. g.h.BT=function(T){g.Hp.prototype.BT.call(this,T);this.publish("settingChange",this.setting,this.settings[T].option)};g.S(dU,g.b_);dU.prototype.Wl=function(T){for(var Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next()){var l=k.value;if(k=this.dT[l]){var v=T[l].toString();l=!!T[l+"Override"];k.options[v]&&(k.U$(v),k.Y.element.setAttribute("aria-checked",String(!l)),k.T.element.setAttribute("aria-checked",String(l)))}}};
  12800. dU.prototype.aB=function(T,Q){this.publish("settingChange",T,Q)};g.S(NK,g.Hp);NK.prototype.T=function(T){return T.languageCode};
  12801. NK.prototype.U4=function(T){return this.languages[T].languageName||""};
  12802. NK.prototype.BT=function(T){this.publish("select",T);this.U.logClick(this.element);g.a4(this.YB)};g.S(vVb,g.Hp);g.h=vVb.prototype;g.h.ph=function(T){return g.Rs(T)?"__off__":T.displayName};
  12803. g.h.U4=function(T){return T==="__off__"?"\u5173\u95ed":T==="__translate__"?"\u81ea\u52a8\u7ffb\u8bd1":T==="__contribute__"?"\u6dfb\u52a0\u5b57\u5e55":T==="__correction__"?"\u5efa\u8bae\u66f4\u6b63\u5b57\u5e55":(T==="__off__"?{}:this.tracks[T]).displayName};
  12804. g.h.BT=function(T){if(T==="__translate__")this.T.open();else if(T==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var Q=g.ld(this.U.G(),this.U.getVideoData());g.Oe(Q)}else if(T==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var k=Ltt(this);AE(this,k);g.Hp.prototype.BT.call(this,this.ph(k));var l,v;k=(Q=this.U.getVideoData().getPlayerResponse())==null?void 0:(l=Q.captions)==null?void 0:(v=l.playerCaptionsTracklistRenderer)==
  12805. null?void 0:v.openTranscriptCommand;this.U.tj("innertubeCommand",k);this.YB.NN();this.Y&&this.U.logClick(this.Y)}else{if(T==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();Q=Ltt(this);AE(this,Q);g.Hp.prototype.BT.call(this,this.ph(Q));var L,q;Q=(k=this.U.getVideoData().getPlayerResponse())==null?void 0:(L=k.captions)==null?void 0:(q=L.playerCaptionsTracklistRenderer)==null?void 0:q.openTranscriptCommand;this.U.tj("innertubeCommand",Q)}else this.U.logClick(this.element),
  12806. AE(this,T==="__off__"?{}:this.tracks[T]),g.Hp.prototype.BT.call(this,T);this.YB.NN()}};
  12807. g.h.Aj=function(){var T=this.U.getOptions();T=T&&T.indexOf("captions")!==-1;var Q=this.U.getVideoData(),k=Q&&Q.U2,l,v=!((l=this.U.getVideoData())==null||!g.mK(l));l={};if(T||k){var L;if(T){var q=this.U.getOption("captions","track");l=this.U.getOption("captions","tracklist",{includeAsr:!0});var Y=v?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.yJ(l,this.ph,this);v=g.IQ(l,this.ph);var U,R;Ltt(this)&&((L=Q.getPlayerResponse())==null?0:(U=L.captions)==null?0:(R=U.playerCaptionsTracklistRenderer)==
  12808. null?0:R.openTranscriptCommand)&&v.push("__correction__");if(Y.length&&!g.Rs(q)){if((L=q.translationLanguage)&&L.languageName){var Z=L.languageName;L=Y.findIndex(function(f){return f.languageName===Z});
  12809. b55(Y,L)}lS5(this.T,Y);v.push("__translate__")}L=this.ph(q)}else this.tracks={},v=[],L="__off__";v.unshift("__off__");this.tracks.__off__={};k&&v.unshift("__contribute__");this.tracks[L]||(this.tracks[L]=q,v.push(L));this.VE(v);this.U$(L);q&&q.translationLanguage?this.T.U$(this.T.T(q.translationLanguage)):BU6(this.T);T&&this.B.Wl(this.U.getSubtitlesUserSettings());this.countLabel.qF(l&&l.length?" ("+l.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
  12810. g.h.Ma=function(T){var Q=this.U.getOption("captions","track");Q=g.Gs(Q);Q.translationLanguage=this.T.languages[T];AE(this,Q)};
  12811. g.h.aB=function(T,Q){if(T==="reset")this.U.resetSubtitlesUserSettings();else{var k={};k[T]=Q;this.U.updateSubtitlesUserSettings(k)}oVb(this,!0);this.C.start();this.B.Wl(this.U.getSubtitlesUserSettings())};
  12812. g.h.D2d=function(T){T||g.iN(this.C)};
  12813. g.h.EK=function(){g.iN(this.C);g.Hp.prototype.EK.call(this)};
  12814. g.h.open=function(){g.Hp.prototype.open.call(this);this.options.__correction__&&!this.Y&&(this.Y=this.options.__correction__.element,this.U.createClientVe(this.Y,this,167341),this.U.logVisibility(this.Y,!0))};g.S(qTX,g.cp);g.h=qTX.prototype;
  12815. g.h.initialize=function(){if(!this.isInitialized){var T=this.U.G();this.isInitialized=!0;try{this.aI=new PJu(this.U,this)}catch(k){g.rB(Error("QualityMenuItem creation failed"))}g.P(this,this.aI);var Q=new vVb(this.U,this);g.P(this,Q);T.L||(Q=new hE(this.U,this),g.P(this,Q));T.enableSpeedOptions&&(Q=new Ew5(this.U,this),g.P(this,Q));(g.Qk(T)||T.B)&&(T.S||T.Jj)&&(Q=new xq5(this.U,this),g.P(this,Q));T.Ah&&!T.V("web_player_move_autonav_toggle")&&(T=new SW(this.U,this),g.P(this,T));T=new sL(this.U,this);
  12816. g.P(this,T);this.U.publish("settingsMenuInitialized");KVC(this.settingsButton,this.xP.ym())}};
  12817. g.h.A6=function(T){this.initialize();this.xP.A6(T);KVC(this.settingsButton,this.xP.ym())};
  12818. g.h.y8=function(T){this.Sr&&this.xP.ym()<=1&&this.hide();this.xP.y8(T);KVC(this.settingsButton,this.xP.ym())};
  12819. g.h.fA=function(T){this.initialize();this.xP.ym()>0&&g.cp.prototype.fA.call(this,T)};
  12820. g.h.sG=function(){this.oU?this.oU=!1:g.cp.prototype.sG.call(this)};
  12821. g.h.show=function(){g.cp.prototype.show.call(this);g.oF(this.U.getRootNode(),"ytp-settings-shown")};
  12822. g.h.hide=function(){g.cp.prototype.hide.call(this);g.Lb(this.U.getRootNode(),"ytp-settings-shown")};
  12823. g.h.H1=function(T){this.U.logVisibility(this.element,T);this.U.publish("settingsMenuVisibilityChanged",T)};g.S(YTf,g.p);g.h=YTf.prototype;g.h.onClick=function(){if(ba(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var T=!1,Q=g.Py(g.xq(),65);g.Cn(this.U.G())&&Q!=null&&(T=!Q);T&&this.U.G().V("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}};
  12824. g.h.hvd=function(T){var Q,k;(Q=g.aa(this.U))==null||(k=Q.K$())==null||k.fA(T)};
  12825. g.h.isEnabled=function(){var T=this.U.getOption("captions","track");return!(!T||!T.displayName)};
  12826. g.h.Aj=function(){var T=ba(this),Q=300;this.U.G().C&&(Q=480);this.U.V("delhi_modern_web_player_icons")&&this.updateValue("icon",MiJ(this));if(this.U.G().B){this.updateValue("title",g.pX(this.U,"\u5b57\u5e55","c"));this.update({"tooltip-title":g.pX(this.U,"\u5b57\u5e55","c")});this.update({"data-title-no-tooltip":"\u5b57\u5e55"});var k=T}else{if(T)(k=this.L_("ytp-subtitles-button-icon"))==null||k.setAttribute("fill-opacity","1"),this.U.G().V("player_tooltip_data_title_killswitch")?this.updateValue("title",
  12827. g.pX(this.U,"\u5b57\u5e55","c")):this.update({"tooltip-title":g.pX(this.U,"\u5b57\u5e55","c")}),this.update({"data-title-no-tooltip":"\u5b57\u5e55"});else{if(this.U.V("delhi_modern_web_player_icons")){var l;(l=this.L_("ytp-subtitles-button-icon"))==null||l.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var v;(v=this.L_("ytp-subtitles-button-icon"))==null||v.setAttribute("fill-opacity","0.3")}this.updateValue("title","\u65e0\u6cd5\u663e\u793a\u5b57\u5e55");this.update({"tooltip-title":"\u65e0\u6cd5\u663e\u793a\u5b57\u5e55"});
  12828. this.update({"data-title-no-tooltip":"\u65e0\u6cd5\u663e\u793a\u5b57\u5e55"})}k=!0}this.tooltip.wO();k=k&&this.U.Hx().getPlayerSize().width>=Q;this.o_(k);this.U.V("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,k&&this.N):this.U.logVisibility(this.element,k);T?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
  12829. g.h.vx=function(T){g.p.prototype.vx.call(this,T);this.U.G().V("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.Sr&&T)};g.S(g.rU,g.p);g.h=g.rU.prototype;g.h.canShowCountdown=function(){return!D4(this)&&!cw(this)};
  12830. g.h.bC=function(){var T=this.api.Hx().getPlayerSize().width,Q=this.D;this.api.G().C&&(Q=400);Q=T>=Q&&(!cw(this)||!g.J(this.api.getPlayerStateObject(),64));this.o_(Q);g.gl(this.element,"ytp-time-display-allow-autohide",Q&&T<400);T=this.api.getProgressState();if(Q){var k=this.api.getPresentingPlayerType();Q=this.api.getCurrentTime(k,!1);this.S&&(Q-=T.airingStart);D4(this)&&(Q-=this.VR.startTimeMs/1E3);this.canShowCountdown()&&this.L&&(Q-=this.api.getDuration(k,!1));var l=g.CN(Q);this.Y!==l&&(this.updateValue("currenttime",
  12831. l),this.Y=l);k=D4(this)?(this.VR.endTimeMs-this.VR.startTimeMs)/1E3:this.api.getDuration(k,!1);l=g.CN(k);this.B!==l&&(this.updateValue("duration",l),this.B=l,Q&&(Q=g.o0("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.CN(Q,!0),DURATION:g.CN(k,!0)}),this.updateValue("timeDisplayAriaLabel",Q)))}UB5(this,T.isAtLiveHead);R4J(this,this.api.getLoopRange())};
  12832. g.h.onLoopRangeChange=function(T){var Q=this.VR!==T;this.VR=T;Q&&(this.bC(),ZRy(this))};
  12833. g.h.dFq=function(){this.api.setLoopRange(null)};
  12834. g.h.WeV=function(){this.L=!this.L;this.bC()};
  12835. g.h.onVideoDataChange=function(T,Q,k){this.updateVideoData((this.api.G().V("enable_topsoil_wta_for_halftime")||this.api.G().V("enable_topsoil_wta_for_halftime_live_infra"))&&k===2?this.api.getVideoData(1):Q);this.bC();ZRy(this)};
  12836. g.h.updateVideoData=function(T){this.yA=T.isLivePlayback&&!T.zg;this.S=sU(T);this.isPremiere=T.isPremiere;g.gl(this.element,"ytp-live",cw(this));this.api.V("delhi_modern_web_player")&&this.L_("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())};
  12837. g.h.onClick=function(T){T.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
  12838. g.h.EK=function(){this.T&&this.T();g.p.prototype.EK.call(this)};g.S(GYH,g.p);g.h=GYH.prototype;g.h.pH=function(){var T=this.api.jj();this.L!==T&&(this.L=T,fSH(this,this.api.getVolume(),this.api.isMuted()))};
  12839. g.h.IW=function(T){this.o_(T.width>=350)};
  12840. g.h.zi=function(T){if(!T.defaultPrevented){var Q=T.keyCode,k=null;Q===37?k=this.volume-5:Q===39?k=this.volume+5:Q===36?k=0:Q===35&&(k=100);k!==null&&(k=g.ti(k,0,100),k===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(k)),T.preventDefault())}};
  12841. g.h.Hj=function(T){var Q=T.deltaX||-T.deltaY;T.deltaMode?this.api.setVolume(this.volume+(Q<0?-10:10)):this.api.setVolume(this.volume+g.ti(Q/10,-10,10));T.preventDefault()};
  12842. g.h.yhj=function(){aC(this,this.T,!0,this.S,this.api.uS());this.D=this.volume;this.api.isMuted()&&this.api.unMute()};
  12843. g.h.yz=function(T){var Q=this.L?78:52,k=this.L?18:12;T-=g.Vf(this.j).x;this.api.setVolume(g.ti((T-k/2)/(Q-k),0,1)*100)};
  12844. g.h.HY9=function(){aC(this,this.T,!1,this.S,this.api.uS());this.volume===0&&(this.api.mute(),this.api.setVolume(this.D))};
  12845. g.h.onVolumeChange=function(T){fSH(this,T.volume,T.muted)};
  12846. g.h.M7=function(){aC(this,this.T,this.isDragging,this.S,this.api.uS())};
  12847. g.h.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.C,"ytp-volume-slider-active")};g.S(ua,g.p);
  12848. ua.prototype.onVideoDataChange=function(){var T=this.api.G();this.zx();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).hh;this.o_(this.visible);this.api.logVisibility(this.element,this.visible&&this.N);if(this.visible){var Q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Q)}T.L&&(this.T&&(this.J6(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.oF(this.element,"no-link"));
  12849. Q=this.api.G();T=this.api.getVideoData();var k="";Q.L||(Q=g.mq(Q),Q.indexOf("www.")===0&&(Q=Q.substring(4)),k=g.S$(T)?"\u5728 YouTube Music \u4e0a\u6b23\u8d4f":Q==="youtube.com"?"\u5728 YouTube \u4e0a\u89c2\u770b":g.o0("\u5728 $WEBSITE \u4e0a\u89c2\u770b",{WEBSITE:Q}));this.api.V("player_tooltip_data_title_killswitch")?this.updateValue("title",k):this.updateValue("tooltip-title",k)};
  12850. ua.prototype.onClick=function(T){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Q=this.api.G(),k=this.api.getVideoUrl(!g.B8(T),!1,!0,!0);if(g.Qk(Q)){var l={};g.Qk(Q)&&g.Ay(this.api,"addEmbedsConversionTrackingParams",[l]);k=g.sD(k,l)}g.dh(k,this.api,T);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
  12851. ua.prototype.zx=function(){var T={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
  12852. Q=28666,k=this.api.getVideoData();this.api.isEmbedsShortsMode()?T={X:"svg",K:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{X:"path",K:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
  12853. fill:"#fff"}}]}:g.S$(k)&&(T={X:"svg",K:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{X:"path",K:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{X:"path",K:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
  12854. fill:"white"}},{X:"path",K:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{X:"path",K:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",K:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
  12855. fill:"white"}},{X:"path",K:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{X:"path",K:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
  12856. fill:"white"}},{X:"path",K:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{X:"path",K:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
  12857. fill:"white"}},{X:"path",K:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
  12858. fill:"white"}},{X:"path",K:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{X:"path",K:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z",
  12859. fill:"white"}}]},Q=216163);g.S$(k)?g.oF(this.element,"ytp-youtube-music-button"):g.Lb(this.element,"ytp-youtube-music-button");T.K=Object.assign({},T.K,{"aria-hidden":"true"});this.updateValue("logoSvg",T);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Q,!0)};
  12860. ua.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};g.S(h4C,g.Bj);g.h=h4C.prototype;g.h.M_=function(){if(this.U.V("web_player_max_seekable_on_ended")||!g.J(this.U.getPlayerStateObject(),2))this.progressBar.bC(),this.e6.bC()};
  12861. g.h.Dl=function(){this.G3();this.Ci.S?this.M_():this.progressBar.Zb()};
  12862. g.h.q$=function(){this.M_();this.D.start()};
  12863. g.h.G3=function(){var T;if(T=!this.U.G().S){T=this.progressBar;var Q=2*g.SF()*T.B,k=T.L;T=(k.T-k.S)*1E3/T.api.getPlaybackRate()/Q<300}T=T&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Q=!T;this.Ci.S||(T=Q=!1);Q?this.hj||(this.hj=this.Z(this.U,"progresssync",this.M_)):this.hj&&(this.J6(this.hj),this.hj=null);T?this.D.isActive()||this.D.start():this.D.stop()};
  12864. g.h.zx=function(){var T=this.U.jj(),Q=this.U.Hx().getPlayerSize(),k=this.U.Hx().kU,l=ST6(this),v=CmJ(this),L=Math.max(Q.width-l*2,100);if(this.QR!==Q.width||this.Tg!==T||this.U.V("web_player_rtr_ctrls")&&this.YI!==k)this.QR=Q.width,this.Tg=T,this.YI=k,this.S.element.style.width=v+"px",this.S.element.style.left=l+"px",g.DqI(this.progressBar,l,v,T),this.U.aK().kN=v;k=this.Y;L=Math.min(570*(T?1.5:1),L);T=Math.min(413*(T?1.5:1),Math.round((Q.height-Brg(this))*.82));k.maxWidth=L;k.maxHeight=T;k.yd();this.G3();
  12865. this.h3&&I6T(this.zg,Q.height)};
  12866. g.h.onVideoDataChange=function(){var T=this.U.getVideoData();this.p_.style.background=T.hh?T.v5:"";this.qO&&X$b(this.qO,T.showSeekingControls);this.z9&&X$b(this.z9,T.showSeekingControls)};
  12867. g.h.xB=function(){return this.S.element};g.S(z4t,N4);g.h=z4t.prototype;g.h.nO=function(T){T.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.tj("innertubeCommand",this.onClickCommand),this.Np())};
  12868. g.h.Np=function(){this.enabled=!1;this.D.hide()};
  12869. g.h.onVideoDataChange=function(T,Q){T==="dataloaded"&&XsJ(this);T=[];var k,l,v,L;if(Q=(L=g.t((k=Q.getWatchNextResponse())==null?void 0:(l=k.playerOverlays)==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.suggestedActionsRenderer,G8d))==null?void 0:L.suggestedActions)for(k=g.B(Q),l=k.next();!l.done;l=k.next())(l=g.t(l.value,mXv))&&g.t(l.trigger,fM1)&&T.push(l);if(T.length!==0){k=[];T=g.B(T);for(l=T.next();!l.done;l=T.next())if(l=l.value,v=g.t(l.trigger,fM1))L=(L=l.title)?g.Rx(L):"View Chapters",
  12870. Q=v.timeRangeStartMillis,v=v.timeRangeEndMillis,Q!=null&&v!=null&&l.tapCommand&&(k.push(new g.$d(Q,v,{priority:9,namespace:"suggested_action_button_visible",id:L})),this.suggestedActions[L]=l.tapCommand);this.U.fY(k)}};
  12871. g.h.Hs=function(){return this.enabled};
  12872. g.h.H1=function(){this.enabled?this.sK.start():wW(this);this.FE()};
  12873. g.h.EK=function(){XsJ(this);N4.prototype.EK.call(this)};var Ne={},x$=(Ne.CHANNEL_NAME="ytp-title-channel-name",Ne.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Ne.LINK="ytp-title-link",Ne.SESSIONLINK="yt-uix-sessionlink",Ne.SUBTEXT="ytp-title-subtext",Ne.TEXT="ytp-title-text",Ne.TITLE="ytp-title",Ne);g.S(Pw,g.p);Pw.prototype.onClick=function(T){this.api.logClick(this.element);var Q=this.api.G(),k=this.api.getVideoUrl(!g.B8(T),!1,!0);g.Qk(Q)&&(Q={},g.Ay(this.api,"addEmbedsConversionTrackingParams",[Q]),k=g.sD(k,Q));g.dh(k,this.api,T)};
  12874. Pw.prototype.Aj=function(){var T=this.api.getVideoData(),Q=this.api.G();this.updateValue("title",T.title);var k={X:"a",J:x$.CHANNEL_NAME,K:{href:"{{channelLink}}",target:"_blank"},S6:"{{channelName}}"};this.api.G().L&&(k={X:"span",J:x$.CHANNEL_NAME,S6:"{{channelName}}",K:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",k);ws5(this);this.api.getPresentingPlayerType()===2&&(k=this.api.getVideoData(),k.videoId&&k.isListed&&k.author&&k.Tg&&k.profilePicture?(this.updateValue("channelLink",
  12875. k.Tg),this.updateValue("channelName",k.author),this.updateValue("channelTitleFocusable","0")):ws5(this));k=Q.externalFullscreen||!this.api.isFullscreen()&&Q.QE;g.gl(this.link,x$.FULLERSCREEN_LINK,k);Q.qO||!T.videoId||k||T.hh||Q.L?this.T&&(this.updateValue("url",null),this.J6(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.Z(this.link,"click",this.onClick)));Q.L&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Qk(Q)?T.expandedTitle:
  12876. T.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.S(g.Hw,g.p);g.h=g.Hw.prototype;g.h.setEnabled=function(T){if(this.type!=null)if(T)switch(this.type){case 3:case 2:tE(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=T};
  12877. g.h.iM=function(T,Q,k,l,v,L,q,Y){if(!this.xm||this.env.C){this.type===3&&this.Zb();this.type!==1&&(g.kh(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.S&&this.S.dispose(),(this.S=this.api.l7())&&this.S.subscribe("l",this.OD,this));if(Y){var U=g.jC(this.bg).height||141;this.i9.style.bottom=U+2+"px"}else this.i9.style.display="none";this.env.V("delhi_modern_web_player")?(this.update({pillTimeStamp:k,pillTitle:L!=null?L:"",eduText:Y!=null?Y:""}),g.oF(this.element,"ytp-tooltip-progress-bar-style")):
  12878. (this.update({text:k,title:L!=null?L:"",eduText:Y!=null?Y:""}),g.gl(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L));this.api.isInline()&&g.oF(this.bottomText,"ytp-modern-tooltip-text");g.gl(this.element,"ytp-text-detail",!!l);k=-1;this.S&&(k=g4(this.S,243*this.scale),this.env.V("web_l3_storyboard")&&this.S.levels.length===4&&(k=this.S.levels.length-1),k=oNJ(this.S,k,Q));bRt(this,k);if(q)switch(Q=g.jC(this.element).width,q){case 1:this.title.style.right="0";this.title.style.textAlign=
  12879. "left";break;case 2:this.title.style.right=Q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Q/2+"px",this.title.style.textAlign="center"}AvC(this,!!l,T,v)}};
  12880. g.h.Ce=function(){this.type===1&&this.Zb()};
  12881. g.h.hA=function(T,Q){if(this.type)if(this.type===3)this.Zb();else return;dBg(this,T,3,Q)};
  12882. g.h.wO=function(){this.T&&!this.j&&(this.env.V("player_tooltip_data_title_killswitch")?this.T.hasAttribute("title")&&(this.L=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.C&&tE(this)):this.T.hasAttribute("data-tooltip-title")&&(this.L=this.T.getAttribute("data-tooltip-title")||"",this.T.removeAttribute("data-tooltip-title"),this.C&&tE(this)))};
  12883. g.h.OD=function(T,Q){T<=this.Y&&this.Y<=Q&&(T=this.Y,this.Y=NaN,bRt(this,T))};
  12884. g.h.ZU=function(){kT5(this.S,this.Y,243*this.scale)};
  12885. g.h.Zb=function(){switch(this.type){case 2:var T=this.T;T.removeEventListener("mouseout",this.D);T.addEventListener("mouseover",this.B);T.removeEventListener("blur",this.D);T.addEventListener("focus",this.B);rvg(this);break;case 3:rvg(this);break;case 1:this.S&&(this.S.unsubscribe("l",this.OD,this),this.S=null),this.api.removeEventListener("videoready",this.z9),this.qO.stop()}this.type=null;this.C&&this.fade.hide()};
  12886. g.h.Vb=function(){if(this.T)for(var T=0;T<arguments.length;T++)g.SO(arguments[T],this.T)&&this.Zb()};
  12887. g.h.EK=function(){this.type!=null&&this.Zb();this.S&&this.S.dispose();g.p.prototype.EK.call(this)};g.S(DBJ,g.p);g.h=DBJ.prototype;g.h.Vd=function(){this.visible=aSu(this);this.o_(this.visible);this.icon&&nV6(this,this.icon);this.U.logVisibility(this.element,this.visible&&this.N)};
  12888. g.h.Dg=function(){return this.U.getVideoData().videoId};
  12889. g.h.onClick=function(){this.U.logClick(this.element);var T=this.U.G(),Q=this.Dg();T.hj?cvg(this):u$6(this,Q)};
  12890. g.h.onReset=function(){this.isRequestPending=this.T=!1;this.Aj(2);this.Vd()};
  12891. g.h.Aj=function(T,Q){var k=this.U.G();nV6(this,T);Q?this.U.V("player_tooltip_data_title_killswitch")?this.update({title:Q,image:null}):this.update({"tooltip-title":Q,image:null}):k.userDisplayName?(T={USER_NAME:k.userDisplayName},this.U.V("player_tooltip_data_title_killswitch")?this.update({title:this.T?g.o0("\u5df2\u6dfb\u52a0\u5230\u4ee5\u4e0b\u8d26\u53f7\uff1a$USER_NAME",T):g.o0("\u7a0d\u540e\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",T),image:A9(k)}):this.update({"tooltip-title":this.T?g.o0("\u5df2\u6dfb\u52a0\u5230\u4ee5\u4e0b\u8d26\u53f7\uff1a$USER_NAME",
  12892. T):g.o0("\u7a0d\u540e\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",T),image:A9(k)})):this.U.V("player_tooltip_data_title_killswitch")?this.update({title:"\u7a0d\u540e\u89c2\u770b",image:null}):this.update({"tooltip-title":"\u7a0d\u540e\u89c2\u770b",image:null});this.U.wO()};
  12893. g.h.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)};g.S(Kty,g.Q7);g.h=Kty.prototype;
  12894. g.h.init=function(){var T=this;this.G_=new g.lz(this.api);this.api.V("web_player_delhi_dtts")?this.xV=new Na(this.api):this.xV=new T9t(this.api);this.O$=new g.p({X:"div",J:"ytp-chrome-top"});this.tooltip=new g.Hw(this.api,this);this.channelAvatar=new Kwt(this.api);this.title=new Pw(this.api);this.Iy=new g.LD({X:"div",J:"ytp-chrome-top-buttons"});this.cT=new AYy(this.api,this.O$.element);this.zw=this.api.G().controlsType==="1"?new h4C(this.api,this,this.Ci):null;this.contextMenu=new Fwf(this.api,this.G_);
  12895. this.cU=new g.p({X:"div",K:{tabindex:"0"}});this.Ss=new g.p({X:"div",K:{tabindex:"0"}});var Q=this.api.Hx(),k=this.api.G(),l=this.api.getVideoData();this.nS&&(g.oF(this.api.getRootNode(),"ytp-embed"),g.oF(this.api.getRootNode(),"ytp-embed-playlist"),this.A4&&(g.oF(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.oF(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.UQ=60,this.R5=89);this.api.G().L&&g.oF(this.api.getRootNode(),"ytp-embed-pfl");this.api.G().S&&(g.oF(this.api.getRootNode(),
  12896. "ytp-mobile"),this.api.G().C&&g.oF(this.api.getRootNode(),"ytp-embed-mobile"));l&&l.videoId&&(this.MV=l&&l.getEmbeddedPlayerResponse());g.P(this,this.G_);g.TQ(this.api,this.G_.element,4);g.P(this,this.xV);g.TQ(this.api,this.xV.element,4);l=new g.p({X:"div",J:"ytp-gradient-top"});g.P(this,l);g.TQ(this.api,l.element,1);this.wK=new g.TZ(l,250,!0,100);g.P(this,this.wK);g.P(this,this.O$);g.TQ(this.api,this.O$.element,1);this.VY=new g.TZ(this.O$,250,!0,100);g.P(this,this.VY);g.P(this,this.tooltip);g.TQ(this.api,
  12897. this.tooltip.element,4);var v=new Psu(this.api);g.P(this,v);g.TQ(this.api,v.element,5);v.subscribe("show",function(U){T.le(v,U)});
  12898. this.C6.push(v);this.aA=new zK(this.api,v);g.P(this,this.aA);!this.nS&&(this.Tk&&this.api.V("delhi_modern_web_player")?this.Tk.EF(this.aA.element,2):this.aA.XB(this.O$.element));g.P(this,this.channelAvatar);this.channelAvatar.XB(this.O$.element);g.P(this,this.title);this.title.XB(this.O$.element);this.nS&&(l=new mef(this.api),g.P(this,l),l.XB(this.O$.element));g.P(this,this.Iy);this.Tk?(this.Iy.element.setAttribute("data-overlay-order","3"),this.Tk.EF(this.Iy.element,2)):this.Iy.XB(this.O$.element);
  12899. var L=new krT(this.api,this);g.P(this,L);g.TQ(this.api,L.element,5);L.subscribe("show",function(U){T.le(L,U)});
  12900. this.C6.push(L);this.searchButton=new du(this.api);g.P(this,this.searchButton);this.searchButton.XB(this.Iy.element);l=this.api.G().getWebPlayerContextConfig();this.wy=new DBJ(this.api);g.P(this,this.wy);(l==null?0:l.hideTopWatchNextButton)||this.wy.XB(this.Iy.element);this.shareButton=new AG(this.api,this,L);g.P(this,this.shareButton);(l==null?0:l.hideTopShareButton)||this.shareButton.XB(this.Iy.element);this.copyLinkButton=new Uu(this.api,this);g.P(this,this.copyLinkButton);this.copyLinkButton.XB(this.Iy.element);
  12901. this.nS&&this.aA.XB(this.Iy.element);g.P(this,this.cT);this.cT.XB(this.Iy.element);k.W5&&(l=new DL(this.api),g.P(this,l),g.TQ(this.api,l.element,4));k.L||(l=new b_I(this.api,this.cT),g.P(this,l),l.XB(this.Iy.element));this.nz=new uDy(this.api);g.P(this,this.nz);g.TQ(this.api,this.nz.element,5);this.nz.subscribe("show",function(){T.le(T.nz,T.nz.n$())});
  12902. this.C6.push(this.nz);this.overflowButton=new B1(this.api,this.nz);g.P(this,this.overflowButton);this.overflowButton.XB(this.Iy.element);this.zw&&g.P(this,this.zw);k.controlsType==="3"&&(l=new wu(this.api),g.P(this,l),g.TQ(this.api,l.element,9));g.P(this,this.contextMenu);this.contextMenu.subscribe("show",this.qn,this);this.cU.listen("focus",this.wl,this);g.P(this,this.cU);this.Ss.listen("focus",this.Cl,this);g.P(this,this.Ss);var q;(this.F8=k.xE?null:new cXI(this.api,Q,this.contextMenu,this.Ci,this.G_,
  12903. this.xV,function(){return T.VV()},(q=this.zw)==null?void 0:q.progressBar))&&g.P(this,this.F8);
  12904. this.nS||(this.x9=new j6y(this.api),g.P(this,this.x9),this.Tk?this.Tk.EF(this.x9.element,3):g.TQ(this.api,this.x9.element,4),this.vW=new gG6(this.api),g.P(this,this.vW),this.Tk?this.Tk.EF(this.vW.element,3):g.TQ(this.api,this.vW.element,4));this.mX=new z4t(this.api);g.P(this,this.mX);this.Tk?this.Tk.EF(this.mX.element,3):g.TQ(this.api,this.mX.element,4);if(this.nS){var Y=new s6b(this.api,this.api.G().Jj);g.P(this,Y);g.TQ(this.api,Y.element,5);Y.subscribe("show",function(U){T.le(Y,U)});
  12905. Q=new zof(this.api,Y);g.P(this,Q);g.TQ(this.api,Q.element,4)}this.It.push(this.G_.element);this.Z(this.api,"fullscreentoggled",this.pH);this.Z(this.api,"offlineslatestatechange",function(){T.api.zS()&&pk(T.Ci,128,!1)});
  12906. this.Z(this.api,"cardstatechange",function(){T.Y4()});
  12907. this.Z(this.api,"resize",this.uBj);this.Z(this.api,"videoplayerreset",this.onReset);this.Z(this.api,"showpromotooltip",this.dYH);g.Q7.prototype.init.call(this)};
  12908. g.h.aK=function(){return this.tooltip};
  12909. g.h.oZ=function(){return this.zw};
  12910. g.h.le=function(T,Q){Q?this.PM=T:this.PM=null;this.Y4()};
  12911. g.h.Mq=function(T,Q){if(Q)this.Um.push(T);else for(Q=this.Um.length;Q>=0;Q--)if(this.Um[Q]===T){this.Um.splice(Q,1);break}pk(this.Ci,64,this.Um.length>0)};
  12912. g.h.K4=function(){this.api.Vw()&&this.api.Kt();return!!this.PM||xBg(this)||g.Q7.prototype.K4.call(this)};
  12913. g.h.Y4=function(){var T=!this.K4(),Q=T&&this.api.Vw()&&!g.J(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().hh&&!this.api.G().L&&!this.api.isEmbedsShortsMode(),k=this.nS&&g.FZ(this.api)&&g.J(this.api.getPlayerStateObject(),128);T||k?(this.VY.show(),this.wK.show()):(this.VY.hide(),this.wK.hide(),this.api.Vb(this.O$.element));Q?this.cT.fA():this.cT.sG();this.zw&&s9I(this.zw,this.BtO||!T);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&Pmf(this);g.Q7.prototype.Y4.call(this)};
  12914. g.h.MG=function(T,Q,k,l,v){T.style.left="";T.style.top="";T.style.bottom="";var L=g.jC(T),q=l||this.zw&&g.SO(this.zw.xB(),Q),Y=l=null;k!=null&&q||(l=g.jC(Q),Y=g.To(Q,this.api.getRootNode()),k==null&&(k=Y.x+l.width/2));k-=L.width/2;q?(Q=this.zw,l=ST6(Q),Y=CmJ(Q),q=this.api.Hx().getPlayerSize().height,k=g.ti(k,l,l+Y-L.width),L=q-Brg(Q)-L.height):g.SO(this.O$.element,Q)?(Q=this.api.Hx().getPlayerSize().width,k=g.ti(k,12,Q-L.width-12),L=this.jj()?this.R5:this.UQ,this.api.G().playerStyle==="gvn"&&(L+=
  12915. 20),this.nS&&(L-=this.jj()?26:18)):(Q=this.api.Hx().getPlayerSize(),k=g.ti(k,12,Q.width-L.width-12),L=Y.y>(Q.height-l.height)/2?Y.y-L.height-12:Y.y+l.height+12);T.style.top=L+(v||0)+"px";T.style.left=k+"px"};
  12916. g.h.Dl=function(T){T&&(this.api.Vb(this.O$.element),this.zw&&this.api.Vb(this.zw.xB()));this.A4&&(g.gl(this.contextMenu.element,"ytp-autohide",T),g.gl(this.contextMenu.element,"ytp-autohide-active",!0));g.Q7.prototype.Dl.call(this,T)};
  12917. g.h.pN=function(){g.Q7.prototype.pN.call(this);this.A4&&(g.gl(this.contextMenu.element,"ytp-autohide-active",!1),this.A4&&(this.contextMenu.hide(),this.nz&&this.nz.hide()))};
  12918. g.h.IM=function(T,Q){var k=this.api.Hx().getPlayerSize();k=new g.tZ(0,0,k.width,k.height);if(T||this.Ci.S&&!this.K4()){if(this.api.G().UY||Q)T=this.jj()?this.R5:this.UQ,k.top+=T,k.height-=T;this.zw&&(k.height-=Brg(this.zw))}return k};
  12919. g.h.pH=function(T){var Q=this.api.getRootNode();T?Q.parentElement?(Q.setAttribute("aria-label","\u5168\u5c4f\u6a21\u5f0f\u4e0b\u7684 YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.api.G().externalFullscreen||(Q.parentElement.insertBefore(this.cU.element,Q),Q.parentElement.insertBefore(this.Ss.element,Q.nextSibling))):g.bA(Error("Player not in DOM.")):(Q.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.cU.detach(),this.Ss.detach());this.zx();this.q3()};
  12920. g.h.jj=function(){if(this.api.V("web_player_use_screen_width_for_big_mode")){var T;return this.api.Hx().getPlayerSize().width>=((T=g.jj(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?T:2E3)}T=this.api.G();return this.api.isFullscreen()&&!T.C||!1};
  12921. g.h.showControls=function(T){this.ZI=!T;this.Y4()};
  12922. g.h.zx=function(){var T=this.jj();this.tooltip.scale=T?1.5:1;this.contextMenu&&g.gl(this.contextMenu.element,"ytp-big-mode",T);this.Y4();this.api.V("web_player_hide_overflow_button_if_empty_menu")||Pmf(this);this.q3();var Q=this.api.isEmbedsShortsMode();Q&&T?(T=(this.api.Hx().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.W2(this.O$.element,"padding-left",T+"px"),g.W2(this.O$.element,"padding-right",T+"px")):Q&&(g.W2(this.O$.element,"padding-left",""),g.W2(this.O$.element,"padding-right",
  12923. ""));g.Q7.prototype.zx.call(this)};
  12924. g.h.Wa=function(){if(xBg(this)&&!g.FZ(this.api))return!1;var T=this.api.getVideoData();return!g.Qk(this.api.G())||this.api.getPresentingPlayerType()===2||!this.MV||((T=this.MV||T.MV)?(T=T.embedPreview)?(T=T.thumbnailPreviewRenderer,T=T.videoDetails&&g.t(T.videoDetails,H1I)||null):T=null:T=null,T&&T.collapsedRenderer&&T.expandedRenderer)?g.Q7.prototype.Wa.call(this):!1};
  12925. g.h.q3=function(){g.Q7.prototype.q3.call(this);this.api.logVisibility(this.title.element,!!this.Dr);this.aA&&this.aA.vx(!!this.Dr);this.channelAvatar.vx(!!this.Dr);this.overflowButton&&this.overflowButton.vx(this.tb()&&!!this.Dr);this.shareButton&&this.shareButton.vx(!this.tb()&&!!this.Dr);this.wy&&this.wy.vx(!this.tb()&&!!this.Dr);this.searchButton&&this.searchButton.vx(!this.tb()&&!!this.Dr);this.copyLinkButton&&this.copyLinkButton.vx(!this.tb()&&!!this.Dr);if(!this.Dr){this.api.Vb(this.O$.element);
  12926. for(var T=0;T<this.C6.length;T++){var Q=this.C6[T];Q.n$()&&Q.sG()}}};
  12927. g.h.LA=function(T){this.zw&&s9I(this.zw,this.K4());this.Y4();g.Q7.prototype.LA.call(this,T)};
  12928. g.h.handleGlobalKeyDown=function(T,Q,k,l,v,L,q,Y){return this.F8?this.F8.handleGlobalKeyDown(T,Q,k,l,v,L,q,Y):!1};
  12929. g.h.handleGlobalKeyUp=function(T,Q,k,l,v,L,q){return this.F8?this.F8.handleGlobalKeyUp(T,Q,k,l,v,L,q):!1};
  12930. g.h.VV=function(){if(this.contextMenu.Sr)return this.contextMenu.sG(),!0;if(this.Um.length)return this.Um[this.Um.length-1].sG(),!0;if(this.PM)return this.PM.sG(),!0;this.zw&&this.api.Vb(this.zw.xB());this.Iy&&this.api.Vb(this.Iy.element);return g.Q7.prototype.VV.call(this)};
  12931. g.h.Is=function(T,Q){this.Vj=Q;this.Mq(T,Q);this.qn()};
  12932. g.h.qn=function(){var T=this.Vj||this.contextMenu.n$();this.TF!==T&&(this.TF=T,this.api.tj("onAutonavPauseRequest",this.TF))};
  12933. g.h.wl=function(){HR6(this,this.api.getRootNode(),!0).focus()};
  12934. g.h.Cl=function(){HR6(this,this.api.getRootNode(),!1).focus()};
  12935. g.h.K$=function(){return this.zw&&this.zw.Y};
  12936. g.h.DS=function(){this.Ci.DS()};
  12937. g.h.sb=function(){this.G_.hide()};
  12938. g.h.Qu=function(T){this.G_.Qu(!T.isOrWillBePlaying())};
  12939. g.h.xT=function(T,Q,k,l){this.xV.xT(T,Q,k,l)};
  12940. g.h.renderChapterSeekingAnimation=function(T,Q,k){this.xV.Zn(T,Q,k)};
  12941. g.h.uBj=function(){tiX(this,!0)};
  12942. g.h.onReset=function(){Pmf(this)};
  12943. g.h.dYH=function(T){tiX(this,!1,T)};
  12944. g.h.yM=function(){return this.contextMenu};
  12945. g.h.oN=function(T,Q){var k;if((k=this.zw)!=null){var l=Number(T.element.getAttribute("data-priority"))||0,v=0,L=k.L.element;Q&&k.U.V("delhi_modern_web_player")&&(L=k.L.L_(na[Q]));Q=g.B(L.children);for(k=Q.next();!(k.done||l<(Number(k.value.getAttribute("data-priority"))||0));k=Q.next())v++;T.XB(L,v)}};
  12946. g.h.Zu=function(){var T,Q=(T=this.zw)==null?void 0:T.progressBar;if(Q){var k;((k=Q.S)==null?0:k.isEnabled)&&Q.Zu()}};
  12947. g.h.EF=function(T,Q,k){var l;(l=this.Tk)==null||l.EF(T,Q,k)};g.S(g.OL,g.A4);g.OL.prototype.cH=function(){return!1};
  12948. g.OL.prototype.create=function(){var T=this.player.G();g.uP(T)&&T.S||T.disableOrganicUi?this.chrome=new g.Q7(this.player):this.chrome=new Kty(this.player);g.P(this,this.chrome);this.chrome.init();this.player.Ju("ux")};
  12949. g.OL.prototype.nB=function(){return this.chrome};var pa=[],xbC=!1;g.S(Ww,g.x);Ww.prototype.C=function(){this.T!=null&&this.app.getVideoData()!==this.T&&I8(this.T)&&UGI(this.app,this.T,void 0,void 0,this.L)};
  12950. Ww.prototype.B=function(){if(this.T!=null&&this.app.getVideoData()!==this.T&&this.S!=null&&this.Y!=null&&this.N!=null&&I8(this.T)){var T=Wt6(this.S,this.Y,this.N);T==null?UGI(this.app,this.T,void 0,void 0,this.L):(this.S.T9("sgap",T),this.S.getVideoData().C&&this.S.pX(!1),this.app.G().V("html5_remove_loop_range_on_gapless_fallback")&&(nq(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}};
  12951. Ww.prototype.j=function(T){var Q=this.app.Pd();if(Q){var k=this.app.getCurrentTime();Math.abs(k-T.end/1E3)>5&&Q.T9("glrs",{cmt:k});Q.seekTo(0,{seekSource:58});Q.T9("glrre",{cmt:k})}};
  12952. Ww.prototype.EK=function(){this.T=null;g.x.prototype.EK.call(this)};g.S(g.$$,ml);g.h=g.$$.prototype;g.h.isView=function(){return!0};
  12953. g.h.h2=function(){var T=this.mediaElement.getCurrentTime();if(T<this.start)try{var Q=this.mediaElement.Q8(),k=ik(Q,T);return!(this.start<k)}catch(l){}return!1};
  12954. g.h.nX=function(){return jt(this.mediaElement.nX(),this.start,this.end)};
  12955. g.h.Q8=function(){return jt(this.mediaElement.Q8(),this.start,this.end)};
  12956. g.h.MD=function(){return jt(this.mediaElement.MD(),this.start,this.end)};
  12957. g.h.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
  12958. g.h.setCurrentTime=function(T){this.mediaElement.setCurrentTime(T+this.start)};
  12959. g.h.getDuration=function(){return isFinite(this.end)&&!this.T?this.end-this.start:this.mediaElement.getDuration()-this.start};
  12960. g.h.play=function(){if(this.h2()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(T){}}return this.mediaElement.play()};
  12961. g.h.Tx=function(){var T=ml.prototype.Tx.call(this);T.view=this.start+"-"+this.end;return T};
  12962. g.h.addEventListener=function(T,Q){this.mediaElement.addEventListener(T,Q)};
  12963. g.h.removeEventListener=function(T,Q){this.mediaElement.removeEventListener(T,Q)};
  12964. g.h.Ef=function(){return this.mediaElement.Ef()};
  12965. g.h.activate=function(T){this.mediaElement.activate(T)};
  12966. g.h.JH=function(){return this.mediaElement.JH()};
  12967. g.h.playVideo=function(){return this.mediaElement.playVideo()};
  12968. g.h.qZ=function(){this.mediaElement.qZ()};
  12969. g.h.a5=function(){this.mediaElement.a5()};
  12970. g.h.rQ=function(){return this.mediaElement.rQ()};
  12971. g.h.xB=function(){return this.mediaElement.xB()};
  12972. g.h.Cz=function(){return this.mediaElement.Cz()};
  12973. g.h.oV=function(T){this.mediaElement.oV(T)};
  12974. g.h.Kj=function(){this.mediaElement.Kj()};
  12975. g.h.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
  12976. g.h.setPlaybackRate=function(T){return this.mediaElement.setPlaybackRate(T)};
  12977. g.h.t_=function(){return this.mediaElement.t_()};
  12978. g.h.setLoop=function(T){this.mediaElement.setLoop(T)};
  12979. g.h.canPlayType=function(T,Q){return this.mediaElement.canPlayType(T,Q)};
  12980. g.h.isPaused=function(){return this.mediaElement.isPaused()};
  12981. g.h.isSeeking=function(){return this.mediaElement.isSeeking()};
  12982. g.h.isEnded=function(){return this.mediaElement.isEnded()};
  12983. g.h.fk=function(){return this.mediaElement.fk()};
  12984. g.h.r9=function(T){this.mediaElement.r9(T)};
  12985. g.h.Q9=function(){return this.mediaElement.Q9()};
  12986. g.h.load=function(){this.mediaElement.load()};
  12987. g.h.pause=function(){this.mediaElement.pause()};
  12988. g.h.Nm=function(){return this.mediaElement.Nm()};
  12989. g.h.D2=function(){return this.mediaElement.D2()};
  12990. g.h.SZ=function(){return this.mediaElement.SZ()};
  12991. g.h.dw=function(){return this.mediaElement.dw()};
  12992. g.h.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
  12993. g.h.Ax=function(){return this.mediaElement.Ax()};
  12994. g.h.YU=function(){return this.mediaElement.YU()};
  12995. g.h.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
  12996. g.h.rS=function(){return this.mediaElement.rS()};
  12997. g.h.getSize=function(){return this.mediaElement.getSize()};
  12998. g.h.setSize=function(T){this.mediaElement.setSize(T)};
  12999. g.h.getVolume=function(){return this.mediaElement.getVolume()};
  13000. g.h.setVolume=function(T){this.mediaElement.setVolume(T)};
  13001. g.h.setAttribute=function(T,Q){this.mediaElement.setAttribute(T,Q)};
  13002. g.h.removeAttribute=function(T){this.mediaElement.removeAttribute(T)};
  13003. g.h.hasAttribute=function(T){return this.mediaElement.hasAttribute(T)};
  13004. g.h.Uq=T5(60);g.h.U3=T5(62);g.h.Rc=T5(64);g.h.mV=T5(66);g.h.qz=function(){return this.mediaElement.qz()};
  13005. g.h.SX=function(T){this.mediaElement.SX(T)};
  13006. g.h.Jv=function(T){return this.mediaElement.Jv(T)};
  13007. g.h.Ob=function(){return this.mediaElement.Ob()};
  13008. g.h.stopVideo=function(){this.mediaElement.stopVideo()};
  13009. g.h.EL=function(T){this.mediaElement.EL(T)};
  13010. g.h.audioTracks=function(){return this.mediaElement.audioTracks()};
  13011. g.h.A2=function(T){this.mediaElement.A2(T)};g.S(e4t,g.x);g.h=e4t.prototype;g.h.getStatus=function(){return this.status};
  13012. g.h.rV=function(){var T=this.T.getVideoData(),Q=this.S.getVideoData(),k;if((k=T.L)&&!(k=!T.T)){k=T.T;for(var l=!1,v=!1,L=g.B(Object.values(k.T)),q=L.next();!q.done;q=L.next())q=q.value,q.info.audio&&q.index.isLoaded()&&(l=!0),q.info.video&&q.index.isLoaded()&&(v=!0);k.T["0"]&&(v=!0);k=l&&v}if(k)if(this.T.T_()){L=ps6(this.policy,this.T,this.S,this.kz);q=JE(this);k=q.BR;v=q.RO;l=q.Ro;q=q.sD;if(!this.C){var Y=this.S.Jb()*1E3,U=this.T.Jb();U=(l-k-U)*1E3;L&&L.msg==="in-the-past"&&(U=0);T=T.isAd();this.S.PJ(Y,
  13013. U,T);this.C=!0}L?(Q="cannot_apply"+L.msg,delete L.msg,this.XG(Q,L)):this.status.status===2?Tp5(this):(T=this.T.JH())&&RL(T)&&(!gf(T)&&g.ph()?this.XG("mse_closed"):Q.T&&Pr(Q.T)&&T.S&&!T.S.uV()?this.XG("encr_upgrade"):(Q=this.T.T_(),Q.isEnded()?this.XG("elem_ended"):v<0?this.XG("next_player_future"):(this.B=l,this.currentVideoDuration=l-k,this.L=WMT(T,k,l,!0),this.Y=WMT(T,v,q,!1),T=this.S.getVideoData().clientPlaybackNonce,this.T.T9("gaplessPrep",{cpn:T}),this.T.lz(this.L,!1,yvX(this),this.nA.G().V("html5_shorts_gapless_keep_pending_requests")&&
  13014. NY(this.T.getVideoData())),this.T.setMediaElement(Ftg(Q,k,l,!this.T.getVideoData().isAd())),eW(this,2),Tp5(this))))}else this.XG("no-elem")};
  13015. g.h.pR=function(T){var Q=T===Vi5(this).O5,k=Q?this.L.T:this.L.S;Q=Q?this.Y.T:this.Y.S;if(k.isActive&&!Q.isActive){var l=this.B,v=this.nA.G().V("html5_gapless_disable_on_discontinuous_buffer")&&this.N!==0&&k.LG().length>1;y4(T.LG(),l-.01)&&!v&&(eW(this,4),k.isActive=!1,k.tA=k.tA||k.isActive,(this.N===1?this.T:this.S).T9("sbh",{}),Q.isActive=!0,Q.tA=Q.tA||Q.isActive,this.N!==0&&(this.T.getVideoData().Uf=!0));T=this.Y.S;if(this.Y.T.isActive&&T.isActive&&(eW(this,5),this.N!==0)){T=this.S.My();k=this.T.My();
  13016. this.T.T9("sbs",{citag:k==null?void 0:k.itag,nitag:T==null?void 0:T.itag});this.S.T9("gitags",{pitag:k==null?void 0:k.itag,citag:T==null?void 0:T.itag});var L;(L=this.S)==null||L.VL()}}};
  13017. g.h.fI=function(){this.pS()&&this.XG("player-reload-after-handoff")};
  13018. g.h.XG=function(T,Q){Q=Q===void 0?{}:Q;if(!this.wd()&&this.status.status!==6){var k=this.status.status>=4&&T!=="player-reload-after-handoff";this.status={status:Infinity,error:T};if(this.T&&this.S){var l=this.S.getVideoData().clientPlaybackNonce;this.T.RK(new g.ZK("dai.transitionfailure",Object.assign(Q,{cpn:l,transitionTimeMs:this.kz,msg:T})));this.T.pX(k)}this.O_.reject(T);this.dispose()}};
  13019. g.h.pS=function(){return this.status.status>=4&&this.status.status<6};
  13020. g.h.EK=function(){iRT(this);this.T.unsubscribe("newelementrequired",this.fI,this);if(this.L){var T=this.L.S;this.L.T.kM.unsubscribe("updateend",this.pR,this);T.kM.unsubscribe("updateend",this.pR,this)}g.x.prototype.EK.call(this)};
  13021. g.h.FT=function(T){g.RY(T,128)&&this.XG("player-error-event")};g.S(Fx,g.x);Fx.prototype.clearQueue=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;this.Y&&this.Y.reject("Queue cleared");this.app.G().V("html5_gapless_fallback_on_qoe_restart_v2")||Q&&this.S&&this.S.pX(!1);EL(this,T)};
  13022. Fx.prototype.jZ=function(){return!this.T};
  13023. Fx.prototype.pS=function(){var T;return((T=this.L)==null?void 0:T.pS())||!1};
  13024. Fx.prototype.EK=function(){EL(this);g.x.prototype.EK.call(this)};g.S(vI5,g.ox);g.h=vI5.prototype;g.h.getVisibilityState=function(T,Q,k,l,v,L,q,Y){return T?4:L75()?3:Q?2:k?1:l?5:v?7:L?8:q?9:Y?10:0};
  13025. g.h.gA=function(T){this.fullscreen!==T&&(this.fullscreen=T,this.H1())};
  13026. g.h.setMinimized=function(T){this.S!==T&&(this.S=T,this.H1())};
  13027. g.h.setInline=function(T){this.inline!==T&&(this.inline=T,this.H1())};
  13028. g.h.DN=function(T){this.pictureInPicture!==T&&(this.pictureInPicture=T,this.H1())};
  13029. g.h.setSqueezeback=function(T){this.L!==T&&(this.L=T,this.H1())};
  13030. g.h.bz=function(T){this.Y!==T&&(this.Y=T,this.H1())};
  13031. g.h.Ax=function(){return this.T};
  13032. g.h.m_=function(){return this.fullscreen!==0};
  13033. g.h.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
  13034. g.h.XS=function(){return this.fullscreen};
  13035. g.h.isMinimized=function(){return this.S};
  13036. g.h.isInline=function(){return this.inline};
  13037. g.h.isBackground=function(){return L75()};
  13038. g.h.x$=function(){return this.pictureInPicture};
  13039. g.h.Uj=function(){return!1};
  13040. g.h.CM=function(){return this.L};
  13041. g.h.zs=function(){return this.Y};
  13042. g.h.H1=function(){this.publish("visibilitychange");var T=this.getVisibilityState(this.Ax(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.x$(),this.Uj(),this.CM(),this.zs());T!==this.B&&this.publish("visibilitystatechange");this.B=T};
  13043. g.h.EK=function(){M2X(this.N);g.ox.prototype.EK.call(this)};g.S(g.yg,g.x);g.h=g.yg.prototype;g.h.EK=function(){this.videoData=this.playerState=null;g.x.prototype.EK.call(this)};
  13044. g.h.addCueRange=function(){};
  13045. g.h.cB=function(){};
  13046. g.h.lG=function(){};
  13047. g.h.dZ=function(){return!1};
  13048. g.h.Lf=function(){return!1};
  13049. g.h.wZ=function(){};
  13050. g.h.XW=function(){};
  13051. g.h.CX=function(){return[]};
  13052. g.h.jK=function(){};
  13053. g.h.getAudioTrack=function(){return this.getVideoData().FU};
  13054. g.h.IN=function(){return null};
  13055. g.h.getAvailableAudioTracks=function(){return[]};
  13056. g.h.G6=function(){return[]};
  13057. g.h.Cy=function(){return[]};
  13058. g.h.pB=function(){return""};
  13059. g.h.TP=function(){return[]};
  13060. g.h.P0=function(){};
  13061. g.h.Jb=function(){return 0};
  13062. g.h.getCurrentTime=function(){return 0};
  13063. g.h.nw=function(){};
  13064. g.h.My=function(){};
  13065. g.h.Tx=function(){return{}};
  13066. g.h.getDuration=function(){return 0};
  13067. g.h.u8=function(){return 0};
  13068. g.h.xM=function(){return 0};
  13069. g.h.pk=function(){return!1};
  13070. g.h.As=function(){return 0};
  13071. g.h.bS=function(){return 0};
  13072. g.h.uy=T5(7);g.h.jO=function(){return 0};
  13073. g.h.t_=function(){return!1};
  13074. g.h.WG=function(){return 0};
  13075. g.h.T_=function(){return null};
  13076. g.h.JH=function(){return null};
  13077. g.h.SY=function(){return 0};
  13078. g.h.r_=function(){return 0};
  13079. g.h.s$=function(){return g.a(function(T){g.BT(T)})};
  13080. g.h.qA=T5(15);g.h.getPlaybackQuality=function(){return"auto"};
  13081. g.h.getPlaybackRate=function(){return 1};
  13082. g.h.getPlayerState=function(){this.playerState||(this.playerState=new g.Cd);return this.playerState};
  13083. g.h.getPlayerType=function(){return 0};
  13084. g.h.getPlaylistSequenceForTime=function(){return null};
  13085. g.h.Cd=function(){return function(){}};
  13086. g.h.WH=function(){return""};
  13087. g.h.getPreferredQuality=function(){return"unknown"};
  13088. g.h.J5=function(){};
  13089. g.h.getProximaLatencyPreference=function(){return 0};
  13090. g.h.Tv=function(){return GV};
  13091. g.h.l7=function(){return null};
  13092. g.h.getStoryboardFormat=function(){return null};
  13093. g.h.getStreamTimeOffset=function(){return 0};
  13094. g.h.TG=function(){return 0};
  13095. g.h.Px=function(){return 0};
  13096. g.h.yH=function(){return{I6:[],hS:[],currentTime:0,vM:"",droppedVideoFrames:0,isGapless:!1,jZ:!0,lA:0,K0:0,Gr:0,n0:0,uj:0,f0:[],ea:[],N6:null,playerState:this.getPlayerState(),Z7:null,mw:"",totalVideoFrames:0}};
  13097. g.h.getUserAudio51Preference=function(){return 0};
  13098. g.h.getUserPlaybackQualityPreference=function(){return""};
  13099. g.h.getVideoData=function(){this.videoData||(this.videoData=new g.mR(this.Hd),g.P(this,this.videoData));return this.videoData};
  13100. g.h.Le=function(){return null};
  13101. g.h.I9=function(){return null};
  13102. g.h.Dg=function(){};
  13103. g.h.getVideoLoadedFraction=function(){return 0};
  13104. g.h.Ky=function(){};
  13105. g.h.handleError=function(){};
  13106. g.h.pX=function(){};
  13107. g.h.xk=function(){};
  13108. g.h.o0=T5(40);g.h.Pc=function(){return!1};
  13109. g.h.hasSupportedAudio51Tracks=function(){return!1};
  13110. g.h.ME=function(){return!1};
  13111. g.h.Ax=function(){return!1};
  13112. g.h.isAtLiveHead=function(){return!1};
  13113. g.h.qG=function(){return!0};
  13114. g.h.isGapless=function(){return!1};
  13115. g.h.isHdr=function(){return!1};
  13116. g.h.a9=function(){return!1};
  13117. g.h.qW=function(){return!1};
  13118. g.h.NC=function(){return!1};
  13119. g.h.isProximaLatencyEligible=function(){return!1};
  13120. g.h.jZ=function(){return!0};
  13121. g.h.wm=function(){return!1};
  13122. g.h.hX=function(){return!1};
  13123. g.h.qr=function(){};
  13124. g.h.NG=function(){};
  13125. g.h.VL=function(){};
  13126. g.h.RQ=function(){};
  13127. g.h.KO=function(){};
  13128. g.h.KJ=function(){};
  13129. g.h.GA=function(){};
  13130. g.h.aM=T5(50);g.h.RD=T5(21);g.h.aO=function(){};
  13131. g.h.pauseVideo=function(){};
  13132. g.h.prefetchKeyPlay=function(){};
  13133. g.h.playVideo=function(){return g.a(function(T){return T.return()})};
  13134. g.h.Xx=function(){};
  13135. g.h.h9=T5(27);g.h.Lz=T5(33);g.h.N8=function(){};
  13136. g.h.T9=function(){};
  13137. g.h.qm=function(){};
  13138. g.h.Gh=function(){};
  13139. g.h.PJ=function(){};
  13140. g.h.RK=function(){};
  13141. g.h.r6=function(){};
  13142. g.h.JU=function(){};
  13143. g.h.sz=function(){};
  13144. g.h.M6=function(){};
  13145. g.h.Zm=function(){};
  13146. g.h.T0=function(){};
  13147. g.h.removeCueRange=function(){};
  13148. g.h.Ec=function(){};
  13149. g.h.uf=function(){return[]};
  13150. g.h.I0=function(){};
  13151. g.h.u7=function(){};
  13152. g.h.d9=function(){};
  13153. g.h.EZ=function(){};
  13154. g.h.tU=function(){};
  13155. g.h.R3=function(){};
  13156. g.h.seekTo=function(){};
  13157. g.h.sendAbandonmentPing=function(){};
  13158. g.h.sendVideoStatsEngageEvent=function(){};
  13159. g.h.fn=function(){};
  13160. g.h.setLoop=function(){};
  13161. g.h.gK=function(){};
  13162. g.h.setMediaElement=function(){};
  13163. g.h.lz=function(){};
  13164. g.h.setPlaybackRate=function(){};
  13165. g.h.NL=function(){};
  13166. g.h.aQ=function(){};
  13167. g.h.Ju=function(){};
  13168. g.h.setProximaLatencyPreference=function(){};
  13169. g.h.ZF=function(){};
  13170. g.h.AJ=function(){};
  13171. g.h.JY=function(){};
  13172. g.h.Ij=function(){};
  13173. g.h.E7=function(){};
  13174. g.h.setUserAudio51Preference=function(){};
  13175. g.h.TU=function(){};
  13176. g.h.e1=function(){return!1};
  13177. g.h.YU=function(){};
  13178. g.h.EY=function(){return!1};
  13179. g.h.I3=function(){};
  13180. g.h.Pw=function(){};
  13181. g.h.n4=function(){};
  13182. g.h.stopVideo=function(){};
  13183. g.h.subscribe=function(){return NaN};
  13184. g.h.L7=function(){};
  13185. g.h.togglePictureInPicture=function(){};
  13186. g.h.E2=function(){return 0};
  13187. g.h.unsubscribe=function(){return!1};
  13188. g.h.L5=function(){};
  13189. g.h.lx=function(){return!1};
  13190. g.h.zE=function(){};
  13191. g.h.jS=function(){};
  13192. g.h.yV=function(){};g.S(Tt,g.x);g.h=Tt.prototype;g.h.get=function(T){ia(this);var Q=this.data.find(function(k){return k.key===T});
  13193. return Q?Q.value:null};
  13194. g.h.set=function(T,Q,k){this.remove(T,!0);ia(this);T={key:T,value:Q,expire:Infinity};k&&isFinite(k)&&(k*=1E3,T.expire=(0,g.XY)()+k);for(this.data.push(T);this.data.length>this.L;)(k=this.data.shift())&&QQ(this,k,!0);Vg(this)};
  13195. g.h.remove=function(T,Q){Q=Q===void 0?!1:Q;var k=this.data.find(function(l){return l.key===T});
  13196. k&&(QQ(this,k,Q),g.AT(this.data,function(l){return l.key===T}),Vg(this))};
  13197. g.h.removeAll=function(T){if(T=T===void 0?!1:T)for(var Q=g.B(this.data),k=Q.next();!k.done;k=Q.next())QQ(this,k.value,T);this.data=[];Vg(this)};
  13198. g.h.EK=function(){var T=this;g.x.prototype.EK.call(this);this.data.forEach(function(Q){QQ(T,Q,!0)});
  13199. this.data=[]};g.S(g.j5,g.x);g.h=g.j5.prototype;g.h.EK=function(){for(var T=g.B(Object.values(this.L)),Q=T.next();!Q.done;Q=T.next())Q.value.dispose();LFJ(this);this.T.dispose();g.x.prototype.EK.call(this)};
  13200. g.h.jD=function(T){return T?T===1?this.j:this.S.getVideoData().enableServerStitchedDai&&T===2?this.S.getVideoData().IS?this.L[2]||this.S:this.S:this.L[T]||null:this.S};
  13201. g.h.pA=function(T){var Q=T.cpn;T=T.playerType;if(Q)a:{T=g.B(Object.values(this.L));for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.pB()===Q){Q=k;break a}Q=this.B[Q]||null}else Q=T?this.jD(T):this.S;return Q};
  13202. g.h.Lc=function(){return this.j};
  13203. g.h.zj=function(T){this.j=T};
  13204. g.h.Pd=function(){return this.S};
  13205. g.h.l$=function(T){this.S=T;k7(this)};
  13206. g.h.zU=T5(46);g.h.JO=T5(48);g.S(GGy,g.vR);g.h=GGy.prototype;g.h.Zh=function(){};
  13207. g.h.pB=function(){return this.videoData.clientPlaybackNonce};
  13208. g.h.getVideoData=function(){if(g.vR.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var T=PTy(this.Gx,g.vR.prototype.getCurrentTime.call(this))||g.vR.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==T.clientPlaybackNonce&&mO5(this.S,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:T.clientPlaybackNonce});return this.videoData}return PTy(this.Gx,g.vR.prototype.getCurrentTime.call(this))||g.vR.prototype.getVideoData.call(this)};
  13209. g.h.getCurrentTime=function(T){var Q=g.vR.prototype.getCurrentTime.call(this);if(g.vR.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){this.T===0?T||(Q-=this.startTimeSecs):T&&(Q=this.T);var k=T?this.Gx.Al||g.vR.prototype.getCurrentTime.call(this):uiC(this.Gx,g.vR.prototype.getCurrentTime.call(this));Q!==k&&mO5(this.S,"time"+(T!=null?T:!1),{time:Q,ref:k,ct:T!=null?T:!1})}else Q=T?this.Gx.Al||Q:uiC(this.Gx,Q);return Q};
  13210. g.h.getDuration=function(){if(g.vR.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var T=KF6(this.Gx,g.vR.prototype.getCurrentTime.call(this));this.duration!==T&&mO5(this.S,"duration",{dur:this.duration,ref:T});return this.duration}return KF6(this.Gx,g.vR.prototype.getCurrentTime.call(this))};
  13211. g.h.SR=function(T){this.duration=T};g.og.prototype.H$=function(T,Q){if(Q===1)return this.T.get(T);if(Q===2)return this.L.get(T);if(Q===3)return this.S.get(T)};
  13212. g.og.prototype.F0=T5(58);g.og.prototype.zQ=function(T,Q,k,l){k={e2:l,gN:k};Q?this.L.set(T,k):this.T.set(T,k)};
  13213. g.og.prototype.clearAll=function(){this.T.clear();this.L.clear();this.S.clear()};
  13214. hTX.prototype.clear=function(){this.T=[];this.L.clear();this.Y.clear();this.S.clear()};
  13215. hTX.prototype.pA=function(T){var Q=T.cpn;T=T.lC;if(Q&&(Q=this.L.get(Q))||T&&(Q=(this.N?this.L:this.Y).get(T)))return Q};
  13216. g.S(g.v5,g.x);g.h=g.v5.prototype;g.h.onCueRangeEnter=function(T){var Q=T.getId();this.Fs({oncueEnter:1,cpn:Q,start:T.start,end:T.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Jb()||0).toFixed(3)});var k=this.T.pA({cpn:Q});this.Fs({enterAdCueRange:1});var l=this.Tb||this.eP().cpn,v;l=(v=this.T.pA({cpn:l}))!=null?v:this.eP();k&&(v=this.playback.getCurrentTime(),k.startTimeSecs=T.start/1E3,k={Y9:l,QC:k,Lm:v},vUH(this,Q,T.start/1E3,v),oUC(this,k))};
  13217. g.h.PB=function(T,Q){if(T===this.playback.pB())lG(this.app.vG(),this.playback,!1);else{var k=this.i9.get(T);k?(k.T=0,k.startTimeSecs=Q,lG(this.app.vG(),k,!0)):this.Fs({nop_s:T})}};
  13218. g.h.onCueRangeExit=function(T){for(var Q=this.playback.getCurrentTime()*1E3,k=T.getId(),l=g.B(this.S.values()),v=l.next();!v.done;v=l.next())if(v=v.value,v.getId()!==k&&Q>=v.start&&Q<=v.end)return;if(k=this.T.pA({cpn:k}))Q=this.playback.getCurrentTime(),l=this.eP(),l.startTimeSecs=T.end/1E3,k={Y9:k,QC:l,Lm:Q},vUH(this,this.playback.pB(),T.end/1E3,Q),oUC(this,k)};
  13219. g.h.eP=function(){return{cpn:this.playback.pB(),durationMs:0,R_:0,playerType:1,X_:0,videoData:this.playback.getVideoData(),errorCount:0,RB:""}};
  13220. g.h.seekTo=function(T,Q,k,l){T=T===void 0?0:T;Q=Q===void 0?{}:Q;k=k===void 0?!1:k;l=l===void 0?null:l;U0(this,this.Tb);if(this.playback.getVideoData().lf()&&T<=this.Al)this.playback.pauseVideo(),this.Al=0,Lif(this,T);else if(this.z9=!0,k)XKb(this,T,Q);else{k=this.app.Pd();var v=k===this.xm?this.K_:null;Md(this,!1);this.Tg=T;this.zg=Q;l!=null&&this.f_.start(l);k&&(this.K_=v||k.getPlayerState(),k.n4(Q),this.xm=k)}};
  13221. g.h.EK=function(){Md(this,!1);OUg(this);pK6(this);g.x.prototype.EK.call(this)};
  13222. g.h.WW=function(T){this.QR=T;this.Fs({swebm:T})};
  13223. g.h.Pg=function(T,Q,k){if(k&&Q){var l=this.N.get(T);if(l){l.locations||(l.locations=new Map);var v=Number(Q.split(";")[0]);k=new g.J_(k);this.Fs({hdlredir:1,itag:Q,seg:T,hostport:FQ(k)});l.locations.set(v,k)}}};
  13224. g.h.QZ=function(T,Q,k,l,v,L){var q=l===3,Y=Jby(this,T,Q,l,k,L);if(!Y){Y7(this,Q,q);var U=g.WFX(this,Q)?"undec":"ncp";this.Fs({gvprp:U,mt:T,seg:Q,tt:l,itag:k,ce:L});return null}q||this.N.set(Q,Y);L=Y.RB;var R;l=((R=this.H$(Q-1,l,v))==null?void 0:R.e2)||"";l===""&&this.Fs({eds:1});R=FFJ(this,Y.ssdaiAdsConfig);v=this.playback.getVideoData();var Z;q=((Z=v.S)==null?void 0:Z.containerType)||0;Z=v.Bs[q];Y=Y.jn&&Q>=Y.jn?Y.jn:void 0;Z={Hm:L?Vbg(this,L):[],D4:R,e2:l,dK:Y,tI:aT(Z.split(";")[0]),Wv:Z.split(";")[1]||
  13225. ""};Y={gV:Z};this.sK&&(T={gvprpro:"v",sq:Q,mt:T.toFixed(3),itag:k,acpns:((U=Z.Hm)==null?void 0:U.join("_"))||"none",abid:L},this.Fs(T));return Y};
  13226. g.h.cI=function(T){a:{if(!this.l0){var Q=eTg(this,T);if(!(this.playback.getVideoData().lf()&&(Q==null?0:Q.C0)))break a}Q=void 0}var k=Q;if(!k)return this.Fs({gvprp:"ncp",mt:T}),null;Q=k.RB;var l=FFJ(this,k.ssdaiAdsConfig);k=k.jn&&k.Ed&&T>=k.Ed?k.jn:void 0;var v=this.playback.getVideoData(),L,q=((L=v.S)==null?void 0:L.containerType)||0;L=v.Bs[q];L={Hm:Q?Vbg(this,Q):[],D4:l,dK:k,tI:aT(L.split(";")[0]),Wv:L.split(";")[1]||""};var Y;T={gvprpro:"v",mt:T.toFixed(3),acpns:((Y=L.Hm)==null?void 0:Y.join("_"))||
  13227. "none",abid:Q};this.Fs(T);return L};
  13228. g.h.pw=function(T,Q,k,l,v,L){var q=Number(k.split(";")[0]),Y=l===3;T=Jby(this,T,Q,l,k,L);this.Fs({gdu:1,seg:Q,itag:q,pb:""+!!T});if(!T)return Y7(this,Q,Y),null;T.locations||(T.locations=new Map);if(!T.locations.has(q)){var U,R;L=(U=T.videoData.getPlayerResponse())==null?void 0:(R=U.streamingData)==null?void 0:R.adaptiveFormats;if(!L)return this.Fs({gdu:"noadpfmts",seg:Q,itag:q}),Y7(this,Q,Y),null;U=L.find(function(G){return G.itag===q});
  13229. if(!U||!U.url){var Z=T.videoData.videoId;T=[];var f=g.B(L);for(l=f.next();!l.done;l=f.next())T.push(l.value.itag);this.Fs({gdu:"nofmt",seg:Q,vid:Z,itag:q,fullitag:k,itags:T.join(",")});Y7(this,Q,Y);return null}T.locations.set(q,new g.J_(U.url,!0))}L=T.locations.get(q);if(!L)return this.Fs({gdu:"nourl",seg:Q,itag:q}),Y7(this,Q,Y),null;L=new Pt(L);this.QR&&(L.get("dvc")?this.Fs({dvc:L.get("dvc")||""}):L.set("dvc","webm"));(l=(f=this.H$(Q-1,l,v))==null?void 0:f.e2)&&L.set("daistate",l);T.jn&&Q>=T.jn&&
  13230. L.set("skipsq",""+T.jn);(f=this.playback.getVideoData().clientPlaybackNonce)&&L.set("cpn",f);f=[];T.RB&&(f=Vbg(this,T.RB),f.length>0&&L.set("acpns",f.join(",")));Y||this.N.set(Q,T);Y=null;Y=L.get("aids");l=L.IK();(l==null?void 0:l.length)>2048&&this.Fs({urltoolong:1,sq:Q,itag:q,len:l.length});this.sK&&(l&&(L=T.cpn,v=T.RB,j7C(this,L,v),v&&!this.OG.has(v)&&(L=Te5(this,L,v),U=Q7b(this,v),this.Fs({iofa:L}),this.Fs({noawnzd:U-L}),this.Fs({acpns:f.join("."),aids:(Z=Y)==null?void 0:Z.replace(/,/g,".")}),
  13231. this.OG.add(v))),this.Fs({gdu:"v",seg:Q,itag:k,ast:T.R_.toFixed(3),alen:T.durationMs.toFixed(3),acpn:T.cpn,avid:T.videoData.videoId}));return l};
  13232. g.h.AY=function(T,Q,k){k=k===void 0?!1:k;var l=$OT(this,T,Q);if(l){var v=void 0,L=l.RB;if(L){this.Fs({skipadonsq:Q,sts:k,abid:L,acpn:l.cpn,avid:l.videoData.videoId});k=this.T.S.get(L);if(!k)return;k=g.B(k);for(L=k.next();!L.done;L=k.next())L=L.value,L.jn=Q,L.Ed=T,L.R_>l.R_&&(v=L)}U0(this,this.Tb);this.Y=l.cpn;EIt(this);T=this.playback.getCurrentTime();ybt(this,l,v,T,T,!1,!0);laX(this)}};
  13233. g.h.nV=function(){for(var T=g.B(this.T.T),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.jn=NaN,Q.Ed=NaN;EIt(this);this.Fs({rsac:"resetSkipAd",sac:this.Y});this.u9.delete(this.Y);this.Y=""};
  13234. g.h.H$=function(T,Q,k){return this.qO.H$(T,Q,k)};
  13235. g.h.F0=T5(57);
  13236. g.h.zQ=function(T,Q,k,l,v,L,q,Y,U){l.length>0&&this.Fs({onssinfo:1,sq:T,start:Q.toFixed(3),cpns:l.join(","),ds:v.join(","),isVideo:q?1:0});U&&this.qO.zQ(T,q,Y,U);if(q){if(l.length&&v.length)for(this.u9.has(l[0])&&this.Fs({skipfail:1,sq:T,acpn:l[0]}),T=Q+this.TG(),k=0;k<l.length;k++)if(U=l[k],q=T,T=q+v[k],U=this.T.pA({cpn:U}))q-=L[k],U.SK=U.SK!=null?Math.min(U.SK,q):q;if(l.length&&v.length)for(k=(Q+this.TG())*1E3,Q=0;Q<l.length;Q++)if(q=l[Q],U=v[Q]*1E3,q===this.playback.getVideoData().clientPlaybackNonce)k+=U;
  13237. else{this.Gg.has(q)||(this.Fs({adCpnFromEmsg:1}),this.Gg.add(q));var R=0;Q<L.length&&(R=L[Q]*1E3);if(T=this.S.get(q))T.start=k-R,T.end=k+U,Q===l.length-1&&(T.end+=iU5(this,q,Y)),this.playback.KJ();else for(T=new g.$d(k-R,k+U,{id:q,namespace:"serverstitchedcuerange",priority:9}),this.S.set(q,T),this.Fs({newAdCR:1,cpn:q,startTime:T.start,endTime:T.end}),Q===l.length-1&&(T.end+=iU5(this,q,Y)),this.playback.addCueRange(T),k=this.playback.CX("serverstitchedcuerange",36E5),k=g.B(k),q=k.next();!q.done;q=
  13238. k.next())this.S.delete(q.value.getId());k=T.end}}};
  13239. g.h.m$=T5(55);g.h.TG=function(){return this.playback.TG()};
  13240. g.h.O4=function(T){this.playback.T9("timelineerror",{e:T})};
  13241. g.h.Ky=function(T){this.j&&this.B&&this.D.push(this.B);T&&this.B&&this.p_.push(this.B);this.B=null;this.playback.Ky(T)};
  13242. g.h.Fg=function(T){if(this.l0||T.identifier&&this.Fk.has(T.identifier))this.Fs({startnoad:T.identifier}),qd(this);else if($4(this.D,function(k){return k.identifier===T.identifier}))this.Fs({timedoutcp:1}),this.C.start(0);
  13243. else if($4(this.p_,function(k){return k.identifier===T.identifier}))this.Fs({fetchedcp:1}),qd(this);
  13244. else if(this.C.isActive()){var Q;this.Fs({racingcp:((Q=this.B)==null?void 0:Q.identifier)+"_"+T.identifier})}else this.h3=(new Date).getTime()/1E3,this.Fs({adf:1}),(Q=5E3,T.event==="predictStart")&&(Q-=T.T),this.Jj=Math.max(Q,15E3),this.j=!1,this.C.start(this.Jj),this.B=T,this.qO.clearAll(),this.Bd=[]};
  13245. g.h.eK=function(T,Q,k,l){k=k||{reason:"disablessdai"};if(T&&Q){if(!$OT(this,T,Q))return!1;k.sq=Q}if(this.l0)return!1;this.l0=!0;this.N5>0&&(this.N5=0,this.Tb="",this.Hd.V("html5_huli_ssdai_use_playback_state")&&this.PB(this.playback.pB(),0),this.api.publish("serverstitchedvideochange"));this.playback.XW(k,l);return!0};
  13246. g.h.t1=function(){this.Fs({rstdaist:1});this.qO.clearAll()};
  13247. g.h.eM=function(T){var Q;if(T!==((Q=this.B)==null?void 0:Q.identifier))this.Fs({ignorenoad:T});else{this.Fk.add(T);this.Fs({noadrcv:T});var k;((k=this.B)==null?void 0:k.identifier)===T&&qd(this)}};
  13248. g.h.Vi=function(T){if(this.l0)return this.Fs({dai_disabled:T.event}),!1;if(this.playback.getVideoData().lf()&&(T.event==="continue"||T.event==="stop"))return!1;var Q=xY(this.api.Bx());if(Q=Q?Q.Vi(T):!1)this.L={n1:T.identifier,l4:T.startSecs};else if(this.L&&this.L.n1===T.identifier&&T.startSecs>this.L.l4+1){this.Fs({cueStChg:T.identifier,oldSt:this.L.l4.toFixed(3),newSt:T.startSecs.toFixed(3),abid:this.L.CK});if(this.L.CK){var k=T.startSecs-this.L.l4,l=this.T.S.get(this.L.CK);if(l){l=g.B(l);for(var v=
  13249. l.next();!v.done;v=l.next())v=v.value,v.R_>=0&&(v.R_+=k*1E3,this.Hd.V("html5_ssdai_update_timeline_on_start_time_change")&&(v.X_+=k*1E3),this.Fs({newApEt:v.R_,newApPrt:v.X_,acpn:v.cpn}))}}this.L.l4=T.startSecs}this.Hd.V("html5_ssdai_log_missing_ad_config_reason")&&(Q?this.e6.add(T.identifier):this.e6.has(T.identifier)&&this.e6.delete(T.identifier));return Q};
  13250. g.h.QK=function(T){var Q="";T?T.event==="unknown"?Q="unknown":this.e6.has(T.identifier)?this.L&&this.L.n1===T.identifier?this.L.n1===T.identifier?Q="pending":$4(this.p_,function(k){return k.identifier===T.identifier})||(Q="noAdsAdded"):Q="wrongAdBreakInfo":Q="unscheduled":Q="noCuepoint";
  13251. return Q};
  13252. g.h.zV=function(T){return this.l0?!1:!!eTg(this,T)};
  13253. g.h.oF=function(T){var Q=this;if(this.Hd.V("html5_lifa_ignore_multiple_skips")&&this.hj)return this.Fs({ufs_ad:this.Y,ufs_cur:this.Tb,ufs_cont:this.eP().cpn}),!1;U0(this,this.Tb);this.playback.pauseVideo();var k=this.playback.getCurrentTime(),l=this.T.pA({cpn:this.Tb});if(!l)return this.Fs({skipFail:k}),!1;this.Y=this.Tb;this.z9=!1;ka5(this,l.RB);q1f(this,l,this.eP(),T);Lif(this,k,{seekSource:89,I_:"lifa_skip"});this.hj||(this.hj=this.events.Z(this.api,"progresssync",function(){zx(Q.api.eZ(),(0,g.XY)(),
  13254. "ad_to_video");Q.hj&&(Q.events.J6(Q.hj),Q.hj=null)}));
  13255. return!0};
  13256. g.h.Fs=function(T,Q){((Q===void 0?0:Q)||this.sK||this.playback.getVideoData().lf())&&this.playback.T9("sdai",T)};
  13257. var AbX=0;g.S(MdC,g.x);g.h=MdC.prototype;g.h.onCueRangeEnter=function(T){if(this.T===this.app.Pd()){var Q=this.N.get(T);Q?Gaf(this,Q.target,Q.kz,T):this.RK("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:T.toString()})}else if(Q=this.S.find(function(v){return v.R9.qV===T})){var k=Q.R9,l=k.target;
  13258. k=k.kz;l?Gaf(this,l,k,T):fa5(this,Q.X_,k,T)}};
  13259. g.h.onQueuedVideoLoaded=function(){var T=this.C;Gt(this);if(T){if(!fq(this,T)){var Q=this.app.Pd();this.RK("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Q==null?void 0:Q.getVideoData().clientPlaybackNonce,ccpn:""+T.playerVars.cpn})}this.app.Pd().addCueRange(T.R9.qV)}};
  13260. g.h.seekTo=function(T,Q,k,l){T=T===void 0?0:T;Q=Q===void 0?{}:Q;l=l===void 0?null:l;if(k===void 0?0:k)gU6(this,T,Q);else{k=this.app.Pd()||null;var v=k===this.Y?this.B:null;mL(this,!1);this.z9=T;this.D=Q;l!=null&&this.j.start(l);k&&(this.B=v||k.getPlayerState(),k.n4(),this.Y=k)}};
  13261. g.h.Pl=function(T){g.RY(T,128)&&S1u(this)};
  13262. g.h.isManifestless=function(){return Kt(this.T.getVideoData())};
  13263. g.h.EK=function(){mL(this,!1);BeX(this);g.x.prototype.EK.call(this)};
  13264. g.h.RK=function(T,Q){this.T.RK(new g.ZK(T,Q))};
  13265. var Y1f=0;var z_5="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.S(Ig,g.x);Ig.prototype.Py=function(T){if(T)return this.S.get(T)};
  13266. Ig.prototype.EK=function(){this.T.removeAll();this.S.removeAll();g.x.prototype.EK.call(this)};g.qv_=aO(function(){var T=window.AudioContext||window.webkitAudioContext;try{return new T}catch(Q){return Q.name}});g.S(AhC,g.p);g.h=AhC.prototype;g.h.SX=function(){g.vq(this.element,g.HT.apply(0,arguments))};
  13267. g.h.u7=function(){this.Q4&&(this.Q4.removeEventListener("focus",this.HL),g.s$(this.Q4),this.Q4=null)};
  13268. g.h.f1=function(){this.wd();var T=this.app.G();T.BH||this.SX("tag-pool-enabled");T.B&&this.SX(g.Br.HOUSE_BRAND);T.playerStyle==="gvn"&&(this.SX("ytp-gvn"),this.element.style.backgroundColor="transparent");T.Ig&&(this.rg=g.TA("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)};
  13269. g.h.qP=function(T){g.vB(this.app.G());this.Nb=!T;hn(this)};
  13270. g.h.resize=function(){if(this.Q4){var T=this.J9();if(!T.isEmpty()){var Q=g.jj(this.app.G().experiments,"html5_android_mweb_resize_delay")>0,k=this.app.ZV.isFullscreen();if(Q&&k&&OG()){var l;(l=this.N7)==null||l.start()}Q=!g.eN(T,this.hJ.getSize());k=aay(this);Q&&(this.hJ.width=T.width,this.hJ.height=T.height);T=this.app.G();(k||Q||this.Yy||T.Ig)&&this.app.ZV.publish("resize",this.getPlayerSize())}}};
  13271. g.h.Kp=function(T,Q){this.updateVideoData(Q)};
  13272. g.h.updateVideoData=function(T){if(this.Q4){var Q=this.app.G();We&&(this.Q4.setAttribute("x-webkit-airplay","allow"),T.title?this.Q4.setAttribute("title",T.title):this.Q4.removeAttribute("title"));this.Q4.setAttribute("controlslist","nodownload");Q.hn&&T.videoId&&(this.Q4.poster=T.rO("default.jpg"))}Q=g.e7(T,"yt:bgcolor");this.XO.style.backgroundColor=Q?Q:"";this.eH=vy(g.e7(T,"yt:stretch"));this.sO=vy(g.e7(T,"yt:crop"),!0);g.gl(this.element,"ytp-dni",T.hh);this.resize()};
  13273. g.h.setGlobalCrop=function(T){this.Fa=vy(T,!0);this.resize()};
  13274. g.h.setCenterCrop=function(T){this.fb=T;this.resize()};
  13275. g.h.gA=function(){};
  13276. g.h.getPlayerSize=function(){var T=this.app.G(),Q=this.app.ZV.isFullscreen(),k=T.externalFullscreen&&g.Qk(T);if(Q&&OG()&&!k)return new g.Ji(window.outerWidth,window.outerHeight);k=!isNaN(this.TZ.width)&&!isNaN(this.TZ.height);var l=this.app.G().V("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.G().V("web_watch_enable_fs_squeezeback_panels");if(Q&&!k&&l)return new g.Ji(this.element.clientWidth,this.element.clientHeight);if(Q||T.Qm){if(window.matchMedia){T="(width: "+window.innerWidth+
  13277. "px) and (height: "+window.innerHeight+"px)";this.VA&&this.VA.media===T||(this.VA=window.matchMedia(T));var v=this.VA&&this.VA.matches}if(v)return new g.Ji(window.innerWidth,window.innerHeight)}else if(k)return this.TZ.clone();return new g.Ji(this.element.clientWidth,this.element.clientHeight)};
  13278. g.h.J9=function(){var T=this.app.G().V("enable_desktop_player_underlay"),Q=this.getPlayerSize(),k=g.jj(this.app.G().experiments,"player_underlay_min_player_width");return T&&this.WL&&Q.width>k?(T=g.jj(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.Ji(Math.min(Q.height*this.getVideoAspectRatio(),Q.width*T),Math.min(Q.height,Q.width*T/this.getVideoAspectRatio()))):Q};
  13279. g.h.getVideoAspectRatio=function(){return isNaN(this.eH)?rhu(this):this.eH};
  13280. g.h.getVideoContentRect=function(T){var Q=this.J9();T=ch5(this,Q,this.getVideoAspectRatio(),T);return new g.tZ((Q.width-T.width)/2,(Q.height-T.height)/2,T.width,T.height)};
  13281. g.h.uX=function(T){this.WL=T;this.resize()};
  13282. g.h.VH=function(){return this.X9};
  13283. g.h.onMutedAutoplayChange=function(){hn(this)};
  13284. g.h.setInternalSize=function(T){g.eN(this.TZ,T)||(this.TZ=T,this.resize())};
  13285. g.h.EK=function(){this.rg&&g.o$(this.rg);this.u7();g.p.prototype.EK.call(this)};g.h=nUt.prototype;g.h.click=function(T,Q){this.elements.has(T);this.T.has(T);var k=g.C9();k&&T.visualElement&&g.Q6(k,T.visualElement,Q)};
  13286. g.h.createClientVe=function(T,Q,k,l){var v=this;l=l===void 0?!1:l;this.elements.has(T);this.elements.add(T);k=sUX(k);T.visualElement=k;var L=g.C9(),q=g.ST();L&&q&&(g.hH("combine_ve_grafts")?yh(Fv(),k,q):g.E4(g.p9)(void 0,L,q,k));Q.addOnDisposeCallback(function(){v.elements.has(T)&&v.destroyVe(T)});
  13287. l&&this.S.add(T)};
  13288. g.h.createServerVe=function(T,Q,k){var l=this;k=k===void 0?!1:k;this.elements.has(T);this.elements.add(T);Q.addOnDisposeCallback(function(){l.destroyVe(T)});
  13289. k&&this.S.add(T)};
  13290. g.h.destroyVe=function(T){this.elements.has(T);this.elements.delete(T);this.L.delete(T);this.T.delete(T);this.S.delete(T)};
  13291. g.h.dB=function(T,Q){this.clientPlaybackNonce!==Q&&(this.clientPlaybackNonce=Q,En(Fv(),T),KiC(this))};
  13292. g.h.setTrackingParams=function(T,Q){this.elements.has(T);Q&&(T.visualElement=g.ha(Q))};
  13293. g.h.o_=function(T,Q,k){this.elements.has(T);Q?this.T.add(T):this.T.delete(T);var l=g.C9(),v=T.visualElement;this.S.has(T)?l&&v&&(Q?g.VU(l,[v]):g.TI(l,[v])):Q&&!this.L.has(T)&&(l&&v&&g.iA(l,v,void 0,k),this.L.add(T))};
  13294. g.h.hasVe=function(T){return this.elements.has(T)};g.S(g.S5,g.x);g.S5.create=function(T,Q,k,l){try{var v=typeof T==="string"?T:"player"+g.qp(T),L=Ap[v];if(L){try{L.dispose()}catch(Y){g.bA(Y)}Ap[v]=null}var q=new g.S5(T,Q,k,l);q.addOnDisposeCallback(function(){Ap[v]=null;q.Pb&&q.Pb()});
  13295. return Ap[v]=q}catch(Y){throw g.bA(Y),(Y&&Y instanceof Error?Y:Error(String(Y))).stack;}};
  13296. g.h=g.S5.prototype;g.h.Gk=function(){return this.visibility};
  13297. g.h.zj=function(T){var Q=this.Lc();if(T!==Q){T.getVideoData().autonavState=Q.getVideoData().autonavState;Q.L5(this.yN,this);var k=Q.getPlaybackRate();Q.dispose();this.CA.zj(T);T.setPlaybackRate(k);T.L7(this.yN,this);WiT(this)}};
  13298. g.h.HG=function(){this.G7||(this.G7=g.Jt(lf(),uN5()));return this.G7};
  13299. g.h.u7=function(T){if(this.mediaElement){this.gq&&(this.events.J6(this.gq),this.gq=null);g.N5(this.Yd);this.Pd().u7(!0,!1,T);this.template.u7();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Kj()}catch(Q){g.rB(Q)}this.mediaElement=null}};
  13300. g.h.l$=function(T,Q,k){k=k===void 0?!1:k;if(T!==this.Pd()){this.logger.debug(function(){return"start set presenting player, type "+T.getPlayerType()+", vid "+T.getVideoData().videoId});
  13301. var l=null;k||(k=this.Pd(),l=k.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Kk(this.TH,3),pq(this,"cuerangesremoved",k.TP()),this.Zq&&!T.isGapless()&&k.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),k=T.e1()&&k.e1(),this.Rg.Sl("iv_s"),Vd5(this,k));T.getPlayerType()===1&&this.zj(T);izX(this,T);this.CA.l$(T);this.mediaElement&&T.setMediaElement(this.mediaElement);T.L7(this.Kx,this);T.hX()?XF5(this,"setPresenting",!1):(this.Kp("newdata",T,T.getVideoData()),
  13302. l&&!g.AB(l,T.getPlayerState())&&this.gf(new g.YX(T.getPlayerState(),l)),Q=Q&&T.getPlayerType()===1,T.qW()&&!Q&&this.Kp("dataloaded",T,T.getVideoData()),(Q=(Q=T.getVideoData().S)&&Q.video)&&this.ZV.Pk("onPlaybackQualityChange",Q.quality),pq(this,"cuerangesadded",T.TP()),Q=T.getPlayerState(),g.J(Q,2)?yh5(this):g.J(Q,8)?T.playVideo():T.a9()&&T.pauseVideo(),Q=this.Lc(),T.getPlayerType()===2&&(T.getVideoData().i4=Q.getVideoData().clientPlaybackNonce),T.getPlayerType()!==2||this.Xj()||(l=T.getVideoData(),
  13303. Q.Xx(l.clientPlaybackNonce,l.pG||"",l.breakType||0,l.uK,l.videoId||"")),this.logger.debug("finish set presenting player"))}};
  13304. g.h.WJ=function(){if(this.Lc()!==this.Pd()){var T=this.Pd();this.logger.debug(function(){return"release presenting player, type "+T.getPlayerType()+", vid "+T.getVideoData().videoId});
  13305. this.l$(this.Lc())}};
  13306. g.h.vG=function(){return this.CA};
  13307. g.h.pA=function(T){return this.CA.pA(T)};
  13308. g.h.jD=function(T){return this.CA.jD(T)};
  13309. g.h.Lc=function(){return this.CA.Lc()};
  13310. g.h.Pd=function(){return this.CA.Pd()};
  13311. g.h.GB=T5(44);g.h.skK=function(){dk(this)||(this.logger.debug("application playback ready"),this.pU(5))};
  13312. g.h.DYd=function(){if(!dk(this)){this.logger.debug("playback ready");SbH(this);var T=this.Pd(),Q=T.getPlayerState();T.a9()?this.pauseVideo():Q.isOrWillBePlaying()&&this.playVideo()}};
  13313. g.h.canPlayType=function(T){return IE(T)};
  13314. g.h.G=function(){return this.Hd};
  13315. g.h.getVideoData=function(){return this.Pd().getVideoData()};
  13316. g.h.Av=T5(11);g.h.mF=function(){return this.Lc().getVideoData()};
  13317. g.h.getVideoLoadedFraction=function(T){return(T=this.pA({playerType:T}))?T.getVideoLoadedFraction():this.CA.T.getVideoLoadedFraction()};
  13318. g.h.Hx=function(){return this.template};
  13319. g.h.Bx=function(){return this.TH};
  13320. g.h.eZ=function(){return this.Rg};
  13321. g.h.Y6=function(T,Q,k){(Q=this.pA({playerType:Q===void 0?1:Q}))&&Q.fn(T,void 0,k)};
  13322. g.h.Z_=function(){var T=this.TH.Z_();this.ZV.publish("videoStatsPingCreated",T);return T};
  13323. g.h.getVolume=function(){return Math.round(this.ZV.getVolume())};
  13324. g.h.isMuted=function(){return this.ZV.isMuted()};
  13325. g.h.Gc=function(){if(this.Lc()===this.Pd()&&this.VR)return this.VR.postId};
  13326. g.h.gP9=function(){var T=this;this.V("use_rta_for_player")||(g.G4(this.Hd)?g.rj(this.Hd,g.YD(this.getVideoData())).then(function(Q){oR(lf(),Q);IQH(T.getVideoData(),T.Hd,T.HG())}):IQH(this.getVideoData(),this.Hd,this.HG()))};
  13327. g.h.rY=function(T){this.ZV.publish("poTokenVideoBindingChange",T)};
  13328. g.h.Z5=function(T){this.ZV.publish("d6de4videobindingchange",T)};
  13329. g.h.KT=function(){this.AK&&this.AK.KT()};
  13330. g.h.G2=function(T){this.AK=T};
  13331. g.h.xA=function(T){if(T===1){this.Rg.tick("vr");var Q=this.Pd();Q.lG();w5X(this.Rg,Q.getVideoData(),seH(this));jwC(this.TH)}Q=this.Hd;if(N0(Q)&&Q.j||g.q0(Q)){var k;(((k=this.Pd().getVideoData())==null?0:k.enableServerStitchedDai)||!this.Xj())&&this.ZV.Pk("onAdStateChange",T)}};
  13332. g.h.setLoopVideo=function(T){var Q=this.Pd();Q===this.Lc()&&Q.t_()!==T&&(Q.setLoop(T),this.ZV.tj("onLoopChange",T))};
  13333. g.h.getLoopVideo=function(){return this.Pd().t_()};
  13334. g.h.setLoopRange=function(T){var Q=!1;!!this.VR!==!!T?Q=!0:this.VR&&T&&(Q=this.VR.startTimeMs!==T.startTimeMs||this.VR.endTimeMs!==T.endTimeMs||this.VR.postId!==T.postId||this.VR.type!==T.type);if(Q){Q=this.Pd();NY(Q.getVideoData())&&Q.T9("slr",{et:(T==null?void 0:T.endTimeMs)||-1});Q=this.Lc();Q.uf("applooprange");if(T){var k=new g.$d(T.startTimeMs,T.endTimeMs,{id:"looprange",namespace:"applooprange"});Q.addCueRange(k)}else{this.mF().clipConfig=void 0;var l;((k=this.VR)==null?void 0:k.type)!=="repeatChapter"||
  13335. isNaN(Number((l=this.VR)==null?void 0:l.loopCount))||(k={loopCount:String(this.VR.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.LM("repeatChapterLoopEvent",k))}this.VR=T;this.ZV.tj("onLoopRangeChange",T||void 0);this.Lc()===this.Pd()&&(this.aU(),Q.wZ())}};
  13336. g.h.getLoopRange=function(){return this.VR};
  13337. g.h.aU=function(){var T="",Q=this.Lc();this.VR?Q!==this.Pd()?T="pnea":Lgt(this,Q.getCurrentTime())&&(this.VR.loopCount=0,T="ilr"):T="nlr";var k=this.Pd();if(NY(k.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var l,v;k.T9("slrre",{rej:T,ct:Q.getCurrentTime(),lst:(l=this.VR)==null?void 0:l.startTimeMs,let:(v=this.VR)==null?void 0:v.endTimeMs})}else k.T9("slrre",{});T||gog(this)};
  13338. g.h.setPlaybackRate=function(T,Q){if(!isNaN(T)){T=e_t(this,T);var k=this.Lc();k.getPlaybackRate()!==T&&(k.setPlaybackRate(T),Q&&!this.Hd.Y&&g.ri("yt-player-playback-rate",T),this.ZV.Pk("onPlaybackRateChange",T))}};
  13339. g.h.getCurrentTime=function(T,Q){Q=Q===void 0?!0:Q;var k=this.CA.GP;if(k)return k.getCurrentTime();var l=T===2&&this.getVideoData().enableServerStitchedDai;k=null;l?k=this.Pd():k=this.pA({playerType:T});return k?l&&this.SD?(T=this.CA.C)?T.getCurrentTime(Q):k.getCurrentTime():Q?(Q=wk(this,k),Kq(this,Q.getCurrentTime(),Q)):k.getCurrentTime():this.CA.T.getCurrentTime()};
  13340. g.h.bS=function(){var T=this.pA({playerType:void 0});if(!T)return this.CA.T.bS();T=wk(this,T);return Kq(this,T.bS(),T)};
  13341. g.h.getDuration=function(T,Q){Q=Q===void 0?!0:Q;var k=this.CA.GP;if(k)return k.getDuration();k=this.getVideoData();var l=T===2&&k.enableServerStitchedDai,v=null;l?v=this.Pd():v=this.pA({playerType:T});if(!v)return this.CA.T.getDuration();if(k.hasProgressBarBoundaries()&&!l){var L,q=Number((L=k.progressBarStartPosition)==null?void 0:L.utcTimeMillis),Y;L=Number((Y=k.progressBarEndPosition)==null?void 0:Y.utcTimeMillis);if(!isNaN(q)&&!isNaN(L))return(L-q)/1E3}if(NY(k)&&!k.isLivePlayback)return uG(this,
  13342. T);if(Q)return T=XU(this,v),Kq(this,T.getDuration(),T);if(l&&this.SD){if(this.V("html5_huli_ssdai_use_playback_state"))return T=this.CA,T=T.Y===T.C?T.Y:null,(T==null?void 0:T.getDuration())||0;var U;return((U=this.CA.C)==null?void 0:U.getDuration())||0}return v.getDuration()};
  13343. g.h.xM=function(T){var Q=this.pA({playerType:T});return Q?this.Xj(Q)?(Q=XU(this,Q),Q.xM()-Q.getCurrentTime()+this.getCurrentTime(T)):Q.xM():this.CA.T.xM()};
  13344. g.h.finishSegmentByCpn=function(){return[]};
  13345. g.h.f1=function(){this.template.f1();var T=this.ZV;T.state.element=this.template.element;var Q=T.state.element,k;for(k in T.state.T)T.state.T.hasOwnProperty(k)&&(Q[k]=T.state.T[k]);(T=xSf(this.template.element))&&this.events.Z(this.template,T,this.onFullscreenChange)};
  13346. g.h.getDebugText=function(T){var Q=this.Lc().Tx(T),k=this.Pd();if(k!==this.Lc()){k=k.Tx(T);for(var l=g.B(Object.keys(k)),v=l.next();!v.done;v=l.next())v=v.value,Q["ad"+v]=k[v];if(T){k=Q;l={};if(v=oO(document,"movie_player"))l.bounds=v.getBoundingClientRect(),l["class"]=v.className;v={};var L=g.gK("video-ads");L?(NZ5(L,v),v.html=L.outerHTML):v.missing=1;L={};var q=g.gK("videoAdUiSkipContainer"),Y=g.gK("ytp-ad-skip-button-container"),U=g.gK("ytp-skip-ad-button"),R=q||Y||U;R?(NZ5(R,L),L.ima=q?1:0,L.bulleit=
  13347. Y?1:0,L.component=U?1:0):L.missing=1;l=JSON.stringify({player:l,videoAds:v,skipButton:L});k.ad_skipBtnDbgInfo=l}}T&&this.mediaElement&&(Q["0sz"]=""+(+Fs(this.mediaElement.getSize())===0),Q.op=this.mediaElement.Jv("opacity"),k=this.mediaElement.rS().y+this.mediaElement.getSize().height,Q.yof=""+(+k<=0),Q.dis=this.mediaElement.Jv("display"));T&&((T=(0,g.YO)())&&(Q.gpu=T),(T=this.Hd.playerStyle)&&(Q.ps=T),this.Hd.Jj&&(Q.webview=1),(T=this.webPlayerContextConfig.jsUrl)&&(Q.js=T));Q.debug_playbackQuality=
  13348. this.ZV.getPlaybackQuality(1);Q.debug_date=(new Date).toString();Q.origin=window.origin;Q.timestamp=Date.now();delete Q.uga;delete Q.q;return JSON.stringify(Q,null,2)};
  13349. g.h.getFeedbackProductData=function(){var T={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:M[7]},Q=this.getPlayerStateObject().ge;Q&&(T.player_error_code=Q.errorCode,T.player_error_details=JSON.stringify(Q.errorDetail));return T};
  13350. g.h.getPresentingPlayerType=function(T){if(this.appState===1)return 1;if(dk(this))return 3;var Q;return T&&((Q=this.SD)==null?0:xO5(Q,this.getCurrentTime()))?2:this.Pd().getPlayerType()};
  13351. g.h.K9=function(){return!1};
  13352. g.h.getPlayerStateObject=function(T){var Q=this.CA.GP;return Q?Q.getPlayerState():this.pA({playerType:T}).getPlayerState()};
  13353. g.h.getAppState=function(){return this.appState};
  13354. g.h.oc6=function(T){switch(T.type){case "loadedmetadata":this.uw.start();T=g.B(this.Bw);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,hkb(this,Q.id,Q.qhe,Q.z0O,void 0,!1);this.Bw=[];break;case "loadstart":this.Rg.Sl("gv");break;case "progress":case "timeupdate":V4(T.target.Q8())>=2&&this.Rg.Sl("l2s");break;case "playing":g.wj&&this.uw.start();if(g.G4(this.Hd))T=!1;else{Q=g.y5(this.Bx());T=this.mediaElement.Jv("display")==="none"||Fs(this.mediaElement.getSize())===0;var k=s0(this.template),l=this.Pd().getVideoData(),
  13355. v=g.uP(this.Hd);l=AL(l);Q=!k||Q||v||l||this.Hd.f_;T=T&&!Q}T&&(T=this.Pd(),T.qr(),this.getVideoData().Gg||(this.getVideoData().Gg=1,this.q6(),T.playVideo()))}};
  13356. g.h.W1j=function(T){this.ZV.UM("onLoadProgress",T)};
  13357. g.h.SHO=function(){this.ZV.publish("playbackstalledatstart")};
  13358. g.h.y6d=function(T,Q){this.ZV.publish("sabrCaptionsDataLoaded",T,Q)};
  13359. g.h.ph_=function(T){this.Pd().AJ(T)};
  13360. g.h.ncq=function(T){this.Pd().ZF(T)};
  13361. g.h.Q_V=function(T){T=wk(this,this.Pd());T=Kq(this,T.getCurrentTime(),T);this.ZV.Pk("onVideoProgress",T);this.Hd.iy&&fub(this,this.visibility.x$())&&this.pauseVideo()};
  13362. g.h.IPm=function(){this.ZV.Pk("onAutoplayBlocked");var T=this.Pd().getVideoData();T&&(T.BK=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.Qk(this.Hd)&&(T={autoplayBrowserPolicy:zq(),autoplayIntended:XQ(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.LM("embedsAutoplayStatusChanged",T))};
  13363. g.h.MrO=function(){this.ZV.publish("progresssync")};
  13364. g.h.fPH=function(){this.ZV.UM("onPlaybackPauseAtStart")};
  13365. g.h.lVK=function(T){if(this.getPresentingPlayerType()===1){g.RY(T,1)&&!g.J(T.state,64)&&this.mF().isLivePlayback&&this.Lc().isAtLiveHead()&&this.ZV.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.RY(T,2)){if(this.VR&&this.VR.endTimeMs>=(this.getDuration()-1)*1E3){gog(this);return}yh5(this)}if(g.J(T.state,128)){var Q=T.state;this.cancelPlayback(5);Q=Q.ge;JSON.stringify({errorData:Q,debugInfo:this.getDebugText(!0)});this.ZV.Pk("onError",bQJ(Q.errorCode));this.ZV.UM("onDetailedError",{errorCode:Q.errorCode,
  13366. errorDetail:Q.errorDetail,message:Q.errorMessage,messageKey:Q.k9,cpn:Q.cpn});(0,g.XY)()-this.Hd.Wk>6048E5&&this.ZV.UM("onReloadRequired")}Q={};if(T.state.isPlaying()&&!T.state.isBuffering()&&!bU("pbresume","ad_to_video")&&bU("_start","ad_to_video")){var k=this.getVideoData();Q.clientPlaybackNonce=k.clientPlaybackNonce;k.videoId&&(Q.videoId=k.videoId);g.NL(Q,"ad_to_video");dS("pbresume",void 0,"ad_to_video");jwC(this.TH)}this.ZV.publish("applicationplayerstatechange",T)}};
  13367. g.h.gf=function(T){this.CA.GP||this.ZV.publish("presentingplayerstatechange",T)};
  13368. g.h.Pl=function(T){zt(this,rf(T.state));g.J(T.state,1024)&&this.ZV.isMutedByMutedAutoplay()&&(DN(this,{muted:!1,volume:this.cG.volume},!1),ag(this,!1))};
  13369. g.h.onPlayerRequestSent=function(T){this.ZV.tj("onPlayerRequestSent",T)};
  13370. g.h.nN=function(T,Q){T==="newdata"&&WiT(this);this.ZV.publish("applicationvideodatachange",T,Q)};
  13371. g.h.bce=function(T,Q){this.V("html5_afmt_change_update_volume")&&SbH(this);this.ZV.UM("onPlaybackAudioChange",this.ZV.getAudioTrack().MY.name);this.ZV.publish("internalaudioformatchange",this.ZV.getAudioTrack().MY.id,Q)};
  13372. g.h.EcH=function(T){var Q=this.Pd().getVideoData();T===Q&&this.ZV.Pk("onPlaybackQualityChange",T.S.video.quality)};
  13373. g.h.qI=function(){var T=this.CA.L[2]||null;T&&(T=T.getVideoData(),this.Pd().T9("ssdai",{cleanaply:1,acpn:T==null?void 0:T.clientPlaybackNonce,avid:T.videoId,isDai:this.mF().enableServerStitchedDai?1:0}),delete this.CA.L[2])};
  13374. g.h.c6d=function(T,Q){this.Kp(T,this.Pd(),Q)};
  13375. g.h.Kp=function(T,Q,k){this.logger.debug(function(){return"on video data change "+T+", player type "+Q.getPlayerType()+", vid "+k.videoId});
  13376. this.Hd.J3()&&Q.T9("vdc",{type:T,vid:k.videoId||"",cpn:k.clientPlaybackNonce||""});Q===this.Lc()&&(this.Hd.b7=k.oauthToken);Q===this.Lc()&&(this.getVideoData().enableServerStitchedDai&&!this.SD?(this.Lc().T9("sdai",{initSstm:1}),this.SD=new g.v5(this.ZV,this.Hd,this.Lc(),this)):!this.getVideoData().enableServerStitchedDai&&this.SD&&(this.SD.dispose(),this.SD=null));if(T==="newdata")this.logger.debug("new video data, destroy modules"),Kk(this.TH,2),this.ZV.publish("videoplayerreset",Q);else{if(!this.mediaElement)return;
  13377. T==="dataloaded"&&(this.Lc()===this.Pd()?(Ru(k.FB,k.EV),kMu(this)):QeJ(this));Q.getPlayerType()===1&&(this.Hd.e6&&dG5(this),this.getVideoData().isLivePlayback&&!this.Hd.cf&&this.XG("html5.unsupportedlive",2,"DEVICE_FALLBACK"),k.isLoaded()&&((xyI(k)||this.getVideoData().cf)&&this.ZV.publish("legacyadtrackingpingchange",this.getVideoData()),k.hasProgressBarBoundaries()&&Ybb(this)));this.ZV.publish("videodatachange",T,k,Q.getPlayerType())}this.ZV.Pk("onVideoDataChange",{type:T,playertype:Q.getPlayerType()});
  13378. this.aU();var l=k.tO;l?this.GE.dB(l,k.clientPlaybackNonce):KiC(this.GE)};
  13379. g.h.Nd=function(){An(this,null);this.ZV.UM("onPlaylistUpdate")};
  13380. g.h.d2B=function(T){delete this.w6[T.getId()];this.Lc().removeCueRange(T);a:{T=this.getVideoData();var Q,k,l,v,L,q,Y,U,R,Z,f=((Q=T.e6)==null?void 0:(k=Q.contents)==null?void 0:(l=k.singleColumnWatchNextResults)==null?void 0:(v=l.autoplay)==null?void 0:(L=v.autoplay)==null?void 0:L.sets)||((q=T.e6)==null?void 0:(Y=q.contents)==null?void 0:(U=Y.twoColumnWatchNextResults)==null?void 0:(R=U.autoplay)==null?void 0:(Z=R.autoplay)==null?void 0:Z.sets);if(f)for(Q=g.B(f),k=Q.next();!k.done;k=Q.next())if(k=
  13381. k.value,v=l=void 0,k=k.autoplayVideo||((l=k.autoplayVideoRenderer)==null?void 0:(v=l.autoplayEndpointRenderer)==null?void 0:v.endpoint),l=g.t(k,g.Bv),L=v=void 0,k!=null&&((v=l)==null?void 0:v.videoId)===T.videoId&&((L=l)==null?0:L.continuePlayback)){T=k;break a}T=null}(Q=g.t(T,g.Bv))&&this.ZV.tj("onPlayVideo",{sessionData:{autonav:"1",itct:T==null?void 0:T.clickTrackingParams},videoId:Q.videoId,watchEndpoint:Q})};
  13382. g.h.pU=function(T){var Q=this;T!==this.appState&&(this.logger.debug(function(){return"app state change "+Q.appState+" -> "+T}),T===2&&this.getPresentingPlayerType()===1&&(zt(this,-1),zt(this,5)),this.appState=T,this.ZV.publish("appstatechange",T))};
  13383. g.h.XG=function(T,Q,k,l,v){this.Lc().NL(T,Q,k,l,v)};
  13384. g.h.tV=T5(13);g.h.isAtLiveHead=function(T,Q){Q=Q===void 0?!1:Q;var k=this.pA({playerType:T});if(!k)return this.CA.T.isAtLiveHead();T=XU(this,k);k=wk(this,k);return T!==k?T.isAtLiveHead(Kq(this,k.getCurrentTime(),k),!0):T.isAtLiveHead(void 0,Q)};
  13385. g.h.As=function(){var T=this.pA({playerType:void 0});return T?XU(this,T).As():this.CA.T.As()};
  13386. g.h.seekTo=function(T,Q,k,l,v){Q=Q!==!1;if(l=this.pA({playerType:l}))this.appState===2&&rk(this),this.Xj(l)?x7(this)?this.SD.seekTo(T,{seekSource:v},Q,k):this.Gx.seekTo(T,{seekSource:v},Q,k):l.seekTo(T,{aj:!Q,JI:k,I_:"application",seekSource:v})};
  13387. g.h.seekBy=function(T,Q,k,l){this.seekTo(this.getCurrentTime()+T,Q,k,l)};
  13388. g.h.zgm=function(){this.ZV.Pk("SEEK_COMPLETE")};
  13389. g.h.Zcd=function(){this.ZV.tj("onAbnormalityDetected")};
  13390. g.h.TnO=function(T){this.ZV.tj("onSnackbarMessage",T)};
  13391. g.h.qHV=function(T){var Q=this.Pd(),k=Q.getVideoData();if(this.appState===1||this.appState===2)k.startSeconds=T;this.appState===2?g.J(Q.getPlayerState(),512)||rk(this):this.ZV.Pk("SEEK_TO",T)};
  13392. g.h.A3q=function(){this.ZV.publish("airplayactivechange")};
  13393. g.h.jgB=function(){this.ZV.publish("airplayavailabilitychange")};
  13394. g.h.showAirplayPicker=function(){this.Pd().YU()};
  13395. g.h.K16=function(){this.ZV.publish("beginseeking")};
  13396. g.h.Pg9=function(){this.ZV.publish("endseeking")};
  13397. g.h.getStoryboardFormat=function(T){return(T=this.pA({playerType:T}))?XU(this,T).getStoryboardFormat():this.CA.T.getStoryboardFormat()};
  13398. g.h.l7=function(T){return(T=this.pA({playerType:T}))?XU(this,T).getVideoData().l7():this.CA.T.l7()};
  13399. g.h.Xj=function(T){T=(T||this.Pd()).getVideoData();if(x7(this))T=T===this.SD.playback.getVideoData();else a:{var Q=this.Gx;if(T===Q.T.getVideoData()&&Q.S.length)T=!0;else{Q=g.B(Q.S);for(var k=Q.next();!k.done;k=Q.next())if(T.lC===k.value.lC){T=!0;break a}T=!1}}return T};
  13400. g.h.XK=function(T,Q,k,l,v,L,q,Y){this.logger.debug(function(){return"Adding video to timeline id="+T.video_id+"\n lengthMs="+l+" enterTimeMs="+v});
  13401. var U="",R=x7(this);this.Pd().T9("appattl",{sstm:this.SD?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:R});R?(k=rbJ(this.SD,T,Q,k,l,v,L,q),U=(k==null?void 0:k.lC)||"",this.V("html5_ssdai_new_decoration_logic")&&this.Lc().JY(Y||"",Q,(k==null?void 0:k.clientPlaybackNonce)||"")):U=ZzJ(this.Gx,T,k,l,v,L);this.logger.debug(function(){return"Video added to timeline id="+T.video_id+" timelinePlaybackId="+U});
  13402. return U};
  13403. g.h.vU=function(T,Q,k,l,v,L,q){if(x7(this)){var Y,U=(Y=this.SD)==null?void 0:rbJ(Y,T,Q,k,l,v,L,q);this.logger.debug(function(){return"Remaining video added to timeline id="+T.video_id+" timelinePlaybackId="+((U==null?void 0:U.lC)||"")})}};
  13404. g.h.eM=function(T){this.V("html5_ssdai_new_decoration_logic")&&this.Lc().JY(T,"","");var Q;(Q=this.SD)==null||Q.eM(T)};
  13405. g.h.Fc=function(T,Q){T=T===void 0?-1:T;Q=Q===void 0?Infinity:Q;x7(this)||BeX(this.Gx,T,Q)};
  13406. g.h.AA=function(T,Q,k){if(x7(this)){var l=this.SD,v=l.T.pA({lC:T});v?(k===void 0&&(k=v.X_),tbT(l,v,Q,k)):l.O4("Invalid_timelinePlaybackId_"+T+"_specified")}else{l=this.Gx;v=null;for(var L=g.B(l.S),q=L.next();!q.done;q=L.next())if(q=q.value,q.lC===T){v=q;break}v?(k===void 0&&(k=v.X_),C9y(l,v,Q,k)):Rg(l,"InvalidTimelinePlaybackId timelinePlaybackId="+T)}};
  13407. g.h.enqueueVideoByPlayerVars=function(T,Q,k,l){k=k===void 0?Infinity:k;l=l===void 0?"":l;this.Xj();T=new g.mR(this.Hd,T);l&&(T.lC=l);UGI(this,T,Q,k)};
  13408. g.h.queueNextVideo=function(T,Q,k,l,v){k=k===void 0?NaN:k;T=this.preloadVideoByPlayerVars(T,Q===void 0?1:Q,k,l===void 0?"":l,v===void 0?"":v);Q=this.Pd();T&&(this.V("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&Q.getVideoData().C&&(k=this.uM,l=this.Zq.N,k.Y!==T&&(k.S=Q,k.Y=T,k.L=1,k.T=T.getVideoData(),k.N=l,k.T.isLoaded()?k.B():k.T.subscribe("dataloaded",k.B,k))):(k=Wt6(Q,T,this.Zq.N),k!=null?(Q.T9("sgap",k),Q.getVideoData().C&&Q.pX(!1)):(T=T.getVideoData(),Q=this.uM,Q.T!==
  13409. T&&(Q.T=T,Q.L=1,T.isLoaded()?Q.C():Q.T.subscribe("dataloaded",Q.C,Q)))))};
  13410. g.h.wL=function(T,Q,k,l){var v=this;k=k===void 0?0:k;l=l===void 0?0:l;XU(this,this.Pd()).gK();jJT(this.Zq,T,Q,k,l).then(function(){v.ZV.UM("onQueuedVideoLoaded")},function(){})};
  13411. g.h.jZ=function(){return this.Zq.jZ()};
  13412. g.h.Mw=function(T){var Q=this.Zq.T;return Q?Q.Lf(T):!1};
  13413. g.h.clearQueue=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;this.logger.debug("Clearing queue");this.Zq.clearQueue(T,Q)};
  13414. g.h.loadVideoByPlayerVars=function(T,Q,k,l,v,L){Q=Q===void 0?1:Q;var q=this.Lc();if(Q===2&&this.mF().enableServerStitchedDai&&q&&!q.ME())return q.T9("lvonss",{vid:(T==null?void 0:T.videoId)||"",ptype:Q}),!1;var Y=!1;q=new g.mR(this.Hd,T);q.Ct=L;g.XT(this.Hd)&&!q.dO&&XB(this.Rg);var U;L=this.Rg;var R=(U=q.z9)!=null?U:"";L.timerName=R;this.Rg.Uh("pl_i");this.V("web_player_early_cpn")&&q.clientPlaybackNonce&&this.Rg.infoGel({clientPlaybackNonce:q.clientPlaybackNonce});ZQ5(q).supportsVp9Encoding===!1&&
  13415. this.Pd().T9("noVp9enc",{});if(this.G().supportsGaplessShorts()){U=oIy(this.Zq,q,Q);if(U==null){zt(this,-1);var Z;((Z=this.Zq.T)==null?0:Z.getVideoData().isAd())||P5(this);T=this.Zq;T.app.G().V("html5_gapless_new_slr")?nq(T.app,"gaplessshortslooprange"):T.app.setLoopRange(null);T.app.getVideoData().zB=!0;var f;(f=T.T)==null||f.tU();var G;(G=T.T)==null||G.M6();k={I_:"gapless_to_next_video",seekSource:60,gW:T.N.T};l=g.jj(T.app.G().experiments,"html5_gapless_seek_offset");v=lPI(T);if(T.N.T){var m;q=
  13416. ((m=T.L)==null?void 0:JE(m))||{};m=q.BR;q=q.RO;q!=null&&m!=null&&(v=q-m+.001)}var I;(I=T.app.Pd())==null||I.seekTo(v+l,k);if(!T.app.getPlayerStateObject(Q).isPlaying()){var z;(z=T.app.Pd())==null||z.playVideo(!0)}var w;(w=T.app.Pd())==null||w.d9();T.C();return!0}I=this.V("html5_shorts_gapless_preload_fallback");z=this.Zq.T;I&&z&&!z.wd()&&(w=z.getVideoData(),this.CA.N.set(H5(Q,w),z,3600));this.Zq.clearQueue(I);this.Pd().T9("sgap",{f:U})}if(v){for(;q.OU.length&&q.OU[0].isExpired();)q.OU.shift();I=q.OU.length-
  13417. 1;Y=I>0&&v.S(q.OU[I])&&v.S(q.OU[I-1]);q.OU.push(v)}k||(T&&AnC(T)?(h9(this.Hd)&&!this.PG&&(T.fetch=0),An(this,T)):this.playlist&&An(this,null),T&&(this.PG=jG(!1,T.external_list)));this.ZV.publish("loadvideo");I=this.Ln(q,Q,l);Y&&this.XG("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+q.OU.join()).replace(/[;:,]/g,"_"));return I};
  13418. g.h.preloadVideoByPlayerVars=function(T,Q,k,l,v){Q=Q===void 0?1:Q;k=k===void 0?NaN:k;l=l===void 0?"":l;v=v===void 0?"":v;var L=ZKT(Q,T,v),q=this.CA.N.get(L)||null;if(q)return this.logger.debug(function(){return"already preloaded "+L}),this.V("html5_return_playback_if_already_preloaded")?q:null;
  13419. T=new g.mR(this.Hd,T);v&&(T.lC=v);return RkT(this,T,Q,k,l)};
  13420. g.h.setMinimized=function(T){this.visibility.setMinimized(T);(T=oFT(this.TH))&&(this.isMinimized()?T.load():T.unload());this.ZV.publish("minimized")};
  13421. g.h.setInline=function(T){this.visibility.setInline(T)};
  13422. g.h.setInlinePreview=function(T){this.visibility.setInline(T)};
  13423. g.h.DN=function(T){GM5(this,T)||this.visibility.DN(T)};
  13424. g.h.setSqueezeback=function(T){this.visibility.setSqueezeback(T)};
  13425. g.h.t8=function(){var T,Q=(T=this.mediaElement)==null?void 0:T.xB();Q&&(this.Hd.u$&&ar(rq(function(){return document.exitFullscreen()}),function(){}),ar(rq(function(){return I1(Q)}),function(){}))};
  13426. g.h.tVH=function(){this.mediaElement.xB();this.mediaElement.xB().webkitPresentationMode==="picture-in-picture"?this.DN(!0):this.DN(!1)};
  13427. g.h.togglePictureInPicture=function(){this.Pd().togglePictureInPicture()};
  13428. g.h.Ln=function(T,Q,k){Q=Q===void 0?1:Q;this.logger.debug(function(){return"start load video, id "+T.videoId+", type "+Q});
  13429. bU("_start",this.Rg.timerName)||g.E4(sH)(void 0,this.Rg.timerName);var l=!1,v=voC(this,Q,T,!1);v?(l=!0,T.dispose()):(v=Cq(this,Q,T,!0,k),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&v.dZ()&&v.I3(),this.uw.stop(),Q===1&&Q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Q),this.l$(v));v===this.Lc()&&(this.Hd.b7=T.oauthToken);if(!v.dZ())return!1;if(v===this.Lc())return this.pU(1),k=rk(this),l&&this.V("html5_player_preload_ad_fix")&&v.getPlayerType()===1&&
  13430. v.qW()&&this.Kp("dataloaded",v,v.getVideoData()),k;v.Pw();return!0};
  13431. g.h.cueVideoByPlayerVars=function(T,Q){var k=this;Q=Q===void 0?1:Q;var l=this.Lc();if(this.mF().enableServerStitchedDai&&l&&!l.ME()&&T&&Object.keys(T).length>0)l.T9("qvonss",{vid:(T==null?void 0:T.videoId)||"",ptype:Q});else if(T&&AnC(T))if(this.oA=!0,An(this,T),(T=g.wN(this.playlist))&&T.Hk())O0(this,T,Q);else this.playlist.onReady(function(){bG(k)});
  13432. else{Q||(Q=this.getPresentingPlayerType());Q===1&&this.Nd();l=new g.mR(this.Hd,T);var v=g.Qk(this.Hd)&&!this.Hd.qO&&Q===1&&!l.isAd()&&!l.pG;this.ZV.publish("cuevideo");v?(this.Pd().getVideoData().loading=!0,n7X(l,T?T:{}).then(function(L){O0(k,L,Q)}),l.dispose()):O0(this,l,Q)}};
  13433. g.h.mG=function(T,Q,k,l,v,L,q){if(!T&&!k)throw Error("Playback source is invalid");if(kL(this.Hd)||g.ZX(this.Hd))return Q=Q||{},Q.lact=Bd(),Q.vis=this.ZV.getVisibilityState(),this.ZV.tj("onPlayVideo",{videoId:T,watchEndpoint:L,sessionData:Q,listId:k}),!1;ddX(this.Rg);this.Rg.reset();T={video_id:T};l&&(T.autoplay="1");l&&(T.autonav="1");L&&(T.player_params=L.playerParams);q&&(T.oauth_token=q);k?(T.list=k,this.loadPlaylist(T)):this.loadVideoByPlayerVars(T,1);return!0};
  13434. g.h.cuePlaylist=function(T,Q,k,l){this.oA=!0;mGT(this,T,Q,k,l)};
  13435. g.h.loadPlaylist=function(T,Q,k,l){this.oA=!1;mGT(this,T,Q,k,l)};
  13436. g.h.FS=function(){return this.ZV.isMutedByMutedAutoplay()?!1:this.CA.GP?!0:!(!this.playlist||!this.playlist.G0())};
  13437. g.h.wS=T5(5);
  13438. g.h.nextVideo=function(T,Q){var k=g.zV(this.Lc().getVideoData());g.QS(this.ZV)&&k?this.mG(k.videoId,Q?k.y5:k.sessionData,k.playlistId,Q,void 0,k.J8||void 0):this.PG?this.ZV.UM("onPlaylistNext"):this.getPresentingPlayerType()===3?e$(this.TH).nextVideo():!this.playlist||h9(this.Hd)&&!this.ZV.isFullscreen()||(this.playlist.G0(T)&&cnb(this.playlist,bqf(this.playlist)),this.playlist.loaded?(T=Q&&this.Hd.V("html5_player_autonav_logging"),Q&&this.ZV.publish("playlistautonextvideo"),this.Ln(g.wN(this.playlist,void 0,
  13439. Q,T),1)):this.oA=!1)};
  13440. g.h.previousVideo=function(T){this.PG?this.ZV.UM("onPlaylistPrevious"):this.getPresentingPlayerType()===3?e$(this.TH).Bi():!this.playlist||h9(this.Hd)&&!this.ZV.isFullscreen()||(this.playlist.E_(T)&&cnb(this.playlist,rnt(this.playlist)),this.playlist.loaded?this.Ln(g.wN(this.playlist),1):this.oA=!1)};
  13441. g.h.playVideoAt=function(T){this.PG?this.ZV.UM("onPlaylistIndex",T):this.playlist&&(this.playlist.loaded?this.Ln(g.wN(this.playlist,T),1):this.oA=!1,cnb(this.playlist,T))};
  13442. g.h.getPlaylist=function(){return this.playlist};
  13443. g.h.wH=T5(19);g.h.IU=function(T){this.Bw=g.bl(this.Bw,function(L){return L.id!==T});
  13444. for(var Q=this.Lc(),k=Q.TP(),l=0;l<k.length;l++){var v=k[l];if(v.getId()===T)return Q.removeCueRange(v),pq(this,"cuerangesremoved",[v]),!0}return!1};
  13445. g.h.V6d=function(T){this.ZV.Pk("onCueRangeEnter",T.getId())};
  13446. g.h.wdV=function(T){this.ZV.Pk("onCueRangeExit",T.getId())};
  13447. g.h.cB=function(T,Q,k){var l=this.pA({playerType:Q});if(l){if(this.V("html5_ssdai_enable_media_end_cue_range")&&this.SD){l.getPlayerType()===2&&xO5(this.SD,this.getCurrentTime())&&(l=this.Lc());for(var v=g.B(T),L=v.next();!L.done;L=v.next())L.value.associatedClipId=this.SD.Tb}l.cB(T,k);Q&&this.getPresentingPlayerType()!==Q||pq(this,"cuerangesadded",T)}};
  13448. g.h.Ec=function(T,Q){var k=this.pA({playerType:Q});k&&(k.Ec(T),Q&&this.getPresentingPlayerType()!==Q||pq(this,"cuerangesremoved",T))};
  13449. g.h.E2=function(T){return this.Pd().E2(T)};
  13450. g.h.C99=function(){function T(){var l=Q.screenLayer||(Q.isMinimized()?3:0),v=g.C9(l);if(v&&v!=="UNDEFINED_CSN"){var L=Q.Hd.V("web_player_attach_player_response_ve"),q=Q.Hd.V("web_playback_associated_ve");l={cpn:Q.getVideoData().clientPlaybackNonce,csn:v};Q.getVideoData().Bd&&(L||q)&&(L=g.ha(Q.getVideoData().Bd),g.iA(v,L),q&&(l.playbackVe=L.getAsJson()));Q.getVideoData().queueInfo&&(l.queueInfo=Q.getVideoData().queueInfo);v={};Q.V("web_playback_associated_log_ctt")&&Q.getVideoData().B&&(v.cttAuthInfo=
  13451. {token:Q.getVideoData().B,videoId:Q.getVideoData().videoId});g.LM("playbackAssociated",l,v)}else g.rB(new g.Wy("CSN Missing or undefined during playback association"))}
  13452. var Q=this,k=this.Pd();this.getPresentingPlayerType();w5X(this.Rg,k.getVideoData(),seH(this));Nd(this)&&this.Hd.Y&&vi(this.mF())==="embedded"&&this.ql&&Math.random()<.01&&g.LM("autoplayTriggered",{intentional:this.intentionalPlayback});this.ql=!1;jwC(this.TH);this.V("web_player_defer_ad")&&jey(this);this.ZV.UM("onPlaybackStartExternal");(this.Hd.V("mweb_client_log_screen_associated"),Ze(this.Hd))||T();k={};this.getVideoData().B&&(k.cttAuthInfo={token:this.getVideoData().B,videoId:this.getVideoData().videoId});
  13453. k.sampleRate=20;At("player_att",k);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.Cn(this.Hd)||hS(this.Hd)==="MWEB"?g.Er(g.iu(),function(){c5(Q)}):c5(this);
  13454. this.aU();qbI(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.Qk(this.Hd)&&(k={autoplayBrowserPolicy:zq(),autoplayIntended:XQ(this.getVideoData()),autoplayStatus:gpt(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.LM("embedsAutoplayStatusChanged",k))};
  13455. g.h.pxO=function(){this.ZV.publish("internalAbandon");P5(this)};
  13456. g.h.onApiChange=function(){var T=this.Pd();this.Hd.j?this.ZV.Pk("onApiChange",T.getPlayerType()):this.ZV.Pk("onApiChange")};
  13457. g.h.UYB=function(){var T=this.mediaElement;T={volume:g.ti(Math.floor(T.getVolume()*100),0,100),muted:T.fk()};T.muted||ag(this,!1);this.cG=g.Gs(T);this.ZV.Pk("onVolumeChange",T)};
  13458. g.h.mutedAutoplay=function(T){var Q=this.getVideoData().videoId;isNaN(this.A0)&&(this.A0=this.getVideoData().startSeconds);if((T==null?0:T.videoId)||Q)this.loadVideoByPlayerVars({video_id:(T==null?0:T.videoId)?T==null?void 0:T.videoId:Q,playmuted:!0,start:this.A0,muted_autoplay_duration_mode:T==null?void 0:T.durationMode}),this.ZV.UM("onMutedAutoplayStarts")};
  13459. g.h.onFullscreenChange=function(){var T=CR5(this);this.gA(T?1:0);zkf(this,!!T)};
  13460. g.h.gA=function(T){var Q=!!T,k=!!this.XS()!==Q;this.visibility.gA(T);this.template.gA(Q);this.V("html5_media_fullscreen")&&!Q&&this.mediaElement&&CR5(this)===this.mediaElement.xB()&&this.mediaElement.qz();this.template.resize();k&&this.Rg.tick("fsc");k&&(this.ZV.publish("fullscreentoggled",Q),T=this.mF(),Q={fullscreen:Q,videoId:T.y3||T.videoId,time:this.getCurrentTime()},this.ZV.getPlaylistId()&&(Q.listId=this.ZV.getPlaylistId()),this.ZV.Pk("onFullscreenChange",Q))};
  13461. g.h.m_=function(){return this.visibility.m_()};
  13462. g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
  13463. g.h.XS=function(){return this.visibility.XS()};
  13464. g.h.J6d=function(){var T=this.XS();T!==0&&T!==1||this.gA(CR5(this)?1:0);T=window.screen.width*window.screen.height;var Q=window.outerHeight*window.outerWidth;this.Hd.Wz?(this.XX=Math.max(this.XX,T,Q),T=Q/this.XX<this.Hd.OE,this.visibility.DN(T),this.Hd.xF&&GM5(this,T)):this.mediaElement&&fub(this,Q/T<.33)&&this.mediaElement.qz()};
  13465. g.h.trk=function(T){this.CA.GP||this.ZV.publish("liveviewshift",T)};
  13466. g.h.playVideo=function(T,Q){this.logger.debug(function(){return"play video, player type "+T});
  13467. var k=this.pA({playerType:T});k?this.appState===2?(g.XT(this.Hd)&&XB(this.Rg),rk(this)):g.J(k.getPlayerState(),2)?(Q=36,this.getVideoData().aD()&&(Q=37),this.seekTo(0,void 0,void 0,void 0,Q)):k.playVideo(!1,Q):this.CA.T.playVideo(!1,Q)};
  13468. g.h.pauseVideo=function(T,Q){(T=this.pA({playerType:T}))?T.pauseVideo(Q):this.CA.T.pauseVideo(Q)};
  13469. g.h.stopVideo=function(T){T=T===void 0?!1:T;this.logger.debug(function(){return"stop video"});
  13470. var Q=this.Lc().getVideoData(),k=new g.mR(this.Hd,{video_id:Q.y3||Q.videoId,oauth_token:Q.oauthToken});k.j=g.Gs(Q.j);T&&!this.webPlayerContextConfig.disableStaleness&&(k.dE=!0);this.cancelPlayback(6);O0(this,k,1)};
  13471. g.h.cancelPlayback=function(T,Q){var k=this;this.logger.debug(function(){return"start cancel playback, type "+Q});
  13472. var l=this.pA({playerType:Q});l?Q===2&&l.getPlayerType()===1&&fX(this.mF())?l.T9("canclpb",{r:"no_adpb_ssdai"}):(this.Hd.J3()&&l.T9("canclpb",{r:T}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+k.appState}):(l===this.Pd()&&(this.logger.debug("cancel playback, destroy modules"),Kk(this.TH,T)),Q===1&&(l.stopVideo(),P5(this)),l.T0(void 0,T!==6),pq(this,"cuerangesremoved",l.TP()),l.EZ(),this.Zq&&l.isGapless()&&(l.u7(!0),l.setMediaElement(this.mediaElement)))):
  13473. this.logger.debug("cancel playback end, no player to cancel")};
  13474. g.h.sendVideoStatsEngageEvent=function(T,Q,k){(Q=this.pA({playerType:Q}))&&yQH(this.Hd,T)?Q.sendVideoStatsEngageEvent(T,k):k&&k()};
  13475. g.h.Cd=function(T){var Q=this.pA({playerType:void 0});return Q&&yQH(this.Hd,T)?Q.Cd(T):null};
  13476. g.h.updatePlaylist=function(){!h9(this.Hd)&&g.Qk(this.Hd)&&luH(this);this.ZV.UM("onPlaylistUpdate")};
  13477. g.h.setSizeStyle=function(T,Q){this.bF=T;this.V("web_log_theater_mode_visibility")?this.bz(Q):this.qJ=Q;this.ZV.publish("sizestylechange",T,Q);this.template.resize()};
  13478. g.h.bz=function(T){this.visibility.bz(T)};
  13479. g.h.zs=function(){return this.V("web_log_theater_mode_visibility")?this.visibility.zs():this.qJ};
  13480. g.h.isMinimized=function(){return this.visibility.isMinimized()};
  13481. g.h.isInline=function(){return this.visibility.isInline()};
  13482. g.h.x$=function(){return this.visibility.x$()};
  13483. g.h.Uj=function(){return this.visibility.Uj()};
  13484. g.h.CM=function(){return this.visibility.CM()};
  13485. g.h.yj=function(){return this.bF};
  13486. g.h.getAdState=function(){if(this.getPresentingPlayerType()===3)return e$(this.TH).getAdState();if(!this.Xj()){var T=xY(this.Bx());if(T)return T.getAdState()}return-1};
  13487. g.h.r6K=function(T){var Q=this.template.getVideoContentRect();O$(this.bj,Q)||(this.bj=Q,this.Pd().zE(),(Q=this.Lc())&&Q===this.Pd()&&Q.zE(),this.XS()===1&&this.cY&&zkf(this,!0));Q=this.Hx().kU!==this.YI;this.YI=this.Hx().kU;this.h0&&g.eN(this.h0,T)&&!Q||(this.ZV.publish("appresize",T),this.h0=T)};
  13488. g.h.Yo=function(){return this.ZV.Yo()};
  13489. g.h.gc_=function(){this.getPresentingPlayerType()===2&&this.Gx.isManifestless()?S1u(this.Gx):(this.SD&&(OUg(this.SD),P5(this)),XF5(this,"signature"))};
  13490. g.h.HA_=function(T){T&&XF5(this,"reloadPlayerEvent",void 0,T)};
  13491. g.h.q6=function(T){this.u7(T);B5(this)};
  13492. g.h.vBm=function(T){if(T.errorCode==="manifest.net.badstatus"){var Q=this.Hd.experiments.Wd("html5_use_network_error_code_enums")?401:"401";T.details.rc===Q&&this.ZV.tj("onPlayerRequestAuthFailed")}};
  13493. g.h.nBk=function(T){this.ZV.publish("heartbeatparams",T)};
  13494. g.h.Pi=function(T){this.ZV.tj("onAutonavChangeRequest",T!==1)};
  13495. g.h.T_=function(){return this.mediaElement};
  13496. g.h.setBlackout=function(T){if(this.Hd.f_!==T){this.Hd.f_=T;var Q=this.Pd();Q.wZ();this.Hd.e6&&dG5(this);Q.qm(T)}};
  13497. g.h.eek=function(){var T=this.Pd(),Q=!this.ZV.zS();T.jS(Q)};
  13498. g.h.Oc9=function(){this.ZV.UM("onLoadedMetadata")};
  13499. g.h.GgH=function(){this.ZV.UM("onDrmOutputRestricted")};
  13500. g.h.KM=function(){this.intentionalPlayback=!0};
  13501. g.h.EK=function(){this.TH.dispose();this.xJ.dispose();this.Gx.dispose();this.SD&&this.SD.dispose();this.Lc().dispose();this.u7();this.CA.dispose();g.vU(this.playlist);g.x.prototype.EK.call(this)};
  13502. g.h.V=function(T){return this.Hd.V(T)};
  13503. g.h.setScreenLayer=function(T){this.screenLayer=T};
  13504. g.h.getInternalApi=function(){return this.ZV.getInternalApi()};
  13505. g.h.createSubtitlesModuleIfNeeded=function(){return this.TH.createSubtitlesModuleIfNeeded()};
  13506. g.h.isOrchestrationLeader=function(){var T=Ha(this.TH);return T?T.isOrchestrationLeader():!1};
  13507. g.h.getVideoUrl=function(T,Q,k,l,v){if(this.VR&&this.VR.postId)return T=this.Hd.getVideoUrl(T),T=wy(T,"v"),T.replace("/watch","/clip/"+this.VR.postId);var L=this.ZV.isEmbedsShortsMode()||this.Hd.i9==="shortspage",q=g.S$(this.getVideoData());return this.Hd.getVideoUrl(T,Q,k,l,v,L,q)};
  13508. g.h.pS=function(){return this.Zq.pS()};
  13509. g.h.Ng=function(T,Q,k){this.ZV.publish("spsumpreject",T,Q,k)};
  13510. g.h.RQ=function(){try{for(var T=g.B(Object.values(this.CA.L)),Q=T.next();!Q.done;Q=T.next()){var k=Q.value;k.wd()||k.RQ()}if(this.V("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var l=g.B(aQX(this.CA.N)),v=l.next();!v.done;v=l.next()){var L=v.value;L.wd()||L.RQ()}this.Lc().RQ()}catch(q){g.rB(q)}};
  13511. g.h.oF=function(){if(this.SD){var T=(0,g.XY)();return this.SD.oF(T)}return!1};
  13512. g.h.jG=function(T){var Q=this.Lc();T&&(Q=ARu(this,T));if(Q){var k=Q.getVideoData();T=new Map;k=g.B(k.sabrContextUpdates);for(var l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;var L=void 0;v.scope===4&&((L=Q)==null?0:L.wm(l))&&T.set(l,v)}return T}this.Lc().T9("scuget",{ncpf:"1",ccpn:T})};
  13513. g.h.y7=function(T,Q){this.l1.push({key:T,value:Q})};
  13514. var Ap={};var gy1={qk:[{zR:/Unable to load player module/,weight:20},{zR:/Failed to fetch/,weight:500},{zR:/XHR API fetch failed/,weight:10},{zR:/JSON parsing failed after XHR fetch/,weight:10},{zR:/Retrying OnePlatform request/,weight:10},{zR:/CSN Missing or undefined during playback association/,weight:100},{zR:/Non-recoverable error. Do not retry./,weight:0},{zR:/Internal Error. Retry with an exponential backoff./,weight:0},{zR:/API disabled by application./,weight:0}],Uk:[{callback:bKT,weight:500}]};var pF5=/[&\?]action_proxy=1/,OK5=/[&\?]token=([\w-]*)/,Wgb=/[&\?]video_id=([\w-]*)/,$GH=/[&\?]index=([\d-]*)/,JRH=/[&\?]m_pos_ms=([\d-]*)/,Fg5=/[&\?]vvt=([\w-]*)/,auf="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),ek5="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Kgy={android:"ANDROID",
  13515. "android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},xGC={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},HK5={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};Jn.prototype.bA=function(T){this.player.eZ().tick(T)};
  13516. Jn.prototype.fetch=function(T,Q){var k=this;if(!T.match(/\[BISCOTTI_ID\]/g))return this.S(T,Q);var l=this.T===1;l&&this.bA("a_bid_s");var v=cR5();if(v!==null)return l&&this.bA("a_bid_f"),this.S(T,Q,v);v=DGX();l&&g.nL(v,function(){k.bA("a_bid_f")});
  13517. return v.then(function(L){return k.S(T,Q,L)})};
  13518. Jn.prototype.S=function(T,Q,k){var l=this,v=Q===void 0?{}:Q;Q=v.Bm;var L=v.qV;var q=v.cueProcessedMs;k=k===void 0?"":k;var Y=this.player.getVideoData(1);v=this.player.G().Sf;var U=0;if(q&&L&&!Q){var R=L.end-L.start;R>0&&(U=Math.floor(R/1E3))}U=Q?Q.bf:U;var Z={AD_BLOCK:this.T++,AD_BREAK_LENGTH:U,AUTONAV_STATE:$7(this.player.G()),CA_TYPE:"image",CPN:Y.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.As()*1E3,LACT:Bd(),LIVE_INDEX:Q?this.L++:1,LIVE_TARGETING_CONTEXT:Q&&Q.context?Q.context:"",MIDROLL_POS:L?
  13519. Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Hx().J9().height,P_W:this.player.Hx().J9().width,YT_REMOTE:v?v.join(","):""},f=M2(gV);Object.keys(f).forEach(function(m){f[m]!=null&&(Z[m.toUpperCase()]=f[m].toString())});
  13520. k!==""&&(Z.BISCOTTI_ID=k);k={};q2(T)&&(k.sts="20297",(Q=this.player.G().forcedExperiments)&&(k.forced_experiments=Q));var G=oU(g.Ae(T,Z),k);return G.split("?").length!==2?aS(Error("Invalid AdBreakInfo URL")):g.rj(this.player.G(),Y==null?void 0:Y.oauthToken).then(function(m){if(m&&Lh()){var I=lf();oR(I,m)}m=l.player.HG(I);I=EoJ(l,G,Z,Y.isMdxPlayback,q);return g.uU(m,I,"/youtubei/v1/player/ad_break").then(function(z){return z})})};
  13521. Jn.prototype.reset=function(){this.L=this.T=1};g.S(yRH,Jn);
  13522. yRH.prototype.S=function(T,Q,k){Q=Q===void 0?{}:Q;var l=Q.Bm;var v=Q.qV;var L=Q.cueProcessedMs;k=k===void 0?"":k;Q=this.T;this.T++;var q=this.player.G().V("h5_disable_macro_substitution_in_get_ad_break")?T:iKf(this,T,{Bm:l,qV:v,cueProcessedMs:L},k,Q);if(q.split("?").length!==2)return Math.random()<.1&&g.rB(Error("Invalid AdBreakInfo URL")),aS(Error("Invalid AdBreakInfo URL"));var Y=this.player.getVideoData(1).isMdxPlayback,U=k;k=OK5.exec(q);k=k!=null&&k.length>=2?k[1]:"";T=pF5.test(q);var R=Wgb.exec(q);
  13523. R=R!=null&&R.length>=2?R[1]:"";var Z=$GH.exec(q);Z=Z!=null&&Z.length>=2&&!Number.isNaN(Number(Z[1]))?Number(Z[1]):1;var f=JRH.exec(q);f=f!=null&&f.length>=2?f[1]:"0";var G=U8(this.player.G().fz),m=g.Ee(this.player.getVideoData(1).Bd,!0);no6(this,m,q,U===""?"":U,this.player.G(),this.player.getVideoData(1));U={splay:!1,lactMilliseconds:String(Bd()),playerHeightPixels:Math.trunc(this.player.Hx().J9().height),playerWidthPixels:Math.trunc(this.player.Hx().J9().width),vis:Math.trunc(this.player.getVisibilityState()),
  13524. signatureTimestamp:20297,autonavState:$7(this.player.G())};if(Y){Y={};var I=this.player.G().Sf;PR5(Y,I?I.join(","):"")&&(U.mdxContext=Y)}if(Y=ek5.includes(G)?void 0:g.uC("PREF")){I=Y.split(RegExp("[:&]"));for(var z=0,w=I.length;z<w;z++){var r=I[z].split("=");if((r[0].toUpperCase()==="SML"||r[0].toUpperCase()==="GSML")&&r.length>1&&r[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}U.autoCaptionsDefaultOn=tR5(Y)}q=Fg5.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&R&&(m.user.credentialTransferTokens=
  13525. [{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:U};U=this.player.getVideoData(1).getGetAdBreakContext();Y=this.player.getVideoData(1).clientPlaybackNonce;I=L!==void 0?Math.round(L).toString():void 0;z=(l==null?0:l.context)?l.context:void 0;w=0;L&&v&&!l&&(v=v.end-v.start,v>0&&(w=Math.floor(v/1E3)));l=(l=Math.trunc((l?l.bf:w)*1E3))?String(l):void 0;v=this.player.As()*1E3;v=Number.isNaN(v)?0:Math.trunc(v);Q={adBlock:Q,params:k,breakIndex:Z,breakPositionMs:f,clientPlaybackNonce:Y,topLevelDomain:G,
  13526. isProxyAdTagRequest:T,context:m,overridePlaybackContext:q,cueProcessedMs:I,videoId:R?R:void 0,liveTargetingParams:z,breakLengthMs:l,driftFromHeadMs:v?String(v):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:U?U:void 0};return VRC(this,Q)};var Mke={UB9:"replaceUrlMacros",P59:"onAboutThisAdPopupClosed",Iqq:"executeCommand"};TPf.prototype.CS=function(){return"adPingingEndpoint"};
  13527. TPf.prototype.Gm=function(T,Q,k){KOT(this.Vq.get(),T,Q,k)};Qk5.prototype.CS=function(){return"changeEngagementPanelVisibilityAction"};
  13528. Qk5.prototype.Gm=function(T){this.U.tj("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:T})};jkg.prototype.CS=function(){return"loggingUrls"};
  13529. jkg.prototype.Gm=function(T,Q,k){T=g.B(T);for(var l=T.next();!l.done;l=T.next())l=l.value,KOT(this.Vq.get(),l.baseUrl,Q,k,l.attributionSrcMode)};g.S(l$f,g.x);g.S(FU,g.x);g.h=FU.prototype;g.h.addListener=function(T){this.listeners.push(T)};
  13530. g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})};
  13531. g.h.yw=function(T,Q,k,l,v,L,q,Y){if(T==="")MH("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(T!==this.T||k){this.T=T;this.UK.get().yw(T,Q,k,l,v,L,q,Y);this.l9.get().yw(T,Q,k,l,v,L,q,Y);var U;(U=this.DC)==null||U.get().yw(T,Q,k,l,v,L,q,Y);this.S.yw(T,Q,k,l,v,L,q,Y);U=g.B(this.listeners);for(var R=U.next();!R.done;R=U.next())R.value.yw(T,Q,k,l,v,L,q,Y)}else MH("Duplicate content video loaded signal")};
  13532. g.h.hek=function(){this.T&&this.v4(this.T)};
  13533. g.h.v4=function(T){this.T=void 0;for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.v4(T)};E0.prototype.nK=function(T,Q,k,l,v){ozu(this);this.N=!Q&&k===0;var L=this.U.getVideoData(1),q=this.U.getVideoData(2);L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.T=L.B);q&&(this.adCpn=q.clientPlaybackNonce,this.adVideoId=q.videoId,this.adFormat=q.adFormat);this.Y=T;l<=0?(ozu(this),this.N=!Q&&k===0):(this.actionType=this.N?Q?"unknown_type":"video_to_ad":Q?"ad_to_video":"ad_to_ad",this.videoStreamType=v?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
  13534. (this.L=!0,bU("_start",this.actionType)&&qKt(this)))};
  13535. E0.prototype.reset=function(){return new E0(this.U)};g.S(yQ,g.x);yQ.prototype.addCueRange=function(T,Q,k,l,v,L,q,Y,U){L=L===void 0?3:L;q=q===void 0?1:q;this.T.has(T)?MH("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:T}):(T=new gzu(T,Q,k,l,L,Y,U),this.T.set(T.id,{qV:T,listener:v,Lv:q}),this.U.fY([T],q))};
  13536. yQ.prototype.removeCueRange=function(T){var Q=this.T.get(T);Q?(this.U.oM([Q.qV],Q.Lv),this.T.delete(Q.qV.id)):MH("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:T})};
  13537. yQ.prototype.onCueRangeEnter=function(T){if(this.T.has(T.id))this.T.get(T.id).listener.onCueRangeEnter(T.id)};
  13538. yQ.prototype.onCueRangeExit=function(T){if(this.T.has(T.id))this.T.get(T.id).listener.onCueRangeExit(T.id)};
  13539. g.S(gzu,g.$d);iG.prototype.addPlayerResponseForAssociation=function(T){this.U.addPlayerResponseForAssociation(T)};VQ.prototype.xA=function(T){this.U.xA(T)};
  13540. VQ.prototype.bu=function(T){var Q=g.HT.apply(1,arguments);T==="onAdStart"||T==="onAdEnd"?this.U.Pk.apply(this.U,[T].concat(g.ZH(Q))):this.U.tj.apply(this.U,[T].concat(g.ZH(Q)))};Tw.prototype.Zg=function(T){return T&&Qs(this)};var SKI=null;g.S(skt,g.ox);skt.prototype.pm=function(T){return this.T.hasOwnProperty(T)?this.T[T].pm():{}};
  13541. g.Tv("ytads.bulleit.getVideoMetadata",function(T){return jD().pm(T)});
  13542. g.Tv("ytads.bulleit.triggerExternalActivityEvent",function(T,Q,k){var l=jD();k=hst(k);k!==null&&l.publish(k,{queryId:T,viewabilityString:Q})});g.h=kF.prototype;g.h.Fw=function(T,Q){if(!this.T.has(T))return{};if(Q==="seek"){Q=!1;Q=Q===void 0?!1:Q;var k=SC(Fn).EA(T,{});k?WU(k):Q&&(T=SC(Fn).CV(null,uL(),!1,T),T.vg=3,zvb([T]));return{}}Q=BPX(Q);if(Q===null)return{};var l=this.U.I9();if(!l)return{};var v=this.U.getPresentingPlayerType(!0);if((k=this.U.getVideoData(v))==null||!k.isAd())return{};k={opt_adElement:l,opt_fullscreen:this.UK.get().isFullscreen()};return zH5(Q,T,k)};
  13543. g.h.mU=function(T,Q,k,l,v){this.T.has(T)&&(l<=0||v<=0||SC(Fn).mU(T,Q,k,l,v))};
  13544. g.h.GM=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.GM()};
  13545. g.h.KH=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.KH()};
  13546. g.h.PV=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.PV()};
  13547. g.h.bq=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.bq()};
  13548. g.h.IA=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.IA()};cDt.prototype.send=function(T,Q,k,l){try{DkT(this,T,Q,k,l===void 0?!1:l)}catch(v){}};g.S(a$J,cDt);u75.prototype.send=function(T,Q,k,l){var v=!1;try{if(l==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||l==="ATTRIBUTION_SRC_MODE_XHR_OPTION")v=!0,T=MmI(T);l=v;var L=g.UD(T);if(L[1]==="https")var q=T;else L[1]="https",q=Y4("https",L[2],L[3],L[4],L[5],L[6],L[7]);var Y=gfT(q);L=[];var U=yd5(q)&&this.Qq.get().U.G().experiments.Wd("add_auth_headers_to_remarketing_google_dot_com_ping");if(q2(q)||U)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}),L.push({headerType:"EOM_VISITOR_ID"}),
  13549. L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:q,scrubReferrer:Y,headers:L},Q,k,l)}catch(R){}};qC.prototype.Cd=function(){return this.U.Cd(1)};g.S(gY,g.x);g.h=gY.prototype;g.h.Zs=function(){return this.U.getVideoData(1).clientPlaybackNonce};
  13550. g.h.addListener=function(T){this.listeners.push(T)};
  13551. g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})};
  13552. g.h.yw=function(){this.t$.clear();this.YS=null;this.fU.get().clear()};
  13553. g.h.v4=function(){};
  13554. g.h.YM9=function(T,Q,k,l,v){Q.videoId==="nPpU29QrbiU"&&this.U.T9("ads_ssm_vdc_s",{pt:k,dvt:T});tC(this.Qq.get())&&T!=="dataloaded"||WOu(this,Q,k);if(Qs(this.Qq.get())&&T==="newdata"&&v!==void 0){T=this.Zs();var L=Q.clientPlaybackNonce,q={};gC(this,"rte",(q.ec=L,q.xc=l==null?void 0:l.clientPlaybackNonce,q.tr=v,q.pt=k,q.ia=L!==T,q.ctp=q$(L),q));Q=Q.clientPlaybackNonce;l=l==null?void 0:l.clientPlaybackNonce;v=$k5(v);if(v!==1)if(l!==void 0)for(k=g.B(this.listeners),T=k.next();!T.done;T=k.next())T.value.tL(l,
  13555. Q,v);else MH("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Q,transitionReason:String(v)});v=g.B(this.listeners);for(l=v.next();!l.done;l=v.next())l.value.un(Q)}};
  13556. g.h.vce=function(T,Q){T!==void 0&&(this.YS=T,Q===void 0?MH("Expected ad video start time on SS video changed"):this.t$.set(T,Q));var k=this.U.getPresentingPlayerType(!0),l=this.U.getVideoData(k),v;T===void 0?v=null:v=this.fU.get().T.get(T)||null;this.U.getVideoData(1).T9("ads_ssvc",{pt:k,cpn:l==null?void 0:l.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:Q,pid:T,slid:v==null?void 0:v.layoutId});l?WOu(this,l,k):MH("Expected video data on server stitched video changed",
  13557. void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:T})};
  13558. g.h.pK=function(T,Q){var k=T.author,l=T.clientPlaybackNonce,v=T.isListed,L=T.lC,q=T.title,Y=T.w8,U=T.SO,R=T.isMdxPlayback,Z=T.Yz,f=T.mdxEnvironment,G=T.isAutonav,m=T.nU,I=T.dO,z=T.LX,w=T.videoId||"",r=T.profilePicture||"",A=T.hH||"",D=T.aD()||!1,K=T.lf()||!1;T=T.jg||void 0;L=this.fU.get().T.get(L)||{layoutId:null,slotId:null};var O=this.U.getVideoData(1),E=O.Cc();O=O.getPlayerResponse();Q=1E3*this.U.getDuration(Q);var e=1E3*this.U.getDuration(1),vT,f5,qJ=(O==null?void 0:(vT=O.playerConfig)==null?
  13559. void 0:(f5=vT.daiConfig)==null?void 0:f5.enableDai)||!1,g6,QC;vT=(O==null?void 0:(g6=O.playerConfig)==null?void 0:(QC=g6.daiConfig)==null?void 0:QC.enablePreroll)||!1;return Object.assign({},L,{videoId:w,author:k,clientPlaybackNonce:l,s9:Q,Y$:e,daiEnabled:qJ,VB:vT,isListed:v,Cc:E,profilePicture:r,title:q,hH:A,w8:Y,SO:U,jg:T,isMdxPlayback:R,Yz:Z,mdxEnvironment:f,isAutonav:G,nU:m,dO:I,LX:z,aD:D,lf:K})};
  13560. g.h.EK=function(){this.listeners.length=0;this.Vh=null;g.x.prototype.EK.call(this)};g.S(MC,g.x);g.h=MC.prototype;g.h.yw=function(){var T=this;Qs(this.Qq.get())||(this.T=u5(function(){T.U.wd()||T.U.Ju("ad",1)}))};
  13561. g.h.v4=function(){};
  13562. g.h.addListener=function(T){this.listeners.push(T)};
  13563. g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})};
  13564. g.h.W6=function(){};
  13565. g.h.playVideo=function(){this.U.playVideo()};
  13566. g.h.pauseVideo=function(){this.U.pauseVideo()};
  13567. g.h.resumeVideo=function(T){this.zz(T)&&this.U.playVideo()};
  13568. g.h.zz=function(T){return this.U.getPlayerState(T)===2};
  13569. g.h.getCurrentTimeSec=function(T,Q,k){var l=this.l9.get().YS;if(T===2&&!Q&&l!==null)return Rw(this,l);KF(this.Qq.get(),"html5_ssap_use_cpn_to_get_time")||(k=void 0);return k!==void 0?this.U.getCurrentTime(T,Q,k):this.U.getCurrentTime(T,Q)};
  13570. g.h.getVolume=function(){return this.U.getVolume()};
  13571. g.h.isMuted=function(){return this.U.isMuted()};
  13572. g.h.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)};
  13573. g.h.getPlayerState=function(T){return this.U.getPlayerState(T)};
  13574. g.h.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()};
  13575. g.h.isFullscreen=function(){return this.U.isFullscreen()};
  13576. g.h.isAtLiveHead=function(){return this.U.isAtLiveHead()};
  13577. g.h.uX=function(T){this.U.uX(T)};
  13578. g.h.Xhe=function(){var T=this.U.getPresentingPlayerType(!0),Q=this.getCurrentTimeSec(T,!1);if(T===2){T=g.B(this.listeners);for(var k=T.next();!k.done;k=T.next())k.value.qN(Q)}else if(T===1)for(T=g.B(this.KQ),k=T.next();!k.done;k=T.next())k.value.W6(Q)};
  13579. g.h.aPj=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.DG(T,this.getPresentingPlayerType())};
  13580. g.h.onFullscreenToggled=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.onFullscreenToggled(T)};
  13581. g.h.onVolumeChange=function(){for(var T=g.B(this.listeners),Q=T.next();!Q.done;Q=T.next())Q.value.onVolumeChange()};
  13582. g.h.Gw=function(){for(var T=this.U.isMinimized(),Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.Gw(T)};
  13583. g.h.zk=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.zk(T)};
  13584. g.h.zx=function(){for(var T=this.U.Hx().J9(),Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.UF(T)};
  13585. g.h.Hg=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.Hg(T)};
  13586. g.h.gC=function(){for(var T=g.B(this.listeners),Q=T.next();!Q.done;Q=T.next())Q.value.gC()};g.S(Ez5,g.x);g.S(Gw,g.x);Gw.prototype.EK=function(){this.Tz.wd()||this.Tz.get().removeListener(this);g.x.prototype.EK.call(this)};mw.prototype.fetch=function(T){var Q=T.uI;return this.T.fetch(T.nT,{Bm:T.Bm===void 0?void 0:T.Bm,qV:Q,cueProcessedMs:T.cueProcessedMs===void 0?0:T.cueProcessedMs}).then(function(k){return yD5(k,Q)})};g.S(Iw,g.x);g.h=Iw.prototype;g.h.addListener=function(T){this.listeners.push(T)};
  13587. g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})};
  13588. g.h.mQ=function(T){i4f(this,T,1)};
  13589. g.h.onAdUxClicked=function(T,Q){hY(this,function(k){k.xe(T,Q)})};
  13590. g.h.P6=function(T){hY(this,function(Q){Q.iY(T)})};
  13591. g.h.GD=function(T){hY(this,function(Q){Q.ma(T)})};
  13592. g.h.RHj=function(T){hY(this,function(Q){Q.Yk(T)})};sm.prototype.reduce=function(T){switch(T.event){case "unknown":return}var Q=T.identifier;var k=this.T[Q];k?Q=k:(k={nQ:null,Po:-Infinity},Q=this.T[Q]=k);k=T.startSecs+T.T/1E3;if(!(k<Q.Po))if(Q.Po=k,Q.nQ){if(k<Q.nQ.end){a:{k=Q.nQ;switch(T.event){case "start":case "continue":case "stop":break;default:T=null;break a}T=k.start+T.bf;T=k.end<=T?null:T}if(T!==null)for(Q.nQ.end=T,Q=this.S,g.Fd(Q.L.T,T*1E3),Q=g.B(Q.listeners),k=Q.next();!k.done;k=Q.next())k.value.OO(T)}}else if(T=V95(T,this.L))k=T.hm,Q.nQ=
  13593. T.eh,QI9(this.S,k)};
  13594. sm.prototype.updateTime=function(){};g.S(SD,g.x);g.h=SD.prototype;
  13595. g.h.yw=function(){this.N=new sm(this,Rsy(this.Qq.get()));this.L=new T61;var T=this.U.getVideoData(1);if(!T.enableServerStitchedDai){var Q=this.U.getVideoData(1),k;((k=this.S)==null?void 0:k.clientPlaybackNonce)!==Q.clientPlaybackNonce&&(this.S!=null&&this.S.unsubscribe("cuepointupdated",this.v6,this),Q.subscribe("cuepointupdated",this.v6,this),this.S=Q)}this.DF.length=0;var l;Q=((l=T.T)==null?void 0:wMX(l,0))||[];l=g.B(Q);for(Q=l.next();!Q.done;Q=l.next())Q=Q.value,this.Vi(Q)&&(Og(this.Qq.get())&&
  13596. Cw(this.Vq.get(),"ocvl","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs),MH("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:Q.identifier,cuePointEvent:Q.event,contentCpn:T.clientPlaybackNonce}))};
  13597. g.h.v4=function(){};
  13598. g.h.addListener=function(T){this.listeners.push(T)};
  13599. g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})};
  13600. g.h.Vi=function(T){k5m(this,T);if(f$6(this.Qq.get())&&this.U.getCurrentTime(1)===0&&this.U.getVideoData(1).lf())return!1;this.N.reduce(T);T=this.Y;this.Y=!1;return T};
  13601. g.h.v6=function(T){var Q=this.U.getVideoData(1).isDaiEnabled();if(Q||!g.ZX(this.U.G())){T=g.B(T);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k5m(this,k),Og(this.Qq.get())&&this.U.getCurrentTime(1)===0&&k.event==="start"&&Cw(this.Vq.get(),"ocuz","cpi."+k.identifier+";cpe."+k.event+";cps."+k.startSecs+";cpd."+k.bf),Q)f$6(this.Qq.get())&&this.U.getCurrentTime(1)===0&&this.U.getVideoData(1).lf()||this.N.reduce(k);else if(this.U.getCurrentTime(1)!==0&&k.event==="start")if(this.Qq.get().U.G().experiments.Wd("ignore_overlapping_cue_points_on_endemic_live_html5")&&
  13602. (this.T==null||this.Qq.get().U.G().experiments.Wd("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.T.identifier!==k.identifier?0:k.startSecs+k.bf>=this.T.startSecs&&k.startSecs<=this.T.startSecs+this.T.bf)){var l=void 0;if(Og(this.Qq.get())&&k.identifier!==((l=this.T)==null?void 0:l.identifier)){var v=l=void 0,L=void 0,q=void 0;Cw(this.Vq.get(),"ocud","ccpi."+k.identifier+";ccpe."+k.event+";ccps."+k.startSecs+";\n ccpd."+k.bf+";pcpi."+((l=this.T)==null?void 0:l.identifier)+
  13603. ";pcpe."+((v=this.T)==null?void 0:v.event)+";\n pcps."+((L=this.T)==null?void 0:L.startSecs)+";pcpd."+((q=this.T)==null?void 0:q.bf)+";")}l=void 0;k.identifier!==((l=this.T)==null?void 0:l.identifier)&&MH("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=k,QI9(this,k)}};
  13604. g.h.EK=function(){this.S!=null&&(this.S.unsubscribe("cuepointupdated",this.v6,this),this.S=null);this.listeners.length=0;this.DF.length=0;g.x.prototype.EK.call(this)};g.h=Bb.prototype;g.h.XK=function(T,Q,k,l,v,L,q,Y){return this.U.XK(T,Q,k,l,v,L,q,Y)};
  13605. g.h.Fc=function(T,Q){this.U.Fc(T,Q)};
  13606. g.h.AA=function(T,Q,k){this.U.AA(T,Q,k)};
  13607. g.h.eM=function(T){this.U.eM(T)};
  13608. g.h.vU=function(T,Q,k,l,v,L,q,Y){this.U.vU(T,Q,k,l,v,L,q,Y)};
  13609. g.h.EY=function(T){return this.U.EY(T)};
  13610. g.h.finishSegmentByCpn=function(T,Q,k){k=lHd(k);this.U.finishSegmentByCpn(T,Q,k)};g.S(zw,g.x);g.S(vbT,g.x);g.S(LX$,g.x);g.S(qtv,g.x);g.S(gbA,g.x);g.S(Mfp,g.x);g.S(UJp,g.x);UJp.prototype.L=function(){return this.S};g.S(RuW,OC);
  13611. RuW.prototype.L=function(T){var Q=T.content;if(Q.componentType==="shopping-companion")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion",{contentVideoId:T&&T.videoId,shoppingCompanionCarouselRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="action-companion")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);
  13612. this.T.tj("updateKevlarOrC3Companion",{contentVideoId:T&&T.videoId,actionCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="image-companion")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion",
  13613. {contentVideoId:T&&T.videoId,imageCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="top-banner-image-text-icon-buttoned")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion",
  13614. {contentVideoId:T&&T.videoId,topBannerImageTextIconButtonedLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="banner-image")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion",
  13615. {contentVideoId:T&&T.videoId,bannerImageLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="ads-engagement-panel")switch(Q=Q.renderer,T.actionType){case 1:case 2:this.T.tj("updateEngagementPanelAction",Q.addAction);this.T.tj("changeEngagementPanelVisibility",
  13616. Q.expandAction);break;case 3:this.T.tj("changeEngagementPanelVisibility",Q.hideAction),this.T.tj("updateEngagementPanelAction",Q.removeAction)}else if(Q.componentType==="ads-engagement-panel-layout"){var k=Q.renderer;switch(T.actionType){case 1:case 2:this.T.tj("updateEngagementPanelAction",{action:uA(k.addAction),layoutId:Q.layoutId,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});this.T.tj("changeEngagementPanelVisibility",uA(k.expandAction));break;case 3:this.T.tj("changeEngagementPanelVisibility",
  13617. uA(k.hideAction)),this.T.tj("updateEngagementPanelAction",{action:uA(k.removeAction)})}}};g.S(Z5_,y6);g.h=Z5_.prototype;g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);g.W2(this.L,"stroke-dasharray","0 "+this.S);this.L.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.B.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
  13618. g.h.clear=function(){this.hide()};
  13619. g.h.hide=function(){V6(this);y6.prototype.hide.call(this)};
  13620. g.h.show=function(){iD(this);y6.prototype.show.call(this)};
  13621. g.h.yF=function(){this.hide()};
  13622. g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T!=null&&T.current!=null&&g.W2(this.L,"stroke-dasharray",T.current/T.seekableEnd*this.S+" "+this.S)}};g.S(fHv,Y8);g.h=fHv.prototype;
  13623. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if(Q.backgroundImage&&Q.backgroundImage.thumbnail)if(Q.actionButton&&g.t(Q.actionButton,g.jw))if(T=Q.durationMilliseconds||0,typeof T!=="number"||T<=0)g.bA(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+T));else if(Q.navigationEndpoint){var l=this.api.getVideoData(2);if(l!=null){var v=Q.image.thumbnail.thumbnails;v!=null&&
  13624. v.length>0&&g.bB(g.cX(v[0].url))&&(v[0].url=l.profilePicture,g.bB(g.cX(l.profilePicture))&&JWJ("VideoPlayer",239976093,"Expected non-empty profile picture."));v=Q.backgroundImage.thumbnail.thumbnails;v!=null&&v.length>0&&g.bB(g.cX(v[0].url))&&(v[0].url=l.rO());v=Q.headline;v!=null&&g.bB(g.cX(v.text))&&(v.text=l.author)}this.D.init(k8("ad-image"),Q.image,k);this.B.init(k8("ad-text"),Q.headline,k);this.L.init(k8("ad-text"),Q.description,k);this.Jj.init(k8("ad-image"),Q.backgroundImage,k);l=["ytp-ad-action-interstitial-action-button",
  13625. "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.B.element.classList.add("ytp-ad-action-interstitial-headline-light");this.L.element.classList.add("ytp-ad-action-interstitial-description-light");l.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().S&&(l.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),l.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().V("enable_unified_action_endcap_on_web")&&
  13626. !this.api.G().S&&(l.push("ytp-ad-action-interstitial-action-button-unified"),this.K_.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.f_.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.fG.classList.add("ytp-ad-action-interstitial-card-unified"),this.qO.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-description-unified"),
  13627. this.i9.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Bd.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.sK.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,l);g.P(this,this.actionButton);this.actionButton.XB(this.K_);
  13628. this.actionButton.init(k8("button"),g.t(Q.actionButton,g.jw),k);te(this.actionButton.element);l=Je(this.actionButton.element);pV(this.actionButton.element,l+" This link opens in new tab");this.navigationEndpoint=Q.navigationEndpoint;this.Y.Z(this.Bd,"click",this.Fo,this);this.Y.Z(this.qO,"click",this.Fo,this);!this.api.G().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.G().S||this.Y.Z(this.i9,"click",this.Fo,this);this.T=this.Hv?new se(this.api,T):new SM(T);g.P(this,this.T);if(Q.skipButton){(T=
  13629. g.t(Q.skipButton,XXd))&&this.T&&(this.skipButton=new ZV(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T,this.kq),g.P(this,this.skipButton),this.skipButton.XB(this.element),this.skipButton.init(k8("skip-button"),T,k));if(k=Q.adBadgeRenderer)if(k=g.t(k,zCA))T=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0,!0),T.XB(this.sK),T.init(k8("simple-ad-badge"),k,this.macros),g.P(this,T);if(k=Q.adInfoRenderer)if(k=g.t(k,TT))T=new ex(this.api,this.layoutId,this.interactionLoggingClientData,
  13630. this.G9,this.element,void 0,!0),T.XB(this.sK),T.init(k8("ad-info-hover-text-button"),k,this.macros),g.P(this,T)}else Q.nonskippableOverlayRenderer&&(T=g.t(Q.nonskippableOverlayRenderer,QN))&&this.T&&(this.S=new jM(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T,!1),g.P(this,this.S),this.S.XB(this.element),this.S.init(k8("ad-preview"),T,k));Q.countdownRenderer&&(Q=Q.countdownRenderer,g.t(Q,wXe)&&this.T&&(k=new Z5_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,
  13631. this.T),g.P(this,k),k.XB(this.element),k.init(k8("timed-pie-countdown"),g.t(Q,wXe),this.macros)));this.show();this.element.focus()}else g.bA(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.bA(Error("AdActionInterstitialRenderer has no button."));else g.bA(Error("AdActionInterstitialRenderer has no background AdImage."));else g.bA(Error("AdActionInterstitialRenderer has no description AdText."));else g.bA(Error("AdActionInterstitialRenderer has no headline AdText."));else g.bA(Error("AdActionInterstitialRenderer has no image."))};
  13632. g.h.clear=function(){g.N5(this.Y);this.hide()};
  13633. g.h.show=function(){G5d(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.S&&this.S.show();Y8.prototype.show.call(this)};
  13634. g.h.hide=function(){G5d(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.S&&this.S.hide();Y8.prototype.hide.call(this)};
  13635. g.h.Fo=function(){this.navigationEndpoint&&(this.layoutId?this.G9.executeCommand(this.navigationEndpoint,this.layoutId):g.bA(Error("Missing layoutId for ad action interstitial.")))};var Ste={iconType:"CLOSE"},NC=new g.Ji(320,63);g.S(sIe,Y8);g.h=sIe.prototype;
  13636. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.Y=Q;this.D=g.r$(this.Y.onClickCommands||[]);this.sK=this.Y.onErrorCommand||null;if(T=this.Y.contentSupportedRenderer)T=this.Y.contentSupportedRenderer,Q=this.Y.adInfoRenderer||null,g.t(T,SkW)?(this.B=g.gK("ytp-ad-overlay-ad-info-button-container",this.L.element),Cym(this,Q),T=zuW(this,g.t(T,SkW))):g.t(T,CXd)?(this.B=g.gK("ytp-ad-overlay-ad-info-button-container",this.S.element),Cym(this,Q),T=XTE(this,g.t(T,CXd))):g.t(T,Bap)?(this.B=
  13637. g.gK("ytp-ad-overlay-ad-info-button-container",this.T.element),Cym(this,Q),T=wTW(this,g.t(T,Bap))):(g.bA(Error("InvideoOverlayAdRenderer content could not be initialized.")),T=!1);T&&(this.show(),dJA(this,!0))};
  13638. g.h.clear=function(){dJA(this,!1);this.Bd.reset();this.qO=0;this.L.hide();this.logVisibility(this.L.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()};
  13639. g.h.chj=function(){this.K_&&(this.layoutId?this.G9.executeCommand(this.K_,this.layoutId):g.bA(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
  13640. g.h.Dv=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var T=this.Y.closeButton.buttonRenderer;if(T.serviceEndpoint){T=[T.serviceEndpoint];break a}}T=[]}T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
  13641. g.h.Xdm=function(){this.Jj||this.api.getPlayerState(1)!==2||this.api.playVideo()};
  13642. g.h.FA=function(){this.Jj||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.FA("invideo-overlay")};
  13643. g.h.UOj=function(T){T.target===this.B&&g.gK("ytp-ad-button",this.f_.element).click()};g.S(N6A,y6);g.h=N6A.prototype;g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);T=Q.durationMs;this.L=T==null||T===0?0:T+this.T.getProgressState().current*1E3;if(Q.text)var l=Q.text.templatedAdText;else Q.staticMessage&&(l=Q.staticMessage);this.messageText.init(k8("ad-text"),l,k);this.messageText.XB(this.S.element);this.Y.show(100);this.show()};
  13644. g.h.clear=function(){this.hide()};
  13645. g.h.hide=function(){A5W(this,!1);y6.prototype.hide.call(this);this.S.hide();this.messageText.hide();V6(this)};
  13646. g.h.show=function(){A5W(this,!0);y6.prototype.show.call(this);iD(this);this.S.show();this.messageText.show()};
  13647. g.h.yF=function(){this.hide()};
  13648. g.h.yb=function(){if(this.T!=null){var T=this.T.getProgressState();T!=null&&T.current!=null&&(T=1E3*T.current,!this.qO&&T>=this.L?(this.Y.hide(),this.qO=!0):this.messageText&&this.messageText.isTemplated()&&(T=Math.max(0,Math.ceil((this.L-T)/1E3)),T!==this.B&&(EC(this.messageText,{TIME_REMAINING:String(T)}),this.B=T)))}};g.S(b5W,Y8);g.h=b5W.prototype;
  13649. g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,{});Q.image&&Q.image.thumbnail?Q.headline?Q.description?Q.actionButton&&g.t(Q.actionButton,g.jw)?(this.L.init(k8("ad-image"),Q.image,k),this.S.init(k8("ad-text"),Q.headline,k),this.Y.init(k8("ad-text"),Q.description,k),this.actionButton=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-underlay-action-button"]),Q.backgroundColor&&g.W2(this.element,"background-color",g.nN(Q.backgroundColor)),g.P(this,this.actionButton),
  13650. this.actionButton.XB(this.B),this.actionButton.init(k8("button"),g.t(Q.actionButton,g.jw),k),T=g.jj(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().V("place_shrunken_video_on_left_of_player")?(Q=this.T,g.Lb(Q,"ytp-ad-underlay-left-container"),g.oF(Q,"ytp-ad-underlay-right-container"),g.W2(this.T,"margin-left",Math.round((T+.02)*100)+"%")):(Q=this.T,g.Lb(Q,"ytp-ad-underlay-right-container"),g.oF(Q,"ytp-ad-underlay-left-container")),g.W2(this.T,"width",Math.round((1-T-
  13651. .04)*100)+"%"),this.api.VH()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.md.bind(this)),this.api.addEventListener("resize",this.YN.bind(this))):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
  13652. g.h.show=function(){r5W(!0);this.actionButton&&this.actionButton.show();Y8.prototype.show.call(this)};
  13653. g.h.hide=function(){r5W(!1);this.actionButton&&this.actionButton.hide();Y8.prototype.hide.call(this)};
  13654. g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.md.bind(this));this.api.removeEventListener("resize",this.YN.bind(this));this.hide()};
  13655. g.h.onClick=function(T){Y8.prototype.onClick.call(this,T);this.actionButton&&g.SO(this.actionButton.element,T.target)&&this.api.pauseVideo()};
  13656. g.h.md=function(T){T==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):T==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):T==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};
  13657. g.h.YN=function(T){T.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):T.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
  13658. g.W2(this.S.element,"font-size",T.width/40+"px")};g.S(AY,Y8);
  13659. AY.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);Q.toggledLoggingParams&&(this.toggledLoggingParams=Q.toggledLoggingParams);Q.answer&&g.t(Q.answer,g.jw)?(T=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),T.XB(this.answer),T.init(k8("ytp-ad-survey-answer-button"),g.t(Q.answer,g.jw),k),T.show()):Q.answer&&g.t(Q.answer,w9)&&(this.T=new HZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,
  13660. ["ytp-ad-survey-answer-toggle-button"]),this.T.XB(this.answer),g.P(this,this.T),this.T.init(k8("survey-answer-button"),g.t(Q.answer,w9),k));this.show()};
  13661. AY.prototype.WY=function(T){this.layoutId?aD(this.G9,T,this.layoutId,this.macros):(T=new g.Wy("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.bA(T))};
  13662. AY.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T);if(this.api.G().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
  13663. AY.prototype.clear=function(){this.hide()};g.S(c5m,Y8);c5m.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);Q.answer&&g.t(Q.answer,w9)&&(this.button=new HZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.XB(this.T),this.button.init(k8("survey-none-of-the-above-button"),g.t(Q.answer,w9),k));this.show()};g.S(bI,rD);bI.prototype.init=function(T,Q,k){rD.prototype.init.call(this,T,Q,k);T=!1;Q.text&&(Q=g.Rx(Q.text),T=!g.bB(Q));T||g.rB(Error("No submit text was present in the renderer."))};
  13664. bI.prototype.onClick=function(T){this.publish("l");rD.prototype.onClick.call(this,T)};g.S(rY,Y8);
  13665. rY.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);if(T=Q.skipOrPreviewRenderer)g.t(T,wM)?(T=g.t(T,wM),k=new GZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.Y,!0),k.XB(this.skipOrPreview),k.init(k8("skip-button"),T,this.macros),g.P(this,k),this.T=k):g.t(T,QN)&&(T=g.t(T,QN),k=new jM(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.Y,!1),k.XB(this.skipOrPreview),k.init(k8("ad-preview"),T,this.macros),k.qO.show(100),k.show(),g.P(this,k),
  13666. this.T=k);this.T==null&&(T=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Q)),g.bA(T));Q.submitButton&&(T=Q.submitButton,g.t(T,g.jw)&&(T=g.t(T,g.jw),k=new bI(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),k.XB(this.submitButton),k.init(k8("survey-submit"),T,this.macros),g.P(this,k),this.S=k));if(T=Q.adBadgeRenderer)T=g.t(T,zCA),k=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0,!0,!0),k.XB(this.L),k.init(k8("simple-ad-badge"),
  13667. T,this.macros),this.adBadge=k.element,g.P(this,k);if(T=Q.adDurationRemaining)T=g.t(T,Iov),k=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.Y,void 0,!0),k.XB(this.L),k.init(k8("ad-duration-remaining"),T,this.macros),g.P(this,k);(Q=Q.adInfoRenderer)&&g.t(Q,TT)&&(T=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,void 0,!0),g.P(this,T),this.adBadge!==void 0?this.L.insertBefore(T.element,this.adBadge.nextSibling):T.XB(this.L),T.init(k8("ad-info-hover-text-button"),
  13668. g.t(Q,TT),this.macros));this.show()};
  13669. rY.prototype.clear=function(){this.hide()};g.S(cb,Y8);cb.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);KXm(this)};
  13670. cb.prototype.show=function(){this.L=Date.now();Y8.prototype.show.call(this)};
  13671. cb.prototype.Hu=function(){};g.S(xJv,cb);g.h=xJv.prototype;g.h.init=function(T,Q,k){var l=this;cb.prototype.init.call(this,T,Q,k);Q.questionText&&DJA(this,Q.questionText);Q.answers&&Q.answers.forEach(function(v,L){g.t(v,z2)&&aHA(l,g.t(v,z2),k,L)});
  13672. this.B=new Set(this.S.map(function(v){return v.T.T}));
  13673. (T=Q.noneOfTheAbove)&&(T=g.t(T,sTv))&&Py_(this,T,k);Q.surveyAdQuestionCommon&&nbW(this,Q.surveyAdQuestionCommon);Q.submitEndpoints&&(this.submitEndpoints=Q.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()};
  13674. g.h.Hu=function(){H5W(this,!1);this.Y.S.subscribe("l",this.Ttj,this)};
  13675. g.h.onChange=function(T){T.target===this.noneOfTheAbove.button.T?tfp(this):this.B.has(T.target)&&(this.noneOfTheAbove.button.toggleButton(!1),H5W(this,!0))};
  13676. g.h.Ttj=function(){var T=[],Q=this.S.reduce(function(v,L,q){var Y=L.toggledLoggingParams;L.T&&L.T.isToggled()&&Y&&(v.push(Y),T.push(q));return v},[]).join("&"),k=this.submitEndpoints.map(function(v){if(!v.loggingUrls)return v;
  13677. v=g.my(v);v.loggingUrls=v.loggingUrls.map(function(L){L.baseUrl&&(L.baseUrl=CI(L.baseUrl,Q));return L});
  13678. return v});
  13679. if(k){k=g.B(k);for(var l=k.next();!l.done;l=k.next())l=l.value,this.layoutId?aD(this.G9,l,this.layoutId,this.macros):g.bA(Error("Missing layoutId for multi_select_question."))}this.api.G().V("supports_multi_step_on_desktop")&&this.qO(T)};
  13680. g.h.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(Dp,cb);Dp.prototype.init=function(T,Q,k){var l=this;cb.prototype.init.call(this,T,Q,k);Q.questionText&&DJA(this,Q.questionText);Q.answers&&Q.answers.forEach(function(v,L){g.t(v,z2)&&aHA(l,g.t(v,z2),k,L)});
  13681. Q.surveyAdQuestionCommon?nbW(this,Q.surveyAdQuestionCommon):ve(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Q)));this.show()};
  13682. Dp.prototype.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(aw,Y8);aw.prototype.init=function(T,Q,k){var l=this;Y8.prototype.init.call(this,T,Q,k);if(this.api.G().V("supports_multi_step_on_desktop")){var v;this.conditioningRules=(v=Q.conditioningRules)!=null?v:[];var L;this.S=(L=Q.questions)!=null?L:[];var q;((q=Q.questions)==null?0:q.length)&&$JT(this,0)}else(Q.questions||[]).forEach(function(Y){g.t(Y,iQ)?pTd(l,g.t(Y,iQ),k):g.t(Y,yM)&&WXd(l,g.t(Y,yM),k)});
  13683. this.show()};
  13684. aw.prototype.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
  13685. aw.prototype.Y=function(T){var Q=this;if(this.api.G().V("supports_multi_step_on_desktop")){var k;if((k=this.conditioningRules)==null?0:k.length){var l;if(T.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(v){return v.questionIndex===Q.T})==null)g.bA(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
  13686. else if(this.conditioningRules.forEach(function(v){if(v.questionIndex===Q.T)switch(v.condition){case "CONDITION_ALL_OF":var L;if((L=v.answerIndices)==null?0:L.every(function(Y){return T.includes(Y)}))l=v.nextQuestionIndex;
  13687. break;case "CONDITION_ANY_OF":var q;if((q=v.answerIndices)==null?0:q.some(function(Y){return T.includes(Y)}))l=v.nextQuestionIndex;
  13688. break;default:g.bA(Error("Expected specified condition in survey conditioning rules."))}}),l!=null)$JT(this,l);
  13689. else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.bA(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.S(uI,Y8);
  13690. uI.prototype.init=function(T,Q,k){var l=this;Y8.prototype.init.call(this,T,Q,k);T=Q.timeoutSeconds||0;if(typeof T!=="number"||T<0)g.bA(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+T));else if(Q.timeoutCommands)if(Q.text)if(Q.ctaButton&&g.t(Q.ctaButton,g.jw))if(Q.brandImage)if(Q.backgroundImage&&g.t(Q.backgroundImage,kN)&&g.t(Q.backgroundImage,kN).landscape){this.layoutId||g.bA(Error("Missing layoutId for survey interstitial."));J5v(this.interstitial,g.t(Q.backgroundImage,
  13691. kN).landscape);J5v(this.logoImage,Q.brandImage);g.CO(this.text,g.Rx(Q.text));var v=["ytp-ad-survey-interstitial-action-button"];v.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,v);g.P(this,this.actionButton);this.actionButton.XB(this.S);this.actionButton.init(k8("button"),g.t(Q.ctaButton,g.jw),k);this.actionButton.show();this.T=new se(this.api,T*1E3);this.T.subscribe("g",function(){l.transition.hide()});
  13692. g.P(this,this.T);this.Z(this.element,"click",function(L){var q=L.target===l.interstitial;L=l.actionButton.element.contains(L.target);if(q||L)if(l.transition.hide(),q)l.api.onAdUxClicked(l.componentType,l.layoutId)});
  13693. this.transition.show(100)}else g.bA(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.bA(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.bA(Error("SurveyTextInterstitialRenderer has no button."));else g.bA(Error("SurveyTextInterstitialRenderer has no text."));else g.bA(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
  13694. uI.prototype.clear=function(){this.hide()};
  13695. uI.prototype.show=function(){euE(!0);Y8.prototype.show.call(this)};
  13696. uI.prototype.hide=function(){euE(!1);Y8.prototype.hide.call(this)};g.S(n_,y6);g.h=n_.prototype;
  13697. g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});if(Q.durationMilliseconds){if(Q.durationMilliseconds<0){g.bA(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Q.durationMilliseconds));return}this.S=Q.durationMilliseconds}else this.S=this.T.Kk();var k;if((k=Q.previewText)==null||!k.text||g.bB(Q.previewText.text))g.bA(Error("No text is returned for AdPreview."));else{this.B=Q.previewText;Q.previewText.isTemplated||g.CO(this.L,Q.previewText.text);var l;
  13698. if(((l=this.api.getVideoData(1))==null?0:l.i5)&&Q.previewImage){var v,L;(T=((L=fT(((v=Q.previewImage)==null?void 0:v.sources)||[],52,!1))==null?void 0:L.url)||"")&&T.length?(this.previewImage=new g.M1({X:"img",J:"ytp-preview-ad__image",K:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",T),g.P(this,this.previewImage),this.previewImage.XB(this.element)):g.bA(Error("Failed to get imageUrl in AdPreview."))}else this.L.classList.add("ytp-preview-ad__text--padding--wide")}};
  13699. g.h.clear=function(){this.hide()};
  13700. g.h.hide=function(){V6(this);y6.prototype.hide.call(this)};
  13701. g.h.show=function(){iD(this);y6.prototype.show.call(this)};
  13702. g.h.yF=function(){this.hide()};
  13703. g.h.yb=function(){if(this.T){var T=this.T.getProgressState();if(T!=null&&T.current)if(T=1E3*T.current,T>=this.S)this.transition.hide();else{var Q;if((Q=this.B)==null?0:Q.isTemplated)if(Q=Math.max(0,Math.ceil((this.S-T)/1E3)),Q!==this.Y){var k,l;(T=(k=this.B)==null?void 0:(l=k.text)==null?void 0:l.replace("{TIME_REMAINING}",String(Q)))&&g.CO(this.L,T);this.Y=Q}}}};g.S(K_,Y8);
  13704. K_.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});var k,l;if((T=((l=fT(((k=Q.image)==null?void 0:k.sources)||[],FXE(Q),!0))==null?void 0:l.url)||"")&&T.length){k=this.L_("ytp-ad-avatar");k.src=T;var v,L;if(l=(v=Q.interaction)==null?void 0:(L=v.accessibility)==null?void 0:L.label)k.alt=l;switch(Q.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
  13705. break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(Q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");
  13706. break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.bA(Error("Failed to get imageUrl in AdAvatar."))};
  13707. K_.prototype.clear=function(){this.hide()};
  13708. K_.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T)};g.S(xF,Y8);
  13709. xF.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});var k;T=(k=Q.label)==null?void 0:k.content;if((k=T!=null&&!g.bB(T))||Q.iconImage){k&&(this.buttonText=new g.M1({X:"span",J:"ytp-ad-button-vm__text",S6:T}),g.P(this,this.buttonText),this.buttonText.XB(this.element));var l,v,L=((l=Q.interaction)==null?0:(v=l.accessibility)==null?0:v.label)||k?T:"";L&&pV(this.element,L+" This link opens in new tab");te(this.element);if(Q.iconImage){l=void 0;if(Q.iconImage){a:{v=Q.iconImage;if(v.sources)for(v=
  13710. g.B(v.sources),T=v.next();!T.done;T=v.next())if(T=T.value,L=void 0,(L=T.clientResource)==null?0:L.imageName){v=T;break a}v=void 0}if(v){var q;l={iconType:(q=v.clientResource)==null?void 0:q.imageName}}}q=bD(l,!1,this.S);q!=null&&(this.buttonIcon=new g.M1({X:"span",J:"ytp-ad-button-vm__icon",W:[q]}),g.P(this,this.buttonIcon),Q.iconLeading?(hZ(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):k?(this.buttonIcon.XB(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
  13711. (this.buttonIcon.XB(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.V("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.T?"ytp-ad-button-vm--style-filled-dark":
  13712. "ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(Q.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.rB(Error("AdButton does not have label or an icon."))};
  13713. xF.prototype.clear=function(){this.hide()};
  13714. xF.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T)};g.S(EbE,y6);g.h=EbE.prototype;
  13715. g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});if(T=g.t(Q.avatar,eD)){var k=Q.headline;if(k){var l=Q.description;if(l){var v=g.t(Q.button,Em);v?(this.adAvatar.init(k8("ad-avatar"),T),this.headline.init(k8("ad-simple-attributed-string"),new w3(k)),this.description.init(k8("ad-simple-attributed-string"),new w3(l)),k.content&&k.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(k8("ad-button"),v),
  13716. this.startMilliseconds=Q.startMs||0,this.api.VH()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.iE.bind(this)),iD(this)):g.bA(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.bA(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.bA(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.bA(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
  13717. g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T&&T.current&&1E3*T.current>=this.startMilliseconds&&(V6(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
  13718. g.h.yF=function(){this.clear()};
  13719. g.h.onClick=function(T){this.api.pauseVideo();y6.prototype.onClick.call(this,T)};
  13720. g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.iE.bind(this))};
  13721. g.h.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();y6.prototype.show.call(this)};
  13722. g.h.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();y6.prototype.hide.call(this)};
  13723. g.h.iE=function(T){T==="hidden"?this.show():this.hide()};g.S(Pb,Y8);g.h=Pb.prototype;
  13724. g.h.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(!Q.label||g.bB(Q.label))g.bA(Error("No label is returned for SkipAdButton."));else if(g.CO(this.Y,Q.label),T=bD({iconType:"SKIP_NEXT_NEW"}),T==null)g.bA(Error("Unable to retrieve icon for SkipAdButton"));else if(this.L=new g.M1({X:"span",J:"ytp-skip-ad-button__icon",W:[T]}),g.P(this,this.L),this.L.XB(this.element),this.api.G().experiments.Wd("enable_skip_to_next_messaging")&&(Q=g.cX(Q.targetId)))this.S=!0,this.element.setAttribute("data-tooltip-target-id",Q),
  13725. this.element.setAttribute("data-tooltip-target-fixed","")};
  13726. g.h.onClick=function(T){T&&T.preventDefault();var Q,k;vnu(T,{contentCpn:(k=(Q=this.api.getVideoData(1))==null?void 0:Q.clientPlaybackNonce)!=null?k:""})===0?this.api.tj("onAbnormalityDetected"):(Y8.prototype.onClick.call(this,T),this.api.tj("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
  13727. g.h.clear=function(){this.T.reset();this.hide()};
  13728. g.h.hide=function(){Y8.prototype.hide.call(this)};
  13729. g.h.show=function(){this.T.start();Y8.prototype.show.call(this);this.S&&this.api.G().experiments.Wd("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.S(y5W,y6);g.h=y5W.prototype;
  13730. g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});T=g.t(Q.preskipState,Dne);var k;if((k=this.api.getVideoData())==null?0:k.isDaiEnabled()){if(!T){g.bA(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.S=new n_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T);g.P(this,this.S);this.S.XB(this.element);var l;(l=this.S)==null||l.init(k8("preview-ad"),T);(k=this.S)!=null&&(k.transition.show(100),k.show())}(k=g.t(Q.skippableState,us9))?(Q.skipOffsetMilliseconds!=
  13731. null?this.skipOffsetMilliseconds=Q.skipOffsetMilliseconds:(g.rB(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.L.init(k8("skip-button"),k),this.show()):g.bA(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
  13732. g.h.show=function(){iD(this);y6.prototype.show.call(this)};
  13733. g.h.hide=function(){!this.isSkippable&&this.S?this.S.hide():this.L&&this.L.hide();V6(this);y6.prototype.hide.call(this)};
  13734. g.h.clear=function(){var T;(T=this.S)==null||T.clear();this.L&&this.L.clear();V6(this);y6.prototype.hide.call(this)};
  13735. g.h.yF=function(){this.hide()};
  13736. g.h.yb=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var T;(T=this.S)!=null&&T.transition.hide();(T=this.L)!=null&&(T.transition.show(),T.show())}};g.S(Hb,Y8);
  13737. Hb.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q.label){var k;((k=Q.label)==null?0:k.content)&&!g.bB(Q.label.content)&&(this.linkText=new g.M1({X:"span",J:"ytp-visit-advertiser-link__text",S6:Q.label.content}),g.P(this,this.linkText),this.linkText.XB(this.element));var l,v;if((l=Q.interaction)==null?0:(v=l.accessibility)==null?0:v.label)pV(this.element,Q.interaction.accessibility.label+" This link opens in new tab");else{var L;((L=Q.label)==null?0:L.content)&&!g.bB(Q.label.content)&&pV(this.element,
  13738. Q.label.content+" This link opens in new tab")}te(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.bA(Error("No label found in VisitAdvertiserLink."))};
  13739. Hb.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T);this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13740. Hb.prototype.clear=function(){this.hide()};g.S(tY,Y8);
  13741. tY.prototype.init=function(T,Q,k,l){Y8.prototype.init.call(this,T,Q,{});if(Q.skipOrPreview){k=Q.skipOrPreview;T=g.t(k,nPA);k=g.t(k,Dne);if(T)this.AY=new y5W(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S),g.P(this,this.AY),this.AY.XB(this.D),this.AY.init(k8("skip-ad"),T);else{var v;k&&((v=this.api.getVideoData())==null?0:v.isDaiEnabled())&&(this.Y=new n_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,1),g.P(this,this.Y),this.Y.XB(this.D),this.Y.init(k8("ad-preview"),
  13742. k),v=this.Y,v.transition.show(100),v.show())}if(v=g.t(Q.skipOrPreview,nPA))var L=v.skipOffsetMilliseconds}Q.playerAdCard&&(v=g.t(Q.playerAdCard,aoA))&&(this.playerAdCard=new EbE(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S),g.P(this,this.playerAdCard),this.playerAdCard.XB(this.i9),this.playerAdCard.init(k8("ad-avatar-lockup-card"),v));Q.adBadgeRenderer&&((v=g.t(Q.adBadgeRenderer,FX))?(this.L=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0),g.P(this,
  13743. this.L),this.L.XB(this.T),this.L.init(k8("ad-badge"),v)):g.bA(Error("AdBadgeViewModel is not found in player overlay layout.")));Q.adPodIndex&&(v=g.t(Q.adPodIndex,Ai$))&&(this.adPodIndex=new A$(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.adPodIndex),this.adPodIndex.XB(this.T),this.adPodIndex.init(k8("ad-pod-index"),v));Q.adInfoRenderer&&((v=g.t(Q.adInfoRenderer,TT))?(this.adInfoButton=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,
  13744. void 0,!0),g.P(this,this.adInfoButton),this.L!==void 0?this.T.insertBefore(this.adInfoButton.element,this.L.element.nextSibling):this.adInfoButton.XB(this.T),this.adInfoButton.init(k8("ad-info-hover-text-button"),v,this.macros)):g.rB(Error("AdInfoRenderer is not found in player overlay layout.")));var q;v=(q=this.api.getVideoData())==null?void 0:q.isDaiEnabled();Q.adDurationRemaining&&v&&(q=g.t(Q.adDurationRemaining,Iov))&&(this.adDurationRemaining=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,
  13745. this.G9,this.S,l.videoAdDurationSeconds,!0),g.P(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.XB(this.T),this.adDurationRemaining.init(k8("ad-duration-remaining"),q,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Q.visitAdvertiserLink&&(l=g.t(Q.visitAdvertiserLink,xnJ))&&(this.visitAdvertiserLink=new Hb(this.api,this.layoutId,
  13746. this.interactionLoggingClientData,this.G9),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.XB(this.T),this.visitAdvertiserLink.init(k8("visit-advertiser-link"),l));Q.adDisclosureBanner&&(Q=g.t(Q.adDisclosureBanner,Nav))&&(this.adDisclosureBanner=new bP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.XB(this.qO),this.adDisclosureBanner.init(k8("ad-disclosure-banner"),Q));this.B=new DV(this.api,this.S,L,!0);g.P(this,
  13747. this.B);g.TQ(this.api,this.B.element,4);this.show()};
  13748. tY.prototype.clear=function(){this.hide()};g.S(i5d,Y8);g.h=i5d.prototype;
  13749. g.h.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q!=null&&Q.title)if(T=Q.title)if(this.headline.init(k8("ad-simple-attributed-string"),new w3(T)),T=g.t(Q.moreInfoButton,Em)){if(this.moreInfoButton.init(k8("ad-button"),T),Q.descriptions)Q.descriptions.length>0&&(T=Q.descriptions[0])&&(this.T=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.T),this.T.XB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(k8("ad-simple-attributed-string"),
  13750. new w3(T))),Q.descriptions.length>1&&(Q=Q.descriptions[1])&&(this.S=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.S),this.S.XB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.S.init(k8("ad-simple-attributed-string"),new w3(Q)))}else g.bA(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.bA(Error("No headline found in AdGridCardText."));else g.bA(Error("No headline found in AdGridCardText."))};
  13751. g.h.onClick=function(T){Y8.prototype.onClick.call(this,T);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13752. g.h.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var T;(T=this.T)==null||T.clear();var Q;(Q=this.S)==null||Q.clear()};
  13753. g.h.hide=function(){this.headline.hide();this.moreInfoButton.hide();var T;(T=this.T)==null||T.hide();var Q;(Q=this.S)==null||Q.hide();Y8.prototype.hide.call(this)};
  13754. g.h.show=function(){Y8.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var T;(T=this.T)==null||T.show();var Q;(Q=this.S)==null||Q.show()};g.S(Om,Y8);Om.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q!=null&&Q.gridCards)if(Q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.bA(Error("Only single column style is currently supported in AdGridCardCollection."));else for(T=g.B(Q.gridCards),Q=T.next();!Q.done;Q=T.next()){if(Q=g.t(Q.value,ciA)){var k=new i5d(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,k);k.XB(this.element);k.init(k8("ad-grid-card-text"),Q);this.T.push(k)}}else g.bA(Error("No grid cards found in AdGridCardCollection."))};
  13755. Om.prototype.show=function(){for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q.value.show();Y8.prototype.show.call(this)};
  13756. Om.prototype.clear=function(){this.hide();for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q.value.clear()};
  13757. Om.prototype.hide=function(){for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q.value.hide();Y8.prototype.hide.call(this)};g.S(p_,y6);g.h=p_.prototype;g.h.init=function(T,Q,k,l,v){v=v===void 0?0:v;y6.prototype.init.call(this,T,Q,k,l);this.playerProgressOffsetMs=v;iD(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.PO.bind(this));this.api.addEventListener("resize",this.xN.bind(this));this.api.VH()?(this.S=!0,this.api.uX(!0),this.show()):this.hide()};
  13758. g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T&&T.current&&!this.S&&1E3*T.current>=this.playerProgressOffsetMs&&(this.S=!0,this.api.uX(!0),this.show())}};
  13759. g.h.yF=function(){this.S&&this.api.uX(!1);this.hide()};
  13760. g.h.clear=function(){this.api.uX(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.PO.bind(this));this.api.removeEventListener("resize",this.xN.bind(this));V6(this);this.hide()};
  13761. g.h.hide=function(){VfT(!1);y6.prototype.hide.call(this)};
  13762. g.h.show=function(){VfT(!0);y6.prototype.show.call(this)};g.S(T$v,p_);g.h=T$v.prototype;
  13763. g.h.init=function(T,Q,k,l){if(Q!=null&&Q.adGridCardCollection)if(Q!=null&&Q.adButton){var v=Number(Q.playerProgressOffsetMs||"0");isNaN(v)?p_.prototype.init.call(this,T,Q,k,l):p_.prototype.init.call(this,T,Q,k,l,v);T=Q.headline;k=g.t(Q.adAvatar,eD);T&&k?(this.headline=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.headline),this.headline.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(k8("ad-simple-attributed-string"),new w3(T)),
  13764. this.adAvatar=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.adAvatar),this.adAvatar.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(k8("ad-avatar"),k)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");T=g.t(Q.adGridCardCollection,riv);this.adGridCardCollection.init(k8("ad-grid-card-collection"),T);Q=g.t(Q.adButton,Em);this.adButton.init(k8("ad-button"),Q);
  13765. this.hide()}else g.bA(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.bA(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
  13766. g.h.onClick=function(T){(this.adButton&&g.SO(this.adButton.element,T.target)||this.adAvatar&&g.SO(this.adAvatar.element,T.target))&&this.api.pauseVideo();p_.prototype.onClick.call(this,T);this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13767. g.h.xN=function(){};
  13768. g.h.clear=function(){this.hide();var T;(T=this.headline)==null||T.clear();var Q;(Q=this.adAvatar)==null||Q.clear();this.adGridCardCollection.clear();this.adButton.clear();p_.prototype.clear.call(this)};
  13769. g.h.show=function(){var T;(T=this.headline)==null||T.show();var Q;(Q=this.adAvatar)==null||Q.show();this.adGridCardCollection.show();this.adButton.show();p_.prototype.show.call(this)};
  13770. g.h.hide=function(){var T;(T=this.headline)==null||T.hide();var Q;(Q=this.adAvatar)==null||Q.hide();this.adGridCardCollection.hide();this.adButton.hide();p_.prototype.hide.call(this)};
  13771. g.h.PO=function(T){T==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):T==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):T==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))};g.S(Wb,Y8);
  13772. Wb.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q.attributes===void 0)g.bA(Error("No attributes found in AdDetailsLineViewModel."));else if(Q.style===void 0)g.bA(Error("No style found in AdDetailsLineViewModel."));else{T=g.B(Q.attributes);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.text!==void 0){k=k.text;var l=Q.style,v=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,v);v.XB(this.element);a:switch(l){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":l="ytp-ad-details-line__text--style-responsive";
  13773. break a;default:l="ytp-ad-details-line__text--style-standard"}v.element.classList.add(l);v.init(k8("ad-simple-attributed-string"),new w3(k));this.T.push(v)}this.show()}};
  13774. Wb.prototype.show=function(){this.T.forEach(function(T){T.show()});
  13775. Y8.prototype.show.call(this)};
  13776. Wb.prototype.clear=function(){this.hide()};
  13777. Wb.prototype.hide=function(){this.T.forEach(function(T){T.hide()});
  13778. Y8.prototype.hide.call(this)};g.S($F,Y8);$F.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});var k,l;(T=((l=fT(((k=Q.image)==null?void 0:k.sources)||[]))==null?void 0:l.url)||"")&&T.length?(k=this.L_("ytp-image-background-image"),g.W2(k,"backgroundImage","url("+T+")"),Q.blurLevel!==void 0&&g.W2(k,"filter","blur("+Q.blurLevel+"px)"),Q.gradient!==void 0&&(Q=new g.p({X:"div",Rk:["ytp-image-background--gradient-vertical"]}),g.P(this,Q),Q.XB(this.element)),this.show()):g.bA(Error("Failed to get imageUrl in ImageBackground."))};
  13779. $F.prototype.clear=function(){this.hide()};g.S(Q_1,y6);g.h=Q_1.prototype;g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});g.W2(this.L,"stroke-dasharray","0 "+this.S);this.show()};
  13780. g.h.clear=function(){this.hide()};
  13781. g.h.hide=function(){V6(this);y6.prototype.hide.call(this)};
  13782. g.h.show=function(){iD(this);y6.prototype.show.call(this)};
  13783. g.h.yF=function(){this.hide()};
  13784. g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T!=null&&T.current!=null&&g.W2(this.L,"stroke-dasharray",T.current/T.seekableEnd*this.S+" "+this.S)}};g.S(JY,Y8);
  13785. JY.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(kve(Q)){this.adAvatar=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adAvatar);this.adAvatar.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(k8("ad-avatar"),g.t(Q.adAvatar,eD));this.headline=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.headline);this.headline.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline");
  13786. this.headline.init(k8("ad-simple-attributed-string"),new w3(Q.headline));if(T=g.t(Q.adDetailsLine,dn9))this.detailsLine=new Wb(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.detailsLine),this.detailsLine.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(k8("ad-details-line"),T);this.adButton=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0);g.P(this,this.adButton);
  13787. this.adButton.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(k8("ad-button"),g.t(Q.adButton,Em));this.adBadge=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0);g.P(this,this.adBadge);this.adBadge.XB(this.Y);this.adBadge.init(k8("ad-badge"),g.t(Q.adBadge,FX));this.adInfoButton=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,void 0,!0);g.P(this,this.adInfoButton);this.adInfoButton.XB(this.Y);
  13788. this.adInfoButton.init(k8("ad-info-hover-text-button"),g.t(Q.adInfoRenderer,TT),this.macros);if(T=g.t(Q.skipAdButton,us9))this.skipAdButton=new Pb(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.skipAdButton),this.skipAdButton.XB(this.element),this.skipAdButton.init(k8("skip-button"),T);this.S=new SM(Q.durationMilliseconds);g.P(this,this.S);if(T=g.t(Q.countdownViewModel,KI1))this.T=new Q_1(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S),g.P(this,
  13789. this.T),this.T.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(k8("timed-pie-countdown"),T);if(Q=g.t(Q.imageBackground,blm))this.imageBackground=new $F(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.imageBackground),this.imageBackground.XB(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(k8("image-background"),
  13790. Q);this.show();this.element.focus()}};
  13791. JY.prototype.clear=function(){g.N5(this.L);this.hide()};
  13792. JY.prototype.show=function(){j_A(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Y8.prototype.show.call(this)};
  13793. JY.prototype.hide=function(){j_A(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Y8.prototype.hide.call(this)};g.S(ys,g.ox);g.h=ys.prototype;g.h.Kk=function(){return 1E3*this.api.getDuration(this.Lv,!1)};
  13794. g.h.stop=function(){this.T&&this.Qp.J6(this.T)};
  13795. g.h.bC=function(){var T=this.api.getProgressState(this.Lv);this.S={seekableStart:T.seekableStart,seekableEnd:T.seekableEnd,current:this.api.getCurrentTime(this.Lv,!1)};this.publish("h")};
  13796. g.h.getProgressState=function(){return this.S};
  13797. g.h.WD=function(T){g.RY(T,2)&&this.publish("g")};var YvW="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.S(iI,OC);
  13798. iI.prototype.L=function(T){var Q=T.id,k=T.content,l=k.componentType;if(!YvW.includes(l))switch(T.actionType){case 1:T=this.api;var v=this.G9,L=k.layoutId,q=k.interactionLoggingClientData,Y=k instanceof nB?k.Hv:!1,U=k instanceof nB||k instanceof h$?k.kq:!1;q=q===void 0?{}:q;Y=Y===void 0?!1:Y;U=U===void 0?!1:U;switch(l){case "invideo-overlay":T=new sIe(T,L,q,v);break;case "player-overlay":T=new aY(T,L,q,v,new ys(T),U);break;case "player-overlay-layout":T=new tY(T,L,q,v,new ys(T));break;case "survey":T=
  13799. new aw(T,L,q,v);break;case "ad-action-interstitial":T=new fHv(T,L,q,v,Y,U);break;case "video-interstitial-buttoned-centered":T=new JY(T,L,q,v);break;case "survey-interstitial":T=new uI(T,L,q,v);break;case "ad-message":T=new N6A(T,L,q,v,new ys(T,1));break;case "player-underlay":T=new b5W(T,L,q,v);break;case "display-underlay-text-grid-cards":T=new T$v(T,L,q,v,new ys(T));break;default:T=null}if(!T){g.rB(Error("No UI component returned from ComponentFactory for type: "+l));break}g.MM(this.components,
  13800. Q)?g.rB(Error("Ad UI component already registered: "+Q)):this.components[Q]=T;T.bind(k);k instanceof a0?this.S?this.S.append(T.U5):g.rB(Error("Underlay view was not created but UnderlayRenderer was created")):this.Y.append(T.U5);break;case 2:Q=l1E(this,T);if(Q==null)break;Q.bind(k);break;case 3:k=l1E(this,T),k!=null&&(g.od(k),g.MM(this.components,Q)?(k=this.components,Q in k&&delete k[Q]):g.rB(Error("Ad UI component does not exist: "+Q)))}};
  13801. iI.prototype.EK=function(){g.vU(Object.values(this.components));this.components={};OC.prototype.EK.call(this)};g.S(oET,g.A4);g.h=oET.prototype;g.h.create=function(){try{vEd(this),this.load(),this.created=!0,vEd(this)}catch(T){MH(T instanceof Error?T:String(T))}};
  13802. g.h.load=function(){try{gEA(this)}finally{Qs(wY(this.T).Js)&&this.player.Ju("ad",1)}};
  13803. g.h.destroy=function(){var T=this.player.getVideoData(1);this.T.T.nH.v4(T&&T.clientPlaybackNonce||"");this.unload();this.created=!1};
  13804. g.h.unload=function(){g.A4.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Q){MH(Q instanceof Error?Q:String(Q))}if(this.S!=null){var T=this.S;this.S=null;T.dispose()}this.L.reset()};
  13805. g.h.cH=function(){return!1};
  13806. g.h.getAdState=function(){return-1};
  13807. g.h.getOptions=function(){return Object.values(Mke)};
  13808. g.h.R2=function(T,Q){Q=Q===void 0?{}:Q;switch(T){case "replaceUrlMacros":return T=Q,T.url?(Q=dk5(this.player),Object.assign(Q,T.rp_),T=g.Ae(T.url,Q)):T=null,T;case "onAboutThisAdPopupClosed":this.wr(Q);break;case "executeCommand":T=Q;T.command&&T.layoutId&&this.executeCommand(T);break;default:return null}};
  13809. g.h.Vi=function(T){var Q;return!((Q=this.T.T.DC)==null||!Q.get().Vi(T))};
  13810. g.h.wr=function(T){T.isMuted&&bZt(wY(this.T).O1,wY(this.T).c5,T.layoutId);this.gS&&this.gS.wr()};
  13811. g.h.executeCommand=function(T){wY(this.T).G9.executeCommand(T.command,T.layoutId)};g.Tv("yt.player.Application.create",g.S5.create);g.Tv("yt.player.Application.createAlternate",g.S5.create);K6g(wB(),gy1);var UrA=g.jA("ytcsi.tick");UrA&&UrA("pe");g.ND("ad",oET);g.S(g.Qo,g.x);g.Qo.prototype.start=function(T,Q,k){this.config={from:T,to:Q,duration:k,startTime:(0,g.XY)()};this.next()};
  13812. g.Qo.prototype.stop=function(){this.delay.stop();this.config=void 0};
  13813. g.Qo.prototype.next=function(){if(this.config){var T=this.config,Q=T.from,k=T.to,l=T.duration;T=T.startTime;var v=(0,g.XY)()-T;T=this.T;l=$wC(T,v/l);if(l==0)T=T.C;else if(l==1)T=T.j;else{v=pl(T.C,T.N,l);var L=pl(T.N,T.B,l);T=pl(T.B,T.j,l);v=pl(v,L,l);L=pl(L,T,l);T=pl(v,L,l)}T=g.ti(T,0,1);this.callback(Q+(k-Q)*T);T<1&&this.delay.start()}};g.S(g.jU,g.p);g.h=g.jU.prototype;g.h.hasSuggestions=function(){return this.suggestionData.length>0};
  13814. g.h.OB=function(){this.S&&this.scrollTo(this.scrollPosition-this.containerWidth)};
  13815. g.h.show=function(){g.p.prototype.show.call(this);f19(this)};
  13816. g.h.vD=function(){this.S&&this.scrollTo(this.scrollPosition+this.containerWidth)};
  13817. g.h.pH=function(){this.zx(this.api.Hx().getPlayerSize())};
  13818. g.h.zx=function(T){var Q=this.api.isEmbedsShortsMode()?.5625:16/9,k=this.api.jj();T=T.width-(k?112:58);k=Math.ceil(T/(k?320:192));var l=(T-k*8)/k;Q=Math.floor(l/Q);for(var v=g.B(this.T),L=v.next();!L.done;L=v.next())L=L.value.L_("ytp-suggestion-image"),L.style.width=l+"px",L.style.height=Q+"px";this.suggestions.element.style.height=Q+"px";this.Y=l;this.j=Q;this.containerWidth=T;this.columns=k;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.kv(this)};
  13819. g.h.onVideoDataChange=function(){var T=this.api.G(),Q=this.api.getVideoData();this.B=Q.hh?!1:T.Y;this.suggestionData=Q.suggestions?g.bl(Q.suggestions,function(k){return k&&!k.playlistId}):[];
  13820. mpJ(this);Q.hh?this.title.update({title:g.o0("\u6765\u81ea\u201c$DNI_RELATED_CHANNEL\u201d\u9891\u9053\u7684\u66f4\u591a\u89c6\u9891",{DNI_RELATED_CHANNEL:Q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"\u66f4\u591a\u77ed\u89c6\u9891":"\u66f4\u591a\u89c6\u9891"})};
  13821. g.h.scrollTo=function(T){T=g.ti(T,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.C.start(this.scrollPosition,T,1E3);this.scrollPosition=T;g.kv(this);f19(this)};})(_yt_player);