@krx3d/tizentubekrx 1.15.20 → 1.15.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,4 +12,4 @@ var t,n,a="function"==typeof Symbol?Symbol:{},e=a.iterator||"@@iterator",r=a.toS
12
12
  * MIT Licence
13
13
  *)
14
14
  */
15
- Intl.DisplayNames&&"function"==typeof Intl.DisplayNames.__addLocaleData&&Intl.DisplayNames.__addLocaleData({data:{patterns:{locale:"{0} ({1})"},types:{calendar:{long:{buddhist:"Buddhist Calendar",chinese:"Chinese Calendar",coptic:"Coptic Calendar",dangi:"Dangi Calendar",ethiopic:"Ethiopic Calendar","ethiopic-amete-alem":"Ethiopic Amete Alem Calendar",gregorian:"Gregorian Calendar",hebrew:"Hebrew Calendar",indian:"Indian National Calendar",islamic:"Hijri Calendar","islamic-civil":"Hijri Calendar (tabular, civil epoch)","islamic-rgsa":"Hijri Calendar (Saudi Arabia, sighting)","islamic-tbla":"Hijri Calendar (tabular, astronomical epoch)","islamic-umalqura":"Hijri Calendar (Umm al-Qura)",iso8601:"ISO-8601 Calendar",japanese:"Japanese Calendar",persian:"Persian Calendar",roc:"Minguo Calendar"},narrow:{},short:{}},currency:{long:{ADP:"Andorran Peseta",AED:"United Arab Emirates Dirham",AFA:"Afghan Afghani (1927–2002)",AFN:"Afghan Afghani",ALK:"Albanian Lek (1946–1965)",ALL:"Albanian Lek",AMD:"Armenian Dram",ANG:"Netherlands Antillean Guilder",AOA:"Angolan Kwanza",AOK:"Angolan Kwanza (1977–1991)",AON:"Angolan New Kwanza (1990–2000)",AOR:"Angolan Readjusted Kwanza (1995–1999)",ARA:"Argentine Austral",ARL:"Argentine Peso Ley (1970–1983)",ARM:"Argentine Peso (1881–1970)",ARP:"Argentine Peso (1983–1985)",ARS:"Argentine Peso",ATS:"Austrian Schilling",AUD:"Australian Dollar",AWG:"Aruban Florin",AZM:"Azerbaijani Manat (1993–2006)",AZN:"Azerbaijani Manat",BAD:"Bosnia-Herzegovina Dinar (1992–1994)",BAM:"Bosnia-Herzegovina Convertible Mark",BAN:"Bosnia-Herzegovina New Dinar (1994–1997)",BBD:"Barbadian Dollar",BDT:"Bangladeshi Taka",BEC:"Belgian Franc (convertible)",BEF:"Belgian Franc",BEL:"Belgian Franc (financial)",BGL:"Bulgarian Hard Lev",BGM:"Bulgarian Socialist Lev",BGN:"Bulgarian Lev",BGO:"Bulgarian Lev (1879–1952)",BHD:"Bahraini Dinar",BIF:"Burundian Franc",BMD:"Bermudan Dollar",BND:"Brunei Dollar",BOB:"Bolivian Boliviano",BOL:"Bolivian Boliviano (1863–1963)",BOP:"Bolivian Peso",BOV:"Bolivian Mvdol",BRB:"Brazilian New Cruzeiro (1967–1986)",BRC:"Brazilian Cruzado (1986–1989)",BRE:"Brazilian Cruzeiro (1990–1993)",BRL:"Brazilian Real",BRN:"Brazilian New Cruzado (1989–1990)",BRR:"Brazilian Cruzeiro (1993–1994)",BRZ:"Brazilian Cruzeiro (1942–1967)",BSD:"Bahamian Dollar",BTN:"Bhutanese Ngultrum",BUK:"Burmese Kyat",BWP:"Botswanan Pula",BYB:"Belarusian Ruble (1994–1999)",BYN:"Belarusian Ruble",BYR:"Belarusian Ruble (2000–2016)",BZD:"Belize Dollar",CAD:"Canadian Dollar",CDF:"Congolese Franc",CHE:"WIR Euro",CHF:"Swiss Franc",CHW:"WIR Franc",CLE:"Chilean Escudo",CLF:"Chilean Unit of Account (UF)",CLP:"Chilean Peso",CNH:"Chinese Yuan (offshore)",CNX:"Chinese People’s Bank Dollar",CNY:"Chinese Yuan",COP:"Colombian Peso",COU:"Colombian Real Value Unit",CRC:"Costa Rican Colón",CSD:"Serbian Dinar (2002–2006)",CSK:"Czechoslovak Hard Koruna",CUC:"Cuban Convertible Peso",CUP:"Cuban Peso",CVE:"Cape Verdean Escudo",CYP:"Cypriot Pound",CZK:"Czech Koruna",DDM:"East German Mark",DEM:"German Mark",DJF:"Djiboutian Franc",DKK:"Danish Krone",DOP:"Dominican Peso",DZD:"Algerian Dinar",ECS:"Ecuadorian Sucre",ECV:"Ecuadorian Unit of Constant Value",EEK:"Estonian Kroon",EGP:"Egyptian Pound",ERN:"Eritrean Nakfa",ESA:"Spanish Peseta (A account)",ESB:"Spanish Peseta (convertible account)",ESP:"Spanish Peseta",ETB:"Ethiopian Birr",EUR:"Euro",FIM:"Finnish Markka",FJD:"Fijian Dollar",FKP:"Falkland Islands Pound",FRF:"French Franc",GBP:"British Pound",GEK:"Georgian Kupon Larit",GEL:"Georgian Lari",GHC:"Ghanaian Cedi (1979–2007)",GHS:"Ghanaian Cedi",GIP:"Gibraltar Pound",GMD:"Gambian Dalasi",GNF:"Guinean Franc",GNS:"Guinean Syli",GQE:"Equatorial Guinean Ekwele",GRD:"Greek Drachma",GTQ:"Guatemalan Quetzal",GWE:"Portuguese Guinea Escudo",GWP:"Guinea-Bissau Peso",GYD:"Guyanaese Dollar",HKD:"Hong Kong Dollar",HNL:"Honduran Lempira",HRD:"Croatian Dinar",HRK:"Croatian Kuna",HTG:"Haitian Gourde",HUF:"Hungarian Forint",IDR:"Indonesian Rupiah",IEP:"Irish Pound",ILP:"Israeli Pound",ILR:"Israeli Shekel (1980–1985)",ILS:"Israeli New Shekel",INR:"Indian Rupee",IQD:"Iraqi Dinar",IRR:"Iranian Rial",ISJ:"Icelandic Króna (1918–1981)",ISK:"Icelandic Króna",ITL:"Italian Lira",JMD:"Jamaican Dollar",JOD:"Jordanian Dinar",JPY:"Japanese Yen",KES:"Kenyan Shilling",KGS:"Kyrgystani Som",KHR:"Cambodian Riel",KMF:"Comorian Franc",KPW:"North Korean Won",KRH:"South Korean Hwan (1953–1962)",KRO:"South Korean Won (1945–1953)",KRW:"South Korean Won",KWD:"Kuwaiti Dinar",KYD:"Cayman Islands Dollar",KZT:"Kazakhstani Tenge",LAK:"Laotian Kip",LBP:"Lebanese Pound",LKR:"Sri Lankan Rupee",LRD:"Liberian Dollar",LSL:"Lesotho Loti",LTL:"Lithuanian Litas",LTT:"Lithuanian Talonas",LUC:"Luxembourgian Convertible Franc",LUF:"Luxembourgian Franc",LUL:"Luxembourg Financial Franc",LVL:"Latvian Lats",LVR:"Latvian Ruble",LYD:"Libyan Dinar",MAD:"Moroccan Dirham",MAF:"Moroccan Franc",MCF:"Monegasque Franc",MDC:"Moldovan Cupon",MDL:"Moldovan Leu",MGA:"Malagasy Ariary",MGF:"Malagasy Franc",MKD:"Macedonian Denar",MKN:"Macedonian Denar (1992–1993)",MLF:"Malian Franc",MMK:"Myanmar Kyat",MNT:"Mongolian Tugrik",MOP:"Macanese Pataca",MRO:"Mauritanian Ouguiya (1973–2017)",MRU:"Mauritanian Ouguiya",MTL:"Maltese Lira",MTP:"Maltese Pound",MUR:"Mauritian Rupee",MVP:"Maldivian Rupee (1947–1981)",MVR:"Maldivian Rufiyaa",MWK:"Malawian Kwacha",MXN:"Mexican Peso",MXP:"Mexican Silver Peso (1861–1992)",MXV:"Mexican Investment Unit",MYR:"Malaysian Ringgit",MZE:"Mozambican Escudo",MZM:"Mozambican Metical (1980–2006)",MZN:"Mozambican Metical",NAD:"Namibian Dollar",NGN:"Nigerian Naira",NIC:"Nicaraguan Córdoba (1988–1991)",NIO:"Nicaraguan Córdoba",NLG:"Dutch Guilder",NOK:"Norwegian Krone",NPR:"Nepalese Rupee",NZD:"New Zealand Dollar",OMR:"Omani Rial",PAB:"Panamanian Balboa",PEI:"Peruvian Inti",PEN:"Peruvian Sol",PES:"Peruvian Sol (1863–1965)",PGK:"Papua New Guinean Kina",PHP:"Philippine Peso",PKR:"Pakistani Rupee",PLN:"Polish Zloty",PLZ:"Polish Zloty (1950–1995)",PTE:"Portuguese Escudo",PYG:"Paraguayan Guarani",QAR:"Qatari Riyal",RHD:"Rhodesian Dollar",ROL:"Romanian Leu (1952–2006)",RON:"Romanian Leu",RSD:"Serbian Dinar",RUB:"Russian Ruble",RUR:"Russian Ruble (1991–1998)",RWF:"Rwandan Franc",SAR:"Saudi Riyal",SBD:"Solomon Islands Dollar",SCR:"Seychellois Rupee",SDD:"Sudanese Dinar (1992–2007)",SDG:"Sudanese Pound",SDP:"Sudanese Pound (1957–1998)",SEK:"Swedish Krona",SGD:"Singapore Dollar",SHP:"St. Helena Pound",SIT:"Slovenian Tolar",SKK:"Slovak Koruna",SLE:"Sierra Leonean Leone",SLL:"Sierra Leonean Leone (1964—2022)",SOS:"Somali Shilling",SRD:"Surinamese Dollar",SRG:"Surinamese Guilder",SSP:"South Sudanese Pound",STD:"São Tomé & Príncipe Dobra (1977–2017)",STN:"São Tomé & Príncipe Dobra",SUR:"Soviet Rouble",SVC:"Salvadoran Colón",SYP:"Syrian Pound",SZL:"Swazi Lilangeni",THB:"Thai Baht",TJR:"Tajikistani Ruble",TJS:"Tajikistani Somoni",TMM:"Turkmenistani Manat (1993–2009)",TMT:"Turkmenistani Manat",TND:"Tunisian Dinar",TOP:"Tongan Paʻanga",TPE:"Timorese Escudo",TRL:"Turkish Lira (1922–2005)",TRY:"Turkish Lira",TTD:"Trinidad & Tobago Dollar",TWD:"New Taiwan Dollar",TZS:"Tanzanian Shilling",UAH:"Ukrainian Hryvnia",UAK:"Ukrainian Karbovanets",UGS:"Ugandan Shilling (1966–1987)",UGX:"Ugandan Shilling",USD:"US Dollar",USN:"US Dollar (Next day)",USS:"US Dollar (Same day)",UYI:"Uruguayan Peso (Indexed Units)",UYP:"Uruguayan Peso (1975–1993)",UYU:"Uruguayan Peso",UYW:"Uruguayan Nominal Wage Index Unit",UZS:"Uzbekistani Som",VEB:"Venezuelan Bolívar (1871–2008)",VED:"Bolívar Soberano",VEF:"Venezuelan Bolívar (2008–2018)",VES:"Venezuelan Bolívar",VND:"Vietnamese Dong",VNN:"Vietnamese Dong (1978–1985)",VUV:"Vanuatu Vatu",WST:"Samoan Tala",XAF:"Central African CFA Franc",XAG:"Silver",XAU:"Gold",XBA:"European Composite Unit",XBB:"European Monetary Unit",XBC:"European Unit of Account (XBC)",XBD:"European Unit of Account (XBD)",XCD:"East Caribbean Dollar",XCG:"Caribbean guilder",XDR:"Special Drawing Rights",XEU:"European Currency Unit",XFO:"French Gold Franc",XFU:"French UIC-Franc",XOF:"West African CFA Franc",XPD:"Palladium",XPF:"CFP Franc",XPT:"Platinum",XRE:"RINET Funds",XSU:"Sucre",XTS:"Testing Currency Code",XUA:"ADB Unit of Account",XXX:"Unknown Currency",YDD:"Yemeni Dinar",YER:"Yemeni Rial",YUD:"Yugoslavian Hard Dinar (1966–1990)",YUM:"Yugoslavian New Dinar (1994–2002)",YUN:"Yugoslavian Convertible Dinar (1990–1992)",YUR:"Yugoslavian Reformed Dinar (1992–1993)",ZAL:"South African Rand (financial)",ZAR:"South African Rand",ZMK:"Zambian Kwacha (1968–2012)",ZMW:"Zambian Kwacha",ZRN:"Zairean New Zaire (1993–1998)",ZRZ:"Zairean Zaire (1971–1993)",ZWD:"Zimbabwean Dollar (1980–2008)",ZWG:"Zimbabwean Gold",ZWL:"Zimbabwean Dollar (2009–2024)",ZWR:"Zimbabwean Dollar (2008)"},narrow:{},short:{}},dateTimeField:{long:{day:"day",dayOfYear:"day of year",dayperiod:"AM/PM",era:"era",hour:"hour",minute:"minute",month:"month",quarter:"quarter",second:"second",timeZoneName:"time zone",weekOfMonth:"week of month",weekOfYear:"week",weekday:"day of the week",weekdayOfMonth:"weekday of the month",year:"year"},narrow:{day:"day",dayOfYear:"day of yr.",dayperiod:"AM/PM",era:"era",hour:"hr",minute:"min",month:"mo",quarter:"qtr",second:"sec",timeZoneName:"zone",weekOfMonth:"wk. of mo.",weekOfYear:"wk",weekday:"day of wk.",weekdayOfMonth:"wkday. of mo.",year:"yr"},short:{day:"day",dayOfYear:"day of yr.",dayperiod:"AM/PM",era:"era",hour:"hr.",minute:"min.",month:"mo.",quarter:"qtr.",second:"sec.",timeZoneName:"zone",weekOfMonth:"wk. of mo.",weekOfYear:"wk.",weekday:"day of wk.",weekdayOfMonth:"wkday. of mo.",year:"yr."}},language:{dialect:{long:{aa:"Afar",ab:"Abkhazian",ace:"Acehnese",ach:"Acoli",ada:"Adangme",ady:"Adyghe",ae:"Avestan",aeb:"Tunisian Arabic",af:"Afrikaans",afh:"Afrihili",agq:"Aghem",ain:"Ainu",ak:"Akan",akk:"Akkadian",akz:"Alabama",ale:"Aleut",aln:"Gheg Albanian",alt:"Southern Altai",am:"Amharic",an:"Aragonese",ang:"Old English",ann:"Obolo",anp:"Angika",ar:"Arabic","ar-001":"Modern Standard Arabic",arc:"Aramaic",arn:"Mapuche",aro:"Araona",arp:"Arapaho",arq:"Algerian Arabic",ars:"Najdi Arabic",arw:"Arawak",ary:"Moroccan Arabic",arz:"Egyptian Arabic",as:"Assamese",asa:"Asu",ase:"American Sign Language",ast:"Asturian",atj:"Atikamekw",av:"Avaric",avk:"Kotava",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ba:"Bashkir",bal:"Baluchi",ban:"Balinese",bar:"Bavarian",bas:"Basaa",bax:"Bamun",bbc:"Batak Toba",bbj:"Ghomala",be:"Belarusian",bej:"Beja",bem:"Bemba",bew:"Betawi",bez:"Bena",bfd:"Bafut",bfq:"Badaga",bg:"Bulgarian",bgc:"Haryanvi",bgn:"Western Balochi",bho:"Bhojpuri",bi:"Bislama",bik:"Bikol",bin:"Bini",bjn:"Banjar",bkm:"Kom",bla:"Siksiká",blo:"Anii",blt:"Tai Dam",bm:"Bambara",bn:"Bangla",bo:"Tibetan",bpy:"Bishnupriya",bqi:"Bakhtiari",br:"Breton",bra:"Braj",brh:"Brahui",brx:"Bodo",bs:"Bosnian",bss:"Akoose",bua:"Buriat",bug:"Buginese",bum:"Bulu",byn:"Blin",byv:"Medumba",ca:"Catalan",cad:"Caddo",car:"Carib",cay:"Cayuga",cch:"Atsam",ccp:"Chakma",ce:"Chechen",ceb:"Cebuano",cgg:"Chiga",ch:"Chamorro",chb:"Chibcha",chg:"Chagatai",chk:"Chuukese",chm:"Mari",chn:"Chinook Jargon",cho:"Choctaw",chp:"Chipewyan",chr:"Cherokee",chy:"Cheyenne",cic:"Chickasaw",ckb:"Central Kurdish",clc:"Chilcotin",co:"Corsican",cop:"Coptic",cps:"Capiznon",cr:"Cree",crg:"Michif",crh:"Crimean Tatar",crj:"Southern East Cree",crk:"Plains Cree",crl:"Northern East Cree",crm:"Moose Cree",crr:"Carolina Algonquian",crs:"Seselwa Creole French",cs:"Czech",csb:"Kashubian",csw:"Swampy Cree",cu:"Church Slavic",cv:"Chuvash",cwd:"Woods Cree",cy:"Welsh",da:"Danish",dak:"Dakota",dar:"Dargwa",dav:"Taita",de:"German","de-AT":"Austrian German","de-CH":"Swiss High German",del:"Delaware",den:"Slave",dgr:"Dogrib",din:"Dinka",dje:"Zarma",doi:"Dogri",dsb:"Lower Sorbian",dtp:"Central Dusun",dua:"Duala",dum:"Middle Dutch",dv:"Divehi",dyo:"Jola-Fonyi",dyu:"Dyula",dz:"Dzongkha",dzg:"Dazaga",ebu:"Embu",ee:"Ewe",efi:"Efik",egl:"Emilian",egy:"Ancient Egyptian",eka:"Ekajuk",el:"Greek",elx:"Elamite",en:"English","en-AU":"Australian English","en-CA":"Canadian English","en-GB":"British English","en-US":"American English",enm:"Middle English",eo:"Esperanto",es:"Spanish","es-419":"Latin American Spanish","es-ES":"European Spanish","es-MX":"Mexican Spanish",esu:"Central Yupik",et:"Estonian",eu:"Basque",ewo:"Ewondo",ext:"Extremaduran",fa:"Persian","fa-AF":"Dari",fan:"Fang",fat:"Fanti",ff:"Fula",fi:"Finnish",fil:"Filipino",fit:"Tornedalen Finnish",fj:"Fijian",fo:"Faroese",fon:"Fon",fr:"French","fr-CA":"Canadian French","fr-CH":"Swiss French",frc:"Cajun French",frm:"Middle French",fro:"Old French",frp:"Arpitan",frr:"Northern Frisian",frs:"Eastern Frisian",fur:"Friulian",fy:"Western Frisian",ga:"Irish",gaa:"Ga",gag:"Gagauz",gan:"Gan Chinese",gay:"Gayo",gba:"Gbaya",gbz:"Zoroastrian Dari",gd:"Scottish Gaelic",gez:"Geez",gil:"Gilbertese",gl:"Galician",glk:"Gilaki",gmh:"Middle High German",gn:"Guarani",goh:"Old High German",gon:"Gondi",gor:"Gorontalo",got:"Gothic",grb:"Grebo",grc:"Ancient Greek",gsw:"Swiss German",gu:"Gujarati",guc:"Wayuu",gur:"Frafra",guz:"Gusii",gv:"Manx",gwi:"Gwichʼin",ha:"Hausa",hai:"Haida",hak:"Hakka Chinese",haw:"Hawaiian",hax:"Southern Haida",hdn:"Northern Haida",he:"Hebrew",hi:"Hindi","hi-Latn":"Hindi (Latin)",hif:"Fiji Hindi",hil:"Hiligaynon",hit:"Hittite",hmn:"Hmong",hnj:"Hmong Njua",ho:"Hiri Motu",hr:"Croatian",hsb:"Upper Sorbian",hsn:"Xiang Chinese",ht:"Haitian Creole",hu:"Hungarian",hup:"Hupa",hur:"Halkomelem",hy:"Armenian",hz:"Herero",ia:"Interlingua",iba:"Iban",ibb:"Ibibio",id:"Indonesian",ie:"Interlingue",ig:"Igbo",ii:"Sichuan Yi",ik:"Inupiaq",ike:"Eastern Canadian Inuktitut",ikt:"Western Canadian Inuktitut",ilo:"Iloko",inh:"Ingush",io:"Ido",is:"Icelandic",it:"Italian",iu:"Inuktitut",izh:"Ingrian",ja:"Japanese",jam:"Jamaican Creole English",jbo:"Lojban",jgo:"Ngomba",jmc:"Machame",jpr:"Judeo-Persian",jrb:"Judeo-Arabic",jut:"Jutish",jv:"Javanese",ka:"Georgian",kaa:"Kara-Kalpak",kab:"Kabyle",kac:"Kachin",kaj:"Jju",kam:"Kamba",kaw:"Kawi",kbd:"Kabardian",kbl:"Kanembu",kcg:"Tyap",kde:"Makonde",kea:"Kabuverdianu",ken:"Kenyang",kfo:"Koro",kg:"Kongo",kgp:"Kaingang",kha:"Khasi",kho:"Khotanese",khq:"Koyra Chiini",khw:"Khowar",ki:"Kikuyu",kiu:"Kirmanjki",kj:"Kuanyama",kk:"Kazakh",kkj:"Kako",kl:"Kalaallisut",kln:"Kalenjin",km:"Khmer",kmb:"Kimbundu",kn:"Kannada",ko:"Korean",koi:"Komi-Permyak",kok:"Konkani",kos:"Kosraean",kpe:"Kpelle",kr:"Kanuri",krc:"Karachay-Balkar",kri:"Krio",krj:"Kinaray-a",krl:"Karelian",kru:"Kurukh",ks:"Kashmiri",ksb:"Shambala",ksf:"Bafia",ksh:"Colognian",ku:"Kurdish",kum:"Kumyk",kut:"Kutenai",kv:"Komi",kw:"Cornish",kwk:"Kwakʼwala",kxv:"Kuvi",ky:"Kyrgyz",la:"Latin",lad:"Ladino",lag:"Langi",lah:"Western Panjabi",lam:"Lamba",lb:"Luxembourgish",lez:"Lezghian",lfn:"Lingua Franca Nova",lg:"Ganda",li:"Limburgish",lij:"Ligurian",lil:"Lillooet",liv:"Livonian",lkt:"Lakota",lmo:"Lombard",ln:"Lingala",lo:"Lao",lol:"Mongo",lou:"Louisiana Creole",loz:"Lozi",lrc:"Northern Luri",lsm:"Saamia",lt:"Lithuanian",ltg:"Latgalian",lu:"Luba-Katanga",lua:"Luba-Lulua",lui:"Luiseno",lun:"Lunda",luo:"Luo",lus:"Mizo",luy:"Luyia",lv:"Latvian",lzh:"Literary Chinese",lzz:"Laz",mad:"Madurese",maf:"Mafa",mag:"Magahi",mai:"Maithili",mak:"Makasar",man:"Mandingo",mas:"Masai",mde:"Maba",mdf:"Moksha",mdr:"Mandar",men:"Mende",mer:"Meru",mfe:"Morisyen",mg:"Malagasy",mga:"Middle Irish",mgh:"Makhuwa-Meetto",mgo:"Metaʼ",mh:"Marshallese",mi:"Māori",mic:"Mi'kmaw",min:"Minangkabau",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mnc:"Manchu",mni:"Manipuri",moe:"Innu-aimun",moh:"Mohawk",mos:"Mossi",mr:"Marathi",mrj:"Western Mari",ms:"Malay",mt:"Maltese",mua:"Mundang",mul:"Multiple languages",mus:"Muscogee",mwl:"Mirandese",mwr:"Marwari",mwv:"Mentawai",my:"Burmese",mye:"Myene",myv:"Erzya",mzn:"Mazanderani",na:"Nauru",nan:"Min Nan Chinese",nap:"Neapolitan",naq:"Nama",nb:"Norwegian Bokmål",nd:"North Ndebele",nds:"Low German","nds-NL":"Low Saxon",ne:"Nepali",new:"Newari",ng:"Ndonga",nia:"Nias",niu:"Niuean",njo:"Ao Naga",nl:"Dutch","nl-BE":"Flemish",nmg:"Kwasio",nn:"Norwegian Nynorsk",nnh:"Ngiemboon",no:"Norwegian",nog:"Nogai",non:"Old Norse",nov:"Novial",nqo:"N’Ko",nr:"South Ndebele",nso:"Northern Sotho",nus:"Nuer",nv:"Navajo",nwc:"Classical Newari",ny:"Nyanja",nym:"Nyamwezi",nyn:"Nyankole",nyo:"Nyoro",nzi:"Nzima",oc:"Occitan",oj:"Ojibwa",ojb:"Northwestern Ojibwa",ojc:"Central Ojibwa",ojg:"Eastern Ojibwa",ojs:"Oji-Cree",ojw:"Western Ojibwa",oka:"Okanagan",om:"Oromo",or:"Odia",os:"Ossetic",osa:"Osage",ota:"Ottoman Turkish",pa:"Punjabi",pag:"Pangasinan",pal:"Pahlavi",pam:"Pampanga",pap:"Papiamento",pau:"Palauan",pcd:"Picard",pcm:"Nigerian Pidgin",pdc:"Pennsylvania German",pdt:"Plautdietsch",peo:"Old Persian",pfl:"Palatine German",phn:"Phoenician",pi:"Pali",pis:"Pijin",pl:"Polish",pms:"Piedmontese",pnt:"Pontic",pon:"Pohnpeian",pqm:"Maliseet-Passamaquoddy",prg:"Prussian",pro:"Old Provençal",ps:"Pashto",pt:"Portuguese","pt-BR":"Brazilian Portuguese","pt-PT":"European Portuguese",qu:"Quechua",quc:"Kʼicheʼ",qug:"Chimborazo Highland Quichua",raj:"Rajasthani",rap:"Rapanui",rar:"Rarotongan",rgn:"Romagnol",rhg:"Rohingya",rif:"Riffian",rm:"Romansh",rn:"Rundi",ro:"Romanian","ro-MD":"Moldavian",rof:"Rombo",rom:"Romany",rtm:"Rotuman",ru:"Russian",rue:"Rusyn",rug:"Roviana",rup:"Aromanian",rw:"Kinyarwanda",rwk:"Rwa",sa:"Sanskrit",sad:"Sandawe",sah:"Yakut",sam:"Samaritan Aramaic",saq:"Samburu",sas:"Sasak",sat:"Santali",saz:"Saurashtra",sba:"Ngambay",sbp:"Sangu",sc:"Sardinian",scn:"Sicilian",sco:"Scots",sd:"Sindhi",sdc:"Sassarese Sardinian",sdh:"Southern Kurdish",se:"Northern Sami",see:"Seneca",seh:"Sena",sei:"Seri",sel:"Selkup",ses:"Koyraboro Senni",sg:"Sango",sga:"Old Irish",sgs:"Samogitian",sh:"Serbo-Croatian",shi:"Tachelhit",shn:"Shan",shu:"Chadian Arabic",si:"Sinhala",sid:"Sidamo",sk:"Slovak",sl:"Slovenian",slh:"Southern Lushootseed",sli:"Lower Silesian",sly:"Selayar",sm:"Samoan",sma:"Southern Sami",smj:"Lule Sami",smn:"Inari Sami",sms:"Skolt Sami",sn:"Shona",snk:"Soninke",so:"Somali",sog:"Sogdien",sq:"Albanian",sr:"Serbian","sr-ME":"Montenegrin",srn:"Sranan Tongo",srr:"Serer",ss:"Swati",ssy:"Saho",st:"Southern Sotho",stq:"Saterland Frisian",str:"Straits Salish",su:"Sundanese",suk:"Sukuma",sus:"Susu",sux:"Sumerian",sv:"Swedish",sw:"Swahili","sw-CD":"Congo Swahili",swb:"Comorian",syc:"Classical Syriac",syr:"Syriac",szl:"Silesian",ta:"Tamil",tce:"Southern Tutchone",tcy:"Tulu",te:"Telugu",tem:"Timne",teo:"Teso",ter:"Tereno",tet:"Tetum",tg:"Tajik",tgx:"Tagish",th:"Thai",tht:"Tahltan",ti:"Tigrinya",tig:"Tigre",tiv:"Tiv",tk:"Turkmen",tkl:"Tokelau",tkr:"Tsakhur",tl:"Tagalog",tlh:"Klingon",tli:"Tlingit",tly:"Talysh",tmh:"Tamashek",tn:"Tswana",to:"Tongan",tog:"Nyasa Tonga",tok:"Toki Pona",tpi:"Tok Pisin",tr:"Turkish",tru:"Turoyo",trv:"Taroko",trw:"Torwali",ts:"Tsonga",tsd:"Tsakonian",tsi:"Tsimshian",tt:"Tatar",ttm:"Northern Tutchone",ttt:"Muslim Tat",tum:"Tumbuka",tvl:"Tuvalu",tw:"Twi",twq:"Tasawaq",ty:"Tahitian",tyv:"Tuvinian",tzm:"Central Atlas Tamazight",udm:"Udmurt",ug:"Uyghur",uga:"Ugaritic",uk:"Ukrainian",umb:"Umbundu",und:"Unknown language",ur:"Urdu",uz:"Uzbek",vai:"Vai",ve:"Venda",vec:"Venetian",vep:"Veps",vi:"Vietnamese",vls:"West Flemish",vmf:"Main-Franconian",vmw:"Makhuwa",vo:"Volapük",vot:"Votic",vro:"Võro",vun:"Vunjo",wa:"Walloon",wae:"Walser",wal:"Wolaytta",war:"Waray",was:"Washo",wbp:"Warlpiri",wo:"Wolof",wuu:"Wu Chinese",xal:"Kalmyk",xh:"Xhosa",xmf:"Mingrelian",xnr:"Kangri",xog:"Soga",yao:"Yao",yap:"Yapese",yav:"Yangben",ybb:"Yemba",yi:"Yiddish",yo:"Yoruba",yrl:"Nheengatu",yue:"Cantonese",za:"Zhuang",zap:"Zapotec",zbl:"Blissymbols",zea:"Zeelandic",zen:"Zenaga",zgh:"Standard Moroccan Tamazight",zh:"Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese",zu:"Zulu",zun:"Zuni",zxx:"No linguistic content",zza:"Zaza"},narrow:{},short:{az:"Azeri","en-GB":"UK English","en-US":"US English"}},standard:{long:{aa:"Afar",ab:"Abkhazian",ace:"Acehnese",ach:"Acoli",ada:"Adangme",ady:"Adyghe",ae:"Avestan",aeb:"Tunisian Arabic",af:"Afrikaans",afh:"Afrihili",agq:"Aghem",ain:"Ainu",ak:"Akan",akk:"Akkadian",akz:"Alabama",ale:"Aleut",aln:"Gheg Albanian",alt:"Southern Altai",am:"Amharic",an:"Aragonese",ang:"Old English",ann:"Obolo",anp:"Angika",ar:"Arabic","ar-001":"Arabic (world)",arc:"Aramaic",arn:"Mapuche",aro:"Araona",arp:"Arapaho",arq:"Algerian Arabic",ars:"Najdi Arabic",arw:"Arawak",ary:"Moroccan Arabic",arz:"Egyptian Arabic",as:"Assamese",asa:"Asu",ase:"American Sign Language",ast:"Asturian",atj:"Atikamekw",av:"Avaric",avk:"Kotava",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ba:"Bashkir",bal:"Baluchi",ban:"Balinese",bar:"Bavarian",bas:"Basaa",bax:"Bamun",bbc:"Batak Toba",bbj:"Ghomala",be:"Belarusian",bej:"Beja",bem:"Bemba",bew:"Betawi",bez:"Bena",bfd:"Bafut",bfq:"Badaga",bg:"Bulgarian",bgc:"Haryanvi",bgn:"Western Balochi",bho:"Bhojpuri",bi:"Bislama",bik:"Bikol",bin:"Bini",bjn:"Banjar",bkm:"Kom",bla:"Siksiká",blo:"Anii",blt:"Tai Dam",bm:"Bambara",bn:"Bangla",bo:"Tibetan",bpy:"Bishnupriya",bqi:"Bakhtiari",br:"Breton",bra:"Braj",brh:"Brahui",brx:"Bodo",bs:"Bosnian",bss:"Akoose",bua:"Buriat",bug:"Buginese",bum:"Bulu",byn:"Blin",byv:"Medumba",ca:"Catalan",cad:"Caddo",car:"Carib",cay:"Cayuga",cch:"Atsam",ccp:"Chakma",ce:"Chechen",ceb:"Cebuano",cgg:"Chiga",ch:"Chamorro",chb:"Chibcha",chg:"Chagatai",chk:"Chuukese",chm:"Mari",chn:"Chinook Jargon",cho:"Choctaw",chp:"Chipewyan",chr:"Cherokee",chy:"Cheyenne",cic:"Chickasaw",ckb:"Central Kurdish",clc:"Chilcotin",co:"Corsican",cop:"Coptic",cps:"Capiznon",cr:"Cree",crg:"Michif",crh:"Crimean Tatar",crj:"Southern East Cree",crk:"Plains Cree",crl:"Northern East Cree",crm:"Moose Cree",crr:"Carolina Algonquian",crs:"Seselwa Creole French",cs:"Czech",csb:"Kashubian",csw:"Swampy Cree",cu:"Church Slavic",cv:"Chuvash",cwd:"Woods Cree",cy:"Welsh",da:"Danish",dak:"Dakota",dar:"Dargwa",dav:"Taita",de:"German","de-AT":"German (Austria)","de-CH":"German (Switzerland)",del:"Delaware",den:"Slave",dgr:"Dogrib",din:"Dinka",dje:"Zarma",doi:"Dogri",dsb:"Lower Sorbian",dtp:"Central Dusun",dua:"Duala",dum:"Middle Dutch",dv:"Divehi",dyo:"Jola-Fonyi",dyu:"Dyula",dz:"Dzongkha",dzg:"Dazaga",ebu:"Embu",ee:"Ewe",efi:"Efik",egl:"Emilian",egy:"Ancient Egyptian",eka:"Ekajuk",el:"Greek",elx:"Elamite",en:"English","en-AU":"English (Australia)","en-CA":"English (Canada)","en-GB":"English (United Kingdom)","en-US":"English (United States)",enm:"Middle English",eo:"Esperanto",es:"Spanish","es-419":"Spanish (Latin America)","es-ES":"Spanish (Spain)","es-MX":"Spanish (Mexico)",esu:"Central Yupik",et:"Estonian",eu:"Basque",ewo:"Ewondo",ext:"Extremaduran",fa:"Persian","fa-AF":"Persian (Afghanistan)",fan:"Fang",fat:"Fanti",ff:"Fula",fi:"Finnish",fil:"Filipino",fit:"Tornedalen Finnish",fj:"Fijian",fo:"Faroese",fon:"Fon",fr:"French","fr-CA":"French (Canada)","fr-CH":"French (Switzerland)",frc:"Cajun French",frm:"Middle French",fro:"Old French",frp:"Arpitan",frr:"Northern Frisian",frs:"Eastern Frisian",fur:"Friulian",fy:"Western Frisian",ga:"Irish",gaa:"Ga",gag:"Gagauz",gan:"Gan Chinese",gay:"Gayo",gba:"Gbaya",gbz:"Zoroastrian Dari",gd:"Scottish Gaelic",gez:"Geez",gil:"Gilbertese",gl:"Galician",glk:"Gilaki",gmh:"Middle High German",gn:"Guarani",goh:"Old High German",gon:"Gondi",gor:"Gorontalo",got:"Gothic",grb:"Grebo",grc:"Ancient Greek",gsw:"Swiss German",gu:"Gujarati",guc:"Wayuu",gur:"Frafra",guz:"Gusii",gv:"Manx",gwi:"Gwichʼin",ha:"Hausa",hai:"Haida",hak:"Hakka Chinese",haw:"Hawaiian",hax:"Southern Haida",hdn:"Northern Haida",he:"Hebrew",hi:"Hindi","hi-Latn":"Hindi (Latin)",hif:"Fiji Hindi",hil:"Hiligaynon",hit:"Hittite",hmn:"Hmong",hnj:"Hmong Njua",ho:"Hiri Motu",hr:"Croatian",hsb:"Upper Sorbian",hsn:"Xiang Chinese",ht:"Haitian Creole",hu:"Hungarian",hup:"Hupa",hur:"Halkomelem",hy:"Armenian",hz:"Herero",ia:"Interlingua",iba:"Iban",ibb:"Ibibio",id:"Indonesian",ie:"Interlingue",ig:"Igbo",ii:"Sichuan Yi",ik:"Inupiaq",ike:"Eastern Canadian Inuktitut",ikt:"Western Canadian Inuktitut",ilo:"Iloko",inh:"Ingush",io:"Ido",is:"Icelandic",it:"Italian",iu:"Inuktitut",izh:"Ingrian",ja:"Japanese",jam:"Jamaican Creole English",jbo:"Lojban",jgo:"Ngomba",jmc:"Machame",jpr:"Judeo-Persian",jrb:"Judeo-Arabic",jut:"Jutish",jv:"Javanese",ka:"Georgian",kaa:"Kara-Kalpak",kab:"Kabyle",kac:"Kachin",kaj:"Jju",kam:"Kamba",kaw:"Kawi",kbd:"Kabardian",kbl:"Kanembu",kcg:"Tyap",kde:"Makonde",kea:"Kabuverdianu",ken:"Kenyang",kfo:"Koro",kg:"Kongo",kgp:"Kaingang",kha:"Khasi",kho:"Khotanese",khq:"Koyra Chiini",khw:"Khowar",ki:"Kikuyu",kiu:"Kirmanjki",kj:"Kuanyama",kk:"Kazakh",kkj:"Kako",kl:"Kalaallisut",kln:"Kalenjin",km:"Khmer",kmb:"Kimbundu",kn:"Kannada",ko:"Korean",koi:"Komi-Permyak",kok:"Konkani",kos:"Kosraean",kpe:"Kpelle",kr:"Kanuri",krc:"Karachay-Balkar",kri:"Krio",krj:"Kinaray-a",krl:"Karelian",kru:"Kurukh",ks:"Kashmiri",ksb:"Shambala",ksf:"Bafia",ksh:"Colognian",ku:"Kurdish",kum:"Kumyk",kut:"Kutenai",kv:"Komi",kw:"Cornish",kwk:"Kwakʼwala",kxv:"Kuvi",ky:"Kyrgyz",la:"Latin",lad:"Ladino",lag:"Langi",lah:"Western Panjabi",lam:"Lamba",lb:"Luxembourgish",lez:"Lezghian",lfn:"Lingua Franca Nova",lg:"Ganda",li:"Limburgish",lij:"Ligurian",lil:"Lillooet",liv:"Livonian",lkt:"Lakota",lmo:"Lombard",ln:"Lingala",lo:"Lao",lol:"Mongo",lou:"Louisiana Creole",loz:"Lozi",lrc:"Northern Luri",lsm:"Saamia",lt:"Lithuanian",ltg:"Latgalian",lu:"Luba-Katanga",lua:"Luba-Lulua",lui:"Luiseno",lun:"Lunda",luo:"Luo",lus:"Mizo",luy:"Luyia",lv:"Latvian",lzh:"Literary Chinese",lzz:"Laz",mad:"Madurese",maf:"Mafa",mag:"Magahi",mai:"Maithili",mak:"Makasar",man:"Mandingo",mas:"Masai",mde:"Maba",mdf:"Moksha",mdr:"Mandar",men:"Mende",mer:"Meru",mfe:"Morisyen",mg:"Malagasy",mga:"Middle Irish",mgh:"Makhuwa-Meetto",mgo:"Metaʼ",mh:"Marshallese",mi:"Māori",mic:"Mi'kmaw",min:"Minangkabau",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mnc:"Manchu",mni:"Manipuri",moe:"Innu-aimun",moh:"Mohawk",mos:"Mossi",mr:"Marathi",mrj:"Western Mari",ms:"Malay",mt:"Maltese",mua:"Mundang",mul:"Multiple languages",mus:"Muscogee",mwl:"Mirandese",mwr:"Marwari",mwv:"Mentawai",my:"Burmese",mye:"Myene",myv:"Erzya",mzn:"Mazanderani",na:"Nauru",nan:"Min Nan Chinese",nap:"Neapolitan",naq:"Nama",nb:"Norwegian Bokmål",nd:"North Ndebele",nds:"Low German","nds-NL":"Low German (Netherlands)",ne:"Nepali",new:"Newari",ng:"Ndonga",nia:"Nias",niu:"Niuean",njo:"Ao Naga",nl:"Dutch","nl-BE":"Dutch (Belgium)",nmg:"Kwasio",nn:"Norwegian Nynorsk",nnh:"Ngiemboon",no:"Norwegian",nog:"Nogai",non:"Old Norse",nov:"Novial",nqo:"N’Ko",nr:"South Ndebele",nso:"Northern Sotho",nus:"Nuer",nv:"Navajo",nwc:"Classical Newari",ny:"Nyanja",nym:"Nyamwezi",nyn:"Nyankole",nyo:"Nyoro",nzi:"Nzima",oc:"Occitan",oj:"Ojibwa",ojb:"Northwestern Ojibwa",ojc:"Central Ojibwa",ojg:"Eastern Ojibwa",ojs:"Oji-Cree",ojw:"Western Ojibwa",oka:"Okanagan",om:"Oromo",or:"Odia",os:"Ossetic",osa:"Osage",ota:"Ottoman Turkish",pa:"Punjabi",pag:"Pangasinan",pal:"Pahlavi",pam:"Pampanga",pap:"Papiamento",pau:"Palauan",pcd:"Picard",pcm:"Nigerian Pidgin",pdc:"Pennsylvania German",pdt:"Plautdietsch",peo:"Old Persian",pfl:"Palatine German",phn:"Phoenician",pi:"Pali",pis:"Pijin",pl:"Polish",pms:"Piedmontese",pnt:"Pontic",pon:"Pohnpeian",pqm:"Maliseet-Passamaquoddy",prg:"Prussian",pro:"Old Provençal",ps:"Pashto",pt:"Portuguese","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",qu:"Quechua",quc:"Kʼicheʼ",qug:"Chimborazo Highland Quichua",raj:"Rajasthani",rap:"Rapanui",rar:"Rarotongan",rgn:"Romagnol",rhg:"Rohingya",rif:"Riffian",rm:"Romansh",rn:"Rundi",ro:"Romanian","ro-MD":"Romanian (Moldova)",rof:"Rombo",rom:"Romany",rtm:"Rotuman",ru:"Russian",rue:"Rusyn",rug:"Roviana",rup:"Aromanian",rw:"Kinyarwanda",rwk:"Rwa",sa:"Sanskrit",sad:"Sandawe",sah:"Yakut",sam:"Samaritan Aramaic",saq:"Samburu",sas:"Sasak",sat:"Santali",saz:"Saurashtra",sba:"Ngambay",sbp:"Sangu",sc:"Sardinian",scn:"Sicilian",sco:"Scots",sd:"Sindhi",sdc:"Sassarese Sardinian",sdh:"Southern Kurdish",se:"Northern Sami",see:"Seneca",seh:"Sena",sei:"Seri",sel:"Selkup",ses:"Koyraboro Senni",sg:"Sango",sga:"Old Irish",sgs:"Samogitian",sh:"Serbo-Croatian",shi:"Tachelhit",shn:"Shan",shu:"Chadian Arabic",si:"Sinhala",sid:"Sidamo",sk:"Slovak",sl:"Slovenian",slh:"Southern Lushootseed",sli:"Lower Silesian",sly:"Selayar",sm:"Samoan",sma:"Southern Sami",smj:"Lule Sami",smn:"Inari Sami",sms:"Skolt Sami",sn:"Shona",snk:"Soninke",so:"Somali",sog:"Sogdien",sq:"Albanian",sr:"Serbian","sr-ME":"Serbian (Montenegro)",srn:"Sranan Tongo",srr:"Serer",ss:"Swati",ssy:"Saho",st:"Southern Sotho",stq:"Saterland Frisian",str:"Straits Salish",su:"Sundanese",suk:"Sukuma",sus:"Susu",sux:"Sumerian",sv:"Swedish",sw:"Swahili","sw-CD":"Swahili (Congo - Kinshasa)",swb:"Comorian",syc:"Classical Syriac",syr:"Syriac",szl:"Silesian",ta:"Tamil",tce:"Southern Tutchone",tcy:"Tulu",te:"Telugu",tem:"Timne",teo:"Teso",ter:"Tereno",tet:"Tetum",tg:"Tajik",tgx:"Tagish",th:"Thai",tht:"Tahltan",ti:"Tigrinya",tig:"Tigre",tiv:"Tiv",tk:"Turkmen",tkl:"Tokelau",tkr:"Tsakhur",tl:"Tagalog",tlh:"Klingon",tli:"Tlingit",tly:"Talysh",tmh:"Tamashek",tn:"Tswana",to:"Tongan",tog:"Nyasa Tonga",tok:"Toki Pona",tpi:"Tok Pisin",tr:"Turkish",tru:"Turoyo",trv:"Taroko",trw:"Torwali",ts:"Tsonga",tsd:"Tsakonian",tsi:"Tsimshian",tt:"Tatar",ttm:"Northern Tutchone",ttt:"Muslim Tat",tum:"Tumbuka",tvl:"Tuvalu",tw:"Twi",twq:"Tasawaq",ty:"Tahitian",tyv:"Tuvinian",tzm:"Central Atlas Tamazight",udm:"Udmurt",ug:"Uyghur",uga:"Ugaritic",uk:"Ukrainian",umb:"Umbundu",und:"Unknown language",ur:"Urdu",uz:"Uzbek",vai:"Vai",ve:"Venda",vec:"Venetian",vep:"Veps",vi:"Vietnamese",vls:"West Flemish",vmf:"Main-Franconian",vmw:"Makhuwa",vo:"Volapük",vot:"Votic",vro:"Võro",vun:"Vunjo",wa:"Walloon",wae:"Walser",wal:"Wolaytta",war:"Waray",was:"Washo",wbp:"Warlpiri",wo:"Wolof",wuu:"Wu Chinese",xal:"Kalmyk",xh:"Xhosa",xmf:"Mingrelian",xnr:"Kangri",xog:"Soga",yao:"Yao",yap:"Yapese",yav:"Yangben",ybb:"Yemba",yi:"Yiddish",yo:"Yoruba",yrl:"Nheengatu",yue:"Cantonese",za:"Zhuang",zap:"Zapotec",zbl:"Blissymbols",zea:"Zeelandic",zen:"Zenaga",zgh:"Standard Moroccan Tamazight",zh:"Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese",zu:"Zulu",zun:"Zuni",zxx:"No linguistic content",zza:"Zaza"},narrow:{},short:{az:"Azeri","en-GB":"English (UK)","en-US":"English (US)"}}},region:{long:{"001":"world","002":"Africa","003":"North America","005":"South America","009":"Oceania","011":"Western Africa","013":"Central America","014":"Eastern Africa","015":"Northern Africa","017":"Middle Africa","018":"Southern Africa","019":"Americas","021":"Northern America","029":"Caribbean","030":"Eastern Asia","034":"Southern Asia","035":"Southeast Asia","039":"Southern Europe","053":"Australasia","054":"Melanesia","057":"Micronesian Region","061":"Polynesia",142:"Asia",143:"Central Asia",145:"Western Asia",150:"Europe",151:"Eastern Europe",154:"Northern Europe",155:"Western Europe",202:"Sub-Saharan Africa",419:"Latin America",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua & Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia & Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"St. Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo - Kinshasa",CF:"Central African Republic",CG:"Congo - Brazzaville",CH:"Switzerland",CI:"Côte d’Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CP:"Clipperton Island",CQ:"Sark",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DG:"Diego Garcia",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EA:"Ceuta & Melilla",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",EU:"European Union",EZ:"Eurozone",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia & South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong SAR China",HM:"Heard & McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",IC:"Canary Islands",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"St. Kitts & Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"St. Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"St. Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar (Burma)",MN:"Mongolia",MO:"Macao SAR China",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"St. Pierre & Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"Palestinian Territories",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",QO:"Outlying Oceania",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"St. Helena",SI:"Slovenia",SJ:"Svalbard & Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"São Tomé & Príncipe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TA:"Tristan da Cunha",TC:"Turks & Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad & Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"U.S. Outlying Islands",UN:"United Nations",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Vatican City",VC:"St. Vincent & Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis & Futuna",WS:"Samoa",XA:"Pseudo-Accents",XB:"Pseudo-Bidi",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"Unknown Region"},narrow:{},short:{BA:"Bosnia",GB:"UK",HK:"Hong Kong",MM:"Myanmar",MO:"Macao",PS:"Palestine",UN:"UN",US:"US"}},script:{long:{Adlm:"Adlam",Afak:"Afaka",Aghb:"Caucasian Albanian",Ahom:"Ahom",Arab:"Arabic",Aran:"Nastaliq",Armi:"Imperial Aramaic",Armn:"Armenian",Avst:"Avestan",Bali:"Balinese",Bamu:"Bamum",Bass:"Bassa Vah",Batk:"Batak",Beng:"Bangla",Bhks:"Bhaiksuki",Blis:"Blissymbols",Bopo:"Bopomofo",Brah:"Brahmi",Brai:"Braille",Bugi:"Buginese",Buhd:"Buhid",Cakm:"Chakma",Cans:"Unified Canadian Aboriginal Syllabics",Cari:"Carian",Cham:"Cham",Cher:"Cherokee",Chrs:"Chorasmian",Cirt:"Cirth",Copt:"Coptic",Cpmn:"Cypro-Minoan",Cprt:"Cypriot",Cyrl:"Cyrillic",Cyrs:"Old Church Slavonic Cyrillic",Deva:"Devanagari",Diak:"Dives Akuru",Dogr:"Dogra",Dsrt:"Deseret",Dupl:"Duployan shorthand",Egyd:"Egyptian demotic",Egyh:"Egyptian hieratic",Egyp:"Egyptian hieroglyphs",Elba:"Elbasan",Elym:"Elymaic",Ethi:"Ethiopic",Gara:"Garay",Geok:"Georgian Khutsuri",Geor:"Georgian",Glag:"Glagolitic",Gong:"Gunjala Gondi",Gonm:"Masaram Gondi",Goth:"Gothic",Gran:"Grantha",Grek:"Greek",Gujr:"Gujarati",Gukh:"Gurung Khema",Guru:"Gurmukhi",Hanb:"Han with Bopomofo",Hang:"Hangul",Hani:"Han",Hano:"Hanunoo",Hans:"Simplified",Hant:"Traditional",Hatr:"Hatran",Hebr:"Hebrew",Hira:"Hiragana",Hluw:"Anatolian Hieroglyphs",Hmng:"Pahawh Hmong",Hmnp:"Nyiakeng Puachue Hmong",Hrkt:"Japanese syllabaries",Hung:"Old Hungarian",Inds:"Indus",Ital:"Old Italic",Jamo:"Jamo",Java:"Javanese",Jpan:"Japanese",Jurc:"Jurchen",Kali:"Kayah Li",Kana:"Katakana",Kawi:"Kawi",Khar:"Kharoshthi",Khmr:"Khmer",Khoj:"Khojki",Kits:"Khitan small script",Knda:"Kannada",Kore:"Korean",Kpel:"Kpelle",Krai:"Kirat Rai",Kthi:"Kaithi",Lana:"Lanna",Laoo:"Lao",Latf:"Fraktur Latin",Latg:"Gaelic Latin",Latn:"Latin",Lepc:"Lepcha",Limb:"Limbu",Lina:"Linear A",Linb:"Linear B",Lisu:"Fraser",Loma:"Loma",Lyci:"Lycian",Lydi:"Lydian",Mahj:"Mahajani",Maka:"Makasar",Mand:"Mandaean",Mani:"Manichaean",Marc:"Marchen",Maya:"Mayan hieroglyphs",Medf:"Medefaidrin",Mend:"Mende",Merc:"Meroitic Cursive",Mero:"Meroitic",Mlym:"Malayalam",Modi:"Modi",Mong:"Mongolian",Moon:"Moon",Mroo:"Mro",Mtei:"Meitei Mayek",Mult:"Multani",Mymr:"Myanmar",Nagm:"Nag Mundari",Nand:"Nandinagari",Narb:"Old North Arabian",Nbat:"Nabataean",Newa:"Newa",Nkgb:"Naxi Geba",Nkoo:"N’Ko",Nshu:"Nüshu",Ogam:"Ogham",Olck:"Ol Chiki",Onao:"Ol Onal",Orkh:"Orkhon",Orya:"Odia",Osge:"Osage",Osma:"Osmanya",Ougr:"Old Uyghur",Palm:"Palmyrene",Pauc:"Pau Cin Hau",Perm:"Old Permic",Phag:"Phags-pa",Phli:"Inscriptional Pahlavi",Phlp:"Psalter Pahlavi",Phlv:"Book Pahlavi",Phnx:"Phoenician",Plrd:"Pollard Phonetic",Prti:"Inscriptional Parthian",Qaag:"Zawgyi",Rjng:"Rejang",Rohg:"Hanifi",Roro:"Rongorongo",Runr:"Runic",Samr:"Samaritan",Sara:"Sarati",Sarb:"Old South Arabian",Saur:"Saurashtra",Sgnw:"SignWriting",Shaw:"Shavian",Shrd:"Sharada",Sidd:"Siddham",Sind:"Khudawadi",Sinh:"Sinhala",Sogd:"Sogdian",Sogo:"Old Sogdian",Sora:"Sora Sompeng",Soyo:"Soyombo",Sund:"Sundanese",Sunu:"Sunuwar",Sylo:"Syloti Nagri",Syrc:"Syriac",Syre:"Estrangelo Syriac",Syrj:"Western Syriac",Syrn:"Eastern Syriac",Tagb:"Tagbanwa",Takr:"Takri",Tale:"Tai Le",Talu:"New Tai Lue",Taml:"Tamil",Tang:"Tangut",Tavt:"Tai Viet",Telu:"Telugu",Teng:"Tengwar",Tfng:"Tifinagh",Tglg:"Tagalog",Thaa:"Thaana",Thai:"Thai",Tibt:"Tibetan",Tirh:"Tirhuta",Tnsa:"Tangsa",Todr:"Todhri",Toto:"Toto",Tutg:"Tulu-Tigalari",Ugar:"Ugaritic",Vaii:"Vai",Visp:"Visible Speech",Vith:"Vithkuqi",Wara:"Varang Kshiti",Wcho:"Wancho",Wole:"Woleai",Xpeo:"Old Persian",Xsux:"Sumero-Akkadian Cuneiform",Yezi:"Yezidi",Yiii:"Yi",Zanb:"Zanabazar Square",Zinh:"Inherited",Zmth:"Mathematical Notation",Zsye:"Emoji",Zsym:"Symbols",Zxxx:"Unwritten",Zyyy:"Common",Zzzz:"Unknown Script"},narrow:{},short:{Cans:"UCAS",Xsux:"S-A Cuneiform"}}}},locale:"en"});var be;be||(be=1,function(){function t(t){return void 0===t?0:Number(t)}function n(t,n){return t!==n&&!(isNaN(t)&&isNaN(n))}self.DOMRect=function(a,e,r,i){var s,o,u,l,c,d,L,m;s=t(a),o=t(e),u=t(r),l=t(i),Object.defineProperties(this,{x:{get:function(){return s},set:function(t){n(s,t)&&(s=t,c=d=void 0)},enumerable:!0},y:{get:function(){return o},set:function(t){n(o,t)&&(o=t,L=m=void 0)},enumerable:!0},width:{get:function(){return u},set:function(t){n(u,t)&&(u=t,c=d=void 0)},enumerable:!0},height:{get:function(){return l},set:function(t){n(l,t)&&(l=t,L=m=void 0)},enumerable:!0},left:{get:function(){return void 0===c&&(c=s+Math.min(0,u)),c},enumerable:!0},right:{get:function(){return void 0===d&&(d=s+Math.max(0,u)),d},enumerable:!0},top:{get:function(){return void 0===L&&(L=o+Math.min(0,l)),L},enumerable:!0},bottom:{get:function(){return void 0===m&&(m=o+Math.max(0,l)),m},enumerable:!0}})}}());var ye,ke="ytaf-configuration",ve={enableAdBlock:!0,enableSponsorBlock:!0,sponsorBlockManualSkips:["intro","outro","filler"],enableSponsorBlockSponsor:!0,enableSponsorBlockIntro:!0,enableSponsorBlockOutro:!0,enableSponsorBlockInteraction:!0,enableSponsorBlockSelfPromo:!0,enableSponsorBlockPreview:!0,enableSponsorBlockMusicOfftopic:!0,enableSponsorBlockFiller:!1,enableSponsorBlockHighlight:!0,videoSpeed:1,preferredVideoQuality:"auto",enableDeArrow:!0,enableDeArrowThumbnails:!1,focusContainerColor:"#0f0f0f",routeColor:"#0f0f0f",enableFixedUI:!window.h5vcc||!window.h5vcc.tizentube,enableHqThumbnails:!0,enableChapters:!0,enableLongPress:!0,enableShorts:!1,dontCheckUpdateUntil:0,enableWhoIsWatchingMenu:!1,enableShowUserLanguage:!0,enableShowOtherLanguages:!1,showWelcomeToast:!1,enablePreviousNextButtons:!0,enableSuperThanksButton:!1,enableSpeedControlsButton:!0,enablePatchingVideoPlayer:!0,enablePreviews:!1,enableHideWatchedVideos:!0,hideWatchedVideosThreshold:10,hideWatchedVideosPages:["home","music","gaming","subscriptions","more"],enableHideWatchedInPlaylists:!0,enablePlaylistContinueButton:!0,enableHideEndScreenCards:!1,enableYouThereRenderer:!1,lastAnnouncementCheck:0,enableScreenDimming:!0,dimmingTimeout:60,dimmingOpacity:.5,enablePaidPromotionOverlay:!1,speedSettingsIncrement:.25,videoPreferredCodec:"any",launchToOnStartup:null,disabledSidebarContents:["TROPHY","NEWS","YOUTUBE_MUSIC","BROADCAST","CLAPPERBOARD","LIVE","GAMING","TAB_MORE"],enableUpdater:!0};try{ye=JSON.parse(window.localStorage[ke])}catch(t){console.warn("Config read failed:",t),ye=ve}function we(t){return void 0===ye[t]&&(console.warn("Populating key",t,"with default value",ve[t]),ye[t]=ve[t]),ye[t]}function De(t,n){console.info("Setting key",t,"to",n),ye[t]=n,window.localStorage[ke]=JSON.stringify(ye),Ae.dispatchEvent(new CustomEvent("configChange",{detail:{key:t,value:n}}))}var Ae={listeners:{},addEventListener(t,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(n)},removeEventListener(t,n){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter(t=>t!==n))},dispatchEvent(t){var n=t.type;this.listeners[n]&&this.listeners[n].forEach(n=>{try{n.call(this,t)}catch(t){}})}};window.isPipPlaying=!1;var Ce=null;function Ne(){var t=Object.values(window._yttv).find(t=>t&&t.mappings);Ce=t.get("PlayerService");var n=t.get("PlaybackPreviewService"),a=n.start,e=n.stop;n.start=function(){if(!window.isPipPlaying){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return a.apply(this,n)}},n.stop=function(){if(!window.isPipPlaying){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e.apply(this,n)}}}"complete"===document.readyState?Ne():window.addEventListener("load",Ne);var xe={ytlrSearchVoice:{length:0,classes:[]},ytlrSearchVoiceMicButton:{length:0,classes:[]}};function Ge(t,n,a){var e={openPopupAction:{popupType:"TOAST",popup:{overlayToastRenderer:{title:{simpleText:t},subtitle:{simpleText:n}}}}};a&&(e.openPopupAction.popup.overlayToastRenderer.image.thumbnails=a),tr(e)}function Se(t,n,a,e){var r=function(t,n,a,e){var r="string"==typeof t?{title:t,subtitle:""}:t,i={openPopupAction:{popupType:"MODAL",popup:{overlaySectionRenderer:{overlay:{overlayTwoPanelRenderer:{actionPanel:{overlayPanelRenderer:{header:{overlayPanelHeaderRenderer:t.overlayPanelHeaderRenderer||{title:{simpleText:r.title}}},content:n}},backButton:{buttonRenderer:{accessibilityData:{accessibilityData:{label:"Back"}},command:{signalAction:{signal:"POPUP_BACK"}}}}}},dismissalCommand:{signalAction:{signal:"POPUP_BACK"}}}},uniqueId:a}};return r.subtitle&&(i.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.header.overlayPanelHeaderRenderer.subtitle={simpleText:r.subtitle}),e&&(i.openPopupAction.shouldMatchUniqueId=!0,i.openPopupAction.updateAction=!0),i}(t,n,a,e);tr(r)}function Pe(t,n){return{overlayPanelItemListRenderer:{items:t,selectedIndex:n}}}function Me(t,n,a){var e={compactLinkRenderer:{serviceEndpoint:{commandExecutorCommand:{commands:a}}}};return t&&(e.compactLinkRenderer.title={simpleText:t.title}),t.subtitle&&(e.compactLinkRenderer.subtitle={simpleText:t.subtitle}),n&&(e.compactLinkRenderer.icon={iconType:n.icon}),n&&n.secondaryIcon&&(e.compactLinkRenderer.secondaryIcon={iconType:n.secondaryIcon}),e}function Ie(t,n,a,e,r){return{timelyActionRenderer:{actionButtons:[{buttonRenderer:{isDisabled:!1,text:{runs:[{text:t}]},icon:{iconType:n},trackingParams:null,command:a}}],triggerTimeMs:e,timeoutMs:r,type:""}}}function Ee(t){return{clickTrackingParams:null,showMenuCommand:{contentId:t.videoId,thumbnail:{thumbnails:t.thumbnails},title:{simpleText:t.title},subtitle:{simpleText:t.subtitle},menu:{menuRenderer:{items:[_e("Play",{clickTrackingParams:null,watchEndpoint:t.watchEndpointData}),Te("Save to Watch Later",{clickTrackingParams:null,playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:t.videoId,action:"ACTION_ADD_VIDEO"}]}}),_e("Save to Playlist",{clickTrackingParams:null,addToPlaylistEndpoint:{videoId:t.videoId}}),Te("Add to Queue",{clickTrackingParams:null,playlistEditEndpoint:{customAction:{action:"ADD_TO_QUEUE",parameters:t.item}}})],trackingParams:null,accessibility:{accessibilityData:{label:"Video options"}}}}}}}function Te(t,n){return{menuServiceItemRenderer:{text:{runs:[{text:t}]},serviceEndpoint:n,trackingParams:null}}}function _e(t,n){return{menuNavigationItemRenderer:{text:{runs:[{text:t}]},navigationEndpoint:n,trackingParams:null}}}function je(t){return{overlayMessageRenderer:{title:{simpleText:t}}}}function ze(t,n,a,e){return{isDisabled:t,text:{runs:[{text:n}]},icon:{iconType:a},command:e,trackingParams:null}}new MutationObserver(()=>{if(window.isPipPlaying){var t=document.querySelector("ytlr-search-bar");if(t)if(!document.querySelector("#tt-pip-button")){var n=t.querySelector("ytlr-search-voice");if(n){for(var a=Object.values(window._yttv).find(t=>t instanceof Map&&t.has("CLEAR_COOKIES")),e=a.get("MICROPHONE_ON"),r=a.get("CLEAR_COOKIES"),i=document.createElement("ytlr-search-voice"),s=0;s<n.classList.length;s++){if(0===xe.ytlrSearchVoice.length&&(xe.ytlrSearchVoice.length=n.classList.length),xe.ytlrSearchVoice.length!==n.classList.length){var o,u=L(xe.ytlrSearchVoice.classes);try{for(u.s();!(o=u.n()).done;){var l=o.value;i.classList.add(l)}}catch(t){u.e(t)}finally{u.f()}break}xe.ytlrSearchVoice.classes.includes(n.classList[s])||xe.ytlrSearchVoice.classes.push(n.classList[s]),i.classList.add(n.classList[s])}i.style.left="10.25em",i.id="tt-pip-button";for(var c=document.createElement("ytlr-search-voice-mic-button"),d=0;d<n.children[0].classList.length;d++){if(0===xe.ytlrSearchVoiceMicButton.length&&(xe.ytlrSearchVoiceMicButton.length=n.children[0].classList.length),xe.ytlrSearchVoiceMicButton.length!==n.children[0].classList.length){var m,h=L(xe.ytlrSearchVoiceMicButton.classes);try{for(h.s();!(m=h.n()).done;){var p=m.value;c.classList.add(p)}}catch(t){h.e(t)}finally{h.f()}break}xe.ytlrSearchVoiceMicButton.classes.includes(n.children[0].classList[d])||xe.ytlrSearchVoiceMicButton.classes.push(n.children[0].classList[d]),c.classList.add(n.children[0].classList[d])}for(var g=document.createElement("yt-icon"),f=0;f<n.children[0].children[0].classList.length;f++)g.classList.add(n.children[0].children[0].classList[f]);g.classList.remove(e),g.classList.add(r),c.appendChild(g),i.appendChild(c),t.appendChild(i)}else{var b=document.createElement("ytlr-search-voice");b.style.left="10.25em",b.id="tt-pip-button",b.setAttribute("idomkey","ytLrSearchBarSearchVoice"),b.setAttribute("tabindex","0"),b.classList.add("ytLrSearchVoiceHost","ytLrSearchBarSearchVoice");var y=document.createElement("ytlr-search-voice-mic-button");y.setAttribute("hybridnavfocusable","true"),y.setAttribute("tabindex","-1"),y.classList.add("ytLrSearchVoiceMicButtonHost","zylon-ve");var k=document.createElement("yt-icon");k.setAttribute("tabindex","-1"),k.classList.add("ytContribIconTvArrowLeft","ytContribIconHost","ytLrSearchVoiceMicButtonIcon"),y.appendChild(k),b.appendChild(y),t.appendChild(b)}}}}).observe(document.body,{childList:!0,subtree:!0});var Be=["af","sq","am","ar","hy","as","az","eu","be","bn","bs","bg","my","ca","zh-CN","zh-TW","zh-HK","hr","cs","da","nl","en","et","fil","fi","fr","gl","ka","de","el","gu","he","hi","hu","is","id","ga","it","ja","kn","kk","km","ko","ky","lo","lv","lt","mk","ms","ml","mt","mr","mn","ne","no","or","fa","pl","pt","pa","ro","ru","sr","si","sk","sl","es","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy","yi","yo","zu"];function Ue(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!t)return null;try{var a=String(t).toUpperCase(),e={CN:"zh-CN",TW:"zh-TW",HK:"zh-HK",SG:"zh-CN"};if(e[a]){var r=e[a];return{code:r,name:new Intl.DisplayNames([n],{type:"language"}).of(r)||r}}var i=new Intl.Locale("und",{region:a}),s=(i.maximize?i.maximize():i).language||"en";return{code:s,name:new Intl.DisplayNames([n],{type:"language"}).of(s)||s}}catch(n){return console.warn("TizenTube Subtitle Localization: Could not infer language for country",t,n),null}}var Re=!1;function Fe(){try{return window.yt&&window.yt.config_&&window.yt.config_.GL?window.yt.config_.GL:(console.warn("TizenTube Subtitle Localization: Could not determine user country code"),null)}catch(t){return console.error("TizenTube Subtitle Localization: Error getting country code:",t),null}}function qe(t,n){return{compactLinkRenderer:{title:{simpleText:n},serviceEndpoint:{commandExecutorCommand:{commands:[{selectSubtitlesTrackCommand:{translationLanguage:{languageCode:t,languageName:n}}},{openClientOverlayAction:{type:"CLIENT_OVERLAY_TYPE_CAPTIONS_LANGUAGE",updateAction:!0}},{signalAction:{signal:"POPUP_BACK"}}]}},secondaryIcon:{iconType:"RADIO_BUTTON_UNCHECKED"}}}}function Oe(){if(!Re){if(!window._yttv)return setTimeout(Oe,250);var t=Object.values(window._yttv).find(t=>t&&t.instance&&"function"==typeof t.instance.resolveCommand);if(t&&!t.instance.resolveCommand.isPatchedBySubtitleLocalization){var n=t.instance.resolveCommand;t.instance.resolveCommand=function(t,a){var e;if("CLIENT_OVERLAY_TYPE_CAPTIONS_AUTO_TRANSLATE"===(null==t||null===(e=t.openPopupAction)||void 0===e?void 0:e.uniqueId)){var r=we("enableShowUserLanguage"),i=we("enableShowOtherLanguages");if(!r&&!i)return n.apply(this,arguments);var s=t.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items,o=function(t){var n=new Set;return t.forEach(t=>{if(t.compactLinkRenderer&&t.compactLinkRenderer.serviceEndpoint){var a,e=null===(a=t.compactLinkRenderer.serviceEndpoint.commandExecutorCommand)||void 0===a?void 0:a.commands;if(e&&e[0]&&e[0].selectSubtitlesTrackCommand){var r=e[0].selectSubtitlesTrackCommand.translationLanguage;r&&(n.add(r.languageCode),n.add(r.languageName))}}}),n}(s);if(r){var u=Fe(),l=Ue(u);if(l)if(function(t,n,a){return t.some(t=>{if(t.compactLinkRenderer&&t.compactLinkRenderer.serviceEndpoint){var e,r=null===(e=t.compactLinkRenderer.serviceEndpoint.commandExecutorCommand)||void 0===e?void 0:e.commands;if(r&&r[0]&&r[0].selectSubtitlesTrackCommand){var i=r[0].selectSubtitlesTrackCommand.translationLanguage;return i&&(i.languageCode===n||i.languageName===a)}}return!1})}(s,l.code,l.name))console.log(`%c[TizenTube Subtitle Localization] User's language ${l.name} already exists in menu`,"background: #4CAF50; color: #ffffff; font-size: 12px;");else{console.log(`%c[TizenTube Subtitle Localization] Adding user's local language: ${l.name} (${l.code})`,"background: #2196F3; color: #ffffff; font-size: 14px; font-weight: bold;");var c=qe(l.code,l.name),d=s.findIndex(t=>{var n;return"Recommended languages"===(null===(n=t.overlayMessageRenderer)||void 0===n||null===(n=n.subtitle)||void 0===n?void 0:n.simpleText)});if(d>-1)s.splice(d+1,0,c),o.add(l.code),o.add(l.name);else{var L=s.findIndex(t=>{var n;return"Other languages"===(null===(n=t.overlayMessageRenderer)||void 0===n||null===(n=n.subtitle)||void 0===n?void 0:n.simpleText)});L>-1?s.splice(L,0,c):s.unshift(c),o.add(l.code),o.add(l.name)}}else console.warn(`TizenTube Subtitle Localization: No language mapping found for country code: ${u}`)}if(i){var m=Object.entries(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";try{var n=new Intl.DisplayNames([t],{type:"language"}),a={};return Be.forEach(t=>{var e=n.of(t)||t;a[t]=e}),a}catch(t){var e={};return Be.forEach(t=>e[t]=t),e}}()).filter(t=>{var n=g(t,2),a=n[0],e=n[1];return!o.has(a)&&!o.has(e)}).sort((t,n)=>{var a=g(t,2)[1],e=g(n,2)[1];return a.localeCompare(e)});m.length>0?(console.log(`%c[TizenTube Subtitle Localization] Adding "Tizen Languages" section with ${m.length} additional languages`,"background: #FF9800; color: #ffffff; font-size: 12px;"),s.push({overlayMessageRenderer:{title:{simpleText:""},subtitle:{simpleText:"Other Languages"},style:"OVERLAY_MESSAGE_STYLE_SUBSECTION_TITLE"}}),m.forEach(t=>{var n=g(t,2),a=n[0],e=n[1];s.push(qe(a,e))}),console.log('%c[TizenTube Subtitle Localization] Added "Tizen Languages" section',"background: #FF9800; color: #ffffff; font-size: 12px;")):console.log("%c[TizenTube Subtitle Localization] All languages already present in menu","background: #4CAF50; color: #ffffff; font-size: 12px;")}}return n.apply(this,arguments)},t.instance.resolveCommand.isPatchedBySubtitleLocalization=!0,console.log("TizenTube Subtitle Localization: Patch successful!"),Re=!0}else t?console.log("TizenTube Subtitle Localization: Already patched."):console.error("TizenTube Subtitle Localization: Could not find resolveCommand instance.")}}var He=setInterval(()=>{window._yttv&&Object.keys(window._yttv).length>0&&(Oe(),clearInterval(He))},1e3);"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Oe):Oe(),console.log("TizenTube Subtitle Localization: Module loaded, waiting for YouTube TV...");var Ke,Ve={};var Xe=(Ke||(Ke=1,Ve.qrcode=function(){var t=function(t,n){var a=t,e=c[n],r=null,i=0,s=null,o=new Array,u={},l=function(t,n){r=function(t){for(var n=new Array(t),a=0;a<t;a+=1){n[a]=new Array(t);for(var e=0;e<t;e+=1)n[a][e]=null}return n}(i=4*a+17),d(0,0),d(i-7,0),d(0,i-7),m(),L(),p(t,n),a>=7&&h(t),null==s&&(s=f(a,e,o)),g(s,n)},d=function(t,n){for(var a=-1;a<=7;a+=1)if(!(t+a<=-1||i<=t+a))for(var e=-1;e<=7;e+=1)n+e<=-1||i<=n+e||(r[t+a][n+e]=0<=a&&a<=6&&(0==e||6==e)||0<=e&&e<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=e&&e<=4)},L=function(){for(var t=8;t<i-8;t+=1)null==r[t][6]&&(r[t][6]=t%2==0);for(var n=8;n<i-8;n+=1)null==r[6][n]&&(r[6][n]=n%2==0)},m=function(){for(var t=y.getPatternPosition(a),n=0;n<t.length;n+=1)for(var e=0;e<t.length;e+=1){var i=t[n],s=t[e];if(null==r[i][s])for(var o=-2;o<=2;o+=1)for(var u=-2;u<=2;u+=1)r[i+o][s+u]=-2==o||2==o||-2==u||2==u||0==o&&0==u}},h=function(t){for(var n=y.getBCHTypeNumber(a),e=0;e<18;e+=1){var s=!t&&1==(n>>e&1);r[Math.floor(e/3)][e%3+i-8-3]=s}for(e=0;e<18;e+=1)s=!t&&1==(n>>e&1),r[e%3+i-8-3][Math.floor(e/3)]=s},p=function(t,n){for(var a=e<<3|n,s=y.getBCHTypeInfo(a),o=0;o<15;o+=1){var u=!t&&1==(s>>o&1);o<6?r[o][8]=u:o<8?r[o+1][8]=u:r[i-15+o][8]=u}for(o=0;o<15;o+=1)u=!t&&1==(s>>o&1),o<8?r[8][i-o-1]=u:o<9?r[8][15-o-1+1]=u:r[8][15-o-1]=u;r[i-8][8]=!t},g=function(t,n){for(var a=-1,e=i-1,s=7,o=0,u=y.getMaskFunction(n),l=i-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var c=0;c<2;c+=1)if(null==r[e][l-c]){var d=!1;o<t.length&&(d=1==(t[o]>>>s&1)),u(e,l-c)&&(d=!d),r[e][l-c]=d,-1==(s-=1)&&(o+=1,s=7)}if((e+=a)<0||i<=e){e-=a,a=-a;break}}},f=function(t,n,a){for(var e=w.getRSBlocks(t,n),r=D(),i=0;i<a.length;i+=1){var s=a[i];r.put(s.getMode(),4),r.put(s.getLength(),y.getLengthInBits(s.getMode(),t)),s.write(r)}var o=0;for(i=0;i<e.length;i+=1)o+=e[i].dataCount;if(r.getLengthInBits()>8*o)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*o+")");for(r.getLengthInBits()+4<=8*o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*o||(r.put(236,8),r.getLengthInBits()>=8*o));)r.put(17,8);return function(t,n){for(var a=0,e=0,r=0,i=new Array(n.length),s=new Array(n.length),o=0;o<n.length;o+=1){var u=n[o].dataCount,l=n[o].totalCount-u;e=Math.max(e,u),r=Math.max(r,l),i[o]=new Array(u);for(var c=0;c<i[o].length;c+=1)i[o][c]=255&t.getBuffer()[c+a];a+=u;var d=y.getErrorCorrectPolynomial(l),L=v(i[o],d.getLength()-1).mod(d);for(s[o]=new Array(d.getLength()-1),c=0;c<s[o].length;c+=1){var m=c+L.getLength()-s[o].length;s[o][c]=m>=0?L.get(m):0}}var h=0;for(c=0;c<n.length;c+=1)h+=n[c].totalCount;var p=new Array(h),g=0;for(c=0;c<e;c+=1)for(o=0;o<n.length;o+=1)c<i[o].length&&(p[g]=i[o][c],g+=1);for(c=0;c<r;c+=1)for(o=0;o<n.length;o+=1)c<s[o].length&&(p[g]=s[o][c],g+=1);return p}(r,e)};return u.addData=function(t){var n=A(t);o.push(n),s=null},u.isDark=function(t,n){if(t<0||i<=t||n<0||i<=n)throw new Error(t+","+n);return r[t][n]},u.getModuleCount=function(){return i},u.make=function(){l(!1,function(){for(var t=0,n=0,a=0;a<8;a+=1){l(!0,a);var e=y.getLostPoint(u);(0==a||t>e)&&(t=e,n=a)}return n}())},u.createTableTag=function(t,n){t=t||2;var a="";a+='<table style="',a+=" border-width: 0px; border-style: none;",a+=" border-collapse: collapse;",a+=" padding: 0px; margin: "+(n=void 0===n?4*t:n)+"px;",a+='">',a+="<tbody>";for(var e=0;e<u.getModuleCount();e+=1){a+="<tr>";for(var r=0;r<u.getModuleCount();r+=1)a+='<td style="',a+=" border-width: 0px; border-style: none;",a+=" border-collapse: collapse;",a+=" padding: 0px; margin: 0px;",a+=" width: "+t+"px;",a+=" height: "+t+"px;",a+=" background-color: ",a+=u.isDark(e,r)?"#000000":"#ffffff",a+=";",a+='"/>';a+="</tr>"}return a+="</tbody>",a+="</table>"},u.createImgTag=function(t,n){t=t||2,n=void 0===n?4*t:n;var a=u.getModuleCount()*t+2*n,e=n,r=a-n;return G(a,a,function(n,a){if(e<=n&&n<r&&e<=a&&a<r){var i=Math.floor((n-e)/t),s=Math.floor((a-e)/t);return u.isDark(s,i)?0:1}return 1})},u};t.stringToBytes=function(t){for(var n=new Array,a=0;a<t.length;a+=1){var e=t.charCodeAt(a);n.push(255&e)}return n},t.createStringToBytes=function(t,n){var a=function(){for(var a=N(t),e=function(){var t=a.read();if(-1==t)throw new Error;return t},r=0,i={};;){var s=a.read();if(-1==s)break;var o=e(),u=e()<<8|e();i[String.fromCharCode(s<<8|o)]=u,r+=1}if(r!=n)throw new Error(r+" != "+n);return i}(),e="?".charCodeAt(0);return function(t){for(var n=new Array,r=0;r<t.length;r+=1){var i=t.charCodeAt(r);if(i<128)n.push(i);else{var s=a[t.charAt(r)];"number"==typeof s?(255&s)==s?n.push(s):(n.push(s>>>8),n.push(255&s)):n.push(e)}}return n}};var n,a,e,r,i,s=1,o=2,u=4,l=8,c={L:1,M:0,Q:3,H:2},d=0,L=1,m=2,h=3,p=4,g=5,f=6,b=7,y=(n=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a=1335,e=7973,i=function(t){for(var n=0;0!=t;)n+=1,t>>>=1;return n},(r={}).getBCHTypeInfo=function(t){for(var n=t<<10;i(n)-i(a)>=0;)n^=a<<i(n)-i(a);return 21522^(t<<10|n)},r.getBCHTypeNumber=function(t){for(var n=t<<12;i(n)-i(e)>=0;)n^=e<<i(n)-i(e);return t<<12|n},r.getPatternPosition=function(t){return n[t-1]},r.getMaskFunction=function(t){switch(t){case d:return function(t,n){return(t+n)%2==0};case L:return function(t,n){return t%2==0};case m:return function(t,n){return n%3==0};case h:return function(t,n){return(t+n)%3==0};case p:return function(t,n){return(Math.floor(t/2)+Math.floor(n/3))%2==0};case g:return function(t,n){return t*n%2+t*n%3==0};case f:return function(t,n){return(t*n%2+t*n%3)%2==0};case b:return function(t,n){return(t*n%3+(t+n)%2)%2==0};default:throw new Error("bad maskPattern:"+t)}},r.getErrorCorrectPolynomial=function(t){for(var n=v([1],0),a=0;a<t;a+=1)n=n.multiply(v([1,k.gexp(a)],0));return n},r.getLengthInBits=function(t,n){if(1<=n&&n<10)switch(t){case s:return 10;case o:return 9;case u:case l:return 8;default:throw new Error("mode:"+t)}else if(n<27)switch(t){case s:return 12;case o:return 11;case u:return 16;case l:return 10;default:throw new Error("mode:"+t)}else{if(!(n<41))throw new Error("type:"+n);switch(t){case s:return 14;case o:return 13;case u:return 16;case l:return 12;default:throw new Error("mode:"+t)}}},r.getLostPoint=function(t){for(var n=t.getModuleCount(),a=0,e=0;e<n;e+=1)for(var r=0;r<n;r+=1){for(var i=0,s=t.isDark(e,r),o=-1;o<=1;o+=1)if(!(e+o<0||n<=e+o))for(var u=-1;u<=1;u+=1)r+u<0||n<=r+u||0==o&&0==u||s==t.isDark(e+o,r+u)&&(i+=1);i>5&&(a+=3+i-5)}for(e=0;e<n-1;e+=1)for(r=0;r<n-1;r+=1){var l=0;t.isDark(e,r)&&(l+=1),t.isDark(e+1,r)&&(l+=1),t.isDark(e,r+1)&&(l+=1),t.isDark(e+1,r+1)&&(l+=1),0!=l&&4!=l||(a+=3)}for(e=0;e<n;e+=1)for(r=0;r<n-6;r+=1)t.isDark(e,r)&&!t.isDark(e,r+1)&&t.isDark(e,r+2)&&t.isDark(e,r+3)&&t.isDark(e,r+4)&&!t.isDark(e,r+5)&&t.isDark(e,r+6)&&(a+=40);for(r=0;r<n;r+=1)for(e=0;e<n-6;e+=1)t.isDark(e,r)&&!t.isDark(e+1,r)&&t.isDark(e+2,r)&&t.isDark(e+3,r)&&t.isDark(e+4,r)&&!t.isDark(e+5,r)&&t.isDark(e+6,r)&&(a+=40);var c=0;for(r=0;r<n;r+=1)for(e=0;e<n;e+=1)t.isDark(e,r)&&(c+=1);return a+=Math.abs(100*c/n/n-50)/5*10},r),k=function(){for(var t=new Array(256),n=new Array(256),a=0;a<8;a+=1)t[a]=1<<a;for(a=8;a<256;a+=1)t[a]=t[a-4]^t[a-5]^t[a-6]^t[a-8];for(a=0;a<255;a+=1)n[t[a]]=a;var e={glog:function(t){if(t<1)throw new Error("glog("+t+")");return n[t]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return t[n]}};return e}();function v(t,n){if(void 0===t.length)throw new Error(t.length+"/"+n);var a=function(){for(var a=0;a<t.length&&0==t[a];)a+=1;for(var e=new Array(t.length-a+n),r=0;r<t.length-a;r+=1)e[r]=t[r+a];return e}(),e={get:function(t){return a[t]},getLength:function(){return a.length},multiply:function(t){for(var n=new Array(e.getLength()+t.getLength()-1),a=0;a<e.getLength();a+=1)for(var r=0;r<t.getLength();r+=1)n[a+r]^=k.gexp(k.glog(e.get(a))+k.glog(t.get(r)));return v(n,0)},mod:function(t){if(e.getLength()-t.getLength()<0)return e;for(var n=k.glog(e.get(0))-k.glog(t.get(0)),a=new Array(e.getLength()),r=0;r<e.getLength();r+=1)a[r]=e.get(r);for(r=0;r<t.getLength();r+=1)a[r]^=k.gexp(k.glog(t.get(r))+n);return v(a,0).mod(t)}};return e}var w=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16]],n=function(t,n){var a={};return a.totalCount=t,a.dataCount=n,a},a={getRSBlocks:function(a,e){var r=function(n,a){switch(a){case c.L:return t[4*(n-1)+0];case c.M:return t[4*(n-1)+1];case c.Q:return t[4*(n-1)+2];case c.H:return t[4*(n-1)+3];default:return}}(a,e);if(void 0===r)throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+e);for(var i=r.length/3,s=new Array,o=0;o<i;o+=1)for(var u=r[3*o+0],l=r[3*o+1],d=r[3*o+2],L=0;L<u;L+=1)s.push(n(l,d));return s}};return a}(),D=function(){var t=new Array,n=0,a={getBuffer:function(){return t},get:function(n){var a=Math.floor(n/8);return 1==(t[a]>>>7-n%8&1)},put:function(t,n){for(var e=0;e<n;e+=1)a.putBit(1==(t>>>n-e-1&1))},getLengthInBits:function(){return n},putBit:function(a){var e=Math.floor(n/8);t.length<=e&&t.push(0),a&&(t[e]|=128>>>n%8),n+=1}};return a},A=function(n){var a=u,e=t.stringToBytes(n),r={getMode:function(){return a},getLength:function(t){return e.length},write:function(t){for(var n=0;n<e.length;n+=1)t.put(e[n],8)}};return r},C=function(){var t=new Array,n={writeByte:function(n){t.push(255&n)},writeShort:function(t){n.writeByte(t),n.writeByte(t>>>8)},writeBytes:function(t,a,e){a=a||0,e=e||t.length;for(var r=0;r<e;r+=1)n.writeByte(t[r+a])},writeString:function(t){for(var a=0;a<t.length;a+=1)n.writeByte(t.charCodeAt(a))},toByteArray:function(){return t},toString:function(){var n="";n+="[";for(var a=0;a<t.length;a+=1)a>0&&(n+=","),n+=t[a];return n+="]"}};return n},N=function(t){var n=t,a=0,e=0,r=0,i={read:function(){for(;r<8;){if(a>=n.length){if(0==r)return-1;throw new Error("unexpected end of file./"+r)}var t=n.charAt(a);if(a+=1,"="==t)return r=0,-1;t.match(/^\s$/)||(e=e<<6|s(t.charCodeAt(0)),r+=6)}var i=e>>>r-8&255;return r-=8,i}},s=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw new Error("c:"+t)};return i},x=function(t,n){var a=t,e=n,r=new Array(t*n),i={setPixel:function(t,n,e){r[n*a+t]=e},write:function(t){t.writeString("GIF87a"),t.writeShort(a),t.writeShort(e),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(a),t.writeShort(e),t.writeByte(0);var n=s(2);t.writeByte(2);for(var r=0;n.length-r>255;)t.writeByte(255),t.writeBytes(n,r,255),r+=255;t.writeByte(n.length-r),t.writeBytes(n,r,n.length-r),t.writeByte(0),t.writeString(";")}},s=function(t){for(var n=1<<t,a=1+(1<<t),e=t+1,i=o(),s=0;s<n;s+=1)i.add(String.fromCharCode(s));i.add(String.fromCharCode(n)),i.add(String.fromCharCode(a));var u=C(),l=function(t){var n=t,a=0,e=0,r={write:function(t,r){if(t>>>r!=0)throw new Error("length over");for(;a+r>=8;)n.writeByte(255&(t<<a|e)),r-=8-a,t>>>=8-a,e=0,a=0;e|=t<<a,a+=r},flush:function(){a>0&&n.writeByte(e)}};return r}(u);l.write(n,e);var c=0,d=String.fromCharCode(r[c]);for(c+=1;c<r.length;){var L=String.fromCharCode(r[c]);c+=1,i.contains(d+L)?d+=L:(l.write(i.indexOf(d),e),i.size()<4095&&(i.size()==1<<e&&(e+=1),i.add(d+L)),d=L)}return l.write(i.indexOf(d),e),l.write(a,e),l.flush(),u.toByteArray()},o=function(){var t={},n=0,a={add:function(e){if(a.contains(e))throw new Error("dup key:"+e);t[e]=n,n+=1},size:function(){return n},indexOf:function(n){return t[n]},contains:function(n){return void 0!==t[n]}};return a};return i},G=function(t,n,a,e){for(var r=x(t,n),i=0;i<n;i+=1)for(var s=0;s<t;s+=1)r.setPixel(s,i,a(s,i));var o=C();r.write(o);for(var u=function(){var t=0,n=0,a=0,e="",r={},i=function(t){e+=String.fromCharCode(s(63&t))},s=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw new Error("n:"+t)};return r.writeByte=function(e){for(t=t<<8|255&e,n+=8,a+=1;n>=6;)i(t>>>n-6),n-=6},r.flush=function(){if(n>0&&(i(t<<6-n),t=0,n=0),a%3!=0)for(var r=3-a%3,s=0;s<r;s+=1)e+="="},r.toString=function(){return e},r}(),l=o.toByteArray(),c=0;c<l.length;c+=1)u.writeByte(l[c]);u.flush();var d="";return d+="<img",d+=' src="',d+="data:image/gif;base64,",d+=u,d+='"',d+=' width="',d+=t,d+='"',d+=' height="',d+=n,d+='"',e&&(d+=' alt="',d+=e,d+='"'),d+="/>"};return t}()),Ve),Ze=H(Xe);function Ye(t,n){for(var a,e,r=[],i=0,s=0,o=[{name:"Support TizenTube",icon:"MONEY_HEART",value:null,options:{title:"Support TizenTube",subtitle:"❤️ Show support for TizenTube and its development",content:(e=[je("If you enjoy using TizenTube and would like to support its development, consider the following:"),je("1. Star the GitHub repository to help increase its visibility."),je("2. Share TizenTube with others."),je("If you would like to contribute financially, consider donating:"),je("- GitHub Sponsors: https://github.com/sponsors/reisxd")],{scrollPaneRenderer:{content:{scrollPaneItemListRenderer:{items:e}}}})}},{name:"Social Media Links",icon:"PRIVACY_UNLISTED",value:null,options:[{name:"GitHub",link:"https://github.com/reisxd/TizenTube"},{name:"YouTube",link:"https://www.youtube.com/@tizenbrew"},{name:"Discord",link:"https://discord.gg/m2P7v8Y2qR"},{name:"Telegram (Announcements)",link:"https://t.me/tizentubecobaltofficial"},{name:"Telegram (Group)",link:"https://t.me/tizentubeofficial"},{name:"Website",link:"https://tizentube.6513006.xyz"}].map(t=>{var n=Ze.qrcode(6,"H");n.addData(t.link),n.make();var a,e=n.createImgTag(8,8).match(/src="([^"]+)"/)[1];return{name:t.name,icon:"OPEN_IN_NEW",value:null,options:{title:t.name,subtitle:t.link,content:Pe([je(`You can visit the ${t.name} page by scanning the QR code below.`),(a=e,{qrCodeRenderer:{qrCodeImage:{thumbnails:[{url:a}]},style:"QR_CODE_RENDERER_STYLE_ATA_SIDESHEET",trackingParams:null}})])}}})},{name:"Ad block",icon:"DOLLAR_SIGN",value:"enableAdBlock"},{name:"SponsorBlock",icon:"MONEY_HAND",value:null,menuId:"tt-sponsorblock-settings",menuHeader:{title:"SponsorBlock Settings",subtitle:"https://sponsor.ajay.app/"},options:[{name:"Enable SponsorBlock",icon:"MONEY_HAND",value:"enableSponsorBlock"},{name:"Manual SponsorBlock Segment Skip",icon:"DOLLAR_SIGN",value:null,arrayToEdit:"sponsorBlockManualSkips",menuId:"tt-sponsorblock-manual-segment-skip",options:[{name:"Skip Sponsor Segments",icon:"MONEY_HEART",value:"sponsor"},{name:"Skip Intro Segments",icon:"PLAY_CIRCLE",value:"intro"},{name:"Skip Outro Segments",value:"outro"},{name:"Skip Interaction Reminder Segments",value:"interaction"},{name:"Skip Self-Promotion Segments",value:"selfpromo"},{name:"Skip Preview/Recap Segments",value:"preview"},{name:"Skip Tangents/Jokes Segments",value:"filler"},{name:"Skip Off-Topic Music Segments",value:"music_offtopic"}]},{name:"Segments",icon:"SETTINGS",value:null,menuId:"tt-sponsorblock-segments",options:[{name:"Skip Sponsor Segments",icon:"MONEY_HEART",value:"enableSponsorBlockSponsor"},{name:"Skip Intro Segments",icon:"PLAY_CIRCLE",value:"enableSponsorBlockIntro"},{name:"Skip Outro Segments",value:"enableSponsorBlockOutro"},{name:"Skip Interaction Reminder Segments",value:"enableSponsorBlockInteraction"},{name:"Skip Self-Promotion Segments",value:"enableSponsorBlockSelfPromo"},{name:"Skip Preview/Recap Segments",value:"enableSponsorBlockPreview"},{name:"Skip Tangents/Jokes Segments",value:"enableSponsorBlockFiller"},{name:"Skip Off-Topic Music Segments",value:"enableSponsorBlockMusicOfftopic"},{name:"Highlights",icon:"LOCATION_POINT",value:"enableSponsorBlockHighlight"}]}]},{name:"DeArrow",icon:"VISIBILITY_OFF",value:null,menuHeader:{title:"DeArrow Settings",subtitle:"https://dearrow.ajay.app/"},options:[{name:"Enable DeArrow",icon:"VISIBILITY_OFF",value:"enableDeArrow"},{name:"DeArrow Thumbnails",icon:"TV",value:"enableDeArrowThumbnails"}]},{name:"Miscellaneous",icon:"SETTINGS",value:null,options:[{name:"Hide End Screen Cards",icon:"VISIBILITY_OFF",value:"enableHideEndScreenCards"},{name:"You There Renderer",icon:"HELP",value:"enableYouThereRenderer"},{name:"Paid Promotion Overlay",icon:"MONEY_HAND",value:"enablePaidPromotionOverlay"},{name:"Who's Watching Menu",icon:"ACCOUNT_CIRCLE",value:"enableWhoIsWatchingMenu"},{name:"Fix UI",icon:"STAR",value:"enableFixedUI"},{name:"High Quality Thumbnails",icon:"VIDEO_QUALITY",value:"enableHqThumbnails"},{name:"Long Press",value:"enableLongPress"},{name:"Shorts",icon:"YOUTUBE_SHORTS_FILL_24",value:"enableShorts"},{name:"Video Previews",value:"enablePreviews"},{name:"Welcome Message",value:"showWelcomeToast"}]},{name:"Subtitles",icon:"TRANSLATE",value:null,options:[{name:(a=Ue(Fe()),a?`Show ${a.name} Subtitle`:"Show Local Subtitle"),value:"enableShowUserLanguage"},{name:"Show Hidden Subtitles",value:"enableShowOtherLanguages"}]},{name:"Video Player Settings",icon:"VIDEO_YOUTUBE",value:null,menuHeader:{title:"Video Player Settings",subtitle:"Customize video player features"},options:[{name:"Patch Video Player UI",icon:"SETTINGS",value:null,menuId:"tt-video-player-ui-patching",options:[{name:"Enable Video Player UI Patching",icon:"SETTINGS",value:"enablePatchingVideoPlayer"},{name:"Previous and Next Buttons",icon:"SKIP_NEXT",value:"enablePreviousNextButtons"},{name:"Super Thanks Button",icon:"MONEY_HEART",value:"enableSuperThanksButton"},{name:"Speed Controls Button",icon:"SLOW_MOTION_VIDEO",value:"enableSpeedControlsButton"}]},{name:"Preferred Video Quality",icon:"VIDEO_QUALITY",value:null,menuId:"tt-preferred-video-quality",menuHeader:{title:"Preferred Video Quality",subtitle:"Choose the preferred or next best video quality applied when playback starts"},options:["Auto","2160p","1440p","1080p","720p","480p","360p","240p","144p"].map(t=>({name:t,key:"preferredVideoQuality",value:t.toLowerCase()}))},{name:"Speed Settings Increments",icon:"SLOW_MOTION_VIDEO",value:null,menuId:"tt-speed-settings-increments",menuHeader:{title:"Speed Settings Increments",subtitle:"Set the speed increments for video playback speed adjustments"},options:[.05,.1,.15,.2,.25,.3,.35,.4,.45,.5].map(t=>({name:`${t}x`,key:"speedSettingsIncrement",value:t}))},{name:"Preferred Video Codec",icon:"VIDEO_QUALITY",value:null,menuId:"tt-preferred-video-codec",menuHeader:{title:"Preferred Video Codec",subtitle:"Choose the preferred video codec for playback"},options:["any","vp9","av01","avc1"].map(t=>({name:"any"===t?"Any":t.toUpperCase(),key:"preferredVideoCodec",value:t}))}]},{name:"User Interface Settings",icon:"SETTINGS",value:null,menuHeader:{title:"User Interface Settings",subtitle:"Customize the UI to your liking"},options:[{name:"Hide Watched Videos",icon:"VISIBILITY_OFF",value:null,menuId:"tt-hide-watched-videos-settings",options:[{name:"Enable Hide Watched Videos",icon:"VISIBILITY_OFF",value:"enableHideWatchedVideos"},{name:"Watched Videos Threshold",value:null,menuId:"tt-hide-watched-videos-threshold",menuHeader:{title:"Watched Videos Threshold",subtitle:"Set the percentage threshold for hiding watched videos"},options:[0,10,20,30,40,50,60,70,80,90,100].map(t=>({name:`${t}%`,key:"hideWatchedVideosThreshold",value:t}))},{name:"Set Pages to Hide Watched Videos",value:null,arrayToEdit:"hideWatchedVideosPages",menuId:"tt-hide-watched-videos-pages",options:[{name:"Search Results",value:"search"},{name:"Home",value:"home"},{name:"Music",value:"music"},{name:"Gaming",value:"gaming"},{name:"Subscriptions",value:"subscriptions"},{name:"Library",value:"library"},{name:"More",value:"more"}]}]},{name:"Screen Dimming",icon:"EYE_OFF",value:null,menuId:"tt-screen-dimming-settings",options:[{name:"Enable Screen Dimming",icon:"EYE_OFF",value:"enableScreenDimming"},{name:"Dimming Timeout",icon:"TIMER",value:null,menuId:"tt-dimming-timeout",menuHeader:{title:"Dimming Timeout",subtitle:"Set the inactivity timeout (in seconds) before the screen dims"},options:[10,20,30,60,120,180,240,300].map(t=>({name:t>=60?`${t/60} minute${t/60>1?"s":""}`:`${t} seconds`,key:"dimmingTimeout",value:t}))},{name:"Dimming Opacity",icon:"LENS_BLUE",value:null,menuId:"tt-dimming-opacity",menuHeader:{title:"Dimming Opacity",subtitle:"Set the opacity level for screen dimming"},options:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1].map(t=>({name:`${Math.round(100*t)}%`,key:"dimmingOpacity",value:t}))}]},{name:"Disable Sidebar Contents (Guide Actions)",icon:"MENU",value:null,arrayToEdit:"disabledSidebarContents",menuId:"tt-sidebar-contents",menuHeader:{title:"Disable Sidebar Contents",subtitle:"Select sidebar contents (guide actions) to disable"},options:[{name:"Search",icon:"SEARCH",value:"SEARCH"},{name:"Home",icon:"WHAT_TO_WATCH",value:"WHAT_TO_WATCH"},{name:"Sports",icon:"TROPHY",value:"TROPHY"},{name:"News",icon:"NEWS",value:"NEWS"},{name:"Music",icon:"YOUTUBE_MUSIC",value:"YOUTUBE_MUSIC"},{name:"Podcasts",icon:"BROADCAST",value:"BROADCAST"},{name:"Movies & TV",icon:"CLAPPERBOARD",value:"CLAPPERBOARD"},{name:"Live",icon:"LIVE",value:"LIVE"},{name:"Gaming",icon:"GAMING",value:"GAMING"},{name:"Subscriptions",icon:"SUBSCRIPTIONS",value:"SUBSCRIPTIONS"},{name:"Library",icon:"TAB_LIBRARY",value:"TAB_LIBRARY"},{name:"More",icon:"TAB_MORE",value:"TAB_MORE"}]},{name:"Launch to on startup",icon:"TV",value:null,menuId:"tt-launch-to-on-startup",menuHeader:{title:"Launch to on startup",subtitle:"Choose the default page TizenTube opens to on startup"},options:[{name:"Search",icon:"SEARCH",key:"launchToOnStartup",value:JSON.stringify({searchEndpoint:{query:""}})},{name:"Home",icon:"WHAT_TO_WATCH",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics"}})},{name:"Sports",icon:"TROPHY",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_sports"}})},{name:"News",icon:"NEWS",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_news"}})},{name:"Music",icon:"YOUTUBE_MUSIC",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_music"}})},{name:"Podcasts",icon:"BROADCAST",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_podcasts"}})},{name:"Movies & TV",icon:"CLAPPERBOARD",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_movies"}})},{name:"Gaming",icon:"GAMING",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_gaming"}})},{name:"Live",icon:"LIVE",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_live"}})},{name:"Subscriptions",icon:"SUBSCRIPTIONS",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEsubscriptions"}})},{name:"Library",icon:"TAB_LIBRARY",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FElibrary"}})},{name:"More",icon:"TAB_MORE",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_more"}})}]}]},window.h5vcc&&window.h5vcc.tizentube?{name:"TizenTube Cobalt Updater",icon:"SYSTEM_UPDATE",value:null,menuHeader:{title:"TizenTube Cobalt Updater",subtitle:"Manage TizenTube Cobalt updates"},subtitle:`Current version: ${window.h5vcc.tizentube.GetVersion()}`,options:[Me({title:"Check for Updates"},{icon:"SYSTEM_UPDATE"},[{customAction:{action:"CHECK_FOR_UPDATES"}}]),{name:"Check for updates on startup",icon:"SYSTEM_UPDATE",value:"enableUpdater"}]}:null];s<o.length;s++){var u,l=o[s];if(l){var c=l.value?we(l.value):null;r.push(Me({title:l.name,subtitle:l.subtitle},{icon:l.icon?l.icon:"CHEVRON_DOWN",secondaryIcon:null===c?"CHEVRON_RIGHT":c?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},null!==c?[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:l.value},boolValue:!we(l.value)}]}},{customAction:{action:"SETTINGS_UPDATE",parameters:[i]}}]:[{customAction:{action:"OPTIONS_SHOW",parameters:{options:l.options,selectedIndex:0,update:!(null===(u=l.options)||void 0===u||!u.title)&&"customUI",menuId:l.menuId,arrayToEdit:l.arrayToEdit,menuHeader:l.menuHeader}}}])),i++}}Se({title:"TizenTube Settings",subtitle:"Made by Reis Can (reisxd) with ❤️"},Pe(r,n&&n.length>0?n[0]:0),"tt-settings",t)}var We=setInterval(()=>{document.querySelector("video")&&(!function(){document.querySelector("video").addEventListener("canplay",()=>{document.getElementsByTagName("video")[0].playbackRate=we("videoSpeed")});var t=t=>{if(406==t.keyCode||191==t.keyCode)return t.preventDefault(),t.stopPropagation(),"keydown"!==t.type||(Je(),!1)};document.addEventListener("keydown",t,!0),document.addEventListener("keypress",t,!0),document.addEventListener("keyup",t,!0)}(),clearInterval(We))},1e3);function Je(){for(var t=we("videoSpeed"),n=0,a=we("speedSettingsIncrement")||.25,e=[],r=a;r<=5;r+=a){var i=Math.round(100*r)/100;e.push(Me({title:`${i}x`},null,[{signalAction:{signal:"POPUP_BACK"}},{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:"videoSpeed"},intValue:i.toString()}]}},{customAction:{action:"SET_PLAYER_SPEED",parameters:i.toString()}}])),t===i&&(n=e.length-1)}e.push(Me({title:"Fix stuttering (1.0001x)"},null,[{signalAction:{signal:"POPUP_BACK"}},{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:"videoSpeed"},intValue:"1.0001"}]}},{customAction:{action:"SET_PLAYER_SPEED",parameters:"1.0001"}}])),Se("Playback Speed",Pe(e,n),"tt-speed")}if(window.h5vcc&&window.h5vcc.tizentube&&we("enableUpdater")){var Qe=Math.floor(Date.now()/1e3);we("dontCheckUpdateUntil")>Qe?console.info("Skipping update check until",new Date(1e3*we("dontCheckUpdateUntil")).toLocaleString()):$e()}function $e(t){var n=window.h5vcc.tizentube.GetVersion(),a=Math.floor(Date.now()/1e3);fetch("https://api.github.com/repos/reisxd/TizenTubeCobalt/releases/latest").then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()}).then(e=>{var r=e.tag_name.replace("v",""),i=new Date(e.published_at).getTime()/1e3;r!==n?(console.info(`New version available: ${r} (current: ${n})`),Se({title:"Update Available",subtitle:`A new version of TizenTube Cobalt is available: ${r}\nCurrent version: ${n}\nRelease Date: ${new Date(1e3*i).toLocaleString()}\nRelease Notes:\n${e.body}`},Pe([Me({title:"Update Now",subtitle:"Click to download the latest version."},{icon:"DOWN_ARROW"},[{customAction:{action:"UPDATE_DOWNLOAD",parameters:e.assets[0].browser_download_url}},{signalAction:{signal:"POPUP_BACK"}}]),Me({title:"Remind Me Later",subtitle:"Check for updates later."},{icon:"SEARCH_HISTORY"},[{customAction:{action:"UPDATE_REMIND_LATER",parameters:a+86400}},{signalAction:{signal:"POPUP_BACK"}}])]),"tt-update-modal",!1)):(console.info("You are using the latest version of TizenTube."),t&&Ge("TizenTube is up to date",`You are using the latest version (${n}) of TizenTube Cobalt.`,null))}).catch(t=>{console.error("Error fetching the latest release:",t),Ge("TizenTube update check failed","Could not check for updates.",null)})}function tr(t,n){for(var a in window._yttv)if(window._yttv[a]&&window._yttv[a].instance&&window._yttv[a].instance.resolveCommand)return window._yttv[a].instance.resolveCommand(t,n)}function nr(t,n){switch(t){case"SETTINGS_UPDATE":Ye(!0,n);break;case"OPTIONS_SHOW":!function(t,n){if("customUI"!==n){var a=[];if(void 0!==t.arrayToEdit){var e,r=we(t.arrayToEdit),i=L(t.options);try{for(i.s();!(e=i.n()).done;){var s=e.value;a.push(Me({title:s.name,subtitle:s.subtitle},{icon:s.icon?s.icon:"CHEVRON_DOWN",secondaryIcon:r.includes(s.value)?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:t.arrayToEdit},arrayValue:s.value}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:t.options,selectedIndex:t.options.indexOf(s),update:!0,menuId:t.menuId,arrayToEdit:t.arrayToEdit,menuHeader:t.menuHeader}}}]))}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=0,l=L(t.options);try{for(l.s();!(o=l.n()).done;){var c,d,m,h=o.value;if(h.compactLinkRenderer)a.push(h),u++;else{var p=null!==h.key&&void 0!==h.key,g=we(p?h.key:h.value);a.push(Me({title:h.name,subtitle:h.subtitle},{icon:h.icon?h.icon:"CHEVRON_DOWN",secondaryIcon:p?g===h.value?"RADIO_BUTTON_CHECKED":"RADIO_BUTTON_UNCHECKED":null===h.value?"CHEVRON_RIGHT":g?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},null===h.value?[{customAction:{action:"OPTIONS_SHOW",parameters:{options:h.options,selectedIndex:0,update:!(null===(c=h.options)||void 0===c||!c.title)&&"customUI",menuId:h.menuId,arrayToEdit:h.arrayToEdit,menuHeader:h.menuHeader}}}]:null!==h.key&&void 0!==h.key?[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:h.key},stringValue:h.value}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:t.options,selectedIndex:u,update:null===(d=t.options)||void 0===d||!d.title||"customUI",menuId:t.menuId,arrayToEdit:t.arrayToEdit,menuHeader:t.menuHeader}}}]:[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:h.value},boolValue:!g}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:t.options,selectedIndex:u,update:null===(m=t.options)||void 0===m||!m.title||"customUI",menuId:t.menuId,arrayToEdit:t.arrayToEdit,menuHeader:t.menuHeader}}}])),u++}}}catch(t){l.e(t)}finally{l.f()}}Se(t.menuHeader?t.menuHeader:"TizenTube Settings",Pe(a,t.selectedIndex),t.menuId||"tt-settings-options",n)}else{var f=t.options;Se({title:f.title,subtitle:f.subtitle},f.content,"tt-settings-support",!1)}}(n,n.update);break;case"SKIP":var a=document.createEvent("Event");a.initEvent("keydown",!0,!0),a.keyCode=27,a.which=27,document.dispatchEvent(a),document.querySelector("video").currentTime=n.time;break;case"TT_SETTINGS_SHOW":Ye();break;case"TT_SPEED_SETTINGS_SHOW":Je();break;case"UPDATE_REMIND_LATER":De("dontCheckUpdateUntil",n);break;case"UPDATE_DOWNLOAD":window.h5vcc.tizentube.InstallAppFromURL(n),Ge("TizenTube Update","Downloading update, please wait...");break;case"SET_PLAYER_SPEED":var e=Number(n);document.querySelector("video").playbackRate=e;break;case"ENTER_PIP":!function(){if(Ce){var t=Math.floor(document.querySelector("video").currentTime),n=document.querySelector("video"),a=document.querySelector("ytlr-player"),e=document.querySelector("ytlr-player-container"),r=new MutationObserver(i=>{i.forEach(i=>{if("class"===i.attributeName&&!a.classList.contains("ytLrPlayerEnabled")){function s(){e.style.zIndex="10",a.style.display="block",a.style.backgroundColor="rgba(0,0,0,0)"}function o(){n.style.removeProperty("inset");var t=window.innerWidth/3.5,a=window.innerHeight/3.5;n.style.width=`${t}px`,n.style.height=`${a}px`,n.style.top="68vh",n.style.left="68vw",window.isPipPlaying=!0,n.removeEventListener("play",o)}s(),setTimeout(s,500),n.addEventListener("play",o),r.disconnect(),setTimeout(()=>{Ce.loadedPlaybackConfig.watchEndpoint.startTimeSeconds=t,Ce.loadVideo(Ce.loadedPlaybackConfig)},1e3)}})});r.observe(a,{attributes:!0}),tr({signalAction:{signal:"HISTORY_BACK"}})}}();break;case"SHOW_TOAST":Ge("TizenTube",n);break;case"ADD_TO_QUEUE":window.queuedVideos.videos.push(n),Ge("TizenTube","Video added to queue.");break;case"CLEAR_QUEUE":window.queuedVideos.videos=[],Ge("TizenTube","Video queue cleared.");break;case"CHECK_FOR_UPDATES":$e(!0)}}var ar=JSON.parse;for(var er in JSON.parse=function(){var t,n,a,e,r,i,s,o,u,l,c,d,m,h,p,g,f=ar.apply(this,arguments),b=we("enableAdBlock");if(f.adPlacements&&b&&(f.adPlacements=[]),f.playerAds&&b&&(f.playerAds=!1),f.adSlots&&b&&(f.adSlots=[]),f.paidContentOverlay&&!we("enablePaidPromotionOverlay")&&(f.paidContentOverlay=null),null!=f&&null!==(t=f.streamingData)&&void 0!==t&&t.adaptiveFormats&&"any"!==we("videoPreferredCodec")){var y=we("videoPreferredCodec");f.streamingData.adaptiveFormats.find(t=>t.mimeType.includes(y))&&(f.streamingData.adaptiveFormats=f.streamingData.adaptiveFormats.filter(t=>!!t.mimeType.startsWith("audio/")||t.mimeType.includes(y)))}if(null!=f&&null!==(n=f.contents)&&void 0!==n&&null!==(n=n.tvBrowseRenderer)&&void 0!==n&&null!==(n=n.content)&&void 0!==n&&null!==(n=n.tvSurfaceContentRenderer)&&void 0!==n&&null!==(n=n.content)&&void 0!==n&&null!==(n=n.sectionListRenderer)&&void 0!==n&&n.contents){if(b){f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents=f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents.filter(t=>!t.adSlotRenderer);var k,v=L(f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents);try{for(v.s();!(k=v.n()).done;){var w=k.value;w.shelfRenderer&&(w.shelfRenderer.content.horizontalListRenderer.items=w.shelfRenderer.content.horizontalListRenderer.items.filter(t=>!t.adSlotRenderer))}}catch(t){v.e(t)}finally{v.f()}}rr(f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents)}(f.endscreen&&we("enableHideEndScreenCards")&&(f.endscreen=null),f.messages&&Array.isArray(f.messages)&&!we("enableYouThereRenderer")&&(f.messages=f.messages.filter(t=>!(null!=t&&t.youThereRenderer))),!Array.isArray(f)&&null!=f&&f.entries&&b)&&(f.entries=null===(d=f.entries)||void 0===d?void 0:d.filter(t=>{var n;return!(null!=t&&null!==(n=t.command)&&void 0!==n&&null!==(n=n.reelWatchEndpoint)&&void 0!==n&&null!==(n=n.adClientParams)&&void 0!==n&&n.isAd)}));if(null!=f&&null!==(a=f.title)&&void 0!==a&&a.runs&&(m=f,p=function(t,n,a){var e={settingCategoryCollectionRenderer:{items:n,categoryId:"tizentube_category",focused:!1,trackingParams:"null"}};return a&&(e.settingCategoryCollectionRenderer.title={runs:[{text:a}]}),e}(0,[{settingActionRenderer:{title:{runs:[{text:h="TizenTube Settings"}]},serviceEndpoint:{customAction:{action:"TT_SETTINGS_SHOW",parameters:[]}},summary:{runs:[{text:"Open TizenTube Settings"}]},trackingParams:"null",actionLabel:{runs:[{text:h}]},itemId:"tizentube_open_action",thumbnail:{thumbnails:[{url:"https://www.gstatic.com/ytlr/img/parent_code.png"}]}}}]),m.items.unshift(p)),null!=f&&null!==(e=f.contents)&&void 0!==e&&null!==(e=e.sectionListRenderer)&&void 0!==e&&e.contents&&rr(f.contents.sectionListRenderer.contents),null!=f&&null!==(r=f.continuationContents)&&void 0!==r&&null!==(r=r.sectionListContinuation)&&void 0!==r&&r.contents&&rr(f.continuationContents.sectionListContinuation.contents),null!=f&&null!==(i=f.continuationContents)&&void 0!==i&&null!==(i=i.horizontalListContinuation)&&void 0!==i&&i.items&&(sr(f.continuationContents.horizontalListContinuation.items),or(f.continuationContents.horizontalListContinuation.items),ur(f.continuationContents.horizontalListContinuation.items),f.continuationContents.horizontalListContinuation.items=lr(f.continuationContents.horizontalListContinuation.items)),null!=f&&null!==(s=f.contents)&&void 0!==s&&null!==(s=s.tvBrowseRenderer)&&void 0!==s&&null!==(s=s.content)&&void 0!==s&&null!==(s=s.tvSecondaryNavRenderer)&&void 0!==s&&s.sections){var D,A=L(f.contents.tvBrowseRenderer.content.tvSecondaryNavRenderer.sections);try{for(A.s();!(D=A.n()).done;){var C,N=L(D.value.tvSecondaryNavSectionRenderer.tabs);try{for(N.s();!(C=N.n()).done;){rr(C.value.tabRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents)}}catch(t){N.e(t)}finally{N.f()}}}catch(t){A.e(t)}finally{A.f()}}if(null!=f&&null!==(o=f.contents)&&void 0!==o&&null!==(o=o.singleColumnWatchNextResults)&&void 0!==o&&null!==(o=o.pivot)&&void 0!==o&&o.sectionListRenderer&&(rr(f.contents.singleColumnWatchNextResults.pivot.sectionListRenderer.contents,!1),window.queuedVideos.videos.length>0)){var x=window.queuedVideos.videos.slice();x.unshift({tileRenderer:{contentType:"TILE_CONTENT_TYPE_VIDEO",metadata:{tileMetadataRenderer:{title:{simpleText:"Clear Queue"}}},onSelectCommand:{customAction:{action:"CLEAR_QUEUE"}},style:"TILE_STYLE_YTLR_DEFAULT"}}),f.contents.singleColumnWatchNextResults.pivot.sectionListRenderer.contents.unshift(function(t,n){return{shelfRenderer:{shelfHeaderRenderer:{title:{simpleText:t}},tvhtml5ShelfRendererType:"TVHTML5_SHELF_RENDERER_TYPE_GRID",content:{horizontalListRenderer:{items:n,selectedIndex:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,visibleItemCount:3}}}}}("Queued Videos",x,-1!==x.findIndex(t=>t.contentId===window.queuedVideos.lastVideoId)?x.findIndex(t=>t.contentId===window.queuedVideos.lastVideoId):0))}if(we("sponsorBlockManualSkips").length>0&&null!=f&&null!==(u=f.playerOverlays)&&void 0!==u&&u.playerOverlayRenderer){var G,S=we("sponsorBlockManualSkips"),P=[];if(null!==(G=window)&&void 0!==G&&null!==(G=G.sponsorblock)&&void 0!==G&&G.segments){var M,I=L(window.sponsorblock.segments);try{for(I.s();!(M=I.n()).done;){var E=M.value;if(S.includes(E.category)){var T=Ie(`Skip ${E.category}`,"SKIP_NEXT",{clickTrackingParams:null,showEngagementPanelEndpoint:{customAction:{action:"SKIP",parameters:{time:E.segment[1]}}}},1e3*E.segment[0],1e3*E.segment[1]-1e3*E.segment[0]);P.push(T)}}}catch(t){I.e(t)}finally{I.f()}f.playerOverlays.playerOverlayRenderer.timelyActionRenderers=P}}else null!=f&&null!==(l=f.playerOverlays)&&void 0!==l&&l.playerOverlayRenderer&&(f.playerOverlays.playerOverlayRenderer.timelyActionRenderers=[]);if(null!=f&&null!==(c=f.transportControls)&&void 0!==c&&null!==(c=c.transportControlsRenderer)&&void 0!==c&&c.promotedActions&&we("enableSponsorBlockHighlight")&&(null!==(g=window)&&void 0!==g&&null!==(g=g.sponsorblock)&&void 0!==g&&g.segments)){var _=window.sponsorblock.segments.find(t=>"poi_highlight"===t.category);_&&f.transportControls.transportControlsRenderer.promotedActions.push({type:"TRANSPORT_CONTROLS_BUTTON_TYPE_SPONSORBLOCK_HIGHLIGHT",button:{buttonRenderer:ze(!1,"Skip to highlight","SKIP_NEXT",{clickTrackingParams:null,customAction:{action:"SKIP",parameters:{time:_.segment[0]}}})}})}return f},window.JSON.parse=JSON.parse,window._yttv)window._yttv[er]&&window._yttv[er].JSON&&window._yttv[er].JSON.parse&&(window._yttv[er].JSON.parse=JSON.parse);function rr(t){var n,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=L(t);try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r.shelfRenderer){var i,s,o,u=null===(i=r.shelfRenderer.content)||void 0===i||null===(i=i.horizontalListRenderer)||void 0===i?void 0:i.items,l=null===(s=r.shelfRenderer.content)||void 0===s||null===(s=s.gridRenderer)||void 0===s?void 0:s.items,c=null===(o=r.richShelfRenderer)||void 0===o||null===(o=o.content)||void 0===o||null===(o=o.richGridRenderer)||void 0===o?void 0:o.contents;if(u&&u.length&&(sr(u),or(u),ur(u),a&&ir(u),r.shelfRenderer.content.horizontalListRenderer.items=lr(u)),l&&l.length&&(sr(l),or(l),ur(l),a&&ir(l),r.shelfRenderer.content.gridRenderer.items=lr(l)),c&&c.length&&(sr(c),or(c),ur(c),a&&ir(c),r.richShelfRenderer=r.richShelfRenderer||{},r.richShelfRenderer.content=r.richShelfRenderer.content||{},r.richShelfRenderer.content.richGridRenderer=r.richShelfRenderer.content.richGridRenderer||{},r.richShelfRenderer.content.richGridRenderer.contents=lr(c)),!we("enableShorts")){if("TVHTML5_SHELF_RENDERER_TYPE_SHORTS"===r.shelfRenderer.tvhtml5ShelfRendererType){t.splice(t.indexOf(r),1);continue}r.shelfRenderer.content.horizontalListRenderer.items=r.shelfRenderer.content.horizontalListRenderer.items.filter(t=>{var n;return"TVHTML5_TILE_RENDERER_TYPE_SHORTS"!==(null===(n=t.tileRenderer)||void 0===n?void 0:n.tvhtml5ShelfRendererType)})}}else try{var d,m,h=[];if(null!=r&&null!==(d=r.richShelfRenderer)&&void 0!==d&&null!==(d=d.content)&&void 0!==d&&null!==(d=d.richGridRenderer)&&void 0!==d&&d.contents&&h.push(r.richShelfRenderer.content.richGridRenderer.contents),null!=r&&null!==(m=r.sectionListRenderer)&&void 0!==m&&m.contents){var p,g=L(r.sectionListRenderer.contents);try{for(g.s();!(p=g.n()).done;){var f,b,y=p.value;null!=y&&null!==(f=y.shelfRenderer)&&void 0!==f&&null!==(f=f.content)&&void 0!==f&&null!==(f=f.horizontalListRenderer)&&void 0!==f&&f.items&&h.push(y.shelfRenderer.content.horizontalListRenderer.items),null!=y&&null!==(b=y.shelfRenderer)&&void 0!==b&&null!==(b=b.content)&&void 0!==b&&null!==(b=b.gridRenderer)&&void 0!==b&&b.items&&h.push(y.shelfRenderer.content.gridRenderer.items)}}catch(t){g.e(t)}finally{g.f()}}for(var k=0,v=h;k<v.length;k++){var w=v[k];if(w&&Array.isArray(w)){sr(w),or(w),ur(w),a&&ir(w);var D=lr(w);w.splice(0,w.length,...D)}}}catch(t){console.warn("processShelves: defensive handling failed",t)}}}catch(t){e.e(t)}finally{e.f()}}function ir(t){if(we("enablePreviews")){var n,a=L(t);try{for(a.s();!(n=a.n()).done;){var e=n.value;if(e.tileRenderer){var r,i=e.tileRenderer.onSelectCommand;if(null!==(r=e.tileRenderer)&&void 0!==r&&null!==(r=r.onFocusCommand)&&void 0!==r&&r.playbackEndpoint)continue;e.tileRenderer.onFocusCommand={startInlinePlaybackCommand:{blockAdoption:!0,caption:!1,delayMs:3e3,durationMs:4e4,muted:!1,restartPlaybackBeforeSeconds:10,resumeVideo:!0,playbackEndpoint:i}}}}}catch(t){a.e(t)}finally{a.f()}}}function sr(t){var n,a=L(t);try{var e=function(){var a=n.value;if(a.adSlotRenderer){var e=t.indexOf(a);return t.splice(e,1),0}if(!a.tileRenderer)return 0;if(we("enableDeArrow")){var r=a.tileRenderer.contentId;fetch(`https://sponsor.ajay.app/api/branding?videoID=${r}`).then(t=>t.json()).then(t=>{if(t.titles.length>0){var n=t.titles.reduce((t,n)=>t.votes>n.votes?t:n);a.tileRenderer.metadata.tileMetadataRenderer.title.simpleText=n.title}if(t.thumbnails.length>0&&we("enableDeArrowThumbnails")){var e=t.thumbnails.reduce((t,n)=>t.votes>n.votes?t:n);e.timestamp&&(a.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails=[{url:`https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${r}&time=${e.timestamp}`,width:1280,height:640}])}}).catch(()=>{})}};for(a.s();!(n=a.n()).done;)e()}catch(t){a.e(t)}finally{a.f()}}function or(t){var n,a=L(t);try{for(a.s();!(n=a.n()).done;){var e=n.value;if(e.tileRenderer&&("TILE_STYLE_YTLR_DEFAULT"===e.tileRenderer.style&&we("enableHqThumbnails"))){var r=e.tileRenderer.onSelectCommand.watchEndpoint.videoId,i=e.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails[0].url.split("?")[1];e.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails=[{url:`https://i.ytimg.com/vi/${r}/sddefault.jpg${i?`?${i}`:""}`,width:640,height:480}]}}}catch(t){a.e(t)}finally{a.f()}}function ur(t){var n,a=L(t);try{for(a.s();!(n=a.n()).done;){var e=n.value;if(e.tileRenderer&&"TILE_STYLE_YTLR_DEFAULT"===e.tileRenderer.style)if(e.tileRenderer.onLongPressCommand)e.tileRenderer.onLongPressCommand.showMenuCommand.menu.menuRenderer.items.push(Te("Add to Queue",{clickTrackingParams:null,playlistEditEndpoint:{customAction:{action:"ADD_TO_QUEUE",parameters:e}}}));else if(we("enableLongPress")){var r=e.tileRenderer.metadata.tileMetadataRenderer.lines[0].lineRenderer.items[0].lineItemRenderer.text,i=Ee({videoId:e.tileRenderer.contentId,thumbnails:e.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails,title:e.tileRenderer.metadata.tileMetadataRenderer.title.simpleText,subtitle:r.runs?r.runs[0].text:r.simpleText,watchEndpointData:e.tileRenderer.onSelectCommand.watchEndpoint,item:e});e.tileRenderer.onLongPressCommand=i}}}catch(t){a.e(t)}finally{a.f()}}function lr(t){if(!Array.isArray(t))return t;var n,a,e,r=we("hideWatchedVideosPages")||[],i=(n=[],a=location.hash?location.hash.substring(1):"",((e=(a+" "+(location.pathname||"")+" "+location.search).toLowerCase()).includes("/feed/subscriptions")||e.includes("subscriptions")||e.includes("abos"))&&n.push("subscriptions"),(e.includes("/feed/library")||e.includes("library")||e.includes("mediathek"))&&n.push("library"),(e.includes("/playlist")||e.includes("list="))&&n.push("playlist"),(e.includes("/results")||e.includes("/search")||e.includes("search"))&&n.push("search"),(""===e||e.includes("/home")||e.includes("browse")||e.includes("/"))&&n.push("home"),(a||"").split(/[\/?&=#]/).filter(Boolean).forEach(t=>n.push(t)),n),s=Array.isArray(r)&&r.length>0;return t.filter(t=>{if(!t)return!1;if(!(t.tileRenderer||t.playlistVideoRenderer||t.compactVideoRenderer||t.gridVideoRenderer||t.videoRenderer))return!0;if(s&&!r.map(t=>String(t).toLowerCase()).some(t=>i.some(n=>n.includes(t)||t.includes(n))))return!0;var n=function(t){for(var n,a,e,r,i,s=0,o=[null==t||null===(n=t.tileRenderer)||void 0===n||null===(n=n.header)||void 0===n||null===(n=n.tileHeaderRenderer)||void 0===n?void 0:n.thumbnailOverlays,null==t||null===(a=t.playlistVideoRenderer)||void 0===a?void 0:a.thumbnailOverlays,null==t||null===(e=t.compactVideoRenderer)||void 0===e?void 0:e.thumbnailOverlays,null==t||null===(r=t.gridVideoRenderer)||void 0===r?void 0:r.thumbnailOverlays,null==t||null===(i=t.videoRenderer)||void 0===i?void 0:i.thumbnailOverlays];s<o.length;s++){var u=o[s];if(Array.isArray(u)){var l=u.find(t=>t&&t.thumbnailOverlayResumePlaybackRenderer);if(l&&l.thumbnailOverlayResumePlaybackRenderer)return l.thumbnailOverlayResumePlaybackRenderer}}for(var c=0,d=Object.keys(t);c<d.length;c++){var L=t[d[c]];if(L&&"object"===f(L)&&Array.isArray(L.thumbnailOverlays)){var m=L.thumbnailOverlays.find(t=>t&&t.thumbnailOverlayResumePlaybackRenderer);if(m&&m.thumbnailOverlayResumePlaybackRenderer)return m.thumbnailOverlayResumePlaybackRenderer}}return null}(t);if(!n)return!0;var a=Number(n.percentDurationWatched||0);return!(!(i.includes("playlist")||i.includes("playlists")||i.includes("mediathek"))||we("enableHideWatchedInPlaylists"))||a<=Number(we("hideWatchedVideosThreshold")||0)})}var cr=function t(n){function a(t,n){return t>>>n|t<<32-n}for(var e,r,i=Math.pow,s=i(2,32),o="length",u="",l=[],c=8*n[o],d=t.h=t.h||[],L=t.k=t.k||[],m=L[o],h={},p=2;m<64;p++)if(!h[p]){for(e=0;e<313;e+=p)h[e]=p;d[m]=i(p,.5)*s|0,L[m++]=i(p,1/3)*s|0}for(n+="€";n[o]%64-56;)n+="\0";for(e=0;e<n[o];e++){if((r=n.charCodeAt(e))>>8)return;l[e>>2]|=r<<(3-e)%4*8}for(l[l[o]]=c/s|0,l[l[o]]=c,r=0;r<l[o];){var g=l.slice(r,r+=16),f=d;for(d=d.slice(0,8),e=0;e<64;e++){var b=g[e-15],y=g[e-2],k=d[0],v=d[4],w=d[7]+(a(v,6)^a(v,11)^a(v,25))+(v&d[5]^~v&d[6])+L[e]+(g[e]=e<16?g[e]:g[e-16]+(a(b,7)^a(b,18)^b>>>3)+g[e-7]+(a(y,17)^a(y,19)^y>>>10)|0);(d=[w+((a(k,2)^a(k,13)^a(k,22))+(k&d[1]^k&d[2]^d[1]&d[2]))|0].concat(d))[4]=d[4]+w|0}for(e=0;e<8;e++)d[e]=d[e]+f[e]|0}for(e=0;e<8;e++)for(r=3;r+1;r--){var D=d[e]>>8*r&255;u+=(D<16?0:"")+D.toString(16)}return u},dr={sponsor:{color:"#00d400",opacity:"0.7",name:"sponsored segment"},intro:{color:"#00ffff",opacity:"0.7",name:"intro"},outro:{color:"#0202ed",opacity:"0.7",name:"outro"},interaction:{color:"#cc00ff",opacity:"0.7",name:"interaction reminder"},selfpromo:{color:"#ffff00",opacity:"0.7",name:"self-promotion"},preview:{color:"#008fd6",opacity:"0.7",name:"recap or preview"},filler:{color:"#7300FF",opacity:"0.9",name:"tangents"},music_offtopic:{color:"#ff9900",opacity:"0.7",name:"non-music part"},poi_highlight:{color:"#9b044c",opacity:"0.7",name:"highlight"}};class Lr{constructor(t){m(this,"video",null),m(this,"active",!0),m(this,"attachVideoTimeout",null),m(this,"nextSkipTimeout",null),m(this,"sliderInterval",null),m(this,"observer",null),m(this,"scheduleSkipHandler",null),m(this,"durationChangeHandler",null),m(this,"segments",null),m(this,"skippableCategories",[]),m(this,"manualSkippableCategories",[]),m(this,"skippedCategories",new Map),this.videoID=t}init(){var t,n=this;return(t=h().m(function t(){var a,e,r,i,s;return h().w(function(t){for(;;)switch(t.n){case 0:return a=cr(n.videoID).substring(0,4),e=["sponsor","intro","outro","interaction","selfpromo","preview","filler","music_offtopic","poi_highlight"],t.n=1,fetch(`https://sponsor.ajay.app/api/skipSegments/${a}?categories=${encodeURIComponent(JSON.stringify(e))}`);case 1:return r=t.v,t.n=2,r.json();case 2:if(i=t.v,s=i.find(t=>t.videoID===n.videoID),console.info(n.videoID,"Got it:",s),s&&s.segments&&s.segments.length){t.n=3;break}return console.info(n.videoID,"No segments found."),t.a(2);case 3:n.segments=s.segments,n.manualSkippableCategories=we("sponsorBlockManualSkips"),n.skippableCategories=n.getSkippableCategories(),n.scheduleSkipHandler=()=>{var t=document.querySelector('div[idomkey="slider"]').getBoundingClientRect();!document.querySelector('div[idomkey="Metadata-Section"]')&&n.segmentsoverlay.style.setProperty("top",`${t.top}px`,"important"),n.scheduleSkip()},n.durationChangeHandler=()=>n.buildOverlay(),n.attachVideo(),n.buildOverlay();case 4:return t.a(2)}},t)}),function(){var n=this,a=arguments;return new Promise(function(e,r){var i=t.apply(n,a);function s(t){o(i,e,r,s,u,"next",t)}function u(t){o(i,e,r,s,u,"throw",t)}s(void 0)})})()}getSkippableCategories(){var t=[];return we("enableSponsorBlockSponsor")&&t.push("sponsor"),we("enableSponsorBlockIntro")&&t.push("intro"),we("enableSponsorBlockOutro")&&t.push("outro"),we("enableSponsorBlockInteraction")&&t.push("interaction"),we("enableSponsorBlockSelfPromo")&&t.push("selfpromo"),we("enableSponsorBlockPreview")&&t.push("preview"),we("enableSponsorBlockFiller")&&t.push("filler"),we("enableSponsorBlockMusicOfftopic")&&t.push("music_offtopic"),t}attachVideo(){if(clearTimeout(this.attachVideoTimeout),this.attachVideoTimeout=null,this.video=document.querySelector("video"),!this.video)return console.info(this.videoID,"No video yet..."),void(this.attachVideoTimeout=setTimeout(()=>this.attachVideo(),100));console.info(this.videoID,"Video found, binding..."),this.video.addEventListener("play",this.scheduleSkipHandler),this.video.addEventListener("pause",this.scheduleSkipHandler),this.video.addEventListener("timeupdate",this.scheduleSkipHandler),this.video.addEventListener("durationchange",this.durationChangeHandler)}buildOverlay(){if(this.segmentsoverlay)console.info("Overlay already built");else if(this.video&&this.video.duration){var t=this.video.duration,n=document.querySelector('div[idomkey="slider"]');this.segmentsoverlay=document.createElement("div"),this.segmentsoverlay.classList.add("ytLrProgressBarSlider","ytLrProgressBarSliderRectangularProgressBar"),this.segmentsoverlay.style.setProperty("z-index","10","important"),this.segmentsoverlay.style.setProperty("background-color","rgba(0, 0, 0, 0)","important"),this.segmentsoverlay.style.setProperty("width","72rem","important"),this.segmentsoverlay.style.setProperty("left","4rem","important");var a=n.getBoundingClientRect();if(!n.classList.contains("ytLrProgressBarSlider")){for(var e=0;e<n.classList.length;e++)this.segmentsoverlay.classList.add(n.classList[e]);this.segmentsoverlay.style.setProperty("height",`${a.height}px`,"important"),this.segmentsoverlay.style.setProperty("bottom",a.bottom-a.top+"px","important")}this.segments.forEach(n=>{var a=g(n.segment,2),e=a[0],r=a[1],i=dr[n.category]||{color:"blue",opacity:.7},s=t?100*e/t:0,o=t?100*(r-e)/t:0,u=document.createElement("div");u.style.setProperty("background-color",i.color,"important"),u.style.setProperty("opacity",i.opacity,"important"),u.style.setProperty("height","100%","important"),u.style.setProperty("width",`${"poi_highlight"===n.category?1:o}%`,"important"),u.style.setProperty("left",`${s}%`,"important"),u.style.setProperty("position","absolute","important"),console.info("Generated element",u,"from",n),this.segmentsoverlay.appendChild(u)}),this.observer=new MutationObserver(t=>{t.forEach(t=>{if(t.removedNodes){var n,a=L(t.removedNodes);try{for(a.s();!(n=a.n()).done;){n.value===this.segmentsoverlay&&(console.info("bringing back segments overlay"),this.slider.appendChild(this.segmentsoverlay))}}catch(t){a.e(t)}finally{a.f()}}"false"===document.querySelector("ytlr-progress-bar").getAttribute("hybridnavfocusable")?this.segmentsoverlay.style.setProperty("display","none","important"):this.segmentsoverlay.style.setProperty("display","block","important")})}),this.sliderInterval=setInterval(()=>{this.slider=document.querySelector("ytlr-redux-connect-ytlr-progress-bar"),this.slider&&(clearInterval(this.sliderInterval),this.sliderInterval=null,this.observer.observe(this.slider,{childList:!0,subtree:!0}),this.slider.appendChild(this.segmentsoverlay))},500)}else console.info("No video duration yet")}scheduleSkip(){if(clearTimeout(this.nextSkipTimeout),this.nextSkipTimeout=null,this.active)if(this.video.paused)console.info(this.videoID,"Currently paused, ignoring...");else{var t=this.segments.filter(t=>t.segment[0]>this.video.currentTime-.3&&t.segment[1]>this.video.currentTime-.3);if(t.sort((t,n)=>t.segment[0]-n.segment[0]),t.length){var n=g(t,1)[0],a=g(n.segment,2),e=a[0],r=a[1];console.info(this.videoID,"Scheduling skip of",n,"in",e-this.video.currentTime),this.nextSkipTimeout=setTimeout(()=>{var t;if(this.video.paused)console.info(this.videoID,"Currently paused, ignoring...");else if(this.skippableCategories.includes(n.category)){var a=(null===(t=dr[n.category])||void 0===t?void 0:t.name)||n.category;if(console.info(this.videoID,"Skipping",n),!this.manualSkippableCategories.includes(n.category)){var e=this.skippedCategories.get(n.UUID);if(e){if(e.count++,e.lastSkipped=Date.now(),this.skippedCategories.set(n.UUID,e),e.lastSkipped-e.firstSkipped<1e3)return void(e.hasShownToast||(Ge("SponsorBlock",`Not skipping ${a} (was skipped ${e.count} times)`),e.hasShownToast=!0,this.skippedCategories.set(n.UUID,e)))}else this.skippedCategories.set(n.UUID,{count:1,firstSkipped:Date.now(),lastSkipped:Date.now(),hasShownToast:!1});Ge("SponsorBlock",`Skipping ${a}`),this.video.duration-r<1?this.video.currentTime=r-1:this.video.currentTime=r,this.scheduleSkip()}}else console.info(this.videoID,"Segment",n.category,"is not skippable, ignoring...")},1e3*(e-this.video.currentTime))}else console.info(this.videoID,"No more segments")}else console.info(this.videoID,"No longer active, ignoring...")}destroy(){console.info(this.videoID,"Destroying"),this.active=!1,this.nextSkipTimeout&&(clearTimeout(this.nextSkipTimeout),this.nextSkipTimeout=null),this.attachVideoTimeout&&(clearTimeout(this.attachVideoTimeout),this.attachVideoTimeout=null),this.sliderInterval&&(clearInterval(this.sliderInterval),this.sliderInterval=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.segmentsoverlay&&(this.segmentsoverlay.remove(),this.segmentsoverlay=null),this.video&&(this.video.removeEventListener("play",this.scheduleSkipHandler),this.video.removeEventListener("pause",this.scheduleSkipHandler),this.video.removeEventListener("timeupdate",this.scheduleSkipHandler),this.video.removeEventListener("durationchange",this.durationChangeHandler)),this.skippedCategories.clear()}}window.sponsorblock=null,window.addEventListener("hashchange",()=>{var t=new URL(location.hash.substring(1),location.href).search.replace("?v=","").split("&")[0],n=t&&(!window.sponsorblock||window.sponsorblock.videoID!=t);if(console.info("hashchange",t,window.sponsorblock,window.sponsorblock?window.sponsorblock.videoID:null,n),n){if(window.sponsorblock){try{window.sponsorblock.destroy()}catch(t){console.warn("window.sponsorblock.destroy() failed!",t)}window.sponsorblock=null}we("enableSponsorBlock")?(window.sponsorblock=new Lr(t),window.sponsorblock.init()):console.info("SponsorBlock disabled, not loading")}},!1);var mr;mr||(mr=1,function(){if(!("navigate"in window)){var t={37:"left",38:"up",39:"right",40:"down"},n=null,a=null,e={element:null,rect:null},r=null;window.navigate=s,window.Element.prototype.spatialNavigationSearch=d,window.Element.prototype.focusableAreas=y,window.Element.prototype.getSpatialNavigationContainer=g,window.CSS&&CSS.registerProperty&&(""===window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-contain")&&CSS.registerProperty({name:"--spatial-navigation-contain",syntax:"auto | contain",inherits:!1,initialValue:"auto"}),""===window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-action")&&CSS.registerProperty({name:"--spatial-navigation-action",syntax:"auto | focus | scroll",inherits:!1,initialValue:"auto"}),""===window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-function")&&CSS.registerProperty({name:"--spatial-navigation-function",syntax:"normal | grid",inherits:!1,initialValue:"normal"})),Y(!1),window.addEventListener("load",()=>{i()})}function i(){window.addEventListener("keydown",e=>{var r=parent&&parent.__spatialNavigation__.keyMode||window.__spatialNavigation__.keyMode,i=document.activeElement,o=t[e.keyCode];if(9===e.keyCode&&(a=null),!(!r||"NONE"===r||"SHIFTARROW"===r&&!e.shiftKey||"ARROW"===r&&e.shiftKey||e.defaultPrevented)){var u={left:!0,up:!0,right:!0,down:!0};"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName||(u=function(n){var a=["email","date","month","number","time","week"],e=["password","text","search","tel","url",null],r=document.activeElement,i={left:!1,up:!1,right:!1,down:!1},s=t[n.keyCode];if(void 0===s)return i;if(!a.includes(r.getAttribute("type"))||"up"!==s&&"down"!==s)if(e.includes(r.getAttribute("type"))||"TEXTAREA"===r.nodeName){var o=r.selectionStart,u=r.selectionEnd;o===u&&(0===o&&(i.left=!0,i.up=!0),u===r.value.length&&(i.right=!0,i.down=!0))}else i[s]=!0;else i[s]=!0;return i}(e)),u[o]&&(e.preventDefault(),n=new Map,s(o),n=null,a=null)}}),document.addEventListener("mouseup",t=>{a={x:t.clientX,y:t.clientY}}),window.addEventListener("focusin",t=>{t.target!==window&&(e.element=t.target,e.rect=t.target.getBoundingClientRect())})}function s(t){var n=function(){var t=document.activeElement;if(!t||t===document.body&&!document.querySelector(":focus")){if(e.element&&t!==e.element){var n=window.getComputedStyle(e.element,null),a=["hidden","collapse"];if(e.element.disabled||a.includes(n.getPropertyValue("visibility")))return t=e.element}t=document.documentElement}if(!e.element||0!==Z(e.element).height&&0!==Z(e.element).width||(r=e.rect),!I(t)){var i=b(t);if(i&&(i===window||"auto"===w(i)))return i}return t}(),i=n,s=null;a&&(null===(s=document.elementFromPoint(a.x,a.y))&&(s=document.body),E(s)&&!C(s)?a=null:i=C(s)?s:s.getSpatialNavigationContainer()),i!==document&&i!==document.documentElement||(i=document.body||document.documentElement);var c=null;if((C(i)||"BODY"===i.nodeName)&&"INPUT"!==i.nodeName)if("IFRAME"===i.nodeName&&(i=i.contentDocument.documentElement),c=i,document.activeElement===n||document.activeElement===document.body&&n===document.documentElement){if("scroll"===w(i)){if(u(i,t))return}else if("focus"===w(i)){if(o(i.spatialNavigationSearch(t,{container:i,candidates:l(i,{mode:"all"})}),t))return}else if("auto"===w(i)&&(o(i.spatialNavigationSearch(t,{container:i}),t)||u(i,t)))return}else c=c.getSpatialNavigationContainer();var d=(c=i.getSpatialNavigationContainer()).parentElement?c.getSpatialNavigationContainer():null;if(d||window.location===window.parent.location||(d=window.parent.document.documentElement),"scroll"===w(c)){if(u(c,t))return}else"focus"===w(c)?D(i,c,d,t,"all"):"auto"===w(c)&&D(i,c,d,t,"visible")}function o(t,n){if(t){if(!k("beforefocus",t,null,n))return!0;var e=t.getSpatialNavigationContainer();return e!==window&&"focus"===w(e)?t.focus():t.focus({preventScroll:!0}),a=null,!0}return!1}function u(t,n){return G(t,n)&&!M(t,n)?(A(t,n),!0):!t.parentElement&&!P(t,n)&&(A(t.ownerDocument.documentElement,n),!0)}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{mode:"visible"},a=[];if(t.childElementCount>0){t.parentElement||(t=t.getElementsByTagName("body")[0]||document.body);var e,r=L(t.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;N(i)?a.push(i):E(i)?(a.push(i),!C(i)&&i.childElementCount&&(a=a.concat(l(i,{mode:"all"})))):i.childElementCount&&(a=a.concat(l(i,{mode:"all"})))}}catch(t){r.e(t)}finally{r.f()}}return"all"===n.mode?a:a.filter(T)}function c(t,n,a,e){var r=t;return e=e||r.getSpatialNavigationContainer(),m(r,a=!a||a.length<=0?l(e):a,n,e)}function d(t,n){var e,i=this,s=[],o=[],u=function(t){var n=t.getSpatialNavigationContainer(),a=n.focusableAreas(),e=[];return a.forEach(n=>{t!==n&&_(n,t)&&e.push(n)}),e}(i);n||(n={});var d=i.getSpatialNavigationContainer(),L=l(d),m=n.container||d;n.container&&d.contains(n.container)&&(L=L.concat(l(m)));var g=n.candidates&&n.candidates.length>0?n.candidates.filter(t=>m.contains(t)):L.filter(t=>m.contains(t)&&m!==t);if(g&&g.length>0){g.forEach(t=>{t!==i&&(i.contains(t)&&i!==t?s:o).push(t)});var f=u.filter(t=>!s.includes(t)),b=g.filter(t=>C(t)&&_(i,t)).map(t=>t.focusableAreas()).flat().filter(t=>t!==i);if(s=s.concat(f).filter(t=>m.contains(t)),(o=o.concat(b).filter(t=>m.contains(t))).length>0&&(o=c(i,t,o,m)),r&&(e=h(i,c(i,t,s,m),t)),s&&s.length>0&&"INPUT"!==i.nodeName&&(e=function(t,n,e){return p(t,n,e,a?q:O)}(i,s,t)),(e=e||h(i,o,t))&&N(e)){var y=l(e,{mode:"all"}),k=y.length>0?i.spatialNavigationSearch(t,{candidates:y,container:e}):null;k?e=k:E(e)||(g.splice(g.indexOf(e),1),e=g.length?i.spatialNavigationSearch(t,{candidates:g,container:m}):null)}return e}return null}function m(t,n,a,e){var i,s=t.getSpatialNavigationContainer();return void 0===a?n:(i=s.parentElement&&e!==s&&!T(t)?Z(s):r||Z(t),!C(t)&&"BODY"!==t.nodeName||"INPUT"===t.nodeName?n.filter(n=>{var r=Z(n),s="IFRAME"===n.nodeName?n.contentDocument.body:null;return e.contains(n)&&n!==t&&s!==t&&B(r,i,a)&&!z(i,r)}):n.filter(n=>{var r=Z(n);return e.contains(n)&&(t.contains(n)&&z(i,r)&&n!==t||B(r,i,a))}))}function h(t,n,a){var e,i,s=t.getSpatialNavigationContainer(),o=getComputedStyle(s).getPropertyValue("--spatial-navigation-function"),u=r||Z(t);return"grid"===o?((i=n.filter(t=>F(u,Z(t),a))).length>0&&(n=i),e=V):e=H,p(t,n,a,e)}function p(t,n,a,e){var i=null;window.location===window.parent.location||"BODY"!==t.nodeName&&"HTML"!==t.nodeName?i=r||t.getBoundingClientRect():((i=window.frameElement.getBoundingClientRect()).x=0,i.y=0);var s=Number.POSITIVE_INFINITY,o=[];if(n)for(var u=0;u<n.length;u++){var l=e(i,Z(n[u]),a);l<s?(s=l,o=[n[u]]):l===s&&o.push(n[u])}return 0===o.length?null:o.length>1&&e===V?p(t,o,a,K):o[0]}function g(){var t=this;do{if(!t.parentElement){t=window.location!==window.parent.location?window.parent.document.documentElement:window.document.documentElement;break}t=t.parentElement}while(!C(t));return t}function b(t){var n=t;do{if(!n.parentElement){n=window.location!==window.parent.location?window.parent.document.documentElement:window.document.documentElement;break}n=n.parentElement}while(!x(n)||!T(n));return n!==document&&n!==document.documentElement||(n=window),n}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mode:"visible"},n=this.parentElement?this:document.body,a=Array.prototype.filter.call(n.getElementsByTagName("*"),E);return"all"===t.mode?a:a.filter(T)}function k(t,n,a,e){if(["beforefocus","notarget"].includes(t)){var r=new CustomEvent("nav"+t,{bubbles:!0,cancelable:!0,detail:{causedTarget:a,dir:e}});return n.dispatchEvent(r)}}function v(t,n){return(t.style.getPropertyValue(`--${n}`)||"").trim()}function w(t){return v(t,"spatial-navigation-action")||"auto"}function D(t,n,a,e,r){for(var i={candidates:l(n,{mode:r}),container:n};a;){if(o(t.spatialNavigationSearch(e,i),e))return;if("visible"===r&&u(n,e))return;if(!k("notarget",n,t,e))return;n===document||n===document.documentElement?window.location!==window.parent.location&&(n=(t=window.frameElement).ownerDocument.documentElement):n=a,i={candidates:l(n,{mode:r}),container:n};var s=n.getSpatialNavigationContainer();a=s!==n?s:null}i={candidates:l(n,{mode:r}),container:n},!a&&n&&o(t.spatialNavigationSearch(e,i),e)||k("notarget",i.container,t,e)&&("auto"!==w(n)||"visible"!==r||u(n,e))}function A(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t)switch(n){case"left":t.scrollLeft-=40+a;break;case"right":t.scrollLeft+=40+a;break;case"up":t.scrollTop-=40+a;break;case"down":t.scrollTop+=40+a}}function C(t){return!t.parentElement||"IFRAME"===t.nodeName||x(t)||function(t){return"contain"===v(t,"spatial-navigation-contain")}(t)}function N(t){return"delegable"===v(t,"spatial-navigation-contain")}function x(t){var n=window.getComputedStyle(t,null),a=n.getPropertyValue("overflow-x"),e=n.getPropertyValue("overflow-y");return!!("visible"!==a&&"clip"!==a&&S(t,"left")||"visible"!==e&&"clip"!==e&&S(t,"down"))}function G(t,n){if(t&&"object"===f(t)){if(n&&"string"==typeof n){if(S(t,n)){var a=window.getComputedStyle(t,null),e=a.getPropertyValue("overflow-x"),r=a.getPropertyValue("overflow-y");switch(n){case"left":case"right":return"visible"!==e&&"clip"!==e&&"hidden"!==e;case"up":case"down":return"visible"!==r&&"clip"!==r&&"hidden"!==r}}return!1}return"HTML"===t.nodeName||"BODY"===t.nodeName||x(t)&&S(t)}}function S(t,n){if(t&&"object"===f(t)){if(!n||"string"!=typeof n)return t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight;switch(n){case"left":case"right":return t.scrollWidth>t.clientWidth;case"up":case"down":return t.scrollHeight>t.clientHeight}return!1}}function P(t,n){var a=!1;switch(n){case"left":a=0===t.scrollLeft;break;case"right":a=t.scrollWidth-t.scrollLeft-t.clientWidth===0;break;case"up":a=0===t.scrollTop;break;case"down":a=t.scrollHeight-t.scrollTop-t.clientHeight===0}return a}function M(t,n){if(G(t,n)){var a=t.scrollTop,e=t.scrollLeft,r=t.scrollHeight-t.clientHeight,i=t.scrollWidth-t.clientWidth;switch(n){case"left":return 0===e;case"right":return Math.abs(e-i)<=1;case"up":return 0===a;case"down":return Math.abs(a-r)<=1}}return!1}function I(t){var n=t.getBoundingClientRect(),a=b(t),e=null;return!(!z(e=a!==window?Z(a):new DOMRect(0,0,window.innerWidth,window.innerHeight),n)||!z(e,n))}function E(t){return!(t.tabIndex<0||function(t){return"A"===t.tagName&&null===t.getAttribute("href")&&null===t.getAttribute("tabIndex")}(t)||function(t){return!!["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(t.tagName)&&t.disabled}(t)||function(t){return t.inert&&!t.ownerDocument.documentElement.inert}(t)||!function(t){return!!j(t.parentElement)&&!(!j(t)||"0"===t.style.opacity||"0px"===window.getComputedStyle(t).height||"0px"===window.getComputedStyle(t).width)}(t))&&(!!(!t.parentElement||G(t)&&S(t)||t.tabIndex>=0)||void 0)}function T(t){return!t.parentElement||j(t)&&function(t){var n=Z(t);if("IFRAME"!==t.nodeName&&(n.top<0||n.left<0||n.top>t.ownerDocument.documentElement.clientHeight||n.left>t.ownerDocument.documentElement.clientWidth))return!1;var a=parseInt(t.offsetWidth)/10,e=parseInt(t.offsetHeight)/10;a=isNaN(a)?1:a,e=isNaN(e)?1:e;var r={middle:[(n.left+n.right)/2,(n.top+n.bottom)/2],leftTop:[n.left+a,n.top+e],rightBottom:[n.right-a,n.bottom-e]};for(var i in r){var s=t.ownerDocument.elementFromPoint(...r[i]);if(t===s||t.contains(s))return!0}return!1}(t)}function _(t,n){var a=Z(t),e=Z(n||t.getSpatialNavigationContainer());return!(a.left<e.left||a.right>e.right||a.top<e.top||a.bottom>e.bottom)}function j(t){var n=window.getComputedStyle(t,null),a=n.getPropertyValue("visibility");return"none"!==n.getPropertyValue("display")&&!["hidden","collapse"].includes(a)}function z(t,n){var a=t.left<=n.right&&t.right>=n.right,e=t.left<=n.left&&t.right>=n.left,r=t.top<=n.top&&t.bottom>=n.top,i=t.top<=n.bottom&&t.bottom>=n.bottom;return(a||e)&&(r||i)}function B(t,n,a){switch(a){case"left":return U(n,t);case"right":return U(t,n);case"up":return R(n,t);case"down":return R(t,n);default:return!1}}function U(t,n){return t.left>=n.right||t.left>=n.left&&t.right>n.right&&t.bottom>n.top&&t.top<n.bottom}function R(t,n){return t.top>=n.bottom||t.top>=n.top&&t.bottom>n.bottom&&t.left<n.right&&t.right>n.left}function F(t,n,a){switch(a){case"left":case"right":return t.bottom>n.top&&t.top<n.bottom;case"up":case"down":return t.right>n.left&&t.left<n.right;default:return!1}}function q(t,n,e){var r=X(e,a,n),i=Math.abs(r.entryPoint.x-r.exitPoint.x),s=Math.abs(r.entryPoint.y-r.exitPoint.y);return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}function O(t,n,a){var e={left:"right",right:"left",up:"bottom",down:"top"}[a];return Math.abs(t[e]-n[e])}function H(t,n,a){var e,r,i,s,o,u,l,c=0,d=0,L=X(a,t,n),m=Math.abs(L.entryPoint.x-L.exitPoint.x),h=Math.abs(L.entryPoint.y-L.exitPoint.y),p=Math.sqrt(Math.pow(m,2)+Math.pow(h,2)),g=(i=t,s=n,o={width:0,height:0,area:0},u=[Math.max(i.left,s.left),Math.max(i.top,s.top)],l=[Math.min(i.right,s.right),Math.min(i.bottom,s.bottom)],o.width=Math.abs(u[0]-l[0]),o.height=Math.abs(u[1]-l[1]),u[0]>=l[0]||u[1]>=l[1]||(o.area=Math.sqrt(o.width*o.height)),o),f=g.area;switch(a){case"left":case"right":F(t,n,a)?d=Math.min(g.height/t.height,1):c=t.height/2,e=30*(h+c),r=5*d;break;case"up":case"down":F(t,n,a)?d=Math.min(g.width/t.width,1):c=t.width/2,e=2*(m+c),r=5*d;break;default:e=0,r=0}return p+e-r-f}function K(t,n,a){var e=X(a,t,n),r=Math.abs(e.entryPoint.x-e.exitPoint.x),i=Math.abs(e.entryPoint.y-e.exitPoint.y);return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}function V(t,n,a){var e=X(a,t,n);return"left"===a||"right"===a?Math.abs(e.entryPoint.x-e.exitPoint.x):Math.abs(e.entryPoint.y-e.exitPoint.y)}function X(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"down",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r={entryPoint:{x:0,y:0},exitPoint:{x:0,y:0}};if(a){switch(r.exitPoint=n,t){case"left":r.entryPoint.x=e.right;break;case"up":r.entryPoint.y=e.bottom;break;case"right":r.entryPoint.x=e.left;break;case"down":r.entryPoint.y=e.top}switch(t){case"left":case"right":a.y<=e.top?r.entryPoint.y=e.top:a.y<e.bottom?r.entryPoint.y=a.y:r.entryPoint.y=e.bottom;break;case"up":case"down":a.x<=e.left?r.entryPoint.x=e.left:a.x<e.right?r.entryPoint.x=a.x:r.entryPoint.x=e.right}}else{switch(t){case"left":r.exitPoint.x=n.left,r.entryPoint.x=e.right<n.left?e.right:n.left;break;case"up":r.exitPoint.y=n.top,r.entryPoint.y=e.bottom<n.top?e.bottom:n.top;break;case"right":r.exitPoint.x=n.right,r.entryPoint.x=e.left>n.right?e.left:n.right;break;case"down":r.exitPoint.y=n.bottom,r.entryPoint.y=e.top>n.bottom?e.top:n.bottom}switch(t){case"left":case"right":R(n,e)?(r.exitPoint.y=n.top,r.entryPoint.y=e.bottom<n.top?e.bottom:n.top):R(e,n)?(r.exitPoint.y=n.bottom,r.entryPoint.y=e.top>n.bottom?e.top:n.bottom):(r.exitPoint.y=Math.max(n.top,e.top),r.entryPoint.y=r.exitPoint.y);break;case"up":case"down":U(n,e)?(r.exitPoint.x=n.left,r.entryPoint.x=e.right<n.left?e.right:n.left):U(e,n)?(r.exitPoint.x=n.right,r.entryPoint.x=e.left>n.right?e.left:n.right):(r.exitPoint.x=Math.max(n.left,e.left),r.entryPoint.x=r.exitPoint.x)}}return r}function Z(t){var a=n&&n.get(t);if(!a){var e=t.getBoundingClientRect();a={top:Number(e.top.toFixed(2)),right:Number(e.right.toFixed(2)),bottom:Number(e.bottom.toFixed(2)),left:Number(e.left.toFixed(2)),width:Number(e.width.toFixed(2)),height:Number(e.height.toFixed(2))},n&&n.set(t,a)}return a}function Y(t){var n=window.__spatialNavigation__&&window.__spatialNavigation__.keyMode;window.__spatialNavigation__=!1===t?W():Object.assign(W(),function(){function t(t,n){return G(t,n)&&!M(t,n)||!t.parentElement&&!P(t,n)}function n(n,a,e,r){var i=a,s=null;if(i!==document&&i!==document.documentElement||(i=document.body||document.documentElement),(C(i)||"BODY"===i.nodeName)&&"INPUT"!==i.nodeName){"IFRAME"===i.nodeName&&(i=i.contentDocument.body);var o=l(i,r);if(Array.isArray(o)&&o.length>0)return n?c(i,e,o):i.spatialNavigationSearch(e,{candidates:o});if(t(i,e))return n?[]:i}var u=i.getSpatialNavigationContainer(),d=u.parentElement?u.getSpatialNavigationContainer():null;for(d||window.location===window.parent.location||(d=window.parent.document.documentElement);d;){var L=m(i,l(u,r),e,u);if(Array.isArray(L)&&L.length>0){if(s=i.spatialNavigationSearch(e,{candidates:L,container:u}))return n?L:s}else{if(t(u,e))return n?[]:i;if(u===document||u===document.documentElement){if(u=window.document.documentElement,window.location!==window.parent.location){if(i=window.frameElement,!(u=window.parent.document.documentElement).parentElement){d=null;break}d=u.getSpatialNavigationContainer()}}else{if(E(u)&&(i=u),!(u=d).parentElement){d=null;break}d=u.getSpatialNavigationContainer()}}}if(!d&&u){var h=m(i,l(u,r),e,u);if(Array.isArray(h)&&h.length>0&&(s=i.spatialNavigationSearch(e,{candidates:h,container:u})))return n?h:s}if(t(u,e))return i}return{isContainer:C,isScrollContainer:x,isVisibleInScroller:I,findCandidates:n.bind(null,!0),findNextTarget:n.bind(null,!1),getDistanceFromTarget:(t,n,a)=>(C(t)||"BODY"===t.nodeName)&&"INPUT"!==t.nodeName&&l(t).includes(n)?O(Z(t),Z(n),a):H(Z(t),Z(n),a)}}()),window.__spatialNavigation__.keyMode=n,Object.seal(window.__spatialNavigation__)}function W(){return{enableExperimentalAPIs:Y,get keyMode(){return this._keymode?this._keymode:"ARROW"},set keyMode(t){this._keymode=["SHIFTARROW","ARROW","NONE"].includes(t)?t:"ARROW"},setStartingPoint:function(t,n){a=t&&n?{x:t,y:n}:null}}}}());var hr='.ytaf-ui-container {\n position: absolute;\n top: 10%;\n left: 10%;\n right: 10%;\n bottom: 10%;\n\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 20px;\n padding: 20px;\n font-size: 1.5rem;\n z-index: 1000;\n}\n\n.ytaf-ui-container :focus {\n outline: 4px red solid;\n}\n\n.ytaf-ui-container h1 {\n margin: 0;\n margin-bottom: 0.5em;\n text-align: center;\n}\n\n.ytaf-ui-container input[type=\'checkbox\'] {\n width: 1.4rem;\n height: 1.4rem;\n}\n\n.ytaf-ui-container input[type=\'radio\'] {\n width: 1.4rem;\n height: 1.4rem;\n}\n\n.ytaf-ui-container label {\n display: block;\n font-size: 1.4rem;\n}\n\n.ytaf-notification-container {\n position: absolute;\n right: 10px;\n bottom: 10px;\n font-size: 16pt;\n z-index: 1200;\n}\n\n.ytaf-notification-container .message {\n background: rgba(0, 0, 0, 0.7);\n color: white;\n padding: 1em;\n margin: 0.5em;\n transition: all 0.3s ease-in-out;\n opacity: 1;\n line-height: 1;\n border-right: 10px solid rgba(50, 255, 50, 0.3);\n display: inline-block;\n float: right;\n}\n\n.ytaf-notification-container .message-hidden {\n opacity: 0;\n margin: 0 0.5em;\n padding: 0 1em;\n line-height: 0;\n}\n\n/* Fixes transparency effect for the video player */\n\n.ytLrWatchDefaultShadow,\ndiv[idomkey="shadow"] {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.8) 90%) !important;\n background-color: rgba(0, 0, 0, 0.3) !important;\n display: block !important;\n height: 100% !important;\n pointer-events: none !important;\n position: absolute !important;\n width: 100% !important;\n}\n\n/* https://github.com/webosbrew/youtube-webos/commit/4fbe38a18df31ddd62b6cf15f141dd58e1d1a71d */\n.ytLrWatchDefault2025Shadow {\n background-color: rgba(11, 11, 11, 0.5) !important;\n}\n\n/* Fixes shorts having a black background */\n\n.ytLrTileHeaderRendererShorts {\n background-image: none !important;\n}\n\n/* Multiline support for strings in the UI */\n\n.ytLrOverlayPanelHeaderRendererSubtitle {\n white-space: pre-wrap !important;\n}\n\n/* Fixes SponsorBlock segments overlapping with the playhead */\n\n.ytLrProgressBarPlayhead {\n z-index: 1 !important;\n}\n\n.ytLrProgressBarPlayed {\n z-index: 1 !important;\n}\n\n.ytLrSearchBarSearchVoice {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n pointer-events: auto\n}\n\n.ytLrSearchVoiceHost {\n font-size: 3rem;\n}\n\n.ytLrSearchVoiceMicButtonHost {\n color: rgba(255, 255, 255, 0.7);\n}\n\n.ytLrSearchVoiceMicButtonHost {\n background-color: rgba(255, 255, 255, 0.1);\n border-radius: 50%;\n color: #f1f1f1;\n display: block;\n text-align: center;\n width: 1em;\n height: 1em;\n}\n\n.ytLrSearchVoiceMicButtonIcon {\n display: inline-block;\n font-size: .5em;\n height: .5em;\n width: .5em;\n height: 1em;\n width: 1em;\n margin-top: .5em;\n vertical-align: top !important;\n}\n\n.ytContribIconHost {\n display: inline-block;\n vertical-align: middle;\n}\n\n.ytContribIconTvArrowLeft::before {\n content: "\\e822";\n}\n\n.ytContribIconHost::before {\n font-family: "YouTube Icons Outlined";\n}',pr=document.createElement("style"),gr="";function fr(){gr=`\n ytlr-guide-response yt-focus-container {\n background-color: ${we("focusContainerColor")};\n }\n\n #container {\n background-color: ${we("routeColor")} !important;\n }\n`;var t=document.querySelector("style[nonce]");t?t.textContent+=gr:pr.textContent=gr}function br(){var t,n;for(var a in window._yttv)if(window._yttv[a]&&window._yttv[a].getInstance)if(window._yttv[a].toString().includes("ytlrActionRouter"))t=window._yttv[a].getInstance();else{var e,r=!1,i=window._yttv[a].getInstance(),s=L(Object.getOwnPropertyNames(Object.getPrototypeOf(i)));try{for(s.s();!(e=s.n()).done;){var o=e.value;"function"==typeof i[o]&&i[o].toString().includes("ytlrActionRouter")&&(n=i[o],r=!0)}}catch(t){s.e(t)}finally{s.f()}r&&(t=window._yttv[a].getInstance())}if(t){if(!n){var u,l=L(Object.getOwnPropertyNames(Object.getPrototypeOf(t)));try{for(l.s();!(u=l.n()).done;){var c=u.value;"function"==typeof t[c]&&t[c].toString().includes("ytlrActionRouter")&&(n=t[c])}}catch(t){l.e(t)}finally{l.f()}}if(n){var d;for(var m in window._yttv)window._yttv[m]&&"function"==typeof window._yttv[m]&&window._yttv[m].toString().includes("this.actionName")&&(d=window._yttv[m]);return{executeFunction:n.bind(t),commandFunction:d}}}}document.head.appendChild(pr),fr();var yr=setInterval(()=>{document.querySelector("video")&&(!function(){var t=document.querySelector("style[nonce]");if(t)t.textContent+=hr;else{var n=document.createElement("style");n.textContent=hr,document.head.appendChild(n)}if(we("enableFixedUI"))try{window.tectonicConfig.featureSwitches.isLimitedMemory=!1,window.tectonicConfig.clientData.legacyApplicationQuality="full-animation",window.tectonicConfig.featureSwitches.enableAnimations=!0,window.tectonicConfig.featureSwitches.enableOnScrollLinearAnimation=!0,window.tectonicConfig.featureSwitches.enableListAnimations=!0}catch(t){}window.__spatialNavigation__.keyMode="NONE";var a={37:"left",38:"up",39:"right",40:"down"},e=document.createElement("div");e.classList.add("ytaf-ui-container"),e.style.display="none",e.setAttribute("tabindex",0),e.addEventListener("focus",()=>console.info("uiContainer focused!"),!0),e.addEventListener("blur",()=>console.info("uiContainer blured!"),!0),e.addEventListener("keydown",t=>{if(console.info("uiContainer key event:",t.type,t.keyCode,t),404!==t.keyCode&&172!==t.keyCode){var n;if(t.keyCode in a)navigate(a[t.keyCode]);else{if(13===t.keyCode||32===t.keyCode){console.log("OK button pressed");var r=document.querySelector(":focus");return"checkbox"===r.type&&(r.checked=!r.checked,r.dispatchEvent(new Event("change"))),t.preventDefault(),void t.stopPropagation()}if(27===t.keyCode&&"text"!==document.querySelector(":focus").type)e.style.display="none",e.blur();else if("text"===document.querySelector(":focus").type&&27===t.keyCode){var i=document.querySelector(":focus");i.value=i.value.slice(0,-1)}}"Enter"!==t.key&&"Enter"!==(null===(n=t.Uc)||void 0===n?void 0:n.key)||"text"===document.querySelector(":focus").type&&document.querySelector(":focus").dispatchEvent(new Event("change"))}},!0);try{e.innerHTML='\n<h1>TizenTube Theme Configuration</h1>\n<label for="__barColor">Navigation Bar Color: <input type="text" id="__barColor"/></label>\n<label for="__routeColor">Main Content Color: <input type="text" id="__routeColor"/></label>\n<div><small>Sponsor segments skipping - https://sponsor.ajay.app</small></div>\n',document.querySelector("body").appendChild(e),e.querySelector("#__barColor").value=we("focusContainerColor"),e.querySelector("#__barColor").addEventListener("change",t=>{De("focusContainerColor",t.target.value),fr()}),e.querySelector("#__routeColor").value=we("routeColor"),e.querySelector("#__routeColor").addEventListener("change",t=>{De("routeColor",t.target.value),fr()})}catch(t){}var r=t=>{if(console.info("Key event:",t.type,t.keyCode,t.keyCode,t.defaultPrevented),we("enableScreenDimming")&&(kr&&clearTimeout(kr),document.getElementById("container").style.setProperty("opacity","1","important"),kr=setTimeout(()=>{document.querySelector(".html5-video-player").getPlayerStateObject().isPlaying||document.getElementById("container").style.setProperty("opacity",(1-we("dimmingOpacity")).toString(),"important")},1e3*we("dimmingTimeout"))),403==t.keyCode){if(console.info("Taking over!"),t.preventDefault(),t.stopPropagation(),"keydown"===t.type)try{"none"===e.style.display?(console.info("Showing and focusing!"),e.style.display="block",e.focus()):(console.info("Hiding!"),e.style.display="none",e.blur())}catch(t){}return!1}if(404==t.keyCode)"keydown"===t.type&&Ye();else if(39==t.keyCode){if("keydown"===t.type)if(document.querySelector("ytlr-search-text-box > .zylon-focus")&&window.isPipPlaying)document.querySelector("ytlr-player").style.setProperty("background-color","rgb(0, 0, 0)"),n=Ce.loadedPlaybackConfig,a=n.clickTrackingParams,r=n.commandMetadata,(i=n.watchEndpoint).startTimeSeconds=Math.floor(document.querySelector("video").currentTime),tr({clickTrackingParams:a,commandMetadata:r,watchEndpoint:i}),window.isPipPlaying=!1}var n,a,r,i;return!0};document.addEventListener("keydown",r,!0),document.addEventListener("keypress",r,!0),document.addEventListener("keyup",r,!0),we("showWelcomeToast")&&setTimeout(()=>{Ge("Welcome to TizenTube","Go to settings and click on TizenTube Settings for settings, press [RED] to open TizenTube Theme Settings.")},2e3);we("launchToOnStartup")?tr(JSON.parse(we("launchToOnStartup"))):tr({signalAction:{signal:"SOFT_RELOAD_PAGE"}});var i=br();i&&i.executeFunction(new i.commandFunction("reloadGuideAction"));if(we("enableFixedUI"))try{new MutationObserver((t,n)=>{var a=document.body;a.classList.contains("app-quality-root")&&a.classList.remove("app-quality-root")}).observe(document.body,{attributes:!0,childList:!1,subtree:!1})}catch(t){}}(),function(){var t=function(){if(window._yttv[n]&&window._yttv[n].instance&&window._yttv[n].instance.resolveCommand){var t=window._yttv[n].instance.resolveCommand;window._yttv[n].instance.resolveCommand=function(n,a){var e,r,i,s,o;if(n.setClientSettingEndpoint){var u,l=L(n.setClientSettingEndpoint.settingDatas);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(c.clientSettingEnum.item.includes("_")){if("I18N_LANGUAGE"===c.clientSettingEnum.item){var d=c.stringValue,m=new Date;return m.setFullYear(m.getFullYear()+10),document.cookie=`PREF=hl=${d}; expires=${m.toUTCString()};`,tr({signalAction:{signal:"RELOAD_PAGE"}}),!0}}else{var h,p=L(n.setClientSettingEndpoint.settingDatas);try{for(p.s();!(h=p.n()).done;){var g=h.value,f=Object.keys(g).find(t=>t.includes("Value")),b="intValue"===f?Number(g[f]):g[f];if("arrayValue"===f){var y=we(g.clientSettingEnum.item);y.includes(b)?y.splice(y.indexOf(b),1):y.push(b),De(g.clientSettingEnum.item,y)}else De(g.clientSettingEnum.item,b)}}catch(t){p.e(t)}finally{p.f()}}}}catch(t){l.e(t)}finally{l.f()}}else{if(n.customAction)return nr(n.customAction.action,n.customAction.parameters),!0;if(null!=n&&null!==(e=n.signalAction)&&void 0!==e&&e.customAction)return nr(n.signalAction.customAction.action,n.signalAction.customAction.parameters),!0;if(null!=n&&null!==(r=n.showEngagementPanelEndpoint)&&void 0!==r&&r.customAction)return nr(n.showEngagementPanelEndpoint.customAction.action,n.showEngagementPanelEndpoint.customAction.parameters),!0;if(null!=n&&null!==(i=n.playlistEditEndpoint)&&void 0!==i&&i.customAction)return nr(n.playlistEditEndpoint.customAction.action,n.playlistEditEndpoint.customAction.parameters),!0;if("playback-settings"===(null==n||null===(s=n.openPopupAction)||void 0===s?void 0:s.uniqueId)){var k,v=L(n.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items);try{for(v.s();!(k=v.n()).done;){var w,D=k.value;"SLOW_MOTION_VIDEO"===(null==D||null===(w=D.compactLinkRenderer)||void 0===w||null===(w=w.icon)||void 0===w?void 0:w.iconType)&&(D.compactLinkRenderer.subtitle&&(D.compactLinkRenderer.subtitle.simpleText="with TizenTube"),D.compactLinkRenderer.serviceEndpoint={clickTrackingParams:"null",signalAction:{customAction:{action:"TT_SPEED_SETTINGS_SHOW",parameters:[]}}})}}catch(t){v.e(t)}finally{v.f()}n.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items.splice(2,0,Me({title:"Mini Player"},{icon:"CLEAR_COOKIES"},[{customAction:{action:"ENTER_PIP"}}]))}else null!=n&&null!==(o=n.watchEndpoint)&&void 0!==o&&o.videoId&&(window.isPipPlaying=!1,document.querySelector("ytlr-player-container").style.removeProperty("z-index"))}return t.call(this,n,a)}}};for(var n in window._yttv)t()}(),clearInterval(yr))},250),kr=null;function vr(t){var n=JSON.parse(localStorage["yt.leanback.default::recurring_actions"]),a=new Date;if(t){var e,r;if(a.getTime()-(null===(e=n.data.data["startup-screen-account-selector-with-guest"])||void 0===e?void 0:e.lastFired)>0&&a.getTime()-(null===(r=n.data.data["startup-screen-account-selector-with-guest"])||void 0===r?void 0:r.lastFired)<72e5)return;n.data.data["startup-screen-account-selector-with-guest"]&&(n.data.data["startup-screen-account-selector-with-guest"].lastFired=a.getTime()),n.data.data.whos_watching_fullscreen_zero_accounts.lastFired=a.getTime(),n.data.data["startup-screen-signed-out-welcome-back"]&&(n.data.data["startup-screen-signed-out-welcome-back"].lastFired=a.getTime()),localStorage["yt.leanback.default::recurring_actions"]=JSON.stringify(n)}else a.setDate(a.getDate()+7),n.data.data["startup-screen-account-selector-with-guest"]&&(n.data.data["startup-screen-account-selector-with-guest"].lastFired=a.getTime()),n.data.data.whos_watching_fullscreen_zero_accounts.lastFired=a.getTime(),n.data.data["startup-screen-signed-out-welcome-back"]&&(n.data.data["startup-screen-signed-out-welcome-back"].lastFired=a.getTime()),localStorage["yt.leanback.default::recurring_actions"]=JSON.stringify(n)}Ae.addEventListener("configChange",t=>{var n=t.detail,a=n.key,e=n.value;"enableWhoIsWatchingMenu"===a&&vr(e)}),vr(we("enableWhoIsWatchingMenu"));var wr=".html5-video-player",Dr="onStateChange",Ar="configChange",Cr="preferredVideoQuality",Nr=new WeakMap,xr=new WeakMap,Gr=new WeakMap,Sr=new WeakMap,Pr=new WeakSet,Mr=new WeakMap;function Ir(){clearTimeout(l(xr,this));var t=document.querySelector(wr);t?(d(Nr,this,t),l(Nr,this).addEventListener(Dr,l(Mr,this)),l(Mr,this).call(this)):d(xr,this,setTimeout(()=>s(Pr,this,Ir).call(this),100))}function Er(){Ae.addEventListener(Ar,t=>{var n;(null===(n=t.detail)||void 0===n?void 0:n.key)===Cr&&s(Pr,this,Tr).call(this)})}function Tr(){var t=we(Cr);if(t&&"auto"!==t&&l(Nr,this))try{var n=s(Pr,this,_r).call(this,t);n&&l(Nr,this).setPlaybackQualityRange(n,n)}catch(t){console.warn("[PreferredQuality] Failed to apply quality:",t)}}function _r(t){var n=l(Nr,this).getAvailableQualityData();if(null==n||!n.length)return"highres";var a=t=>parseInt(t,10)||0,e=a(t),r=n.find(t=>a(t.qualityLabel)===e);return r?r.quality:"highres"}function jr(){var t;if(!window._yttv)return setTimeout(jr,250);null===(t=Object.values(window._yttv).find(t=>t instanceof Map&&t.has("ENABLE_PREVIEWS_WITH_SOUND")))||void 0===t||t.set("ENABLE_PREVIEWS_WITH_SOUND",we("enablePreviews"))}window.preferredVideoQualityHandler=new class{constructor(){var t,n;u(t=this,n=Pr),n.add(t),c(this,Nr,null),c(this,xr,null),c(this,Gr,null),c(this,Sr,!1),c(this,Mr,()=>{var t,n,a,e,r=null===(t=l(Nr,this))||void 0===t||null===(n=t.getPlayerStateObject)||void 0===n?void 0:n.call(t),i=null===(a=l(Nr,this))||void 0===a||null===(e=a.getVideoData)||void 0===e?void 0:e.call(a),o=null==i?void 0:i.video_id;o!==l(Gr,this)&&(d(Gr,this,o),d(Sr,this,!1));var u=Object.values(l(Nr,this).getVideoStats()).find(t=>t&&"shortspage"===t);null==r||!r.isPlaying||l(Sr,this)||u||(s(Pr,this,Tr).call(this),d(Sr,this,!0))}),this.init()}init(){s(Pr,this,Ir).call(this),s(Pr,this,Er).call(this)}},window.queuedVideos={videos:[],lastVideoId:null},function t(){var n=document.querySelector(".html5-video-player");if(!n)return setTimeout(t,250);n.addEventListener("onStateChange",()=>{var t=n.getPlayerStateObject(),a=n.getVideoData();if(0!==window.queuedVideos.videos.length)if(t.isEnded){var e=window.queuedVideos.videos.findIndex(t=>t.tileRenderer.contentId===a.video_id);if(-1!==e){if(e+1>=window.queuedVideos.videos.length)return void tr({customAction:{action:"CLEAR_QUEUE"}});var r=window.queuedVideos.videos[e+1].tileRenderer.onSelectCommand;setTimeout(()=>tr(r),500)}else if(window.queuedVideos.lastVideoId){var i=window.queuedVideos.videos.findIndex(t=>t.tileRenderer.contentId===window.queuedVideos.lastVideoId);if(!(-1!==i&&i+1<window.queuedVideos.videos.length))return void tr({customAction:{action:"CLEAR_QUEUE"}});var s=window.queuedVideos.videos[i+1].tileRenderer.onSelectCommand;setTimeout(()=>tr(s),500)}else{var o=window.queuedVideos.videos[0].tileRenderer.onSelectCommand;setTimeout(()=>tr(o),500)}}else t.isPlaying&&(document.getElementById("container").style.setProperty("opacity","1","important"),window.queuedVideos.videos.find(t=>t.contentId===a.video_id)&&(window.queuedVideos.lastVideoId=a.video_id))})}(),Ae.addEventListener("configChange",t=>{jr()}),"complete"===document.readyState?jr():window.addEventListener("load",jr);var zr,Br={exports:{}};var Ur,Rr,Fr=(zr||(zr=1,Ur=function(){return function(t){var n={};function a(e){if(n[e])return n[e].exports;var r=n[e]={exports:{},id:e,loaded:!1};return t[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}return a.m=t,a.c=n,a.p="",a(0)}([function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(1),r=a(3),i=a(8),s=a(15);function o(t,n,a){var s=null,o=function(t,n){a&&a(t,n),s&&s.visit(t,n)},u="function"==typeof a?o:null,l=!1;if(n){l="boolean"==typeof n.comment&&n.comment;var c="boolean"==typeof n.attachComment&&n.attachComment;(l||c)&&((s=new e.CommentHandler).attach=c,n.comment=!0,u=o)}var d,L=!1;n&&"string"==typeof n.sourceType&&(L="module"===n.sourceType),d=n&&"boolean"==typeof n.jsx&&n.jsx?new r.JSXParser(t,n,u):new i.Parser(t,n,u);var m=L?d.parseModule():d.parseScript();return l&&s&&(m.comments=s.comments),d.config.tokens&&(m.tokens=d.tokens),d.config.tolerant&&(m.errors=d.errorHandler.errors),m}n.parse=o,n.parseModule=function(t,n,a){var e=n||{};return e.sourceType="module",o(t,e,a)},n.parseScript=function(t,n,a){var e=n||{};return e.sourceType="script",o(t,e,a)},n.tokenize=function(t,n,a){var e,r=new s.Tokenizer(t,n);e=[];try{for(;;){var i=r.getNextToken();if(!i)break;a&&(i=a(i)),e.push(i)}}catch(t){r.errorHandler.tolerate(t)}return r.errorHandler.tolerant&&(e.errors=r.errors()),e};var u=a(2);n.Syntax=u.Syntax,n.version="4.0.1"},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(2),r=function(){function t(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return t.prototype.insertInnerComments=function(t,n){if(t.type===e.Syntax.BlockStatement&&0===t.body.length){for(var a=[],r=this.leading.length-1;r>=0;--r){var i=this.leading[r];n.end.offset>=i.start&&(a.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}a.length&&(t.innerComments=a)}},t.prototype.findTrailingComments=function(t){var n=[];if(this.trailing.length>0){for(var a=this.trailing.length-1;a>=0;--a){var e=this.trailing[a];e.start>=t.end.offset&&n.unshift(e.comment)}return this.trailing.length=0,n}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=t.end.offset&&(n=r.node.trailingComments,delete r.node.trailingComments)}return n},t.prototype.findLeadingComments=function(t){for(var n,a=[];this.stack.length>0&&(i=this.stack[this.stack.length-1])&&i.start>=t.start.offset;)n=i.node,this.stack.pop();if(n){for(var e=(n.leadingComments?n.leadingComments.length:0)-1;e>=0;--e){var r=n.leadingComments[e];r.range[1]<=t.start.offset&&(a.unshift(r),n.leadingComments.splice(e,1))}return n.leadingComments&&0===n.leadingComments.length&&delete n.leadingComments,a}for(e=this.leading.length-1;e>=0;--e){var i;(i=this.leading[e]).start<=t.start.offset&&(a.unshift(i.comment),this.leading.splice(e,1))}return a},t.prototype.visitNode=function(t,n){if(!(t.type===e.Syntax.Program&&t.body.length>0)){this.insertInnerComments(t,n);var a=this.findTrailingComments(n),r=this.findLeadingComments(n);r.length>0&&(t.leadingComments=r),a.length>0&&(t.trailingComments=a),this.stack.push({node:t,start:n.start.offset})}},t.prototype.visitComment=function(t,n){var a="L"===t.type[0]?"Line":"Block",e={type:a,value:t.value};if(t.range&&(e.range=t.range),t.loc&&(e.loc=t.loc),this.comments.push(e),this.attach){var r={comment:{type:a,value:t.value,range:[n.start.offset,n.end.offset]},start:n.start.offset};t.loc&&(r.comment.loc=t.loc),t.type=a,this.leading.push(r),this.trailing.push(r)}},t.prototype.visit=function(t,n){"LineComment"===t.type||"BlockComment"===t.type?this.visitComment(t,n):this.attach&&this.visitNode(t,n)},t}();n.CommentHandler=r},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,n,a){var e,r=this&&this.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])},function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)});Object.defineProperty(n,"__esModule",{value:!0});var i=a(4),s=a(5),o=a(6),u=a(7),l=a(8),c=a(13),d=a(14);function L(t){var n;switch(t.type){case o.JSXSyntax.JSXIdentifier:n=t.name;break;case o.JSXSyntax.JSXNamespacedName:var a=t;n=L(a.namespace)+":"+L(a.name);break;case o.JSXSyntax.JSXMemberExpression:var e=t;n=L(e.object)+"."+L(e.property)}return n}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var m=function(t){function n(n,a,e){return t.call(this,n,a,e)||this}return r(n,t),n.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():t.prototype.parsePrimaryExpression.call(this)},n.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},n.prototype.finishJSX=function(){this.nextToken()},n.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},n.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},n.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},n.prototype.scanXHTMLEntity=function(t){for(var n="&",a=!0,e=!1,r=!1,s=!1;!this.scanner.eof()&&a&&!e;){var o=this.scanner.source[this.scanner.index];if(o===t)break;if(e=";"===o,n+=o,++this.scanner.index,!e)switch(n.length){case 2:r="#"===o;break;case 3:r&&(a=(s="x"===o)||i.Character.isDecimalDigit(o.charCodeAt(0)),r=r&&!s);break;default:a=(a=a&&!(r&&!i.Character.isDecimalDigit(o.charCodeAt(0))))&&!(s&&!i.Character.isHexDigit(o.charCodeAt(0)))}}if(a&&e&&n.length>2){var u=n.substr(1,n.length-2);r&&u.length>1?n=String.fromCharCode(parseInt(u.substr(1),10)):s&&u.length>2?n=String.fromCharCode(parseInt("0"+u.substr(1),16)):r||s||!d.XHTMLEntities[u]||(n=d.XHTMLEntities[u])}return n},n.prototype.lexJSX=function(){var t=this.scanner.source.charCodeAt(this.scanner.index);if(60===t||62===t||47===t||58===t||61===t||123===t||125===t)return{type:7,value:o=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===t||39===t){for(var n=this.scanner.index,a=this.scanner.source[this.scanner.index++],e="";!this.scanner.eof()&&(u=this.scanner.source[this.scanner.index++])!==a;)e+="&"===u?this.scanXHTMLEntity(a):u;return{type:8,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(46===t){var r=this.scanner.source.charCodeAt(this.scanner.index+1),s=this.scanner.source.charCodeAt(this.scanner.index+2),o=46===r&&46===s?"...":".";return n=this.scanner.index,this.scanner.index+=o.length,{type:7,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(96===t)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(t)&&92!==t){for(n=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},n.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var t=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(t)),t},n.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var t=this.scanner.index,n="";!this.scanner.eof();){var a=this.scanner.source[this.scanner.index];if("{"===a||"<"===a)break;++this.scanner.index,n+=a,i.Character.isLineTerminator(a.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===a&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var e={type:101,value:n,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index};return n.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(e)),e},n.prototype.peekJSXToken=function(){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.lexJSX();return this.scanner.restoreState(t),n},n.prototype.expectJSX=function(t){var n=this.nextJSXToken();7===n.type&&n.value===t||this.throwUnexpectedToken(n)},n.prototype.matchJSX=function(t){var n=this.peekJSXToken();return 7===n.type&&n.value===t},n.prototype.parseJSXIdentifier=function(){var t=this.createJSXNode(),n=this.nextJSXToken();return 100!==n.type&&this.throwUnexpectedToken(n),this.finalize(t,new s.JSXIdentifier(n.value))},n.prototype.parseJSXElementName=function(){var t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var a=n;this.expectJSX(":");var e=this.parseJSXIdentifier();n=this.finalize(t,new s.JSXNamespacedName(a,e))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=n;this.expectJSX(".");var i=this.parseJSXIdentifier();n=this.finalize(t,new s.JSXMemberExpression(r,i))}return n},n.prototype.parseJSXAttributeName=function(){var t,n=this.createJSXNode(),a=this.parseJSXIdentifier();if(this.matchJSX(":")){var e=a;this.expectJSX(":");var r=this.parseJSXIdentifier();t=this.finalize(n,new s.JSXNamespacedName(e,r))}else t=a;return t},n.prototype.parseJSXStringLiteralAttribute=function(){var t=this.createJSXNode(),n=this.nextJSXToken();8!==n.type&&this.throwUnexpectedToken(n);var a=this.getTokenRaw(n);return this.finalize(t,new u.Literal(n.value,a))},n.prototype.parseJSXExpressionAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var n=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXExpressionContainer(n))},n.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},n.prototype.parseJSXNameValueAttribute=function(){var t=this.createJSXNode(),n=this.parseJSXAttributeName(),a=null;return this.matchJSX("=")&&(this.expectJSX("="),a=this.parseJSXAttributeValue()),this.finalize(t,new s.JSXAttribute(n,a))},n.prototype.parseJSXSpreadAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var n=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXSpreadAttribute(n))},n.prototype.parseJSXAttributes=function(){for(var t=[];!this.matchJSX("/")&&!this.matchJSX(">");){var n=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();t.push(n)}return t},n.prototype.parseJSXOpeningElement=function(){var t=this.createJSXNode();this.expectJSX("<");var n=this.parseJSXElementName(),a=this.parseJSXAttributes(),e=this.matchJSX("/");return e&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(n,e,a))},n.prototype.parseJSXBoundaryElement=function(){var t=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var n=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(t,new s.JSXClosingElement(n))}var a=this.parseJSXElementName(),e=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(a,r,e))},n.prototype.parseJSXEmptyExpression=function(){var t=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(t,new s.JSXEmptyExpression)},n.prototype.parseJSXExpressionContainer=function(){var t,n=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(t=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(n,new s.JSXExpressionContainer(t))},n.prototype.parseJSXChildren=function(){for(var t=[];!this.scanner.eof();){var n=this.createJSXChildNode(),a=this.nextJSXText();if(a.start<a.end){var e=this.getTokenRaw(a),r=this.finalize(n,new s.JSXText(a.value,e));t.push(r)}if("{"!==this.scanner.source[this.scanner.index])break;var i=this.parseJSXExpressionContainer();t.push(i)}return t},n.prototype.parseComplexJSXElement=function(t){for(var n=[];!this.scanner.eof();){t.children=t.children.concat(this.parseJSXChildren());var a=this.createJSXChildNode(),e=this.parseJSXBoundaryElement();if(e.type===o.JSXSyntax.JSXOpeningElement){var r=e;if(r.selfClosing){var i=this.finalize(a,new s.JSXElement(r,[],null));t.children.push(i)}else n.push(t),t={node:a,opening:r,closing:null,children:[]}}if(e.type===o.JSXSyntax.JSXClosingElement){t.closing=e;var u=L(t.opening.name);if(u!==L(t.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",u),!(n.length>0))break;i=this.finalize(t.node,new s.JSXElement(t.opening,t.children,t.closing)),(t=n[n.length-1]).children.push(i),n.pop()}}return t},n.prototype.parseJSXElement=function(){var t=this.createJSXNode(),n=this.parseJSXOpeningElement(),a=[],e=null;if(!n.selfClosing){var r=this.parseComplexJSXElement({node:t,opening:n,closing:e,children:a});a=r.children,e=r.closing}return this.finalize(t,new s.JSXElement(n,a,e))},n.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var t=this.parseJSXElement();return this.finishJSX(),t},n.prototype.isStartOfExpression=function(){return t.prototype.isStartOfExpression.call(this)||this.match("<")},n}(l.Parser);n.JSXParser=m},function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var a={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};n.Character={fromCodePoint:function(t){return t<65536?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&a.NonAsciiIdentifierStart.test(n.Character.fromCodePoint(t))},isIdentifierPart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&a.NonAsciiIdentifierPart.test(n.Character.fromCodePoint(t))},isDecimalDigit:function(t){return t>=48&&t<=57},isHexDigit:function(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102},isOctalDigit:function(t){return t>=48&&t<=55}}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(6),r=function(t){this.type=e.JSXSyntax.JSXClosingElement,this.name=t};n.JSXClosingElement=r;var i=function(t,n,a){this.type=e.JSXSyntax.JSXElement,this.openingElement=t,this.children=n,this.closingElement=a};n.JSXElement=i;var s=function(){this.type=e.JSXSyntax.JSXEmptyExpression};n.JSXEmptyExpression=s;var o=function(t){this.type=e.JSXSyntax.JSXExpressionContainer,this.expression=t};n.JSXExpressionContainer=o;var u=function(t){this.type=e.JSXSyntax.JSXIdentifier,this.name=t};n.JSXIdentifier=u;var l=function(t,n){this.type=e.JSXSyntax.JSXMemberExpression,this.object=t,this.property=n};n.JSXMemberExpression=l;var c=function(t,n){this.type=e.JSXSyntax.JSXAttribute,this.name=t,this.value=n};n.JSXAttribute=c;var d=function(t,n){this.type=e.JSXSyntax.JSXNamespacedName,this.namespace=t,this.name=n};n.JSXNamespacedName=d;var L=function(t,n,a){this.type=e.JSXSyntax.JSXOpeningElement,this.name=t,this.selfClosing=n,this.attributes=a};n.JSXOpeningElement=L;var m=function(t){this.type=e.JSXSyntax.JSXSpreadAttribute,this.argument=t};n.JSXSpreadAttribute=m;var h=function(t,n){this.type=e.JSXSyntax.JSXText,this.value=t,this.raw=n};n.JSXText=h},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(2),r=function(t){this.type=e.Syntax.ArrayExpression,this.elements=t};n.ArrayExpression=r;var i=function(t){this.type=e.Syntax.ArrayPattern,this.elements=t};n.ArrayPattern=i;var s=function(t,n,a){this.type=e.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=n,this.generator=!1,this.expression=a,this.async=!1};n.ArrowFunctionExpression=s;var o=function(t,n,a){this.type=e.Syntax.AssignmentExpression,this.operator=t,this.left=n,this.right=a};n.AssignmentExpression=o;var u=function(t,n){this.type=e.Syntax.AssignmentPattern,this.left=t,this.right=n};n.AssignmentPattern=u;var l=function(t,n,a){this.type=e.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=n,this.generator=!1,this.expression=a,this.async=!0};n.AsyncArrowFunctionExpression=l;var c=function(t,n,a){this.type=e.Syntax.FunctionDeclaration,this.id=t,this.params=n,this.body=a,this.generator=!1,this.expression=!1,this.async=!0};n.AsyncFunctionDeclaration=c;var d=function(t,n,a){this.type=e.Syntax.FunctionExpression,this.id=t,this.params=n,this.body=a,this.generator=!1,this.expression=!1,this.async=!0};n.AsyncFunctionExpression=d;var L=function(t){this.type=e.Syntax.AwaitExpression,this.argument=t};n.AwaitExpression=L;var m=function(t,n,a){var r="||"===t||"&&"===t;this.type=r?e.Syntax.LogicalExpression:e.Syntax.BinaryExpression,this.operator=t,this.left=n,this.right=a};n.BinaryExpression=m;var h=function(t){this.type=e.Syntax.BlockStatement,this.body=t};n.BlockStatement=h;var p=function(t){this.type=e.Syntax.BreakStatement,this.label=t};n.BreakStatement=p;var g=function(t,n){this.type=e.Syntax.CallExpression,this.callee=t,this.arguments=n};n.CallExpression=g;var f=function(t,n){this.type=e.Syntax.CatchClause,this.param=t,this.body=n};n.CatchClause=f;var b=function(t){this.type=e.Syntax.ClassBody,this.body=t};n.ClassBody=b;var y=function(t,n,a){this.type=e.Syntax.ClassDeclaration,this.id=t,this.superClass=n,this.body=a};n.ClassDeclaration=y;var k=function(t,n,a){this.type=e.Syntax.ClassExpression,this.id=t,this.superClass=n,this.body=a};n.ClassExpression=k;var v=function(t,n){this.type=e.Syntax.MemberExpression,this.computed=!0,this.object=t,this.property=n};n.ComputedMemberExpression=v;var w=function(t,n,a){this.type=e.Syntax.ConditionalExpression,this.test=t,this.consequent=n,this.alternate=a};n.ConditionalExpression=w;var D=function(t){this.type=e.Syntax.ContinueStatement,this.label=t};n.ContinueStatement=D;var A=function(){this.type=e.Syntax.DebuggerStatement};n.DebuggerStatement=A;var C=function(t,n){this.type=e.Syntax.ExpressionStatement,this.expression=t,this.directive=n};n.Directive=C;var N=function(t,n){this.type=e.Syntax.DoWhileStatement,this.body=t,this.test=n};n.DoWhileStatement=N;var x=function(){this.type=e.Syntax.EmptyStatement};n.EmptyStatement=x;var G=function(t){this.type=e.Syntax.ExportAllDeclaration,this.source=t};n.ExportAllDeclaration=G;var S=function(t){this.type=e.Syntax.ExportDefaultDeclaration,this.declaration=t};n.ExportDefaultDeclaration=S;var P=function(t,n,a){this.type=e.Syntax.ExportNamedDeclaration,this.declaration=t,this.specifiers=n,this.source=a};n.ExportNamedDeclaration=P;var M=function(t,n){this.type=e.Syntax.ExportSpecifier,this.exported=n,this.local=t};n.ExportSpecifier=M;var I=function(t){this.type=e.Syntax.ExpressionStatement,this.expression=t};n.ExpressionStatement=I;var E=function(t,n,a){this.type=e.Syntax.ForInStatement,this.left=t,this.right=n,this.body=a,this.each=!1};n.ForInStatement=E;var T=function(t,n,a){this.type=e.Syntax.ForOfStatement,this.left=t,this.right=n,this.body=a};n.ForOfStatement=T;var _=function(t,n,a,r){this.type=e.Syntax.ForStatement,this.init=t,this.test=n,this.update=a,this.body=r};n.ForStatement=_;var j=function(t,n,a,r){this.type=e.Syntax.FunctionDeclaration,this.id=t,this.params=n,this.body=a,this.generator=r,this.expression=!1,this.async=!1};n.FunctionDeclaration=j;var z=function(t,n,a,r){this.type=e.Syntax.FunctionExpression,this.id=t,this.params=n,this.body=a,this.generator=r,this.expression=!1,this.async=!1};n.FunctionExpression=z;var B=function(t){this.type=e.Syntax.Identifier,this.name=t};n.Identifier=B;var U=function(t,n,a){this.type=e.Syntax.IfStatement,this.test=t,this.consequent=n,this.alternate=a};n.IfStatement=U;var R=function(t,n){this.type=e.Syntax.ImportDeclaration,this.specifiers=t,this.source=n};n.ImportDeclaration=R;var F=function(t){this.type=e.Syntax.ImportDefaultSpecifier,this.local=t};n.ImportDefaultSpecifier=F;var q=function(t){this.type=e.Syntax.ImportNamespaceSpecifier,this.local=t};n.ImportNamespaceSpecifier=q;var O=function(t,n){this.type=e.Syntax.ImportSpecifier,this.local=t,this.imported=n};n.ImportSpecifier=O;var H=function(t,n){this.type=e.Syntax.LabeledStatement,this.label=t,this.body=n};n.LabeledStatement=H;var K=function(t,n){this.type=e.Syntax.Literal,this.value=t,this.raw=n};n.Literal=K;var V=function(t,n){this.type=e.Syntax.MetaProperty,this.meta=t,this.property=n};n.MetaProperty=V;var X=function(t,n,a,r,i){this.type=e.Syntax.MethodDefinition,this.key=t,this.computed=n,this.value=a,this.kind=r,this.static=i};n.MethodDefinition=X;var Z=function(t){this.type=e.Syntax.Program,this.body=t,this.sourceType="module"};n.Module=Z;var Y=function(t,n){this.type=e.Syntax.NewExpression,this.callee=t,this.arguments=n};n.NewExpression=Y;var W=function(t){this.type=e.Syntax.ObjectExpression,this.properties=t};n.ObjectExpression=W;var J=function(t){this.type=e.Syntax.ObjectPattern,this.properties=t};n.ObjectPattern=J;var Q=function(t,n,a,r,i,s){this.type=e.Syntax.Property,this.key=n,this.computed=a,this.value=r,this.kind=t,this.method=i,this.shorthand=s};n.Property=Q;var $=function(t,n,a,r){this.type=e.Syntax.Literal,this.value=t,this.raw=n,this.regex={pattern:a,flags:r}};n.RegexLiteral=$;var tt=function(t){this.type=e.Syntax.RestElement,this.argument=t};n.RestElement=tt;var nt=function(t){this.type=e.Syntax.ReturnStatement,this.argument=t};n.ReturnStatement=nt;var at=function(t){this.type=e.Syntax.Program,this.body=t,this.sourceType="script"};n.Script=at;var et=function(t){this.type=e.Syntax.SequenceExpression,this.expressions=t};n.SequenceExpression=et;var rt=function(t){this.type=e.Syntax.SpreadElement,this.argument=t};n.SpreadElement=rt;var it=function(t,n){this.type=e.Syntax.MemberExpression,this.computed=!1,this.object=t,this.property=n};n.StaticMemberExpression=it;var st=function(){this.type=e.Syntax.Super};n.Super=st;var ot=function(t,n){this.type=e.Syntax.SwitchCase,this.test=t,this.consequent=n};n.SwitchCase=ot;var ut=function(t,n){this.type=e.Syntax.SwitchStatement,this.discriminant=t,this.cases=n};n.SwitchStatement=ut;var lt=function(t,n){this.type=e.Syntax.TaggedTemplateExpression,this.tag=t,this.quasi=n};n.TaggedTemplateExpression=lt;var ct=function(t,n){this.type=e.Syntax.TemplateElement,this.value=t,this.tail=n};n.TemplateElement=ct;var dt=function(t,n){this.type=e.Syntax.TemplateLiteral,this.quasis=t,this.expressions=n};n.TemplateLiteral=dt;var Lt=function(){this.type=e.Syntax.ThisExpression};n.ThisExpression=Lt;var mt=function(t){this.type=e.Syntax.ThrowStatement,this.argument=t};n.ThrowStatement=mt;var ht=function(t,n,a){this.type=e.Syntax.TryStatement,this.block=t,this.handler=n,this.finalizer=a};n.TryStatement=ht;var pt=function(t,n){this.type=e.Syntax.UnaryExpression,this.operator=t,this.argument=n,this.prefix=!0};n.UnaryExpression=pt;var gt=function(t,n,a){this.type=e.Syntax.UpdateExpression,this.operator=t,this.argument=n,this.prefix=a};n.UpdateExpression=gt;var ft=function(t,n){this.type=e.Syntax.VariableDeclaration,this.declarations=t,this.kind=n};n.VariableDeclaration=ft;var bt=function(t,n){this.type=e.Syntax.VariableDeclarator,this.id=t,this.init=n};n.VariableDeclarator=bt;var yt=function(t,n){this.type=e.Syntax.WhileStatement,this.test=t,this.body=n};n.WhileStatement=yt;var kt=function(t,n){this.type=e.Syntax.WithStatement,this.object=t,this.body=n};n.WithStatement=kt;var vt=function(t,n){this.type=e.Syntax.YieldExpression,this.argument=t,this.delegate=n};n.YieldExpression=vt},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(9),r=a(10),i=a(11),s=a(7),o=a(12),u=a(2),l=a(13),c="ArrowParameterPlaceHolder",d=function(){function t(t,n,a){void 0===n&&(n={}),this.config={range:"boolean"==typeof n.range&&n.range,loc:"boolean"==typeof n.loc&&n.loc,source:null,tokens:"boolean"==typeof n.tokens&&n.tokens,comment:"boolean"==typeof n.comment&&n.comment,tolerant:"boolean"==typeof n.tolerant&&n.tolerant},this.config.loc&&n.source&&null!==n.source&&(this.config.source=String(n.source)),this.delegate=a,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new o.Scanner(t,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return t.prototype.throwError=function(t){var n=Array.prototype.slice.call(arguments,1),a=t.replace(/%(\d)/g,function(t,a){return e.assert(a<n.length,"Message reference must be in range"),n[a]}),r=this.lastMarker.index,i=this.lastMarker.line,s=this.lastMarker.column+1;throw this.errorHandler.createError(r,i,s,a)},t.prototype.tolerateError=function(t){var n=Array.prototype.slice.call(arguments,1),a=t.replace(/%(\d)/g,function(t,a){return e.assert(a<n.length,"Message reference must be in range"),n[a]}),r=this.lastMarker.index,i=this.scanner.lineNumber,s=this.lastMarker.column+1;this.errorHandler.tolerateError(r,i,s,a)},t.prototype.unexpectedTokenError=function(t,n){var a,e=n||i.Messages.UnexpectedToken;if(t?(n||(e=2===t.type?i.Messages.UnexpectedEOS:3===t.type?i.Messages.UnexpectedIdentifier:6===t.type?i.Messages.UnexpectedNumber:8===t.type?i.Messages.UnexpectedString:10===t.type?i.Messages.UnexpectedTemplate:i.Messages.UnexpectedToken,4===t.type&&(this.scanner.isFutureReservedWord(t.value)?e=i.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(t.value)&&(e=i.Messages.StrictReservedWord))),a=t.value):a="ILLEGAL",e=e.replace("%0",a),t&&"number"==typeof t.lineNumber){var r=t.start,s=t.lineNumber,o=this.lastMarker.index-this.lastMarker.column,u=t.start-o+1;return this.errorHandler.createError(r,s,u,e)}return r=this.lastMarker.index,s=this.lastMarker.line,u=this.lastMarker.column+1,this.errorHandler.createError(r,s,u,e)},t.prototype.throwUnexpectedToken=function(t,n){throw this.unexpectedTokenError(t,n)},t.prototype.tolerateUnexpectedToken=function(t,n){this.errorHandler.tolerate(this.unexpectedTokenError(t,n))},t.prototype.collectComments=function(){if(this.config.comment){var t=this.scanner.scanComments();if(t.length>0&&this.delegate)for(var n=0;n<t.length;++n){var a=t[n],e=void 0;e={type:a.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(a.slice[0],a.slice[1])},this.config.range&&(e.range=a.range),this.config.loc&&(e.loc=a.loc);var r={start:{line:a.loc.start.line,column:a.loc.start.column,offset:a.range[0]},end:{line:a.loc.end.line,column:a.loc.end.column,offset:a.range[1]}};this.delegate(e,r)}}else this.scanner.scanComments()},t.prototype.getTokenRaw=function(t){return this.scanner.source.slice(t.start,t.end)},t.prototype.convertToken=function(t){var n={type:l.TokenName[t.type],value:this.getTokenRaw(t)};if(this.config.range&&(n.range=[t.start,t.end]),this.config.loc&&(n.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===t.type){var a=t.pattern,e=t.flags;n.regex={pattern:a,flags:e}}return n},t.prototype.nextToken=function(){var t=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var n=this.scanner.lex();return this.hasLineTerminator=t.lineNumber!==n.lineNumber,n&&this.context.strict&&3===n.type&&this.scanner.isStrictModeReservedWord(n.value)&&(n.type=4),this.lookahead=n,this.config.tokens&&2!==n.type&&this.tokens.push(this.convertToken(n)),t},t.prototype.nextRegexToken=function(){this.collectComments();var t=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(t))),this.lookahead=t,this.nextToken(),t},t.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},t.prototype.startNode=function(t,n){void 0===n&&(n=0);var a=t.start-t.lineStart,e=t.lineNumber;return a<0&&(a+=n,e--),{index:t.start,line:e,column:a}},t.prototype.finalize=function(t,n){if(this.config.range&&(n.range=[t.index,this.lastMarker.index]),this.config.loc&&(n.loc={start:{line:t.line,column:t.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(n.loc.source=this.config.source)),this.delegate){var a={start:{line:t.line,column:t.column,offset:t.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(n,a)}return n},t.prototype.expect=function(t){var n=this.nextToken();7===n.type&&n.value===t||this.throwUnexpectedToken(n)},t.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var t=this.lookahead;7===t.type&&","===t.value?this.nextToken():7===t.type&&";"===t.value?(this.nextToken(),this.tolerateUnexpectedToken(t)):this.tolerateUnexpectedToken(t,i.Messages.UnexpectedToken)}else this.expect(",")},t.prototype.expectKeyword=function(t){var n=this.nextToken();4===n.type&&n.value===t||this.throwUnexpectedToken(n)},t.prototype.match=function(t){return 7===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchKeyword=function(t){return 4===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchContextualKeyword=function(t){return 3===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var t=this.lookahead.value;return"="===t||"*="===t||"**="===t||"/="===t||"%="===t||"+="===t||"-="===t||"<<="===t||">>="===t||">>>="===t||"&="===t||"^="===t||"|="===t},t.prototype.isolateCoverGrammar=function(t){var n=this.context.isBindingElement,a=this.context.isAssignmentTarget,e=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=t.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=n,this.context.isAssignmentTarget=a,this.context.firstCoverInitializedNameError=e,r},t.prototype.inheritCoverGrammar=function(t){var n=this.context.isBindingElement,a=this.context.isAssignmentTarget,e=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=t.call(this);return this.context.isBindingElement=this.context.isBindingElement&&n,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&a,this.context.firstCoverInitializedNameError=e||this.context.firstCoverInitializedNameError,r},t.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},t.prototype.parsePrimaryExpression=function(){var t,n,a,e=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(n.value,a));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.Literal("true"===n.value,a));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(null,a));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.RegexLiteral(n.regex,a,n.pattern,n.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(e,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(e,new s.ThisExpression)):t=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},t.prototype.parseSpreadElement=function(){var t=this.createNode();this.expect("...");var n=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(t,new s.SpreadElement(n))},t.prototype.parseArrayInitializer=function(){var t=this.createNode(),n=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else if(this.match("...")){var a=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),n.push(a)}else n.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(t,new s.ArrayExpression(n))},t.prototype.parsePropertyMethod=function(t){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=this.context.strict,a=this.context.allowStrictDirective;this.context.allowStrictDirective=t.simple;var e=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&t.firstRestricted&&this.tolerateUnexpectedToken(t.firstRestricted,t.message),this.context.strict&&t.stricted&&this.tolerateUnexpectedToken(t.stricted,t.message),this.context.strict=n,this.context.allowStrictDirective=a,e},t.prototype.parsePropertyMethodFunction=function(){var t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var a=this.parseFormalParameters(),e=this.parsePropertyMethod(a);return this.context.allowYield=n,this.finalize(t,new s.FunctionExpression(null,a.params,e,!1))},t.prototype.parsePropertyMethodAsyncFunction=function(){var t=this.createNode(),n=this.context.allowYield,a=this.context.await;this.context.allowYield=!1,this.context.await=!0;var e=this.parseFormalParameters(),r=this.parsePropertyMethod(e);return this.context.allowYield=n,this.context.await=a,this.finalize(t,new s.AsyncFunctionExpression(null,e.params,r))},t.prototype.parseObjectPropertyKey=function(){var t,n=this.createNode(),a=this.nextToken();switch(a.type){case 8:case 6:this.context.strict&&a.octal&&this.tolerateUnexpectedToken(a,i.Messages.StrictOctalLiteral);var e=this.getTokenRaw(a);t=this.finalize(n,new s.Literal(a.value,e));break;case 3:case 1:case 5:case 4:t=this.finalize(n,new s.Identifier(a.value));break;case 7:"["===a.value?(t=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):t=this.throwUnexpectedToken(a);break;default:t=this.throwUnexpectedToken(a)}return t},t.prototype.isPropertyKey=function(t,n){return t.type===u.Syntax.Identifier&&t.name===n||t.type===u.Syntax.Literal&&t.value===n},t.prototype.parseObjectProperty=function(t){var n,a=this.createNode(),e=this.lookahead,r=null,o=null,u=!1,l=!1,c=!1,d=!1;if(3===e.type){var L=e.value;this.nextToken(),u=this.match("["),r=(d=!(this.hasLineTerminator||"async"!==L||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(a,new s.Identifier(L))}else this.match("*")?this.nextToken():(u=this.match("["),r=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===e.type&&!d&&"get"===e.value&&m)n="get",u=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod();else if(3===e.type&&!d&&"set"===e.value&&m)n="set",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseSetterMethod();else if(7===e.type&&"*"===e.value&&m)n="init",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),l=!0;else if(r||this.throwUnexpectedToken(this.lookahead),n="init",this.match(":")&&!d)!u&&this.isPropertyKey(r,"__proto__")&&(t.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),t.value=!0),this.nextToken(),o=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))o=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===e.type)if(L=this.finalize(a,new s.Identifier(e.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(a,new s.AssignmentPattern(L,h))}else c=!0,o=L;else this.throwUnexpectedToken(this.nextToken());return this.finalize(a,new s.Property(n,r,u,o,l,c))},t.prototype.parseObjectInitializer=function(){var t=this.createNode();this.expect("{");for(var n=[],a={value:!1};!this.match("}");)n.push(this.parseObjectProperty(a)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(t,new s.ObjectExpression(n))},t.prototype.parseTemplateHead=function(){e.assert(this.lookahead.head,"Template literal must start with a template head");var t=this.createNode(),n=this.nextToken(),a=n.value,r=n.cooked;return this.finalize(t,new s.TemplateElement({raw:a,cooked:r},n.tail))},t.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var t=this.createNode(),n=this.nextToken(),a=n.value,e=n.cooked;return this.finalize(t,new s.TemplateElement({raw:a,cooked:e},n.tail))},t.prototype.parseTemplateLiteral=function(){var t=this.createNode(),n=[],a=[],e=this.parseTemplateHead();for(a.push(e);!e.tail;)n.push(this.parseExpression()),e=this.parseTemplateElement(),a.push(e);return this.finalize(t,new s.TemplateLiteral(a,n))},t.prototype.reinterpretExpressionAsPattern=function(t){switch(t.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:t.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(t.argument);break;case u.Syntax.ArrayExpression:t.type=u.Syntax.ArrayPattern;for(var n=0;n<t.elements.length;n++)null!==t.elements[n]&&this.reinterpretExpressionAsPattern(t.elements[n]);break;case u.Syntax.ObjectExpression:for(t.type=u.Syntax.ObjectPattern,n=0;n<t.properties.length;n++)this.reinterpretExpressionAsPattern(t.properties[n].value);break;case u.Syntax.AssignmentExpression:t.type=u.Syntax.AssignmentPattern,delete t.operator,this.reinterpretExpressionAsPattern(t.left)}},t.prototype.parseGroupExpression=function(){var t;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),t={type:c,params:[],async:!1};else{var n=this.lookahead,a=[];if(this.match("..."))t=this.parseRestElement(a),this.expect(")"),this.match("=>")||this.expect("=>"),t={type:c,params:[t],async:!1};else{var e=!1;if(this.context.isBindingElement=!0,t=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(t);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i<r.length;i++)this.reinterpretExpressionAsPattern(r[i]);e=!0,t={type:c,params:r,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),r.push(this.parseRestElement(a)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i<r.length;i++)this.reinterpretExpressionAsPattern(r[i]);e=!0,t={type:c,params:r,async:!1}}else r.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(e)break}e||(t=this.finalize(this.startNode(n),new s.SequenceExpression(r)))}if(!e){if(this.expect(")"),this.match("=>")&&(t.type===u.Syntax.Identifier&&"yield"===t.name&&(e=!0,t={type:c,params:[t],async:!1}),!e)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),t.type===u.Syntax.SequenceExpression)for(i=0;i<t.expressions.length;i++)this.reinterpretExpressionAsPattern(t.expressions[i]);else this.reinterpretExpressionAsPattern(t);var o=t.type===u.Syntax.SequenceExpression?t.expressions:[t];t={type:c,params:o,async:!1}}this.context.isBindingElement=!1}}}return t},t.prototype.parseArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var n=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(t.push(n),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.isIdentifierName=function(t){return 3===t.type||4===t.type||1===t.type||5===t.type},t.prototype.parseIdentifierName=function(){var t=this.createNode(),n=this.nextToken();return this.isIdentifierName(n)||this.throwUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},t.prototype.parseNewExpression=function(){var t,n=this.createNode(),a=this.parseIdentifierName();if(e.assert("new"===a.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var r=this.parseIdentifierName();t=new s.MetaProperty(a,r)}else this.throwUnexpectedToken(this.lookahead);else{var i=this.isolateCoverGrammar(this.parseLeftHandSideExpression),o=this.match("(")?this.parseArguments():[];t=new s.NewExpression(i,o),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(n,t)},t.prototype.parseAsyncArgument=function(){var t=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,t},t.prototype.parseAsyncArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var n=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(t.push(n),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.parseLeftHandSideExpressionAllowCall=function(){var t,n=this.lookahead,a=this.matchContextualKeyword("async"),e=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(t=this.createNode(),this.nextToken(),t=this.finalize(t,new s.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):t=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var r=this.parseIdentifierName();t=this.finalize(this.startNode(n),new s.StaticMemberExpression(t,r))}else if(this.match("(")){var i=a&&n.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var o=i?this.parseAsyncArguments():this.parseArguments();if(t=this.finalize(this.startNode(n),new s.CallExpression(t,o)),i&&this.match("=>")){for(var u=0;u<o.length;++u)this.reinterpretExpressionAsPattern(o[u]);t={type:c,params:o,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),r=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),t=this.finalize(this.startNode(n),new s.ComputedMemberExpression(t,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var l=this.parseTemplateLiteral();t=this.finalize(this.startNode(n),new s.TaggedTemplateExpression(t,l))}return this.context.allowIn=e,t},t.prototype.parseSuper=function(){var t=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(t,new s.Super)},t.prototype.parseLeftHandSideExpression=function(){e.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var t=this.startNode(this.lookahead),n=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var a=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),n=this.finalize(t,new s.ComputedMemberExpression(n,a))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),a=this.parseIdentifierName(),n=this.finalize(t,new s.StaticMemberExpression(n,a));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var r=this.parseTemplateLiteral();n=this.finalize(t,new s.TaggedTemplateExpression(n,r))}return n},t.prototype.parseUpdateExpression=function(){var t,n=this.lookahead;if(this.match("++")||this.match("--")){var a=this.startNode(n),e=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(i.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment);var r=!0;t=this.finalize(a,new s.UpdateExpression(e.value,t,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(t=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(i.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.nextToken().value;r=!1,t=this.finalize(this.startNode(n),new s.UpdateExpression(o,t,r))}return t},t.prototype.parseAwaitExpression=function(){var t=this.createNode();this.nextToken();var n=this.parseUnaryExpression();return this.finalize(t,new s.AwaitExpression(n))},t.prototype.parseUnaryExpression=function(){var t;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var n=this.startNode(this.lookahead),a=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),t=this.finalize(n,new s.UnaryExpression(a.value,t)),this.context.strict&&"delete"===t.operator&&t.argument.type===u.Syntax.Identifier&&this.tolerateError(i.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else t=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return t},t.prototype.parseExponentiationExpression=function(){var t=this.lookahead,n=this.inheritCoverGrammar(this.parseUnaryExpression);if(n.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=n,e=this.isolateCoverGrammar(this.parseExponentiationExpression);n=this.finalize(this.startNode(t),new s.BinaryExpression("**",a,e))}return n},t.prototype.binaryPrecedence=function(t){var n=t.value;return 7===t.type?this.operatorPrecedence[n]||0:4===t.type&&("instanceof"===n||this.context.allowIn&&"in"===n)?7:0},t.prototype.parseBinaryExpression=function(){var t=this.lookahead,n=this.inheritCoverGrammar(this.parseExponentiationExpression),a=this.lookahead,e=this.binaryPrecedence(a);if(e>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[t,this.lookahead],i=n,o=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[i,a.value,o],l=[e];!((e=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&e<=l[l.length-1];){o=u.pop();var c=u.pop();l.pop(),i=u.pop(),r.pop();var d=this.startNode(r[r.length-1]);u.push(this.finalize(d,new s.BinaryExpression(c,i,o)))}u.push(this.nextToken().value),l.push(e),r.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var L=u.length-1;n=u[L];for(var m=r.pop();L>1;){var h=r.pop(),p=m&&m.lineStart;d=this.startNode(h,p),c=u[L-1],n=this.finalize(d,new s.BinaryExpression(c,u[L-2],n)),L-=2,m=h}}return n},t.prototype.parseConditionalExpression=function(){var t=this.lookahead,n=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var a=this.context.allowIn;this.context.allowIn=!0;var e=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=a,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);n=this.finalize(this.startNode(t),new s.ConditionalExpression(n,e,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return n},t.prototype.checkPatternParam=function(t,n){switch(n.type){case u.Syntax.Identifier:this.validateParam(t,n,n.name);break;case u.Syntax.RestElement:this.checkPatternParam(t,n.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(t,n.left);break;case u.Syntax.ArrayPattern:for(var a=0;a<n.elements.length;a++)null!==n.elements[a]&&this.checkPatternParam(t,n.elements[a]);break;case u.Syntax.ObjectPattern:for(a=0;a<n.properties.length;a++)this.checkPatternParam(t,n.properties[a].value)}t.simple=t.simple&&n instanceof s.Identifier},t.prototype.reinterpretAsCoverFormalsList=function(t){var n,a=[t],e=!1;switch(t.type){case u.Syntax.Identifier:break;case c:a=t.params,e=t.async;break;default:return null}n={simple:!0,paramSet:{}};for(var r=0;r<a.length;++r)(s=a[r]).type===u.Syntax.AssignmentPattern?s.right.type===u.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=u.Syntax.Identifier,s.right.name="yield",delete s.right.argument,delete s.right.delegate):e&&s.type===u.Syntax.Identifier&&"await"===s.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(n,s),a[r]=s;if(this.context.strict||!this.context.allowYield)for(r=0;r<a.length;++r){var s;(s=a[r]).type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(n.message===i.Messages.StrictParamDupe){var o=this.context.strict?n.stricted:n.firstRestricted;this.throwUnexpectedToken(o,n.message)}return{simple:n.simple,params:a,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},t.prototype.parseAssignmentExpression=function(){var t;if(!this.context.allowYield&&this.matchKeyword("yield"))t=this.parseYieldExpression();else{var n=this.lookahead,a=n;if(t=this.parseConditionalExpression(),3===a.type&&a.lineNumber===this.lookahead.lineNumber&&"async"===a.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var e=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(e),t={type:c,params:[e],async:!0}}if(t.type===c||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=t.async,o=this.reinterpretAsCoverFormalsList(t);if(o){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=o.simple;var L=this.context.allowYield,m=this.context.await;this.context.allowYield=!0,this.context.await=r;var h=this.startNode(n);this.expect("=>");var p=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,p=this.parseFunctionSourceElements(),this.context.allowIn=g}else p=this.isolateCoverGrammar(this.parseAssignmentExpression);var f=p.type!==u.Syntax.BlockStatement;this.context.strict&&o.firstRestricted&&this.throwUnexpectedToken(o.firstRestricted,o.message),this.context.strict&&o.stricted&&this.tolerateUnexpectedToken(o.stricted,o.message),t=r?this.finalize(h,new s.AsyncArrowFunctionExpression(o.params,p,f)):this.finalize(h,new s.ArrowFunctionExpression(o.params,p,f)),this.context.strict=l,this.context.allowStrictDirective=d,this.context.allowYield=L,this.context.await=m}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&t.type===u.Syntax.Identifier){var b=t;this.scanner.isRestrictedWord(b.name)&&this.tolerateUnexpectedToken(a,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(b.name)&&this.tolerateUnexpectedToken(a,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(t):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var y=(a=this.nextToken()).value,k=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(n),new s.AssignmentExpression(y,t,k)),this.context.firstCoverInitializedNameError=null}}return t},t.prototype.parseExpression=function(){var t=this.lookahead,n=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var a=[];for(a.push(n);2!==this.lookahead.type&&this.match(",");)this.nextToken(),a.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(t),new s.SequenceExpression(a))}return n},t.prototype.parseStatementListItem=function(){var t;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),t=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),t=this.parseImportDeclaration();break;case"const":t=this.parseLexicalDeclaration({inFor:!1});break;case"function":t=this.parseFunctionDeclaration();break;case"class":t=this.parseClassDeclaration();break;case"let":t=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:t=this.parseStatement()}else t=this.parseStatement();return t},t.prototype.parseBlock=function(){var t=this.createNode();this.expect("{");for(var n=[];!this.match("}");)n.push(this.parseStatementListItem());return this.expect("}"),this.finalize(t,new s.BlockStatement(n))},t.prototype.parseLexicalBinding=function(t,n){var a=this.createNode(),e=this.parsePattern([],t);this.context.strict&&e.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===t?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!n.inFor&&e.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(a,new s.VariableDeclarator(e,r))},t.prototype.parseBindingList=function(t,n){for(var a=[this.parseLexicalBinding(t,n)];this.match(",");)this.nextToken(),a.push(this.parseLexicalBinding(t,n));return a},t.prototype.isLexicalDeclaration=function(){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();return this.scanner.restoreState(t),3===n.type||7===n.type&&"["===n.value||7===n.type&&"{"===n.value||4===n.type&&"let"===n.value||4===n.type&&"yield"===n.value},t.prototype.parseLexicalDeclaration=function(t){var n=this.createNode(),a=this.nextToken().value;e.assert("let"===a||"const"===a,"Lexical declaration must be either let or const");var r=this.parseBindingList(a,t);return this.consumeSemicolon(),this.finalize(n,new s.VariableDeclaration(r,a))},t.prototype.parseBindingRestElement=function(t,n){var a=this.createNode();this.expect("...");var e=this.parsePattern(t,n);return this.finalize(a,new s.RestElement(e))},t.prototype.parseArrayPattern=function(t,n){var a=this.createNode();this.expect("[");for(var e=[];!this.match("]");)if(this.match(","))this.nextToken(),e.push(null);else{if(this.match("...")){e.push(this.parseBindingRestElement(t,n));break}e.push(this.parsePatternWithDefault(t,n)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(a,new s.ArrayPattern(e))},t.prototype.parsePropertyPattern=function(t,n){var a,e,r=this.createNode(),i=!1,o=!1;if(3===this.lookahead.type){var u=this.lookahead;a=this.parseVariableIdentifier();var l=this.finalize(r,new s.Identifier(u.value));if(this.match("=")){t.push(u),o=!0,this.nextToken();var c=this.parseAssignmentExpression();e=this.finalize(this.startNode(u),new s.AssignmentPattern(l,c))}else this.match(":")?(this.expect(":"),e=this.parsePatternWithDefault(t,n)):(t.push(u),o=!0,e=l)}else i=this.match("["),a=this.parseObjectPropertyKey(),this.expect(":"),e=this.parsePatternWithDefault(t,n);return this.finalize(r,new s.Property("init",a,i,e,!1,o))},t.prototype.parseObjectPattern=function(t,n){var a=this.createNode(),e=[];for(this.expect("{");!this.match("}");)e.push(this.parsePropertyPattern(t,n)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(a,new s.ObjectPattern(e))},t.prototype.parsePattern=function(t,n){var a;return this.match("[")?a=this.parseArrayPattern(t,n):this.match("{")?a=this.parseObjectPattern(t,n):(!this.matchKeyword("let")||"const"!==n&&"let"!==n||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),t.push(this.lookahead),a=this.parseVariableIdentifier(n)),a},t.prototype.parsePatternWithDefault=function(t,n){var a=this.lookahead,e=this.parsePattern(t,n);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,e=this.finalize(this.startNode(a),new s.AssignmentPattern(e,i))}return e},t.prototype.parseVariableIdentifier=function(t){var n=this.createNode(),a=this.nextToken();return 4===a.type&&"yield"===a.value?this.context.strict?this.tolerateUnexpectedToken(a,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(a):3!==a.type?this.context.strict&&4===a.type&&this.scanner.isStrictModeReservedWord(a.value)?this.tolerateUnexpectedToken(a,i.Messages.StrictReservedWord):(this.context.strict||"let"!==a.value||"var"!==t)&&this.throwUnexpectedToken(a):(this.context.isModule||this.context.await)&&3===a.type&&"await"===a.value&&this.tolerateUnexpectedToken(a),this.finalize(n,new s.Identifier(a.value))},t.prototype.parseVariableDeclaration=function(t){var n=this.createNode(),a=this.parsePattern([],"var");this.context.strict&&a.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(a.name)&&this.tolerateError(i.Messages.StrictVarName);var e=null;return this.match("=")?(this.nextToken(),e=this.isolateCoverGrammar(this.parseAssignmentExpression)):a.type===u.Syntax.Identifier||t.inFor||this.expect("="),this.finalize(n,new s.VariableDeclarator(a,e))},t.prototype.parseVariableDeclarationList=function(t){var n={inFor:t.inFor},a=[];for(a.push(this.parseVariableDeclaration(n));this.match(",");)this.nextToken(),a.push(this.parseVariableDeclaration(n));return a},t.prototype.parseVariableStatement=function(){var t=this.createNode();this.expectKeyword("var");var n=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(n,"var"))},t.prototype.parseEmptyStatement=function(){var t=this.createNode();return this.expect(";"),this.finalize(t,new s.EmptyStatement)},t.prototype.parseExpressionStatement=function(){var t=this.createNode(),n=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ExpressionStatement(n))},t.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},t.prototype.parseIfStatement=function(){var t,n=this.createNode(),a=null;this.expectKeyword("if"),this.expect("(");var e=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),a=this.parseIfClause())),this.finalize(n,new s.IfStatement(e,t,a))},t.prototype.parseDoWhileStatement=function(){var t=this.createNode();this.expectKeyword("do");var n=this.context.inIteration;this.context.inIteration=!0;var a=this.parseStatement();this.context.inIteration=n,this.expectKeyword("while"),this.expect("(");var e=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(t,new s.DoWhileStatement(a,e))},t.prototype.parseWhileStatement=function(){var t,n=this.createNode();this.expectKeyword("while"),this.expect("(");var a=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var e=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=e}return this.finalize(n,new s.WhileStatement(a,t))},t.prototype.parseForStatement=function(){var t,n,a,e=null,r=null,o=null,l=!0,c=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){e=this.createNode(),this.nextToken();var d=this.context.allowIn;this.context.allowIn=!1;var L=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=d,1===L.length&&this.matchKeyword("in")){var m=L[0];m.init&&(m.id.type===u.Syntax.ArrayPattern||m.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),e=this.finalize(e,new s.VariableDeclaration(L,"var")),this.nextToken(),t=e,n=this.parseExpression(),e=null}else 1===L.length&&null===L[0].init&&this.matchContextualKeyword("of")?(e=this.finalize(e,new s.VariableDeclaration(L,"var")),this.nextToken(),t=e,n=this.parseAssignmentExpression(),e=null,l=!1):(e=this.finalize(e,new s.VariableDeclaration(L,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){e=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(d=this.context.allowIn,this.context.allowIn=!1,L=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=d,1===L.length&&null===L[0].init&&this.matchKeyword("in")?(e=this.finalize(e,new s.VariableDeclaration(L,h)),this.nextToken(),t=e,n=this.parseExpression(),e=null):1===L.length&&null===L[0].init&&this.matchContextualKeyword("of")?(e=this.finalize(e,new s.VariableDeclaration(L,h)),this.nextToken(),t=e,n=this.parseAssignmentExpression(),e=null,l=!1):(this.consumeSemicolon(),e=this.finalize(e,new s.VariableDeclaration(L,h)))):(e=this.finalize(e,new s.Identifier(h)),this.nextToken(),t=e,n=this.parseExpression(),e=null)}else{var p=this.lookahead;if(d=this.context.allowIn,this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=d,this.matchKeyword("in"))this.context.isAssignmentTarget&&e.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),t=e,n=this.parseExpression(),e=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&e.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),t=e,n=this.parseAssignmentExpression(),e=null,l=!1;else{if(this.match(",")){for(var g=[e];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(p),new s.SequenceExpression(g))}this.expect(";")}}if(void 0===t&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(o=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),a=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var f=this.context.inIteration;this.context.inIteration=!0,a=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=f}return void 0===t?this.finalize(c,new s.ForStatement(e,r,o,a)):l?this.finalize(c,new s.ForInStatement(t,n,a)):this.finalize(c,new s.ForOfStatement(t,n,a))},t.prototype.parseContinueStatement=function(){var t=this.createNode();this.expectKeyword("continue");var n=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var a=this.parseVariableIdentifier();n=a;var e="$"+a.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,e)||this.throwError(i.Messages.UnknownLabel,a.name)}return this.consumeSemicolon(),null!==n||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(t,new s.ContinueStatement(n))},t.prototype.parseBreakStatement=function(){var t=this.createNode();this.expectKeyword("break");var n=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var a=this.parseVariableIdentifier(),e="$"+a.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,e)||this.throwError(i.Messages.UnknownLabel,a.name),n=a}return this.consumeSemicolon(),null!==n||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(t,new s.BreakStatement(n))},t.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var t=this.createNode();this.expectKeyword("return");var n=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ReturnStatement(n))},t.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var t,n=this.createNode();this.expectKeyword("with"),this.expect("(");var a=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(n,new s.WithStatement(a,t))},t.prototype.parseSwitchCase=function(){var t,n=this.createNode();this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var a=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)a.push(this.parseStatementListItem());return this.finalize(n,new s.SwitchCase(t,a))},t.prototype.parseSwitchStatement=function(){var t=this.createNode();this.expectKeyword("switch"),this.expect("(");var n=this.parseExpression();this.expect(")");var a=this.context.inSwitch;this.context.inSwitch=!0;var e=[],r=!1;for(this.expect("{");!this.match("}");){var o=this.parseSwitchCase();null===o.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),e.push(o)}return this.expect("}"),this.context.inSwitch=a,this.finalize(t,new s.SwitchStatement(n,e))},t.prototype.parseLabelledStatement=function(){var t,n=this.createNode(),a=this.parseExpression();if(a.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var e=a,r="$"+e.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",e.name),this.context.labelSet[r]=!0;var o=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),o=this.parseClassDeclaration();else if(this.matchKeyword("function")){var l=this.lookahead,c=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,i.Messages.StrictFunction):c.generator&&this.tolerateUnexpectedToken(l,i.Messages.GeneratorInLegacyContext),o=c}else o=this.parseStatement();delete this.context.labelSet[r],t=new s.LabeledStatement(e,o)}else this.consumeSemicolon(),t=new s.ExpressionStatement(a);return this.finalize(n,t)},t.prototype.parseThrowStatement=function(){var t=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var n=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ThrowStatement(n))},t.prototype.parseCatchClause=function(){var t=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var n=[],a=this.parsePattern(n),e={},r=0;r<n.length;r++){var o="$"+n[r].value;Object.prototype.hasOwnProperty.call(e,o)&&this.tolerateError(i.Messages.DuplicateBinding,n[r].value),e[o]=!0}this.context.strict&&a.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(a.name)&&this.tolerateError(i.Messages.StrictCatchVariable),this.expect(")");var l=this.parseBlock();return this.finalize(t,new s.CatchClause(a,l))},t.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},t.prototype.parseTryStatement=function(){var t=this.createNode();this.expectKeyword("try");var n=this.parseBlock(),a=this.matchKeyword("catch")?this.parseCatchClause():null,e=this.matchKeyword("finally")?this.parseFinallyClause():null;return a||e||this.throwError(i.Messages.NoCatchOrFinally),this.finalize(t,new s.TryStatement(n,a,e))},t.prototype.parseDebuggerStatement=function(){var t=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(t,new s.DebuggerStatement)},t.prototype.parseStatement=function(){var t;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:t=this.parseExpressionStatement();break;case 7:var n=this.lookahead.value;t="{"===n?this.parseBlock():"("===n?this.parseExpressionStatement():";"===n?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:t=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":t=this.parseBreakStatement();break;case"continue":t=this.parseContinueStatement();break;case"debugger":t=this.parseDebuggerStatement();break;case"do":t=this.parseDoWhileStatement();break;case"for":t=this.parseForStatement();break;case"function":t=this.parseFunctionDeclaration();break;case"if":t=this.parseIfStatement();break;case"return":t=this.parseReturnStatement();break;case"switch":t=this.parseSwitchStatement();break;case"throw":t=this.parseThrowStatement();break;case"try":t=this.parseTryStatement();break;case"var":t=this.parseVariableStatement();break;case"while":t=this.parseWhileStatement();break;case"with":t=this.parseWithStatement();break;default:t=this.parseExpressionStatement()}break;default:t=this.throwUnexpectedToken(this.lookahead)}return t},t.prototype.parseFunctionSourceElements=function(){var t=this.createNode();this.expect("{");var n=this.parseDirectivePrologues(),a=this.context.labelSet,e=this.context.inIteration,r=this.context.inSwitch,i=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)n.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=a,this.context.inIteration=e,this.context.inSwitch=r,this.context.inFunctionBody=i,this.finalize(t,new s.BlockStatement(n))},t.prototype.validateParam=function(t,n,a){var e="$"+a;this.context.strict?(this.scanner.isRestrictedWord(a)&&(t.stricted=n,t.message=i.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(t.paramSet,e)&&(t.stricted=n,t.message=i.Messages.StrictParamDupe)):t.firstRestricted||(this.scanner.isRestrictedWord(a)?(t.firstRestricted=n,t.message=i.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(a)?(t.firstRestricted=n,t.message=i.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(t.paramSet,e)&&(t.stricted=n,t.message=i.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(t.paramSet,e,{value:!0,enumerable:!0,writable:!0,configurable:!0}):t.paramSet[e]=!0},t.prototype.parseRestElement=function(t){var n=this.createNode();this.expect("...");var a=this.parsePattern(t);return this.match("=")&&this.throwError(i.Messages.DefaultRestParameter),this.match(")")||this.throwError(i.Messages.ParameterAfterRestParameter),this.finalize(n,new s.RestElement(a))},t.prototype.parseFormalParameter=function(t){for(var n=[],a=this.match("...")?this.parseRestElement(n):this.parsePatternWithDefault(n),e=0;e<n.length;e++)this.validateParam(t,n[e],n[e].value);t.simple=t.simple&&a instanceof s.Identifier,t.params.push(a)},t.prototype.parseFormalParameters=function(t){var n;if(n={simple:!0,params:[],firstRestricted:t},this.expect("("),!this.match(")"))for(n.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(n),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:n.simple,params:n.params,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},t.prototype.matchAsyncFunction=function(){var t=this.matchContextualKeyword("async");if(t){var n=this.scanner.saveState();this.scanner.scanComments();var a=this.scanner.lex();this.scanner.restoreState(n),t=n.lineNumber===a.lineNumber&&4===a.type&&"function"===a.value}return t},t.prototype.parseFunctionDeclaration=function(t){var n=this.createNode(),a=this.matchContextualKeyword("async");a&&this.nextToken(),this.expectKeyword("function");var e,r=!a&&this.match("*");r&&this.nextToken();var o=null,u=null;if(!t||!this.match("(")){var l=this.lookahead;o=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,i.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(u=l,e=i.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(u=l,e=i.Messages.StrictReservedWord)}var c=this.context.await,d=this.context.allowYield;this.context.await=a,this.context.allowYield=!r;var L=this.parseFormalParameters(u),m=L.params,h=L.stricted;u=L.firstRestricted,L.message&&(e=L.message);var p=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=L.simple;var f=this.parseFunctionSourceElements();return this.context.strict&&u&&this.throwUnexpectedToken(u,e),this.context.strict&&h&&this.tolerateUnexpectedToken(h,e),this.context.strict=p,this.context.allowStrictDirective=g,this.context.await=c,this.context.allowYield=d,a?this.finalize(n,new s.AsyncFunctionDeclaration(o,m,f)):this.finalize(n,new s.FunctionDeclaration(o,m,f,r))},t.prototype.parseFunctionExpression=function(){var t=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var a,e=!n&&this.match("*");e&&this.nextToken();var r,o=null,u=this.context.await,l=this.context.allowYield;if(this.context.await=n,this.context.allowYield=!e,!this.match("(")){var c=this.lookahead;o=this.context.strict||e||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,i.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(r=c,a=i.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(r=c,a=i.Messages.StrictReservedWord)}var d=this.parseFormalParameters(r),L=d.params,m=d.stricted;r=d.firstRestricted,d.message&&(a=d.message);var h=this.context.strict,p=this.context.allowStrictDirective;this.context.allowStrictDirective=d.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&r&&this.throwUnexpectedToken(r,a),this.context.strict&&m&&this.tolerateUnexpectedToken(m,a),this.context.strict=h,this.context.allowStrictDirective=p,this.context.await=u,this.context.allowYield=l,n?this.finalize(t,new s.AsyncFunctionExpression(o,L,g)):this.finalize(t,new s.FunctionExpression(o,L,g,e))},t.prototype.parseDirective=function(){var t=this.lookahead,n=this.createNode(),a=this.parseExpression(),e=a.type===u.Syntax.Literal?this.getTokenRaw(t).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(n,e?new s.Directive(a,e):new s.ExpressionStatement(a))},t.prototype.parseDirectivePrologues=function(){for(var t=null,n=[];;){var a=this.lookahead;if(8!==a.type)break;var e=this.parseDirective();n.push(e);var r=e.directive;if("string"!=typeof r)break;"use strict"===r?(this.context.strict=!0,t&&this.tolerateUnexpectedToken(t,i.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(a,i.Messages.IllegalLanguageModeDirective)):!t&&a.octal&&(t=a)}return n},t.prototype.qualifiedPropertyName=function(t){switch(t.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===t.value}return!1},t.prototype.parseGetterMethod=function(){var t=this.createNode(),n=!1,a=this.context.allowYield;this.context.allowYield=!0;var e=this.parseFormalParameters();e.params.length>0&&this.tolerateError(i.Messages.BadGetterArity);var r=this.parsePropertyMethod(e);return this.context.allowYield=a,this.finalize(t,new s.FunctionExpression(null,e.params,r,n))},t.prototype.parseSetterMethod=function(){var t=this.createNode(),n=!1,a=this.context.allowYield;this.context.allowYield=!0;var e=this.parseFormalParameters();1!==e.params.length?this.tolerateError(i.Messages.BadSetterArity):e.params[0]instanceof s.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var r=this.parsePropertyMethod(e);return this.context.allowYield=a,this.finalize(t,new s.FunctionExpression(null,e.params,r,n))},t.prototype.parseGeneratorMethod=function(){var t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var a=this.parseFormalParameters();this.context.allowYield=!1;var e=this.parsePropertyMethod(a);return this.context.allowYield=n,this.finalize(t,new s.FunctionExpression(null,a.params,e,!0))},t.prototype.isStartOfExpression=function(){var t=!0,n=this.lookahead.value;switch(this.lookahead.type){case 7:t="["===n||"("===n||"{"===n||"+"===n||"-"===n||"!"===n||"~"===n||"++"===n||"--"===n||"/"===n||"/="===n;break;case 4:t="class"===n||"delete"===n||"function"===n||"let"===n||"new"===n||"super"===n||"this"===n||"typeof"===n||"void"===n||"yield"===n}return t},t.prototype.parseYieldExpression=function(){var t=this.createNode();this.expectKeyword("yield");var n=null,a=!1;if(!this.hasLineTerminator){var e=this.context.allowYield;this.context.allowYield=!1,(a=this.match("*"))?(this.nextToken(),n=this.parseAssignmentExpression()):this.isStartOfExpression()&&(n=this.parseAssignmentExpression()),this.context.allowYield=e}return this.finalize(t,new s.YieldExpression(n,a))},t.prototype.parseClassElement=function(t){var n=this.lookahead,a=this.createNode(),e="",r=null,o=null,u=!1,l=!1,c=!1,d=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(n=this.lookahead,c=!0,u=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===n.type&&!this.hasLineTerminator&&"async"===n.value){var L=this.lookahead.value;":"!==L&&"("!==L&&"*"!==L&&(d=!0,n=this.lookahead,r=this.parseObjectPropertyKey(),3===n.type&&"constructor"===n.value&&this.tolerateUnexpectedToken(n,i.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===n.type?"get"===n.value&&m?(e="get",u=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod()):"set"===n.value&&m&&(e="set",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseSetterMethod()):7===n.type&&"*"===n.value&&m&&(e="init",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),l=!0),!e&&r&&this.match("(")&&(e="init",o=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),e||this.throwUnexpectedToken(this.lookahead),"init"===e&&(e="method"),u||(c&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(n,i.Messages.StaticPrototype),!c&&this.isPropertyKey(r,"constructor")&&(("method"!==e||!l||o&&o.generator)&&this.throwUnexpectedToken(n,i.Messages.ConstructorSpecialMethod),t.value?this.throwUnexpectedToken(n,i.Messages.DuplicateConstructor):t.value=!0,e="constructor")),this.finalize(a,new s.MethodDefinition(r,u,o,e,c))},t.prototype.parseClassElementList=function(){var t=[],n={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():t.push(this.parseClassElement(n));return this.expect("}"),t},t.prototype.parseClassBody=function(){var t=this.createNode(),n=this.parseClassElementList();return this.finalize(t,new s.ClassBody(n))},t.prototype.parseClassDeclaration=function(t){var n=this.createNode(),a=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var e=t&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=a,this.finalize(n,new s.ClassDeclaration(e,r,i))},t.prototype.parseClassExpression=function(){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var a=3===this.lookahead.type?this.parseVariableIdentifier():null,e=null;this.matchKeyword("extends")&&(this.nextToken(),e=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassExpression(a,e,r))},t.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var t=this.createNode(),n=this.parseDirectivePrologues();2!==this.lookahead.type;)n.push(this.parseStatementListItem());return this.finalize(t,new s.Module(n))},t.prototype.parseScript=function(){for(var t=this.createNode(),n=this.parseDirectivePrologues();2!==this.lookahead.type;)n.push(this.parseStatementListItem());return this.finalize(t,new s.Script(n))},t.prototype.parseModuleSpecifier=function(){var t=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var n=this.nextToken(),a=this.getTokenRaw(n);return this.finalize(t,new s.Literal(n.value,a))},t.prototype.parseImportSpecifier=function(){var t,n,a=this.createNode();return 3===this.lookahead.type?(n=t=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseVariableIdentifier())):(n=t=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),n=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(a,new s.ImportSpecifier(n,t))},t.prototype.parseNamedImports=function(){this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),t},t.prototype.parseImportDefaultSpecifier=function(){var t=this.createNode(),n=this.parseIdentifierName();return this.finalize(t,new s.ImportDefaultSpecifier(n))},t.prototype.parseImportNamespaceSpecifier=function(){var t=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var n=this.parseIdentifierName();return this.finalize(t,new s.ImportNamespaceSpecifier(n))},t.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var t,n=this.createNode();this.expectKeyword("import");var a=[];if(8===this.lookahead.type)t=this.parseModuleSpecifier();else{if(this.match("{")?a=a.concat(this.parseNamedImports()):this.match("*")?a.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(a.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?a.push(this.parseImportNamespaceSpecifier()):this.match("{")?a=a.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var e=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(e,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(n,new s.ImportDeclaration(a,t))},t.prototype.parseExportSpecifier=function(){var t=this.createNode(),n=this.parseIdentifierName(),a=n;return this.matchContextualKeyword("as")&&(this.nextToken(),a=this.parseIdentifierName()),this.finalize(t,new s.ExportSpecifier(n,a))},t.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var t,n=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var a=this.parseFunctionDeclaration(!0);t=this.finalize(n,new s.ExportDefaultDeclaration(a))}else this.matchKeyword("class")?(a=this.parseClassDeclaration(!0),t=this.finalize(n,new s.ExportDefaultDeclaration(a))):this.matchContextualKeyword("async")?(a=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),t=this.finalize(n,new s.ExportDefaultDeclaration(a))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),a=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),t=this.finalize(n,new s.ExportDefaultDeclaration(a)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var e=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(e,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(n,new s.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(a=void 0,this.lookahead.value){case"let":case"const":a=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":a=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(n,new s.ExportNamedDeclaration(a,[],null))}else if(this.matchAsyncFunction())a=this.parseFunctionDeclaration(),t=this.finalize(n,new s.ExportNamedDeclaration(a,[],null));else{var o=[],u=null,l=!1;for(this.expect("{");!this.match("}");)l=l||this.matchKeyword("default"),o.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon()):l?(e=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(e,this.lookahead.value)):this.consumeSemicolon(),t=this.finalize(n,new s.ExportNamedDeclaration(null,o,u))}return t},t}();n.Parser=d},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.assert=function(t,n){if(!t)throw new Error("ASSERT: "+n)}},function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(){this.errors=[],this.tolerant=!1}return t.prototype.recordError=function(t){this.errors.push(t)},t.prototype.tolerate=function(t){if(!this.tolerant)throw t;this.recordError(t)},t.prototype.constructError=function(t,n){var a=new Error(t);try{throw a}catch(t){Object.create&&Object.defineProperty&&(a=Object.create(t),Object.defineProperty(a,"column",{value:n}))}return a},t.prototype.createError=function(t,n,a,e){var r="Line "+n+": "+e,i=this.constructError(r,a);return i.index=t,i.lineNumber=n,i.description=e,i},t.prototype.throwError=function(t,n,a,e){throw this.createError(t,n,a,e)},t.prototype.tolerateError=function(t,n,a,e){var r=this.createError(t,n,a,e);if(!this.tolerant)throw r;this.recordError(r)},t}();n.ErrorHandler=a},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(9),r=a(4),i=a(11);function s(t){return"0123456789abcdef".indexOf(t.toLowerCase())}function o(t){return"01234567".indexOf(t)}var u=function(){function t(t,n){this.source=t,this.errorHandler=n,this.trackComment=!1,this.isModule=!1,this.length=t.length,this.index=0,this.lineNumber=t.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return t.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},t.prototype.restoreState=function(t){this.index=t.index,this.lineNumber=t.lineNumber,this.lineStart=t.lineStart},t.prototype.eof=function(){return this.index>=this.length},t.prototype.throwUnexpectedToken=function(t){return void 0===t&&(t=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.tolerateUnexpectedToken=function(t){void 0===t&&(t=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.skipSingleLineComment=function(t){var n,a,e=[];for(this.trackComment&&(e=[],n=this.index-t,a={start:{line:this.lineNumber,column:this.index-this.lineStart-t},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){a.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[n+t,this.index-1],range:[n,this.index-1],loc:a};e.push(s)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e}}return this.trackComment&&(a.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!1,slice:[n+t,this.index],range:[n,this.index],loc:a},e.push(s)),e},t.prototype.skipMultiLineComment=function(){var t,n,a=[];for(this.trackComment&&(a=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var e=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(e))13===e&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===e){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:n};a.push(i)}return a}++this.index}else++this.index}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:n},a.push(i)),this.tolerateUnexpectedToken(),a},t.prototype.scanComments=function(){var t;this.trackComment&&(t=[]);for(var n=0===this.index;!this.eof();){var a=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(a))++this.index;else if(r.Character.isLineTerminator(a))++this.index,13===a&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n=!0;else if(47===a)if(47===(a=this.source.charCodeAt(this.index+1))){this.index+=2;var e=this.skipSingleLineComment(2);this.trackComment&&(t=t.concat(e)),n=!0}else{if(42!==a)break;this.index+=2,e=this.skipMultiLineComment(),this.trackComment&&(t=t.concat(e))}else if(n&&45===a){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,e=this.skipSingleLineComment(3),this.trackComment&&(t=t.concat(e))}else{if(60!==a||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,e=this.skipSingleLineComment(4),this.trackComment&&(t=t.concat(e))}}return t},t.prototype.isFutureReservedWord=function(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}},t.prototype.isStrictModeReservedWord=function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},t.prototype.isRestrictedWord=function(t){return"eval"===t||"arguments"===t},t.prototype.isKeyword=function(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}},t.prototype.codePointAt=function(t){var n=this.source.charCodeAt(t);if(n>=55296&&n<=56319){var a=this.source.charCodeAt(t+1);a>=56320&&a<=57343&&(n=1024*(n-55296)+a-56320+65536)}return n},t.prototype.scanHexEscape=function(t){for(var n="u"===t?4:2,a=0,e=0;e<n;++e){if(this.eof()||!r.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;a=16*a+s(this.source[this.index++])}return String.fromCharCode(a)},t.prototype.scanUnicodeCodePointEscape=function(){var t=this.source[this.index],n=0;for("}"===t&&this.throwUnexpectedToken();!this.eof()&&(t=this.source[this.index++],r.Character.isHexDigit(t.charCodeAt(0)));)n=16*n+s(t);return(n>1114111||"}"!==t)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(n)},t.prototype.getIdentifier=function(){for(var t=this.index++;!this.eof();){var n=this.source.charCodeAt(this.index);if(92===n)return this.index=t,this.getComplexIdentifier();if(n>=55296&&n<57343)return this.index=t,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(n))break;++this.index}return this.source.slice(t,this.index)},t.prototype.getComplexIdentifier=function(){var t,n=this.codePointAt(this.index),a=r.Character.fromCodePoint(n);for(this.index+=a.length,92===n&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&r.Character.isIdentifierStart(t.charCodeAt(0))||this.throwUnexpectedToken(),a=t);!this.eof()&&(n=this.codePointAt(this.index),r.Character.isIdentifierPart(n));)a+=t=r.Character.fromCodePoint(n),this.index+=t.length,92===n&&(a=a.substr(0,a.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&r.Character.isIdentifierPart(t.charCodeAt(0))||this.throwUnexpectedToken(),a+=t);return a},t.prototype.octalToDecimal=function(t){var n="0"!==t,a=o(t);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=!0,a=8*a+o(this.source[this.index++]),"0123".indexOf(t)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(a=8*a+o(this.source[this.index++]))),{code:a,octal:n}},t.prototype.scanIdentifier=function(){var t,n=this.index,a=92===this.source.charCodeAt(n)?this.getComplexIdentifier():this.getIdentifier();if(3!=(t=1===a.length?3:this.isKeyword(a)?4:"null"===a?5:"true"===a||"false"===a?1:3)&&n+a.length!==this.index){var e=this.index;this.index=n,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=e}return{type:t,value:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},t.prototype.scanPunctuator=function(){var t=this.index,n=this.source[this.index];switch(n){case"(":case"{":"{"===n&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,n="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(n=this.source.substr(this.index,4))?this.index+=4:"==="===(n=n.substr(0,3))||"!=="===n||">>>"===n||"<<="===n||">>="===n||"**="===n?this.index+=3:"&&"===(n=n.substr(0,2))||"||"===n||"=="===n||"!="===n||"+="===n||"-="===n||"*="===n||"/="===n||"++"===n||"--"===n||"<<"===n||">>"===n||"&="===n||"|="===n||"^="===n||"%="===n||"<="===n||">="===n||"=>"===n||"**"===n?this.index+=2:(n=this.source[this.index],"<>=!+-*%&|^/".indexOf(n)>=0&&++this.index)}return this.index===t&&this.throwUnexpectedToken(),{type:7,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanHexLiteral=function(t){for(var n="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+n,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanBinaryLiteral=function(t){for(var n,a="";!this.eof()&&("0"===(n=this.source[this.index])||"1"===n);)a+=this.source[this.index++];return 0===a.length&&this.throwUnexpectedToken(),this.eof()||(n=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(n)||r.Character.isDecimalDigit(n))&&this.throwUnexpectedToken()),{type:6,value:parseInt(a,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanOctalLiteral=function(t,n){var a="",e=!1;for(r.Character.isOctalDigit(t.charCodeAt(0))?(e=!0,a="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];return e||0!==a.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(a,8),octal:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},t.prototype.isImplicitOctalLiteral=function(){for(var t=this.index+1;t<this.length;++t){var n=this.source[t];if("8"===n||"9"===n)return!1;if(!r.Character.isOctalDigit(n.charCodeAt(0)))return!0}return!0},t.prototype.scanNumericLiteral=function(){var t=this.index,n=this.source[t];e.assert(r.Character.isDecimalDigit(n.charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point");var a="";if("."!==n){if(a=this.source[this.index++],n=this.source[this.index],"0"===a){if("x"===n||"X"===n)return++this.index,this.scanHexLiteral(t);if("b"===n||"B"===n)return++this.index,this.scanBinaryLiteral(t);if("o"===n||"O"===n)return this.scanOctalLiteral(n,t);if(n&&r.Character.isOctalDigit(n.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(n,t)}for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];n=this.source[this.index]}if("."===n){for(a+=this.source[this.index++];r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];n=this.source[this.index]}if("e"===n||"E"===n)if(a+=this.source[this.index++],"+"!==(n=this.source[this.index])&&"-"!==n||(a+=this.source[this.index++]),r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];else this.throwUnexpectedToken();return r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(a),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanStringLiteral=function(){var t=this.index,n=this.source[t];e.assert("'"===n||'"'===n,"String literal must starts with a quote"),++this.index;for(var a=!1,s="";!this.eof();){var o=this.source[this.index++];if(o===n){n="";break}if("\\"===o)if((o=this.source[this.index++])&&r.Character.isLineTerminator(o.charCodeAt(0)))++this.lineNumber,"\r"===o&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(o){case"u":if("{"===this.source[this.index])++this.index,s+=this.scanUnicodeCodePointEscape();else{var u=this.scanHexEscape(o);null===u&&this.throwUnexpectedToken(),s+=u}break;case"x":var l=this.scanHexEscape(o);null===l&&this.throwUnexpectedToken(i.Messages.InvalidHexEscapeSequence),s+=l;break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;case"8":case"9":s+=o,this.tolerateUnexpectedToken();break;default:if(o&&r.Character.isOctalDigit(o.charCodeAt(0))){var c=this.octalToDecimal(o);a=c.octal||a,s+=String.fromCharCode(c.code)}else s+=o}else{if(r.Character.isLineTerminator(o.charCodeAt(0)))break;s+=o}}return""!==n&&(this.index=t,this.throwUnexpectedToken()),{type:8,value:s,octal:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanTemplate=function(){var t="",n=!1,a=this.index,e="`"===this.source[a],s=!1,o=2;for(++this.index;!this.eof();){var u=this.source[this.index++];if("`"===u){o=1,s=!0,n=!0;break}if("$"===u){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,n=!0;break}t+=u}else if("\\"===u)if(u=this.source[this.index++],r.Character.isLineTerminator(u.charCodeAt(0)))++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(u){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"u":if("{"===this.source[this.index])++this.index,t+=this.scanUnicodeCodePointEscape();else{var l=this.index,c=this.scanHexEscape(u);null!==c?t+=c:(this.index=l,t+=u)}break;case"x":var d=this.scanHexEscape(u);null===d&&this.throwUnexpectedToken(i.Messages.InvalidHexEscapeSequence),t+=d;break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:"0"===u?(r.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(i.Messages.TemplateOctalLiteral),t+="\0"):r.Character.isOctalDigit(u.charCodeAt(0))?this.throwUnexpectedToken(i.Messages.TemplateOctalLiteral):t+=u}else r.Character.isLineTerminator(u.charCodeAt(0))?(++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,t+="\n"):t+=u}return n||this.throwUnexpectedToken(),e||this.curlyStack.pop(),{type:10,value:this.source.slice(a+1,this.index-o),cooked:t,head:e,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}},t.prototype.testRegExp=function(t,n){var a=t,e=this;n.indexOf("u")>=0&&(a=a.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(t,n,a){var r=parseInt(n||a,16);return r>1114111&&e.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(a)}catch(t){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(t,n)}catch(t){return null}},t.prototype.scanRegExpBody=function(){var t=this.source[this.index];e.assert("/"===t,"Regular expression literal must start with a slash");for(var n=this.source[this.index++],a=!1,s=!1;!this.eof();)if(n+=t=this.source[this.index++],"\\"===t)t=this.source[this.index++],r.Character.isLineTerminator(t.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),n+=t;else if(r.Character.isLineTerminator(t.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(a)"]"===t&&(a=!1);else{if("/"===t){s=!0;break}"["===t&&(a=!0)}return s||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),n.substr(1,n.length-2)},t.prototype.scanRegExpFlags=function(){for(var t="";!this.eof();){var n=this.source[this.index];if(!r.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,"\\"!==n||this.eof())t+=n;else if("u"===(n=this.source[this.index])){++this.index;var a=this.index,e=this.scanHexEscape("u");if(null!==e)for(t+=e;a<this.index;++a)this.source[a];else this.index=a,t+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return t},t.prototype.scanRegExp=function(){var t=this.index,n=this.scanRegExpBody(),a=this.scanRegExpFlags();return{type:9,value:"",pattern:n,flags:a,regex:this.testRegExp(n,a),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var t=this.source.charCodeAt(this.index);return r.Character.isIdentifierStart(t)?this.scanIdentifier():40===t||41===t||59===t?this.scanPunctuator():39===t||34===t?this.scanStringLiteral():46===t?r.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():r.Character.isDecimalDigit(t)?this.scanNumericLiteral():96===t||125===t&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():t>=55296&&t<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},t}();n.Scanner=u},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenName={},n.TokenName[1]="Boolean",n.TokenName[2]="<end>",n.TokenName[3]="Identifier",n.TokenName[4]="Keyword",n.TokenName[5]="Null",n.TokenName[6]="Numeric",n.TokenName[7]="Punctuator",n.TokenName[8]="String",n.TokenName[9]="RegularExpression",n.TokenName[10]="Template"},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(10),r=a(12),i=a(13),s=function(){function t(){this.values=[],this.curly=this.paren=-1}return t.prototype.beforeFunctionExpression=function(t){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},t.prototype.isRegexStart=function(){var t=this.values[this.values.length-1],n=null!==t;switch(t){case"this":case"]":n=!1;break;case")":var a=this.values[this.paren-1];n="if"===a||"while"===a||"for"===a||"with"===a;break;case"}":if(n=!1,"function"===this.values[this.curly-3])n=!!(e=this.values[this.curly-4])&&!this.beforeFunctionExpression(e);else if("function"===this.values[this.curly-4]){var e;n=!(e=this.values[this.curly-5])||!this.beforeFunctionExpression(e)}}return n},t.prototype.push=function(t){7===t.type||4===t.type?("{"===t.value?this.curly=this.values.length:"("===t.value&&(this.paren=this.values.length),this.values.push(t.value)):this.values.push(null)},t}(),o=function(){function t(t,n){this.errorHandler=new e.ErrorHandler,this.errorHandler.tolerant=!!n&&"boolean"==typeof n.tolerant&&n.tolerant,this.scanner=new r.Scanner(t,this.errorHandler),this.scanner.trackComment=!!n&&"boolean"==typeof n.comment&&n.comment,this.trackRange=!!n&&"boolean"==typeof n.range&&n.range,this.trackLoc=!!n&&"boolean"==typeof n.loc&&n.loc,this.buffer=[],this.reader=new s}return t.prototype.errors=function(){return this.errorHandler.errors},t.prototype.getNextToken=function(){if(0===this.buffer.length){var t=this.scanner.scanComments();if(this.scanner.trackComment)for(var n=0;n<t.length;++n){var a=t[n],e=this.scanner.source.slice(a.slice[0],a.slice[1]),r={type:a.multiLine?"BlockComment":"LineComment",value:e};this.trackRange&&(r.range=a.range),this.trackLoc&&(r.loc=a.loc),this.buffer.push(r)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var o="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(o);var u={type:i.TokenName[o.type],value:this.scanner.source.slice(o.start,o.end)};if(this.trackRange&&(u.range=[o.start,o.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},u.loc=s),9===o.type){var l=o.pattern,c=o.flags;u.regex={pattern:l,flags:c}}this.buffer.push(u)}}return this.buffer.shift()},t}();n.Tokenizer=o}])},Br.exports=Ur()),Br.exports),qr=H(Fr),Or={};var Hr=(Rr||(Rr=1,function t(n){var a,e,r,i,s,o;function u(t){var n,a,e={};for(n in t)t.hasOwnProperty(n)&&("object"===f(a=t[n])&&null!==a?e[n]=u(a):e[n]=a);return e}function l(t,n){this.parent=t,this.key=n}function c(t,n,a,e){this.node=t,this.path=n,this.wrap=a,this.ref=e}function d(){}function L(t){return null!=t&&"object"===f(t)&&"string"==typeof t.type}function m(t,n){return(t===a.ObjectExpression||t===a.ObjectPattern)&&"properties"===n}function h(t,n){for(var a=t.length-1;a>=0;--a)if(t[a].node===n)return!0;return!1}function p(t,n){return(new d).traverse(t,n)}function g(t,n){var a;return a=function(t,n){var a,e,r,i;for(e=t.length,r=0;e;)n(t[i=r+(a=e>>>1)])?e=a:(r=i+1,e-=a+1);return r}(n,function(n){return n.range[0]>t.range[0]}),t.extendedRange=[t.range[0],t.range[1]],a!==n.length&&(t.extendedRange[1]=n[a].range[0]),(a-=1)>=0&&(t.extendedRange[0]=n[a].range[1]),t}return a={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},r={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e={Break:i={},Skip:s={},Remove:o={}},l.prototype.replace=function(t){this.parent[this.key]=t},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},d.prototype.path=function(){var t,n,a,e,r;function i(t,n){if(Array.isArray(n))for(a=0,e=n.length;a<e;++a)t.push(n[a]);else t.push(n)}if(!this.__current.path)return null;for(r=[],t=2,n=this.__leavelist.length;t<n;++t)i(r,this.__leavelist[t].path);return i(r,this.__current.path),r},d.prototype.type=function(){return this.current().type||this.__current.wrap},d.prototype.parents=function(){var t,n,a;for(a=[],t=1,n=this.__leavelist.length;t<n;++t)a.push(this.__leavelist[t].node);return a},d.prototype.current=function(){return this.__current.node},d.prototype.__execute=function(t,n){var a,e;return e=void 0,a=this.__current,this.__current=n,this.__state=null,t&&(e=t.call(this,n.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=a,e},d.prototype.notify=function(t){this.__state=t},d.prototype.skip=function(){this.notify(s)},d.prototype.break=function(){this.notify(i)},d.prototype.remove=function(){this.notify(o)},d.prototype.__initialize=function(t,n){this.visitor=n,this.root=t,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===n.fallback?this.__fallback=Object.keys:"function"==typeof n.fallback&&(this.__fallback=n.fallback),this.__keys=r,n.keys&&(this.__keys=Object.assign(Object.create(this.__keys),n.keys))},d.prototype.traverse=function(t,n){var a,e,r,o,u,l,d,p,g,f,b,y;for(this.__initialize(t,n),y={},a=this.__worklist,e=this.__leavelist,a.push(new c(t,null,null,null)),e.push(new c(null,null,null,null));a.length;)if((r=a.pop())!==y){if(r.node){if(l=this.__execute(n.enter,r),this.__state===i||l===i)return;if(a.push(y),e.push(r),this.__state===s||l===s)continue;if(u=(o=r.node).type||r.wrap,!(f=this.__keys[u])){if(!this.__fallback)throw new Error("Unknown node type "+u+".");f=this.__fallback(o)}for(p=f.length;(p-=1)>=0;)if(b=o[d=f[p]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(e,b[g])){if(m(u,f[p]))r=new c(b[g],[d,g],"Property",null);else{if(!L(b[g]))continue;r=new c(b[g],[d,g],null,null)}a.push(r)}}else if(L(b)){if(h(e,b))continue;a.push(new c(b,d,null,null))}}}else if(r=e.pop(),l=this.__execute(n.leave,r),this.__state===i||l===i)return},d.prototype.replace=function(t,n){var a,e,r,u,d,h,p,g,f,b,y,k,v;function w(t){var n,e,r,i;if(t.ref.remove())for(e=t.ref.key,i=t.ref.parent,n=a.length;n--;)if((r=a[n]).ref&&r.ref.parent===i){if(r.ref.key<e)break;--r.ref.key}}for(this.__initialize(t,n),y={},a=this.__worklist,e=this.__leavelist,h=new c(t,null,null,new l(k={root:t},"root")),a.push(h),e.push(h);a.length;)if((h=a.pop())!==y){if(void 0!==(d=this.__execute(n.enter,h))&&d!==i&&d!==s&&d!==o&&(h.ref.replace(d),h.node=d),this.__state!==o&&d!==o||(w(h),h.node=null),this.__state===i||d===i)return k.root;if((r=h.node)&&(a.push(y),e.push(h),this.__state!==s&&d!==s)){if(u=r.type||h.wrap,!(f=this.__keys[u])){if(!this.__fallback)throw new Error("Unknown node type "+u+".");f=this.__fallback(r)}for(p=f.length;(p-=1)>=0;)if(b=r[v=f[p]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(m(u,f[p]))h=new c(b[g],[v,g],"Property",new l(b,g));else{if(!L(b[g]))continue;h=new c(b[g],[v,g],null,new l(b,g))}a.push(h)}}else L(b)&&a.push(new c(b,v,null,new l(r,v)))}}else if(h=e.pop(),void 0!==(d=this.__execute(n.leave,h))&&d!==i&&d!==s&&d!==o&&h.ref.replace(d),this.__state!==o&&d!==o||w(h),this.__state===i||d===i)return k.root;return k.root},n.Syntax=a,n.traverse=p,n.replace=function(t,n){return(new d).replace(t,n)},n.attachComments=function(t,n,a){var r,i,s,o,l=[];if(!t.range)throw new Error("attachComments needs range information");if(!a.length){if(n.length){for(s=0,i=n.length;s<i;s+=1)(r=u(n[s])).extendedRange=[0,t.range[0]],l.push(r);t.leadingComments=l}return t}for(s=0,i=n.length;s<i;s+=1)l.push(g(u(n[s]),a));return o=0,p(t,{enter:function(t){for(var n;o<l.length&&!((n=l[o]).extendedRange[1]>t.range[0]);)n.extendedRange[1]===t.range[0]?(t.leadingComments||(t.leadingComments=[]),t.leadingComments.push(n),l.splice(o,1)):o+=1;return o===l.length?e.Break:l[o].extendedRange[0]>t.range[1]?e.Skip:void 0}}),o=0,p(t,{leave:function(t){for(var n;o<l.length&&(n=l[o],!(t.range[1]<n.extendedRange[0]));)t.range[1]===n.extendedRange[0]?(t.trailingComments||(t.trailingComments=[]),t.trailingComments.push(n),l.splice(o,1)):o+=1;return o===l.length?e.Break:l[o].extendedRange[0]>t.range[1]?e.Skip:void 0}}),t},n.VisitorKeys=r,n.VisitorOption=e,n.Controller=d,n.cloneEnvironment=function(){return t({})},n}(Or)),Or),Kr=H(Hr);function Vr(){if(!window._yttv)return setTimeout(Vr,250);if(!document.querySelector("video"))return setTimeout(Vr,250);var t=Object.keys(window._yttv).filter(t=>"function"==typeof window._yttv[t]&&window._yttv[t].toString().includes("TRANSPORT_CONTROLS_BUTTON_TYPE_FEATURED_ACTION"));if(0!==t.length){var n=window._yttv[t[0]];we("enablePatchingVideoPlayer")&&(a.prototype=n.prototype,window._yttv[t[0]]=a)}else setTimeout(Vr,250);function a(){var t,e=Array.prototype.slice.call(arguments),r=/^class\s/.test(n.toString());function i(t,e){return"undefined"!=typeof Reflect&&"function"==typeof Reflect.construct?Reflect.construct(t,e,a):new n(...e)}if(!(this instanceof a))return r?i(n,e):n.apply(this,e);r?t=i(n,e):(n.apply(this,e),t=this);var s=function(t){var n,a=t,e=0;try{n=qr.parse(t,{range:!0,tolerant:!0,sourceType:"script"})}catch(a){try{var r="("+t+")";n=qr.parse(r,{range:!0,tolerant:!0,sourceType:"script"}),e=1}catch(r){try{n=qr.parse(t,{range:!0,tolerant:!0,sourceType:"module"})}catch(r){try{var i="("+t+")";n=qr.parse(i,{range:!0,tolerant:!0,sourceType:"module"}),e=1}catch(t){throw a}}}}var s=[];return Kr.traverse(n,{enter:function(t){if("AssignmentExpression"===t.type){var n=t.right;if(n&&n.range){var r=a.slice(n.range[0]-e,n.range[1]-e),i=null;if("CallExpression"===n.type&&n.callee&&"FunctionExpression"===n.callee.type&&n.callee.body)for(var o=n.callee.body.body||[],u=0;u<o.length;u++){var l=o[u];if("ReturnStatement"===l.type&&l.argument&&l.argument.range){i=a.slice(l.argument.range[0]-e,l.argument.range[1]-e);break}}else"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type||(i=r);s.push({left:t.left&&t.left.range?a.slice(t.left.range[0]-e,t.left.range[1]-e):null,rhs:r,returned:i})}}}}),s}(n.toString()),o={type:"TRANSPORT_CONTROLS_BUTTON_TYPE_PIP",button:{buttonRenderer:ze(!1,"Mini Player","CLEAR_COOKIES",{customAction:{action:"ENTER_PIP"}})}},u=s.find(t=>t.rhs.includes("TRANSPORT_CONTROLS_BUTTON_TYPE_PLAYBACK_SETTINGS")).left.split(".")[1];if(!u)return t;var l=t[u];t[u]=function(){var t=l.apply(this,arguments);return t.find(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_PIP"===t.type)||t.splice(1,0,o),t};var c=s.find(t=>{if(t.rhs.includes("skipNextButton")){var n=t.rhs.indexOf("skipNextButton");if(t.rhs.indexOf("skipPreviousButton")>n)return!0}}).left.split(".")[1],d=s.find(t=>{if(t.rhs.includes("skipPreviousButton")&&t.rhs.indexOf("skipNextButton")>t.rhs.indexOf("skipPreviousButton"))return!0}).left.split(".")[1],L=s.find(t=>t.rhs.includes("props.data.engagementActions")).left.split(".")[1];if(L&&we("enableSpeedControlsButton")){var m=t[L];t[L]=function(){var t=m.apply(this,arguments);return t.find(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_SPEED"===t.type)||t.push({type:"TRANSPORT_CONTROLS_BUTTON_TYPE_SPEED",button:{buttonRenderer:ze(!1,"Speed Controls","SLOW_MOTION_VIDEO",{customAction:{action:"TT_SPEED_SETTINGS_SHOW"}})}}),t}}if(!we("enableSuperThanksButton")){var h=t[L];t[L]=function(){return h.apply(this,arguments).filter(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_SUPER_THANKS"!==t.type).filter(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_SHOPPING"!==t.type)}}if(we("enablePreviousNextButtons")){if(!c||!d)return t;t[c]=function(){return ze(!1,"Previous","SKIP_PREVIOUS",{signalAction:{signal:"PLAYER_PLAY_PREVIOUS"}})},t[d]=function(){return ze(!1,"Next","SKIP_NEXT",{signalAction:{signal:"PLAYER_PLAY_NEXT"}})}}return t}}"complete"===document.readyState||"interactive"===document.readyState?Vr():window.addEventListener("DOMContentLoaded",Vr);var Xr=JSON.parse;JSON.parse=function(){var t=Xr.apply(this,arguments),n=we("disabledSidebarContents");if(t.items&&Array.isArray(t.items)&&t.items[0].guideSectionRenderer)for(var a=0;a<t.items.length;a++)for(var e=t.items[a].guideSectionRenderer,r=0;r<e.items.length;r++){var i=e.items[r].guideEntryRenderer;i&&(n.includes(i.icon.iconType)&&(e.items.splice(r,1),r--))}return t},Ae.addEventListener("configChange",t=>{if("disabledSidebarContents"===t.detail.key){var n=br();n&&n.executeFunction(new n.commandFunction("reloadGuideAction"))}})}();
15
+ Intl.DisplayNames&&"function"==typeof Intl.DisplayNames.__addLocaleData&&Intl.DisplayNames.__addLocaleData({data:{patterns:{locale:"{0} ({1})"},types:{calendar:{long:{buddhist:"Buddhist Calendar",chinese:"Chinese Calendar",coptic:"Coptic Calendar",dangi:"Dangi Calendar",ethiopic:"Ethiopic Calendar","ethiopic-amete-alem":"Ethiopic Amete Alem Calendar",gregorian:"Gregorian Calendar",hebrew:"Hebrew Calendar",indian:"Indian National Calendar",islamic:"Hijri Calendar","islamic-civil":"Hijri Calendar (tabular, civil epoch)","islamic-rgsa":"Hijri Calendar (Saudi Arabia, sighting)","islamic-tbla":"Hijri Calendar (tabular, astronomical epoch)","islamic-umalqura":"Hijri Calendar (Umm al-Qura)",iso8601:"ISO-8601 Calendar",japanese:"Japanese Calendar",persian:"Persian Calendar",roc:"Minguo Calendar"},narrow:{},short:{}},currency:{long:{ADP:"Andorran Peseta",AED:"United Arab Emirates Dirham",AFA:"Afghan Afghani (1927–2002)",AFN:"Afghan Afghani",ALK:"Albanian Lek (1946–1965)",ALL:"Albanian Lek",AMD:"Armenian Dram",ANG:"Netherlands Antillean Guilder",AOA:"Angolan Kwanza",AOK:"Angolan Kwanza (1977–1991)",AON:"Angolan New Kwanza (1990–2000)",AOR:"Angolan Readjusted Kwanza (1995–1999)",ARA:"Argentine Austral",ARL:"Argentine Peso Ley (1970–1983)",ARM:"Argentine Peso (1881–1970)",ARP:"Argentine Peso (1983–1985)",ARS:"Argentine Peso",ATS:"Austrian Schilling",AUD:"Australian Dollar",AWG:"Aruban Florin",AZM:"Azerbaijani Manat (1993–2006)",AZN:"Azerbaijani Manat",BAD:"Bosnia-Herzegovina Dinar (1992–1994)",BAM:"Bosnia-Herzegovina Convertible Mark",BAN:"Bosnia-Herzegovina New Dinar (1994–1997)",BBD:"Barbadian Dollar",BDT:"Bangladeshi Taka",BEC:"Belgian Franc (convertible)",BEF:"Belgian Franc",BEL:"Belgian Franc (financial)",BGL:"Bulgarian Hard Lev",BGM:"Bulgarian Socialist Lev",BGN:"Bulgarian Lev",BGO:"Bulgarian Lev (1879–1952)",BHD:"Bahraini Dinar",BIF:"Burundian Franc",BMD:"Bermudan Dollar",BND:"Brunei Dollar",BOB:"Bolivian Boliviano",BOL:"Bolivian Boliviano (1863–1963)",BOP:"Bolivian Peso",BOV:"Bolivian Mvdol",BRB:"Brazilian New Cruzeiro (1967–1986)",BRC:"Brazilian Cruzado (1986–1989)",BRE:"Brazilian Cruzeiro (1990–1993)",BRL:"Brazilian Real",BRN:"Brazilian New Cruzado (1989–1990)",BRR:"Brazilian Cruzeiro (1993–1994)",BRZ:"Brazilian Cruzeiro (1942–1967)",BSD:"Bahamian Dollar",BTN:"Bhutanese Ngultrum",BUK:"Burmese Kyat",BWP:"Botswanan Pula",BYB:"Belarusian Ruble (1994–1999)",BYN:"Belarusian Ruble",BYR:"Belarusian Ruble (2000–2016)",BZD:"Belize Dollar",CAD:"Canadian Dollar",CDF:"Congolese Franc",CHE:"WIR Euro",CHF:"Swiss Franc",CHW:"WIR Franc",CLE:"Chilean Escudo",CLF:"Chilean Unit of Account (UF)",CLP:"Chilean Peso",CNH:"Chinese Yuan (offshore)",CNX:"Chinese People’s Bank Dollar",CNY:"Chinese Yuan",COP:"Colombian Peso",COU:"Colombian Real Value Unit",CRC:"Costa Rican Colón",CSD:"Serbian Dinar (2002–2006)",CSK:"Czechoslovak Hard Koruna",CUC:"Cuban Convertible Peso",CUP:"Cuban Peso",CVE:"Cape Verdean Escudo",CYP:"Cypriot Pound",CZK:"Czech Koruna",DDM:"East German Mark",DEM:"German Mark",DJF:"Djiboutian Franc",DKK:"Danish Krone",DOP:"Dominican Peso",DZD:"Algerian Dinar",ECS:"Ecuadorian Sucre",ECV:"Ecuadorian Unit of Constant Value",EEK:"Estonian Kroon",EGP:"Egyptian Pound",ERN:"Eritrean Nakfa",ESA:"Spanish Peseta (A account)",ESB:"Spanish Peseta (convertible account)",ESP:"Spanish Peseta",ETB:"Ethiopian Birr",EUR:"Euro",FIM:"Finnish Markka",FJD:"Fijian Dollar",FKP:"Falkland Islands Pound",FRF:"French Franc",GBP:"British Pound",GEK:"Georgian Kupon Larit",GEL:"Georgian Lari",GHC:"Ghanaian Cedi (1979–2007)",GHS:"Ghanaian Cedi",GIP:"Gibraltar Pound",GMD:"Gambian Dalasi",GNF:"Guinean Franc",GNS:"Guinean Syli",GQE:"Equatorial Guinean Ekwele",GRD:"Greek Drachma",GTQ:"Guatemalan Quetzal",GWE:"Portuguese Guinea Escudo",GWP:"Guinea-Bissau Peso",GYD:"Guyanaese Dollar",HKD:"Hong Kong Dollar",HNL:"Honduran Lempira",HRD:"Croatian Dinar",HRK:"Croatian Kuna",HTG:"Haitian Gourde",HUF:"Hungarian Forint",IDR:"Indonesian Rupiah",IEP:"Irish Pound",ILP:"Israeli Pound",ILR:"Israeli Shekel (1980–1985)",ILS:"Israeli New Shekel",INR:"Indian Rupee",IQD:"Iraqi Dinar",IRR:"Iranian Rial",ISJ:"Icelandic Króna (1918–1981)",ISK:"Icelandic Króna",ITL:"Italian Lira",JMD:"Jamaican Dollar",JOD:"Jordanian Dinar",JPY:"Japanese Yen",KES:"Kenyan Shilling",KGS:"Kyrgystani Som",KHR:"Cambodian Riel",KMF:"Comorian Franc",KPW:"North Korean Won",KRH:"South Korean Hwan (1953–1962)",KRO:"South Korean Won (1945–1953)",KRW:"South Korean Won",KWD:"Kuwaiti Dinar",KYD:"Cayman Islands Dollar",KZT:"Kazakhstani Tenge",LAK:"Laotian Kip",LBP:"Lebanese Pound",LKR:"Sri Lankan Rupee",LRD:"Liberian Dollar",LSL:"Lesotho Loti",LTL:"Lithuanian Litas",LTT:"Lithuanian Talonas",LUC:"Luxembourgian Convertible Franc",LUF:"Luxembourgian Franc",LUL:"Luxembourg Financial Franc",LVL:"Latvian Lats",LVR:"Latvian Ruble",LYD:"Libyan Dinar",MAD:"Moroccan Dirham",MAF:"Moroccan Franc",MCF:"Monegasque Franc",MDC:"Moldovan Cupon",MDL:"Moldovan Leu",MGA:"Malagasy Ariary",MGF:"Malagasy Franc",MKD:"Macedonian Denar",MKN:"Macedonian Denar (1992–1993)",MLF:"Malian Franc",MMK:"Myanmar Kyat",MNT:"Mongolian Tugrik",MOP:"Macanese Pataca",MRO:"Mauritanian Ouguiya (1973–2017)",MRU:"Mauritanian Ouguiya",MTL:"Maltese Lira",MTP:"Maltese Pound",MUR:"Mauritian Rupee",MVP:"Maldivian Rupee (1947–1981)",MVR:"Maldivian Rufiyaa",MWK:"Malawian Kwacha",MXN:"Mexican Peso",MXP:"Mexican Silver Peso (1861–1992)",MXV:"Mexican Investment Unit",MYR:"Malaysian Ringgit",MZE:"Mozambican Escudo",MZM:"Mozambican Metical (1980–2006)",MZN:"Mozambican Metical",NAD:"Namibian Dollar",NGN:"Nigerian Naira",NIC:"Nicaraguan Córdoba (1988–1991)",NIO:"Nicaraguan Córdoba",NLG:"Dutch Guilder",NOK:"Norwegian Krone",NPR:"Nepalese Rupee",NZD:"New Zealand Dollar",OMR:"Omani Rial",PAB:"Panamanian Balboa",PEI:"Peruvian Inti",PEN:"Peruvian Sol",PES:"Peruvian Sol (1863–1965)",PGK:"Papua New Guinean Kina",PHP:"Philippine Peso",PKR:"Pakistani Rupee",PLN:"Polish Zloty",PLZ:"Polish Zloty (1950–1995)",PTE:"Portuguese Escudo",PYG:"Paraguayan Guarani",QAR:"Qatari Riyal",RHD:"Rhodesian Dollar",ROL:"Romanian Leu (1952–2006)",RON:"Romanian Leu",RSD:"Serbian Dinar",RUB:"Russian Ruble",RUR:"Russian Ruble (1991–1998)",RWF:"Rwandan Franc",SAR:"Saudi Riyal",SBD:"Solomon Islands Dollar",SCR:"Seychellois Rupee",SDD:"Sudanese Dinar (1992–2007)",SDG:"Sudanese Pound",SDP:"Sudanese Pound (1957–1998)",SEK:"Swedish Krona",SGD:"Singapore Dollar",SHP:"St. Helena Pound",SIT:"Slovenian Tolar",SKK:"Slovak Koruna",SLE:"Sierra Leonean Leone",SLL:"Sierra Leonean Leone (1964—2022)",SOS:"Somali Shilling",SRD:"Surinamese Dollar",SRG:"Surinamese Guilder",SSP:"South Sudanese Pound",STD:"São Tomé & Príncipe Dobra (1977–2017)",STN:"São Tomé & Príncipe Dobra",SUR:"Soviet Rouble",SVC:"Salvadoran Colón",SYP:"Syrian Pound",SZL:"Swazi Lilangeni",THB:"Thai Baht",TJR:"Tajikistani Ruble",TJS:"Tajikistani Somoni",TMM:"Turkmenistani Manat (1993–2009)",TMT:"Turkmenistani Manat",TND:"Tunisian Dinar",TOP:"Tongan Paʻanga",TPE:"Timorese Escudo",TRL:"Turkish Lira (1922–2005)",TRY:"Turkish Lira",TTD:"Trinidad & Tobago Dollar",TWD:"New Taiwan Dollar",TZS:"Tanzanian Shilling",UAH:"Ukrainian Hryvnia",UAK:"Ukrainian Karbovanets",UGS:"Ugandan Shilling (1966–1987)",UGX:"Ugandan Shilling",USD:"US Dollar",USN:"US Dollar (Next day)",USS:"US Dollar (Same day)",UYI:"Uruguayan Peso (Indexed Units)",UYP:"Uruguayan Peso (1975–1993)",UYU:"Uruguayan Peso",UYW:"Uruguayan Nominal Wage Index Unit",UZS:"Uzbekistani Som",VEB:"Venezuelan Bolívar (1871–2008)",VED:"Bolívar Soberano",VEF:"Venezuelan Bolívar (2008–2018)",VES:"Venezuelan Bolívar",VND:"Vietnamese Dong",VNN:"Vietnamese Dong (1978–1985)",VUV:"Vanuatu Vatu",WST:"Samoan Tala",XAF:"Central African CFA Franc",XAG:"Silver",XAU:"Gold",XBA:"European Composite Unit",XBB:"European Monetary Unit",XBC:"European Unit of Account (XBC)",XBD:"European Unit of Account (XBD)",XCD:"East Caribbean Dollar",XCG:"Caribbean guilder",XDR:"Special Drawing Rights",XEU:"European Currency Unit",XFO:"French Gold Franc",XFU:"French UIC-Franc",XOF:"West African CFA Franc",XPD:"Palladium",XPF:"CFP Franc",XPT:"Platinum",XRE:"RINET Funds",XSU:"Sucre",XTS:"Testing Currency Code",XUA:"ADB Unit of Account",XXX:"Unknown Currency",YDD:"Yemeni Dinar",YER:"Yemeni Rial",YUD:"Yugoslavian Hard Dinar (1966–1990)",YUM:"Yugoslavian New Dinar (1994–2002)",YUN:"Yugoslavian Convertible Dinar (1990–1992)",YUR:"Yugoslavian Reformed Dinar (1992–1993)",ZAL:"South African Rand (financial)",ZAR:"South African Rand",ZMK:"Zambian Kwacha (1968–2012)",ZMW:"Zambian Kwacha",ZRN:"Zairean New Zaire (1993–1998)",ZRZ:"Zairean Zaire (1971–1993)",ZWD:"Zimbabwean Dollar (1980–2008)",ZWG:"Zimbabwean Gold",ZWL:"Zimbabwean Dollar (2009–2024)",ZWR:"Zimbabwean Dollar (2008)"},narrow:{},short:{}},dateTimeField:{long:{day:"day",dayOfYear:"day of year",dayperiod:"AM/PM",era:"era",hour:"hour",minute:"minute",month:"month",quarter:"quarter",second:"second",timeZoneName:"time zone",weekOfMonth:"week of month",weekOfYear:"week",weekday:"day of the week",weekdayOfMonth:"weekday of the month",year:"year"},narrow:{day:"day",dayOfYear:"day of yr.",dayperiod:"AM/PM",era:"era",hour:"hr",minute:"min",month:"mo",quarter:"qtr",second:"sec",timeZoneName:"zone",weekOfMonth:"wk. of mo.",weekOfYear:"wk",weekday:"day of wk.",weekdayOfMonth:"wkday. of mo.",year:"yr"},short:{day:"day",dayOfYear:"day of yr.",dayperiod:"AM/PM",era:"era",hour:"hr.",minute:"min.",month:"mo.",quarter:"qtr.",second:"sec.",timeZoneName:"zone",weekOfMonth:"wk. of mo.",weekOfYear:"wk.",weekday:"day of wk.",weekdayOfMonth:"wkday. of mo.",year:"yr."}},language:{dialect:{long:{aa:"Afar",ab:"Abkhazian",ace:"Acehnese",ach:"Acoli",ada:"Adangme",ady:"Adyghe",ae:"Avestan",aeb:"Tunisian Arabic",af:"Afrikaans",afh:"Afrihili",agq:"Aghem",ain:"Ainu",ak:"Akan",akk:"Akkadian",akz:"Alabama",ale:"Aleut",aln:"Gheg Albanian",alt:"Southern Altai",am:"Amharic",an:"Aragonese",ang:"Old English",ann:"Obolo",anp:"Angika",ar:"Arabic","ar-001":"Modern Standard Arabic",arc:"Aramaic",arn:"Mapuche",aro:"Araona",arp:"Arapaho",arq:"Algerian Arabic",ars:"Najdi Arabic",arw:"Arawak",ary:"Moroccan Arabic",arz:"Egyptian Arabic",as:"Assamese",asa:"Asu",ase:"American Sign Language",ast:"Asturian",atj:"Atikamekw",av:"Avaric",avk:"Kotava",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ba:"Bashkir",bal:"Baluchi",ban:"Balinese",bar:"Bavarian",bas:"Basaa",bax:"Bamun",bbc:"Batak Toba",bbj:"Ghomala",be:"Belarusian",bej:"Beja",bem:"Bemba",bew:"Betawi",bez:"Bena",bfd:"Bafut",bfq:"Badaga",bg:"Bulgarian",bgc:"Haryanvi",bgn:"Western Balochi",bho:"Bhojpuri",bi:"Bislama",bik:"Bikol",bin:"Bini",bjn:"Banjar",bkm:"Kom",bla:"Siksiká",blo:"Anii",blt:"Tai Dam",bm:"Bambara",bn:"Bangla",bo:"Tibetan",bpy:"Bishnupriya",bqi:"Bakhtiari",br:"Breton",bra:"Braj",brh:"Brahui",brx:"Bodo",bs:"Bosnian",bss:"Akoose",bua:"Buriat",bug:"Buginese",bum:"Bulu",byn:"Blin",byv:"Medumba",ca:"Catalan",cad:"Caddo",car:"Carib",cay:"Cayuga",cch:"Atsam",ccp:"Chakma",ce:"Chechen",ceb:"Cebuano",cgg:"Chiga",ch:"Chamorro",chb:"Chibcha",chg:"Chagatai",chk:"Chuukese",chm:"Mari",chn:"Chinook Jargon",cho:"Choctaw",chp:"Chipewyan",chr:"Cherokee",chy:"Cheyenne",cic:"Chickasaw",ckb:"Central Kurdish",clc:"Chilcotin",co:"Corsican",cop:"Coptic",cps:"Capiznon",cr:"Cree",crg:"Michif",crh:"Crimean Tatar",crj:"Southern East Cree",crk:"Plains Cree",crl:"Northern East Cree",crm:"Moose Cree",crr:"Carolina Algonquian",crs:"Seselwa Creole French",cs:"Czech",csb:"Kashubian",csw:"Swampy Cree",cu:"Church Slavic",cv:"Chuvash",cwd:"Woods Cree",cy:"Welsh",da:"Danish",dak:"Dakota",dar:"Dargwa",dav:"Taita",de:"German","de-AT":"Austrian German","de-CH":"Swiss High German",del:"Delaware",den:"Slave",dgr:"Dogrib",din:"Dinka",dje:"Zarma",doi:"Dogri",dsb:"Lower Sorbian",dtp:"Central Dusun",dua:"Duala",dum:"Middle Dutch",dv:"Divehi",dyo:"Jola-Fonyi",dyu:"Dyula",dz:"Dzongkha",dzg:"Dazaga",ebu:"Embu",ee:"Ewe",efi:"Efik",egl:"Emilian",egy:"Ancient Egyptian",eka:"Ekajuk",el:"Greek",elx:"Elamite",en:"English","en-AU":"Australian English","en-CA":"Canadian English","en-GB":"British English","en-US":"American English",enm:"Middle English",eo:"Esperanto",es:"Spanish","es-419":"Latin American Spanish","es-ES":"European Spanish","es-MX":"Mexican Spanish",esu:"Central Yupik",et:"Estonian",eu:"Basque",ewo:"Ewondo",ext:"Extremaduran",fa:"Persian","fa-AF":"Dari",fan:"Fang",fat:"Fanti",ff:"Fula",fi:"Finnish",fil:"Filipino",fit:"Tornedalen Finnish",fj:"Fijian",fo:"Faroese",fon:"Fon",fr:"French","fr-CA":"Canadian French","fr-CH":"Swiss French",frc:"Cajun French",frm:"Middle French",fro:"Old French",frp:"Arpitan",frr:"Northern Frisian",frs:"Eastern Frisian",fur:"Friulian",fy:"Western Frisian",ga:"Irish",gaa:"Ga",gag:"Gagauz",gan:"Gan Chinese",gay:"Gayo",gba:"Gbaya",gbz:"Zoroastrian Dari",gd:"Scottish Gaelic",gez:"Geez",gil:"Gilbertese",gl:"Galician",glk:"Gilaki",gmh:"Middle High German",gn:"Guarani",goh:"Old High German",gon:"Gondi",gor:"Gorontalo",got:"Gothic",grb:"Grebo",grc:"Ancient Greek",gsw:"Swiss German",gu:"Gujarati",guc:"Wayuu",gur:"Frafra",guz:"Gusii",gv:"Manx",gwi:"Gwichʼin",ha:"Hausa",hai:"Haida",hak:"Hakka Chinese",haw:"Hawaiian",hax:"Southern Haida",hdn:"Northern Haida",he:"Hebrew",hi:"Hindi","hi-Latn":"Hindi (Latin)",hif:"Fiji Hindi",hil:"Hiligaynon",hit:"Hittite",hmn:"Hmong",hnj:"Hmong Njua",ho:"Hiri Motu",hr:"Croatian",hsb:"Upper Sorbian",hsn:"Xiang Chinese",ht:"Haitian Creole",hu:"Hungarian",hup:"Hupa",hur:"Halkomelem",hy:"Armenian",hz:"Herero",ia:"Interlingua",iba:"Iban",ibb:"Ibibio",id:"Indonesian",ie:"Interlingue",ig:"Igbo",ii:"Sichuan Yi",ik:"Inupiaq",ike:"Eastern Canadian Inuktitut",ikt:"Western Canadian Inuktitut",ilo:"Iloko",inh:"Ingush",io:"Ido",is:"Icelandic",it:"Italian",iu:"Inuktitut",izh:"Ingrian",ja:"Japanese",jam:"Jamaican Creole English",jbo:"Lojban",jgo:"Ngomba",jmc:"Machame",jpr:"Judeo-Persian",jrb:"Judeo-Arabic",jut:"Jutish",jv:"Javanese",ka:"Georgian",kaa:"Kara-Kalpak",kab:"Kabyle",kac:"Kachin",kaj:"Jju",kam:"Kamba",kaw:"Kawi",kbd:"Kabardian",kbl:"Kanembu",kcg:"Tyap",kde:"Makonde",kea:"Kabuverdianu",ken:"Kenyang",kfo:"Koro",kg:"Kongo",kgp:"Kaingang",kha:"Khasi",kho:"Khotanese",khq:"Koyra Chiini",khw:"Khowar",ki:"Kikuyu",kiu:"Kirmanjki",kj:"Kuanyama",kk:"Kazakh",kkj:"Kako",kl:"Kalaallisut",kln:"Kalenjin",km:"Khmer",kmb:"Kimbundu",kn:"Kannada",ko:"Korean",koi:"Komi-Permyak",kok:"Konkani",kos:"Kosraean",kpe:"Kpelle",kr:"Kanuri",krc:"Karachay-Balkar",kri:"Krio",krj:"Kinaray-a",krl:"Karelian",kru:"Kurukh",ks:"Kashmiri",ksb:"Shambala",ksf:"Bafia",ksh:"Colognian",ku:"Kurdish",kum:"Kumyk",kut:"Kutenai",kv:"Komi",kw:"Cornish",kwk:"Kwakʼwala",kxv:"Kuvi",ky:"Kyrgyz",la:"Latin",lad:"Ladino",lag:"Langi",lah:"Western Panjabi",lam:"Lamba",lb:"Luxembourgish",lez:"Lezghian",lfn:"Lingua Franca Nova",lg:"Ganda",li:"Limburgish",lij:"Ligurian",lil:"Lillooet",liv:"Livonian",lkt:"Lakota",lmo:"Lombard",ln:"Lingala",lo:"Lao",lol:"Mongo",lou:"Louisiana Creole",loz:"Lozi",lrc:"Northern Luri",lsm:"Saamia",lt:"Lithuanian",ltg:"Latgalian",lu:"Luba-Katanga",lua:"Luba-Lulua",lui:"Luiseno",lun:"Lunda",luo:"Luo",lus:"Mizo",luy:"Luyia",lv:"Latvian",lzh:"Literary Chinese",lzz:"Laz",mad:"Madurese",maf:"Mafa",mag:"Magahi",mai:"Maithili",mak:"Makasar",man:"Mandingo",mas:"Masai",mde:"Maba",mdf:"Moksha",mdr:"Mandar",men:"Mende",mer:"Meru",mfe:"Morisyen",mg:"Malagasy",mga:"Middle Irish",mgh:"Makhuwa-Meetto",mgo:"Metaʼ",mh:"Marshallese",mi:"Māori",mic:"Mi'kmaw",min:"Minangkabau",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mnc:"Manchu",mni:"Manipuri",moe:"Innu-aimun",moh:"Mohawk",mos:"Mossi",mr:"Marathi",mrj:"Western Mari",ms:"Malay",mt:"Maltese",mua:"Mundang",mul:"Multiple languages",mus:"Muscogee",mwl:"Mirandese",mwr:"Marwari",mwv:"Mentawai",my:"Burmese",mye:"Myene",myv:"Erzya",mzn:"Mazanderani",na:"Nauru",nan:"Min Nan Chinese",nap:"Neapolitan",naq:"Nama",nb:"Norwegian Bokmål",nd:"North Ndebele",nds:"Low German","nds-NL":"Low Saxon",ne:"Nepali",new:"Newari",ng:"Ndonga",nia:"Nias",niu:"Niuean",njo:"Ao Naga",nl:"Dutch","nl-BE":"Flemish",nmg:"Kwasio",nn:"Norwegian Nynorsk",nnh:"Ngiemboon",no:"Norwegian",nog:"Nogai",non:"Old Norse",nov:"Novial",nqo:"N’Ko",nr:"South Ndebele",nso:"Northern Sotho",nus:"Nuer",nv:"Navajo",nwc:"Classical Newari",ny:"Nyanja",nym:"Nyamwezi",nyn:"Nyankole",nyo:"Nyoro",nzi:"Nzima",oc:"Occitan",oj:"Ojibwa",ojb:"Northwestern Ojibwa",ojc:"Central Ojibwa",ojg:"Eastern Ojibwa",ojs:"Oji-Cree",ojw:"Western Ojibwa",oka:"Okanagan",om:"Oromo",or:"Odia",os:"Ossetic",osa:"Osage",ota:"Ottoman Turkish",pa:"Punjabi",pag:"Pangasinan",pal:"Pahlavi",pam:"Pampanga",pap:"Papiamento",pau:"Palauan",pcd:"Picard",pcm:"Nigerian Pidgin",pdc:"Pennsylvania German",pdt:"Plautdietsch",peo:"Old Persian",pfl:"Palatine German",phn:"Phoenician",pi:"Pali",pis:"Pijin",pl:"Polish",pms:"Piedmontese",pnt:"Pontic",pon:"Pohnpeian",pqm:"Maliseet-Passamaquoddy",prg:"Prussian",pro:"Old Provençal",ps:"Pashto",pt:"Portuguese","pt-BR":"Brazilian Portuguese","pt-PT":"European Portuguese",qu:"Quechua",quc:"Kʼicheʼ",qug:"Chimborazo Highland Quichua",raj:"Rajasthani",rap:"Rapanui",rar:"Rarotongan",rgn:"Romagnol",rhg:"Rohingya",rif:"Riffian",rm:"Romansh",rn:"Rundi",ro:"Romanian","ro-MD":"Moldavian",rof:"Rombo",rom:"Romany",rtm:"Rotuman",ru:"Russian",rue:"Rusyn",rug:"Roviana",rup:"Aromanian",rw:"Kinyarwanda",rwk:"Rwa",sa:"Sanskrit",sad:"Sandawe",sah:"Yakut",sam:"Samaritan Aramaic",saq:"Samburu",sas:"Sasak",sat:"Santali",saz:"Saurashtra",sba:"Ngambay",sbp:"Sangu",sc:"Sardinian",scn:"Sicilian",sco:"Scots",sd:"Sindhi",sdc:"Sassarese Sardinian",sdh:"Southern Kurdish",se:"Northern Sami",see:"Seneca",seh:"Sena",sei:"Seri",sel:"Selkup",ses:"Koyraboro Senni",sg:"Sango",sga:"Old Irish",sgs:"Samogitian",sh:"Serbo-Croatian",shi:"Tachelhit",shn:"Shan",shu:"Chadian Arabic",si:"Sinhala",sid:"Sidamo",sk:"Slovak",sl:"Slovenian",slh:"Southern Lushootseed",sli:"Lower Silesian",sly:"Selayar",sm:"Samoan",sma:"Southern Sami",smj:"Lule Sami",smn:"Inari Sami",sms:"Skolt Sami",sn:"Shona",snk:"Soninke",so:"Somali",sog:"Sogdien",sq:"Albanian",sr:"Serbian","sr-ME":"Montenegrin",srn:"Sranan Tongo",srr:"Serer",ss:"Swati",ssy:"Saho",st:"Southern Sotho",stq:"Saterland Frisian",str:"Straits Salish",su:"Sundanese",suk:"Sukuma",sus:"Susu",sux:"Sumerian",sv:"Swedish",sw:"Swahili","sw-CD":"Congo Swahili",swb:"Comorian",syc:"Classical Syriac",syr:"Syriac",szl:"Silesian",ta:"Tamil",tce:"Southern Tutchone",tcy:"Tulu",te:"Telugu",tem:"Timne",teo:"Teso",ter:"Tereno",tet:"Tetum",tg:"Tajik",tgx:"Tagish",th:"Thai",tht:"Tahltan",ti:"Tigrinya",tig:"Tigre",tiv:"Tiv",tk:"Turkmen",tkl:"Tokelau",tkr:"Tsakhur",tl:"Tagalog",tlh:"Klingon",tli:"Tlingit",tly:"Talysh",tmh:"Tamashek",tn:"Tswana",to:"Tongan",tog:"Nyasa Tonga",tok:"Toki Pona",tpi:"Tok Pisin",tr:"Turkish",tru:"Turoyo",trv:"Taroko",trw:"Torwali",ts:"Tsonga",tsd:"Tsakonian",tsi:"Tsimshian",tt:"Tatar",ttm:"Northern Tutchone",ttt:"Muslim Tat",tum:"Tumbuka",tvl:"Tuvalu",tw:"Twi",twq:"Tasawaq",ty:"Tahitian",tyv:"Tuvinian",tzm:"Central Atlas Tamazight",udm:"Udmurt",ug:"Uyghur",uga:"Ugaritic",uk:"Ukrainian",umb:"Umbundu",und:"Unknown language",ur:"Urdu",uz:"Uzbek",vai:"Vai",ve:"Venda",vec:"Venetian",vep:"Veps",vi:"Vietnamese",vls:"West Flemish",vmf:"Main-Franconian",vmw:"Makhuwa",vo:"Volapük",vot:"Votic",vro:"Võro",vun:"Vunjo",wa:"Walloon",wae:"Walser",wal:"Wolaytta",war:"Waray",was:"Washo",wbp:"Warlpiri",wo:"Wolof",wuu:"Wu Chinese",xal:"Kalmyk",xh:"Xhosa",xmf:"Mingrelian",xnr:"Kangri",xog:"Soga",yao:"Yao",yap:"Yapese",yav:"Yangben",ybb:"Yemba",yi:"Yiddish",yo:"Yoruba",yrl:"Nheengatu",yue:"Cantonese",za:"Zhuang",zap:"Zapotec",zbl:"Blissymbols",zea:"Zeelandic",zen:"Zenaga",zgh:"Standard Moroccan Tamazight",zh:"Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese",zu:"Zulu",zun:"Zuni",zxx:"No linguistic content",zza:"Zaza"},narrow:{},short:{az:"Azeri","en-GB":"UK English","en-US":"US English"}},standard:{long:{aa:"Afar",ab:"Abkhazian",ace:"Acehnese",ach:"Acoli",ada:"Adangme",ady:"Adyghe",ae:"Avestan",aeb:"Tunisian Arabic",af:"Afrikaans",afh:"Afrihili",agq:"Aghem",ain:"Ainu",ak:"Akan",akk:"Akkadian",akz:"Alabama",ale:"Aleut",aln:"Gheg Albanian",alt:"Southern Altai",am:"Amharic",an:"Aragonese",ang:"Old English",ann:"Obolo",anp:"Angika",ar:"Arabic","ar-001":"Arabic (world)",arc:"Aramaic",arn:"Mapuche",aro:"Araona",arp:"Arapaho",arq:"Algerian Arabic",ars:"Najdi Arabic",arw:"Arawak",ary:"Moroccan Arabic",arz:"Egyptian Arabic",as:"Assamese",asa:"Asu",ase:"American Sign Language",ast:"Asturian",atj:"Atikamekw",av:"Avaric",avk:"Kotava",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ba:"Bashkir",bal:"Baluchi",ban:"Balinese",bar:"Bavarian",bas:"Basaa",bax:"Bamun",bbc:"Batak Toba",bbj:"Ghomala",be:"Belarusian",bej:"Beja",bem:"Bemba",bew:"Betawi",bez:"Bena",bfd:"Bafut",bfq:"Badaga",bg:"Bulgarian",bgc:"Haryanvi",bgn:"Western Balochi",bho:"Bhojpuri",bi:"Bislama",bik:"Bikol",bin:"Bini",bjn:"Banjar",bkm:"Kom",bla:"Siksiká",blo:"Anii",blt:"Tai Dam",bm:"Bambara",bn:"Bangla",bo:"Tibetan",bpy:"Bishnupriya",bqi:"Bakhtiari",br:"Breton",bra:"Braj",brh:"Brahui",brx:"Bodo",bs:"Bosnian",bss:"Akoose",bua:"Buriat",bug:"Buginese",bum:"Bulu",byn:"Blin",byv:"Medumba",ca:"Catalan",cad:"Caddo",car:"Carib",cay:"Cayuga",cch:"Atsam",ccp:"Chakma",ce:"Chechen",ceb:"Cebuano",cgg:"Chiga",ch:"Chamorro",chb:"Chibcha",chg:"Chagatai",chk:"Chuukese",chm:"Mari",chn:"Chinook Jargon",cho:"Choctaw",chp:"Chipewyan",chr:"Cherokee",chy:"Cheyenne",cic:"Chickasaw",ckb:"Central Kurdish",clc:"Chilcotin",co:"Corsican",cop:"Coptic",cps:"Capiznon",cr:"Cree",crg:"Michif",crh:"Crimean Tatar",crj:"Southern East Cree",crk:"Plains Cree",crl:"Northern East Cree",crm:"Moose Cree",crr:"Carolina Algonquian",crs:"Seselwa Creole French",cs:"Czech",csb:"Kashubian",csw:"Swampy Cree",cu:"Church Slavic",cv:"Chuvash",cwd:"Woods Cree",cy:"Welsh",da:"Danish",dak:"Dakota",dar:"Dargwa",dav:"Taita",de:"German","de-AT":"German (Austria)","de-CH":"German (Switzerland)",del:"Delaware",den:"Slave",dgr:"Dogrib",din:"Dinka",dje:"Zarma",doi:"Dogri",dsb:"Lower Sorbian",dtp:"Central Dusun",dua:"Duala",dum:"Middle Dutch",dv:"Divehi",dyo:"Jola-Fonyi",dyu:"Dyula",dz:"Dzongkha",dzg:"Dazaga",ebu:"Embu",ee:"Ewe",efi:"Efik",egl:"Emilian",egy:"Ancient Egyptian",eka:"Ekajuk",el:"Greek",elx:"Elamite",en:"English","en-AU":"English (Australia)","en-CA":"English (Canada)","en-GB":"English (United Kingdom)","en-US":"English (United States)",enm:"Middle English",eo:"Esperanto",es:"Spanish","es-419":"Spanish (Latin America)","es-ES":"Spanish (Spain)","es-MX":"Spanish (Mexico)",esu:"Central Yupik",et:"Estonian",eu:"Basque",ewo:"Ewondo",ext:"Extremaduran",fa:"Persian","fa-AF":"Persian (Afghanistan)",fan:"Fang",fat:"Fanti",ff:"Fula",fi:"Finnish",fil:"Filipino",fit:"Tornedalen Finnish",fj:"Fijian",fo:"Faroese",fon:"Fon",fr:"French","fr-CA":"French (Canada)","fr-CH":"French (Switzerland)",frc:"Cajun French",frm:"Middle French",fro:"Old French",frp:"Arpitan",frr:"Northern Frisian",frs:"Eastern Frisian",fur:"Friulian",fy:"Western Frisian",ga:"Irish",gaa:"Ga",gag:"Gagauz",gan:"Gan Chinese",gay:"Gayo",gba:"Gbaya",gbz:"Zoroastrian Dari",gd:"Scottish Gaelic",gez:"Geez",gil:"Gilbertese",gl:"Galician",glk:"Gilaki",gmh:"Middle High German",gn:"Guarani",goh:"Old High German",gon:"Gondi",gor:"Gorontalo",got:"Gothic",grb:"Grebo",grc:"Ancient Greek",gsw:"Swiss German",gu:"Gujarati",guc:"Wayuu",gur:"Frafra",guz:"Gusii",gv:"Manx",gwi:"Gwichʼin",ha:"Hausa",hai:"Haida",hak:"Hakka Chinese",haw:"Hawaiian",hax:"Southern Haida",hdn:"Northern Haida",he:"Hebrew",hi:"Hindi","hi-Latn":"Hindi (Latin)",hif:"Fiji Hindi",hil:"Hiligaynon",hit:"Hittite",hmn:"Hmong",hnj:"Hmong Njua",ho:"Hiri Motu",hr:"Croatian",hsb:"Upper Sorbian",hsn:"Xiang Chinese",ht:"Haitian Creole",hu:"Hungarian",hup:"Hupa",hur:"Halkomelem",hy:"Armenian",hz:"Herero",ia:"Interlingua",iba:"Iban",ibb:"Ibibio",id:"Indonesian",ie:"Interlingue",ig:"Igbo",ii:"Sichuan Yi",ik:"Inupiaq",ike:"Eastern Canadian Inuktitut",ikt:"Western Canadian Inuktitut",ilo:"Iloko",inh:"Ingush",io:"Ido",is:"Icelandic",it:"Italian",iu:"Inuktitut",izh:"Ingrian",ja:"Japanese",jam:"Jamaican Creole English",jbo:"Lojban",jgo:"Ngomba",jmc:"Machame",jpr:"Judeo-Persian",jrb:"Judeo-Arabic",jut:"Jutish",jv:"Javanese",ka:"Georgian",kaa:"Kara-Kalpak",kab:"Kabyle",kac:"Kachin",kaj:"Jju",kam:"Kamba",kaw:"Kawi",kbd:"Kabardian",kbl:"Kanembu",kcg:"Tyap",kde:"Makonde",kea:"Kabuverdianu",ken:"Kenyang",kfo:"Koro",kg:"Kongo",kgp:"Kaingang",kha:"Khasi",kho:"Khotanese",khq:"Koyra Chiini",khw:"Khowar",ki:"Kikuyu",kiu:"Kirmanjki",kj:"Kuanyama",kk:"Kazakh",kkj:"Kako",kl:"Kalaallisut",kln:"Kalenjin",km:"Khmer",kmb:"Kimbundu",kn:"Kannada",ko:"Korean",koi:"Komi-Permyak",kok:"Konkani",kos:"Kosraean",kpe:"Kpelle",kr:"Kanuri",krc:"Karachay-Balkar",kri:"Krio",krj:"Kinaray-a",krl:"Karelian",kru:"Kurukh",ks:"Kashmiri",ksb:"Shambala",ksf:"Bafia",ksh:"Colognian",ku:"Kurdish",kum:"Kumyk",kut:"Kutenai",kv:"Komi",kw:"Cornish",kwk:"Kwakʼwala",kxv:"Kuvi",ky:"Kyrgyz",la:"Latin",lad:"Ladino",lag:"Langi",lah:"Western Panjabi",lam:"Lamba",lb:"Luxembourgish",lez:"Lezghian",lfn:"Lingua Franca Nova",lg:"Ganda",li:"Limburgish",lij:"Ligurian",lil:"Lillooet",liv:"Livonian",lkt:"Lakota",lmo:"Lombard",ln:"Lingala",lo:"Lao",lol:"Mongo",lou:"Louisiana Creole",loz:"Lozi",lrc:"Northern Luri",lsm:"Saamia",lt:"Lithuanian",ltg:"Latgalian",lu:"Luba-Katanga",lua:"Luba-Lulua",lui:"Luiseno",lun:"Lunda",luo:"Luo",lus:"Mizo",luy:"Luyia",lv:"Latvian",lzh:"Literary Chinese",lzz:"Laz",mad:"Madurese",maf:"Mafa",mag:"Magahi",mai:"Maithili",mak:"Makasar",man:"Mandingo",mas:"Masai",mde:"Maba",mdf:"Moksha",mdr:"Mandar",men:"Mende",mer:"Meru",mfe:"Morisyen",mg:"Malagasy",mga:"Middle Irish",mgh:"Makhuwa-Meetto",mgo:"Metaʼ",mh:"Marshallese",mi:"Māori",mic:"Mi'kmaw",min:"Minangkabau",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mnc:"Manchu",mni:"Manipuri",moe:"Innu-aimun",moh:"Mohawk",mos:"Mossi",mr:"Marathi",mrj:"Western Mari",ms:"Malay",mt:"Maltese",mua:"Mundang",mul:"Multiple languages",mus:"Muscogee",mwl:"Mirandese",mwr:"Marwari",mwv:"Mentawai",my:"Burmese",mye:"Myene",myv:"Erzya",mzn:"Mazanderani",na:"Nauru",nan:"Min Nan Chinese",nap:"Neapolitan",naq:"Nama",nb:"Norwegian Bokmål",nd:"North Ndebele",nds:"Low German","nds-NL":"Low German (Netherlands)",ne:"Nepali",new:"Newari",ng:"Ndonga",nia:"Nias",niu:"Niuean",njo:"Ao Naga",nl:"Dutch","nl-BE":"Dutch (Belgium)",nmg:"Kwasio",nn:"Norwegian Nynorsk",nnh:"Ngiemboon",no:"Norwegian",nog:"Nogai",non:"Old Norse",nov:"Novial",nqo:"N’Ko",nr:"South Ndebele",nso:"Northern Sotho",nus:"Nuer",nv:"Navajo",nwc:"Classical Newari",ny:"Nyanja",nym:"Nyamwezi",nyn:"Nyankole",nyo:"Nyoro",nzi:"Nzima",oc:"Occitan",oj:"Ojibwa",ojb:"Northwestern Ojibwa",ojc:"Central Ojibwa",ojg:"Eastern Ojibwa",ojs:"Oji-Cree",ojw:"Western Ojibwa",oka:"Okanagan",om:"Oromo",or:"Odia",os:"Ossetic",osa:"Osage",ota:"Ottoman Turkish",pa:"Punjabi",pag:"Pangasinan",pal:"Pahlavi",pam:"Pampanga",pap:"Papiamento",pau:"Palauan",pcd:"Picard",pcm:"Nigerian Pidgin",pdc:"Pennsylvania German",pdt:"Plautdietsch",peo:"Old Persian",pfl:"Palatine German",phn:"Phoenician",pi:"Pali",pis:"Pijin",pl:"Polish",pms:"Piedmontese",pnt:"Pontic",pon:"Pohnpeian",pqm:"Maliseet-Passamaquoddy",prg:"Prussian",pro:"Old Provençal",ps:"Pashto",pt:"Portuguese","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",qu:"Quechua",quc:"Kʼicheʼ",qug:"Chimborazo Highland Quichua",raj:"Rajasthani",rap:"Rapanui",rar:"Rarotongan",rgn:"Romagnol",rhg:"Rohingya",rif:"Riffian",rm:"Romansh",rn:"Rundi",ro:"Romanian","ro-MD":"Romanian (Moldova)",rof:"Rombo",rom:"Romany",rtm:"Rotuman",ru:"Russian",rue:"Rusyn",rug:"Roviana",rup:"Aromanian",rw:"Kinyarwanda",rwk:"Rwa",sa:"Sanskrit",sad:"Sandawe",sah:"Yakut",sam:"Samaritan Aramaic",saq:"Samburu",sas:"Sasak",sat:"Santali",saz:"Saurashtra",sba:"Ngambay",sbp:"Sangu",sc:"Sardinian",scn:"Sicilian",sco:"Scots",sd:"Sindhi",sdc:"Sassarese Sardinian",sdh:"Southern Kurdish",se:"Northern Sami",see:"Seneca",seh:"Sena",sei:"Seri",sel:"Selkup",ses:"Koyraboro Senni",sg:"Sango",sga:"Old Irish",sgs:"Samogitian",sh:"Serbo-Croatian",shi:"Tachelhit",shn:"Shan",shu:"Chadian Arabic",si:"Sinhala",sid:"Sidamo",sk:"Slovak",sl:"Slovenian",slh:"Southern Lushootseed",sli:"Lower Silesian",sly:"Selayar",sm:"Samoan",sma:"Southern Sami",smj:"Lule Sami",smn:"Inari Sami",sms:"Skolt Sami",sn:"Shona",snk:"Soninke",so:"Somali",sog:"Sogdien",sq:"Albanian",sr:"Serbian","sr-ME":"Serbian (Montenegro)",srn:"Sranan Tongo",srr:"Serer",ss:"Swati",ssy:"Saho",st:"Southern Sotho",stq:"Saterland Frisian",str:"Straits Salish",su:"Sundanese",suk:"Sukuma",sus:"Susu",sux:"Sumerian",sv:"Swedish",sw:"Swahili","sw-CD":"Swahili (Congo - Kinshasa)",swb:"Comorian",syc:"Classical Syriac",syr:"Syriac",szl:"Silesian",ta:"Tamil",tce:"Southern Tutchone",tcy:"Tulu",te:"Telugu",tem:"Timne",teo:"Teso",ter:"Tereno",tet:"Tetum",tg:"Tajik",tgx:"Tagish",th:"Thai",tht:"Tahltan",ti:"Tigrinya",tig:"Tigre",tiv:"Tiv",tk:"Turkmen",tkl:"Tokelau",tkr:"Tsakhur",tl:"Tagalog",tlh:"Klingon",tli:"Tlingit",tly:"Talysh",tmh:"Tamashek",tn:"Tswana",to:"Tongan",tog:"Nyasa Tonga",tok:"Toki Pona",tpi:"Tok Pisin",tr:"Turkish",tru:"Turoyo",trv:"Taroko",trw:"Torwali",ts:"Tsonga",tsd:"Tsakonian",tsi:"Tsimshian",tt:"Tatar",ttm:"Northern Tutchone",ttt:"Muslim Tat",tum:"Tumbuka",tvl:"Tuvalu",tw:"Twi",twq:"Tasawaq",ty:"Tahitian",tyv:"Tuvinian",tzm:"Central Atlas Tamazight",udm:"Udmurt",ug:"Uyghur",uga:"Ugaritic",uk:"Ukrainian",umb:"Umbundu",und:"Unknown language",ur:"Urdu",uz:"Uzbek",vai:"Vai",ve:"Venda",vec:"Venetian",vep:"Veps",vi:"Vietnamese",vls:"West Flemish",vmf:"Main-Franconian",vmw:"Makhuwa",vo:"Volapük",vot:"Votic",vro:"Võro",vun:"Vunjo",wa:"Walloon",wae:"Walser",wal:"Wolaytta",war:"Waray",was:"Washo",wbp:"Warlpiri",wo:"Wolof",wuu:"Wu Chinese",xal:"Kalmyk",xh:"Xhosa",xmf:"Mingrelian",xnr:"Kangri",xog:"Soga",yao:"Yao",yap:"Yapese",yav:"Yangben",ybb:"Yemba",yi:"Yiddish",yo:"Yoruba",yrl:"Nheengatu",yue:"Cantonese",za:"Zhuang",zap:"Zapotec",zbl:"Blissymbols",zea:"Zeelandic",zen:"Zenaga",zgh:"Standard Moroccan Tamazight",zh:"Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese",zu:"Zulu",zun:"Zuni",zxx:"No linguistic content",zza:"Zaza"},narrow:{},short:{az:"Azeri","en-GB":"English (UK)","en-US":"English (US)"}}},region:{long:{"001":"world","002":"Africa","003":"North America","005":"South America","009":"Oceania","011":"Western Africa","013":"Central America","014":"Eastern Africa","015":"Northern Africa","017":"Middle Africa","018":"Southern Africa","019":"Americas","021":"Northern America","029":"Caribbean","030":"Eastern Asia","034":"Southern Asia","035":"Southeast Asia","039":"Southern Europe","053":"Australasia","054":"Melanesia","057":"Micronesian Region","061":"Polynesia",142:"Asia",143:"Central Asia",145:"Western Asia",150:"Europe",151:"Eastern Europe",154:"Northern Europe",155:"Western Europe",202:"Sub-Saharan Africa",419:"Latin America",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua & Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia & Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"St. Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo - Kinshasa",CF:"Central African Republic",CG:"Congo - Brazzaville",CH:"Switzerland",CI:"Côte d’Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CP:"Clipperton Island",CQ:"Sark",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DG:"Diego Garcia",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EA:"Ceuta & Melilla",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",EU:"European Union",EZ:"Eurozone",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia & South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong SAR China",HM:"Heard & McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",IC:"Canary Islands",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"St. Kitts & Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"St. Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"St. Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar (Burma)",MN:"Mongolia",MO:"Macao SAR China",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"St. Pierre & Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"Palestinian Territories",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",QO:"Outlying Oceania",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"St. Helena",SI:"Slovenia",SJ:"Svalbard & Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"São Tomé & Príncipe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TA:"Tristan da Cunha",TC:"Turks & Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad & Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"U.S. Outlying Islands",UN:"United Nations",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Vatican City",VC:"St. Vincent & Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis & Futuna",WS:"Samoa",XA:"Pseudo-Accents",XB:"Pseudo-Bidi",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"Unknown Region"},narrow:{},short:{BA:"Bosnia",GB:"UK",HK:"Hong Kong",MM:"Myanmar",MO:"Macao",PS:"Palestine",UN:"UN",US:"US"}},script:{long:{Adlm:"Adlam",Afak:"Afaka",Aghb:"Caucasian Albanian",Ahom:"Ahom",Arab:"Arabic",Aran:"Nastaliq",Armi:"Imperial Aramaic",Armn:"Armenian",Avst:"Avestan",Bali:"Balinese",Bamu:"Bamum",Bass:"Bassa Vah",Batk:"Batak",Beng:"Bangla",Bhks:"Bhaiksuki",Blis:"Blissymbols",Bopo:"Bopomofo",Brah:"Brahmi",Brai:"Braille",Bugi:"Buginese",Buhd:"Buhid",Cakm:"Chakma",Cans:"Unified Canadian Aboriginal Syllabics",Cari:"Carian",Cham:"Cham",Cher:"Cherokee",Chrs:"Chorasmian",Cirt:"Cirth",Copt:"Coptic",Cpmn:"Cypro-Minoan",Cprt:"Cypriot",Cyrl:"Cyrillic",Cyrs:"Old Church Slavonic Cyrillic",Deva:"Devanagari",Diak:"Dives Akuru",Dogr:"Dogra",Dsrt:"Deseret",Dupl:"Duployan shorthand",Egyd:"Egyptian demotic",Egyh:"Egyptian hieratic",Egyp:"Egyptian hieroglyphs",Elba:"Elbasan",Elym:"Elymaic",Ethi:"Ethiopic",Gara:"Garay",Geok:"Georgian Khutsuri",Geor:"Georgian",Glag:"Glagolitic",Gong:"Gunjala Gondi",Gonm:"Masaram Gondi",Goth:"Gothic",Gran:"Grantha",Grek:"Greek",Gujr:"Gujarati",Gukh:"Gurung Khema",Guru:"Gurmukhi",Hanb:"Han with Bopomofo",Hang:"Hangul",Hani:"Han",Hano:"Hanunoo",Hans:"Simplified",Hant:"Traditional",Hatr:"Hatran",Hebr:"Hebrew",Hira:"Hiragana",Hluw:"Anatolian Hieroglyphs",Hmng:"Pahawh Hmong",Hmnp:"Nyiakeng Puachue Hmong",Hrkt:"Japanese syllabaries",Hung:"Old Hungarian",Inds:"Indus",Ital:"Old Italic",Jamo:"Jamo",Java:"Javanese",Jpan:"Japanese",Jurc:"Jurchen",Kali:"Kayah Li",Kana:"Katakana",Kawi:"Kawi",Khar:"Kharoshthi",Khmr:"Khmer",Khoj:"Khojki",Kits:"Khitan small script",Knda:"Kannada",Kore:"Korean",Kpel:"Kpelle",Krai:"Kirat Rai",Kthi:"Kaithi",Lana:"Lanna",Laoo:"Lao",Latf:"Fraktur Latin",Latg:"Gaelic Latin",Latn:"Latin",Lepc:"Lepcha",Limb:"Limbu",Lina:"Linear A",Linb:"Linear B",Lisu:"Fraser",Loma:"Loma",Lyci:"Lycian",Lydi:"Lydian",Mahj:"Mahajani",Maka:"Makasar",Mand:"Mandaean",Mani:"Manichaean",Marc:"Marchen",Maya:"Mayan hieroglyphs",Medf:"Medefaidrin",Mend:"Mende",Merc:"Meroitic Cursive",Mero:"Meroitic",Mlym:"Malayalam",Modi:"Modi",Mong:"Mongolian",Moon:"Moon",Mroo:"Mro",Mtei:"Meitei Mayek",Mult:"Multani",Mymr:"Myanmar",Nagm:"Nag Mundari",Nand:"Nandinagari",Narb:"Old North Arabian",Nbat:"Nabataean",Newa:"Newa",Nkgb:"Naxi Geba",Nkoo:"N’Ko",Nshu:"Nüshu",Ogam:"Ogham",Olck:"Ol Chiki",Onao:"Ol Onal",Orkh:"Orkhon",Orya:"Odia",Osge:"Osage",Osma:"Osmanya",Ougr:"Old Uyghur",Palm:"Palmyrene",Pauc:"Pau Cin Hau",Perm:"Old Permic",Phag:"Phags-pa",Phli:"Inscriptional Pahlavi",Phlp:"Psalter Pahlavi",Phlv:"Book Pahlavi",Phnx:"Phoenician",Plrd:"Pollard Phonetic",Prti:"Inscriptional Parthian",Qaag:"Zawgyi",Rjng:"Rejang",Rohg:"Hanifi",Roro:"Rongorongo",Runr:"Runic",Samr:"Samaritan",Sara:"Sarati",Sarb:"Old South Arabian",Saur:"Saurashtra",Sgnw:"SignWriting",Shaw:"Shavian",Shrd:"Sharada",Sidd:"Siddham",Sind:"Khudawadi",Sinh:"Sinhala",Sogd:"Sogdian",Sogo:"Old Sogdian",Sora:"Sora Sompeng",Soyo:"Soyombo",Sund:"Sundanese",Sunu:"Sunuwar",Sylo:"Syloti Nagri",Syrc:"Syriac",Syre:"Estrangelo Syriac",Syrj:"Western Syriac",Syrn:"Eastern Syriac",Tagb:"Tagbanwa",Takr:"Takri",Tale:"Tai Le",Talu:"New Tai Lue",Taml:"Tamil",Tang:"Tangut",Tavt:"Tai Viet",Telu:"Telugu",Teng:"Tengwar",Tfng:"Tifinagh",Tglg:"Tagalog",Thaa:"Thaana",Thai:"Thai",Tibt:"Tibetan",Tirh:"Tirhuta",Tnsa:"Tangsa",Todr:"Todhri",Toto:"Toto",Tutg:"Tulu-Tigalari",Ugar:"Ugaritic",Vaii:"Vai",Visp:"Visible Speech",Vith:"Vithkuqi",Wara:"Varang Kshiti",Wcho:"Wancho",Wole:"Woleai",Xpeo:"Old Persian",Xsux:"Sumero-Akkadian Cuneiform",Yezi:"Yezidi",Yiii:"Yi",Zanb:"Zanabazar Square",Zinh:"Inherited",Zmth:"Mathematical Notation",Zsye:"Emoji",Zsym:"Symbols",Zxxx:"Unwritten",Zyyy:"Common",Zzzz:"Unknown Script"},narrow:{},short:{Cans:"UCAS",Xsux:"S-A Cuneiform"}}}},locale:"en"});var be;be||(be=1,function(){function t(t){return void 0===t?0:Number(t)}function n(t,n){return t!==n&&!(isNaN(t)&&isNaN(n))}self.DOMRect=function(a,e,r,i){var s,o,u,l,c,d,L,m;s=t(a),o=t(e),u=t(r),l=t(i),Object.defineProperties(this,{x:{get:function(){return s},set:function(t){n(s,t)&&(s=t,c=d=void 0)},enumerable:!0},y:{get:function(){return o},set:function(t){n(o,t)&&(o=t,L=m=void 0)},enumerable:!0},width:{get:function(){return u},set:function(t){n(u,t)&&(u=t,c=d=void 0)},enumerable:!0},height:{get:function(){return l},set:function(t){n(l,t)&&(l=t,L=m=void 0)},enumerable:!0},left:{get:function(){return void 0===c&&(c=s+Math.min(0,u)),c},enumerable:!0},right:{get:function(){return void 0===d&&(d=s+Math.max(0,u)),d},enumerable:!0},top:{get:function(){return void 0===L&&(L=o+Math.min(0,l)),L},enumerable:!0},bottom:{get:function(){return void 0===m&&(m=o+Math.max(0,l)),m},enumerable:!0}})}}());var ye,ke="ytaf-configuration",ve={enableAdBlock:!0,enableSponsorBlock:!0,sponsorBlockManualSkips:["intro","outro","filler"],enableSponsorBlockSponsor:!0,enableSponsorBlockIntro:!0,enableSponsorBlockOutro:!0,enableSponsorBlockInteraction:!0,enableSponsorBlockSelfPromo:!0,enableSponsorBlockPreview:!0,enableSponsorBlockMusicOfftopic:!0,enableSponsorBlockFiller:!1,enableSponsorBlockHighlight:!0,videoSpeed:1,preferredVideoQuality:"auto",enableDeArrow:!0,enableDeArrowThumbnails:!1,focusContainerColor:"#0f0f0f",routeColor:"#0f0f0f",enableFixedUI:!window.h5vcc||!window.h5vcc.tizentube,enableHqThumbnails:!0,enableChapters:!0,enableLongPress:!0,enableShorts:!1,dontCheckUpdateUntil:0,enableWhoIsWatchingMenu:!1,enableShowUserLanguage:!0,enableShowOtherLanguages:!1,showWelcomeToast:!1,enablePreviousNextButtons:!0,enableSuperThanksButton:!1,enableSpeedControlsButton:!0,enablePatchingVideoPlayer:!0,enablePreviews:!1,enableHideWatchedVideos:!0,hideWatchedVideosThreshold:10,hideWatchedVideosPages:["home","music","gaming","subscriptions","more"],enableHideWatchedInPlaylists:!0,enablePlaylistContinueButton:!0,enableHideEndScreenCards:!1,enableYouThereRenderer:!1,lastAnnouncementCheck:0,enableScreenDimming:!0,dimmingTimeout:60,dimmingOpacity:.5,enablePaidPromotionOverlay:!1,speedSettingsIncrement:.25,videoPreferredCodec:"any",launchToOnStartup:null,disabledSidebarContents:["TROPHY","NEWS","YOUTUBE_MUSIC","BROADCAST","CLAPPERBOARD","LIVE","GAMING","TAB_MORE"],enableUpdater:!0};try{ye=JSON.parse(window.localStorage[ke])}catch(t){console.warn("Config read failed:",t),ye=ve}function we(t){return void 0===ye[t]&&(console.warn("Populating key",t,"with default value",ve[t]),ye[t]=ve[t]),ye[t]}function De(t,n){console.info("Setting key",t,"to",n),ye[t]=n,window.localStorage[ke]=JSON.stringify(ye),Ae.dispatchEvent(new CustomEvent("configChange",{detail:{key:t,value:n}}))}var Ae={listeners:{},addEventListener(t,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(n)},removeEventListener(t,n){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter(t=>t!==n))},dispatchEvent(t){var n=t.type;this.listeners[n]&&this.listeners[n].forEach(n=>{try{n.call(this,t)}catch(t){}})}};window.isPipPlaying=!1;var Ce=null;function Ne(){var t=Object.values(window._yttv).find(t=>t&&t.mappings);Ce=t.get("PlayerService");var n=t.get("PlaybackPreviewService"),a=n.start,e=n.stop;n.start=function(){if(!window.isPipPlaying){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return a.apply(this,n)}},n.stop=function(){if(!window.isPipPlaying){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e.apply(this,n)}}}"complete"===document.readyState?Ne():window.addEventListener("load",Ne);var xe={ytlrSearchVoice:{length:0,classes:[]},ytlrSearchVoiceMicButton:{length:0,classes:[]}};function Ge(t,n,a){var e={openPopupAction:{popupType:"TOAST",popup:{overlayToastRenderer:{title:{simpleText:t},subtitle:{simpleText:n}}}}};a&&(e.openPopupAction.popup.overlayToastRenderer.image.thumbnails=a),tr(e)}function Se(t,n,a,e){var r=function(t,n,a,e){var r="string"==typeof t?{title:t,subtitle:""}:t,i={openPopupAction:{popupType:"MODAL",popup:{overlaySectionRenderer:{overlay:{overlayTwoPanelRenderer:{actionPanel:{overlayPanelRenderer:{header:{overlayPanelHeaderRenderer:t.overlayPanelHeaderRenderer||{title:{simpleText:r.title}}},content:n}},backButton:{buttonRenderer:{accessibilityData:{accessibilityData:{label:"Back"}},command:{signalAction:{signal:"POPUP_BACK"}}}}}},dismissalCommand:{signalAction:{signal:"POPUP_BACK"}}}},uniqueId:a}};return r.subtitle&&(i.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.header.overlayPanelHeaderRenderer.subtitle={simpleText:r.subtitle}),e&&(i.openPopupAction.shouldMatchUniqueId=!0,i.openPopupAction.updateAction=!0),i}(t,n,a,e);tr(r)}function Pe(t,n){return{overlayPanelItemListRenderer:{items:t,selectedIndex:n}}}function Me(t,n,a){var e={compactLinkRenderer:{serviceEndpoint:{commandExecutorCommand:{commands:a}}}};return t&&(e.compactLinkRenderer.title={simpleText:t.title}),t.subtitle&&(e.compactLinkRenderer.subtitle={simpleText:t.subtitle}),n&&(e.compactLinkRenderer.icon={iconType:n.icon}),n&&n.secondaryIcon&&(e.compactLinkRenderer.secondaryIcon={iconType:n.secondaryIcon}),e}function Ie(t,n,a,e,r){return{timelyActionRenderer:{actionButtons:[{buttonRenderer:{isDisabled:!1,text:{runs:[{text:t}]},icon:{iconType:n},trackingParams:null,command:a}}],triggerTimeMs:e,timeoutMs:r,type:""}}}function Ee(t){return{clickTrackingParams:null,showMenuCommand:{contentId:t.videoId,thumbnail:{thumbnails:t.thumbnails},title:{simpleText:t.title},subtitle:{simpleText:t.subtitle},menu:{menuRenderer:{items:[_e("Play",{clickTrackingParams:null,watchEndpoint:t.watchEndpointData}),Te("Save to Watch Later",{clickTrackingParams:null,playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:t.videoId,action:"ACTION_ADD_VIDEO"}]}}),_e("Save to Playlist",{clickTrackingParams:null,addToPlaylistEndpoint:{videoId:t.videoId}}),Te("Add to Queue",{clickTrackingParams:null,playlistEditEndpoint:{customAction:{action:"ADD_TO_QUEUE",parameters:t.item}}})],trackingParams:null,accessibility:{accessibilityData:{label:"Video options"}}}}}}}function Te(t,n){return{menuServiceItemRenderer:{text:{runs:[{text:t}]},serviceEndpoint:n,trackingParams:null}}}function _e(t,n){return{menuNavigationItemRenderer:{text:{runs:[{text:t}]},navigationEndpoint:n,trackingParams:null}}}function je(t){return{overlayMessageRenderer:{title:{simpleText:t}}}}function ze(t,n,a,e){return{isDisabled:t,text:{runs:[{text:n}]},icon:{iconType:a},command:e,trackingParams:null}}new MutationObserver(()=>{if(window.isPipPlaying){var t=document.querySelector("ytlr-search-bar");if(t)if(!document.querySelector("#tt-pip-button")){var n=t.querySelector("ytlr-search-voice");if(n){for(var a=Object.values(window._yttv).find(t=>t instanceof Map&&t.has("CLEAR_COOKIES")),e=a.get("MICROPHONE_ON"),r=a.get("CLEAR_COOKIES"),i=document.createElement("ytlr-search-voice"),s=0;s<n.classList.length;s++){if(0===xe.ytlrSearchVoice.length&&(xe.ytlrSearchVoice.length=n.classList.length),xe.ytlrSearchVoice.length!==n.classList.length){var o,u=L(xe.ytlrSearchVoice.classes);try{for(u.s();!(o=u.n()).done;){var l=o.value;i.classList.add(l)}}catch(t){u.e(t)}finally{u.f()}break}xe.ytlrSearchVoice.classes.includes(n.classList[s])||xe.ytlrSearchVoice.classes.push(n.classList[s]),i.classList.add(n.classList[s])}i.style.left="10.25em",i.id="tt-pip-button";for(var c=document.createElement("ytlr-search-voice-mic-button"),d=0;d<n.children[0].classList.length;d++){if(0===xe.ytlrSearchVoiceMicButton.length&&(xe.ytlrSearchVoiceMicButton.length=n.children[0].classList.length),xe.ytlrSearchVoiceMicButton.length!==n.children[0].classList.length){var m,h=L(xe.ytlrSearchVoiceMicButton.classes);try{for(h.s();!(m=h.n()).done;){var p=m.value;c.classList.add(p)}}catch(t){h.e(t)}finally{h.f()}break}xe.ytlrSearchVoiceMicButton.classes.includes(n.children[0].classList[d])||xe.ytlrSearchVoiceMicButton.classes.push(n.children[0].classList[d]),c.classList.add(n.children[0].classList[d])}for(var g=document.createElement("yt-icon"),f=0;f<n.children[0].children[0].classList.length;f++)g.classList.add(n.children[0].children[0].classList[f]);g.classList.remove(e),g.classList.add(r),c.appendChild(g),i.appendChild(c),t.appendChild(i)}else{var b=document.createElement("ytlr-search-voice");b.style.left="10.25em",b.id="tt-pip-button",b.setAttribute("idomkey","ytLrSearchBarSearchVoice"),b.setAttribute("tabindex","0"),b.classList.add("ytLrSearchVoiceHost","ytLrSearchBarSearchVoice");var y=document.createElement("ytlr-search-voice-mic-button");y.setAttribute("hybridnavfocusable","true"),y.setAttribute("tabindex","-1"),y.classList.add("ytLrSearchVoiceMicButtonHost","zylon-ve");var k=document.createElement("yt-icon");k.setAttribute("tabindex","-1"),k.classList.add("ytContribIconTvArrowLeft","ytContribIconHost","ytLrSearchVoiceMicButtonIcon"),y.appendChild(k),b.appendChild(y),t.appendChild(b)}}}}).observe(document.body,{childList:!0,subtree:!0});var Be=["af","sq","am","ar","hy","as","az","eu","be","bn","bs","bg","my","ca","zh-CN","zh-TW","zh-HK","hr","cs","da","nl","en","et","fil","fi","fr","gl","ka","de","el","gu","he","hi","hu","is","id","ga","it","ja","kn","kk","km","ko","ky","lo","lv","lt","mk","ms","ml","mt","mr","mn","ne","no","or","fa","pl","pt","pa","ro","ru","sr","si","sk","sl","es","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy","yi","yo","zu"];function Ue(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!t)return null;try{var a=String(t).toUpperCase(),e={CN:"zh-CN",TW:"zh-TW",HK:"zh-HK",SG:"zh-CN"};if(e[a]){var r=e[a];return{code:r,name:new Intl.DisplayNames([n],{type:"language"}).of(r)||r}}var i=new Intl.Locale("und",{region:a}),s=(i.maximize?i.maximize():i).language||"en";return{code:s,name:new Intl.DisplayNames([n],{type:"language"}).of(s)||s}}catch(n){return console.warn("TizenTube Subtitle Localization: Could not infer language for country",t,n),null}}var Re=!1;function Fe(){try{return window.yt&&window.yt.config_&&window.yt.config_.GL?window.yt.config_.GL:(console.warn("TizenTube Subtitle Localization: Could not determine user country code"),null)}catch(t){return console.error("TizenTube Subtitle Localization: Error getting country code:",t),null}}function qe(t,n){return{compactLinkRenderer:{title:{simpleText:n},serviceEndpoint:{commandExecutorCommand:{commands:[{selectSubtitlesTrackCommand:{translationLanguage:{languageCode:t,languageName:n}}},{openClientOverlayAction:{type:"CLIENT_OVERLAY_TYPE_CAPTIONS_LANGUAGE",updateAction:!0}},{signalAction:{signal:"POPUP_BACK"}}]}},secondaryIcon:{iconType:"RADIO_BUTTON_UNCHECKED"}}}}function Oe(){if(!Re){if(!window._yttv)return setTimeout(Oe,250);var t=Object.values(window._yttv).find(t=>t&&t.instance&&"function"==typeof t.instance.resolveCommand);if(t&&!t.instance.resolveCommand.isPatchedBySubtitleLocalization){var n=t.instance.resolveCommand;t.instance.resolveCommand=function(t,a){var e;if("CLIENT_OVERLAY_TYPE_CAPTIONS_AUTO_TRANSLATE"===(null==t||null===(e=t.openPopupAction)||void 0===e?void 0:e.uniqueId)){var r=we("enableShowUserLanguage"),i=we("enableShowOtherLanguages");if(!r&&!i)return n.apply(this,arguments);var s=t.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items,o=function(t){var n=new Set;return t.forEach(t=>{if(t.compactLinkRenderer&&t.compactLinkRenderer.serviceEndpoint){var a,e=null===(a=t.compactLinkRenderer.serviceEndpoint.commandExecutorCommand)||void 0===a?void 0:a.commands;if(e&&e[0]&&e[0].selectSubtitlesTrackCommand){var r=e[0].selectSubtitlesTrackCommand.translationLanguage;r&&(n.add(r.languageCode),n.add(r.languageName))}}}),n}(s);if(r){var u=Fe(),l=Ue(u);if(l)if(function(t,n,a){return t.some(t=>{if(t.compactLinkRenderer&&t.compactLinkRenderer.serviceEndpoint){var e,r=null===(e=t.compactLinkRenderer.serviceEndpoint.commandExecutorCommand)||void 0===e?void 0:e.commands;if(r&&r[0]&&r[0].selectSubtitlesTrackCommand){var i=r[0].selectSubtitlesTrackCommand.translationLanguage;return i&&(i.languageCode===n||i.languageName===a)}}return!1})}(s,l.code,l.name))console.log(`%c[TizenTube Subtitle Localization] User's language ${l.name} already exists in menu`,"background: #4CAF50; color: #ffffff; font-size: 12px;");else{console.log(`%c[TizenTube Subtitle Localization] Adding user's local language: ${l.name} (${l.code})`,"background: #2196F3; color: #ffffff; font-size: 14px; font-weight: bold;");var c=qe(l.code,l.name),d=s.findIndex(t=>{var n;return"Recommended languages"===(null===(n=t.overlayMessageRenderer)||void 0===n||null===(n=n.subtitle)||void 0===n?void 0:n.simpleText)});if(d>-1)s.splice(d+1,0,c),o.add(l.code),o.add(l.name);else{var L=s.findIndex(t=>{var n;return"Other languages"===(null===(n=t.overlayMessageRenderer)||void 0===n||null===(n=n.subtitle)||void 0===n?void 0:n.simpleText)});L>-1?s.splice(L,0,c):s.unshift(c),o.add(l.code),o.add(l.name)}}else console.warn(`TizenTube Subtitle Localization: No language mapping found for country code: ${u}`)}if(i){var m=Object.entries(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";try{var n=new Intl.DisplayNames([t],{type:"language"}),a={};return Be.forEach(t=>{var e=n.of(t)||t;a[t]=e}),a}catch(t){var e={};return Be.forEach(t=>e[t]=t),e}}()).filter(t=>{var n=g(t,2),a=n[0],e=n[1];return!o.has(a)&&!o.has(e)}).sort((t,n)=>{var a=g(t,2)[1],e=g(n,2)[1];return a.localeCompare(e)});m.length>0?(console.log(`%c[TizenTube Subtitle Localization] Adding "Tizen Languages" section with ${m.length} additional languages`,"background: #FF9800; color: #ffffff; font-size: 12px;"),s.push({overlayMessageRenderer:{title:{simpleText:""},subtitle:{simpleText:"Other Languages"},style:"OVERLAY_MESSAGE_STYLE_SUBSECTION_TITLE"}}),m.forEach(t=>{var n=g(t,2),a=n[0],e=n[1];s.push(qe(a,e))}),console.log('%c[TizenTube Subtitle Localization] Added "Tizen Languages" section',"background: #FF9800; color: #ffffff; font-size: 12px;")):console.log("%c[TizenTube Subtitle Localization] All languages already present in menu","background: #4CAF50; color: #ffffff; font-size: 12px;")}}return n.apply(this,arguments)},t.instance.resolveCommand.isPatchedBySubtitleLocalization=!0,console.log("TizenTube Subtitle Localization: Patch successful!"),Re=!0}else t?console.log("TizenTube Subtitle Localization: Already patched."):console.error("TizenTube Subtitle Localization: Could not find resolveCommand instance.")}}var He=setInterval(()=>{window._yttv&&Object.keys(window._yttv).length>0&&(Oe(),clearInterval(He))},1e3);"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Oe):Oe(),console.log("TizenTube Subtitle Localization: Module loaded, waiting for YouTube TV...");var Ke,Ve={};var Xe=(Ke||(Ke=1,Ve.qrcode=function(){var t=function(t,n){var a=t,e=c[n],r=null,i=0,s=null,o=new Array,u={},l=function(t,n){r=function(t){for(var n=new Array(t),a=0;a<t;a+=1){n[a]=new Array(t);for(var e=0;e<t;e+=1)n[a][e]=null}return n}(i=4*a+17),d(0,0),d(i-7,0),d(0,i-7),m(),L(),p(t,n),a>=7&&h(t),null==s&&(s=f(a,e,o)),g(s,n)},d=function(t,n){for(var a=-1;a<=7;a+=1)if(!(t+a<=-1||i<=t+a))for(var e=-1;e<=7;e+=1)n+e<=-1||i<=n+e||(r[t+a][n+e]=0<=a&&a<=6&&(0==e||6==e)||0<=e&&e<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=e&&e<=4)},L=function(){for(var t=8;t<i-8;t+=1)null==r[t][6]&&(r[t][6]=t%2==0);for(var n=8;n<i-8;n+=1)null==r[6][n]&&(r[6][n]=n%2==0)},m=function(){for(var t=y.getPatternPosition(a),n=0;n<t.length;n+=1)for(var e=0;e<t.length;e+=1){var i=t[n],s=t[e];if(null==r[i][s])for(var o=-2;o<=2;o+=1)for(var u=-2;u<=2;u+=1)r[i+o][s+u]=-2==o||2==o||-2==u||2==u||0==o&&0==u}},h=function(t){for(var n=y.getBCHTypeNumber(a),e=0;e<18;e+=1){var s=!t&&1==(n>>e&1);r[Math.floor(e/3)][e%3+i-8-3]=s}for(e=0;e<18;e+=1)s=!t&&1==(n>>e&1),r[e%3+i-8-3][Math.floor(e/3)]=s},p=function(t,n){for(var a=e<<3|n,s=y.getBCHTypeInfo(a),o=0;o<15;o+=1){var u=!t&&1==(s>>o&1);o<6?r[o][8]=u:o<8?r[o+1][8]=u:r[i-15+o][8]=u}for(o=0;o<15;o+=1)u=!t&&1==(s>>o&1),o<8?r[8][i-o-1]=u:o<9?r[8][15-o-1+1]=u:r[8][15-o-1]=u;r[i-8][8]=!t},g=function(t,n){for(var a=-1,e=i-1,s=7,o=0,u=y.getMaskFunction(n),l=i-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var c=0;c<2;c+=1)if(null==r[e][l-c]){var d=!1;o<t.length&&(d=1==(t[o]>>>s&1)),u(e,l-c)&&(d=!d),r[e][l-c]=d,-1==(s-=1)&&(o+=1,s=7)}if((e+=a)<0||i<=e){e-=a,a=-a;break}}},f=function(t,n,a){for(var e=w.getRSBlocks(t,n),r=D(),i=0;i<a.length;i+=1){var s=a[i];r.put(s.getMode(),4),r.put(s.getLength(),y.getLengthInBits(s.getMode(),t)),s.write(r)}var o=0;for(i=0;i<e.length;i+=1)o+=e[i].dataCount;if(r.getLengthInBits()>8*o)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*o+")");for(r.getLengthInBits()+4<=8*o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*o||(r.put(236,8),r.getLengthInBits()>=8*o));)r.put(17,8);return function(t,n){for(var a=0,e=0,r=0,i=new Array(n.length),s=new Array(n.length),o=0;o<n.length;o+=1){var u=n[o].dataCount,l=n[o].totalCount-u;e=Math.max(e,u),r=Math.max(r,l),i[o]=new Array(u);for(var c=0;c<i[o].length;c+=1)i[o][c]=255&t.getBuffer()[c+a];a+=u;var d=y.getErrorCorrectPolynomial(l),L=v(i[o],d.getLength()-1).mod(d);for(s[o]=new Array(d.getLength()-1),c=0;c<s[o].length;c+=1){var m=c+L.getLength()-s[o].length;s[o][c]=m>=0?L.get(m):0}}var h=0;for(c=0;c<n.length;c+=1)h+=n[c].totalCount;var p=new Array(h),g=0;for(c=0;c<e;c+=1)for(o=0;o<n.length;o+=1)c<i[o].length&&(p[g]=i[o][c],g+=1);for(c=0;c<r;c+=1)for(o=0;o<n.length;o+=1)c<s[o].length&&(p[g]=s[o][c],g+=1);return p}(r,e)};return u.addData=function(t){var n=A(t);o.push(n),s=null},u.isDark=function(t,n){if(t<0||i<=t||n<0||i<=n)throw new Error(t+","+n);return r[t][n]},u.getModuleCount=function(){return i},u.make=function(){l(!1,function(){for(var t=0,n=0,a=0;a<8;a+=1){l(!0,a);var e=y.getLostPoint(u);(0==a||t>e)&&(t=e,n=a)}return n}())},u.createTableTag=function(t,n){t=t||2;var a="";a+='<table style="',a+=" border-width: 0px; border-style: none;",a+=" border-collapse: collapse;",a+=" padding: 0px; margin: "+(n=void 0===n?4*t:n)+"px;",a+='">',a+="<tbody>";for(var e=0;e<u.getModuleCount();e+=1){a+="<tr>";for(var r=0;r<u.getModuleCount();r+=1)a+='<td style="',a+=" border-width: 0px; border-style: none;",a+=" border-collapse: collapse;",a+=" padding: 0px; margin: 0px;",a+=" width: "+t+"px;",a+=" height: "+t+"px;",a+=" background-color: ",a+=u.isDark(e,r)?"#000000":"#ffffff",a+=";",a+='"/>';a+="</tr>"}return a+="</tbody>",a+="</table>"},u.createImgTag=function(t,n){t=t||2,n=void 0===n?4*t:n;var a=u.getModuleCount()*t+2*n,e=n,r=a-n;return G(a,a,function(n,a){if(e<=n&&n<r&&e<=a&&a<r){var i=Math.floor((n-e)/t),s=Math.floor((a-e)/t);return u.isDark(s,i)?0:1}return 1})},u};t.stringToBytes=function(t){for(var n=new Array,a=0;a<t.length;a+=1){var e=t.charCodeAt(a);n.push(255&e)}return n},t.createStringToBytes=function(t,n){var a=function(){for(var a=N(t),e=function(){var t=a.read();if(-1==t)throw new Error;return t},r=0,i={};;){var s=a.read();if(-1==s)break;var o=e(),u=e()<<8|e();i[String.fromCharCode(s<<8|o)]=u,r+=1}if(r!=n)throw new Error(r+" != "+n);return i}(),e="?".charCodeAt(0);return function(t){for(var n=new Array,r=0;r<t.length;r+=1){var i=t.charCodeAt(r);if(i<128)n.push(i);else{var s=a[t.charAt(r)];"number"==typeof s?(255&s)==s?n.push(s):(n.push(s>>>8),n.push(255&s)):n.push(e)}}return n}};var n,a,e,r,i,s=1,o=2,u=4,l=8,c={L:1,M:0,Q:3,H:2},d=0,L=1,m=2,h=3,p=4,g=5,f=6,b=7,y=(n=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a=1335,e=7973,i=function(t){for(var n=0;0!=t;)n+=1,t>>>=1;return n},(r={}).getBCHTypeInfo=function(t){for(var n=t<<10;i(n)-i(a)>=0;)n^=a<<i(n)-i(a);return 21522^(t<<10|n)},r.getBCHTypeNumber=function(t){for(var n=t<<12;i(n)-i(e)>=0;)n^=e<<i(n)-i(e);return t<<12|n},r.getPatternPosition=function(t){return n[t-1]},r.getMaskFunction=function(t){switch(t){case d:return function(t,n){return(t+n)%2==0};case L:return function(t,n){return t%2==0};case m:return function(t,n){return n%3==0};case h:return function(t,n){return(t+n)%3==0};case p:return function(t,n){return(Math.floor(t/2)+Math.floor(n/3))%2==0};case g:return function(t,n){return t*n%2+t*n%3==0};case f:return function(t,n){return(t*n%2+t*n%3)%2==0};case b:return function(t,n){return(t*n%3+(t+n)%2)%2==0};default:throw new Error("bad maskPattern:"+t)}},r.getErrorCorrectPolynomial=function(t){for(var n=v([1],0),a=0;a<t;a+=1)n=n.multiply(v([1,k.gexp(a)],0));return n},r.getLengthInBits=function(t,n){if(1<=n&&n<10)switch(t){case s:return 10;case o:return 9;case u:case l:return 8;default:throw new Error("mode:"+t)}else if(n<27)switch(t){case s:return 12;case o:return 11;case u:return 16;case l:return 10;default:throw new Error("mode:"+t)}else{if(!(n<41))throw new Error("type:"+n);switch(t){case s:return 14;case o:return 13;case u:return 16;case l:return 12;default:throw new Error("mode:"+t)}}},r.getLostPoint=function(t){for(var n=t.getModuleCount(),a=0,e=0;e<n;e+=1)for(var r=0;r<n;r+=1){for(var i=0,s=t.isDark(e,r),o=-1;o<=1;o+=1)if(!(e+o<0||n<=e+o))for(var u=-1;u<=1;u+=1)r+u<0||n<=r+u||0==o&&0==u||s==t.isDark(e+o,r+u)&&(i+=1);i>5&&(a+=3+i-5)}for(e=0;e<n-1;e+=1)for(r=0;r<n-1;r+=1){var l=0;t.isDark(e,r)&&(l+=1),t.isDark(e+1,r)&&(l+=1),t.isDark(e,r+1)&&(l+=1),t.isDark(e+1,r+1)&&(l+=1),0!=l&&4!=l||(a+=3)}for(e=0;e<n;e+=1)for(r=0;r<n-6;r+=1)t.isDark(e,r)&&!t.isDark(e,r+1)&&t.isDark(e,r+2)&&t.isDark(e,r+3)&&t.isDark(e,r+4)&&!t.isDark(e,r+5)&&t.isDark(e,r+6)&&(a+=40);for(r=0;r<n;r+=1)for(e=0;e<n-6;e+=1)t.isDark(e,r)&&!t.isDark(e+1,r)&&t.isDark(e+2,r)&&t.isDark(e+3,r)&&t.isDark(e+4,r)&&!t.isDark(e+5,r)&&t.isDark(e+6,r)&&(a+=40);var c=0;for(r=0;r<n;r+=1)for(e=0;e<n;e+=1)t.isDark(e,r)&&(c+=1);return a+=Math.abs(100*c/n/n-50)/5*10},r),k=function(){for(var t=new Array(256),n=new Array(256),a=0;a<8;a+=1)t[a]=1<<a;for(a=8;a<256;a+=1)t[a]=t[a-4]^t[a-5]^t[a-6]^t[a-8];for(a=0;a<255;a+=1)n[t[a]]=a;var e={glog:function(t){if(t<1)throw new Error("glog("+t+")");return n[t]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return t[n]}};return e}();function v(t,n){if(void 0===t.length)throw new Error(t.length+"/"+n);var a=function(){for(var a=0;a<t.length&&0==t[a];)a+=1;for(var e=new Array(t.length-a+n),r=0;r<t.length-a;r+=1)e[r]=t[r+a];return e}(),e={get:function(t){return a[t]},getLength:function(){return a.length},multiply:function(t){for(var n=new Array(e.getLength()+t.getLength()-1),a=0;a<e.getLength();a+=1)for(var r=0;r<t.getLength();r+=1)n[a+r]^=k.gexp(k.glog(e.get(a))+k.glog(t.get(r)));return v(n,0)},mod:function(t){if(e.getLength()-t.getLength()<0)return e;for(var n=k.glog(e.get(0))-k.glog(t.get(0)),a=new Array(e.getLength()),r=0;r<e.getLength();r+=1)a[r]=e.get(r);for(r=0;r<t.getLength();r+=1)a[r]^=k.gexp(k.glog(t.get(r))+n);return v(a,0).mod(t)}};return e}var w=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16]],n=function(t,n){var a={};return a.totalCount=t,a.dataCount=n,a},a={getRSBlocks:function(a,e){var r=function(n,a){switch(a){case c.L:return t[4*(n-1)+0];case c.M:return t[4*(n-1)+1];case c.Q:return t[4*(n-1)+2];case c.H:return t[4*(n-1)+3];default:return}}(a,e);if(void 0===r)throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+e);for(var i=r.length/3,s=new Array,o=0;o<i;o+=1)for(var u=r[3*o+0],l=r[3*o+1],d=r[3*o+2],L=0;L<u;L+=1)s.push(n(l,d));return s}};return a}(),D=function(){var t=new Array,n=0,a={getBuffer:function(){return t},get:function(n){var a=Math.floor(n/8);return 1==(t[a]>>>7-n%8&1)},put:function(t,n){for(var e=0;e<n;e+=1)a.putBit(1==(t>>>n-e-1&1))},getLengthInBits:function(){return n},putBit:function(a){var e=Math.floor(n/8);t.length<=e&&t.push(0),a&&(t[e]|=128>>>n%8),n+=1}};return a},A=function(n){var a=u,e=t.stringToBytes(n),r={getMode:function(){return a},getLength:function(t){return e.length},write:function(t){for(var n=0;n<e.length;n+=1)t.put(e[n],8)}};return r},C=function(){var t=new Array,n={writeByte:function(n){t.push(255&n)},writeShort:function(t){n.writeByte(t),n.writeByte(t>>>8)},writeBytes:function(t,a,e){a=a||0,e=e||t.length;for(var r=0;r<e;r+=1)n.writeByte(t[r+a])},writeString:function(t){for(var a=0;a<t.length;a+=1)n.writeByte(t.charCodeAt(a))},toByteArray:function(){return t},toString:function(){var n="";n+="[";for(var a=0;a<t.length;a+=1)a>0&&(n+=","),n+=t[a];return n+="]"}};return n},N=function(t){var n=t,a=0,e=0,r=0,i={read:function(){for(;r<8;){if(a>=n.length){if(0==r)return-1;throw new Error("unexpected end of file./"+r)}var t=n.charAt(a);if(a+=1,"="==t)return r=0,-1;t.match(/^\s$/)||(e=e<<6|s(t.charCodeAt(0)),r+=6)}var i=e>>>r-8&255;return r-=8,i}},s=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw new Error("c:"+t)};return i},x=function(t,n){var a=t,e=n,r=new Array(t*n),i={setPixel:function(t,n,e){r[n*a+t]=e},write:function(t){t.writeString("GIF87a"),t.writeShort(a),t.writeShort(e),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(a),t.writeShort(e),t.writeByte(0);var n=s(2);t.writeByte(2);for(var r=0;n.length-r>255;)t.writeByte(255),t.writeBytes(n,r,255),r+=255;t.writeByte(n.length-r),t.writeBytes(n,r,n.length-r),t.writeByte(0),t.writeString(";")}},s=function(t){for(var n=1<<t,a=1+(1<<t),e=t+1,i=o(),s=0;s<n;s+=1)i.add(String.fromCharCode(s));i.add(String.fromCharCode(n)),i.add(String.fromCharCode(a));var u=C(),l=function(t){var n=t,a=0,e=0,r={write:function(t,r){if(t>>>r!=0)throw new Error("length over");for(;a+r>=8;)n.writeByte(255&(t<<a|e)),r-=8-a,t>>>=8-a,e=0,a=0;e|=t<<a,a+=r},flush:function(){a>0&&n.writeByte(e)}};return r}(u);l.write(n,e);var c=0,d=String.fromCharCode(r[c]);for(c+=1;c<r.length;){var L=String.fromCharCode(r[c]);c+=1,i.contains(d+L)?d+=L:(l.write(i.indexOf(d),e),i.size()<4095&&(i.size()==1<<e&&(e+=1),i.add(d+L)),d=L)}return l.write(i.indexOf(d),e),l.write(a,e),l.flush(),u.toByteArray()},o=function(){var t={},n=0,a={add:function(e){if(a.contains(e))throw new Error("dup key:"+e);t[e]=n,n+=1},size:function(){return n},indexOf:function(n){return t[n]},contains:function(n){return void 0!==t[n]}};return a};return i},G=function(t,n,a,e){for(var r=x(t,n),i=0;i<n;i+=1)for(var s=0;s<t;s+=1)r.setPixel(s,i,a(s,i));var o=C();r.write(o);for(var u=function(){var t=0,n=0,a=0,e="",r={},i=function(t){e+=String.fromCharCode(s(63&t))},s=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw new Error("n:"+t)};return r.writeByte=function(e){for(t=t<<8|255&e,n+=8,a+=1;n>=6;)i(t>>>n-6),n-=6},r.flush=function(){if(n>0&&(i(t<<6-n),t=0,n=0),a%3!=0)for(var r=3-a%3,s=0;s<r;s+=1)e+="="},r.toString=function(){return e},r}(),l=o.toByteArray(),c=0;c<l.length;c+=1)u.writeByte(l[c]);u.flush();var d="";return d+="<img",d+=' src="',d+="data:image/gif;base64,",d+=u,d+='"',d+=' width="',d+=t,d+='"',d+=' height="',d+=n,d+='"',e&&(d+=' alt="',d+=e,d+='"'),d+="/>"};return t}()),Ve),Ze=H(Xe);function Ye(t,n){for(var a,e,r=[],i=0,s=0,o=[{name:"Support TizenTube",icon:"MONEY_HEART",value:null,options:{title:"Support TizenTube",subtitle:"❤️ Show support for TizenTube and its development",content:(e=[je("If you enjoy using TizenTube and would like to support its development, consider the following:"),je("1. Star the GitHub repository to help increase its visibility."),je("2. Share TizenTube with others."),je("If you would like to contribute financially, consider donating:"),je("- GitHub Sponsors: https://github.com/sponsors/reisxd")],{scrollPaneRenderer:{content:{scrollPaneItemListRenderer:{items:e}}}})}},{name:"Social Media Links",icon:"PRIVACY_UNLISTED",value:null,options:[{name:"GitHub",link:"https://github.com/reisxd/TizenTube"},{name:"YouTube",link:"https://www.youtube.com/@tizenbrew"},{name:"Discord",link:"https://discord.gg/m2P7v8Y2qR"},{name:"Telegram (Announcements)",link:"https://t.me/tizentubecobaltofficial"},{name:"Telegram (Group)",link:"https://t.me/tizentubeofficial"},{name:"Website",link:"https://tizentube.6513006.xyz"}].map(t=>{var n=Ze.qrcode(6,"H");n.addData(t.link),n.make();var a,e=n.createImgTag(8,8).match(/src="([^"]+)"/)[1];return{name:t.name,icon:"OPEN_IN_NEW",value:null,options:{title:t.name,subtitle:t.link,content:Pe([je(`You can visit the ${t.name} page by scanning the QR code below.`),(a=e,{qrCodeRenderer:{qrCodeImage:{thumbnails:[{url:a}]},style:"QR_CODE_RENDERER_STYLE_ATA_SIDESHEET",trackingParams:null}})])}}})},{name:"Ad block",icon:"DOLLAR_SIGN",value:"enableAdBlock"},{name:"SponsorBlock",icon:"MONEY_HAND",value:null,menuId:"tt-sponsorblock-settings",menuHeader:{title:"SponsorBlock Settings",subtitle:"https://sponsor.ajay.app/"},options:[{name:"Enable SponsorBlock",icon:"MONEY_HAND",value:"enableSponsorBlock"},{name:"Manual SponsorBlock Segment Skip",icon:"DOLLAR_SIGN",value:null,arrayToEdit:"sponsorBlockManualSkips",menuId:"tt-sponsorblock-manual-segment-skip",options:[{name:"Skip Sponsor Segments",icon:"MONEY_HEART",value:"sponsor"},{name:"Skip Intro Segments",icon:"PLAY_CIRCLE",value:"intro"},{name:"Skip Outro Segments",value:"outro"},{name:"Skip Interaction Reminder Segments",value:"interaction"},{name:"Skip Self-Promotion Segments",value:"selfpromo"},{name:"Skip Preview/Recap Segments",value:"preview"},{name:"Skip Tangents/Jokes Segments",value:"filler"},{name:"Skip Off-Topic Music Segments",value:"music_offtopic"}]},{name:"Segments",icon:"SETTINGS",value:null,menuId:"tt-sponsorblock-segments",options:[{name:"Skip Sponsor Segments",icon:"MONEY_HEART",value:"enableSponsorBlockSponsor"},{name:"Skip Intro Segments",icon:"PLAY_CIRCLE",value:"enableSponsorBlockIntro"},{name:"Skip Outro Segments",value:"enableSponsorBlockOutro"},{name:"Skip Interaction Reminder Segments",value:"enableSponsorBlockInteraction"},{name:"Skip Self-Promotion Segments",value:"enableSponsorBlockSelfPromo"},{name:"Skip Preview/Recap Segments",value:"enableSponsorBlockPreview"},{name:"Skip Tangents/Jokes Segments",value:"enableSponsorBlockFiller"},{name:"Skip Off-Topic Music Segments",value:"enableSponsorBlockMusicOfftopic"},{name:"Highlights",icon:"LOCATION_POINT",value:"enableSponsorBlockHighlight"}]}]},{name:"DeArrow",icon:"VISIBILITY_OFF",value:null,menuHeader:{title:"DeArrow Settings",subtitle:"https://dearrow.ajay.app/"},options:[{name:"Enable DeArrow",icon:"VISIBILITY_OFF",value:"enableDeArrow"},{name:"DeArrow Thumbnails",icon:"TV",value:"enableDeArrowThumbnails"}]},{name:"Miscellaneous",icon:"SETTINGS",value:null,options:[{name:"Hide End Screen Cards",icon:"VISIBILITY_OFF",value:"enableHideEndScreenCards"},{name:"You There Renderer",icon:"HELP",value:"enableYouThereRenderer"},{name:"Paid Promotion Overlay",icon:"MONEY_HAND",value:"enablePaidPromotionOverlay"},{name:"Who's Watching Menu",icon:"ACCOUNT_CIRCLE",value:"enableWhoIsWatchingMenu"},{name:"Fix UI",icon:"STAR",value:"enableFixedUI"},{name:"High Quality Thumbnails",icon:"VIDEO_QUALITY",value:"enableHqThumbnails"},{name:"Long Press",value:"enableLongPress"},{name:"Shorts",icon:"YOUTUBE_SHORTS_FILL_24",value:"enableShorts"},{name:"Video Previews",value:"enablePreviews"},{name:"Welcome Message",value:"showWelcomeToast"}]},{name:"Subtitles",icon:"TRANSLATE",value:null,options:[{name:(a=Ue(Fe()),a?`Show ${a.name} Subtitle`:"Show Local Subtitle"),value:"enableShowUserLanguage"},{name:"Show Hidden Subtitles",value:"enableShowOtherLanguages"}]},{name:"Video Player Settings",icon:"VIDEO_YOUTUBE",value:null,menuHeader:{title:"Video Player Settings",subtitle:"Customize video player features"},options:[{name:"Patch Video Player UI",icon:"SETTINGS",value:null,menuId:"tt-video-player-ui-patching",options:[{name:"Enable Video Player UI Patching",icon:"SETTINGS",value:"enablePatchingVideoPlayer"},{name:"Previous and Next Buttons",icon:"SKIP_NEXT",value:"enablePreviousNextButtons"},{name:"Super Thanks Button",icon:"MONEY_HEART",value:"enableSuperThanksButton"},{name:"Speed Controls Button",icon:"SLOW_MOTION_VIDEO",value:"enableSpeedControlsButton"}]},{name:"Preferred Video Quality",icon:"VIDEO_QUALITY",value:null,menuId:"tt-preferred-video-quality",menuHeader:{title:"Preferred Video Quality",subtitle:"Choose the preferred or next best video quality applied when playback starts"},options:["Auto","2160p","1440p","1080p","720p","480p","360p","240p","144p"].map(t=>({name:t,key:"preferredVideoQuality",value:t.toLowerCase()}))},{name:"Speed Settings Increments",icon:"SLOW_MOTION_VIDEO",value:null,menuId:"tt-speed-settings-increments",menuHeader:{title:"Speed Settings Increments",subtitle:"Set the speed increments for video playback speed adjustments"},options:[.05,.1,.15,.2,.25,.3,.35,.4,.45,.5].map(t=>({name:`${t}x`,key:"speedSettingsIncrement",value:t}))},{name:"Preferred Video Codec",icon:"VIDEO_QUALITY",value:null,menuId:"tt-preferred-video-codec",menuHeader:{title:"Preferred Video Codec",subtitle:"Choose the preferred video codec for playback"},options:["any","vp9","av01","avc1"].map(t=>({name:"any"===t?"Any":t.toUpperCase(),key:"preferredVideoCodec",value:t}))}]},{name:"User Interface Settings",icon:"SETTINGS",value:null,menuHeader:{title:"User Interface Settings",subtitle:"Customize the UI to your liking"},options:[{name:"Hide Watched Videos",icon:"VISIBILITY_OFF",value:null,menuId:"tt-hide-watched-videos-settings",options:[{name:"Enable Hide Watched Videos",icon:"VISIBILITY_OFF",value:"enableHideWatchedVideos"},{name:"Hide Watched Videos in Playlists",icon:"PLAYLIST_PLAY",value:"enableHideWatchedInPlaylists"},{name:"Watched Videos Threshold",value:null,menuId:"tt-hide-watched-videos-threshold",menuHeader:{title:"Watched Videos Threshold",subtitle:"Set the percentage threshold for hiding watched videos"},options:[0,10,20,30,40,50,60,70,80,90,100].map(t=>({name:`${t}%`,key:"hideWatchedVideosThreshold",value:t}))},{name:"Set Pages to Hide Watched Videos",value:null,arrayToEdit:"hideWatchedVideosPages",menuId:"tt-hide-watched-videos-pages",options:[{name:"Search Results",value:"search"},{name:"Home",value:"home"},{name:"Music",value:"music"},{name:"Gaming",value:"gaming"},{name:"Subscriptions",value:"subscriptions"},{name:"Abos",value:"abos"},{name:"Feed",value:"feed"},{name:"Library",value:"library"},{name:"More",value:"more"}]}]},{name:"Screen Dimming",icon:"EYE_OFF",value:null,menuId:"tt-screen-dimming-settings",options:[{name:"Enable Screen Dimming",icon:"EYE_OFF",value:"enableScreenDimming"},{name:"Dimming Timeout",icon:"TIMER",value:null,menuId:"tt-dimming-timeout",menuHeader:{title:"Dimming Timeout",subtitle:"Set the inactivity timeout (in seconds) before the screen dims"},options:[10,20,30,60,120,180,240,300].map(t=>({name:t>=60?`${t/60} minute${t/60>1?"s":""}`:`${t} seconds`,key:"dimmingTimeout",value:t}))},{name:"Dimming Opacity",icon:"LENS_BLUE",value:null,menuId:"tt-dimming-opacity",menuHeader:{title:"Dimming Opacity",subtitle:"Set the opacity level for screen dimming"},options:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1].map(t=>({name:`${Math.round(100*t)}%`,key:"dimmingOpacity",value:t}))}]},{name:"Disable Sidebar Contents (Guide Actions)",icon:"MENU",value:null,arrayToEdit:"disabledSidebarContents",menuId:"tt-sidebar-contents",menuHeader:{title:"Disable Sidebar Contents",subtitle:"Select sidebar contents (guide actions) to disable"},options:[{name:"Search",icon:"SEARCH",value:"SEARCH"},{name:"Home",icon:"WHAT_TO_WATCH",value:"WHAT_TO_WATCH"},{name:"Sports",icon:"TROPHY",value:"TROPHY"},{name:"News",icon:"NEWS",value:"NEWS"},{name:"Music",icon:"YOUTUBE_MUSIC",value:"YOUTUBE_MUSIC"},{name:"Podcasts",icon:"BROADCAST",value:"BROADCAST"},{name:"Movies & TV",icon:"CLAPPERBOARD",value:"CLAPPERBOARD"},{name:"Live",icon:"LIVE",value:"LIVE"},{name:"Gaming",icon:"GAMING",value:"GAMING"},{name:"Subscriptions",icon:"SUBSCRIPTIONS",value:"SUBSCRIPTIONS"},{name:"Library",icon:"TAB_LIBRARY",value:"TAB_LIBRARY"},{name:"More",icon:"TAB_MORE",value:"TAB_MORE"}]},{name:"Launch to on startup",icon:"TV",value:null,menuId:"tt-launch-to-on-startup",menuHeader:{title:"Launch to on startup",subtitle:"Choose the default page TizenTube opens to on startup"},options:[{name:"Search",icon:"SEARCH",key:"launchToOnStartup",value:JSON.stringify({searchEndpoint:{query:""}})},{name:"Home",icon:"WHAT_TO_WATCH",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics"}})},{name:"Sports",icon:"TROPHY",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_sports"}})},{name:"News",icon:"NEWS",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_news"}})},{name:"Music",icon:"YOUTUBE_MUSIC",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_music"}})},{name:"Podcasts",icon:"BROADCAST",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_podcasts"}})},{name:"Movies & TV",icon:"CLAPPERBOARD",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_movies"}})},{name:"Gaming",icon:"GAMING",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_gaming"}})},{name:"Live",icon:"LIVE",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_live"}})},{name:"Subscriptions",icon:"SUBSCRIPTIONS",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEsubscriptions"}})},{name:"Library",icon:"TAB_LIBRARY",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FElibrary"}})},{name:"More",icon:"TAB_MORE",key:"launchToOnStartup",value:JSON.stringify({browseEndpoint:{browseId:"FEtopics_more"}})}]}]},window.h5vcc&&window.h5vcc.tizentube?{name:"TizenTube Cobalt Updater",icon:"SYSTEM_UPDATE",value:null,menuHeader:{title:"TizenTube Cobalt Updater",subtitle:"Manage TizenTube Cobalt updates"},subtitle:`Current version: ${window.h5vcc.tizentube.GetVersion()}`,options:[Me({title:"Check for Updates"},{icon:"SYSTEM_UPDATE"},[{customAction:{action:"CHECK_FOR_UPDATES"}}]),{name:"Check for updates on startup",icon:"SYSTEM_UPDATE",value:"enableUpdater"}]}:null];s<o.length;s++){var u,l=o[s];if(l){var c=l.value?we(l.value):null;r.push(Me({title:l.name,subtitle:l.subtitle},{icon:l.icon?l.icon:"CHEVRON_DOWN",secondaryIcon:null===c?"CHEVRON_RIGHT":c?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},null!==c?[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:l.value},boolValue:!we(l.value)}]}},{customAction:{action:"SETTINGS_UPDATE",parameters:[i]}}]:[{customAction:{action:"OPTIONS_SHOW",parameters:{options:l.options,selectedIndex:0,update:!(null===(u=l.options)||void 0===u||!u.title)&&"customUI",menuId:l.menuId,arrayToEdit:l.arrayToEdit,menuHeader:l.menuHeader}}}])),i++}}Se({title:"TizenTube Settings",subtitle:"Made by Reis Can (reisxd) with ❤️"},Pe(r,n&&n.length>0?n[0]:0),"tt-settings",t)}var We=setInterval(()=>{document.querySelector("video")&&(!function(){document.querySelector("video").addEventListener("canplay",()=>{document.getElementsByTagName("video")[0].playbackRate=we("videoSpeed")});var t=t=>{if(406==t.keyCode||191==t.keyCode)return t.preventDefault(),t.stopPropagation(),"keydown"!==t.type||(Je(),!1)};document.addEventListener("keydown",t,!0),document.addEventListener("keypress",t,!0),document.addEventListener("keyup",t,!0)}(),clearInterval(We))},1e3);function Je(){for(var t=we("videoSpeed"),n=0,a=we("speedSettingsIncrement")||.25,e=[],r=a;r<=5;r+=a){var i=Math.round(100*r)/100;e.push(Me({title:`${i}x`},null,[{signalAction:{signal:"POPUP_BACK"}},{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:"videoSpeed"},intValue:i.toString()}]}},{customAction:{action:"SET_PLAYER_SPEED",parameters:i.toString()}}])),t===i&&(n=e.length-1)}e.push(Me({title:"Fix stuttering (1.0001x)"},null,[{signalAction:{signal:"POPUP_BACK"}},{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:"videoSpeed"},intValue:"1.0001"}]}},{customAction:{action:"SET_PLAYER_SPEED",parameters:"1.0001"}}])),Se("Playback Speed",Pe(e,n),"tt-speed")}if(window.h5vcc&&window.h5vcc.tizentube&&we("enableUpdater")){var Qe=Math.floor(Date.now()/1e3);we("dontCheckUpdateUntil")>Qe?console.info("Skipping update check until",new Date(1e3*we("dontCheckUpdateUntil")).toLocaleString()):$e()}function $e(t){var n=window.h5vcc.tizentube.GetVersion(),a=Math.floor(Date.now()/1e3);fetch("https://api.github.com/repos/reisxd/TizenTubeCobalt/releases/latest").then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()}).then(e=>{var r=e.tag_name.replace("v",""),i=new Date(e.published_at).getTime()/1e3;r!==n?(console.info(`New version available: ${r} (current: ${n})`),Se({title:"Update Available",subtitle:`A new version of TizenTube Cobalt is available: ${r}\nCurrent version: ${n}\nRelease Date: ${new Date(1e3*i).toLocaleString()}\nRelease Notes:\n${e.body}`},Pe([Me({title:"Update Now",subtitle:"Click to download the latest version."},{icon:"DOWN_ARROW"},[{customAction:{action:"UPDATE_DOWNLOAD",parameters:e.assets[0].browser_download_url}},{signalAction:{signal:"POPUP_BACK"}}]),Me({title:"Remind Me Later",subtitle:"Check for updates later."},{icon:"SEARCH_HISTORY"},[{customAction:{action:"UPDATE_REMIND_LATER",parameters:a+86400}},{signalAction:{signal:"POPUP_BACK"}}])]),"tt-update-modal",!1)):(console.info("You are using the latest version of TizenTube."),t&&Ge("TizenTube is up to date",`You are using the latest version (${n}) of TizenTube Cobalt.`,null))}).catch(t=>{console.error("Error fetching the latest release:",t),Ge("TizenTube update check failed","Could not check for updates.",null)})}function tr(t,n){for(var a in window._yttv)if(window._yttv[a]&&window._yttv[a].instance&&window._yttv[a].instance.resolveCommand)return window._yttv[a].instance.resolveCommand(t,n)}function nr(t,n){switch(t){case"SETTINGS_UPDATE":Ye(!0,n);break;case"OPTIONS_SHOW":!function(t,n){if("customUI"!==n){var a=[];if(void 0!==t.arrayToEdit){var e,r=we(t.arrayToEdit),i=L(t.options);try{for(i.s();!(e=i.n()).done;){var s=e.value;a.push(Me({title:s.name,subtitle:s.subtitle},{icon:s.icon?s.icon:"CHEVRON_DOWN",secondaryIcon:r.includes(s.value)?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:t.arrayToEdit},arrayValue:s.value}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:t.options,selectedIndex:t.options.indexOf(s),update:!0,menuId:t.menuId,arrayToEdit:t.arrayToEdit,menuHeader:t.menuHeader}}}]))}}catch(t){i.e(t)}finally{i.f()}}else{var o,u=0,l=L(t.options);try{for(l.s();!(o=l.n()).done;){var c,d,m,h=o.value;if(h.compactLinkRenderer)a.push(h),u++;else{var p=null!==h.key&&void 0!==h.key,g=we(p?h.key:h.value);a.push(Me({title:h.name,subtitle:h.subtitle},{icon:h.icon?h.icon:"CHEVRON_DOWN",secondaryIcon:p?g===h.value?"RADIO_BUTTON_CHECKED":"RADIO_BUTTON_UNCHECKED":null===h.value?"CHEVRON_RIGHT":g?"CHECK_BOX":"CHECK_BOX_OUTLINE_BLANK"},null===h.value?[{customAction:{action:"OPTIONS_SHOW",parameters:{options:h.options,selectedIndex:0,update:!(null===(c=h.options)||void 0===c||!c.title)&&"customUI",menuId:h.menuId,arrayToEdit:h.arrayToEdit,menuHeader:h.menuHeader}}}]:null!==h.key&&void 0!==h.key?[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:h.key},stringValue:h.value}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:t.options,selectedIndex:u,update:null===(d=t.options)||void 0===d||!d.title||"customUI",menuId:t.menuId,arrayToEdit:t.arrayToEdit,menuHeader:t.menuHeader}}}]:[{setClientSettingEndpoint:{settingDatas:[{clientSettingEnum:{item:h.value},boolValue:!g}]}},{customAction:{action:"OPTIONS_SHOW",parameters:{options:t.options,selectedIndex:u,update:null===(m=t.options)||void 0===m||!m.title||"customUI",menuId:t.menuId,arrayToEdit:t.arrayToEdit,menuHeader:t.menuHeader}}}])),u++}}}catch(t){l.e(t)}finally{l.f()}}Se(t.menuHeader?t.menuHeader:"TizenTube Settings",Pe(a,t.selectedIndex),t.menuId||"tt-settings-options",n)}else{var f=t.options;Se({title:f.title,subtitle:f.subtitle},f.content,"tt-settings-support",!1)}}(n,n.update);break;case"SKIP":var a=document.createEvent("Event");a.initEvent("keydown",!0,!0),a.keyCode=27,a.which=27,document.dispatchEvent(a),document.querySelector("video").currentTime=n.time;break;case"TT_SETTINGS_SHOW":Ye();break;case"TT_SPEED_SETTINGS_SHOW":Je();break;case"UPDATE_REMIND_LATER":De("dontCheckUpdateUntil",n);break;case"UPDATE_DOWNLOAD":window.h5vcc.tizentube.InstallAppFromURL(n),Ge("TizenTube Update","Downloading update, please wait...");break;case"SET_PLAYER_SPEED":var e=Number(n);document.querySelector("video").playbackRate=e;break;case"ENTER_PIP":!function(){if(Ce){var t=Math.floor(document.querySelector("video").currentTime),n=document.querySelector("video"),a=document.querySelector("ytlr-player"),e=document.querySelector("ytlr-player-container"),r=new MutationObserver(i=>{i.forEach(i=>{if("class"===i.attributeName&&!a.classList.contains("ytLrPlayerEnabled")){function s(){e.style.zIndex="10",a.style.display="block",a.style.backgroundColor="rgba(0,0,0,0)"}function o(){n.style.removeProperty("inset");var t=window.innerWidth/3.5,a=window.innerHeight/3.5;n.style.width=`${t}px`,n.style.height=`${a}px`,n.style.top="68vh",n.style.left="68vw",window.isPipPlaying=!0,n.removeEventListener("play",o)}s(),setTimeout(s,500),n.addEventListener("play",o),r.disconnect(),setTimeout(()=>{Ce.loadedPlaybackConfig.watchEndpoint.startTimeSeconds=t,Ce.loadVideo(Ce.loadedPlaybackConfig)},1e3)}})});r.observe(a,{attributes:!0}),tr({signalAction:{signal:"HISTORY_BACK"}})}}();break;case"SHOW_TOAST":Ge("TizenTube",n);break;case"ADD_TO_QUEUE":window.queuedVideos.videos.push(n),Ge("TizenTube","Video added to queue.");break;case"CLEAR_QUEUE":window.queuedVideos.videos=[],Ge("TizenTube","Video queue cleared.");break;case"CHECK_FOR_UPDATES":$e(!0)}}var ar=JSON.parse;for(var er in JSON.parse=function(){var t,n,a,e,r,i,s,o,u,l,c,d,m,h,p,g,f=ar.apply(this,arguments),b=we("enableAdBlock");if(f.adPlacements&&b&&(f.adPlacements=[]),f.playerAds&&b&&(f.playerAds=!1),f.adSlots&&b&&(f.adSlots=[]),f.paidContentOverlay&&!we("enablePaidPromotionOverlay")&&(f.paidContentOverlay=null),null!=f&&null!==(t=f.streamingData)&&void 0!==t&&t.adaptiveFormats&&"any"!==we("videoPreferredCodec")){var y=we("videoPreferredCodec");f.streamingData.adaptiveFormats.find(t=>t.mimeType.includes(y))&&(f.streamingData.adaptiveFormats=f.streamingData.adaptiveFormats.filter(t=>!!t.mimeType.startsWith("audio/")||t.mimeType.includes(y)))}if(null!=f&&null!==(n=f.contents)&&void 0!==n&&null!==(n=n.tvBrowseRenderer)&&void 0!==n&&null!==(n=n.content)&&void 0!==n&&null!==(n=n.tvSurfaceContentRenderer)&&void 0!==n&&null!==(n=n.content)&&void 0!==n&&null!==(n=n.sectionListRenderer)&&void 0!==n&&n.contents){if(b){f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents=f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents.filter(t=>!t.adSlotRenderer);var k,v=L(f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents);try{for(v.s();!(k=v.n()).done;){var w=k.value;w.shelfRenderer&&(w.shelfRenderer.content.horizontalListRenderer.items=w.shelfRenderer.content.horizontalListRenderer.items.filter(t=>!t.adSlotRenderer))}}catch(t){v.e(t)}finally{v.f()}}rr(f.contents.tvBrowseRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents)}(f.endscreen&&we("enableHideEndScreenCards")&&(f.endscreen=null),f.messages&&Array.isArray(f.messages)&&!we("enableYouThereRenderer")&&(f.messages=f.messages.filter(t=>!(null!=t&&t.youThereRenderer))),!Array.isArray(f)&&null!=f&&f.entries&&b)&&(f.entries=null===(d=f.entries)||void 0===d?void 0:d.filter(t=>{var n;return!(null!=t&&null!==(n=t.command)&&void 0!==n&&null!==(n=n.reelWatchEndpoint)&&void 0!==n&&null!==(n=n.adClientParams)&&void 0!==n&&n.isAd)}));if(null!=f&&null!==(a=f.title)&&void 0!==a&&a.runs&&(m=f,p=function(t,n,a){var e={settingCategoryCollectionRenderer:{items:n,categoryId:"tizentube_category",focused:!1,trackingParams:"null"}};return a&&(e.settingCategoryCollectionRenderer.title={runs:[{text:a}]}),e}(0,[{settingActionRenderer:{title:{runs:[{text:h="TizenTube Settings"}]},serviceEndpoint:{customAction:{action:"TT_SETTINGS_SHOW",parameters:[]}},summary:{runs:[{text:"Open TizenTube Settings"}]},trackingParams:"null",actionLabel:{runs:[{text:h}]},itemId:"tizentube_open_action",thumbnail:{thumbnails:[{url:"https://www.gstatic.com/ytlr/img/parent_code.png"}]}}}]),m.items.unshift(p)),null!=f&&null!==(e=f.contents)&&void 0!==e&&null!==(e=e.sectionListRenderer)&&void 0!==e&&e.contents&&rr(f.contents.sectionListRenderer.contents),null!=f&&null!==(r=f.continuationContents)&&void 0!==r&&null!==(r=r.sectionListContinuation)&&void 0!==r&&r.contents&&rr(f.continuationContents.sectionListContinuation.contents),null!=f&&null!==(i=f.continuationContents)&&void 0!==i&&null!==(i=i.horizontalListContinuation)&&void 0!==i&&i.items&&(sr(f.continuationContents.horizontalListContinuation.items),or(f.continuationContents.horizontalListContinuation.items),ur(f.continuationContents.horizontalListContinuation.items),f.continuationContents.horizontalListContinuation.items=lr(f.continuationContents.horizontalListContinuation.items)),null!=f&&null!==(s=f.contents)&&void 0!==s&&null!==(s=s.tvBrowseRenderer)&&void 0!==s&&null!==(s=s.content)&&void 0!==s&&null!==(s=s.tvSecondaryNavRenderer)&&void 0!==s&&s.sections){var D,A=L(f.contents.tvBrowseRenderer.content.tvSecondaryNavRenderer.sections);try{for(A.s();!(D=A.n()).done;){var C,N=L(D.value.tvSecondaryNavSectionRenderer.tabs);try{for(N.s();!(C=N.n()).done;){rr(C.value.tabRenderer.content.tvSurfaceContentRenderer.content.sectionListRenderer.contents)}}catch(t){N.e(t)}finally{N.f()}}}catch(t){A.e(t)}finally{A.f()}}if(null!=f&&null!==(o=f.contents)&&void 0!==o&&null!==(o=o.singleColumnWatchNextResults)&&void 0!==o&&null!==(o=o.pivot)&&void 0!==o&&o.sectionListRenderer&&(rr(f.contents.singleColumnWatchNextResults.pivot.sectionListRenderer.contents,!1),window.queuedVideos.videos.length>0)){var x=window.queuedVideos.videos.slice();x.unshift({tileRenderer:{contentType:"TILE_CONTENT_TYPE_VIDEO",metadata:{tileMetadataRenderer:{title:{simpleText:"Clear Queue"}}},onSelectCommand:{customAction:{action:"CLEAR_QUEUE"}},style:"TILE_STYLE_YTLR_DEFAULT"}}),f.contents.singleColumnWatchNextResults.pivot.sectionListRenderer.contents.unshift(function(t,n){return{shelfRenderer:{shelfHeaderRenderer:{title:{simpleText:t}},tvhtml5ShelfRendererType:"TVHTML5_SHELF_RENDERER_TYPE_GRID",content:{horizontalListRenderer:{items:n,selectedIndex:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,visibleItemCount:3}}}}}("Queued Videos",x,-1!==x.findIndex(t=>t.contentId===window.queuedVideos.lastVideoId)?x.findIndex(t=>t.contentId===window.queuedVideos.lastVideoId):0))}if(we("sponsorBlockManualSkips").length>0&&null!=f&&null!==(u=f.playerOverlays)&&void 0!==u&&u.playerOverlayRenderer){var G,S=we("sponsorBlockManualSkips"),P=[];if(null!==(G=window)&&void 0!==G&&null!==(G=G.sponsorblock)&&void 0!==G&&G.segments){var M,I=L(window.sponsorblock.segments);try{for(I.s();!(M=I.n()).done;){var E=M.value;if(S.includes(E.category)){var T=Ie(`Skip ${E.category}`,"SKIP_NEXT",{clickTrackingParams:null,showEngagementPanelEndpoint:{customAction:{action:"SKIP",parameters:{time:E.segment[1]}}}},1e3*E.segment[0],1e3*E.segment[1]-1e3*E.segment[0]);P.push(T)}}}catch(t){I.e(t)}finally{I.f()}f.playerOverlays.playerOverlayRenderer.timelyActionRenderers=P}}else null!=f&&null!==(l=f.playerOverlays)&&void 0!==l&&l.playerOverlayRenderer&&(f.playerOverlays.playerOverlayRenderer.timelyActionRenderers=[]);if(null!=f&&null!==(c=f.transportControls)&&void 0!==c&&null!==(c=c.transportControlsRenderer)&&void 0!==c&&c.promotedActions&&we("enableSponsorBlockHighlight")&&(null!==(g=window)&&void 0!==g&&null!==(g=g.sponsorblock)&&void 0!==g&&g.segments)){var _=window.sponsorblock.segments.find(t=>"poi_highlight"===t.category);_&&f.transportControls.transportControlsRenderer.promotedActions.push({type:"TRANSPORT_CONTROLS_BUTTON_TYPE_SPONSORBLOCK_HIGHLIGHT",button:{buttonRenderer:ze(!1,"Skip to highlight","SKIP_NEXT",{clickTrackingParams:null,customAction:{action:"SKIP",parameters:{time:_.segment[0]}}})}})}return f},window.JSON.parse=JSON.parse,window._yttv)window._yttv[er]&&window._yttv[er].JSON&&window._yttv[er].JSON.parse&&(window._yttv[er].JSON.parse=JSON.parse);function rr(t){var n,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=L(t);try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r.shelfRenderer){var i,s,o,u=null===(i=r.shelfRenderer.content)||void 0===i||null===(i=i.horizontalListRenderer)||void 0===i?void 0:i.items,l=null===(s=r.shelfRenderer.content)||void 0===s||null===(s=s.gridRenderer)||void 0===s?void 0:s.items,c=null===(o=r.richShelfRenderer)||void 0===o||null===(o=o.content)||void 0===o||null===(o=o.richGridRenderer)||void 0===o?void 0:o.contents;if(u&&u.length&&(sr(u),or(u),ur(u),a&&ir(u),r.shelfRenderer.content.horizontalListRenderer.items=lr(u)),l&&l.length&&(sr(l),or(l),ur(l),a&&ir(l),r.shelfRenderer.content.gridRenderer.items=lr(l)),c&&c.length&&(sr(c),or(c),ur(c),a&&ir(c),r.richShelfRenderer=r.richShelfRenderer||{},r.richShelfRenderer.content=r.richShelfRenderer.content||{},r.richShelfRenderer.content.richGridRenderer=r.richShelfRenderer.content.richGridRenderer||{},r.richShelfRenderer.content.richGridRenderer.contents=lr(c)),!we("enableShorts")){if("TVHTML5_SHELF_RENDERER_TYPE_SHORTS"===r.shelfRenderer.tvhtml5ShelfRendererType){t.splice(t.indexOf(r),1);continue}r.shelfRenderer.content.horizontalListRenderer.items=r.shelfRenderer.content.horizontalListRenderer.items.filter(t=>{var n;return"TVHTML5_TILE_RENDERER_TYPE_SHORTS"!==(null===(n=t.tileRenderer)||void 0===n?void 0:n.tvhtml5ShelfRendererType)})}}else try{var d,m,h=[];if(null!=r&&null!==(d=r.richShelfRenderer)&&void 0!==d&&null!==(d=d.content)&&void 0!==d&&null!==(d=d.richGridRenderer)&&void 0!==d&&d.contents&&h.push(r.richShelfRenderer.content.richGridRenderer.contents),null!=r&&null!==(m=r.sectionListRenderer)&&void 0!==m&&m.contents){var p,g=L(r.sectionListRenderer.contents);try{for(g.s();!(p=g.n()).done;){var f,b,y=p.value;null!=y&&null!==(f=y.shelfRenderer)&&void 0!==f&&null!==(f=f.content)&&void 0!==f&&null!==(f=f.horizontalListRenderer)&&void 0!==f&&f.items&&h.push(y.shelfRenderer.content.horizontalListRenderer.items),null!=y&&null!==(b=y.shelfRenderer)&&void 0!==b&&null!==(b=b.content)&&void 0!==b&&null!==(b=b.gridRenderer)&&void 0!==b&&b.items&&h.push(y.shelfRenderer.content.gridRenderer.items)}}catch(t){g.e(t)}finally{g.f()}}for(var k=0,v=h;k<v.length;k++){var w=v[k];if(w&&Array.isArray(w)){sr(w),or(w),ur(w),a&&ir(w);var D=lr(w);w.splice(0,w.length,...D)}}}catch(t){console.warn("processShelves: defensive handling failed",t)}}}catch(t){e.e(t)}finally{e.f()}}function ir(t){if(we("enablePreviews")){var n,a=L(t);try{for(a.s();!(n=a.n()).done;){var e=n.value;if(e.tileRenderer){var r,i=e.tileRenderer.onSelectCommand;if(null!==(r=e.tileRenderer)&&void 0!==r&&null!==(r=r.onFocusCommand)&&void 0!==r&&r.playbackEndpoint)continue;e.tileRenderer.onFocusCommand={startInlinePlaybackCommand:{blockAdoption:!0,caption:!1,delayMs:3e3,durationMs:4e4,muted:!1,restartPlaybackBeforeSeconds:10,resumeVideo:!0,playbackEndpoint:i}}}}}catch(t){a.e(t)}finally{a.f()}}}function sr(t){var n,a=L(t);try{var e=function(){var a=n.value;if(a.adSlotRenderer){var e=t.indexOf(a);return t.splice(e,1),0}if(!a.tileRenderer)return 0;if(we("enableDeArrow")){var r=a.tileRenderer.contentId;fetch(`https://sponsor.ajay.app/api/branding?videoID=${r}`).then(t=>t.json()).then(t=>{if(t.titles.length>0){var n=t.titles.reduce((t,n)=>t.votes>n.votes?t:n);a.tileRenderer.metadata.tileMetadataRenderer.title.simpleText=n.title}if(t.thumbnails.length>0&&we("enableDeArrowThumbnails")){var e=t.thumbnails.reduce((t,n)=>t.votes>n.votes?t:n);e.timestamp&&(a.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails=[{url:`https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${r}&time=${e.timestamp}`,width:1280,height:640}])}}).catch(()=>{})}};for(a.s();!(n=a.n()).done;)e()}catch(t){a.e(t)}finally{a.f()}}function or(t){var n,a=L(t);try{for(a.s();!(n=a.n()).done;){var e=n.value;if(e.tileRenderer&&("TILE_STYLE_YTLR_DEFAULT"===e.tileRenderer.style&&we("enableHqThumbnails"))){var r=e.tileRenderer.onSelectCommand.watchEndpoint.videoId,i=e.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails[0].url.split("?")[1];e.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails=[{url:`https://i.ytimg.com/vi/${r}/sddefault.jpg${i?`?${i}`:""}`,width:640,height:480}]}}}catch(t){a.e(t)}finally{a.f()}}function ur(t){var n,a=L(t);try{for(a.s();!(n=a.n()).done;){var e=n.value;if(e.tileRenderer&&"TILE_STYLE_YTLR_DEFAULT"===e.tileRenderer.style)if(e.tileRenderer.onLongPressCommand)e.tileRenderer.onLongPressCommand.showMenuCommand.menu.menuRenderer.items.push(Te("Add to Queue",{clickTrackingParams:null,playlistEditEndpoint:{customAction:{action:"ADD_TO_QUEUE",parameters:e}}}));else if(we("enableLongPress")){var r=e.tileRenderer.metadata.tileMetadataRenderer.lines[0].lineRenderer.items[0].lineItemRenderer.text,i=Ee({videoId:e.tileRenderer.contentId,thumbnails:e.tileRenderer.header.tileHeaderRenderer.thumbnail.thumbnails,title:e.tileRenderer.metadata.tileMetadataRenderer.title.simpleText,subtitle:r.runs?r.runs[0].text:r.simpleText,watchEndpointData:e.tileRenderer.onSelectCommand.watchEndpoint,item:e});e.tileRenderer.onLongPressCommand=i}}}catch(t){a.e(t)}finally{a.f()}}function lr(t){if(!Array.isArray(t))return t;var n,a,e,r=we("hideWatchedVideosPages")||[],i=(n=[],a=location.hash?location.hash.substring(1):"",((e=(a+" "+(location.pathname||"")+" "+location.search).toLowerCase()).includes("/feed/subscriptions")||e.includes("subscriptions")||e.includes("abos"))&&n.push("subscriptions"),(e.includes("/feed/library")||e.includes("library")||e.includes("mediathek"))&&n.push("library"),(e.includes("/playlist")||e.includes("list="))&&n.push("playlist"),(e.includes("/results")||e.includes("/search")||e.includes("search"))&&n.push("search"),(""===e||e.includes("/home")||e.includes("browse")||e.includes("/"))&&n.push("home"),(a||"").split(/[\/?&=#]/).filter(Boolean).forEach(t=>n.push(t)),n),s=Array.isArray(r)&&r.length>0;return t.filter(t=>{if(!t)return!1;if(!(t.tileRenderer||t.playlistVideoRenderer||t.compactVideoRenderer||t.gridVideoRenderer||t.videoRenderer))return!0;if(s&&!r.map(t=>String(t).toLowerCase()).some(t=>i.some(n=>n.includes(t)||t.includes(n))))return!0;var n=function(t){for(var n,a,e,r,i,s=0,o=[null==t||null===(n=t.tileRenderer)||void 0===n||null===(n=n.header)||void 0===n||null===(n=n.tileHeaderRenderer)||void 0===n?void 0:n.thumbnailOverlays,null==t||null===(a=t.playlistVideoRenderer)||void 0===a?void 0:a.thumbnailOverlays,null==t||null===(e=t.compactVideoRenderer)||void 0===e?void 0:e.thumbnailOverlays,null==t||null===(r=t.gridVideoRenderer)||void 0===r?void 0:r.thumbnailOverlays,null==t||null===(i=t.videoRenderer)||void 0===i?void 0:i.thumbnailOverlays];s<o.length;s++){var u=o[s];if(Array.isArray(u)){var l=u.find(t=>t&&t.thumbnailOverlayResumePlaybackRenderer);if(l&&l.thumbnailOverlayResumePlaybackRenderer)return l.thumbnailOverlayResumePlaybackRenderer}}for(var c=0,d=Object.keys(t);c<d.length;c++){var L=t[d[c]];if(L&&"object"===f(L)&&Array.isArray(L.thumbnailOverlays)){var m=L.thumbnailOverlays.find(t=>t&&t.thumbnailOverlayResumePlaybackRenderer);if(m&&m.thumbnailOverlayResumePlaybackRenderer)return m.thumbnailOverlayResumePlaybackRenderer}}return null}(t);if(!n)return!0;var a=Number(n.percentDurationWatched||0);return!(!(i.includes("playlist")||i.includes("playlists")||i.includes("mediathek"))||we("enableHideWatchedInPlaylists"))||a<=Number(we("hideWatchedVideosThreshold")||0)})}var cr=function t(n){function a(t,n){return t>>>n|t<<32-n}for(var e,r,i=Math.pow,s=i(2,32),o="length",u="",l=[],c=8*n[o],d=t.h=t.h||[],L=t.k=t.k||[],m=L[o],h={},p=2;m<64;p++)if(!h[p]){for(e=0;e<313;e+=p)h[e]=p;d[m]=i(p,.5)*s|0,L[m++]=i(p,1/3)*s|0}for(n+="€";n[o]%64-56;)n+="\0";for(e=0;e<n[o];e++){if((r=n.charCodeAt(e))>>8)return;l[e>>2]|=r<<(3-e)%4*8}for(l[l[o]]=c/s|0,l[l[o]]=c,r=0;r<l[o];){var g=l.slice(r,r+=16),f=d;for(d=d.slice(0,8),e=0;e<64;e++){var b=g[e-15],y=g[e-2],k=d[0],v=d[4],w=d[7]+(a(v,6)^a(v,11)^a(v,25))+(v&d[5]^~v&d[6])+L[e]+(g[e]=e<16?g[e]:g[e-16]+(a(b,7)^a(b,18)^b>>>3)+g[e-7]+(a(y,17)^a(y,19)^y>>>10)|0);(d=[w+((a(k,2)^a(k,13)^a(k,22))+(k&d[1]^k&d[2]^d[1]&d[2]))|0].concat(d))[4]=d[4]+w|0}for(e=0;e<8;e++)d[e]=d[e]+f[e]|0}for(e=0;e<8;e++)for(r=3;r+1;r--){var D=d[e]>>8*r&255;u+=(D<16?0:"")+D.toString(16)}return u},dr={sponsor:{color:"#00d400",opacity:"0.7",name:"sponsored segment"},intro:{color:"#00ffff",opacity:"0.7",name:"intro"},outro:{color:"#0202ed",opacity:"0.7",name:"outro"},interaction:{color:"#cc00ff",opacity:"0.7",name:"interaction reminder"},selfpromo:{color:"#ffff00",opacity:"0.7",name:"self-promotion"},preview:{color:"#008fd6",opacity:"0.7",name:"recap or preview"},filler:{color:"#7300FF",opacity:"0.9",name:"tangents"},music_offtopic:{color:"#ff9900",opacity:"0.7",name:"non-music part"},poi_highlight:{color:"#9b044c",opacity:"0.7",name:"highlight"}};class Lr{constructor(t){m(this,"video",null),m(this,"active",!0),m(this,"attachVideoTimeout",null),m(this,"nextSkipTimeout",null),m(this,"sliderInterval",null),m(this,"observer",null),m(this,"scheduleSkipHandler",null),m(this,"durationChangeHandler",null),m(this,"segments",null),m(this,"skippableCategories",[]),m(this,"manualSkippableCategories",[]),m(this,"skippedCategories",new Map),this.videoID=t}init(){var t,n=this;return(t=h().m(function t(){var a,e,r,i,s;return h().w(function(t){for(;;)switch(t.n){case 0:return a=cr(n.videoID).substring(0,4),e=["sponsor","intro","outro","interaction","selfpromo","preview","filler","music_offtopic","poi_highlight"],t.n=1,fetch(`https://sponsor.ajay.app/api/skipSegments/${a}?categories=${encodeURIComponent(JSON.stringify(e))}`);case 1:return r=t.v,t.n=2,r.json();case 2:if(i=t.v,s=i.find(t=>t.videoID===n.videoID),console.info(n.videoID,"Got it:",s),s&&s.segments&&s.segments.length){t.n=3;break}return console.info(n.videoID,"No segments found."),t.a(2);case 3:n.segments=s.segments,n.manualSkippableCategories=we("sponsorBlockManualSkips"),n.skippableCategories=n.getSkippableCategories(),n.scheduleSkipHandler=()=>{var t=document.querySelector('div[idomkey="slider"]').getBoundingClientRect();!document.querySelector('div[idomkey="Metadata-Section"]')&&n.segmentsoverlay.style.setProperty("top",`${t.top}px`,"important"),n.scheduleSkip()},n.durationChangeHandler=()=>n.buildOverlay(),n.attachVideo(),n.buildOverlay();case 4:return t.a(2)}},t)}),function(){var n=this,a=arguments;return new Promise(function(e,r){var i=t.apply(n,a);function s(t){o(i,e,r,s,u,"next",t)}function u(t){o(i,e,r,s,u,"throw",t)}s(void 0)})})()}getSkippableCategories(){var t=[];return we("enableSponsorBlockSponsor")&&t.push("sponsor"),we("enableSponsorBlockIntro")&&t.push("intro"),we("enableSponsorBlockOutro")&&t.push("outro"),we("enableSponsorBlockInteraction")&&t.push("interaction"),we("enableSponsorBlockSelfPromo")&&t.push("selfpromo"),we("enableSponsorBlockPreview")&&t.push("preview"),we("enableSponsorBlockFiller")&&t.push("filler"),we("enableSponsorBlockMusicOfftopic")&&t.push("music_offtopic"),t}attachVideo(){if(clearTimeout(this.attachVideoTimeout),this.attachVideoTimeout=null,this.video=document.querySelector("video"),!this.video)return console.info(this.videoID,"No video yet..."),void(this.attachVideoTimeout=setTimeout(()=>this.attachVideo(),100));console.info(this.videoID,"Video found, binding..."),this.video.addEventListener("play",this.scheduleSkipHandler),this.video.addEventListener("pause",this.scheduleSkipHandler),this.video.addEventListener("timeupdate",this.scheduleSkipHandler),this.video.addEventListener("durationchange",this.durationChangeHandler)}buildOverlay(){if(this.segmentsoverlay)console.info("Overlay already built");else if(this.video&&this.video.duration){var t=this.video.duration,n=document.querySelector('div[idomkey="slider"]');this.segmentsoverlay=document.createElement("div"),this.segmentsoverlay.classList.add("ytLrProgressBarSlider","ytLrProgressBarSliderRectangularProgressBar"),this.segmentsoverlay.style.setProperty("z-index","10","important"),this.segmentsoverlay.style.setProperty("background-color","rgba(0, 0, 0, 0)","important"),this.segmentsoverlay.style.setProperty("width","72rem","important"),this.segmentsoverlay.style.setProperty("left","4rem","important");var a=n.getBoundingClientRect();if(!n.classList.contains("ytLrProgressBarSlider")){for(var e=0;e<n.classList.length;e++)this.segmentsoverlay.classList.add(n.classList[e]);this.segmentsoverlay.style.setProperty("height",`${a.height}px`,"important"),this.segmentsoverlay.style.setProperty("bottom",a.bottom-a.top+"px","important")}this.segments.forEach(n=>{var a=g(n.segment,2),e=a[0],r=a[1],i=dr[n.category]||{color:"blue",opacity:.7},s=t?100*e/t:0,o=t?100*(r-e)/t:0,u=document.createElement("div");u.style.setProperty("background-color",i.color,"important"),u.style.setProperty("opacity",i.opacity,"important"),u.style.setProperty("height","100%","important"),u.style.setProperty("width",`${"poi_highlight"===n.category?1:o}%`,"important"),u.style.setProperty("left",`${s}%`,"important"),u.style.setProperty("position","absolute","important"),console.info("Generated element",u,"from",n),this.segmentsoverlay.appendChild(u)}),this.observer=new MutationObserver(t=>{t.forEach(t=>{if(t.removedNodes){var n,a=L(t.removedNodes);try{for(a.s();!(n=a.n()).done;){n.value===this.segmentsoverlay&&(console.info("bringing back segments overlay"),this.slider.appendChild(this.segmentsoverlay))}}catch(t){a.e(t)}finally{a.f()}}"false"===document.querySelector("ytlr-progress-bar").getAttribute("hybridnavfocusable")?this.segmentsoverlay.style.setProperty("display","none","important"):this.segmentsoverlay.style.setProperty("display","block","important")})}),this.sliderInterval=setInterval(()=>{this.slider=document.querySelector("ytlr-redux-connect-ytlr-progress-bar"),this.slider&&(clearInterval(this.sliderInterval),this.sliderInterval=null,this.observer.observe(this.slider,{childList:!0,subtree:!0}),this.slider.appendChild(this.segmentsoverlay))},500)}else console.info("No video duration yet")}scheduleSkip(){if(clearTimeout(this.nextSkipTimeout),this.nextSkipTimeout=null,this.active)if(this.video.paused)console.info(this.videoID,"Currently paused, ignoring...");else{var t=this.segments.filter(t=>t.segment[0]>this.video.currentTime-.3&&t.segment[1]>this.video.currentTime-.3);if(t.sort((t,n)=>t.segment[0]-n.segment[0]),t.length){var n=g(t,1)[0],a=g(n.segment,2),e=a[0],r=a[1];console.info(this.videoID,"Scheduling skip of",n,"in",e-this.video.currentTime),this.nextSkipTimeout=setTimeout(()=>{var t;if(this.video.paused)console.info(this.videoID,"Currently paused, ignoring...");else if(this.skippableCategories.includes(n.category)){var a=(null===(t=dr[n.category])||void 0===t?void 0:t.name)||n.category;if(console.info(this.videoID,"Skipping",n),!this.manualSkippableCategories.includes(n.category)){var e=this.skippedCategories.get(n.UUID);if(e){if(e.count++,e.lastSkipped=Date.now(),this.skippedCategories.set(n.UUID,e),e.lastSkipped-e.firstSkipped<1e3)return void(e.hasShownToast||(Ge("SponsorBlock",`Not skipping ${a} (was skipped ${e.count} times)`),e.hasShownToast=!0,this.skippedCategories.set(n.UUID,e)))}else this.skippedCategories.set(n.UUID,{count:1,firstSkipped:Date.now(),lastSkipped:Date.now(),hasShownToast:!1});Ge("SponsorBlock",`Skipping ${a}`),this.video.duration-r<1?this.video.currentTime=r-1:this.video.currentTime=r,this.scheduleSkip()}}else console.info(this.videoID,"Segment",n.category,"is not skippable, ignoring...")},1e3*(e-this.video.currentTime))}else console.info(this.videoID,"No more segments")}else console.info(this.videoID,"No longer active, ignoring...")}destroy(){console.info(this.videoID,"Destroying"),this.active=!1,this.nextSkipTimeout&&(clearTimeout(this.nextSkipTimeout),this.nextSkipTimeout=null),this.attachVideoTimeout&&(clearTimeout(this.attachVideoTimeout),this.attachVideoTimeout=null),this.sliderInterval&&(clearInterval(this.sliderInterval),this.sliderInterval=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.segmentsoverlay&&(this.segmentsoverlay.remove(),this.segmentsoverlay=null),this.video&&(this.video.removeEventListener("play",this.scheduleSkipHandler),this.video.removeEventListener("pause",this.scheduleSkipHandler),this.video.removeEventListener("timeupdate",this.scheduleSkipHandler),this.video.removeEventListener("durationchange",this.durationChangeHandler)),this.skippedCategories.clear()}}window.sponsorblock=null,window.addEventListener("hashchange",()=>{var t=new URL(location.hash.substring(1),location.href).search.replace("?v=","").split("&")[0],n=t&&(!window.sponsorblock||window.sponsorblock.videoID!=t);if(console.info("hashchange",t,window.sponsorblock,window.sponsorblock?window.sponsorblock.videoID:null,n),n){if(window.sponsorblock){try{window.sponsorblock.destroy()}catch(t){console.warn("window.sponsorblock.destroy() failed!",t)}window.sponsorblock=null}we("enableSponsorBlock")?(window.sponsorblock=new Lr(t),window.sponsorblock.init()):console.info("SponsorBlock disabled, not loading")}},!1);var mr;mr||(mr=1,function(){if(!("navigate"in window)){var t={37:"left",38:"up",39:"right",40:"down"},n=null,a=null,e={element:null,rect:null},r=null;window.navigate=s,window.Element.prototype.spatialNavigationSearch=d,window.Element.prototype.focusableAreas=y,window.Element.prototype.getSpatialNavigationContainer=g,window.CSS&&CSS.registerProperty&&(""===window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-contain")&&CSS.registerProperty({name:"--spatial-navigation-contain",syntax:"auto | contain",inherits:!1,initialValue:"auto"}),""===window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-action")&&CSS.registerProperty({name:"--spatial-navigation-action",syntax:"auto | focus | scroll",inherits:!1,initialValue:"auto"}),""===window.getComputedStyle(document.documentElement).getPropertyValue("--spatial-navigation-function")&&CSS.registerProperty({name:"--spatial-navigation-function",syntax:"normal | grid",inherits:!1,initialValue:"normal"})),Y(!1),window.addEventListener("load",()=>{i()})}function i(){window.addEventListener("keydown",e=>{var r=parent&&parent.__spatialNavigation__.keyMode||window.__spatialNavigation__.keyMode,i=document.activeElement,o=t[e.keyCode];if(9===e.keyCode&&(a=null),!(!r||"NONE"===r||"SHIFTARROW"===r&&!e.shiftKey||"ARROW"===r&&e.shiftKey||e.defaultPrevented)){var u={left:!0,up:!0,right:!0,down:!0};"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName||(u=function(n){var a=["email","date","month","number","time","week"],e=["password","text","search","tel","url",null],r=document.activeElement,i={left:!1,up:!1,right:!1,down:!1},s=t[n.keyCode];if(void 0===s)return i;if(!a.includes(r.getAttribute("type"))||"up"!==s&&"down"!==s)if(e.includes(r.getAttribute("type"))||"TEXTAREA"===r.nodeName){var o=r.selectionStart,u=r.selectionEnd;o===u&&(0===o&&(i.left=!0,i.up=!0),u===r.value.length&&(i.right=!0,i.down=!0))}else i[s]=!0;else i[s]=!0;return i}(e)),u[o]&&(e.preventDefault(),n=new Map,s(o),n=null,a=null)}}),document.addEventListener("mouseup",t=>{a={x:t.clientX,y:t.clientY}}),window.addEventListener("focusin",t=>{t.target!==window&&(e.element=t.target,e.rect=t.target.getBoundingClientRect())})}function s(t){var n=function(){var t=document.activeElement;if(!t||t===document.body&&!document.querySelector(":focus")){if(e.element&&t!==e.element){var n=window.getComputedStyle(e.element,null),a=["hidden","collapse"];if(e.element.disabled||a.includes(n.getPropertyValue("visibility")))return t=e.element}t=document.documentElement}if(!e.element||0!==Z(e.element).height&&0!==Z(e.element).width||(r=e.rect),!I(t)){var i=b(t);if(i&&(i===window||"auto"===w(i)))return i}return t}(),i=n,s=null;a&&(null===(s=document.elementFromPoint(a.x,a.y))&&(s=document.body),E(s)&&!C(s)?a=null:i=C(s)?s:s.getSpatialNavigationContainer()),i!==document&&i!==document.documentElement||(i=document.body||document.documentElement);var c=null;if((C(i)||"BODY"===i.nodeName)&&"INPUT"!==i.nodeName)if("IFRAME"===i.nodeName&&(i=i.contentDocument.documentElement),c=i,document.activeElement===n||document.activeElement===document.body&&n===document.documentElement){if("scroll"===w(i)){if(u(i,t))return}else if("focus"===w(i)){if(o(i.spatialNavigationSearch(t,{container:i,candidates:l(i,{mode:"all"})}),t))return}else if("auto"===w(i)&&(o(i.spatialNavigationSearch(t,{container:i}),t)||u(i,t)))return}else c=c.getSpatialNavigationContainer();var d=(c=i.getSpatialNavigationContainer()).parentElement?c.getSpatialNavigationContainer():null;if(d||window.location===window.parent.location||(d=window.parent.document.documentElement),"scroll"===w(c)){if(u(c,t))return}else"focus"===w(c)?D(i,c,d,t,"all"):"auto"===w(c)&&D(i,c,d,t,"visible")}function o(t,n){if(t){if(!k("beforefocus",t,null,n))return!0;var e=t.getSpatialNavigationContainer();return e!==window&&"focus"===w(e)?t.focus():t.focus({preventScroll:!0}),a=null,!0}return!1}function u(t,n){return G(t,n)&&!M(t,n)?(A(t,n),!0):!t.parentElement&&!P(t,n)&&(A(t.ownerDocument.documentElement,n),!0)}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{mode:"visible"},a=[];if(t.childElementCount>0){t.parentElement||(t=t.getElementsByTagName("body")[0]||document.body);var e,r=L(t.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;N(i)?a.push(i):E(i)?(a.push(i),!C(i)&&i.childElementCount&&(a=a.concat(l(i,{mode:"all"})))):i.childElementCount&&(a=a.concat(l(i,{mode:"all"})))}}catch(t){r.e(t)}finally{r.f()}}return"all"===n.mode?a:a.filter(T)}function c(t,n,a,e){var r=t;return e=e||r.getSpatialNavigationContainer(),m(r,a=!a||a.length<=0?l(e):a,n,e)}function d(t,n){var e,i=this,s=[],o=[],u=function(t){var n=t.getSpatialNavigationContainer(),a=n.focusableAreas(),e=[];return a.forEach(n=>{t!==n&&_(n,t)&&e.push(n)}),e}(i);n||(n={});var d=i.getSpatialNavigationContainer(),L=l(d),m=n.container||d;n.container&&d.contains(n.container)&&(L=L.concat(l(m)));var g=n.candidates&&n.candidates.length>0?n.candidates.filter(t=>m.contains(t)):L.filter(t=>m.contains(t)&&m!==t);if(g&&g.length>0){g.forEach(t=>{t!==i&&(i.contains(t)&&i!==t?s:o).push(t)});var f=u.filter(t=>!s.includes(t)),b=g.filter(t=>C(t)&&_(i,t)).map(t=>t.focusableAreas()).flat().filter(t=>t!==i);if(s=s.concat(f).filter(t=>m.contains(t)),(o=o.concat(b).filter(t=>m.contains(t))).length>0&&(o=c(i,t,o,m)),r&&(e=h(i,c(i,t,s,m),t)),s&&s.length>0&&"INPUT"!==i.nodeName&&(e=function(t,n,e){return p(t,n,e,a?q:O)}(i,s,t)),(e=e||h(i,o,t))&&N(e)){var y=l(e,{mode:"all"}),k=y.length>0?i.spatialNavigationSearch(t,{candidates:y,container:e}):null;k?e=k:E(e)||(g.splice(g.indexOf(e),1),e=g.length?i.spatialNavigationSearch(t,{candidates:g,container:m}):null)}return e}return null}function m(t,n,a,e){var i,s=t.getSpatialNavigationContainer();return void 0===a?n:(i=s.parentElement&&e!==s&&!T(t)?Z(s):r||Z(t),!C(t)&&"BODY"!==t.nodeName||"INPUT"===t.nodeName?n.filter(n=>{var r=Z(n),s="IFRAME"===n.nodeName?n.contentDocument.body:null;return e.contains(n)&&n!==t&&s!==t&&B(r,i,a)&&!z(i,r)}):n.filter(n=>{var r=Z(n);return e.contains(n)&&(t.contains(n)&&z(i,r)&&n!==t||B(r,i,a))}))}function h(t,n,a){var e,i,s=t.getSpatialNavigationContainer(),o=getComputedStyle(s).getPropertyValue("--spatial-navigation-function"),u=r||Z(t);return"grid"===o?((i=n.filter(t=>F(u,Z(t),a))).length>0&&(n=i),e=V):e=H,p(t,n,a,e)}function p(t,n,a,e){var i=null;window.location===window.parent.location||"BODY"!==t.nodeName&&"HTML"!==t.nodeName?i=r||t.getBoundingClientRect():((i=window.frameElement.getBoundingClientRect()).x=0,i.y=0);var s=Number.POSITIVE_INFINITY,o=[];if(n)for(var u=0;u<n.length;u++){var l=e(i,Z(n[u]),a);l<s?(s=l,o=[n[u]]):l===s&&o.push(n[u])}return 0===o.length?null:o.length>1&&e===V?p(t,o,a,K):o[0]}function g(){var t=this;do{if(!t.parentElement){t=window.location!==window.parent.location?window.parent.document.documentElement:window.document.documentElement;break}t=t.parentElement}while(!C(t));return t}function b(t){var n=t;do{if(!n.parentElement){n=window.location!==window.parent.location?window.parent.document.documentElement:window.document.documentElement;break}n=n.parentElement}while(!x(n)||!T(n));return n!==document&&n!==document.documentElement||(n=window),n}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mode:"visible"},n=this.parentElement?this:document.body,a=Array.prototype.filter.call(n.getElementsByTagName("*"),E);return"all"===t.mode?a:a.filter(T)}function k(t,n,a,e){if(["beforefocus","notarget"].includes(t)){var r=new CustomEvent("nav"+t,{bubbles:!0,cancelable:!0,detail:{causedTarget:a,dir:e}});return n.dispatchEvent(r)}}function v(t,n){return(t.style.getPropertyValue(`--${n}`)||"").trim()}function w(t){return v(t,"spatial-navigation-action")||"auto"}function D(t,n,a,e,r){for(var i={candidates:l(n,{mode:r}),container:n};a;){if(o(t.spatialNavigationSearch(e,i),e))return;if("visible"===r&&u(n,e))return;if(!k("notarget",n,t,e))return;n===document||n===document.documentElement?window.location!==window.parent.location&&(n=(t=window.frameElement).ownerDocument.documentElement):n=a,i={candidates:l(n,{mode:r}),container:n};var s=n.getSpatialNavigationContainer();a=s!==n?s:null}i={candidates:l(n,{mode:r}),container:n},!a&&n&&o(t.spatialNavigationSearch(e,i),e)||k("notarget",i.container,t,e)&&("auto"!==w(n)||"visible"!==r||u(n,e))}function A(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t)switch(n){case"left":t.scrollLeft-=40+a;break;case"right":t.scrollLeft+=40+a;break;case"up":t.scrollTop-=40+a;break;case"down":t.scrollTop+=40+a}}function C(t){return!t.parentElement||"IFRAME"===t.nodeName||x(t)||function(t){return"contain"===v(t,"spatial-navigation-contain")}(t)}function N(t){return"delegable"===v(t,"spatial-navigation-contain")}function x(t){var n=window.getComputedStyle(t,null),a=n.getPropertyValue("overflow-x"),e=n.getPropertyValue("overflow-y");return!!("visible"!==a&&"clip"!==a&&S(t,"left")||"visible"!==e&&"clip"!==e&&S(t,"down"))}function G(t,n){if(t&&"object"===f(t)){if(n&&"string"==typeof n){if(S(t,n)){var a=window.getComputedStyle(t,null),e=a.getPropertyValue("overflow-x"),r=a.getPropertyValue("overflow-y");switch(n){case"left":case"right":return"visible"!==e&&"clip"!==e&&"hidden"!==e;case"up":case"down":return"visible"!==r&&"clip"!==r&&"hidden"!==r}}return!1}return"HTML"===t.nodeName||"BODY"===t.nodeName||x(t)&&S(t)}}function S(t,n){if(t&&"object"===f(t)){if(!n||"string"!=typeof n)return t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight;switch(n){case"left":case"right":return t.scrollWidth>t.clientWidth;case"up":case"down":return t.scrollHeight>t.clientHeight}return!1}}function P(t,n){var a=!1;switch(n){case"left":a=0===t.scrollLeft;break;case"right":a=t.scrollWidth-t.scrollLeft-t.clientWidth===0;break;case"up":a=0===t.scrollTop;break;case"down":a=t.scrollHeight-t.scrollTop-t.clientHeight===0}return a}function M(t,n){if(G(t,n)){var a=t.scrollTop,e=t.scrollLeft,r=t.scrollHeight-t.clientHeight,i=t.scrollWidth-t.clientWidth;switch(n){case"left":return 0===e;case"right":return Math.abs(e-i)<=1;case"up":return 0===a;case"down":return Math.abs(a-r)<=1}}return!1}function I(t){var n=t.getBoundingClientRect(),a=b(t),e=null;return!(!z(e=a!==window?Z(a):new DOMRect(0,0,window.innerWidth,window.innerHeight),n)||!z(e,n))}function E(t){return!(t.tabIndex<0||function(t){return"A"===t.tagName&&null===t.getAttribute("href")&&null===t.getAttribute("tabIndex")}(t)||function(t){return!!["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(t.tagName)&&t.disabled}(t)||function(t){return t.inert&&!t.ownerDocument.documentElement.inert}(t)||!function(t){return!!j(t.parentElement)&&!(!j(t)||"0"===t.style.opacity||"0px"===window.getComputedStyle(t).height||"0px"===window.getComputedStyle(t).width)}(t))&&(!!(!t.parentElement||G(t)&&S(t)||t.tabIndex>=0)||void 0)}function T(t){return!t.parentElement||j(t)&&function(t){var n=Z(t);if("IFRAME"!==t.nodeName&&(n.top<0||n.left<0||n.top>t.ownerDocument.documentElement.clientHeight||n.left>t.ownerDocument.documentElement.clientWidth))return!1;var a=parseInt(t.offsetWidth)/10,e=parseInt(t.offsetHeight)/10;a=isNaN(a)?1:a,e=isNaN(e)?1:e;var r={middle:[(n.left+n.right)/2,(n.top+n.bottom)/2],leftTop:[n.left+a,n.top+e],rightBottom:[n.right-a,n.bottom-e]};for(var i in r){var s=t.ownerDocument.elementFromPoint(...r[i]);if(t===s||t.contains(s))return!0}return!1}(t)}function _(t,n){var a=Z(t),e=Z(n||t.getSpatialNavigationContainer());return!(a.left<e.left||a.right>e.right||a.top<e.top||a.bottom>e.bottom)}function j(t){var n=window.getComputedStyle(t,null),a=n.getPropertyValue("visibility");return"none"!==n.getPropertyValue("display")&&!["hidden","collapse"].includes(a)}function z(t,n){var a=t.left<=n.right&&t.right>=n.right,e=t.left<=n.left&&t.right>=n.left,r=t.top<=n.top&&t.bottom>=n.top,i=t.top<=n.bottom&&t.bottom>=n.bottom;return(a||e)&&(r||i)}function B(t,n,a){switch(a){case"left":return U(n,t);case"right":return U(t,n);case"up":return R(n,t);case"down":return R(t,n);default:return!1}}function U(t,n){return t.left>=n.right||t.left>=n.left&&t.right>n.right&&t.bottom>n.top&&t.top<n.bottom}function R(t,n){return t.top>=n.bottom||t.top>=n.top&&t.bottom>n.bottom&&t.left<n.right&&t.right>n.left}function F(t,n,a){switch(a){case"left":case"right":return t.bottom>n.top&&t.top<n.bottom;case"up":case"down":return t.right>n.left&&t.left<n.right;default:return!1}}function q(t,n,e){var r=X(e,a,n),i=Math.abs(r.entryPoint.x-r.exitPoint.x),s=Math.abs(r.entryPoint.y-r.exitPoint.y);return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}function O(t,n,a){var e={left:"right",right:"left",up:"bottom",down:"top"}[a];return Math.abs(t[e]-n[e])}function H(t,n,a){var e,r,i,s,o,u,l,c=0,d=0,L=X(a,t,n),m=Math.abs(L.entryPoint.x-L.exitPoint.x),h=Math.abs(L.entryPoint.y-L.exitPoint.y),p=Math.sqrt(Math.pow(m,2)+Math.pow(h,2)),g=(i=t,s=n,o={width:0,height:0,area:0},u=[Math.max(i.left,s.left),Math.max(i.top,s.top)],l=[Math.min(i.right,s.right),Math.min(i.bottom,s.bottom)],o.width=Math.abs(u[0]-l[0]),o.height=Math.abs(u[1]-l[1]),u[0]>=l[0]||u[1]>=l[1]||(o.area=Math.sqrt(o.width*o.height)),o),f=g.area;switch(a){case"left":case"right":F(t,n,a)?d=Math.min(g.height/t.height,1):c=t.height/2,e=30*(h+c),r=5*d;break;case"up":case"down":F(t,n,a)?d=Math.min(g.width/t.width,1):c=t.width/2,e=2*(m+c),r=5*d;break;default:e=0,r=0}return p+e-r-f}function K(t,n,a){var e=X(a,t,n),r=Math.abs(e.entryPoint.x-e.exitPoint.x),i=Math.abs(e.entryPoint.y-e.exitPoint.y);return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}function V(t,n,a){var e=X(a,t,n);return"left"===a||"right"===a?Math.abs(e.entryPoint.x-e.exitPoint.x):Math.abs(e.entryPoint.y-e.exitPoint.y)}function X(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"down",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r={entryPoint:{x:0,y:0},exitPoint:{x:0,y:0}};if(a){switch(r.exitPoint=n,t){case"left":r.entryPoint.x=e.right;break;case"up":r.entryPoint.y=e.bottom;break;case"right":r.entryPoint.x=e.left;break;case"down":r.entryPoint.y=e.top}switch(t){case"left":case"right":a.y<=e.top?r.entryPoint.y=e.top:a.y<e.bottom?r.entryPoint.y=a.y:r.entryPoint.y=e.bottom;break;case"up":case"down":a.x<=e.left?r.entryPoint.x=e.left:a.x<e.right?r.entryPoint.x=a.x:r.entryPoint.x=e.right}}else{switch(t){case"left":r.exitPoint.x=n.left,r.entryPoint.x=e.right<n.left?e.right:n.left;break;case"up":r.exitPoint.y=n.top,r.entryPoint.y=e.bottom<n.top?e.bottom:n.top;break;case"right":r.exitPoint.x=n.right,r.entryPoint.x=e.left>n.right?e.left:n.right;break;case"down":r.exitPoint.y=n.bottom,r.entryPoint.y=e.top>n.bottom?e.top:n.bottom}switch(t){case"left":case"right":R(n,e)?(r.exitPoint.y=n.top,r.entryPoint.y=e.bottom<n.top?e.bottom:n.top):R(e,n)?(r.exitPoint.y=n.bottom,r.entryPoint.y=e.top>n.bottom?e.top:n.bottom):(r.exitPoint.y=Math.max(n.top,e.top),r.entryPoint.y=r.exitPoint.y);break;case"up":case"down":U(n,e)?(r.exitPoint.x=n.left,r.entryPoint.x=e.right<n.left?e.right:n.left):U(e,n)?(r.exitPoint.x=n.right,r.entryPoint.x=e.left>n.right?e.left:n.right):(r.exitPoint.x=Math.max(n.left,e.left),r.entryPoint.x=r.exitPoint.x)}}return r}function Z(t){var a=n&&n.get(t);if(!a){var e=t.getBoundingClientRect();a={top:Number(e.top.toFixed(2)),right:Number(e.right.toFixed(2)),bottom:Number(e.bottom.toFixed(2)),left:Number(e.left.toFixed(2)),width:Number(e.width.toFixed(2)),height:Number(e.height.toFixed(2))},n&&n.set(t,a)}return a}function Y(t){var n=window.__spatialNavigation__&&window.__spatialNavigation__.keyMode;window.__spatialNavigation__=!1===t?W():Object.assign(W(),function(){function t(t,n){return G(t,n)&&!M(t,n)||!t.parentElement&&!P(t,n)}function n(n,a,e,r){var i=a,s=null;if(i!==document&&i!==document.documentElement||(i=document.body||document.documentElement),(C(i)||"BODY"===i.nodeName)&&"INPUT"!==i.nodeName){"IFRAME"===i.nodeName&&(i=i.contentDocument.body);var o=l(i,r);if(Array.isArray(o)&&o.length>0)return n?c(i,e,o):i.spatialNavigationSearch(e,{candidates:o});if(t(i,e))return n?[]:i}var u=i.getSpatialNavigationContainer(),d=u.parentElement?u.getSpatialNavigationContainer():null;for(d||window.location===window.parent.location||(d=window.parent.document.documentElement);d;){var L=m(i,l(u,r),e,u);if(Array.isArray(L)&&L.length>0){if(s=i.spatialNavigationSearch(e,{candidates:L,container:u}))return n?L:s}else{if(t(u,e))return n?[]:i;if(u===document||u===document.documentElement){if(u=window.document.documentElement,window.location!==window.parent.location){if(i=window.frameElement,!(u=window.parent.document.documentElement).parentElement){d=null;break}d=u.getSpatialNavigationContainer()}}else{if(E(u)&&(i=u),!(u=d).parentElement){d=null;break}d=u.getSpatialNavigationContainer()}}}if(!d&&u){var h=m(i,l(u,r),e,u);if(Array.isArray(h)&&h.length>0&&(s=i.spatialNavigationSearch(e,{candidates:h,container:u})))return n?h:s}if(t(u,e))return i}return{isContainer:C,isScrollContainer:x,isVisibleInScroller:I,findCandidates:n.bind(null,!0),findNextTarget:n.bind(null,!1),getDistanceFromTarget:(t,n,a)=>(C(t)||"BODY"===t.nodeName)&&"INPUT"!==t.nodeName&&l(t).includes(n)?O(Z(t),Z(n),a):H(Z(t),Z(n),a)}}()),window.__spatialNavigation__.keyMode=n,Object.seal(window.__spatialNavigation__)}function W(){return{enableExperimentalAPIs:Y,get keyMode(){return this._keymode?this._keymode:"ARROW"},set keyMode(t){this._keymode=["SHIFTARROW","ARROW","NONE"].includes(t)?t:"ARROW"},setStartingPoint:function(t,n){a=t&&n?{x:t,y:n}:null}}}}());var hr='.ytaf-ui-container {\n position: absolute;\n top: 10%;\n left: 10%;\n right: 10%;\n bottom: 10%;\n\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 20px;\n padding: 20px;\n font-size: 1.5rem;\n z-index: 1000;\n}\n\n.ytaf-ui-container :focus {\n outline: 4px red solid;\n}\n\n.ytaf-ui-container h1 {\n margin: 0;\n margin-bottom: 0.5em;\n text-align: center;\n}\n\n.ytaf-ui-container input[type=\'checkbox\'] {\n width: 1.4rem;\n height: 1.4rem;\n}\n\n.ytaf-ui-container input[type=\'radio\'] {\n width: 1.4rem;\n height: 1.4rem;\n}\n\n.ytaf-ui-container label {\n display: block;\n font-size: 1.4rem;\n}\n\n.ytaf-notification-container {\n position: absolute;\n right: 10px;\n bottom: 10px;\n font-size: 16pt;\n z-index: 1200;\n}\n\n.ytaf-notification-container .message {\n background: rgba(0, 0, 0, 0.7);\n color: white;\n padding: 1em;\n margin: 0.5em;\n transition: all 0.3s ease-in-out;\n opacity: 1;\n line-height: 1;\n border-right: 10px solid rgba(50, 255, 50, 0.3);\n display: inline-block;\n float: right;\n}\n\n.ytaf-notification-container .message-hidden {\n opacity: 0;\n margin: 0 0.5em;\n padding: 0 1em;\n line-height: 0;\n}\n\n/* Fixes transparency effect for the video player */\n\n.ytLrWatchDefaultShadow,\ndiv[idomkey="shadow"] {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.8) 90%) !important;\n background-color: rgba(0, 0, 0, 0.3) !important;\n display: block !important;\n height: 100% !important;\n pointer-events: none !important;\n position: absolute !important;\n width: 100% !important;\n}\n\n/* https://github.com/webosbrew/youtube-webos/commit/4fbe38a18df31ddd62b6cf15f141dd58e1d1a71d */\n.ytLrWatchDefault2025Shadow {\n background-color: rgba(11, 11, 11, 0.5) !important;\n}\n\n/* Fixes shorts having a black background */\n\n.ytLrTileHeaderRendererShorts {\n background-image: none !important;\n}\n\n/* Multiline support for strings in the UI */\n\n.ytLrOverlayPanelHeaderRendererSubtitle {\n white-space: pre-wrap !important;\n}\n\n/* Fixes SponsorBlock segments overlapping with the playhead */\n\n.ytLrProgressBarPlayhead {\n z-index: 1 !important;\n}\n\n.ytLrProgressBarPlayed {\n z-index: 1 !important;\n}\n\n.ytLrSearchBarSearchVoice {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n pointer-events: auto\n}\n\n.ytLrSearchVoiceHost {\n font-size: 3rem;\n}\n\n.ytLrSearchVoiceMicButtonHost {\n color: rgba(255, 255, 255, 0.7);\n}\n\n.ytLrSearchVoiceMicButtonHost {\n background-color: rgba(255, 255, 255, 0.1);\n border-radius: 50%;\n color: #f1f1f1;\n display: block;\n text-align: center;\n width: 1em;\n height: 1em;\n}\n\n.ytLrSearchVoiceMicButtonIcon {\n display: inline-block;\n font-size: .5em;\n height: .5em;\n width: .5em;\n height: 1em;\n width: 1em;\n margin-top: .5em;\n vertical-align: top !important;\n}\n\n.ytContribIconHost {\n display: inline-block;\n vertical-align: middle;\n}\n\n.ytContribIconTvArrowLeft::before {\n content: "\\e822";\n}\n\n.ytContribIconHost::before {\n font-family: "YouTube Icons Outlined";\n}',pr=document.createElement("style"),gr="";function fr(){gr=`\n ytlr-guide-response yt-focus-container {\n background-color: ${we("focusContainerColor")};\n }\n\n #container {\n background-color: ${we("routeColor")} !important;\n }\n`;var t=document.querySelector("style[nonce]");t?t.textContent+=gr:pr.textContent=gr}function br(){var t,n;for(var a in window._yttv)if(window._yttv[a]&&window._yttv[a].getInstance)if(window._yttv[a].toString().includes("ytlrActionRouter"))t=window._yttv[a].getInstance();else{var e,r=!1,i=window._yttv[a].getInstance(),s=L(Object.getOwnPropertyNames(Object.getPrototypeOf(i)));try{for(s.s();!(e=s.n()).done;){var o=e.value;"function"==typeof i[o]&&i[o].toString().includes("ytlrActionRouter")&&(n=i[o],r=!0)}}catch(t){s.e(t)}finally{s.f()}r&&(t=window._yttv[a].getInstance())}if(t){if(!n){var u,l=L(Object.getOwnPropertyNames(Object.getPrototypeOf(t)));try{for(l.s();!(u=l.n()).done;){var c=u.value;"function"==typeof t[c]&&t[c].toString().includes("ytlrActionRouter")&&(n=t[c])}}catch(t){l.e(t)}finally{l.f()}}if(n){var d;for(var m in window._yttv)window._yttv[m]&&"function"==typeof window._yttv[m]&&window._yttv[m].toString().includes("this.actionName")&&(d=window._yttv[m]);return{executeFunction:n.bind(t),commandFunction:d}}}}document.head.appendChild(pr),fr();var yr=setInterval(()=>{document.querySelector("video")&&(!function(){var t=document.querySelector("style[nonce]");if(t)t.textContent+=hr;else{var n=document.createElement("style");n.textContent=hr,document.head.appendChild(n)}if(we("enableFixedUI"))try{window.tectonicConfig.featureSwitches.isLimitedMemory=!1,window.tectonicConfig.clientData.legacyApplicationQuality="full-animation",window.tectonicConfig.featureSwitches.enableAnimations=!0,window.tectonicConfig.featureSwitches.enableOnScrollLinearAnimation=!0,window.tectonicConfig.featureSwitches.enableListAnimations=!0}catch(t){}window.__spatialNavigation__.keyMode="NONE";var a={37:"left",38:"up",39:"right",40:"down"},e=document.createElement("div");e.classList.add("ytaf-ui-container"),e.style.display="none",e.setAttribute("tabindex",0),e.addEventListener("focus",()=>console.info("uiContainer focused!"),!0),e.addEventListener("blur",()=>console.info("uiContainer blured!"),!0),e.addEventListener("keydown",t=>{if(console.info("uiContainer key event:",t.type,t.keyCode,t),404!==t.keyCode&&172!==t.keyCode){var n;if(t.keyCode in a)navigate(a[t.keyCode]);else{if(13===t.keyCode||32===t.keyCode){console.log("OK button pressed");var r=document.querySelector(":focus");return"checkbox"===r.type&&(r.checked=!r.checked,r.dispatchEvent(new Event("change"))),t.preventDefault(),void t.stopPropagation()}if(27===t.keyCode&&"text"!==document.querySelector(":focus").type)e.style.display="none",e.blur();else if("text"===document.querySelector(":focus").type&&27===t.keyCode){var i=document.querySelector(":focus");i.value=i.value.slice(0,-1)}}"Enter"!==t.key&&"Enter"!==(null===(n=t.Uc)||void 0===n?void 0:n.key)||"text"===document.querySelector(":focus").type&&document.querySelector(":focus").dispatchEvent(new Event("change"))}},!0);try{e.innerHTML='\n<h1>TizenTube Theme Configuration</h1>\n<label for="__barColor">Navigation Bar Color: <input type="text" id="__barColor"/></label>\n<label for="__routeColor">Main Content Color: <input type="text" id="__routeColor"/></label>\n<div><small>Sponsor segments skipping - https://sponsor.ajay.app</small></div>\n',document.querySelector("body").appendChild(e),e.querySelector("#__barColor").value=we("focusContainerColor"),e.querySelector("#__barColor").addEventListener("change",t=>{De("focusContainerColor",t.target.value),fr()}),e.querySelector("#__routeColor").value=we("routeColor"),e.querySelector("#__routeColor").addEventListener("change",t=>{De("routeColor",t.target.value),fr()})}catch(t){}var r=t=>{if(console.info("Key event:",t.type,t.keyCode,t.keyCode,t.defaultPrevented),we("enableScreenDimming")&&(kr&&clearTimeout(kr),document.getElementById("container").style.setProperty("opacity","1","important"),kr=setTimeout(()=>{document.querySelector(".html5-video-player").getPlayerStateObject().isPlaying||document.getElementById("container").style.setProperty("opacity",(1-we("dimmingOpacity")).toString(),"important")},1e3*we("dimmingTimeout"))),403==t.keyCode){if(console.info("Taking over!"),t.preventDefault(),t.stopPropagation(),"keydown"===t.type)try{"none"===e.style.display?(console.info("Showing and focusing!"),e.style.display="block",e.focus()):(console.info("Hiding!"),e.style.display="none",e.blur())}catch(t){}return!1}if(404==t.keyCode)"keydown"===t.type&&Ye();else if(39==t.keyCode){if("keydown"===t.type)if(document.querySelector("ytlr-search-text-box > .zylon-focus")&&window.isPipPlaying)document.querySelector("ytlr-player").style.setProperty("background-color","rgb(0, 0, 0)"),n=Ce.loadedPlaybackConfig,a=n.clickTrackingParams,r=n.commandMetadata,(i=n.watchEndpoint).startTimeSeconds=Math.floor(document.querySelector("video").currentTime),tr({clickTrackingParams:a,commandMetadata:r,watchEndpoint:i}),window.isPipPlaying=!1}var n,a,r,i;return!0};document.addEventListener("keydown",r,!0),document.addEventListener("keypress",r,!0),document.addEventListener("keyup",r,!0),we("showWelcomeToast")&&setTimeout(()=>{Ge("Welcome to TizenTube","Go to settings and click on TizenTube Settings for settings, press [RED] to open TizenTube Theme Settings.")},2e3);we("launchToOnStartup")?tr(JSON.parse(we("launchToOnStartup"))):tr({signalAction:{signal:"SOFT_RELOAD_PAGE"}});var i=br();i&&i.executeFunction(new i.commandFunction("reloadGuideAction"));if(we("enableFixedUI"))try{new MutationObserver((t,n)=>{var a=document.body;a.classList.contains("app-quality-root")&&a.classList.remove("app-quality-root")}).observe(document.body,{attributes:!0,childList:!1,subtree:!1})}catch(t){}}(),function(){var t=function(){if(window._yttv[n]&&window._yttv[n].instance&&window._yttv[n].instance.resolveCommand){var t=window._yttv[n].instance.resolveCommand;window._yttv[n].instance.resolveCommand=function(n,a){var e,r,i,s,o;if(n.setClientSettingEndpoint){var u,l=L(n.setClientSettingEndpoint.settingDatas);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(c.clientSettingEnum.item.includes("_")){if("I18N_LANGUAGE"===c.clientSettingEnum.item){var d=c.stringValue,m=new Date;return m.setFullYear(m.getFullYear()+10),document.cookie=`PREF=hl=${d}; expires=${m.toUTCString()};`,tr({signalAction:{signal:"RELOAD_PAGE"}}),!0}}else{var h,p=L(n.setClientSettingEndpoint.settingDatas);try{for(p.s();!(h=p.n()).done;){var g=h.value,f=Object.keys(g).find(t=>t.includes("Value")),b="intValue"===f?Number(g[f]):g[f];if("arrayValue"===f){var y=we(g.clientSettingEnum.item);y.includes(b)?y.splice(y.indexOf(b),1):y.push(b),De(g.clientSettingEnum.item,y)}else De(g.clientSettingEnum.item,b)}}catch(t){p.e(t)}finally{p.f()}}}}catch(t){l.e(t)}finally{l.f()}}else{if(n.customAction)return nr(n.customAction.action,n.customAction.parameters),!0;if(null!=n&&null!==(e=n.signalAction)&&void 0!==e&&e.customAction)return nr(n.signalAction.customAction.action,n.signalAction.customAction.parameters),!0;if(null!=n&&null!==(r=n.showEngagementPanelEndpoint)&&void 0!==r&&r.customAction)return nr(n.showEngagementPanelEndpoint.customAction.action,n.showEngagementPanelEndpoint.customAction.parameters),!0;if(null!=n&&null!==(i=n.playlistEditEndpoint)&&void 0!==i&&i.customAction)return nr(n.playlistEditEndpoint.customAction.action,n.playlistEditEndpoint.customAction.parameters),!0;if("playback-settings"===(null==n||null===(s=n.openPopupAction)||void 0===s?void 0:s.uniqueId)){var k,v=L(n.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items);try{for(v.s();!(k=v.n()).done;){var w,D=k.value;"SLOW_MOTION_VIDEO"===(null==D||null===(w=D.compactLinkRenderer)||void 0===w||null===(w=w.icon)||void 0===w?void 0:w.iconType)&&(D.compactLinkRenderer.subtitle&&(D.compactLinkRenderer.subtitle.simpleText="with TizenTube"),D.compactLinkRenderer.serviceEndpoint={clickTrackingParams:"null",signalAction:{customAction:{action:"TT_SPEED_SETTINGS_SHOW",parameters:[]}}})}}catch(t){v.e(t)}finally{v.f()}n.openPopupAction.popup.overlaySectionRenderer.overlay.overlayTwoPanelRenderer.actionPanel.overlayPanelRenderer.content.overlayPanelItemListRenderer.items.splice(2,0,Me({title:"Mini Player"},{icon:"CLEAR_COOKIES"},[{customAction:{action:"ENTER_PIP"}}]))}else null!=n&&null!==(o=n.watchEndpoint)&&void 0!==o&&o.videoId&&(window.isPipPlaying=!1,document.querySelector("ytlr-player-container").style.removeProperty("z-index"))}return t.call(this,n,a)}}};for(var n in window._yttv)t()}(),clearInterval(yr))},250),kr=null;function vr(t){var n=JSON.parse(localStorage["yt.leanback.default::recurring_actions"]),a=new Date;if(t){var e,r;if(a.getTime()-(null===(e=n.data.data["startup-screen-account-selector-with-guest"])||void 0===e?void 0:e.lastFired)>0&&a.getTime()-(null===(r=n.data.data["startup-screen-account-selector-with-guest"])||void 0===r?void 0:r.lastFired)<72e5)return;n.data.data["startup-screen-account-selector-with-guest"]&&(n.data.data["startup-screen-account-selector-with-guest"].lastFired=a.getTime()),n.data.data.whos_watching_fullscreen_zero_accounts.lastFired=a.getTime(),n.data.data["startup-screen-signed-out-welcome-back"]&&(n.data.data["startup-screen-signed-out-welcome-back"].lastFired=a.getTime()),localStorage["yt.leanback.default::recurring_actions"]=JSON.stringify(n)}else a.setDate(a.getDate()+7),n.data.data["startup-screen-account-selector-with-guest"]&&(n.data.data["startup-screen-account-selector-with-guest"].lastFired=a.getTime()),n.data.data.whos_watching_fullscreen_zero_accounts.lastFired=a.getTime(),n.data.data["startup-screen-signed-out-welcome-back"]&&(n.data.data["startup-screen-signed-out-welcome-back"].lastFired=a.getTime()),localStorage["yt.leanback.default::recurring_actions"]=JSON.stringify(n)}Ae.addEventListener("configChange",t=>{var n=t.detail,a=n.key,e=n.value;"enableWhoIsWatchingMenu"===a&&vr(e)}),vr(we("enableWhoIsWatchingMenu"));var wr=".html5-video-player",Dr="onStateChange",Ar="configChange",Cr="preferredVideoQuality",Nr=new WeakMap,xr=new WeakMap,Gr=new WeakMap,Sr=new WeakMap,Pr=new WeakSet,Mr=new WeakMap;function Ir(){clearTimeout(l(xr,this));var t=document.querySelector(wr);t?(d(Nr,this,t),l(Nr,this).addEventListener(Dr,l(Mr,this)),l(Mr,this).call(this)):d(xr,this,setTimeout(()=>s(Pr,this,Ir).call(this),100))}function Er(){Ae.addEventListener(Ar,t=>{var n;(null===(n=t.detail)||void 0===n?void 0:n.key)===Cr&&s(Pr,this,Tr).call(this)})}function Tr(){var t=we(Cr);if(t&&"auto"!==t&&l(Nr,this))try{var n=s(Pr,this,_r).call(this,t);n&&l(Nr,this).setPlaybackQualityRange(n,n)}catch(t){console.warn("[PreferredQuality] Failed to apply quality:",t)}}function _r(t){var n=l(Nr,this).getAvailableQualityData();if(null==n||!n.length)return"highres";var a=t=>parseInt(t,10)||0,e=a(t),r=n.find(t=>a(t.qualityLabel)===e);return r?r.quality:"highres"}function jr(){var t;if(!window._yttv)return setTimeout(jr,250);null===(t=Object.values(window._yttv).find(t=>t instanceof Map&&t.has("ENABLE_PREVIEWS_WITH_SOUND")))||void 0===t||t.set("ENABLE_PREVIEWS_WITH_SOUND",we("enablePreviews"))}window.preferredVideoQualityHandler=new class{constructor(){var t,n;u(t=this,n=Pr),n.add(t),c(this,Nr,null),c(this,xr,null),c(this,Gr,null),c(this,Sr,!1),c(this,Mr,()=>{var t,n,a,e,r=null===(t=l(Nr,this))||void 0===t||null===(n=t.getPlayerStateObject)||void 0===n?void 0:n.call(t),i=null===(a=l(Nr,this))||void 0===a||null===(e=a.getVideoData)||void 0===e?void 0:e.call(a),o=null==i?void 0:i.video_id;o!==l(Gr,this)&&(d(Gr,this,o),d(Sr,this,!1));var u=Object.values(l(Nr,this).getVideoStats()).find(t=>t&&"shortspage"===t);null==r||!r.isPlaying||l(Sr,this)||u||(s(Pr,this,Tr).call(this),d(Sr,this,!0))}),this.init()}init(){s(Pr,this,Ir).call(this),s(Pr,this,Er).call(this)}},window.queuedVideos={videos:[],lastVideoId:null},function t(){var n=document.querySelector(".html5-video-player");if(!n)return setTimeout(t,250);n.addEventListener("onStateChange",()=>{var t=n.getPlayerStateObject(),a=n.getVideoData();if(0!==window.queuedVideos.videos.length)if(t.isEnded){var e=window.queuedVideos.videos.findIndex(t=>t.tileRenderer.contentId===a.video_id);if(-1!==e){if(e+1>=window.queuedVideos.videos.length)return void tr({customAction:{action:"CLEAR_QUEUE"}});var r=window.queuedVideos.videos[e+1].tileRenderer.onSelectCommand;setTimeout(()=>tr(r),500)}else if(window.queuedVideos.lastVideoId){var i=window.queuedVideos.videos.findIndex(t=>t.tileRenderer.contentId===window.queuedVideos.lastVideoId);if(!(-1!==i&&i+1<window.queuedVideos.videos.length))return void tr({customAction:{action:"CLEAR_QUEUE"}});var s=window.queuedVideos.videos[i+1].tileRenderer.onSelectCommand;setTimeout(()=>tr(s),500)}else{var o=window.queuedVideos.videos[0].tileRenderer.onSelectCommand;setTimeout(()=>tr(o),500)}}else t.isPlaying&&(document.getElementById("container").style.setProperty("opacity","1","important"),window.queuedVideos.videos.find(t=>t.contentId===a.video_id)&&(window.queuedVideos.lastVideoId=a.video_id))})}(),Ae.addEventListener("configChange",t=>{jr()}),"complete"===document.readyState?jr():window.addEventListener("load",jr);var zr,Br={exports:{}};var Ur,Rr,Fr=(zr||(zr=1,Ur=function(){return function(t){var n={};function a(e){if(n[e])return n[e].exports;var r=n[e]={exports:{},id:e,loaded:!1};return t[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}return a.m=t,a.c=n,a.p="",a(0)}([function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(1),r=a(3),i=a(8),s=a(15);function o(t,n,a){var s=null,o=function(t,n){a&&a(t,n),s&&s.visit(t,n)},u="function"==typeof a?o:null,l=!1;if(n){l="boolean"==typeof n.comment&&n.comment;var c="boolean"==typeof n.attachComment&&n.attachComment;(l||c)&&((s=new e.CommentHandler).attach=c,n.comment=!0,u=o)}var d,L=!1;n&&"string"==typeof n.sourceType&&(L="module"===n.sourceType),d=n&&"boolean"==typeof n.jsx&&n.jsx?new r.JSXParser(t,n,u):new i.Parser(t,n,u);var m=L?d.parseModule():d.parseScript();return l&&s&&(m.comments=s.comments),d.config.tokens&&(m.tokens=d.tokens),d.config.tolerant&&(m.errors=d.errorHandler.errors),m}n.parse=o,n.parseModule=function(t,n,a){var e=n||{};return e.sourceType="module",o(t,e,a)},n.parseScript=function(t,n,a){var e=n||{};return e.sourceType="script",o(t,e,a)},n.tokenize=function(t,n,a){var e,r=new s.Tokenizer(t,n);e=[];try{for(;;){var i=r.getNextToken();if(!i)break;a&&(i=a(i)),e.push(i)}}catch(t){r.errorHandler.tolerate(t)}return r.errorHandler.tolerant&&(e.errors=r.errors()),e};var u=a(2);n.Syntax=u.Syntax,n.version="4.0.1"},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(2),r=function(){function t(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return t.prototype.insertInnerComments=function(t,n){if(t.type===e.Syntax.BlockStatement&&0===t.body.length){for(var a=[],r=this.leading.length-1;r>=0;--r){var i=this.leading[r];n.end.offset>=i.start&&(a.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}a.length&&(t.innerComments=a)}},t.prototype.findTrailingComments=function(t){var n=[];if(this.trailing.length>0){for(var a=this.trailing.length-1;a>=0;--a){var e=this.trailing[a];e.start>=t.end.offset&&n.unshift(e.comment)}return this.trailing.length=0,n}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=t.end.offset&&(n=r.node.trailingComments,delete r.node.trailingComments)}return n},t.prototype.findLeadingComments=function(t){for(var n,a=[];this.stack.length>0&&(i=this.stack[this.stack.length-1])&&i.start>=t.start.offset;)n=i.node,this.stack.pop();if(n){for(var e=(n.leadingComments?n.leadingComments.length:0)-1;e>=0;--e){var r=n.leadingComments[e];r.range[1]<=t.start.offset&&(a.unshift(r),n.leadingComments.splice(e,1))}return n.leadingComments&&0===n.leadingComments.length&&delete n.leadingComments,a}for(e=this.leading.length-1;e>=0;--e){var i;(i=this.leading[e]).start<=t.start.offset&&(a.unshift(i.comment),this.leading.splice(e,1))}return a},t.prototype.visitNode=function(t,n){if(!(t.type===e.Syntax.Program&&t.body.length>0)){this.insertInnerComments(t,n);var a=this.findTrailingComments(n),r=this.findLeadingComments(n);r.length>0&&(t.leadingComments=r),a.length>0&&(t.trailingComments=a),this.stack.push({node:t,start:n.start.offset})}},t.prototype.visitComment=function(t,n){var a="L"===t.type[0]?"Line":"Block",e={type:a,value:t.value};if(t.range&&(e.range=t.range),t.loc&&(e.loc=t.loc),this.comments.push(e),this.attach){var r={comment:{type:a,value:t.value,range:[n.start.offset,n.end.offset]},start:n.start.offset};t.loc&&(r.comment.loc=t.loc),t.type=a,this.leading.push(r),this.trailing.push(r)}},t.prototype.visit=function(t,n){"LineComment"===t.type||"BlockComment"===t.type?this.visitComment(t,n):this.attach&&this.visitNode(t,n)},t}();n.CommentHandler=r},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,n,a){var e,r=this&&this.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])},function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)});Object.defineProperty(n,"__esModule",{value:!0});var i=a(4),s=a(5),o=a(6),u=a(7),l=a(8),c=a(13),d=a(14);function L(t){var n;switch(t.type){case o.JSXSyntax.JSXIdentifier:n=t.name;break;case o.JSXSyntax.JSXNamespacedName:var a=t;n=L(a.namespace)+":"+L(a.name);break;case o.JSXSyntax.JSXMemberExpression:var e=t;n=L(e.object)+"."+L(e.property)}return n}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var m=function(t){function n(n,a,e){return t.call(this,n,a,e)||this}return r(n,t),n.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():t.prototype.parsePrimaryExpression.call(this)},n.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},n.prototype.finishJSX=function(){this.nextToken()},n.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},n.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},n.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},n.prototype.scanXHTMLEntity=function(t){for(var n="&",a=!0,e=!1,r=!1,s=!1;!this.scanner.eof()&&a&&!e;){var o=this.scanner.source[this.scanner.index];if(o===t)break;if(e=";"===o,n+=o,++this.scanner.index,!e)switch(n.length){case 2:r="#"===o;break;case 3:r&&(a=(s="x"===o)||i.Character.isDecimalDigit(o.charCodeAt(0)),r=r&&!s);break;default:a=(a=a&&!(r&&!i.Character.isDecimalDigit(o.charCodeAt(0))))&&!(s&&!i.Character.isHexDigit(o.charCodeAt(0)))}}if(a&&e&&n.length>2){var u=n.substr(1,n.length-2);r&&u.length>1?n=String.fromCharCode(parseInt(u.substr(1),10)):s&&u.length>2?n=String.fromCharCode(parseInt("0"+u.substr(1),16)):r||s||!d.XHTMLEntities[u]||(n=d.XHTMLEntities[u])}return n},n.prototype.lexJSX=function(){var t=this.scanner.source.charCodeAt(this.scanner.index);if(60===t||62===t||47===t||58===t||61===t||123===t||125===t)return{type:7,value:o=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===t||39===t){for(var n=this.scanner.index,a=this.scanner.source[this.scanner.index++],e="";!this.scanner.eof()&&(u=this.scanner.source[this.scanner.index++])!==a;)e+="&"===u?this.scanXHTMLEntity(a):u;return{type:8,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(46===t){var r=this.scanner.source.charCodeAt(this.scanner.index+1),s=this.scanner.source.charCodeAt(this.scanner.index+2),o=46===r&&46===s?"...":".";return n=this.scanner.index,this.scanner.index+=o.length,{type:7,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(96===t)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(t)&&92!==t){for(n=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},n.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var t=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(t)),t},n.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var t=this.scanner.index,n="";!this.scanner.eof();){var a=this.scanner.source[this.scanner.index];if("{"===a||"<"===a)break;++this.scanner.index,n+=a,i.Character.isLineTerminator(a.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===a&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var e={type:101,value:n,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index};return n.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(e)),e},n.prototype.peekJSXToken=function(){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.lexJSX();return this.scanner.restoreState(t),n},n.prototype.expectJSX=function(t){var n=this.nextJSXToken();7===n.type&&n.value===t||this.throwUnexpectedToken(n)},n.prototype.matchJSX=function(t){var n=this.peekJSXToken();return 7===n.type&&n.value===t},n.prototype.parseJSXIdentifier=function(){var t=this.createJSXNode(),n=this.nextJSXToken();return 100!==n.type&&this.throwUnexpectedToken(n),this.finalize(t,new s.JSXIdentifier(n.value))},n.prototype.parseJSXElementName=function(){var t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var a=n;this.expectJSX(":");var e=this.parseJSXIdentifier();n=this.finalize(t,new s.JSXNamespacedName(a,e))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=n;this.expectJSX(".");var i=this.parseJSXIdentifier();n=this.finalize(t,new s.JSXMemberExpression(r,i))}return n},n.prototype.parseJSXAttributeName=function(){var t,n=this.createJSXNode(),a=this.parseJSXIdentifier();if(this.matchJSX(":")){var e=a;this.expectJSX(":");var r=this.parseJSXIdentifier();t=this.finalize(n,new s.JSXNamespacedName(e,r))}else t=a;return t},n.prototype.parseJSXStringLiteralAttribute=function(){var t=this.createJSXNode(),n=this.nextJSXToken();8!==n.type&&this.throwUnexpectedToken(n);var a=this.getTokenRaw(n);return this.finalize(t,new u.Literal(n.value,a))},n.prototype.parseJSXExpressionAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var n=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXExpressionContainer(n))},n.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},n.prototype.parseJSXNameValueAttribute=function(){var t=this.createJSXNode(),n=this.parseJSXAttributeName(),a=null;return this.matchJSX("=")&&(this.expectJSX("="),a=this.parseJSXAttributeValue()),this.finalize(t,new s.JSXAttribute(n,a))},n.prototype.parseJSXSpreadAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var n=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXSpreadAttribute(n))},n.prototype.parseJSXAttributes=function(){for(var t=[];!this.matchJSX("/")&&!this.matchJSX(">");){var n=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();t.push(n)}return t},n.prototype.parseJSXOpeningElement=function(){var t=this.createJSXNode();this.expectJSX("<");var n=this.parseJSXElementName(),a=this.parseJSXAttributes(),e=this.matchJSX("/");return e&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(n,e,a))},n.prototype.parseJSXBoundaryElement=function(){var t=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var n=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(t,new s.JSXClosingElement(n))}var a=this.parseJSXElementName(),e=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(a,r,e))},n.prototype.parseJSXEmptyExpression=function(){var t=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(t,new s.JSXEmptyExpression)},n.prototype.parseJSXExpressionContainer=function(){var t,n=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(t=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(n,new s.JSXExpressionContainer(t))},n.prototype.parseJSXChildren=function(){for(var t=[];!this.scanner.eof();){var n=this.createJSXChildNode(),a=this.nextJSXText();if(a.start<a.end){var e=this.getTokenRaw(a),r=this.finalize(n,new s.JSXText(a.value,e));t.push(r)}if("{"!==this.scanner.source[this.scanner.index])break;var i=this.parseJSXExpressionContainer();t.push(i)}return t},n.prototype.parseComplexJSXElement=function(t){for(var n=[];!this.scanner.eof();){t.children=t.children.concat(this.parseJSXChildren());var a=this.createJSXChildNode(),e=this.parseJSXBoundaryElement();if(e.type===o.JSXSyntax.JSXOpeningElement){var r=e;if(r.selfClosing){var i=this.finalize(a,new s.JSXElement(r,[],null));t.children.push(i)}else n.push(t),t={node:a,opening:r,closing:null,children:[]}}if(e.type===o.JSXSyntax.JSXClosingElement){t.closing=e;var u=L(t.opening.name);if(u!==L(t.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",u),!(n.length>0))break;i=this.finalize(t.node,new s.JSXElement(t.opening,t.children,t.closing)),(t=n[n.length-1]).children.push(i),n.pop()}}return t},n.prototype.parseJSXElement=function(){var t=this.createJSXNode(),n=this.parseJSXOpeningElement(),a=[],e=null;if(!n.selfClosing){var r=this.parseComplexJSXElement({node:t,opening:n,closing:e,children:a});a=r.children,e=r.closing}return this.finalize(t,new s.JSXElement(n,a,e))},n.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var t=this.parseJSXElement();return this.finishJSX(),t},n.prototype.isStartOfExpression=function(){return t.prototype.isStartOfExpression.call(this)||this.match("<")},n}(l.Parser);n.JSXParser=m},function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var a={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};n.Character={fromCodePoint:function(t){return t<65536?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&a.NonAsciiIdentifierStart.test(n.Character.fromCodePoint(t))},isIdentifierPart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&a.NonAsciiIdentifierPart.test(n.Character.fromCodePoint(t))},isDecimalDigit:function(t){return t>=48&&t<=57},isHexDigit:function(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102},isOctalDigit:function(t){return t>=48&&t<=55}}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(6),r=function(t){this.type=e.JSXSyntax.JSXClosingElement,this.name=t};n.JSXClosingElement=r;var i=function(t,n,a){this.type=e.JSXSyntax.JSXElement,this.openingElement=t,this.children=n,this.closingElement=a};n.JSXElement=i;var s=function(){this.type=e.JSXSyntax.JSXEmptyExpression};n.JSXEmptyExpression=s;var o=function(t){this.type=e.JSXSyntax.JSXExpressionContainer,this.expression=t};n.JSXExpressionContainer=o;var u=function(t){this.type=e.JSXSyntax.JSXIdentifier,this.name=t};n.JSXIdentifier=u;var l=function(t,n){this.type=e.JSXSyntax.JSXMemberExpression,this.object=t,this.property=n};n.JSXMemberExpression=l;var c=function(t,n){this.type=e.JSXSyntax.JSXAttribute,this.name=t,this.value=n};n.JSXAttribute=c;var d=function(t,n){this.type=e.JSXSyntax.JSXNamespacedName,this.namespace=t,this.name=n};n.JSXNamespacedName=d;var L=function(t,n,a){this.type=e.JSXSyntax.JSXOpeningElement,this.name=t,this.selfClosing=n,this.attributes=a};n.JSXOpeningElement=L;var m=function(t){this.type=e.JSXSyntax.JSXSpreadAttribute,this.argument=t};n.JSXSpreadAttribute=m;var h=function(t,n){this.type=e.JSXSyntax.JSXText,this.value=t,this.raw=n};n.JSXText=h},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(2),r=function(t){this.type=e.Syntax.ArrayExpression,this.elements=t};n.ArrayExpression=r;var i=function(t){this.type=e.Syntax.ArrayPattern,this.elements=t};n.ArrayPattern=i;var s=function(t,n,a){this.type=e.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=n,this.generator=!1,this.expression=a,this.async=!1};n.ArrowFunctionExpression=s;var o=function(t,n,a){this.type=e.Syntax.AssignmentExpression,this.operator=t,this.left=n,this.right=a};n.AssignmentExpression=o;var u=function(t,n){this.type=e.Syntax.AssignmentPattern,this.left=t,this.right=n};n.AssignmentPattern=u;var l=function(t,n,a){this.type=e.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=n,this.generator=!1,this.expression=a,this.async=!0};n.AsyncArrowFunctionExpression=l;var c=function(t,n,a){this.type=e.Syntax.FunctionDeclaration,this.id=t,this.params=n,this.body=a,this.generator=!1,this.expression=!1,this.async=!0};n.AsyncFunctionDeclaration=c;var d=function(t,n,a){this.type=e.Syntax.FunctionExpression,this.id=t,this.params=n,this.body=a,this.generator=!1,this.expression=!1,this.async=!0};n.AsyncFunctionExpression=d;var L=function(t){this.type=e.Syntax.AwaitExpression,this.argument=t};n.AwaitExpression=L;var m=function(t,n,a){var r="||"===t||"&&"===t;this.type=r?e.Syntax.LogicalExpression:e.Syntax.BinaryExpression,this.operator=t,this.left=n,this.right=a};n.BinaryExpression=m;var h=function(t){this.type=e.Syntax.BlockStatement,this.body=t};n.BlockStatement=h;var p=function(t){this.type=e.Syntax.BreakStatement,this.label=t};n.BreakStatement=p;var g=function(t,n){this.type=e.Syntax.CallExpression,this.callee=t,this.arguments=n};n.CallExpression=g;var f=function(t,n){this.type=e.Syntax.CatchClause,this.param=t,this.body=n};n.CatchClause=f;var b=function(t){this.type=e.Syntax.ClassBody,this.body=t};n.ClassBody=b;var y=function(t,n,a){this.type=e.Syntax.ClassDeclaration,this.id=t,this.superClass=n,this.body=a};n.ClassDeclaration=y;var k=function(t,n,a){this.type=e.Syntax.ClassExpression,this.id=t,this.superClass=n,this.body=a};n.ClassExpression=k;var v=function(t,n){this.type=e.Syntax.MemberExpression,this.computed=!0,this.object=t,this.property=n};n.ComputedMemberExpression=v;var w=function(t,n,a){this.type=e.Syntax.ConditionalExpression,this.test=t,this.consequent=n,this.alternate=a};n.ConditionalExpression=w;var D=function(t){this.type=e.Syntax.ContinueStatement,this.label=t};n.ContinueStatement=D;var A=function(){this.type=e.Syntax.DebuggerStatement};n.DebuggerStatement=A;var C=function(t,n){this.type=e.Syntax.ExpressionStatement,this.expression=t,this.directive=n};n.Directive=C;var N=function(t,n){this.type=e.Syntax.DoWhileStatement,this.body=t,this.test=n};n.DoWhileStatement=N;var x=function(){this.type=e.Syntax.EmptyStatement};n.EmptyStatement=x;var G=function(t){this.type=e.Syntax.ExportAllDeclaration,this.source=t};n.ExportAllDeclaration=G;var S=function(t){this.type=e.Syntax.ExportDefaultDeclaration,this.declaration=t};n.ExportDefaultDeclaration=S;var P=function(t,n,a){this.type=e.Syntax.ExportNamedDeclaration,this.declaration=t,this.specifiers=n,this.source=a};n.ExportNamedDeclaration=P;var M=function(t,n){this.type=e.Syntax.ExportSpecifier,this.exported=n,this.local=t};n.ExportSpecifier=M;var I=function(t){this.type=e.Syntax.ExpressionStatement,this.expression=t};n.ExpressionStatement=I;var E=function(t,n,a){this.type=e.Syntax.ForInStatement,this.left=t,this.right=n,this.body=a,this.each=!1};n.ForInStatement=E;var T=function(t,n,a){this.type=e.Syntax.ForOfStatement,this.left=t,this.right=n,this.body=a};n.ForOfStatement=T;var _=function(t,n,a,r){this.type=e.Syntax.ForStatement,this.init=t,this.test=n,this.update=a,this.body=r};n.ForStatement=_;var j=function(t,n,a,r){this.type=e.Syntax.FunctionDeclaration,this.id=t,this.params=n,this.body=a,this.generator=r,this.expression=!1,this.async=!1};n.FunctionDeclaration=j;var z=function(t,n,a,r){this.type=e.Syntax.FunctionExpression,this.id=t,this.params=n,this.body=a,this.generator=r,this.expression=!1,this.async=!1};n.FunctionExpression=z;var B=function(t){this.type=e.Syntax.Identifier,this.name=t};n.Identifier=B;var U=function(t,n,a){this.type=e.Syntax.IfStatement,this.test=t,this.consequent=n,this.alternate=a};n.IfStatement=U;var R=function(t,n){this.type=e.Syntax.ImportDeclaration,this.specifiers=t,this.source=n};n.ImportDeclaration=R;var F=function(t){this.type=e.Syntax.ImportDefaultSpecifier,this.local=t};n.ImportDefaultSpecifier=F;var q=function(t){this.type=e.Syntax.ImportNamespaceSpecifier,this.local=t};n.ImportNamespaceSpecifier=q;var O=function(t,n){this.type=e.Syntax.ImportSpecifier,this.local=t,this.imported=n};n.ImportSpecifier=O;var H=function(t,n){this.type=e.Syntax.LabeledStatement,this.label=t,this.body=n};n.LabeledStatement=H;var K=function(t,n){this.type=e.Syntax.Literal,this.value=t,this.raw=n};n.Literal=K;var V=function(t,n){this.type=e.Syntax.MetaProperty,this.meta=t,this.property=n};n.MetaProperty=V;var X=function(t,n,a,r,i){this.type=e.Syntax.MethodDefinition,this.key=t,this.computed=n,this.value=a,this.kind=r,this.static=i};n.MethodDefinition=X;var Z=function(t){this.type=e.Syntax.Program,this.body=t,this.sourceType="module"};n.Module=Z;var Y=function(t,n){this.type=e.Syntax.NewExpression,this.callee=t,this.arguments=n};n.NewExpression=Y;var W=function(t){this.type=e.Syntax.ObjectExpression,this.properties=t};n.ObjectExpression=W;var J=function(t){this.type=e.Syntax.ObjectPattern,this.properties=t};n.ObjectPattern=J;var Q=function(t,n,a,r,i,s){this.type=e.Syntax.Property,this.key=n,this.computed=a,this.value=r,this.kind=t,this.method=i,this.shorthand=s};n.Property=Q;var $=function(t,n,a,r){this.type=e.Syntax.Literal,this.value=t,this.raw=n,this.regex={pattern:a,flags:r}};n.RegexLiteral=$;var tt=function(t){this.type=e.Syntax.RestElement,this.argument=t};n.RestElement=tt;var nt=function(t){this.type=e.Syntax.ReturnStatement,this.argument=t};n.ReturnStatement=nt;var at=function(t){this.type=e.Syntax.Program,this.body=t,this.sourceType="script"};n.Script=at;var et=function(t){this.type=e.Syntax.SequenceExpression,this.expressions=t};n.SequenceExpression=et;var rt=function(t){this.type=e.Syntax.SpreadElement,this.argument=t};n.SpreadElement=rt;var it=function(t,n){this.type=e.Syntax.MemberExpression,this.computed=!1,this.object=t,this.property=n};n.StaticMemberExpression=it;var st=function(){this.type=e.Syntax.Super};n.Super=st;var ot=function(t,n){this.type=e.Syntax.SwitchCase,this.test=t,this.consequent=n};n.SwitchCase=ot;var ut=function(t,n){this.type=e.Syntax.SwitchStatement,this.discriminant=t,this.cases=n};n.SwitchStatement=ut;var lt=function(t,n){this.type=e.Syntax.TaggedTemplateExpression,this.tag=t,this.quasi=n};n.TaggedTemplateExpression=lt;var ct=function(t,n){this.type=e.Syntax.TemplateElement,this.value=t,this.tail=n};n.TemplateElement=ct;var dt=function(t,n){this.type=e.Syntax.TemplateLiteral,this.quasis=t,this.expressions=n};n.TemplateLiteral=dt;var Lt=function(){this.type=e.Syntax.ThisExpression};n.ThisExpression=Lt;var mt=function(t){this.type=e.Syntax.ThrowStatement,this.argument=t};n.ThrowStatement=mt;var ht=function(t,n,a){this.type=e.Syntax.TryStatement,this.block=t,this.handler=n,this.finalizer=a};n.TryStatement=ht;var pt=function(t,n){this.type=e.Syntax.UnaryExpression,this.operator=t,this.argument=n,this.prefix=!0};n.UnaryExpression=pt;var gt=function(t,n,a){this.type=e.Syntax.UpdateExpression,this.operator=t,this.argument=n,this.prefix=a};n.UpdateExpression=gt;var ft=function(t,n){this.type=e.Syntax.VariableDeclaration,this.declarations=t,this.kind=n};n.VariableDeclaration=ft;var bt=function(t,n){this.type=e.Syntax.VariableDeclarator,this.id=t,this.init=n};n.VariableDeclarator=bt;var yt=function(t,n){this.type=e.Syntax.WhileStatement,this.test=t,this.body=n};n.WhileStatement=yt;var kt=function(t,n){this.type=e.Syntax.WithStatement,this.object=t,this.body=n};n.WithStatement=kt;var vt=function(t,n){this.type=e.Syntax.YieldExpression,this.argument=t,this.delegate=n};n.YieldExpression=vt},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(9),r=a(10),i=a(11),s=a(7),o=a(12),u=a(2),l=a(13),c="ArrowParameterPlaceHolder",d=function(){function t(t,n,a){void 0===n&&(n={}),this.config={range:"boolean"==typeof n.range&&n.range,loc:"boolean"==typeof n.loc&&n.loc,source:null,tokens:"boolean"==typeof n.tokens&&n.tokens,comment:"boolean"==typeof n.comment&&n.comment,tolerant:"boolean"==typeof n.tolerant&&n.tolerant},this.config.loc&&n.source&&null!==n.source&&(this.config.source=String(n.source)),this.delegate=a,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new o.Scanner(t,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return t.prototype.throwError=function(t){var n=Array.prototype.slice.call(arguments,1),a=t.replace(/%(\d)/g,function(t,a){return e.assert(a<n.length,"Message reference must be in range"),n[a]}),r=this.lastMarker.index,i=this.lastMarker.line,s=this.lastMarker.column+1;throw this.errorHandler.createError(r,i,s,a)},t.prototype.tolerateError=function(t){var n=Array.prototype.slice.call(arguments,1),a=t.replace(/%(\d)/g,function(t,a){return e.assert(a<n.length,"Message reference must be in range"),n[a]}),r=this.lastMarker.index,i=this.scanner.lineNumber,s=this.lastMarker.column+1;this.errorHandler.tolerateError(r,i,s,a)},t.prototype.unexpectedTokenError=function(t,n){var a,e=n||i.Messages.UnexpectedToken;if(t?(n||(e=2===t.type?i.Messages.UnexpectedEOS:3===t.type?i.Messages.UnexpectedIdentifier:6===t.type?i.Messages.UnexpectedNumber:8===t.type?i.Messages.UnexpectedString:10===t.type?i.Messages.UnexpectedTemplate:i.Messages.UnexpectedToken,4===t.type&&(this.scanner.isFutureReservedWord(t.value)?e=i.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(t.value)&&(e=i.Messages.StrictReservedWord))),a=t.value):a="ILLEGAL",e=e.replace("%0",a),t&&"number"==typeof t.lineNumber){var r=t.start,s=t.lineNumber,o=this.lastMarker.index-this.lastMarker.column,u=t.start-o+1;return this.errorHandler.createError(r,s,u,e)}return r=this.lastMarker.index,s=this.lastMarker.line,u=this.lastMarker.column+1,this.errorHandler.createError(r,s,u,e)},t.prototype.throwUnexpectedToken=function(t,n){throw this.unexpectedTokenError(t,n)},t.prototype.tolerateUnexpectedToken=function(t,n){this.errorHandler.tolerate(this.unexpectedTokenError(t,n))},t.prototype.collectComments=function(){if(this.config.comment){var t=this.scanner.scanComments();if(t.length>0&&this.delegate)for(var n=0;n<t.length;++n){var a=t[n],e=void 0;e={type:a.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(a.slice[0],a.slice[1])},this.config.range&&(e.range=a.range),this.config.loc&&(e.loc=a.loc);var r={start:{line:a.loc.start.line,column:a.loc.start.column,offset:a.range[0]},end:{line:a.loc.end.line,column:a.loc.end.column,offset:a.range[1]}};this.delegate(e,r)}}else this.scanner.scanComments()},t.prototype.getTokenRaw=function(t){return this.scanner.source.slice(t.start,t.end)},t.prototype.convertToken=function(t){var n={type:l.TokenName[t.type],value:this.getTokenRaw(t)};if(this.config.range&&(n.range=[t.start,t.end]),this.config.loc&&(n.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===t.type){var a=t.pattern,e=t.flags;n.regex={pattern:a,flags:e}}return n},t.prototype.nextToken=function(){var t=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var n=this.scanner.lex();return this.hasLineTerminator=t.lineNumber!==n.lineNumber,n&&this.context.strict&&3===n.type&&this.scanner.isStrictModeReservedWord(n.value)&&(n.type=4),this.lookahead=n,this.config.tokens&&2!==n.type&&this.tokens.push(this.convertToken(n)),t},t.prototype.nextRegexToken=function(){this.collectComments();var t=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(t))),this.lookahead=t,this.nextToken(),t},t.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},t.prototype.startNode=function(t,n){void 0===n&&(n=0);var a=t.start-t.lineStart,e=t.lineNumber;return a<0&&(a+=n,e--),{index:t.start,line:e,column:a}},t.prototype.finalize=function(t,n){if(this.config.range&&(n.range=[t.index,this.lastMarker.index]),this.config.loc&&(n.loc={start:{line:t.line,column:t.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(n.loc.source=this.config.source)),this.delegate){var a={start:{line:t.line,column:t.column,offset:t.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(n,a)}return n},t.prototype.expect=function(t){var n=this.nextToken();7===n.type&&n.value===t||this.throwUnexpectedToken(n)},t.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var t=this.lookahead;7===t.type&&","===t.value?this.nextToken():7===t.type&&";"===t.value?(this.nextToken(),this.tolerateUnexpectedToken(t)):this.tolerateUnexpectedToken(t,i.Messages.UnexpectedToken)}else this.expect(",")},t.prototype.expectKeyword=function(t){var n=this.nextToken();4===n.type&&n.value===t||this.throwUnexpectedToken(n)},t.prototype.match=function(t){return 7===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchKeyword=function(t){return 4===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchContextualKeyword=function(t){return 3===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var t=this.lookahead.value;return"="===t||"*="===t||"**="===t||"/="===t||"%="===t||"+="===t||"-="===t||"<<="===t||">>="===t||">>>="===t||"&="===t||"^="===t||"|="===t},t.prototype.isolateCoverGrammar=function(t){var n=this.context.isBindingElement,a=this.context.isAssignmentTarget,e=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=t.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=n,this.context.isAssignmentTarget=a,this.context.firstCoverInitializedNameError=e,r},t.prototype.inheritCoverGrammar=function(t){var n=this.context.isBindingElement,a=this.context.isAssignmentTarget,e=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=t.call(this);return this.context.isBindingElement=this.context.isBindingElement&&n,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&a,this.context.firstCoverInitializedNameError=e||this.context.firstCoverInitializedNameError,r},t.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},t.prototype.parsePrimaryExpression=function(){var t,n,a,e=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(n.value,a));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.Literal("true"===n.value,a));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(null,a));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),a=this.getTokenRaw(n),t=this.finalize(e,new s.RegexLiteral(n.regex,a,n.pattern,n.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(e,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(e,new s.ThisExpression)):t=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},t.prototype.parseSpreadElement=function(){var t=this.createNode();this.expect("...");var n=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(t,new s.SpreadElement(n))},t.prototype.parseArrayInitializer=function(){var t=this.createNode(),n=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else if(this.match("...")){var a=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),n.push(a)}else n.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(t,new s.ArrayExpression(n))},t.prototype.parsePropertyMethod=function(t){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=this.context.strict,a=this.context.allowStrictDirective;this.context.allowStrictDirective=t.simple;var e=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&t.firstRestricted&&this.tolerateUnexpectedToken(t.firstRestricted,t.message),this.context.strict&&t.stricted&&this.tolerateUnexpectedToken(t.stricted,t.message),this.context.strict=n,this.context.allowStrictDirective=a,e},t.prototype.parsePropertyMethodFunction=function(){var t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var a=this.parseFormalParameters(),e=this.parsePropertyMethod(a);return this.context.allowYield=n,this.finalize(t,new s.FunctionExpression(null,a.params,e,!1))},t.prototype.parsePropertyMethodAsyncFunction=function(){var t=this.createNode(),n=this.context.allowYield,a=this.context.await;this.context.allowYield=!1,this.context.await=!0;var e=this.parseFormalParameters(),r=this.parsePropertyMethod(e);return this.context.allowYield=n,this.context.await=a,this.finalize(t,new s.AsyncFunctionExpression(null,e.params,r))},t.prototype.parseObjectPropertyKey=function(){var t,n=this.createNode(),a=this.nextToken();switch(a.type){case 8:case 6:this.context.strict&&a.octal&&this.tolerateUnexpectedToken(a,i.Messages.StrictOctalLiteral);var e=this.getTokenRaw(a);t=this.finalize(n,new s.Literal(a.value,e));break;case 3:case 1:case 5:case 4:t=this.finalize(n,new s.Identifier(a.value));break;case 7:"["===a.value?(t=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):t=this.throwUnexpectedToken(a);break;default:t=this.throwUnexpectedToken(a)}return t},t.prototype.isPropertyKey=function(t,n){return t.type===u.Syntax.Identifier&&t.name===n||t.type===u.Syntax.Literal&&t.value===n},t.prototype.parseObjectProperty=function(t){var n,a=this.createNode(),e=this.lookahead,r=null,o=null,u=!1,l=!1,c=!1,d=!1;if(3===e.type){var L=e.value;this.nextToken(),u=this.match("["),r=(d=!(this.hasLineTerminator||"async"!==L||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(a,new s.Identifier(L))}else this.match("*")?this.nextToken():(u=this.match("["),r=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===e.type&&!d&&"get"===e.value&&m)n="get",u=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod();else if(3===e.type&&!d&&"set"===e.value&&m)n="set",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseSetterMethod();else if(7===e.type&&"*"===e.value&&m)n="init",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),l=!0;else if(r||this.throwUnexpectedToken(this.lookahead),n="init",this.match(":")&&!d)!u&&this.isPropertyKey(r,"__proto__")&&(t.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),t.value=!0),this.nextToken(),o=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))o=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===e.type)if(L=this.finalize(a,new s.Identifier(e.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(a,new s.AssignmentPattern(L,h))}else c=!0,o=L;else this.throwUnexpectedToken(this.nextToken());return this.finalize(a,new s.Property(n,r,u,o,l,c))},t.prototype.parseObjectInitializer=function(){var t=this.createNode();this.expect("{");for(var n=[],a={value:!1};!this.match("}");)n.push(this.parseObjectProperty(a)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(t,new s.ObjectExpression(n))},t.prototype.parseTemplateHead=function(){e.assert(this.lookahead.head,"Template literal must start with a template head");var t=this.createNode(),n=this.nextToken(),a=n.value,r=n.cooked;return this.finalize(t,new s.TemplateElement({raw:a,cooked:r},n.tail))},t.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var t=this.createNode(),n=this.nextToken(),a=n.value,e=n.cooked;return this.finalize(t,new s.TemplateElement({raw:a,cooked:e},n.tail))},t.prototype.parseTemplateLiteral=function(){var t=this.createNode(),n=[],a=[],e=this.parseTemplateHead();for(a.push(e);!e.tail;)n.push(this.parseExpression()),e=this.parseTemplateElement(),a.push(e);return this.finalize(t,new s.TemplateLiteral(a,n))},t.prototype.reinterpretExpressionAsPattern=function(t){switch(t.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:t.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(t.argument);break;case u.Syntax.ArrayExpression:t.type=u.Syntax.ArrayPattern;for(var n=0;n<t.elements.length;n++)null!==t.elements[n]&&this.reinterpretExpressionAsPattern(t.elements[n]);break;case u.Syntax.ObjectExpression:for(t.type=u.Syntax.ObjectPattern,n=0;n<t.properties.length;n++)this.reinterpretExpressionAsPattern(t.properties[n].value);break;case u.Syntax.AssignmentExpression:t.type=u.Syntax.AssignmentPattern,delete t.operator,this.reinterpretExpressionAsPattern(t.left)}},t.prototype.parseGroupExpression=function(){var t;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),t={type:c,params:[],async:!1};else{var n=this.lookahead,a=[];if(this.match("..."))t=this.parseRestElement(a),this.expect(")"),this.match("=>")||this.expect("=>"),t={type:c,params:[t],async:!1};else{var e=!1;if(this.context.isBindingElement=!0,t=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(t);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i<r.length;i++)this.reinterpretExpressionAsPattern(r[i]);e=!0,t={type:c,params:r,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),r.push(this.parseRestElement(a)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i<r.length;i++)this.reinterpretExpressionAsPattern(r[i]);e=!0,t={type:c,params:r,async:!1}}else r.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(e)break}e||(t=this.finalize(this.startNode(n),new s.SequenceExpression(r)))}if(!e){if(this.expect(")"),this.match("=>")&&(t.type===u.Syntax.Identifier&&"yield"===t.name&&(e=!0,t={type:c,params:[t],async:!1}),!e)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),t.type===u.Syntax.SequenceExpression)for(i=0;i<t.expressions.length;i++)this.reinterpretExpressionAsPattern(t.expressions[i]);else this.reinterpretExpressionAsPattern(t);var o=t.type===u.Syntax.SequenceExpression?t.expressions:[t];t={type:c,params:o,async:!1}}this.context.isBindingElement=!1}}}return t},t.prototype.parseArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var n=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(t.push(n),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.isIdentifierName=function(t){return 3===t.type||4===t.type||1===t.type||5===t.type},t.prototype.parseIdentifierName=function(){var t=this.createNode(),n=this.nextToken();return this.isIdentifierName(n)||this.throwUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},t.prototype.parseNewExpression=function(){var t,n=this.createNode(),a=this.parseIdentifierName();if(e.assert("new"===a.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var r=this.parseIdentifierName();t=new s.MetaProperty(a,r)}else this.throwUnexpectedToken(this.lookahead);else{var i=this.isolateCoverGrammar(this.parseLeftHandSideExpression),o=this.match("(")?this.parseArguments():[];t=new s.NewExpression(i,o),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(n,t)},t.prototype.parseAsyncArgument=function(){var t=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,t},t.prototype.parseAsyncArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var n=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(t.push(n),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.parseLeftHandSideExpressionAllowCall=function(){var t,n=this.lookahead,a=this.matchContextualKeyword("async"),e=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(t=this.createNode(),this.nextToken(),t=this.finalize(t,new s.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):t=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var r=this.parseIdentifierName();t=this.finalize(this.startNode(n),new s.StaticMemberExpression(t,r))}else if(this.match("(")){var i=a&&n.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var o=i?this.parseAsyncArguments():this.parseArguments();if(t=this.finalize(this.startNode(n),new s.CallExpression(t,o)),i&&this.match("=>")){for(var u=0;u<o.length;++u)this.reinterpretExpressionAsPattern(o[u]);t={type:c,params:o,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),r=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),t=this.finalize(this.startNode(n),new s.ComputedMemberExpression(t,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var l=this.parseTemplateLiteral();t=this.finalize(this.startNode(n),new s.TaggedTemplateExpression(t,l))}return this.context.allowIn=e,t},t.prototype.parseSuper=function(){var t=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(t,new s.Super)},t.prototype.parseLeftHandSideExpression=function(){e.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var t=this.startNode(this.lookahead),n=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var a=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),n=this.finalize(t,new s.ComputedMemberExpression(n,a))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),a=this.parseIdentifierName(),n=this.finalize(t,new s.StaticMemberExpression(n,a));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var r=this.parseTemplateLiteral();n=this.finalize(t,new s.TaggedTemplateExpression(n,r))}return n},t.prototype.parseUpdateExpression=function(){var t,n=this.lookahead;if(this.match("++")||this.match("--")){var a=this.startNode(n),e=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(i.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment);var r=!0;t=this.finalize(a,new s.UpdateExpression(e.value,t,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(t=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(i.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.nextToken().value;r=!1,t=this.finalize(this.startNode(n),new s.UpdateExpression(o,t,r))}return t},t.prototype.parseAwaitExpression=function(){var t=this.createNode();this.nextToken();var n=this.parseUnaryExpression();return this.finalize(t,new s.AwaitExpression(n))},t.prototype.parseUnaryExpression=function(){var t;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var n=this.startNode(this.lookahead),a=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),t=this.finalize(n,new s.UnaryExpression(a.value,t)),this.context.strict&&"delete"===t.operator&&t.argument.type===u.Syntax.Identifier&&this.tolerateError(i.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else t=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return t},t.prototype.parseExponentiationExpression=function(){var t=this.lookahead,n=this.inheritCoverGrammar(this.parseUnaryExpression);if(n.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=n,e=this.isolateCoverGrammar(this.parseExponentiationExpression);n=this.finalize(this.startNode(t),new s.BinaryExpression("**",a,e))}return n},t.prototype.binaryPrecedence=function(t){var n=t.value;return 7===t.type?this.operatorPrecedence[n]||0:4===t.type&&("instanceof"===n||this.context.allowIn&&"in"===n)?7:0},t.prototype.parseBinaryExpression=function(){var t=this.lookahead,n=this.inheritCoverGrammar(this.parseExponentiationExpression),a=this.lookahead,e=this.binaryPrecedence(a);if(e>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[t,this.lookahead],i=n,o=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[i,a.value,o],l=[e];!((e=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&e<=l[l.length-1];){o=u.pop();var c=u.pop();l.pop(),i=u.pop(),r.pop();var d=this.startNode(r[r.length-1]);u.push(this.finalize(d,new s.BinaryExpression(c,i,o)))}u.push(this.nextToken().value),l.push(e),r.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var L=u.length-1;n=u[L];for(var m=r.pop();L>1;){var h=r.pop(),p=m&&m.lineStart;d=this.startNode(h,p),c=u[L-1],n=this.finalize(d,new s.BinaryExpression(c,u[L-2],n)),L-=2,m=h}}return n},t.prototype.parseConditionalExpression=function(){var t=this.lookahead,n=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var a=this.context.allowIn;this.context.allowIn=!0;var e=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=a,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);n=this.finalize(this.startNode(t),new s.ConditionalExpression(n,e,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return n},t.prototype.checkPatternParam=function(t,n){switch(n.type){case u.Syntax.Identifier:this.validateParam(t,n,n.name);break;case u.Syntax.RestElement:this.checkPatternParam(t,n.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(t,n.left);break;case u.Syntax.ArrayPattern:for(var a=0;a<n.elements.length;a++)null!==n.elements[a]&&this.checkPatternParam(t,n.elements[a]);break;case u.Syntax.ObjectPattern:for(a=0;a<n.properties.length;a++)this.checkPatternParam(t,n.properties[a].value)}t.simple=t.simple&&n instanceof s.Identifier},t.prototype.reinterpretAsCoverFormalsList=function(t){var n,a=[t],e=!1;switch(t.type){case u.Syntax.Identifier:break;case c:a=t.params,e=t.async;break;default:return null}n={simple:!0,paramSet:{}};for(var r=0;r<a.length;++r)(s=a[r]).type===u.Syntax.AssignmentPattern?s.right.type===u.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=u.Syntax.Identifier,s.right.name="yield",delete s.right.argument,delete s.right.delegate):e&&s.type===u.Syntax.Identifier&&"await"===s.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(n,s),a[r]=s;if(this.context.strict||!this.context.allowYield)for(r=0;r<a.length;++r){var s;(s=a[r]).type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(n.message===i.Messages.StrictParamDupe){var o=this.context.strict?n.stricted:n.firstRestricted;this.throwUnexpectedToken(o,n.message)}return{simple:n.simple,params:a,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},t.prototype.parseAssignmentExpression=function(){var t;if(!this.context.allowYield&&this.matchKeyword("yield"))t=this.parseYieldExpression();else{var n=this.lookahead,a=n;if(t=this.parseConditionalExpression(),3===a.type&&a.lineNumber===this.lookahead.lineNumber&&"async"===a.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var e=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(e),t={type:c,params:[e],async:!0}}if(t.type===c||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=t.async,o=this.reinterpretAsCoverFormalsList(t);if(o){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=o.simple;var L=this.context.allowYield,m=this.context.await;this.context.allowYield=!0,this.context.await=r;var h=this.startNode(n);this.expect("=>");var p=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,p=this.parseFunctionSourceElements(),this.context.allowIn=g}else p=this.isolateCoverGrammar(this.parseAssignmentExpression);var f=p.type!==u.Syntax.BlockStatement;this.context.strict&&o.firstRestricted&&this.throwUnexpectedToken(o.firstRestricted,o.message),this.context.strict&&o.stricted&&this.tolerateUnexpectedToken(o.stricted,o.message),t=r?this.finalize(h,new s.AsyncArrowFunctionExpression(o.params,p,f)):this.finalize(h,new s.ArrowFunctionExpression(o.params,p,f)),this.context.strict=l,this.context.allowStrictDirective=d,this.context.allowYield=L,this.context.await=m}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&t.type===u.Syntax.Identifier){var b=t;this.scanner.isRestrictedWord(b.name)&&this.tolerateUnexpectedToken(a,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(b.name)&&this.tolerateUnexpectedToken(a,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(t):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var y=(a=this.nextToken()).value,k=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(n),new s.AssignmentExpression(y,t,k)),this.context.firstCoverInitializedNameError=null}}return t},t.prototype.parseExpression=function(){var t=this.lookahead,n=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var a=[];for(a.push(n);2!==this.lookahead.type&&this.match(",");)this.nextToken(),a.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(t),new s.SequenceExpression(a))}return n},t.prototype.parseStatementListItem=function(){var t;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),t=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),t=this.parseImportDeclaration();break;case"const":t=this.parseLexicalDeclaration({inFor:!1});break;case"function":t=this.parseFunctionDeclaration();break;case"class":t=this.parseClassDeclaration();break;case"let":t=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:t=this.parseStatement()}else t=this.parseStatement();return t},t.prototype.parseBlock=function(){var t=this.createNode();this.expect("{");for(var n=[];!this.match("}");)n.push(this.parseStatementListItem());return this.expect("}"),this.finalize(t,new s.BlockStatement(n))},t.prototype.parseLexicalBinding=function(t,n){var a=this.createNode(),e=this.parsePattern([],t);this.context.strict&&e.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===t?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!n.inFor&&e.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(a,new s.VariableDeclarator(e,r))},t.prototype.parseBindingList=function(t,n){for(var a=[this.parseLexicalBinding(t,n)];this.match(",");)this.nextToken(),a.push(this.parseLexicalBinding(t,n));return a},t.prototype.isLexicalDeclaration=function(){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();return this.scanner.restoreState(t),3===n.type||7===n.type&&"["===n.value||7===n.type&&"{"===n.value||4===n.type&&"let"===n.value||4===n.type&&"yield"===n.value},t.prototype.parseLexicalDeclaration=function(t){var n=this.createNode(),a=this.nextToken().value;e.assert("let"===a||"const"===a,"Lexical declaration must be either let or const");var r=this.parseBindingList(a,t);return this.consumeSemicolon(),this.finalize(n,new s.VariableDeclaration(r,a))},t.prototype.parseBindingRestElement=function(t,n){var a=this.createNode();this.expect("...");var e=this.parsePattern(t,n);return this.finalize(a,new s.RestElement(e))},t.prototype.parseArrayPattern=function(t,n){var a=this.createNode();this.expect("[");for(var e=[];!this.match("]");)if(this.match(","))this.nextToken(),e.push(null);else{if(this.match("...")){e.push(this.parseBindingRestElement(t,n));break}e.push(this.parsePatternWithDefault(t,n)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(a,new s.ArrayPattern(e))},t.prototype.parsePropertyPattern=function(t,n){var a,e,r=this.createNode(),i=!1,o=!1;if(3===this.lookahead.type){var u=this.lookahead;a=this.parseVariableIdentifier();var l=this.finalize(r,new s.Identifier(u.value));if(this.match("=")){t.push(u),o=!0,this.nextToken();var c=this.parseAssignmentExpression();e=this.finalize(this.startNode(u),new s.AssignmentPattern(l,c))}else this.match(":")?(this.expect(":"),e=this.parsePatternWithDefault(t,n)):(t.push(u),o=!0,e=l)}else i=this.match("["),a=this.parseObjectPropertyKey(),this.expect(":"),e=this.parsePatternWithDefault(t,n);return this.finalize(r,new s.Property("init",a,i,e,!1,o))},t.prototype.parseObjectPattern=function(t,n){var a=this.createNode(),e=[];for(this.expect("{");!this.match("}");)e.push(this.parsePropertyPattern(t,n)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(a,new s.ObjectPattern(e))},t.prototype.parsePattern=function(t,n){var a;return this.match("[")?a=this.parseArrayPattern(t,n):this.match("{")?a=this.parseObjectPattern(t,n):(!this.matchKeyword("let")||"const"!==n&&"let"!==n||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),t.push(this.lookahead),a=this.parseVariableIdentifier(n)),a},t.prototype.parsePatternWithDefault=function(t,n){var a=this.lookahead,e=this.parsePattern(t,n);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,e=this.finalize(this.startNode(a),new s.AssignmentPattern(e,i))}return e},t.prototype.parseVariableIdentifier=function(t){var n=this.createNode(),a=this.nextToken();return 4===a.type&&"yield"===a.value?this.context.strict?this.tolerateUnexpectedToken(a,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(a):3!==a.type?this.context.strict&&4===a.type&&this.scanner.isStrictModeReservedWord(a.value)?this.tolerateUnexpectedToken(a,i.Messages.StrictReservedWord):(this.context.strict||"let"!==a.value||"var"!==t)&&this.throwUnexpectedToken(a):(this.context.isModule||this.context.await)&&3===a.type&&"await"===a.value&&this.tolerateUnexpectedToken(a),this.finalize(n,new s.Identifier(a.value))},t.prototype.parseVariableDeclaration=function(t){var n=this.createNode(),a=this.parsePattern([],"var");this.context.strict&&a.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(a.name)&&this.tolerateError(i.Messages.StrictVarName);var e=null;return this.match("=")?(this.nextToken(),e=this.isolateCoverGrammar(this.parseAssignmentExpression)):a.type===u.Syntax.Identifier||t.inFor||this.expect("="),this.finalize(n,new s.VariableDeclarator(a,e))},t.prototype.parseVariableDeclarationList=function(t){var n={inFor:t.inFor},a=[];for(a.push(this.parseVariableDeclaration(n));this.match(",");)this.nextToken(),a.push(this.parseVariableDeclaration(n));return a},t.prototype.parseVariableStatement=function(){var t=this.createNode();this.expectKeyword("var");var n=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(n,"var"))},t.prototype.parseEmptyStatement=function(){var t=this.createNode();return this.expect(";"),this.finalize(t,new s.EmptyStatement)},t.prototype.parseExpressionStatement=function(){var t=this.createNode(),n=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ExpressionStatement(n))},t.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},t.prototype.parseIfStatement=function(){var t,n=this.createNode(),a=null;this.expectKeyword("if"),this.expect("(");var e=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),a=this.parseIfClause())),this.finalize(n,new s.IfStatement(e,t,a))},t.prototype.parseDoWhileStatement=function(){var t=this.createNode();this.expectKeyword("do");var n=this.context.inIteration;this.context.inIteration=!0;var a=this.parseStatement();this.context.inIteration=n,this.expectKeyword("while"),this.expect("(");var e=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(t,new s.DoWhileStatement(a,e))},t.prototype.parseWhileStatement=function(){var t,n=this.createNode();this.expectKeyword("while"),this.expect("(");var a=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var e=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=e}return this.finalize(n,new s.WhileStatement(a,t))},t.prototype.parseForStatement=function(){var t,n,a,e=null,r=null,o=null,l=!0,c=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){e=this.createNode(),this.nextToken();var d=this.context.allowIn;this.context.allowIn=!1;var L=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=d,1===L.length&&this.matchKeyword("in")){var m=L[0];m.init&&(m.id.type===u.Syntax.ArrayPattern||m.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),e=this.finalize(e,new s.VariableDeclaration(L,"var")),this.nextToken(),t=e,n=this.parseExpression(),e=null}else 1===L.length&&null===L[0].init&&this.matchContextualKeyword("of")?(e=this.finalize(e,new s.VariableDeclaration(L,"var")),this.nextToken(),t=e,n=this.parseAssignmentExpression(),e=null,l=!1):(e=this.finalize(e,new s.VariableDeclaration(L,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){e=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(d=this.context.allowIn,this.context.allowIn=!1,L=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=d,1===L.length&&null===L[0].init&&this.matchKeyword("in")?(e=this.finalize(e,new s.VariableDeclaration(L,h)),this.nextToken(),t=e,n=this.parseExpression(),e=null):1===L.length&&null===L[0].init&&this.matchContextualKeyword("of")?(e=this.finalize(e,new s.VariableDeclaration(L,h)),this.nextToken(),t=e,n=this.parseAssignmentExpression(),e=null,l=!1):(this.consumeSemicolon(),e=this.finalize(e,new s.VariableDeclaration(L,h)))):(e=this.finalize(e,new s.Identifier(h)),this.nextToken(),t=e,n=this.parseExpression(),e=null)}else{var p=this.lookahead;if(d=this.context.allowIn,this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=d,this.matchKeyword("in"))this.context.isAssignmentTarget&&e.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),t=e,n=this.parseExpression(),e=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&e.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),t=e,n=this.parseAssignmentExpression(),e=null,l=!1;else{if(this.match(",")){for(var g=[e];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(p),new s.SequenceExpression(g))}this.expect(";")}}if(void 0===t&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(o=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),a=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var f=this.context.inIteration;this.context.inIteration=!0,a=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=f}return void 0===t?this.finalize(c,new s.ForStatement(e,r,o,a)):l?this.finalize(c,new s.ForInStatement(t,n,a)):this.finalize(c,new s.ForOfStatement(t,n,a))},t.prototype.parseContinueStatement=function(){var t=this.createNode();this.expectKeyword("continue");var n=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var a=this.parseVariableIdentifier();n=a;var e="$"+a.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,e)||this.throwError(i.Messages.UnknownLabel,a.name)}return this.consumeSemicolon(),null!==n||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(t,new s.ContinueStatement(n))},t.prototype.parseBreakStatement=function(){var t=this.createNode();this.expectKeyword("break");var n=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var a=this.parseVariableIdentifier(),e="$"+a.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,e)||this.throwError(i.Messages.UnknownLabel,a.name),n=a}return this.consumeSemicolon(),null!==n||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(t,new s.BreakStatement(n))},t.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var t=this.createNode();this.expectKeyword("return");var n=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ReturnStatement(n))},t.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var t,n=this.createNode();this.expectKeyword("with"),this.expect("(");var a=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(n,new s.WithStatement(a,t))},t.prototype.parseSwitchCase=function(){var t,n=this.createNode();this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var a=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)a.push(this.parseStatementListItem());return this.finalize(n,new s.SwitchCase(t,a))},t.prototype.parseSwitchStatement=function(){var t=this.createNode();this.expectKeyword("switch"),this.expect("(");var n=this.parseExpression();this.expect(")");var a=this.context.inSwitch;this.context.inSwitch=!0;var e=[],r=!1;for(this.expect("{");!this.match("}");){var o=this.parseSwitchCase();null===o.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),e.push(o)}return this.expect("}"),this.context.inSwitch=a,this.finalize(t,new s.SwitchStatement(n,e))},t.prototype.parseLabelledStatement=function(){var t,n=this.createNode(),a=this.parseExpression();if(a.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var e=a,r="$"+e.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",e.name),this.context.labelSet[r]=!0;var o=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),o=this.parseClassDeclaration();else if(this.matchKeyword("function")){var l=this.lookahead,c=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,i.Messages.StrictFunction):c.generator&&this.tolerateUnexpectedToken(l,i.Messages.GeneratorInLegacyContext),o=c}else o=this.parseStatement();delete this.context.labelSet[r],t=new s.LabeledStatement(e,o)}else this.consumeSemicolon(),t=new s.ExpressionStatement(a);return this.finalize(n,t)},t.prototype.parseThrowStatement=function(){var t=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var n=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ThrowStatement(n))},t.prototype.parseCatchClause=function(){var t=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var n=[],a=this.parsePattern(n),e={},r=0;r<n.length;r++){var o="$"+n[r].value;Object.prototype.hasOwnProperty.call(e,o)&&this.tolerateError(i.Messages.DuplicateBinding,n[r].value),e[o]=!0}this.context.strict&&a.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(a.name)&&this.tolerateError(i.Messages.StrictCatchVariable),this.expect(")");var l=this.parseBlock();return this.finalize(t,new s.CatchClause(a,l))},t.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},t.prototype.parseTryStatement=function(){var t=this.createNode();this.expectKeyword("try");var n=this.parseBlock(),a=this.matchKeyword("catch")?this.parseCatchClause():null,e=this.matchKeyword("finally")?this.parseFinallyClause():null;return a||e||this.throwError(i.Messages.NoCatchOrFinally),this.finalize(t,new s.TryStatement(n,a,e))},t.prototype.parseDebuggerStatement=function(){var t=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(t,new s.DebuggerStatement)},t.prototype.parseStatement=function(){var t;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:t=this.parseExpressionStatement();break;case 7:var n=this.lookahead.value;t="{"===n?this.parseBlock():"("===n?this.parseExpressionStatement():";"===n?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:t=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":t=this.parseBreakStatement();break;case"continue":t=this.parseContinueStatement();break;case"debugger":t=this.parseDebuggerStatement();break;case"do":t=this.parseDoWhileStatement();break;case"for":t=this.parseForStatement();break;case"function":t=this.parseFunctionDeclaration();break;case"if":t=this.parseIfStatement();break;case"return":t=this.parseReturnStatement();break;case"switch":t=this.parseSwitchStatement();break;case"throw":t=this.parseThrowStatement();break;case"try":t=this.parseTryStatement();break;case"var":t=this.parseVariableStatement();break;case"while":t=this.parseWhileStatement();break;case"with":t=this.parseWithStatement();break;default:t=this.parseExpressionStatement()}break;default:t=this.throwUnexpectedToken(this.lookahead)}return t},t.prototype.parseFunctionSourceElements=function(){var t=this.createNode();this.expect("{");var n=this.parseDirectivePrologues(),a=this.context.labelSet,e=this.context.inIteration,r=this.context.inSwitch,i=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)n.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=a,this.context.inIteration=e,this.context.inSwitch=r,this.context.inFunctionBody=i,this.finalize(t,new s.BlockStatement(n))},t.prototype.validateParam=function(t,n,a){var e="$"+a;this.context.strict?(this.scanner.isRestrictedWord(a)&&(t.stricted=n,t.message=i.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(t.paramSet,e)&&(t.stricted=n,t.message=i.Messages.StrictParamDupe)):t.firstRestricted||(this.scanner.isRestrictedWord(a)?(t.firstRestricted=n,t.message=i.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(a)?(t.firstRestricted=n,t.message=i.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(t.paramSet,e)&&(t.stricted=n,t.message=i.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(t.paramSet,e,{value:!0,enumerable:!0,writable:!0,configurable:!0}):t.paramSet[e]=!0},t.prototype.parseRestElement=function(t){var n=this.createNode();this.expect("...");var a=this.parsePattern(t);return this.match("=")&&this.throwError(i.Messages.DefaultRestParameter),this.match(")")||this.throwError(i.Messages.ParameterAfterRestParameter),this.finalize(n,new s.RestElement(a))},t.prototype.parseFormalParameter=function(t){for(var n=[],a=this.match("...")?this.parseRestElement(n):this.parsePatternWithDefault(n),e=0;e<n.length;e++)this.validateParam(t,n[e],n[e].value);t.simple=t.simple&&a instanceof s.Identifier,t.params.push(a)},t.prototype.parseFormalParameters=function(t){var n;if(n={simple:!0,params:[],firstRestricted:t},this.expect("("),!this.match(")"))for(n.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(n),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:n.simple,params:n.params,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},t.prototype.matchAsyncFunction=function(){var t=this.matchContextualKeyword("async");if(t){var n=this.scanner.saveState();this.scanner.scanComments();var a=this.scanner.lex();this.scanner.restoreState(n),t=n.lineNumber===a.lineNumber&&4===a.type&&"function"===a.value}return t},t.prototype.parseFunctionDeclaration=function(t){var n=this.createNode(),a=this.matchContextualKeyword("async");a&&this.nextToken(),this.expectKeyword("function");var e,r=!a&&this.match("*");r&&this.nextToken();var o=null,u=null;if(!t||!this.match("(")){var l=this.lookahead;o=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,i.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(u=l,e=i.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(u=l,e=i.Messages.StrictReservedWord)}var c=this.context.await,d=this.context.allowYield;this.context.await=a,this.context.allowYield=!r;var L=this.parseFormalParameters(u),m=L.params,h=L.stricted;u=L.firstRestricted,L.message&&(e=L.message);var p=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=L.simple;var f=this.parseFunctionSourceElements();return this.context.strict&&u&&this.throwUnexpectedToken(u,e),this.context.strict&&h&&this.tolerateUnexpectedToken(h,e),this.context.strict=p,this.context.allowStrictDirective=g,this.context.await=c,this.context.allowYield=d,a?this.finalize(n,new s.AsyncFunctionDeclaration(o,m,f)):this.finalize(n,new s.FunctionDeclaration(o,m,f,r))},t.prototype.parseFunctionExpression=function(){var t=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var a,e=!n&&this.match("*");e&&this.nextToken();var r,o=null,u=this.context.await,l=this.context.allowYield;if(this.context.await=n,this.context.allowYield=!e,!this.match("(")){var c=this.lookahead;o=this.context.strict||e||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,i.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(r=c,a=i.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(r=c,a=i.Messages.StrictReservedWord)}var d=this.parseFormalParameters(r),L=d.params,m=d.stricted;r=d.firstRestricted,d.message&&(a=d.message);var h=this.context.strict,p=this.context.allowStrictDirective;this.context.allowStrictDirective=d.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&r&&this.throwUnexpectedToken(r,a),this.context.strict&&m&&this.tolerateUnexpectedToken(m,a),this.context.strict=h,this.context.allowStrictDirective=p,this.context.await=u,this.context.allowYield=l,n?this.finalize(t,new s.AsyncFunctionExpression(o,L,g)):this.finalize(t,new s.FunctionExpression(o,L,g,e))},t.prototype.parseDirective=function(){var t=this.lookahead,n=this.createNode(),a=this.parseExpression(),e=a.type===u.Syntax.Literal?this.getTokenRaw(t).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(n,e?new s.Directive(a,e):new s.ExpressionStatement(a))},t.prototype.parseDirectivePrologues=function(){for(var t=null,n=[];;){var a=this.lookahead;if(8!==a.type)break;var e=this.parseDirective();n.push(e);var r=e.directive;if("string"!=typeof r)break;"use strict"===r?(this.context.strict=!0,t&&this.tolerateUnexpectedToken(t,i.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(a,i.Messages.IllegalLanguageModeDirective)):!t&&a.octal&&(t=a)}return n},t.prototype.qualifiedPropertyName=function(t){switch(t.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===t.value}return!1},t.prototype.parseGetterMethod=function(){var t=this.createNode(),n=!1,a=this.context.allowYield;this.context.allowYield=!0;var e=this.parseFormalParameters();e.params.length>0&&this.tolerateError(i.Messages.BadGetterArity);var r=this.parsePropertyMethod(e);return this.context.allowYield=a,this.finalize(t,new s.FunctionExpression(null,e.params,r,n))},t.prototype.parseSetterMethod=function(){var t=this.createNode(),n=!1,a=this.context.allowYield;this.context.allowYield=!0;var e=this.parseFormalParameters();1!==e.params.length?this.tolerateError(i.Messages.BadSetterArity):e.params[0]instanceof s.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var r=this.parsePropertyMethod(e);return this.context.allowYield=a,this.finalize(t,new s.FunctionExpression(null,e.params,r,n))},t.prototype.parseGeneratorMethod=function(){var t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var a=this.parseFormalParameters();this.context.allowYield=!1;var e=this.parsePropertyMethod(a);return this.context.allowYield=n,this.finalize(t,new s.FunctionExpression(null,a.params,e,!0))},t.prototype.isStartOfExpression=function(){var t=!0,n=this.lookahead.value;switch(this.lookahead.type){case 7:t="["===n||"("===n||"{"===n||"+"===n||"-"===n||"!"===n||"~"===n||"++"===n||"--"===n||"/"===n||"/="===n;break;case 4:t="class"===n||"delete"===n||"function"===n||"let"===n||"new"===n||"super"===n||"this"===n||"typeof"===n||"void"===n||"yield"===n}return t},t.prototype.parseYieldExpression=function(){var t=this.createNode();this.expectKeyword("yield");var n=null,a=!1;if(!this.hasLineTerminator){var e=this.context.allowYield;this.context.allowYield=!1,(a=this.match("*"))?(this.nextToken(),n=this.parseAssignmentExpression()):this.isStartOfExpression()&&(n=this.parseAssignmentExpression()),this.context.allowYield=e}return this.finalize(t,new s.YieldExpression(n,a))},t.prototype.parseClassElement=function(t){var n=this.lookahead,a=this.createNode(),e="",r=null,o=null,u=!1,l=!1,c=!1,d=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(n=this.lookahead,c=!0,u=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===n.type&&!this.hasLineTerminator&&"async"===n.value){var L=this.lookahead.value;":"!==L&&"("!==L&&"*"!==L&&(d=!0,n=this.lookahead,r=this.parseObjectPropertyKey(),3===n.type&&"constructor"===n.value&&this.tolerateUnexpectedToken(n,i.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===n.type?"get"===n.value&&m?(e="get",u=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod()):"set"===n.value&&m&&(e="set",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseSetterMethod()):7===n.type&&"*"===n.value&&m&&(e="init",u=this.match("["),r=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),l=!0),!e&&r&&this.match("(")&&(e="init",o=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),e||this.throwUnexpectedToken(this.lookahead),"init"===e&&(e="method"),u||(c&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(n,i.Messages.StaticPrototype),!c&&this.isPropertyKey(r,"constructor")&&(("method"!==e||!l||o&&o.generator)&&this.throwUnexpectedToken(n,i.Messages.ConstructorSpecialMethod),t.value?this.throwUnexpectedToken(n,i.Messages.DuplicateConstructor):t.value=!0,e="constructor")),this.finalize(a,new s.MethodDefinition(r,u,o,e,c))},t.prototype.parseClassElementList=function(){var t=[],n={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():t.push(this.parseClassElement(n));return this.expect("}"),t},t.prototype.parseClassBody=function(){var t=this.createNode(),n=this.parseClassElementList();return this.finalize(t,new s.ClassBody(n))},t.prototype.parseClassDeclaration=function(t){var n=this.createNode(),a=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var e=t&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=a,this.finalize(n,new s.ClassDeclaration(e,r,i))},t.prototype.parseClassExpression=function(){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var a=3===this.lookahead.type?this.parseVariableIdentifier():null,e=null;this.matchKeyword("extends")&&(this.nextToken(),e=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassExpression(a,e,r))},t.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var t=this.createNode(),n=this.parseDirectivePrologues();2!==this.lookahead.type;)n.push(this.parseStatementListItem());return this.finalize(t,new s.Module(n))},t.prototype.parseScript=function(){for(var t=this.createNode(),n=this.parseDirectivePrologues();2!==this.lookahead.type;)n.push(this.parseStatementListItem());return this.finalize(t,new s.Script(n))},t.prototype.parseModuleSpecifier=function(){var t=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var n=this.nextToken(),a=this.getTokenRaw(n);return this.finalize(t,new s.Literal(n.value,a))},t.prototype.parseImportSpecifier=function(){var t,n,a=this.createNode();return 3===this.lookahead.type?(n=t=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseVariableIdentifier())):(n=t=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),n=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(a,new s.ImportSpecifier(n,t))},t.prototype.parseNamedImports=function(){this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),t},t.prototype.parseImportDefaultSpecifier=function(){var t=this.createNode(),n=this.parseIdentifierName();return this.finalize(t,new s.ImportDefaultSpecifier(n))},t.prototype.parseImportNamespaceSpecifier=function(){var t=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var n=this.parseIdentifierName();return this.finalize(t,new s.ImportNamespaceSpecifier(n))},t.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var t,n=this.createNode();this.expectKeyword("import");var a=[];if(8===this.lookahead.type)t=this.parseModuleSpecifier();else{if(this.match("{")?a=a.concat(this.parseNamedImports()):this.match("*")?a.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(a.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?a.push(this.parseImportNamespaceSpecifier()):this.match("{")?a=a.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var e=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(e,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(n,new s.ImportDeclaration(a,t))},t.prototype.parseExportSpecifier=function(){var t=this.createNode(),n=this.parseIdentifierName(),a=n;return this.matchContextualKeyword("as")&&(this.nextToken(),a=this.parseIdentifierName()),this.finalize(t,new s.ExportSpecifier(n,a))},t.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var t,n=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var a=this.parseFunctionDeclaration(!0);t=this.finalize(n,new s.ExportDefaultDeclaration(a))}else this.matchKeyword("class")?(a=this.parseClassDeclaration(!0),t=this.finalize(n,new s.ExportDefaultDeclaration(a))):this.matchContextualKeyword("async")?(a=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),t=this.finalize(n,new s.ExportDefaultDeclaration(a))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),a=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),t=this.finalize(n,new s.ExportDefaultDeclaration(a)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var e=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(e,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(n,new s.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(a=void 0,this.lookahead.value){case"let":case"const":a=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":a=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(n,new s.ExportNamedDeclaration(a,[],null))}else if(this.matchAsyncFunction())a=this.parseFunctionDeclaration(),t=this.finalize(n,new s.ExportNamedDeclaration(a,[],null));else{var o=[],u=null,l=!1;for(this.expect("{");!this.match("}");)l=l||this.matchKeyword("default"),o.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon()):l?(e=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(e,this.lookahead.value)):this.consumeSemicolon(),t=this.finalize(n,new s.ExportNamedDeclaration(null,o,u))}return t},t}();n.Parser=d},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.assert=function(t,n){if(!t)throw new Error("ASSERT: "+n)}},function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(){this.errors=[],this.tolerant=!1}return t.prototype.recordError=function(t){this.errors.push(t)},t.prototype.tolerate=function(t){if(!this.tolerant)throw t;this.recordError(t)},t.prototype.constructError=function(t,n){var a=new Error(t);try{throw a}catch(t){Object.create&&Object.defineProperty&&(a=Object.create(t),Object.defineProperty(a,"column",{value:n}))}return a},t.prototype.createError=function(t,n,a,e){var r="Line "+n+": "+e,i=this.constructError(r,a);return i.index=t,i.lineNumber=n,i.description=e,i},t.prototype.throwError=function(t,n,a,e){throw this.createError(t,n,a,e)},t.prototype.tolerateError=function(t,n,a,e){var r=this.createError(t,n,a,e);if(!this.tolerant)throw r;this.recordError(r)},t}();n.ErrorHandler=a},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(9),r=a(4),i=a(11);function s(t){return"0123456789abcdef".indexOf(t.toLowerCase())}function o(t){return"01234567".indexOf(t)}var u=function(){function t(t,n){this.source=t,this.errorHandler=n,this.trackComment=!1,this.isModule=!1,this.length=t.length,this.index=0,this.lineNumber=t.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return t.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},t.prototype.restoreState=function(t){this.index=t.index,this.lineNumber=t.lineNumber,this.lineStart=t.lineStart},t.prototype.eof=function(){return this.index>=this.length},t.prototype.throwUnexpectedToken=function(t){return void 0===t&&(t=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.tolerateUnexpectedToken=function(t){void 0===t&&(t=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.skipSingleLineComment=function(t){var n,a,e=[];for(this.trackComment&&(e=[],n=this.index-t,a={start:{line:this.lineNumber,column:this.index-this.lineStart-t},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){a.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[n+t,this.index-1],range:[n,this.index-1],loc:a};e.push(s)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e}}return this.trackComment&&(a.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!1,slice:[n+t,this.index],range:[n,this.index],loc:a},e.push(s)),e},t.prototype.skipMultiLineComment=function(){var t,n,a=[];for(this.trackComment&&(a=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var e=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(e))13===e&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===e){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:n};a.push(i)}return a}++this.index}else++this.index}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:n},a.push(i)),this.tolerateUnexpectedToken(),a},t.prototype.scanComments=function(){var t;this.trackComment&&(t=[]);for(var n=0===this.index;!this.eof();){var a=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(a))++this.index;else if(r.Character.isLineTerminator(a))++this.index,13===a&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n=!0;else if(47===a)if(47===(a=this.source.charCodeAt(this.index+1))){this.index+=2;var e=this.skipSingleLineComment(2);this.trackComment&&(t=t.concat(e)),n=!0}else{if(42!==a)break;this.index+=2,e=this.skipMultiLineComment(),this.trackComment&&(t=t.concat(e))}else if(n&&45===a){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,e=this.skipSingleLineComment(3),this.trackComment&&(t=t.concat(e))}else{if(60!==a||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,e=this.skipSingleLineComment(4),this.trackComment&&(t=t.concat(e))}}return t},t.prototype.isFutureReservedWord=function(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}},t.prototype.isStrictModeReservedWord=function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},t.prototype.isRestrictedWord=function(t){return"eval"===t||"arguments"===t},t.prototype.isKeyword=function(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}},t.prototype.codePointAt=function(t){var n=this.source.charCodeAt(t);if(n>=55296&&n<=56319){var a=this.source.charCodeAt(t+1);a>=56320&&a<=57343&&(n=1024*(n-55296)+a-56320+65536)}return n},t.prototype.scanHexEscape=function(t){for(var n="u"===t?4:2,a=0,e=0;e<n;++e){if(this.eof()||!r.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;a=16*a+s(this.source[this.index++])}return String.fromCharCode(a)},t.prototype.scanUnicodeCodePointEscape=function(){var t=this.source[this.index],n=0;for("}"===t&&this.throwUnexpectedToken();!this.eof()&&(t=this.source[this.index++],r.Character.isHexDigit(t.charCodeAt(0)));)n=16*n+s(t);return(n>1114111||"}"!==t)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(n)},t.prototype.getIdentifier=function(){for(var t=this.index++;!this.eof();){var n=this.source.charCodeAt(this.index);if(92===n)return this.index=t,this.getComplexIdentifier();if(n>=55296&&n<57343)return this.index=t,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(n))break;++this.index}return this.source.slice(t,this.index)},t.prototype.getComplexIdentifier=function(){var t,n=this.codePointAt(this.index),a=r.Character.fromCodePoint(n);for(this.index+=a.length,92===n&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&r.Character.isIdentifierStart(t.charCodeAt(0))||this.throwUnexpectedToken(),a=t);!this.eof()&&(n=this.codePointAt(this.index),r.Character.isIdentifierPart(n));)a+=t=r.Character.fromCodePoint(n),this.index+=t.length,92===n&&(a=a.substr(0,a.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&r.Character.isIdentifierPart(t.charCodeAt(0))||this.throwUnexpectedToken(),a+=t);return a},t.prototype.octalToDecimal=function(t){var n="0"!==t,a=o(t);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=!0,a=8*a+o(this.source[this.index++]),"0123".indexOf(t)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(a=8*a+o(this.source[this.index++]))),{code:a,octal:n}},t.prototype.scanIdentifier=function(){var t,n=this.index,a=92===this.source.charCodeAt(n)?this.getComplexIdentifier():this.getIdentifier();if(3!=(t=1===a.length?3:this.isKeyword(a)?4:"null"===a?5:"true"===a||"false"===a?1:3)&&n+a.length!==this.index){var e=this.index;this.index=n,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=e}return{type:t,value:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},t.prototype.scanPunctuator=function(){var t=this.index,n=this.source[this.index];switch(n){case"(":case"{":"{"===n&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,n="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(n=this.source.substr(this.index,4))?this.index+=4:"==="===(n=n.substr(0,3))||"!=="===n||">>>"===n||"<<="===n||">>="===n||"**="===n?this.index+=3:"&&"===(n=n.substr(0,2))||"||"===n||"=="===n||"!="===n||"+="===n||"-="===n||"*="===n||"/="===n||"++"===n||"--"===n||"<<"===n||">>"===n||"&="===n||"|="===n||"^="===n||"%="===n||"<="===n||">="===n||"=>"===n||"**"===n?this.index+=2:(n=this.source[this.index],"<>=!+-*%&|^/".indexOf(n)>=0&&++this.index)}return this.index===t&&this.throwUnexpectedToken(),{type:7,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanHexLiteral=function(t){for(var n="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+n,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanBinaryLiteral=function(t){for(var n,a="";!this.eof()&&("0"===(n=this.source[this.index])||"1"===n);)a+=this.source[this.index++];return 0===a.length&&this.throwUnexpectedToken(),this.eof()||(n=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(n)||r.Character.isDecimalDigit(n))&&this.throwUnexpectedToken()),{type:6,value:parseInt(a,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanOctalLiteral=function(t,n){var a="",e=!1;for(r.Character.isOctalDigit(t.charCodeAt(0))?(e=!0,a="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];return e||0!==a.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(a,8),octal:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},t.prototype.isImplicitOctalLiteral=function(){for(var t=this.index+1;t<this.length;++t){var n=this.source[t];if("8"===n||"9"===n)return!1;if(!r.Character.isOctalDigit(n.charCodeAt(0)))return!0}return!0},t.prototype.scanNumericLiteral=function(){var t=this.index,n=this.source[t];e.assert(r.Character.isDecimalDigit(n.charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point");var a="";if("."!==n){if(a=this.source[this.index++],n=this.source[this.index],"0"===a){if("x"===n||"X"===n)return++this.index,this.scanHexLiteral(t);if("b"===n||"B"===n)return++this.index,this.scanBinaryLiteral(t);if("o"===n||"O"===n)return this.scanOctalLiteral(n,t);if(n&&r.Character.isOctalDigit(n.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(n,t)}for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];n=this.source[this.index]}if("."===n){for(a+=this.source[this.index++];r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];n=this.source[this.index]}if("e"===n||"E"===n)if(a+=this.source[this.index++],"+"!==(n=this.source[this.index])&&"-"!==n||(a+=this.source[this.index++]),r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];else this.throwUnexpectedToken();return r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(a),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanStringLiteral=function(){var t=this.index,n=this.source[t];e.assert("'"===n||'"'===n,"String literal must starts with a quote"),++this.index;for(var a=!1,s="";!this.eof();){var o=this.source[this.index++];if(o===n){n="";break}if("\\"===o)if((o=this.source[this.index++])&&r.Character.isLineTerminator(o.charCodeAt(0)))++this.lineNumber,"\r"===o&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(o){case"u":if("{"===this.source[this.index])++this.index,s+=this.scanUnicodeCodePointEscape();else{var u=this.scanHexEscape(o);null===u&&this.throwUnexpectedToken(),s+=u}break;case"x":var l=this.scanHexEscape(o);null===l&&this.throwUnexpectedToken(i.Messages.InvalidHexEscapeSequence),s+=l;break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;case"8":case"9":s+=o,this.tolerateUnexpectedToken();break;default:if(o&&r.Character.isOctalDigit(o.charCodeAt(0))){var c=this.octalToDecimal(o);a=c.octal||a,s+=String.fromCharCode(c.code)}else s+=o}else{if(r.Character.isLineTerminator(o.charCodeAt(0)))break;s+=o}}return""!==n&&(this.index=t,this.throwUnexpectedToken()),{type:8,value:s,octal:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanTemplate=function(){var t="",n=!1,a=this.index,e="`"===this.source[a],s=!1,o=2;for(++this.index;!this.eof();){var u=this.source[this.index++];if("`"===u){o=1,s=!0,n=!0;break}if("$"===u){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,n=!0;break}t+=u}else if("\\"===u)if(u=this.source[this.index++],r.Character.isLineTerminator(u.charCodeAt(0)))++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(u){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"u":if("{"===this.source[this.index])++this.index,t+=this.scanUnicodeCodePointEscape();else{var l=this.index,c=this.scanHexEscape(u);null!==c?t+=c:(this.index=l,t+=u)}break;case"x":var d=this.scanHexEscape(u);null===d&&this.throwUnexpectedToken(i.Messages.InvalidHexEscapeSequence),t+=d;break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:"0"===u?(r.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(i.Messages.TemplateOctalLiteral),t+="\0"):r.Character.isOctalDigit(u.charCodeAt(0))?this.throwUnexpectedToken(i.Messages.TemplateOctalLiteral):t+=u}else r.Character.isLineTerminator(u.charCodeAt(0))?(++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,t+="\n"):t+=u}return n||this.throwUnexpectedToken(),e||this.curlyStack.pop(),{type:10,value:this.source.slice(a+1,this.index-o),cooked:t,head:e,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}},t.prototype.testRegExp=function(t,n){var a=t,e=this;n.indexOf("u")>=0&&(a=a.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(t,n,a){var r=parseInt(n||a,16);return r>1114111&&e.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(a)}catch(t){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(t,n)}catch(t){return null}},t.prototype.scanRegExpBody=function(){var t=this.source[this.index];e.assert("/"===t,"Regular expression literal must start with a slash");for(var n=this.source[this.index++],a=!1,s=!1;!this.eof();)if(n+=t=this.source[this.index++],"\\"===t)t=this.source[this.index++],r.Character.isLineTerminator(t.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),n+=t;else if(r.Character.isLineTerminator(t.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(a)"]"===t&&(a=!1);else{if("/"===t){s=!0;break}"["===t&&(a=!0)}return s||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),n.substr(1,n.length-2)},t.prototype.scanRegExpFlags=function(){for(var t="";!this.eof();){var n=this.source[this.index];if(!r.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,"\\"!==n||this.eof())t+=n;else if("u"===(n=this.source[this.index])){++this.index;var a=this.index,e=this.scanHexEscape("u");if(null!==e)for(t+=e;a<this.index;++a)this.source[a];else this.index=a,t+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return t},t.prototype.scanRegExp=function(){var t=this.index,n=this.scanRegExpBody(),a=this.scanRegExpFlags();return{type:9,value:"",pattern:n,flags:a,regex:this.testRegExp(n,a),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var t=this.source.charCodeAt(this.index);return r.Character.isIdentifierStart(t)?this.scanIdentifier():40===t||41===t||59===t?this.scanPunctuator():39===t||34===t?this.scanStringLiteral():46===t?r.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():r.Character.isDecimalDigit(t)?this.scanNumericLiteral():96===t||125===t&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():t>=55296&&t<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},t}();n.Scanner=u},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenName={},n.TokenName[1]="Boolean",n.TokenName[2]="<end>",n.TokenName[3]="Identifier",n.TokenName[4]="Keyword",n.TokenName[5]="Null",n.TokenName[6]="Numeric",n.TokenName[7]="Punctuator",n.TokenName[8]="String",n.TokenName[9]="RegularExpression",n.TokenName[10]="Template"},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var e=a(10),r=a(12),i=a(13),s=function(){function t(){this.values=[],this.curly=this.paren=-1}return t.prototype.beforeFunctionExpression=function(t){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},t.prototype.isRegexStart=function(){var t=this.values[this.values.length-1],n=null!==t;switch(t){case"this":case"]":n=!1;break;case")":var a=this.values[this.paren-1];n="if"===a||"while"===a||"for"===a||"with"===a;break;case"}":if(n=!1,"function"===this.values[this.curly-3])n=!!(e=this.values[this.curly-4])&&!this.beforeFunctionExpression(e);else if("function"===this.values[this.curly-4]){var e;n=!(e=this.values[this.curly-5])||!this.beforeFunctionExpression(e)}}return n},t.prototype.push=function(t){7===t.type||4===t.type?("{"===t.value?this.curly=this.values.length:"("===t.value&&(this.paren=this.values.length),this.values.push(t.value)):this.values.push(null)},t}(),o=function(){function t(t,n){this.errorHandler=new e.ErrorHandler,this.errorHandler.tolerant=!!n&&"boolean"==typeof n.tolerant&&n.tolerant,this.scanner=new r.Scanner(t,this.errorHandler),this.scanner.trackComment=!!n&&"boolean"==typeof n.comment&&n.comment,this.trackRange=!!n&&"boolean"==typeof n.range&&n.range,this.trackLoc=!!n&&"boolean"==typeof n.loc&&n.loc,this.buffer=[],this.reader=new s}return t.prototype.errors=function(){return this.errorHandler.errors},t.prototype.getNextToken=function(){if(0===this.buffer.length){var t=this.scanner.scanComments();if(this.scanner.trackComment)for(var n=0;n<t.length;++n){var a=t[n],e=this.scanner.source.slice(a.slice[0],a.slice[1]),r={type:a.multiLine?"BlockComment":"LineComment",value:e};this.trackRange&&(r.range=a.range),this.trackLoc&&(r.loc=a.loc),this.buffer.push(r)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var o="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(o);var u={type:i.TokenName[o.type],value:this.scanner.source.slice(o.start,o.end)};if(this.trackRange&&(u.range=[o.start,o.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},u.loc=s),9===o.type){var l=o.pattern,c=o.flags;u.regex={pattern:l,flags:c}}this.buffer.push(u)}}return this.buffer.shift()},t}();n.Tokenizer=o}])},Br.exports=Ur()),Br.exports),qr=H(Fr),Or={};var Hr=(Rr||(Rr=1,function t(n){var a,e,r,i,s,o;function u(t){var n,a,e={};for(n in t)t.hasOwnProperty(n)&&("object"===f(a=t[n])&&null!==a?e[n]=u(a):e[n]=a);return e}function l(t,n){this.parent=t,this.key=n}function c(t,n,a,e){this.node=t,this.path=n,this.wrap=a,this.ref=e}function d(){}function L(t){return null!=t&&"object"===f(t)&&"string"==typeof t.type}function m(t,n){return(t===a.ObjectExpression||t===a.ObjectPattern)&&"properties"===n}function h(t,n){for(var a=t.length-1;a>=0;--a)if(t[a].node===n)return!0;return!1}function p(t,n){return(new d).traverse(t,n)}function g(t,n){var a;return a=function(t,n){var a,e,r,i;for(e=t.length,r=0;e;)n(t[i=r+(a=e>>>1)])?e=a:(r=i+1,e-=a+1);return r}(n,function(n){return n.range[0]>t.range[0]}),t.extendedRange=[t.range[0],t.range[1]],a!==n.length&&(t.extendedRange[1]=n[a].range[0]),(a-=1)>=0&&(t.extendedRange[0]=n[a].range[1]),t}return a={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},r={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e={Break:i={},Skip:s={},Remove:o={}},l.prototype.replace=function(t){this.parent[this.key]=t},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},d.prototype.path=function(){var t,n,a,e,r;function i(t,n){if(Array.isArray(n))for(a=0,e=n.length;a<e;++a)t.push(n[a]);else t.push(n)}if(!this.__current.path)return null;for(r=[],t=2,n=this.__leavelist.length;t<n;++t)i(r,this.__leavelist[t].path);return i(r,this.__current.path),r},d.prototype.type=function(){return this.current().type||this.__current.wrap},d.prototype.parents=function(){var t,n,a;for(a=[],t=1,n=this.__leavelist.length;t<n;++t)a.push(this.__leavelist[t].node);return a},d.prototype.current=function(){return this.__current.node},d.prototype.__execute=function(t,n){var a,e;return e=void 0,a=this.__current,this.__current=n,this.__state=null,t&&(e=t.call(this,n.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=a,e},d.prototype.notify=function(t){this.__state=t},d.prototype.skip=function(){this.notify(s)},d.prototype.break=function(){this.notify(i)},d.prototype.remove=function(){this.notify(o)},d.prototype.__initialize=function(t,n){this.visitor=n,this.root=t,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===n.fallback?this.__fallback=Object.keys:"function"==typeof n.fallback&&(this.__fallback=n.fallback),this.__keys=r,n.keys&&(this.__keys=Object.assign(Object.create(this.__keys),n.keys))},d.prototype.traverse=function(t,n){var a,e,r,o,u,l,d,p,g,f,b,y;for(this.__initialize(t,n),y={},a=this.__worklist,e=this.__leavelist,a.push(new c(t,null,null,null)),e.push(new c(null,null,null,null));a.length;)if((r=a.pop())!==y){if(r.node){if(l=this.__execute(n.enter,r),this.__state===i||l===i)return;if(a.push(y),e.push(r),this.__state===s||l===s)continue;if(u=(o=r.node).type||r.wrap,!(f=this.__keys[u])){if(!this.__fallback)throw new Error("Unknown node type "+u+".");f=this.__fallback(o)}for(p=f.length;(p-=1)>=0;)if(b=o[d=f[p]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(e,b[g])){if(m(u,f[p]))r=new c(b[g],[d,g],"Property",null);else{if(!L(b[g]))continue;r=new c(b[g],[d,g],null,null)}a.push(r)}}else if(L(b)){if(h(e,b))continue;a.push(new c(b,d,null,null))}}}else if(r=e.pop(),l=this.__execute(n.leave,r),this.__state===i||l===i)return},d.prototype.replace=function(t,n){var a,e,r,u,d,h,p,g,f,b,y,k,v;function w(t){var n,e,r,i;if(t.ref.remove())for(e=t.ref.key,i=t.ref.parent,n=a.length;n--;)if((r=a[n]).ref&&r.ref.parent===i){if(r.ref.key<e)break;--r.ref.key}}for(this.__initialize(t,n),y={},a=this.__worklist,e=this.__leavelist,h=new c(t,null,null,new l(k={root:t},"root")),a.push(h),e.push(h);a.length;)if((h=a.pop())!==y){if(void 0!==(d=this.__execute(n.enter,h))&&d!==i&&d!==s&&d!==o&&(h.ref.replace(d),h.node=d),this.__state!==o&&d!==o||(w(h),h.node=null),this.__state===i||d===i)return k.root;if((r=h.node)&&(a.push(y),e.push(h),this.__state!==s&&d!==s)){if(u=r.type||h.wrap,!(f=this.__keys[u])){if(!this.__fallback)throw new Error("Unknown node type "+u+".");f=this.__fallback(r)}for(p=f.length;(p-=1)>=0;)if(b=r[v=f[p]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(m(u,f[p]))h=new c(b[g],[v,g],"Property",new l(b,g));else{if(!L(b[g]))continue;h=new c(b[g],[v,g],null,new l(b,g))}a.push(h)}}else L(b)&&a.push(new c(b,v,null,new l(r,v)))}}else if(h=e.pop(),void 0!==(d=this.__execute(n.leave,h))&&d!==i&&d!==s&&d!==o&&h.ref.replace(d),this.__state!==o&&d!==o||w(h),this.__state===i||d===i)return k.root;return k.root},n.Syntax=a,n.traverse=p,n.replace=function(t,n){return(new d).replace(t,n)},n.attachComments=function(t,n,a){var r,i,s,o,l=[];if(!t.range)throw new Error("attachComments needs range information");if(!a.length){if(n.length){for(s=0,i=n.length;s<i;s+=1)(r=u(n[s])).extendedRange=[0,t.range[0]],l.push(r);t.leadingComments=l}return t}for(s=0,i=n.length;s<i;s+=1)l.push(g(u(n[s]),a));return o=0,p(t,{enter:function(t){for(var n;o<l.length&&!((n=l[o]).extendedRange[1]>t.range[0]);)n.extendedRange[1]===t.range[0]?(t.leadingComments||(t.leadingComments=[]),t.leadingComments.push(n),l.splice(o,1)):o+=1;return o===l.length?e.Break:l[o].extendedRange[0]>t.range[1]?e.Skip:void 0}}),o=0,p(t,{leave:function(t){for(var n;o<l.length&&(n=l[o],!(t.range[1]<n.extendedRange[0]));)t.range[1]===n.extendedRange[0]?(t.trailingComments||(t.trailingComments=[]),t.trailingComments.push(n),l.splice(o,1)):o+=1;return o===l.length?e.Break:l[o].extendedRange[0]>t.range[1]?e.Skip:void 0}}),t},n.VisitorKeys=r,n.VisitorOption=e,n.Controller=d,n.cloneEnvironment=function(){return t({})},n}(Or)),Or),Kr=H(Hr);function Vr(){if(!window._yttv)return setTimeout(Vr,250);if(!document.querySelector("video"))return setTimeout(Vr,250);var t=Object.keys(window._yttv).filter(t=>"function"==typeof window._yttv[t]&&window._yttv[t].toString().includes("TRANSPORT_CONTROLS_BUTTON_TYPE_FEATURED_ACTION"));if(0!==t.length){var n=window._yttv[t[0]];we("enablePatchingVideoPlayer")&&(a.prototype=n.prototype,window._yttv[t[0]]=a)}else setTimeout(Vr,250);function a(){var t,e=Array.prototype.slice.call(arguments),r=/^class\s/.test(n.toString());function i(t,e){return"undefined"!=typeof Reflect&&"function"==typeof Reflect.construct?Reflect.construct(t,e,a):new n(...e)}if(!(this instanceof a))return r?i(n,e):n.apply(this,e);r?t=i(n,e):(n.apply(this,e),t=this);var s=function(t){var n,a=t,e=0;try{n=qr.parse(t,{range:!0,tolerant:!0,sourceType:"script"})}catch(a){try{var r="("+t+")";n=qr.parse(r,{range:!0,tolerant:!0,sourceType:"script"}),e=1}catch(r){try{n=qr.parse(t,{range:!0,tolerant:!0,sourceType:"module"})}catch(r){try{var i="("+t+")";n=qr.parse(i,{range:!0,tolerant:!0,sourceType:"module"}),e=1}catch(t){throw a}}}}var s=[];return Kr.traverse(n,{enter:function(t){if("AssignmentExpression"===t.type){var n=t.right;if(n&&n.range){var r=a.slice(n.range[0]-e,n.range[1]-e),i=null;if("CallExpression"===n.type&&n.callee&&"FunctionExpression"===n.callee.type&&n.callee.body)for(var o=n.callee.body.body||[],u=0;u<o.length;u++){var l=o[u];if("ReturnStatement"===l.type&&l.argument&&l.argument.range){i=a.slice(l.argument.range[0]-e,l.argument.range[1]-e);break}}else"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type||(i=r);s.push({left:t.left&&t.left.range?a.slice(t.left.range[0]-e,t.left.range[1]-e):null,rhs:r,returned:i})}}}}),s}(n.toString()),o={type:"TRANSPORT_CONTROLS_BUTTON_TYPE_PIP",button:{buttonRenderer:ze(!1,"Mini Player","CLEAR_COOKIES",{customAction:{action:"ENTER_PIP"}})}},u=s.find(t=>t.rhs.includes("TRANSPORT_CONTROLS_BUTTON_TYPE_PLAYBACK_SETTINGS")).left.split(".")[1];if(!u)return t;var l=t[u];t[u]=function(){var t=l.apply(this,arguments);return t.find(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_PIP"===t.type)||t.splice(1,0,o),t};var c=s.find(t=>{if(t.rhs.includes("skipNextButton")){var n=t.rhs.indexOf("skipNextButton");if(t.rhs.indexOf("skipPreviousButton")>n)return!0}}).left.split(".")[1],d=s.find(t=>{if(t.rhs.includes("skipPreviousButton")&&t.rhs.indexOf("skipNextButton")>t.rhs.indexOf("skipPreviousButton"))return!0}).left.split(".")[1],L=s.find(t=>t.rhs.includes("props.data.engagementActions")).left.split(".")[1];if(L&&we("enableSpeedControlsButton")){var m=t[L];t[L]=function(){var t=m.apply(this,arguments);return t.find(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_SPEED"===t.type)||t.push({type:"TRANSPORT_CONTROLS_BUTTON_TYPE_SPEED",button:{buttonRenderer:ze(!1,"Speed Controls","SLOW_MOTION_VIDEO",{customAction:{action:"TT_SPEED_SETTINGS_SHOW"}})}}),t}}if(!we("enableSuperThanksButton")){var h=t[L];t[L]=function(){return h.apply(this,arguments).filter(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_SUPER_THANKS"!==t.type).filter(t=>"TRANSPORT_CONTROLS_BUTTON_TYPE_SHOPPING"!==t.type)}}if(we("enablePreviousNextButtons")){if(!c||!d)return t;t[c]=function(){return ze(!1,"Previous","SKIP_PREVIOUS",{signalAction:{signal:"PLAYER_PLAY_PREVIOUS"}})},t[d]=function(){return ze(!1,"Next","SKIP_NEXT",{signalAction:{signal:"PLAYER_PLAY_NEXT"}})}}return t}}"complete"===document.readyState||"interactive"===document.readyState?Vr():window.addEventListener("DOMContentLoaded",Vr);var Xr=JSON.parse;JSON.parse=function(){var t=Xr.apply(this,arguments),n=we("disabledSidebarContents");if(t.items&&Array.isArray(t.items)&&t.items[0].guideSectionRenderer)for(var a=0;a<t.items.length;a++)for(var e=t.items[a].guideSectionRenderer,r=0;r<e.items.length;r++){var i=e.items[r].guideEntryRenderer;i&&(n.includes(i.icon.iconType)&&(e.items.splice(r,1),r--))}return t},Ae.addEventListener("configChange",t=>{if("disabledSidebarContents"===t.detail.key){var n=br();n&&n.executeFunction(new n.commandFunction("reloadGuideAction"))}})}();