1/*! For license information please see front-app.js.LICENSE.txt */ 2(self.webpackChunk=self.webpackChunk||[]).push([[885],{119:function(e,t,n){!function(e){"use strict";var t={1:"Û±",2:"Û²",3:"Û³",4:"Û´",5:"Ûµ",6:"Û¶",7:"Û·",8:"Û¸",9:"Û¹",0:"Û°"},n={"Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","Û°":"0"};e.defineLocale("fa",{months:"ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر".split("_"),monthsShort:"ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر".split("_"),weekdays:"ÛÚ©âØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙâØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬âØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù".split("_"),weekdaysShort:"ÛÚ©âØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙâØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬âØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù".split("_"),weekdaysMin:"Û_د_س_Ú_Ù¾_ج_Ø´".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ÙØ¨Ù از Ø¸ÙØ±|بعد از Ø¸ÙØ±/,isPM:function(e){return/بعد از Ø¸ÙØ±/.test(e)},meridiem:function(e,t,n){return e<12?"ÙØ¨Ù از Ø¸ÙØ±":"بعد از Ø¸ÙØ±"},calendar:{sameDay:"[Ø§Ù Ø±ÙØ² ساعت] LT",nextDay:"[ÙØ±Ø¯Ø§ ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[Ø¯ÛØ±Ùز ساعت] LT",lastWeek:"dddd [Ù¾ÛØ´] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s Ù¾ÛØ´",s:"ÚÙØ¯ ثاÙÛÙ",ss:"%d ثاÙÛÙ",m:"ÛÚ© دÙÛÙÙ",mm:"%d دÙÛÙÙ",h:"ÛÚ© ساعت",hh:"%d ساعت",d:"ÛÚ© Ø±ÙØ²",dd:"%d Ø±ÙØ²",M:"ÛÚ© ٠اÙ",MM:"%d ٠اÙ",y:"ÛÚ© ساÙ",yy:"%d ساÙ"},preparse:function(e){return e.replace(/[Û°-Û¹]/g,function(e){return n[e]}).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"Ø")},dayOfMonthOrdinalParse:/\d{1,2}Ù /,ordinal:"%dÙ ",week:{dow:6,doy:12}})}(n(5093))},158:function(e,t,n){!function(e){"use strict";var t=["جÙÙØ±Û","ÙØ±ÙرÛ","٠ارÚ","اپرÛÙ","٠ئÛ","جÙÙ","جÙÙØ§Ø¦Û","اگست","ست٠بر","Ø§Ú©ØªÙØ¨Ø±","ÙÙ٠بر","دس٠بر"],n=["Ø§ØªÙØ§Ø±","Ù¾ÛØ±","Ù ÙÚ¯Ù","بدھ","ج٠عرات","ج٠عÛ","ÛÙØªÛ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ddddØ D MMMM YYYY HH:mm"},meridiemParse:/صبØ|شا٠/,isPM:function(e){return"شا٠"===e},meridiem:function(e,t,n){return e<12?"صبØ":"شا٠"},calendar:{sameDay:"[آج بÙÙØª] LT",nextDay:"[ک٠بÙÙØª] LT",nextWeek:"dddd [بÙÙØª] LT",lastDay:"[Ú¯Ø°Ø´ØªÛ Ø±ÙØ² بÙÙØª] LT",lastWeek:"[گذشتÛ] dddd [بÙÙØª] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s ÙØ¨Ù",s:"ÚÙØ¯ سÛÚ©ÙÚ",ss:"%d سÛÚ©ÙÚ",m:"اÛÚ© Ù ÙÙ¹",mm:"%d Ù ÙÙ¹",h:"اÛÚ© Ú¯Ú¾ÙÙ¹Û",hh:"%d Ú¯Ú¾ÙÙ¹Û",d:"اÛÚ© دÙ",dd:"%d دÙ",M:"اÛÚ© ٠اÛ",MM:"%d ٠اÛ",y:"اÛÚ© ساÙ",yy:"%d ساÙ"},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:1,doy:4}})}(n(5093))},217:function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Mà rt","An Giblean","An Cèitean","An t-Ãgmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dà mhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Mà rt","Gibl","Cèit","Ãgmh","Iuch","Lùn","Sult","Dà mh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimà irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà ","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-mà ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},251:(e,t)=>{t.read=function(e,t,n,r,i){var a,s,o=8*i-r-1,l=(1<<o)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=f,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=r;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),a-=u}return(h?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var s,o,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*l-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&o,h+=m,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[n+h]=255&s,h+=m,s/=256,u-=8);e[n+h-m]|=128*p}},304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå ".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å ".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t?e>=11?e:e+12:"ä¸å"===t||"æä¸"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;
vendor: 7,063 bytes, line 2
2return r<600?"忍":r<900?"æ©ä¸":r<1130?"ä¸å":r<1230?"ä¸å":r<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©] LT",nextDay:"[æå¤©] LT",nextWeek:"[ä¸]dddd LT",lastDay:"[æ¨å¤©] LT",lastWeek:"[ä¸]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"é±";default:return e}},relativeTime:{future:"%så¾",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}})}(n(5093))},306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"ÑанÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_маÑ_ÑÑни_ÑÑли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи".split("_"),monthsShort:"Ñан_Ñев_маÑ_апÑ_маÑ_ÑÑн_ÑÑл_авг_Ñеп_окÑ_ное_дек".split("_"),weekdays:"недела_понеделник_вÑоÑник_ÑÑеда_ÑеÑвÑÑок_пеÑок_ÑабоÑа".split("_"),weekdaysShort:"нед_пон_вÑо_ÑÑе_ÑеÑ_пеÑ_Ñаб".split("_"),weekdaysMin:"нe_пo_вÑ_ÑÑ_Ñе_пе_Ña".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[ÐÐµÐ½ÐµÑ Ð²Ð¾] LT",nextDay:"[УÑÑе во] LT",nextWeek:"[Ðо] dddd [во] LT",lastDay:"[ÐÑеÑа во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[ÐзминаÑаÑа] dddd [во] LT";case 1:case 2:case 4:case 5:return"[ÐзминаÑиоÑ] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пÑед %s",s:"Ð½ÐµÐºÐ¾Ð»ÐºÑ ÑекÑнди",ss:"%d ÑекÑнди",m:"една минÑÑа",mm:"%d минÑÑи",h:"еден ÑаÑ",hh:"%d ÑаÑа",d:"еден ден",dd:"%d дена",M:"еден меÑеÑ",MM:"%d меÑеÑи",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-Ñи":1===t?e+"-ви":2===t?e+"-Ñи":7===t||8===t?e+"-ми":e+"-Ñи"},week:{dow:1,doy:7}})}(n(5093))},527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":a=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return a=i(e,r)+" "+a}function i(e,r){return e<10?r?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfÅn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfÅ_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},708:function(e,t,n){!function(e){"use strict";var t=["ÞÞ¬ÞÞªÞÞ¦ÞÞ©","ÞÞ¬ÞÞ°ÞÞªÞÞ¦ÞÞ©","ÞÞ§ÞÞ¨ÞÞª","ÞÞÞÞ°ÞÞ©ÞÞª","ÞÞ","ÞÞ«ÞÞ°","ÞÞªÞÞ¦ÞÞ¨","ÞÞ¯ÞÞ¦ÞÞ°ÞÞª","ÞÞ¬ÞÞ°ÞÞ¬ÞÞ°ÞÞ¦ÞÞª","ÞÞ®ÞÞ°ÞÞ¯ÞÞ¦ÞÞª","ÞÞ®ÞÞ¬ÞÞ°ÞÞ¦ÞÞª","ÞÞ¨ÞÞ¬ÞÞ°ÞÞ¦ÞÞª"],n=["ÞÞ§ÞÞ¨ÞÞ°ÞÞ¦","ÞÞ¯ÞÞ¦","ÞÞ¦ÞÞ°ÞÞ§ÞÞ¦","ÞÞªÞÞ¦","ÞÞªÞÞ§ÞÞ°ÞÞ¦ÞÞ¨","ÞÞªÞÞªÞÞª","ÞÞ®ÞÞ¨ÞÞ¨ÞÞª"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"ÞÞ§ÞÞ¨_ÞÞ¯ÞÞ¦_ÞÞ¦ÞÞ°_ÞÞªÞÞ¦_ÞÞªÞÞ§_ÞÞªÞÞª_ÞÞ®ÞÞ¨".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ÞÞ|ÞÞ/,isPM:function(e){return"ÞÞ"===e},meridiem:function(e,t,n){return e<12?"ÞÞ":"ÞÞ"},calendar:{sameDay:"[ÞÞ¨ÞÞ¦ÞÞª] LT",nextDay:"[ÞÞ§ÞÞ¦ÞÞ§] LT",nextWeek:"dddd LT",lastDay:"[ÞÞ¨ÞÞ°ÞÞ¬] LT",lastWeek:"[ÞÞ§ÞÞ¨ÞÞªÞÞ¨] dddd LT",sameElse:"L"},relativeTime:{future:"ÞÞ¬ÞÞÞÞ¦ÞÞ¨ %s",past:"ÞÞªÞÞ¨ÞÞ° %s",
2s:"ÞÞ¨ÞÞªÞÞ°ÞÞªÞÞ®Þ
Þ¬ÞÞ°",ss:"d% ÞÞ¨ÞÞªÞÞ°ÞÞª",m:"ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°",mm:"ÞÞ¨ÞÞ¨ÞÞª %d",h:"ÞÞ¦ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°",hh:"ÞÞ¦ÞÞ¨ÞÞ¨ÞÞª %d",d:"ÞÞªÞÞ¦ÞÞ¬ÞÞ°",dd:"ÞÞªÞÞ¦ÞÞ° %d",M:"ÞÞ¦ÞÞ¬ÞÞ°",MM:"ÞÞ¦ÞÞ° %d",y:"ÞÞ¦ÞÞ¦ÞÞ¬ÞÞ°",yy:"ÞÞ¦ÞÞ¦ÞÞª %d"},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:7,doy:12}})}(n(5093))},748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(5093))},770:(e,t,n)=>{"use strict";n(4874),n(2176);var r=n(8647),i=n.n(r),a=n(5635),s=n(5824),o=n(8451),l=n.n(o);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var f=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){[].slice.call(document.querySelectorAll(".offcanvas")).map(function(e){return new(l())(e)})}}],(t=null)&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),h=n(6094);const m=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},p=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=g},g=Number.MAX_SAFE_INTEGER||9007199254740991;let y=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),_=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.PLAYLIST_UNCHANGED_ERROR="playlistUnchangedError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ER
2ROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_APPEND_NO_PROGRESS="bufferAppendNoProgress",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.MEDIA_SOURCE_REQUIRES_RESET="mediaSourceRequiresReset",e.UNKNOWN="unknown",e}({}),v=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});
vendor: 5,255 bytes, line 2
2function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b,T={exports:{}};var S,w,L,A,M,D=(b||(b=1,S=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,w=/^(?=([^\/?#]*))\1([^]*)$/,L=/(?:\/|^)\.(?=\/)/g,A=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,T.exports=M={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=M.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=M.normalizePath(r.path),M.buildURLFromParts(r)}var i=M.parseURL(t);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return n.alwaysNormalize?(i.path=M.normalizePath(i.path),M.buildURLFromParts(i)):t;var a=M.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var s=w.exec(a.path);a.netLoc=s[1],a.path=s[2]}a.netLoc&&!a.path&&(a.path="/");var o={scheme:a.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(o.netLoc=a.netLoc,"/"!==i.path[0]))if(i.path){var l=a.path,u=l.substring(0,l.lastIndexOf("/")+1)+i.path;o.path=M.normalizePath(u)}else o.path=a.path,i.params||(o.params=a.params,i.query||(o.query=a.query));return null===o.path&&(o.path=n.alwaysNormalize?M.normalizePath(i.path):i.path),M.buildURLFromParts(o)},parseURL:function(e){var t=S.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(L,"");e.length!==(e=e.replace(A,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}),T.exports);class k{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var I="manifest",R="level",C="audioTrack",P="subtitleTrack",O="media-fragment",x="key",N="steering-manifest",F="server-certificate",Y="interstitial-asset-list",U="main",B="audio",j="subtitle",H="audio",G="video",Z="audiovideo";class ${constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"==typeof e&&(e={url:e}),this.base=e,function(e,t){const n=X(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;r=1===n.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return null===this._byteRange?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return null===this._streams&&(this._streams={[H]:null,[G]:null,[Z]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return null!==this._stats}get hasStreams(){return null!==this._streams}get stats(){return null===this._stats&&(this._stats=new k),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.relurl&&(this._url=D.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[H]=null,e[G]=null,e[Z]=null,this.url=null}}function z(e){return"initSegment"!==e.sn}function q(e,t){return e.sn===(null==t?void 0:t.sn)&&e.level===t.level}function W(e,t){return e.sn===(null==t?void 0:t.sn)&&e.level===t.level&&e.cc===t.cc}class V extends ${constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange.length){const e=this.byteRange[0],t=this.byteRange[1];if(m(e)&&m(t))return t-e}return null}get bitrate(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){var e;const{levelkeys:t}=this;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(null==(e=this._decryptdata)||!e.keyId){const e=Object.keys(t);if(1===e.length){const n=this._decryptdata=t[e[0]]||null;n&&(this._decryptdata=n.getDecryptData(this.sn,t))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;const e=m(this.duration)?this.duration:0;return this.programDateTime+1e3*e}get encrypted(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;
vendor: 25,149 bytes, line 2
2if(this.levelkeys){var t;const e=Object.keys(this.levelkeys),n=e.length;if(n>1||1===n&&null!=(t=this.levelkeys[e[0]])&&t.encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){m(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return z(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){const t=this.levelkeys;if(t){var n;const r=t[e];!r||null!=(n=this._decryptdata)&&n.keyId||(this._decryptdata=r.getDecryptData(this.sn,t))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,r,i,a=!1){const{elementaryStreams:s}=this,o=s[e];o?(o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,n),o.startDTS=Math.min(o.startDTS,r),o.endDTS=Math.max(o.endDTS,i)):s[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a}}}class K extends ${constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.gap=!1,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo||this.fragment.type===j&&this.stats.loading.end>0)}}function X(e,t){const n=Object.getPrototypeOf(e);if(n){const e=Object.getOwnPropertyDescriptor(n,t);return e||X(n,t)}}function Q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(null,arguments)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ne(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function re(e){switch(e.details){case _.FRAG_LOAD_TIMEOUT:case _.KEY_LOAD_TIMEOUT:case _.LEVEL_LOAD_TIMEOUT:case _.MANIFEST_LOAD_TIMEOUT:case _.AUDIO_TRACK_LOAD_TIMEOUT:case _.SUBTITLE_TRACK_LOAD_TIMEOUT:case _.ASSET_LIST_LOAD_TIMEOUT:return!0}return!1}function ie(e){return e.details.startsWith("key")}function ae(e){return ie(e)&&!!e.frag&&!e.frag.decryptdata}function se(e,t){const n=re(t);return e.default[(n?"timeout":"error")+"Retry"]}function oe(e,t){const n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function le(e){return te(te({},e),{errorRetry:null,timeoutRetry:null})}function ue(e,t,n,r){if(!e)return!1;const i=null==r?void 0:r.code,a=t<e.maxNumRetry&&(function(e){return ce(e)||!!e&&(e<400||e>499)}(i)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,a):a}function ce(e){return 0===e&&!1===navigator.onLine}function de(e,t){return t>0&&e.loadError>0&&0!==e.loadErrorTime&&self.performance.now()-e.loadErrorTime>t}class fe{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class he{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fe(e),this.fast_=new fe(t),this.defaultTTFB_=r,this.ttfb_=new fe(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new fe(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new fe(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new fe(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){if(t<=0)return;const n=Math.min(this.minDelayMs_,t/1e5),r=8*t,i=Math.max(e,n)/1e3,a=r/i;this.fast_.sample(i,a),this.slow_.sample(i,a)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}class me{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=pe,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const pe=function(){},ge={trace:pe,debug:pe,log:pe,warn:pe,info:pe,error:pe};function ye(){return J({},ge)}function _e(e,t,n){return t[e]?t[e].bind(t):function(e,t){const n=self.console[e];return n?n.bind(self.console,`${t?"["+t+"] ":""}[${e}] >`):pe}(e,n)}const ve=ye();const Ee=ve;function be(e=!0){if("undefined"==typeof self)return;return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Te(e,t){const n=Object.keys(e),r=Object.keys(t),i=n.length,a=r.length;return!i||!a||i===a&&!n.some(e=>-1===r.indexOf(e))}function Se(e){return e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer}const we="utf-16be",Le="utf-16le",Ae="utf-8";function Me(e,t){if(e<0)return-Me(-e,t);const n=Math.pow(10,t);if(Math.abs(e*n%1-.5)<Number.EPSILON){const t=Math.floor(e*n);return(t%2==0?t:t+1)/n}return Math.round(e*n)/n}function De(){try{return crypto.randomUUID()}catch(e){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}}}function ke(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Ie(e,t){let n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,n|=(127&e[t+2])<<7,n|=127&e[t+3],n}function Re(e,t){return ke(e,t)&&Ie(e,t+6)+10<=e.length-t}function Ce(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Pe(e,t){const n=t;let r=0;for(;ke(e,t);){r+=10;r+=Ie(e,t+6),Ce(e,t+10)&&(r+=10),t+=r}if(r>0)return e.subarray(n,n+r)}function Oe(e,t=0,n=1/0){return function(e,t,n,r){const i=(a=e,Se(a)?a:a.buffer);var a;let s=1;"BYTES_PER_ELEMENT"in r&&(s=r.BYTES_PER_ELEMENT);const o=(d=e,d&&Se(d.buffer)&&void 0!==d.byteLength&&void 0!==d.byteOffset?e.byteOffset:0),l=(o+e.byteLength)/s,u=(o+t)/s,c=Math.floor(Math.max(0,Math.min(u,l)));var d;return new r(i,c,Math.floor(Math.min(c+Math.max(n,0),l))-c)}(e,t,n,Uint8Array)}function xe(e,t=!1){const n=t?e.indexOf(0):e.length,r=function(e,t={}){let n;n=Se(e)?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength);let r=0,{encoding:i}=t;if(!i){const e=n.getUint8(0),t=n.getUint8(1);239==e&&187==t&&191==n.getUint8(2)?(i=Ae,r=3):254==e&&255==t?(i=we,r=2):255==e&&254==t?(i=Le,r=2):i=Ae}if("undefined"!=typeof TextDecoder)return new TextDecoder(i).decode(n);const{byteLength:a}=n,s=i!==we;let o,l="";for(;r<a;){switch(i){case Ae:if(o=n.getUint8(r),o<128)r++;else if(o>=194&&o<=223)if(r+1<a){const e=n.getUint8(r+1);e>=128&&e<=191?(o=(31&o)<<6|63&e,r+=2):r++}else r++;else if(o>=224&&o<=239)if(r+2<=a-1){const e=n.getUint8(r+1),t=n.getUint8(r+2);e>=128&&e<=191&&t>=128&&t<=191?(o=(15&o)<<12|(63&e)<<6|63&t,r+=3):r++}else r++;else if(o>=240&&o<=244)if(r+3<=a-1){const e=n.getUint8(r+1),t=n.getUint8(r+2),i=n.getUint8(r+3);e>=128&&e<=191&&t>=128&&t<=191&&i>=128&&i<=191?(o=(7&o)<<18|(63&e)<<12|(63&t)<<6|63&i,r+=4):r++}else r++;else r++;break;case we:case"utf-16":case Le:o=n.getUint16(r,s),r+=2}l+=String.fromCodePoint(o)}return l}(new DataView(e.buffer,e.byteOffset,n),{encoding:Ae});return t?r:r.replace(/\0/g,"")}function Ne(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=e.data.subarray(1).indexOf(0);if(-1===n)return;const r=xe(Oe(e.data,1,n)),i=e.data[2+n],a=e.data.subarray(3+n).indexOf(0);if(-1===a)return;const s=xe(Oe(e.data,3+n,a));let o;var l;return"--\x3e"===r?o=xe(Oe(e.data,4+n+a)):o=Se(l=e.data.subarray(4+n+a))?l:0==l.byteOffset&&l.byteLength==l.buffer.byteLength?l.buffer:new Uint8Array(l).buffer,t.mimeType=r,t.pictureType=i,t.description=s,t.data=o,t}function Fe(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=xe(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1;const n=xe(e.data.subarray(t),!0);t+=n.length+1;const r=xe(e.data.subarray(t));return{key:e.type,info:n,data:r}}const t=xe(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?Ne(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const{data:n}=e,r=xe(n.subarray(t),!0);t+=r.length+1;const i=xe(n.subarray(t));return{key:e.type,info:r,data:i}}const t=xe(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function Ye(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=Ie(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}function Ue(e){let t=0;const n=[];for(;ke(e,t);){const r=Ie(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const i=t+r;for(;t+10<i;){const r=Ye(e.subarray(t)),i=Fe(r);i&&n.push(i),t+=r.size+10}Ce(e,t)&&(t+=10)}return n}function Be(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function je(e){if(8===e.data.byteLength){const t=new Uint8Array(e.data),n=1&t[3];let r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}}function He(e){const t=Ue(e);for(const e of t)if(Be(e))return je(e)}function Ge(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t}function Ze(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function $e(e){return Uint8Array.from(atob(e),e=>e.charCodeAt(0))}function ze(e){return String.fromCharCode.apply(null,e)}const qe=Math.pow(2,32)-1,We={avc1:1635148593,avcC:1635148611,hvc1:1752589105,hvcC:1752589123,btrt:1651798644,dinf:1684631142,dref:1685218662,esds:1702061171,free:1718773093,ftyp:1718909296,hdlr:1751411826,mdat:1835295092,mdhd:1835296868,mdia:1835297121,mfhd:1835427940,minf:1835626086,moof:1836019558,moov:1836019574,mp4a:1836069985,".mp3":778924083,dac3:1684103987,"ac-3":1633889587,mvex:1836475768,mvhd:1836476516,pasp:1885434736,sdtp:1935963248,stbl:1937007212,stco:1937007471,stsc:1937011555,stsd:1937011556,stsz:1937011578,stts:1937011827,tfdt:1952867444,tfhd:1952868452,traf:1953653094,trak:1953653099,trun:1953658222,trex:1953654136,tkhd:1953196132,vmhd:1986881636,smhd:1936549988},Ve={video:1,audio:2,id3:3,text:4};function Ke(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Xe(e,t){const n=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return n<0?4294967296+n:n}function Qe(e,t){let n=Xe(e,t);return n*=Math.pow(2,32),n+=Xe(e,t+4),n}function Je(e,t){let n="";for(let r=t;r<e.length;r++)if(n+=String.fromCharCode(e[r]),0===e[r])return n;return null}function et(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function tt(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function nt(e,t,n){const r=t.byteOffset-e.byteOffset-8,i=8+n,a=t.byteLength+8-i;a<8||(tt(e,r,i),tt(e,r+i,a),tt(e,r+i+4,We.free))}function rt(e,t){return[e.byteOffset-t-8,e.byteOffset-t+e.byteLength]}function it(e,t){t.sort((e,t)=>e[0]-t[0]);const n=t.reduce((e,[t,n])=>e+n-t,0),r=new Uint8Array(e.byteLength-n);let i=0,a=0;for(let n=0;n<t.length;n++){const[s,o]=t[n];r.set(e.subarray(i,s),a),a+=s-i,i=o}r.set(e.subarray(i),a);return{result:r,dropped:n,droppedBefore:e=>t.reduce((t,[n,r])=>r<=e?t+r-n:t,0)}}function at(e,t){const n=[];return t.length?(st(e,t,0,0,e.byteLength,n),n):n}function st(e,t,n,r,i,a){const s=t[n];if(4!==(null==s?void 0:s.length))return;const o=s.charCodeAt(0),l=s.charCodeAt(1),u=s.charCodeAt(2),c=s.charCodeAt(3),d=t.length-1;for(let s=r;s<i;){const r=s+8<=i,f=s+4<=i?16777216*e[s]+(e[s+1]<<16|e[s+2]<<8|e[s+3]):Xe(e,s),h=f>1?s+f:i;if(r&&e[s+4]===o&&e[s+5]===l&&e[s+6]===u&&e[s+7]===c){const r=Math.min(h,i);n===d?a.push(e.subarray(s+8,r)):st(e,t,n+1,s+8,r,a)}s=h}}function ot(e){const t=[],n=e[0];let r=8;const i=Xe(e,r);r+=4;let a=0,s=0;0===n?(a=Xe(e,r),s=Xe(e,r+4),r+=8):(a=Qe(e,r),s=Qe(e,r+8),r+=16),r+=2;let o=e.length+s;const l=Ke(e,r);r+=2;for(let n=0;n<l;n++){let n=r;const a=Xe(e,n);n+=4;const s=2147483647&a;if(1===(2147483648&a)>>>31)return Ee.warn("SIDX has hierarchical references (not supported)"),null;const l=Xe(e,n);n+=4,t.push({referenceSize:s,subsegmentDuration:l,info:{duration:l/i,start:o,end:o+s-1}}),o+=s,n+=4,r=n}return{earliestPresentationTime:a,timescale:i,version:n,referencesCount:l,references:t}}function lt(e){const t=[],n=at(e,["moov","trak"]);for(let e=0;e<n.length;e++){const r=n[e],i=at(r,["tkhd"])[0];if(i){let e=i[0];const n=Xe(i,0===e?12:20),a=at(r,["mdia","mdhd"])[0];if(a){e=a[0];const i=Xe(a,0===e?12:20),s=at(r,["mdia","hdlr"])[0];if(s){const e=ze(s.subarray(8,12)),a={soun:H,vide:G}[e],o=ut(at(r,["mdia","minf","stbl","stsd"])[0]);a?(t[n]={timescale:i,type:a,stsd:o},t[a]=te({timescale:i,id:n},o)):t[n]={timescale:i,type:e,stsd:o}}}}}return at(e,["moov","mvex","trex"]).forEach(e=>{const n=Xe(e,4),r=t[n];r&&(r.default={duration:Xe(e,12),sampleSize:Xe(e,16),flags:Xe(e,20)})}),t}function ut(e){const t=e.subarray(8),n=t.subarray(86),r=ze(t.subarray(4,8));let i,a=r;const s="enca"===r||"encv"===r;if(s){const e=at(t,[r])[0];at(e.subarray("enca"===r?28:78),["sinf"]).forEach(e=>{const t=at(e,["schm"])[0];if(t){const n=ze(t.subarray(4,8));if("cbcs"===n||"cenc"===n){const t=at(e,["frma"])[0];t&&(a=ze(t))}}})}const o=a;switch(a){case"avc1":case"avc2":case"avc3":case"avc4":{const e=at(n,["avcC"])[0];e&&e.length>3&&(a+="."+ft(e[1])+ft(e[2])+ft(e[3]),i=ct("avc1"===o?"dva1":"dvav",n));break}case"mp4a":{const e=at(t,[r])[0],n=at(e.subarray(28),["esds"])[0];if(n&&n.length>7){let e=4;if(3!==n[e++])break;e=dt(n,e),e+=2;const t=n[e++];if(128&t&&(e+=2),64&t&&(e+=n[e++]),4!==n[e++])break;e=dt(n,e);const r=n[e++];if(64!==r)break;if(a+="."+ft(r),e+=12,5!==n[e++])break;e=dt(n,e);const i=n[e++];let s=(248&i)>>3;31===s&&(s+=1+((7&i)<<3)+((224&n[e])>>5)),a+="."+s}break}case"hvc1":case"hev1":{const e=at(n,["hvcC"])[0];if(e&&e.length>12){const t=e[1],n=["","A","B","C"][t>>6],r=31&t,i=Xe(e,2),s=(32&t)>>5?"H":"L",o=e[12],l=e.subarray(6,12);a+="."+n+r,a+="."+function(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(i).toString(16).toUpperCase(),a+="."+s+o;let u="";for(let e=l.length;e--;){const t=l[e];if(t||u){u="."+t.toString(16).toUpperCase()+u}}a+=u}i=ct("hev1"==o?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":a=ct(a,n)||a;break;case"vp09":{const e=at(n,["vpcC"])[0];if(e&&e.length>6){const t=e[4],n=e[5],r=e[6]>>4&15;a+="."+ht(t)+"."+ht(n)+"."+ht(r)}break}case"av01":{const e=at(n,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,r=31&e[1],s=e[2]>>>7?"H":"M",o=(64&e[2])>>6,l=(32&e[2])>>5,u=2===t&&o?l?12:10:o?10:8,c=(16&e[2])>>4,d=(8&e[2])>>3,f=(4&e[2])>>2,h=3&e[2],m=1,p=1,g=1,y=0;a+="."+t+"."+ht(r)+s+"."+ht(u)+"."+c+"."+d+f+h+"."+ht(m)+"."+ht(p)+"."+ht(g)+"."+y,i=ct("dav1",n)}break}}return{codec:a,encrypted:s,supplemental:i}}function ct(e,t){const n=at(t,["dvvC"]),r=n.length?n[0]:at(t,["dvcC"])[0];if(r){const t=r[2]>>1&127,n=r[2]<<5&32|r[3]>>3&31;return e+"."+ht(t)+"."+ht(n)}}function dt(e,t){const n=t+5;for(;128&e[t++]&&t<n;);return t}function ft(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function ht(e){return(e<10?"0":"")+e}function mt(e,t){at(e,["moov","trak"]).forEach(e=>{const n=at(e,["mdia","minf","stbl","stsd"])[0];if(!n)return;const r=n.subarray(8);let i=at(r,["enca"]);const a=i.length>0;a||(i=at(r,["encv"])),i.forEach(e=>{at(a?e.subarray(28):e.subarray(78),["sinf"]).forEach(e=>{const n=pt(e);n&&t(n,a)})})})}function pt(e){const t=at(e,["schm"])[0];if(t){const n=ze(t.subarray(4,8));if("cbcs"===n||"cenc"===n){const t=at(e,["schi","tenc"])[0];if(t)return t}}}let gt;function yt(e){if("undefined"==typeof TextDecoder)return xe(e);return(gt||(gt=new TextDecoder("utf-8"))).decode(e).replace(/\0/g,"")}function _t(e,t,n,r,i){const a={};let s=!1;const o=function(e){const t=e.byteLength,n=[];for(let r=0;r<t;){const i=r+8<=t,a=r+4<=t?16777216*e[r]+(e[r+1]<<16|e[r+2]<<8|e[r+3]):Xe(e,r),s=a>1?r+a:t;if(i&&109===e[r+4]&&111===e[r+5]&&111===e[r+6]&&102===e[r+7]){const i=Math.min(s,t);for(let t=r+8;t<i;){const a=t+8<=i,s=t+4<=i?16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]):Xe(e,t),o=s>1?t+s:i;if(a&&116===e[t+4]&&114===e[t+5]&&97===e[t+6]&&102===e[t+7]){const a=Math.min(o,i);let s,l;const u=[];for(let n=t+8;n<a;){const t=n+8<=a,r=n+4<=a?16777216*e[n]+(e[n+1]<<16|e[n+2]<<8|e[n+3]):Xe(e,n),i=r>1?n+r:a;if(t&&116===e[n+4]){const t=Math.min(i,a);102===e[n+5]&&104===e[n+6]&&100===e[n+7]?l||(l=e.subarray(n+8,t)):102===e[n+5]&&100===e[n+6]&&116===e[n+7]?s||(s=e.subarray(n+8,t)):114===e[n+5]&&117===e[n+6]&&110===e[n+7]&&u.push(e.subarray(n+8,t))}n=i}n.push({moofOffset:e.byteOffset+r,tfdt:s,tfhd:l,truns:u})}t=o}}r=s}return n}(e),l=e.byteLength;for(let d=0;d<o.length;d++){const{moofOffset:f,tfdt:h,tfhd:p,truns:g}=o[d],y=Xe(p,4),_=t[y];if(!_)continue;const v=a[y]||(a[y]={start:NaN,duration:0,sampleCount:0,trun:[],timescale:_.timescale,type:_.type});let E;if(h){const e=h[0];E=Xe(h,4),1===e&&(E===qe?n.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(E*=qe+1,E+=Xe(h,8))),m(E)&&(!m(v.start)||E<v.start)&&(v.start=E),i&&m(E)&&(i.timeOffset=E/i.timescale)}const b=(null==i?void 0:i.trackId)===y&&_.type===G,T=_.default,S=16777215&Xe(p,0);let w,L=(null==T?void 0:T.duration)||0,A=(null==T?void 0:T.sampleSize)||0,M=8;1&S&&(M+=8),2&S&&(M+=4),8&S&&(L=Xe(p,M),w=p.byteOffset-e.byteOffset+M,M+=4),16&S&&(A=Xe(p,M));let D=0;const k=!!(1&S),I=!k&&!!(131072&S);k?(D=Xe(p,8),D*=Math.pow(2,32),D+=Xe(p,12)):I&&(D=f);let R=E||0,C=0,P=L;for(let t=0;t<g.length;t++){const n=g[t],a=Xe(n,4),s=v.sampleCount;v.sampleCount+=a;const o=1&n[3];let d=0;const f=4&n[3],h=1&n[2],p=2&n[2],y=4&n[2],_=8&n[2];let E=8;if(o&&(d=et(n,E),E+=4),f){1&n[E+1]||void 0!==v.keyFrameIndex||(v.keyFrameIndex=s),E+=4}let T,S,M,k=D+d;if(!r&&0===n[1]&&6===n[2]&&1===n[3]){var u,c;const t=R,r=k,s=E;let o=-1,d=0,f=0,h=null!=(u=null==i?void 0:i.timeOffset)?u:0;const p=L/(null!=(c=null==i?void 0:i.timescale)?c:1),g=!0===(null==i?void 0:i.isHEVCFlavor),y=g?2:1;for(let t=0;t<a;t++){const r=0===n[E]?n[E+1]<<16|n[E+2]<<8|n[E+3]:Xe(n,E),a=-1===o&&void 0===v.keyFrameIndex&&!(1&n[E+5]);E+=8;const s=k+r;if(b){if(r>0){let t=k;do{const n=0===e[t]?e[t+1]<<16|e[t+2]<<8|e[t+3]:Xe(e,t);t+=4;const r=e[t],a=g?r>>1&63:31&r;(g?39===a||40===a:6===a)&&Tt(e.subarray(t,t+n),y,h,i.samples),t+=n}while(t<s)}h+=p}k=s,a&&(o=t,d=k)}if(k<=l)f=a;else{let e=r,t=s;for(let r=0;r<a;r++){if(e+=0===n[t]?n[t+1]<<16|n[t+2]<<8|n[t+3]:Xe(n,t),e>l)break;f=r+1,t+=8}}if(b&&(i.timeOffset=h),-1!==o&&d<=l&&void 0===v.keyFrameIndex&&(v.keyFrameIndex=o,v.keyFrameStart=t+o*L),f){(!m(v.ptsMin)||t<v.ptsMin)&&(v.ptsMin=t);const e=t+f*L;(!m(v.ptsMax)||e>v.ptsMax)&&(v.ptsMax=e)}const _=L*a;R=t+_,C+=_;continue}r&&(T=[],S={sampleOffset:k,samples:T,defaultSampleDurationOffset:w},k<=l&&v.trun.push(S));for(let t=0;t<a;t++){let a,s,o;h?(r&&(a=n.byteOffset-e.byteOffset+E),P=Xe(n,E),E+=4):P=L,p?(M=Xe(n,E),E+=4):M=A,y&&(o=1&n[E+1]?1:0,r&&(s={isNonSync:o,dependsOn:1==(3&n[E])?1:2}),E+=4);let u=0;if(_){u=0===n[0]?Xe(n,E):et(n,E),E+=4}if(b){let t=k,n=0;for(;n<M;){const r=Xe(e,t);t+=4,bt(i.isHEVCFlavor,e[t])&&Tt(e.subarray(t,t+r),i.isHEVCFlavor?2:1,i.timeOffset+u/i.timescale,i.samples),t+=r,n+=r+4}i.timeOffset+=P/i.timescale}if(k+=M,k<=l){S&&void 0!==a&&(S.lastSampleDurationOffset=a),0===o&&void 0===v.keyFrameIndex&&(v.keyFrameIndex=t,v.keyFrameStart=R);const e=R+u;(!m(v.ptsMin)||e<v.ptsMin)&&(v.ptsMin=e),(!m(v.ptsMax)||e+P>v.ptsMax)&&(v.ptsMax=e+P),T&&(T[t]={cts:u,duration:P,flags:s,size:M})}R+=P,C+=P}!C&&L&&(C+=L*a)}v.duration+=C,v.duration&&(s=!0)}if(!s){let t=1/0,n=0;const r=at(e,["sidx"]);for(let e=0;e<r.length;e++){const i=ot(r[e]);if(null!=i&&i.references){t=Math.min(t,i.earliestPresentationTime/i.timescale);const e=i.references.reduce((e,t)=>e+t.info.duration||0,0);n=Math.max(n,e+i.earliestPresentationTime/i.timescale)}}n&&m(n)&&Object.keys(a).forEach(e=>{a[e].duration||(a[e].duration=n*a[e].timescale-a[e].start)})}return a}function vt(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Et(e){if(!e)return!1;const t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function bt(e,t){if(e){const e=t>>1&63;return 39===e||40===e}return 6===(31&t)}function Tt(e,t,n,r){const i=St(e);let a=0;a+=t;let s=0,o=0,l=0;for(;a<i.length;){s=0;do{if(a>=i.length)break;l=i[a++],s+=l}while(255===l);o=0;do{if(a>=i.length)break;l=i[a++],o+=l}while(255===l);const e=i.length-a;let t=a;if(o<e)a+=o;else if(o>e){Ee.error(`Malformed SEI payload. ${o} is too small, only ${e} bytes left to parse.`);break}if(4===s){if(181===i[t++]){const e=Ke(i,t);if(t+=2,49===e){const e=Xe(i,t);if(t+=4,1195456820===e){const e=i[t++];if(3===e){const a=i[t++],o=64&a,l=o?2+3*(31&a):0,u=new Uint8Array(l);if(o){u[0]=a;for(let e=1;e<l;e++)u[e]=i[t++]}r.push({type:e,payloadType:s,pts:n,bytes:u})}}}}}else if(5===s&&o>16){const e=[];for(let n=0;n<16;n++){const r=i[t++].toString(16);e.push(1==r.length?"0"+r:r),3!==n&&5!==n&&7!==n&&9!==n||e.push("-")}const a=o-16,l=new Uint8Array(a);for(let e=0;e<a;e++)l[e]=i[t++];r.push({payloadType:s,pts:n,uuid:e.join(""),userData:yt(l),userDataBytes:l})}}}function St(e){const t=e.byteLength;let n,r=e.indexOf(3,3);for(;-1!==r;)0===e[r-1]&&0===e[r-2]&&(n||(n=[])).push(r),r=e.indexOf(3,r+1);if(!n)return e;const i=t-n.length,a=new Uint8Array(i);let s=0,o=0;for(let t=0;t<i;o++,t++)o===n[s]&&(o++,s++),a[t]=e[o];return a}function wt(e,t,n){if(16!==e.byteLength)throw new RangeError("Invalid system id");let r,i,a;r=0,i=new Uint8Array,a=new Uint8Array;const s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),function(e,...t){const n=t.length;let r=8,i=n;for(;i--;)r+=t[i].byteLength;const a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=255&r,a.set(e,4),i=0,r=8;i<n;i++)a.set(t[i],r),r+=t[i].byteLength;return a}([112,115,115,104],new Uint8Array([0,0,0,0]),e,a,i,s,n)}function Lt(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32<n;){const n=At(new DataView(e,r));t.push(n),r+=n.size}}return t}function At(e){const t=e.getUint32(0),n=e.byteOffset,r=e.byteLength;if(r<t)return{offset:n,size:r};if(1886614376!==e.getUint32(4))return{offset:n,size:t};const i=e.getUint32(8)>>>24;if(0!==i&&1!==i)return{offset:n,size:t};const a=e.buffer,s=Ge(new Uint8Array(a,n+12,16));let o=null,l=null,u=0;
2if(0===i)u=28;else{const i=e.getUint32(28);if(!i||r<32+16*i)return{offset:n,size:t};o=[];for(let e=0;e<i;e++)o.push(new Uint8Array(a,n+32+16*e,16));u=32+16*i}if(!u)return{offset:n,size:t};const c=e.getUint32(u);return t-32<c?{offset:n,size:t}:(l=new Uint8Array(a,n+u+4,c),0===i&&(o=function(e){const t=[];for(let n=0;n<e.length;){const r=e[n++],i=7&r;if(0===i){for(;128&e[n++];);continue}if(2!==i){n+=1===i?8:4;continue}let a=0;for(let t=0,r=128;128&r;t+=7)a|=(127&(r=e[n++]))<<t;if(r>>3==2)if(32===a){const r=new Uint8Array(16);for(let t=0;t<16;t++)r[t]=parseInt(String.fromCharCode(e[n+2*t],e[n+2*t+1]),16);t.push(r)}else 16===a&&t.push(e.subarray(n,n+16));n+=a}return t}(l)),{version:i,systemId:s,kids:o,data:l,offset:n,size:t})}const Mt=Ct("userAgent"),Dt=Ct("vendor");let kt,It,Rt;function Ct(e){try{return navigator[e]||""}catch(e){}return""}function Pt(){if(void 0===kt){const e=Mt.match(/Chrome\/(\d+)/i);kt=e?parseInt(e[1]):0}return kt}function Ot(){return/\(Windows.+Firefox\//i.test(Mt)}const xt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1},image:{mjpg:1}};function Nt(e,t){const n=xt[t];return!!n&&!!n[e.slice(0,4)]}function Ft(e,t,n=!0){return!e.split(",").some(e=>!Yt(e,t,n))}function Yt(e,t,n=!0){var r;const i=be(n);return null!=(r=null==i?void 0:i.isTypeSupported(Ut(e,t)))&&r}function Ut(e,t){return`${t}/mp4;codecs=${e}`}function Bt(e){if(e){const t=e.substring(0,4);return xt.video[t]}return 2}function jt(e){const t=Ot();return e.split(",").reduce((e,n)=>{const r=t&&Et(n)?9:xt.video[n];return r?(2*r+e)/(e?3:2):(xt.audio[n]+e)/(e?2:1)},0)}const Ht={};const Gt=/flac|opus|mp4a\.40\.34/i;function Zt(e,t=!0){return e.replace(Gt,e=>function(e,t=!0){if(Ht[e])return Ht[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let i=0;i<n.length;i++){var r;if(Yt(n[i],"audio",t))return Ht[e]=n[i],n[i];if("mp3"===n[i]&&null!=(r=be(t))&&r.isTypeSupported("audio/mpeg"))return""}return e}(e.toLowerCase(),t))}function $t(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e))&&(zt(e,"audio")||zt(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e)for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t];return n[0]}}return t||e}function zt(e,t){return Nt(e,t)&&Yt(e,t)}function qt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}function Wt(e){const t=be(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Vt(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Kt={supported:!1,smooth:!1,powerEfficient:!1},Xt={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Qt(e,t){return{supported:!1,configurations:t,decodingInfoResults:[Kt],error:e}}function Jt(e,t,n,r,i,a){const s=e.videoCodec,o=e.audioCodec?e.audioGroups:null,l=null==a?void 0:a.audioCodec,u=null==a?void 0:a.channels,c=u?parseInt(u):l?1/0:2;let d=null;if(null!=o&&o.length)try{d=1===o.length&&o[0]?t.groups[o[0]].channels:o.reduce((e,n)=>{if(n){const r=t.groups[n];if(!r)throw new Error(`Audio track group ${n} not found`);Object.keys(r.channels).forEach(t=>{e[t]=(e[t]||0)+r.channels[t]})}return e},{2:0})}catch(e){return!0}return void 0!==s&&(s.split(",").some(e=>Et(e))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!d&&m(c)&&Object.keys(d).some(e=>parseInt(e)>c)}function en(e,t,n,r={}){const i=e.videoCodec;if(!i&&!e.audioCodec||!n)return Promise.resolve(Xt);const a=[],s=function(e){var t;const n=null==(t=e.videoCodec)?void 0:t.split(","),r=nn(e),i=e.width||640,a=e.height||480,s=e.frameRate||30,o=e.videoRange.toLowerCase();return n?n.map(e=>{const t={contentType:Ut(qt(e),"video"),width:i,height:a,bitrate:r,framerate:s};return"sdr"!==o&&(t.transferFunction=o),t}):[]}(e),o=s.length,l=function(e,t,n){var r;const i=null==(r=e.audioCodec)?void 0:r.split(","),a=nn(e);if(i&&e.audioGroups)return e.audioGroups.reduce((e,r)=>{var s;const o=r?null==(s=t.groups[r])?void 0:s.tracks:null;return o?o.reduce((e,t)=>
2{if(t.groupId===r){const r=parseFloat(t.channels||"");i.forEach(t=>{const i={contentType:Ut(t,"audio"),bitrate:n?tn(t,a):a};r&&(i.channels=""+r),e.push(i)})}return e},e):e},[]);return[]}(e,t,o>0),u=l.length;for(let e=o||1*u||1;e--;){const t={type:"media-source"};if(o&&(t.video=s[e%o]),u){t.audio=l[e%u];const n=t.audio.bitrate;t.video&&n&&(t.video.bitrate-=n)}a.push(t)}if(i){const e=navigator.userAgent;if(i.split(",").some(e=>Et(e))&&Ot())return Promise.resolve(Qt(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${e})`),a))}return Promise.all(a.map(e=>{const t=function(e){let t="";const{audio:n,video:r}=e;if(r){t+=`${Vt(r.contentType)}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){t+=`${r?"_":""}${Vt(n.contentType)}_c${n.channels}`}return t}(e);return r[t]||(r[t]=n.decodingInfo(e))})).then(e=>({supported:!e.some(e=>!e.supported),configurations:a,decodingInfoResults:e})).catch(e=>({supported:!1,configurations:a,decodingInfoResults:[],error:e}))}function tn(e,t){if(t<=1)return 1;let n=128e3;return"ec-3"===e?n=768e3:"ac-3"===e&&(n=64e4),Math.min(t/2,n)}function nn(e){return 1e3*Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)/1e3)||1}function rn(e,t,n){const r=encodeURIComponent(t),i=`${r}=${encodeURIComponent(n)}`;let a=!1;const s=[];e.search.substring(1).split("&").forEach(e=>{e===r||e.startsWith(r+"=")?a||(s.push(i),a=!0):e&&s.push(e)}),a||s.push(i),e.search=s.join("&")}const an=["NONE","TYPE-0","TYPE-1",null];const sn=["SDR","PQ","HLG"];var on="",ln="YES",un="v2";function cn(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e;return t&&r<t/2?n?un:ln:on}class dn{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return void 0!==this.msn&&rn(t,"_HLS_msn",this.msn.toString()),void 0!==this.part&&rn(t,"_HLS_part",this.part.toString()),this.skip&&rn(t,"_HLS_skip",this.skip),t.href}}class fn{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.imageCodec=void 0,this.iframes=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loadErrorTime=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,"imageCodec"in e&&(this.imageCodec=e.imageCodec),this.codecSet=[e.videoCodec,e.audioCodec].filter(e=>!!e).map(e=>e.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}"iframes"in e&&e.iframes?this.iframes=!0:(this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES))}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return hn(this._audioGroups,e)}hasSubtitleGroup(e){return hn(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t)if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function hn(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function mn(e,t){let n=!1,r=[];if(e&&(n="SDR"!==e,r=[e]),t){r=t.allowedVideoRanges||sn.slice(0);const e="SDR"!==r.join("")&&!t.videoCodec;n=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"==typeof matchMedia){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const pn=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),"object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}})(t));function gn(e,t){Ee.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function yn(e){return e.reduce((e,t)=>
vendor: 4,569 bytes, line 2
2{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function _n(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}}function vn(e,t,n){if("attrs"in e){const n=t.indexOf(e);if(-1!==n)return n}for(let r=0;r<t.length;r++){if(En(e,t[r],n))return r}return-1}function En(e,t,n){const{groupId:r,name:i,lang:a,assocLang:s,default:o}=e,l=e.forced;return(void 0===r||t.groupId===r)&&(void 0===i||t.name===i)&&(void 0===a||function(e,t="--"){if(e.length===t.length)return e===t;return e.startsWith(t)||t.startsWith(e)}(a,t.lang))&&(void 0===a||t.assocLang===s)&&(void 0===o||t.default===o)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||function(e,t=""){const n=e.split(","),r=t.split(",");return n.length===r.length&&!n.some(e=>-1===r.indexOf(e))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function bn(e,t){const{audioCodec:n,channels:r}=e;return!(void 0!==n&&(t.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==r&&r!==(t.channels||"2"))}function Tn(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r<e.length;r++)if(n(e[r]))return r;return-1}function Sn(e,t){var n;return!!e&&e!==(null==(n=t.loadLevelObj)?void 0:n.uri)}function wn(e,t){return!t||-1!==t.indexOf(e)}function Ln(e,t){if(t||e){const n=J({},t);return e&&(e.videoCodec&&(n.videoCodec=e.videoCodec),e.videoRange&&(n.allowedVideoRanges=[e.videoRange])),n}}const An=function(e,t){let n=0,r=e.length-1,i=null,a=null;for(;n<=r;){i=(n+r)/2|0,a=e[i];const s=t(a);if(s>0)n=i+1;else{if(!(s<0))return a;r=i-1}}return null};function Mn(e,t,n=0,r=0,i=.005){let a=null;if(e){a=t[1+e.sn-t[0].sn]||null;const r=e.endDTS-n;r>0&&r<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(a=t[0]);if(a&&((!e||e.level===a.level)&&0===Dn(n,r,a)||function(e,t,n){if(0===(null==t?void 0:t.start)&&t.level<e.level&&(t.endPTS||0)>0){const r=t.tagList.reduce((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e),n);return e.start<=r}return!1}(a,e,Math.min(i,r))))return a;const s=An(t,Dn.bind(null,n,r));return!s||s===e&&a?a:s}function Dn(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function kn(e,t,n){const r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}function In(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:i}=e;let a;return i&&(r=r.concat(i)),An(r,e=>e.cc<t?1:e.cc>t?-1:(a=e,e.end<=n?1:e.start>n?-1:0)),a||null}return null}function Rn(e,t){return t===e.endSN&&e.fragmentHint?e.fragmentHint:e.fragments[1+t-e.startSN]||null}var Cn=0,Pn=2,On=3,xn=5,Nn=0,Fn=1,Yn=2,Un=4,Bn=8,jn=16;function Hn(e){const t=e.details;return t===_.BUFFER_ADD_CODEC_ERROR||t===_.MEDIA_SOURCE_REQUIRES_RESET||t===_.BUFFER_APPEND_ERROR&&!Gn(e)}function Gn(e){return e.details===_.BUFFER_APPEND_ERROR&&("QuotaExceededError"===e.error.name||"InvalidStateError"===e.error.name)}function Zn(e){const t={action:Cn,flags:Nn};return e&&(t.resolved=!0),t}var $n="NOT_LOADED",zn="APPENDING",qn="PARTIAL",Wn="OK";class Vn{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e&&(e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.BUFFER_APPENDED,this.onBufferAppended,this),e.on(v.FRAG_BUFFERED,this.onFragBuffered,this),e.on(v.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.BUFFER_APPENDED,this.onBufferAppended,this),e.off(v.FRAG_BUFFERED,this.onFragBuffered,this),e.off(v.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let t=n.length;t--;){const r=n[t];if(!r)break;
vendor: 4,092 bytes, line 2
2if(r.start<=e&&e<=r.end&&r.loaded)return r}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let a=i.length;a--;){const s=r[i[a]];if((null==s?void 0:s.body.type)===t&&(!n||s.buffered)){const t=s.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,r,i,a){this.timeRanges&&(this.timeRanges[e]=t);const s=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(i=>{const o=this.fragments[i];if(!o||!this.hls)return;const l=o.body;if(s>=l.sn)return;if(!o.buffered&&(!o.loaded||a))return void(l.type===n&&this.removeFragment(l));const u=o.range[e];if(u)if(0!==u.time.length){if(u.time.some(e=>{const n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(l),n}),r&&r!==l&&Pt()){const e=r.endPTS,t=l.startPTS;if(e&&t&&o.range.video){const n=t-e;n<0&&n>-.1&&(this.removeFragment(l),this.hls.trigger(v.BUFFER_FLUSHING,{startOffset:e+.004,endOffset:1/0,type:"video"}))}}}else this.removeFragment(l)})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r,id:i}=e;if(!t||!z(n))return;const a=Xn(n),s=this.fragments[a];if(!s||s.buffered&&n.gap)return;const o=!n.relurl;Object.keys(t).forEach(e=>{const a=n.elementaryStreams[e];if(!a)return;const l=t[e],u=o||!0===a.partial;s.range[e]=this.getBufferedTimes(n,r,u,l),this.detectEvictedFragments(e,l,i,n,r)}),s.loaded=null;const l=Object.keys(s.range);if(l.length){if(this.bufferedEnd(s,n),Kn(s)||this.removeParts(n.sn-1,n.type),!r){const e=Math.min(.004,n.duration);l.some(t=>{var r;const i=null==(r=s.range[t])?void 0:r.time,a=0===i.length||1===i.length&&i[0].endPTS-i[0].startPTS<e;return a&&this.addAsGap(n),a})}}else this.removeFragment(n)}addAsGap(e){e.gap=!0,this.removeFragment(e),this.fragBuffered(e,!0)}bufferedEnd(e,t){e.buffered=!0;(e.body.endList=t.endList||e.body.endList)&&!t.gap&&(this.endListFragments[e.body.type]=e)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Qn(n,t=>t.fragment.sn>=e))}fragBuffered(e,t){const n=Xn(e);let r=this.fragments[n];return!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,this.bufferedEnd(r,e)),r}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},a=e.start,s=e.end,o=e.minEndPTS||s,l=e.maxStartPTS||a;for(let e=0;e<r.length;e++){const t=r.start(e)-this.bufferPadding,n=r.end(e)+this.bufferPadding;if(l>=t&&o<=n){i.time.push({startPTS:Math.max(a,r.start(e)),endPTS:Math.min(s,r.end(e))});break}if(a<n&&s>t){const t=Math.max(a,r.start(e)),n=Math.min(s,r.end(e));n>t&&(i.partial=!0,i.time.push({startPTS:t,endPTS:n}))}else if(s<=t)break}return i}getPartialFragment(e){let t,n,r,i=null,a=0;const{bufferPadding:s,fragments:o}=this;return Object.keys(o).forEach(l=>{const u=o[l];u&&Kn(u)&&(n=u.body.start-s,r=u.body.end+s,e>=n&&e<=r&&(t=Math.min(e-n,r-e),a<=t&&(i=u.body,a=t)))}),i}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||Kn(t))}getState(e){const t=Xn(e),n=this.fragments[t];return n?n.buffered?Kn(n)?qn:Wn:zn:$n}isTimeBuffered(e,t,n){let r,i;for(let a=0;a<n.length;a++){if(r=n.start(a)-this.bufferPadding,i=n.end(a)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(!z(t.frag)||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=Xn(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i}=t;if(!z(n))return;const a=n.type;if(r){let e=this.activePartLists[a];e||(this.activePartLists[a]=e=[]),e.push(r)}this.timeRanges=i}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Xn(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((null==i?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}
vendor: 4,204 bytes, line 2
2getBackBufferEvictionEnd(e,t,n){const{fragments:r}=this;let i=0,a=0;const s=Object.keys(r);for(let o=0;o<s.length;o++){const l=r[s[o]];if(!l||!l.buffered||l.body.type!==t)continue;const u=l.body;if(u.gap)return 0;const c=u.hasStats&&u.stats.loaded||u.byteLength||u.bitrate&&8*u.bitrate*u.duration;if(u.end<=e&&c&&(i+=c,a=Math.max(a,u.end),i>=n))return a}return a>0?a:0}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(a=>{const s=this.fragments[a];if(!s)return;const o=s.body;o.type!==n||r&&!o.gap||o.start<t&&o.end>e&&(s.buffered||i)&&this.removeFragment(o)})}removeFragment(e){const t=Xn(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const t=e.sn;this.activePartLists[e.type]=Qn(n,e=>e.fragment.sn!==t)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=null==(e=this.hls)||null==(e=e.latestLevelDetails)?void 0:e.partList;t&&t.forEach(e=>e.clearElementaryStreamInfo())}}function Kn(e){var t,n,r,i;return e.buffered&&!!(e.body.gap||null!=(t=e.range.video)&&t.partial||null!=(n=e.range.audio)&&n.partial||null!=(r=e.range.audiovideo)&&r.partial||null!=(i=e.range.subs)&&i.partial)}function Xn(e){return`${e.type}_${e.level}_${e.sn}`}function Qn(e,t){return e.filter(e=>{const n=t(e);return n||e.clearElementaryStreamInfo(),n})}var Jn=0,er=1;class tr{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case Jn:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case er:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class nr{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let e=0;e<4;e++)n[e]=t.getUint32(4*e);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],a=n[2],s=n[3],o=this.invSubMix,l=o[0],u=o[1],c=o[2],d=o[3],f=new Uint32Array(256);let h=0,m=0,p=0;for(p=0;p<256;p++)f[p]=p<128?p<<1:p<<1^283;for(p=0;p<256;p++){let n=m^m<<1^m<<2^m<<3^m<<4;n=n>>>8^255&n^99,e[h]=n,t[n]=h;const o=f[h],p=f[o],g=f[p];let y=257*f[n]^16843008*n;r[h]=y<<24|y>>>8,i[h]=y<<16|y>>>16,a[h]=y<<8|y>>>24,s[h]=y,y=16843009*g^65537*p^257*o^16843008*h,l[n]=y<<24|y>>>8,u[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,d[n]=y,h?(h=o^f[f[f[g^o]]],m^=f[f[m]]):h=m=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);const a=this.ksRows=4*(i+6+1);let s,o;const l=this.keySchedule=new Uint32Array(a),u=this.invKeySchedule=new Uint32Array(a),c=this.sBox,d=this.rcon,f=this.invSubMix,h=f[0],m=f[1],p=f[2],g=f[3];let y,_;for(s=0;s<a;s++)s<i?y=l[s]=t[s]:(_=y,s%i===0?(_=_<<8|_>>>24,_=c[_>>>24]<<24|c[_>>>16&255]<<16|c[_>>>8&255]<<8|c[255&_],_^=d[s/i|0]<<24):i>6&&s%i===4&&(_=c[_>>>24]<<24|c[_>>>16&255]<<16|c[_>>>8&255]<<8|c[255&_]),l[s]=y=(l[s-i]^_)>>>0);for(o=0;o<a;o++)s=a-o,_=3&o?l[s]:l[s-4],u[o]=o<4||s<=4?_:h[c[_>>>24]]^m[c[_>>>16&255]]^p[c[_>>>8&255]]^g[c[255&_]],u[o]=u[o]>>>0}networkToHostOrderSwap(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,a=this.invSBox,s=this.invSubMix,o=s[0],l=s[1],u=s[2],c=s[3],d=this.uint8ArrayToUint32Array_(n);let f=d[0],h=d[1],m=d[2],p=d[3];const g=new Int32Array(e),y=new Int32Array(g.length);let _,v,E,b,T,S,w,L,A,M,D,k,I,R;const C=this.networkToHostOrderSwap;for(;t<g.length;
vendor: 8,465 bytes, line 2
2){for(A=C(g[t]),M=C(g[t+1]),D=C(g[t+2]),k=C(g[t+3]),T=A^i[0],S=k^i[1],w=D^i[2],L=M^i[3],I=4,R=1;R<r;R++)_=o[T>>>24]^l[S>>16&255]^u[w>>8&255]^c[255&L]^i[I],v=o[S>>>24]^l[w>>16&255]^u[L>>8&255]^c[255&T]^i[I+1],E=o[w>>>24]^l[L>>16&255]^u[T>>8&255]^c[255&S]^i[I+2],b=o[L>>>24]^l[T>>16&255]^u[S>>8&255]^c[255&w]^i[I+3],T=_,S=v,w=E,L=b,I+=4;_=a[T>>>24]<<24^a[S>>16&255]<<16^a[w>>8&255]<<8^a[255&L]^i[I],v=a[S>>>24]<<24^a[w>>16&255]<<16^a[L>>8&255]<<8^a[255&T]^i[I+1],E=a[w>>>24]<<24^a[L>>16&255]<<16^a[T>>8&255]<<8^a[255&S]^i[I+2],b=a[L>>>24]<<24^a[T>>16&255]<<16^a[S>>8&255]<<8^a[255&w]^i[I+3],y[t]=C(_^f),y[t+1]=C(b^h),y[t+2]=C(E^m),y[t+3]=C(v^p),f=A,h=M,m=D,p=k,t+=4}return y.buffer}}class rr{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=function(e){switch(e){case Jn:return"AES-CBC";case er:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${e}`)}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}class ir{constructor(e,t){if(this.logEnabled=!0,this.decryptRange=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,!0!==t)try{const e=self.crypto;e&&(this.subtle=e.subtle||e.webkitSubtle)}catch(e){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);this.reset();const r=this.decryptRange;return r?0===r.start&&r.end>=n.length?n:n.slice(r.start,r.end):function(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}(n)}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r,i){return this.decryptRange=i,this.useSoftware||i?new Promise((i,a)=>{const s=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(s,t,n,r);const o=this.flush();o?i(o.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:a,remainderData:s}=this;if(r!==Jn||16!==t.byteLength)return Ee.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),s&&(e=vt(s,e),this.remainderData=null);const o=this.getValidChunk(e);if(!o.length)return null;i&&(n=i);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new nr),l.expandKey(t);const u=a;return this.currentResult=l.decrypt(o.buffer,0,n),this.currentIV=o.slice(-16).buffer,u||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new rr(this.subtle,t,r)}return this.fastAesKey.expandKey().then(t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new tr(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,t)}).catch(i=>(Ee.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const i=this.flush();if(i)return i.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%16;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(Ee.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const ar=Math.pow(2,17);class sr{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t,n,r){const i=e.url;if(!i)return Promise.reject(new cr({type:y.NETWORK_ERROR,details:_.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(i?"part list":"url")),networkDetails:null}));this.abort();const a=this.config,s=a.fLoader,o=a.loader;return new Promise((l,u)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some(e=>"GAP"===e[0]))return void u(ur(e));e.gap=!1}const c=this.loader=s?new s(a):new o(a),d=or(e,null,t);e.loader=c;const f=le(a.fragLoadPolicy.default),h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:ar};c.stats.retry=e.stats.retry,e.stats=c.stats;const m={onSuccess:(t,n,r,i)=>{this.resetLoader(e,c);let a=t.data;r.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(a.slice(0,16)),a=a.slice(16)),l({frag:e,part:null,payload:a,networkDetails:i})},onError:(t,n,r,a)=>{this.resetLoader(e,c),u(new cr({type:y.NETWORK_ERROR,details:_.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:te({url:i,data:void 0},t),error:new Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:r,stats:a}))},onAbort:(t,n,r)=>{this.resetLoader(e,c),u(new cr({type:y.NETWORK_ERROR,details:_.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:r,stats:t}))},onTimeout:(t,n,r)=>{this.resetLoader(e,c),u(new cr({type:y.NETWORK_ERROR,details:_.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:r,stats:t}))}};if(n){const t=this.gateProgress(n,r);m.onProgress=(n,r,i,a)=>t({frag:e,part:null,payload:i,networkDetails:a})}c.load(d,h,m)})}gateProgress(e,t){let n=e;if(t){const r=[];let i=!1;t.then(()=>{i=!0,r.forEach(t=>e(t)),r.length=0}).catch(()=>{}),n=t=>{i?e(t):r.push(t)}}return n}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,a=r.loader;return new Promise((s,o)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void o(ur(e,t));const l=this.loader=i?new i(r):new a(r),u=or(e,t);e.loader=l;const c=le(r.fragLoadPolicy.default),d={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:ar};t.stats=l.stats,l.load(u,d,{onSuccess:(r,i,a,o)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const u={frag:e,part:t,payload:r.data,networkDetails:o};n(u),s(u)},onError:(n,r,i,a)=>{this.resetLoader(e,l),o(new cr({type:y.NETWORK_ERROR,details:_.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:te({url:u.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:i,stats:a}))},onAbort:(n,r,i)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),o(new cr({type:y.NETWORK_ERROR,details:_.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:i,stats:n}))},onTimeout:(n,r,i)=>{this.resetLoader(e,l),o(new cr({type:y.NETWORK_ERROR,details:_.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:i,stats:n}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const r=Math.round(e.duration/t.duration),a=Math.min(Math.round(n.loaded/i),r),s=(r-a)*Math.round(n.loaded/a);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);const a=n.loading,s=r.loading;a.start?a.first+=s.first-s.start:(a.start=s.start,a.first=s.first),a.end=s.end}resetLoader(e,t){e.loader=null,e.url=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function or(e,t=null,n){const r={type:O,frag:e,part:t,responseType:"arraybuffer",url:(t||e).url,headers:{},rangeStart:0,rangeEnd:0},i=lr(e,t,n);return i.resetIV&&(r.resetIV=!0),i.byteRange&&(r.rangeStart=i.byteRange.start,r.rangeEnd=i.byteRange.end),r}function lr(e,t=null,n){const r={},i=t||e,a=i.byteRangeStartOffset,s=i.byteRangeEndOffset;var o,l;if(m(a)&&m(s))if("initSegment"!==e.sn&&!n||"AES-128"!==(l=null==(o=e.decryptdata)?void 0:o.method)&&"AES-256"!==l)r.byteRange={start:a,end:s};else{let e=16*Math.floor(a/16);const t=16*Math.ceil(s/16);r.decryptRange={start:a-e,end:s-e},e>=16&&(r.resetIV=!0,e-=16),r.byteRange={start:e,end:t}}return r}function ur(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:y.MEDIA_ERROR,details:_.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new cr(r)}
vendor: 4,959 bytes, line 2
2class cr extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class dr extends me{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount?(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0):(this.log(`possible exception thrown in task-loop (${this.constructor.name}.doTick)`),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class fr{constructor(e,t,n,r=0,i=-1,a=!1,s,o,l){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.iframe=void 0,this.duration=void 0,this.decryptRange=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=a,this.duration=s||0,this.decryptRange=l,this.iframe=o||!1}}const hr={length:0,start:()=>0,end:()=>0};class mr{static isBuffered(e,t){if(e){const n=mr.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){const t=mr.getBuffered(e);return mr.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=mr.bufferedRanges(e);if(r.length)return mr.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((e,t)=>e.start-t.start||t.end-e.end);let r=-1,i=[];if(n)for(let a=0;a<e.length;a++){t>=e[a].start&&t<=e[a].end&&(r=a);const s=i.length;if(s){const t=i[s-1].end;e[a].start-t<n?e[a].end>t&&(i[s-1].end=e[a].end):i.push(e[a])}else i.push(e[a])}else i=e;let a,s=0,o=t,l=t;for(let e=0;e<i.length;e++){const u=i[e].start,c=i[e].end;if(-1===r&&t>=u&&t<=c&&(r=e),t+n>=u&&t<c)o=u,l=c,s=l-t;else if(t+n<u){a=u;break}}return{len:s,start:o||0,end:l||0,nextStart:a,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||hr}catch(e){return Ee.log("failed to get media.buffered",e),hr}}}const pr=/\{\$([a-zA-Z0-9-_]+)\}/g;function gr(e){return pr.lastIndex=0,pr.test(e)}function yr(e,t){if(null!==e.variableList||e.hasVariableRefs){const n=e.variableList;return t.replace(pr,t=>{const r=t.substring(2,t.length-1),i=null==n?void 0:n[r];return void 0===i?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),t):i})}return t}function _r(e,t,n){let r,i,a=e.variableList;if(a||(e.variableList=a={}),"QUERYPARAM"in t){r=t.QUERYPARAM;try{const e=new self.URL(n).searchParams;if(!e.has(r))throw new Error(`"${r}" does not match any query parameter in URI: "${n}"`);i=e.get(r)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else r=t.NAME,i=t.VALUE;r in a?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):a[r]=i||""}function vr(e,t,n){const r=t.IMPORT;if(n&&r in n){let t=e.variableList;t||(e.variableList=t={}),t[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const Er=/^(\d+)x(\d+)$/,br=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Tr{constructor(e,t){"string"==typeof e&&(e=Tr.parseAttrList(e,t)),J(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>"X-"===e.substring(0,2))}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;const n=new Uint8Array(t.length/2);for(let e=0;e<t.length/2;e++)n[e]=parseInt(t.slice(2*e,2*e+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((e,t)=>
vendor: 4,812 bytes, line 2
2(e[t.toLowerCase()]=!0,e),t)}bool(e){return"YES"===this[e]}decimalResolution(e){const t=Er.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={};for(br.lastIndex=0;null!==(n=br.exec(e));){const i=n[1].trim();let a=n[2];const s=0===a.indexOf('"')&&a.lastIndexOf('"')===a.length-1;let o=!1;if(s)a=a.slice(1,-1);else switch(i){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(t&&(s||o))a=yr(t,a);else if(!o&&!s)switch(i){case"CLOSED-CAPTIONS":if("NONE"===a)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":Ee.warn(`${e}: attribute ${i} is missing quotes`)}r[i]=a}return r}}function Sr(e){return"ID"!==e&&"CLASS"!==e&&"CUE"!==e&&"START-DATE"!==e&&"DURATION"!==e&&"END-DATE"!==e&&"END-ON-NEXT"!==e}function wr(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class Lr{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(r=null==t?void 0:t.tagOrder)?r:n,t){const n=t.attr;for(const t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){Ee.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=J(new Tr({}),n,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in e){const n=(null==t?void 0:t.endDate)||new Date(e["END-DATE"]);m(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return null===e||null===e.programDateTime?(Ee.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(m(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&m(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}get invalidReason(){return this.id?this._badValueForSameId?`Date range ${this._badValueForSameId} mismatch`:m(this.startDate.getTime())?!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr?this.isValid?null:"Unknown (check DURATION(|END|NEXT), CLASS, and CUE)":"Interstitial Date range missing X-ASSET-(LIST|URI)":"Date range invalid start date":"Missing ID"}}class Ar{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.iframesOnly=!1,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.drift
vendor: 4,686 bytes, line 2
2StartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e)return this.advanced=!0,void(this.updated=!0);const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=0:this.misses=e.misses+1}hasKey(e){return this.encryptedFragments.some(t=>{let n=t.decryptdata;return n||(t.setKeyFormat(e.keyFormat),n=t.decryptdata),!!n&&e.matches(n)})}get hasProgramDateTime(){return!!this.fragments.length&&m(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const e=this.driftEndTime-this.driftStartTime;if(e>0){return 1e3*(this.driftEnd-this.driftStart)/e}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Mr(e,t){return e.length===t.length&&!e.some((e,n)=>e!==t[n])}function Dr(e,t){return!e&&!t||!(!e||!t)&&Mr(e,t)}function kr(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function Ir(e){switch(e){case"AES-128":case"AES-256":return Jn;case"AES-256-CTR":return er;default:throw new Error(`invalid full segment method ${e}`)}}function Rr(e){return Uint8Array.from(unescape(encodeURIComponent(e)),e=>e.charCodeAt(0))}function Cr(e){const t=function(e,t,n){const r=e[t];e[t]=e[n],e[n]=r};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function Pr(e){const t=e.split(":");let n=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),r=e[e.length-1].split(",");if(2===r.length){const t="base64"===r[0],i=r[1];t?(e.splice(-1,1),n=$e(i)):n=function(e){const t=Rr(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(i)}}return n}const Or="undefined"!=typeof self?self:void 0;var xr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Nr="org.w3.clearkey",Fr="com.apple.streamingkeydelivery",Yr="com.microsoft.playready",Ur="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function Br(e){switch(e){case Fr:return xr.FAIRPLAY;case Yr:return xr.PLAYREADY;case Ur:return xr.WIDEVINE;case Nr:return xr.CLEARKEY}}var jr="edef8ba979d64acea3c827dcd51d21ed";function Hr(e){switch(e){case xr.FAIRPLAY:return Fr;case xr.PLAYREADY:return Yr;case xr.WIDEVINE:return Ur;case xr.CLEARKEY:return Nr}}function Gr(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[xr.FAIRPLAY,xr.WIDEVINE,xr.PLAYREADY,xr.CLEARKEY].filter(e=>!!t[e]):[];return!r[xr.WIDEVINE]&&n&&r.push(xr.WIDEVINE),r}const Zr=null!=Or&&null!=($r=Or.navigator)&&$r.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var $r;function zr(e){const t=ze(new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2)),n=t.substring(t.indexOf("<"),t.length),r=(new DOMParser).parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(r){const e=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(e){const t=$e(e).subarray(0,16);return Cr(t),t}}return null}let qr={};class Wr{static clearKeyUriToKeyIdMap(){qr={}}static setKeyIdForUri(e,t){qr[e]=t}static addKeyIdForUri(e){const t=Object.keys(qr).length%Number.MAX_SAFE_INTEGER,n=new Uint8Array(16);return new DataView(n.buffer,12,4).setUint32(0,t),qr[e]=n,n}constructor(e,t,n,r=[1],i=null,a){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pss
vendor: 15,676 bytes, line 2
2h=null,this.scheme=void 0,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!kr(e),null!=a&&a.startsWith("0x")&&(this.keyId=new Uint8Array(Ze(a)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&Mr(e.keyFormatVersions,this.keyFormatVersions)&&Dr(e.iv,this.iv)&&Dr(e.keyId,this.keyId)}isSupported(){if(this.method){if(kr(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case Fr:case Ur:case Yr:case Nr:return-1!==["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e,t){var n;if(!this.encrypted||!this.uri)return null;if(kr(this.method)){let t=this.iv;t||("number"!=typeof e&&(Ee.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),t=function(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(e));return new Wr(this.method,this.uri,"identity",this.keyFormatVersions,t)}if(this.keyId){const e=qr[this.uri];if(e&&!Mr(this.keyId,e)&&Wr.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=Pr(this.uri);if(r)switch(this.keyFormat){case Ur:if(this.pssh=r,!this.keyId){const e=Lt(r.buffer).filter(e=>e.systemId===jr);if(e.length){var i;const t=e[0];this.keyId=null!=(i=t.kids)&&i.length?t.kids[0]:null}}this.keyId||(this.keyId=Vr(t));break;case Yr:{const e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=wt(e,0,r),this.keyId=zr(r);break}default:{let e=r.subarray(0,16);if(16!==e.length){const t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e;break}}if(16!==(null==(n=this.keyId)?void 0:n.byteLength)){let e;e=function(e){const t=null==e?void 0:e[Ur];if(t)return t.keyId;return null}(t),e||(e=Vr(t),e||(e=qr[this.uri])),e&&(this.keyId=e,Wr.setKeyIdForUri(this.uri,e))}return this}}function Vr(e){const t=null==e?void 0:e[Yr];if(t){const e=Pr(t.uri);if(e)return zr(e)}return null}const Kr=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(I-FRAME-STREAM-INF|SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)(?:[\r\n]+|$)/g,Xr=/#EXT-X-MEDIA:(.*)/g,Qr=/^#EXT(?:INF|-X-TARGETDURATION):/m,Jr=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),ei=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS|I-FRAMES-ONLY)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class ti{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return D.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Qr.test(e)}static parseMasterPlaylist(e,t){const n={contentSteering:null,levels:[],iframeVariants:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:gr(e)},r=[];if(Kr.lastIndex=0,!e.startsWith("#EXTM3U"))return n.playlistParsingError=new Error("no EXTM3U delimiter"),n;let i;for(;null!=(i=Kr.exec(e));)if(i[1]){const e=ni(new Tr(i[1],n),i[2],t,n,r);e&&n.levels.push(e)}else if(i[3]){const e=i[3],a=i[4];switch(e){case"I-FRAME-STREAM-INF":{const e=new Tr(a,n),i=ni(e,e.URI,t,n,r,!0);i&&n.iframeVariants.push(i)}break;case"SESSION-DATA":{const e=new Tr(a,n),t=e["DATA-ID"];t&&(null===n.sessionData&&(n.sessionData={}),n.sessionData[t]=e);break}case"SESSION-KEY":{const e=ai(a,t,n);e.encrypted&&e.isSupported()?(null===n.sessionKeys&&(n.sessionKeys=[]),n.sessionKeys.push(e)):Ee.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${a}"`);break}case"DEFINE":_r(n,new Tr(a,n),t);break;case"CONTENT-STEERING":{const e=new Tr(a,n);n.contentSteering={uri:ti.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":n.startTimeOffset=si(a)}}const a=r.length>0&&r.length<n.levels.length;return n.levels=a?r:n.levels,0===n.levels.length&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,n){let r;const i={},a=n.levels,s={AUDIO:a.map(e=>({id:e.attrs.AUDIO,audioCodec:e.audioCodec})),SUBTITLES:a.map(e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec})),"CLOSED-CAPTIONS":[]};let o=0;for(Xr.lastIndex=0;null!==(r=Xr.exec(e));){const e=new Tr(r[1],n),a=e.TYPE;if(a){const n=s[a],r=i[a]||[];i[a]=r;const l=e.LANGUAGE,u=e["ASSOC-LANGUAGE"],c=e.CHANNELS,d=e.CHARACTERISTICS,f=e["INSTREAM-ID"],h={attrs:e,bitrate:0,id:o++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:a,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?ti.resolve(e.URI,t):""};if(u&&(h.assocLang=u),c&&(h.channels=c),d&&(h.characteristics=d),f&&(h.instreamId=f),null!=n&&n.length){const e=ti.findGroup(n,h.groupId)||n[0];li(h,e,"audioCodec"),li(h,e,"textCodec")}r.push(h)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){var s;const o={url:t},l=new Ar(t),u=l.fragments,c=[];let d,f,h,p,g=null,y=0,_=0,v=0,E=0,b=0,T=null,S=new V(r,o),w=-1,L=!1,A=null;if(Jr.lastIndex=0,l.m3u8=e,l.hasVariableRefs=gr(e),"#EXTM3U"!==(null==(s=Jr.exec(e))?void 0:s[0]))return l.playlistParsingError=new Error("Missing format identifier #EXTM3U"),l;for(;null!==(d=Jr.exec(e));){L&&(L=!1,S=new V(r,o),S.playlistOffset=v,S.setStart(v),S.sn=y,S.cc=E,b&&(S.bitrate=b),S.level=n,g&&(S.initSegment=g,g.rawProgramDateTime&&(S.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null),A&&(S.setByteRange(A),A=null)));const e=d[1];if(e){S.duration=parseFloat(e);const t=(" "+d[2]).slice(1);S.title=t||null,S.tagList.push(t?["INF",e,t]:["INF",e])}else if(d[3]){if(m(S.duration)){var M;S.playlistOffset=v,S.setStart(v),h&&di(S,h,l),S.sn=y,S.level=n,S.cc=E;const e=(" "+d[3]).slice(1);S.relurl=yr(l,e),ui(S,T,c),T=S,v+=S.duration,y++,_=0;const t=S.byteRange;if(2===t.length&&(S.bitrate=8*(t[1]-t[0])/S.duration|0),l.iframesOnly&&t[0]&&(null==(M=g)?void 0:M.cc)!==E){const e=new V(r,o);e.relurl=S.relurl,e.setByteRange(`${Math.min(t[0],1316)}@0`),e.level=n,e.sn="initSegment",h&&(e.levelkeys=h,h.identity&&(e._decryptdata=h.identity.getDecryptData(0))),g=e,S.initSegment=g}u.push(S),L=!0}}else{if(d=d[0].match(ei),!d){Ee.warn("No matches on slow regex match for level playlist!");continue}for(f=1;f<d.length&&void 0===d[f];f++);const e=(" "+d[f]).slice(1),i=(" "+d[f+1]).slice(1),s=d[f+2]?(" "+d[f+2]).slice(1):null;switch(e){case"BYTERANGE":T?S.setByteRange(i,T):S.setByteRange(i);break;case"PROGRAM-DATE-TIME":S.rawProgramDateTime=i,S.tagList.push(["PROGRAM-DATE-TIME",i]),-1===w&&(w=u.length);break;case"PLAYLIST-TYPE":l.type&&fi(l,e,d),l.type=i.toUpperCase();break;case"MEDIA-SEQUENCE":0!==l.startSN?fi(l,e,d):null!==T&&hi(l,e,d),l.startSN=parseInt(i),y=l.startSN+l.skippedSegments;break;case"SKIP":{l.skippedSegments&&fi(l,e,d);const t=new Tr(i,l),n=t.decimalInteger("SKIPPED-SEGMENTS");if(m(n)){l.skippedSegments+=n;for(let e=n;e--;)u.push(null);y+=n}const r=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");r&&(l.recentlyRemovedDateranges=(l.recentlyRemovedDateranges||[]).concat(r.split("\t")));break}case"TARGETDURATION":0!==l.targetduration&&fi(l,e,d),l.targetduration=Math.max(parseInt(i),1);break;case"VERSION":null!==l.version&&fi(l,e,d),l.version=parseInt(i);break;case"INDEPENDENT-SEGMENTS":break;case"I-FRAMES-ONLY":l.iframesOnly=!0;break;case"ENDLIST":l.live||fi(l,e,d),l.live=!1;break;case"#":(i||s)&&S.tagList.push(s?[i,s]:[i]);break;case"DISCONTINUITY":E++,S.tagList.push(["DIS"]);break;case"GAP":S.gap=!0,S.tagList.push([e]);break;case"BITRATE":S.tagList.push([e,i]),b=1e3*parseInt(i),m(b)?S.bitrate=b:b=0;break;case"DATERANGE":{const e=new Tr(i,l),t=new Lr(e,l.dateRanges[e.ID],l.dateRangeTagCount);l.dateRangeTagCount++,t.isValid||l.skippedSegments?l.dateRanges[t.id]=t:Ee.log(`Ignoring invalid DATERANGE tag: ${t.invalidReason}: ${i}`),S.tagList.push(["EXT-X-DATERANGE",i]);break}case"DEFINE":{const e=new Tr(i,l);"IMPORT"in e?vr(l,e,a):_r(l,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==l.startCC&&fi(l,e,d),l.startCC=E=parseInt(i),u.forEach(e=>e&&(e.cc=E));break;case"KEY":{const e=ai(i,t,l);if(e.isSupported()){if("NONE"===e.method){h=void 0;break}h||(h={});const t=h[e.keyFormat];null!=t&&t.matches(e)||(t&&(h=J({},h)),h[e.keyFormat]=e)}else Ee.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${i}"`);break}case"START":l.startTimeOffset=si(i);break;case"MAP":{const e=new Tr(i,l);if(S.duration){const t=new V(r,o);ci(t,e,n,h),g=t,S.initSegment=g,g.rawProgramDateTime&&!S.rawProgramDateTime&&(S.rawProgramDateTime=g.rawProgramDateTime)}else{const t=S.byteRangeEndOffset;if(t){const e=S.byteRangeStartOffset;A=`${t-e}@${e}`}else A=null;ci(S,e,n,h),g=S,L=!0}g.cc=E;break}case"SERVER-CONTROL":p&&fi(l,e,d),p=new Tr(i),l.canBlockReload=p.bool("CAN-BLOCK-RELOAD"),l.canSkipUntil=p.optionalFloat("CAN-SKIP-UNTIL",0),l.canSkipDateRanges=l.canSkipUntil>0&&p.bool("CAN-SKIP-DATERANGES"),l.partHoldBack=p.optionalFloat("PART-HOLD-BACK",0),l.holdBack=p.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{l.partTarget&&fi(l,e,d);const t=new Tr(i);l.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=l.partList;e||(e=l.partList=[]);const t=_>0?e[e.length-1]:void 0,n=_++,r=new Tr(i,l),a=new K(r,S,o,n,t);e.push(a),S.duration+=a.duration;break}case"PRELOAD-HINT":{const e=new Tr(i,l);l.preloadHint=e;break}case"RENDITION-REPORT":{const e=new Tr(i,l);l.renditionReports=l.renditionReports||[],l.renditionReports.push(e);break}default:Ee.warn(`line parsed but not handled: ${d}`)}}}T&&!T.relurl?(u.pop(),v-=T.duration,l.partList&&(l.fragmentHint=T)):l.partList&&(ui(S,T,c),S.cc=E,l.fragmentHint=S,h&&di(S,h,l)),l.targetduration||(l.playlistParsingError=new Error("Missing Target Duration"));const D=u.length,k=u[0],I=u[D-1];if(v+=l.skippedSegments*l.targetduration,v>0&&D&&I){l.averagetargetduration=v/D;const e=I.sn;l.endSN="initSegment"!==e?e:0,l.live||(I.endList=!0),w>0&&(!function(e,t,n){if(n||(n=e[t]),!n)return;for(let r=t;r--;){const t=e[r];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(u,w,w>D-1?S:null),k&&c.unshift(k))}return l.fragmentHint&&(v+=l.fragmentHint.duration),l.totalduration=v,c.length&&l.dateRangeTagCount&&k&&ri(c,l),l.endCC=E,l}}function ni(e,t,n,r,i,a){var s;if(void 0===t)return null;const o=yr(r,t),l={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:ti.resolve(o,n)},u=e.decimalResolution("RESOLUTION");u&&(l.width=u.width,l.height=u.height),oi(e.CODECS,l);const c=e["SUPPLEMENTAL-CODECS"];return c&&(l.supplemental={},oi(c,l.supplemental)),null!=(s=l.unknownCodecs)&&s.length||i.push(l),a&&(l.iframes=!0),l}function ri(e,t){let n=e.length;if(!n){if(!t.hasProgramDateTime)return;{const r=t.fragments[t.fragments.length-1];e.push(r),n++}}const r=e[n-1],i=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let o=a.length;o--;){const l=t.dateRanges[a[o]],u=l.startDate.getTime();l.tagAnchor=r.ref;for(let r=n;r--;){var s;if((null==(s=e[r])?void 0:s.sn)<t.startSN)break;const n=ii(t,u,e,r,i);if(n){l.tagAnchor=n.ref;break}}}}function ii(e,t,n,r,i){const a=n[r];if(a){const o=a.programDateTime;if(t>=o||0===r){var s;if(t<=o+1e3*(((null==(s=n[r+1])?void 0:s.start)||i)-a.start)){const i=a.sn-e.startSN,s=e.fragments;if(i>=0&&i<s.length){if(s.length>n.length){const a=n[r+1]||s[s.length-1];for(let n=Math.min(a.sn-e.startSN,s.length-1);n>i;n--){const e=s[n].programDateTime;if(t>=e&&t<e+1e3*s[n].duration)return s[n]}}return s[i]}}}}return null}function ai(e,t,n){var r,i;const a=new Tr(e,n),s=null!=(r=a.METHOD)?r:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,c=null!=(i=a.KEYFORMAT)?i:"identity";o&&a.IV&&!l&&Ee.error(`Invalid IV: ${a.IV}`);const d=o?ti.resolve(o,t):"",f=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Wr(s,d,c,f,l,a.KEYID)}function si(e){const t=new Tr(e).decimalFloatingPoint("TIME-OFFSET");return m(t)?t:null}function oi(e,t){let n=(e||"").split(/[ ,]+/).filter(e=>e);["video","audio","text","image"].forEach(e=>{const r=n.filter(t=>Nt(t,e));r.length&&(t[`${e}Codec`]=r.map(e=>e.split("/")[0]).join(","),n=n.filter(e=>-1===r.indexOf(e)))}),t.unknownCodecs=n}function li(e,t,n){const r=t[n];r&&(e[n]=r)}function ui(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function ci(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function di(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;r.length&&r[r.length-1].levelkeys===t||!Object.keys(t).some(e=>t[e].isCommonEncryption)||r.push(e)}function fi(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function hi(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function mi(e,t){const n=t.startPTS;if(m(n)){let r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&r.setDuration(i)}else if(t.sn>e.sn){e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function pi(e,t,n,r,i,a,s,o){r-n<=0&&(o.warn("Fragment should have a positive duration",t),r=n+t.duration,a=i+t.duration);let l=n,u=r;const c=t.startPTS,d=t.endPTS;if(m(c)){const s=Math.abs(c-n);e&&s>e.totalduration?o.warn(`media timestamps and playlist times differ by ${s}s for level ${t.level} ${e.url}`):m(t.deltaPTS)?t.deltaPTS=Math.max(s,t.deltaPTS):t.deltaPTS=s,l=Math.max(n,c),n=Math.min(n,c),i=void 0!==t.startDTS?Math.min(i,t.startDTS):i,u=Math.min(r,d),r=Math.max(r,d),a=void 0!==t.endDTS?Math.max(a,t.endDTS):a}const f=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=l,t.startDTS=i,t.endPTS=r,t.minEndPTS=u,t.endDTS=a;const h=t.sn;if(!e||h<e.startSN||h>e.endSN)return 0;let p;const g=h-e.startSN,y=e.fragments;for(y[g]=t,p=g;p>0;p--)mi(y[p],y[p-1]);for(p=g;p<y.length-1;p++)mi(y[p],y[p+1]);return e.fragmentHint&&mi(y[y.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,f}function gi(e,t,n){if(e===t)return;let r=null;const i=e.fragments;for(let e=i.length-1;e>=0;e--){const t=i[e].initSegment;if(t){r=t;break}}let a;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){var r;const i=t.skippedSegments,a=Math.max(e.startSN,t.startSN)-t.startSN,s=(e.fragmentHint?1:0)+(i?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,o=t.startSN-e.startSN,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=null!=(r=e.fragmentHint)&&r.duration?e.fragments.concat(e.fragmentHint):e.fragments;for(let r=a;r<=s;r++){const a=u[o+r];let s=l[r];if(i&&!s&&a&&(s=t.fragments[r]=a),a&&s){n(a,s,r,l);const i=a.relurl,o=s.relurl;if(i&&wi(i,o))return void(t.playlistParsingError=yi(`media sequence mismatch ${s.sn}:`,e,t,a,s));if(a.cc!==s.cc)return void(t.playlistParsingError=yi(`discontinuity sequence mismatch (${a.cc}!=${s.cc})`,e,t,a,s))}}}(e,t,(e,n,i,s)=>{if((!t.startCC||t.skippedSegments)&&n.cc!==e.cc){const r=e.cc-n.cc;for(let e=i;e<s.length;e++)s[e].cc+=r;t.endCC=s[s.length-1].cc}m(e.startPTS)&&m(e.endPTS)&&(n.setStart(n.startPTS=e.startPTS),n.startDTS=e.startDTS,n.maxStartPTS=e.maxStartPTS,n.endPTS=e.endPTS,n.endDTS=e.endDTS,n.minEndPTS=e.minEndPTS,n.setDuration(e.endPTS-e.startPTS),n.duration&&(a=n),t.PTSKnown=t.alignedSliding=!0),e.hasStream
2s&&(n.elementaryStreams=e.elementaryStreams),n.loader=e.loader,e.hasStats&&(n.stats=e.stats),e.initSegment&&(n.initSegment=e.initSegment,r=e.initSegment)});const s=t.fragments,o=t.fragmentHint?s.concat(t.fragmentHint):s;if(r&&o.forEach(e=>{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=r)?void 0:t.relurl)||(e.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=s.some(e=>!e),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let e=t.skippedSegments;e--;)s.shift();t.startSN=s[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=function(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:i}=t,a=J({},e);i&&i.forEach(e=>{delete a[e]});const s=Object.keys(a).length;if(!s)return r;return Object.keys(r).forEach(e=>{const t=a[e],i=new Lr(r[e].attr,t);i.isValid?(a[e]=i,t||(i.tagOrder+=s)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${pn(r[e].attr)}"`)}),a}(e.dateRanges,t,n));const r=e.fragments.filter(e=>e.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e<o.length;e++)null===o[e].programDateTime&&ui(o[e],o[e-1],r);ri(r,t)}t.endCC=s[s.length-1].cc}if(!t.startCC){var l;const n=Ei(e,t.startSN-1);t.startCC=null!=(l=null==n?void 0:n.cc)?l:s[0].cc}if(function(e,t,n){if(e&&t){let r=0;for(let i=0,a=e.length;i<a;i++){const a=e[i],s=t[i+r];a&&s&&a.index===s.index&&a.fragment.sn===s.fragment.sn?n(a,s):r--}}}(e.partList,t.partList,(e,t)=>{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats,t.gap=e.gap||t.gap}),a){t.iframesOnly&&a.type;pi(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,0,n)}else _i(e,t);s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const u=t.advancedDateTime;if(t.advanced&&u){const e=t.edge;t.driftStart||(t.driftStartTime=u,t.driftStart=e),t.driftEndTime=u,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function yi(e,t,n,r,i){return new Error(`${e} ${i.url}\nPlaylist starting @${t.startSN}\n${t.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function _i(e,t,n=!0,r){const i=t.startSN+t.skippedSegments-e.startSN,a=e.fragments,s=i>=0;let o=0;if(s&&i<a.length)o=a[i].start,null==r||r.log(`Aligning playlists based on SN ${t.startSN} (diff: ${o})`);else if(s&&t.startSN===e.endSN+1)o=e.fragmentEnd,null==r||r.log(`Aligning playlists based on first/last SN ${t.startSN} (diff: ${o})`);else if(s&&n)o=e.fragmentStart+i*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return o;o=e.fragmentStart,null==r||r.log(`Aligning playlists based on first SN ${t.startSN} (diff: ${o})`)}return function(e,t){if(t){const n=e.fragments;for(let r=e.skippedSegments;r<n.length;r++)n[r].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}(t,o),o}function vi(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){const r=e.fragments,i=4;if(r.length&&n*i>t){const e=1e3*r[r.length-1].duration;e<n&&(n=e)}}else n/=2;return Math.round(n)}function Ei(e,t,n){var r;if(!e)return null;let i=e.fragments[t-e.startSN];return i||(i=e.fragmentHint,(null==(r=i)?void 0:r.sn)===t?i:n&&t<e.startSN&&n.sn===t?n:null)}function bi(e,t,n){return e?Ti(e.partList,t,n):null}function Ti(e,t,n){if(e)for(let r=e.length;r--;){const i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function Si(e){e.forEach((e,t)=>{var n;null==(n=e.details)||n.fragments.forEach(e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)})})}function wi(e,t){return!(e===t||!t)&&Li(e)!==Li(t)}function Li(e){return e.replace(/\?[^?]*$/,"")}function Ai(e,t){for(let r=0,i=e.length;r<i;r++){var n;if((null==(n=e[r])?void 0:n.cc)===t)return e[r]}return null}function Mi(e,t){const n=e.start+t;e.setStart(n)}function Di(e,t){const n=t.fragments;for(let t=0,r=n.length;t<r;t++)Mi(n[t],e);t.fragmentHint&&Mi(t.fragmentHint,e),t.alignedSliding=!0}function ki(e,t,n){e&&(!function(e,t,n){if(!function(e,t){return!!(e&&t.startCC<e.endCC&&t.endCC>e.startCC)}(t,e))return;const r=Math.min(t.endCC,e.endCC),i=Ai(t.fragments,r),a=Ai(e.fragments,r);if(!i||!a)return;const s=i.start-a.start;n.log(`Aligning playlists using dicontinuity sequence ${r} (diff: ${s})`),Di(s,e)}(t,e,n),t.alignedSliding||function(e,t,n){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const r=e.fragments,i=t.fragments;if(!r.length||!i.length)return;let a,s;const o=Math.min(t.endCC,e.endCC);t.startCC<o&&e.startCC<o&&(a=Ai(i,o),s=Ai(r,o));a&&s||(a=i[Math.floor(i.length/2)]||i.filter(e=>!!e)[0],s=Ai(r,a.cc)||r[Math.floor(r.length/2)]);const l=a.programDateTime,u=s.programDateTime;if(!l||!u)return;const c=(u-l)/1e3;if(Math.abs(c)>Math.max(60,e.totalduration))return void n.log(`Cannot align playlists using PDT without overlap (${Math.abs(c)} > ${e.totalduration})`);const d=c-(s.start-a.start);n.log(`Aligning playlists using PDT (diff: ${d})`),Di(d,e)}(t,e,n),t.alignedSliding||t.skippedSegments||_i(e,t,!1,n))}function Ii(e,t,n){Ri(e,t,n),e.addEventListener(t,n)}function Ri(e,t,n){e.removeEventListener(t,n)}function Ci(e){let t="";const n=e.length;for(let r=0;r<n;r++)t+=`[${e.start(r).toFixed(3)}-${e.end(r).toFixed(3)}]`;return t}const Pi="STOPPED",Oi="IDLE",xi="KEY_LOADING",Ni="FRAG_LOADING",Fi="FRAG_LOADING_WAITING_RETRY",Yi="WAITING_TRACK",Ui="PARSING",Bi="PARSED",ji="ENDED",Hi="ERROR",Gi="WAITING_INIT_PTS",Zi="WAITING_LEVEL";class $i extends dr{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragPlaying=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Pi,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=-1,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.initFragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,a=n?n.currentTime:0,s=mr.bufferInfo(r||n,a,e.maxBufferHole),o=s.len;if(this.log(`Media seeking to ${a}, state: ${i}, ${o?"in":"out of"} buffer`),this.state===ji)this.resetLoadingState();else if(t){const n=e.maxFragLookUpTolerance,r=t.start-n,i=t.start+t.duration+n;if(!o||i<s.start||r>s.end){const e=a<r,n=a>i;
vendor: 7,393 bytes, line 2
2(e||n)&&(!t.loader||!n&&this.isFragmentNearlyDownloaded(t)?this.fragPrevious=null:(this.log(`Cancelling fragment load for seek (sn: ${t.sn}) - ${e?"backward":"forward"} seek`),t.abortRequests(),this.resetLoadingState()))}}if(n){this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0);if(a>this.lastCurrentTime&&(this.lastCurrentTime=a),!this.loadingParts){const e=Math.max(s.end,a),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${a} with buffer @${e}`),this.loadingParts=t)}}const l=!mr.isBuffered(n,a);this.hls.hasEnoughToStart&&!l||(this.log(`Setting ${l?"startPosition":"nextLoadPosition"} to ${a} for seek without enough to start`),this.nextLoadPosition=a,l&&(this.startPosition=a)),o<1&&this.state===Oi&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new sr(e.config),this.initFragmentLoader=new sr(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new ir(e.config)}registerListeners(){const{hls:e}=this;e.on(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(v.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(v.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Pi)return;this.fragmentLoader.abort(),this.initFragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Pi}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;if(-1===t&&e){const t=this.getLevelDetails();if(null!=t&&t.live){return(this.hls.liveSyncPosition||t.fragmentStart)+this.timelineOffset}return e}return t}get bufferingEnabled(){return this.buffering}get backtrackFragment(){}set backtrackFragment(e){}get couldBacktrack(){return!1}set couldBacktrack(e){}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=mr.bufferedInfo(i,e.start,0));const a=e.nextStart;if(a&&a>r&&a<t.edge)return!1;if(this.media.currentTime<e.start)return!1;const s=t.partList;if(null!=s&&s.length){const e=s[s.length-1];return mr.isBuffered(this.media,e.start+e.duration/2)}const o=t.fragments[t.fragments.length-1];return this.fragmentTracker.isEndListAppended(o.type)}getLevelDetails(){if(this.levels&&null!==this.levelLastLoaded)return this.levelLastLoaded.details}get timelineOffset(){const e=this.config.timelineOffset;var t;return e?(null==(t=this.getLevelDetails())?void 0:t.appliedTimelineOffset)||e:0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;Ii(n,"seeking",this.onMediaSeeking),Ii(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===Pi&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){this.fragPlaying=null;const n=!!t.transferMedia,r=this.media;if(null!==r){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),Ri(r,"seeking",this.onMediaSeeking),Ri(r,"ended",this.onMediaEnded),this.media=this.mediaBuffer=null,this.loopSn=void 0,n)return this.resetLoadingState(),void this.resetTransmuxer();this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.fragPlaying=this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=0,this.startPosition=-1,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=Pi,this.fragmentLoader&&this.fragmentLoader.destroy(),this.initFragmentLoader&&this.initFragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.decrypter=this.keyLoader=null,this.fragmentLoader=this.initFragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){this._doFragLoad(e,t,n,e=>{const t=e.frag;if(this.fragContextChanged(t))return this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)} was dropped during download.`),void this.fragmentTracker.removeFragment(t);const n=++t.stats.chunkCount;this.log(`load progress ${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)} chunk: ${n}`),this._handleFragmentLoadProgress(e)}).then(e=>{if(!e)return;const t=this.state,n=e.frag;this.fragContextChanged(n)?(t===Ni||!this.fragCurrent&&t===Ui)&&(this.fragmentTracker.removeFragment(n),this.state=Oi):("payload"in e&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level} (bytes ${n.stats.loaded})`),this.hls.trigger(v.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))}).catch(t=>{this.state!==Pi&&this.state!==Hi&&(this.log(`Frag error ${e.type} sn:${e.sn} cc:${e.cc}: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===zn){const t=e.type,r=this.getFwdBufferInfo(this.mediaBuffer,t),i=Math.max(e.duration,r?r.len:this.config.maxBufferLength),a=this.backtrackFragment;(1===(a?e.sn-a.sn:0)||this.reduceMaxBufferLength(i,e.duration))&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===qn&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=this.fragmentTracker,n=e.fragments[e.fragments.length-1];if(n.endList&&!t.isEndListAppended(this.playlistType)){const e=t.getPartialFragment(n.end);e&&(t.removeFragment(e),t.fragBuffered(n,!0))}t.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(v.BUFFER_FLUSHING,r)}_loadInitSegment(e){const{hls:t}=this;return this.initFragmentLoader.abort(),t.trigger(v.FRAG_LOADING,{frag:e,targetBufferTime:0}),this.initFragmentLoader.load(e).then(e=>{var t;const n=e.frag;if(!this.levels||!W(n,null==(t=this.fragCurrent)?void 0:t.initSegment))throw new cr({type:y.NETWORK_E
2RROR,details:_.INTERNAL_ABORTED,error:new Error("init load aborted"),fatal:!1,frag:n,networkDetails:null});return e}).then(e=>{const{frag:n,payload:r}=e,i=n.decryptdata;if(r&&r.byteLength>0&&null!=i&&i.key&&i.iv&&kr(i.method)){const a=self.performance.now(),{decryptRange:s}=lr(n,null,this.iframesOnly);return this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,Ir(i.method),s).catch(e=>{throw t.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),this.fragmentLoader.abort(),e}).then(r=>{const i=self.performance.now();return t.trigger(v.FRAG_DECRYPTED,{frag:n,part:null,payload:r,stats:{tstart:a,tdecrypt:i}}),e.payload=r,this.completeInitSegmentLoad(e)})}return this.completeInitSegmentLoad(e)})}completeInitSegmentLoad(e){const t=e.frag.stats;e.frag.data=new Uint8Array(e.payload),t.parsing.start=t.buffering.start=self.performance.now(),t.parsing.end=t.buffering.end=self.performance.now()}loadInitSegmentIfNeeded(e){const{initSegment:t}=e;if(!this.bitrateTest&&z(e)&&t&&!t.data){var n;return(!t.encrypted||null!=(n=t.decryptdata)&&n.key?this._loadInitSegment(t):this.keyLoader.load(t).then(()=>this._loadInitSegment(t))).catch(t=>{if(this.state===Pi||this.state===Hi)throw t;throw"data"in t&&(t.data.frag=e,this.fragmentLoader.abort(),this.handleFragLoadError(t)),this.resetFragmentLoading(e),t})}}unhandledEncryptionError(e,t){var n,r;const i=e.tracks;if(i&&!t.encrypted&&(null!=(n=i.audio)&&n.encrypted||null!=(r=i.video)&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const e=this.media,n=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${e?"attached mediaKeys: "+e.mediaKeys:"detached"})`);return this.warn(n.message),!e||e.mediaKeys?!1:(this.hls.trigger(v.ERROR,{type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_NO_KEYS,fatal:!1,error:n,frag:t}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!W(e,t)}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Ci(mr.getBuffered(n)):"(detached)"})`),z(e)){var r;if(e.type!==j){const t=e.elementaryStreams;if(!Object.keys(t).some(e=>!!t[e]))return void(this.state=Oi)}const n=null==(r=this.levels)?void 0:r[e.level];null!=n&&n.fragmentError&&(t||this.fragmentTracker.getState(e)!==qn)&&(this.log(`Resetting level fragment error count of ${n.fragmentError} on frag buffered`),n.fragmentError=0,e.stats.retry=0)}this.state=Oi}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const n=e.frag,{part:r,partsLoaded:i}=e,a=!i||0===i.length||i.some(e=>!e),{decryptRange:s}=lr(n,r),o=new fr(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!a,n.duration,this.iframesOnly,s);this.log(`load complete ${n.type} sn: ${n.sn}${r?" part: "+r.index:""} of ${this.fragInfo(n,!1,r)}`),t.flush(o)}_handleFragmentLoadProgress(e){}loadKeyFor(e,t,n){var r;let i=null;return!e.encrypted||null!=(r=e.decryptdata)&&r.key?e.encrypted||(i=this.keyLoader.loadClear(e,t.encryptedFragments,this.startFragRequested),i&&this.log(`[eme] blocking frag sn: ${e.sn} load until media-keys acquired`)):(this.log(`Loading key for ${e.sn} of [${t.startSN}-${t.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=xi,i=this.keyLoader.load(e,n).then(e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(v.KEY_LOADED,e),this.state===xi&&(this.state=Oi),e}),this.hls.trigger(v.KEY_LOADING,{frag:e})),i}_doFragLoad(e,t,n=null,r){this.fragCurrent=e;const i=t.details;if(!this.levels||!i)throw new Error(`frag load aborted, missing level${i?"":" detail"}s`);const a=this.fragPrevious;if(!q(e,a)){const n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==a?void 0:a.sn}->${e.sn}`),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts){const s=i.partList;if(s&&r){n>i.fragmentEnd&&i.fragmentHint&&(e=i.fragmentHint);const o=this.getNextPart(s,e,n);if(o>-1){const l=s[o];if(!q(e=this.fragCurrent=l.fragment,a)&&!this.shouldLoadParts(t.details,e.end))return this.log(`LL-Part loading OFF @${this.playhead} next part: ${this.fragInfo(e,!1,l)}`),this.loadingParts=!1,Promise.resolve(null);if(!this.filterReplacedPrimary(l,t.details))return Promise.resolve(null);const u=this.loadKeyFor(e,i);if(this.fragContextChanged(e))return Promise.resolve(null);let c;this.log(`Loading ${e.type} sn: ${e.sn} part: ${l.index} (${o}/${s.length-1}) of ${this.fragInfo(e,!1,l)} cc: ${e.cc} [${i.startSN}-${i.endSN}], target: ${n}${l.byteRange.length?` range:${l.byteRange.join("-")}`:""}`),this.nextLoadPosition=l.start+l.duration,this.state=Ni;const d=this.loadInitSegmentIfNeeded(e);if(u||d){const n=!!u;c=Promise.all([u,d]).then(([i])=>!n||i&&!this.fragContextChanged(i.frag)?this.doFragPartsLoad(e,l,t,r):null).cat
2ch(e=>this.handleFragLoadError(e))}else c=this.doFragPartsLoad(e,l,t,r).catch(e=>this.handleFragLoadError(e));return this.hls.trigger(v.FRAG_LOADING,{frag:e,part:l,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!e.url||this.loadedEndOfParts(s,n))return Promise.resolve(null)}}var s;if(this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n} Check buffer at sn: ${e.sn} loaded parts: ${null==(s=i.partList)?void 0:s.filter(e=>e.loaded).map(e=>`[${e.start}-${e.end}]`)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);if(!this.filterReplacedPrimary(e,t.details))return Promise.resolve(null);const o=this.loadInitSegmentIfNeeded(e),l=this.loadKeyFor(e,i,o);var u;if(this.fragContextChanged(e))return this.log(`Context changed in KEY_LOADING sn: ${e.sn} ${e.relurl} > ${null==(u=this.fragCurrent)?void 0:u.relurl}`),null==o||o.catch(()=>null),null==l||l.catch(()=>null),Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)} cc: ${e.cc} ${"["+i.startSN+"-"+i.endSN+"]"}, target: ${n}${e.byteRange.length?` range:${e.byteRange.join("-")}`:""}`),m(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Ni;const c=this.config.progressive&&e.type!==j;let d;return d=c&&l?l.then(t=>!t||this.fragContextChanged(t.frag)?null:this.fragmentLoader.load(e,this.iframesOnly,r,o)).catch(e=>this.handleFragLoadError(e)):Promise.all([this.fragmentLoader.load(e,this.iframesOnly,c?r:void 0,c?o:void 0),l,o]).then(([e])=>(!c&&r&&r(e),e)).catch(e=>this.handleFragLoadError(e)),this.hls.trigger(v.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Promise.all([d,o]).then(([e])=>e)}doFragPartsLoad(e,t,n,r){return new Promise((i,a)=>{var s;const o=[],l=null==(s=n.details)?void 0:s.partList,u=t=>{this.fragmentLoader.loadPart(e,t,r).then(r=>{o[t.index]=r;const a=r.part;this.hls.trigger(v.FRAG_LOADED,r);const s=bi(n.details,e.sn,t.index+1)||Ti(l,e.sn,t.index+1);if(!s)return i({frag:e,part:a,partsLoaded:o});u(s)}).catch(a)};u(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===_.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===y.KEY_SYSTEM_ERROR&&!t.fatal&&(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)),this.hls.trigger(v.ERROR,t)}else this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Ui)return void(this.fragCurrent||this.state===Pi||this.state===Hi||(this.state=Oi));const{frag:n,part:r,level:i}=t,a=self.performance.now();n.stats.parsing.end=a,r&&(r.stats.parsing.end=a);const s=this.getLevelDetails(),o=s&&n.sn>s.endSN||this.shouldLoadParts(s,n.end);o!==this.loadingParts&&(this.log(`LL-Part loading ${o?"ON":"OFF"} after parsing segment ending @${n.end}`),this.loadingParts=o),this.updateLevelTiming(n,r,i,e)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList&&!this.iframesOnly){var n;const r=e.partList[0];if(t>=r.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)){if(this.playhead>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:a}=e;if(null==t||!t[r])return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const s=t[r],o=s.details,l=a>-1?bi(o,i,a):null,u=l?l.fragment:Ei(o,i,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:s}):null}bufferFragmentData(e,t,n,r,i){if(this.state!==Ui)return;z(t)&&!this.fragContextChanged(t)&&(this.fragPrevious=t);const{data1:a,data2:s}=e;let o=a;if(s&&(o=vt(a,s)),!o.length)return;const l=this.initPTS[t.cc],u=l?-l.baseTime/l.timescale:void 0,c={type:e.type,frag:t,part:n,chunkMeta:r,offset:u,parent:t.type,data:o};if(this.hls.trigger(v.BUFFER_APPENDING,c),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!mr.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const n=t.currentTime,r=mr.bufferInfo(t,n,0),i=e.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),s=Math.max(Math.min(e.start-a,r.end-a),n+a);e.start-s>a&&this.flushMainBuffer(s,e.start)}getFwdBufferInfo(e,t){var n;const r=this.playhead,i=this.lastCurrentTime>r||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,i)}getFwdBufferInfoAtPos(e,t,n,r){const i=mr.bufferInfo(e,t,r);if(0===i.len&&void 0!==i.nextStart){const a=this.fragmentTracker.getBufferedFrag(t,n);if(a&&(i.nextStart<=a.end||a.gap)){const n=Math.max(Math.min(i.nextStart,a.end)-t,r);return mr.bufferInfo(e,t,n)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return n=e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}exceedsMaxBuffer(e,t,n){const r=e.nextStart;if(r&&n.start>r){const r=e.buffered;if(r){let i=e.len;const a=e.bufferedIndex;for(let e=r.length-1;e>a;e--)r[e].start<n.start&&(i+=r[e].end-r[e].start);return i>=t}}return!1}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t/2),i=Math.max(e-3*t,n.maxMaxBufferLength/2,r);return i>=r&&(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0)}getAppendedFrag(e){const t=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,this.playlistType):null;return t&&"fragment"in t?t.fragment:t}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,a=t.fragmentStart,s=i.lowLatencyMode&&!!t.partList;let o=null;if(t.live){const n=i.initialLiveManifestSize;if(r<n)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${n})`),null;
vendor: 4,466 bytes, line 2
2if(this.startFragRequested||!s||this.loadingParts||(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<a){var l;o=this.getInitialLiveFragment(t);const n=this.config.startPosition,r=this.hls.startPosition,i=this.hls.liveSyncPosition,s=(null==(l=o)?void 0:l.start)||0;let u,c;if(-1!==r&&r>=a?(u=r,c=r===n?"config":"next load start"):i?(u=i,c="live edge"):(u=e,c="buffer pos"),u<s&&(u=s,c="live frag start"),u<a&&(u=a,c="playlist start"),this.startPosition!=u||this.nextLoadPosition!=u){const l=t.live&&!this.filterReplacedPrimary(o,t)?-1:u;this.log(`Setting startPosition to ${l} next load ${u} ${-1===r?"":`(from ${n}) `}based on ${c}. live edge: ${i} live frag start: ${s} playlist start: ${a} buffer pos: ${e}`),this.startPosition=l,this.nextLoadPosition=u}}}else e<=a&&(o=n[0]);if(!o){const n=this.loadingParts?t.partEnd:t.fragmentEnd;o=this.getFragmentAtPosition(e,n,t)}let u=this.filterReplacedPrimary(o,t);return!u&&o&&(u=Rn(t,o.sn),u&&(this.nextLoadPosition=u.start)),u}isLoopLoading(e,t){if(this.nextLoadPosition<=t)return!1;const n=this.fragmentTracker.getState(e);if(n===Wn)return!0;if(n===qn){if(e.gap)return!0;if(e.stats.retry>1)return!0}return!1}getNextFragmentLoopLoading(e,t,n,r,i){let a=null;if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t),a&&!a.gap&&n.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(null!==e&&n.len+e.len>=i){const e=a.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,a}get primaryPrefetch(){if(qi(this.config)){var e;if(null==(e=this.hls.interstitialsManager)||null==(e=e.playingItem)?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(qi(this.config)&&("type"in e?e:e.fragment).type!==j){const n=this.hls.interstitialsManager,r=null==n?void 0:n.bufferingItem;if(r){const n=r.event;if(n){if(!n.appendInPlace&&(Math.abs(e.start-r.start)>1||0===r.start))return null}else{if(e.end<=r.start&&!1===(null==t?void 0:t.live))return null;if(e.start>=r.end&&r.nextEvent&&(r.nextEvent.appendInPlace&&!r.nextEvent.hasPlayed||e.start-r.end>1))return null}}if(zi(e,null==n?void 0:n.playerQueue,this.playhead))return null}return e}getNextPart(e,t,n){let r=-1,i=!1,a=!0;for(let s=0,o=e.length;s<o;s++){const o=e[s];if(a=a&&!o.independent,r>-1&&n<o.start)break;const l=o.loaded||o.gap;l?r=-1:(i||(o.independent||a)&&o.fragment===t)&&(r=s),i=l&&!o.gap}const s=e[r];return s&&s.fragment!==t&&this.log(`Need buffer at ${n} but next unloaded part starts at ${s.start} (sn: ${t.sn} -> ${s.fragment.sn})`),r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(r=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!m(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(let r=0;r<e.length;++r){const i=e[r];if(kn(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance),r&&this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const a=t[i-e.startSN];n.cc===a.cc&&(r=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=In(e,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const t=this.hls.liveSyncPosition;null!==t&&(r=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:a,endSN:s}=n;const{fragmentHint:o}=n,{maxFragLookUpTolerance:l}=r,u=n.partList,c=!!(this.loadingParts&&null!=u&&u.length&&o);let d;if(c&&!this.bitrateTest&&u[u.length-1].fragment.sn===o.sn&&(a=a.concat(o),s=o.sn),i&&this.fragmentTracker.getState(i)===$n&&(i=null),e<t){var f;d=Mn(i,a,e,e<this.lastCurrentTime||e>t-l||null!=(f=this.media)&&f.paused||!this.startFragRequested?0:l)}else d=a[a.length-1];if(d){const e=d.sn-n.startSN,t=this.fragmentTracker.getState(d);if((t===Wn||t===qn&&d.gap)&&(i=d),q(d,i)&&(!c||u[0].fragment.sn>d.sn||!n.live)){const t=a[e+1];d=d.sn<s&&this.fragmentTracker.getState(t)!==Wn?t:null}}return d}
2alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,a=!t,s=e.alignedSliding&&m(i);if(a||!s&&!i){ki(n,e,this);const i=e.fragmentStart;return this.log(`Live playlist sliding: ${i} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),i}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(-1===n){const i=null!==this.startTimeOffset,a=i?this.startTimeOffset:e.startTimeOffset;if(null!==a&&m(a))n=t+a,a<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${a} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n;else if(e.live){const e=this.hls.liveSyncPosition;n=e||t,this.log(`Setting startPosition to -1 to start at ${e?"live edge":"playlist start"} ${n}`),this.startPosition=-1}else this.log("setting startPosition to 0 by default"),this.startPosition=n=0;this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return null!=(e=this.hls)&&e.hasEnoughToStart&&t&&!this.iframesOnly?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}get playhead(){var e;if(null!=(e=this.hls)&&e.hasEnoughToStart){var t;const e=null==(t=this.media)?void 0:t.currentTime;return m(e)?e:this.lastCurrentTime}return this.getLoadPosition()}get iframesOnly(){var e;if(this.playlistType!==U)return!1;const t=this.getLevelDetails();return t?t.iframesOnly:null==(e=this.levelLastLoaded)?void 0:e.iframes}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&z(e)&&e.stats.aborted&&(this.log(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===Fi)||(this.state=Oi)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const{frag:n,part:r}=t;if(!n||!this.levels||n.type!==e)return;var i;if(this.fragContextChanged(n))return void this.warn(`Frag load error must match current frag to retry ${n.relurl} > ${null==(i=this.fragCurrent)?void 0:i.relurl}`);const a=t.details===_.FRAG_GAP;a&&this.fragmentTracker.addAsGap(n);const s=t.errorAction;if(!s)return void(this.state=Hi);const{action:o,flags:l,retryCount:u=0,retryConfig:c}=s,d=!!c,f=d&&o===xn,h=d&&!s.resolved&&l&Fn,m=this.hls.latestLevelDetails,p=null==m?void 0:m.live;if(!f&&h&&z(n)&&p&&n.sn<m.endSN&&!ae(t))this.resetFragmentErrors(e),r?r.gap=!0:this.treatAsGap(n),s.resolved=!0;else if((f||h)&&u<c.maxNumRetry){var g;const r=ce(null==(g=t.response)?void 0:g.code),i=oe(c,u);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+i,this.state=Fi,s.resolved=!0,r)return this.log("Waiting for connection (offline)"),this.retryDate=1/0,void(t.reason="offline");this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${u+1}/${c.maxNumRetry} in ${i}ms`)}else if(c){if(this.resetFragmentErrors(e),!(u<c.maxNumRetry))return void this.warn(`${t.details} reached or exceeded max retry (${u})`);a||o===On||(s.resolved=!0)}else this.state=o===Pn?Zi:Hi;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!ce(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Oi)}reduceLengthAndFlushBuffer(e){if(this.state===Ui||this.state===Bi){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(null==t?void 0:t.duration)||10);const a=!i;return a?this.warn(`Buffer full error while media.currentTime (${this.playhead}) is not buffered, flush ${n} buffer`):r.nextStart&&t&&r.nextStart>t.start&&this.flushMainBuffer(r.nextStart,Number.POSITIVE_INFINITY,n===B?n:void 0),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===B&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Pi&&(this.state=Oi)}afterBufferFlushed(e,t){if(!e)return;const n=mr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,this.playlistType),this.state===ji&&this.resetLoadingState()}
vendor: 5,199 bytes, line 2
2resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Pi&&(this.state=Oi)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.getLevelDetails();null!=e&&e.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(e,e.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.log(`Loading context changed while buffering sn ${e.sn} of ${this.playlistLabel()} ${-1===e.level?"<removed>":e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i)return void this.warn("level.details undefined");this.log(`update level timing ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)}`);if(!Object.keys(e.elementaryStreams).reduce((t,a)=>{const s=e.elementaryStreams[a];if(s){const o=s.endPTS-s.startPTS;if(o<=0)return this.warn(`Could not parse fragment ${e.sn} ${a} duration reliably (${o})`),t||!1;const l=r.partial?0:pi(i,e,s.startPTS,s.endPTS,s.startDTS,s.endDTS,this.iframesOnly,this);return this.hls.trigger(v.LEVEL_PTS_UPDATED,{details:i,level:n,drift:l,type:a,frag:e,start:s.startPTS,end:s.endPTS}),!0}return t},!1)){var a,s,o,l;const r=null===(null==(a=this.transmuxer)?void 0:a.error),i=null!=(null==(s=this.transmuxer)?void 0:s.error),u=(null!=(o=null==(l=this.levels)?void 0:l.length)?o:0)>1;if((0===n.fragmentError||r&&(n.fragmentError<2||e.endList)||i&&u)&&this.treatAsGap(e,n),r){const r=new Error(`Found no media in ${this.playlistLabel()} ${e.level} ${t?`part: ${t.index} of `:""}sn: ${e.sn} at playlist time: ${e.start}. Resetting transmuxer to fallback to playlist timing`);if(this.warn(r.message),this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_PARSING_ERROR,fatal:!1,error:r,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Bi,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)}`),this.hls.trigger(v.FRAG_PARSED,{frag:e,part:t,chunkMeta:r})}playlistLabel(){return`${this.playlistType} playlist`}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${null!=(r=t&&!n?e.startPTS:(n||e).start)?r:NaN}-${null!=(i=t&&!n?e.endPTS:(n||e).end)?i:NaN}]${n&&"main"===e.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""})`}treatAsGap(e,t){t&&t.fragmentError++,this.fragmentTracker.addAsGap(e)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}isFragmentNearlyDownloaded(e){var t;const n=null==(t=e.loader)?void 0:t.stats;if(!n)return!1;const r=n.loading.first>0,i=(n.total-n.loaded)/(this.hls.bandwidthEstimate||this.hls.config.abrEwmaDefaultEstimate);return r&&i<=.15}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}calculateOptimalSwitchPoint(e,t){let n=0;const{hls:r,media:i,config:a,levels:s,playlistType:o}=this,l=this.getLevelDetails();if(i&&!i.paused&&s){var u;const t=o===B?tn(e.audioCodec,128e3):e.maxBitrate,i=1+r.ttfbEstimate/1e3,s=r.bandwidthEstimate*a.abrBandWidthUpFactor;n=i+t*(l&&(this.loadingParts?l.partTarget:l.averagetargetduration)||(null==(u=this.fragCurrent)?void 0:u.duration)||6)/s,e.details||(n+=i)}const c=this.playhead;return{fetchdelay:n,okToFlushForwardBuffer:!(null!=l&&l.live)||t.end-c>1.5*n}}scheduleTrackSwitch(e,t,n){const{media:r,playlistType:i}=this;if(!r||!e)return;const a=n?this.getBufferedFrag(this.playhead+t):null;if(a){const e=this.followingBufferedFrag(a);if(e){var s;this.abortCurrentFrag();const t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,r=Math.max(a.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));if(((null==(s=this.getLevelDetails())?void 0:s.fragmentStart)||0)>r)return;const o=i===U?null:"audio";this.flushMainBuffer(r,Number.POSITIVE_INFINITY,o),this.cleanupBackBuffer()}}}cleanupBackBuffer(){const{media:e,playlistType:t}=this;if(!e)return;const n=this.getAppendedFrag(this.playhead);if(n&&n.start>1){const e=t===B;this.flushMainBuffer(0,n.start-(e?0:1),e?"audio":null)}}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,this.playlistType)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case xi:case Ni:case Fi:case Ui:case Bi:this.state=Oi}this.nextLoadPosition=this.playhead}checkFragPlaying(){const e=this.media;let t=null;if(e&&e.readyState>1&&!1===e.seeking){const n=e.currentTime;if(mr.isBuffered(e,n)?t=this.getAppendedFrag(n):mr.isBuffered(e,n+.1)&&
vendor: 77,744 bytes, line 2
2(t=this.getAppendedFrag(n+.1)),t&&(this.backtrackFragment=void 0,!q(t,this.fragPlaying)))return this.fragPlaying=t,!0}return!1}getBufferOutput(){return null}nextLevelSwitch(){const{levels:e,media:t,hls:n,config:r,playlistType:i}=this;if(null!=t&&t.readyState&&e&&n&&r){const t=this.getBufferOutput(),r=this.getFwdBufferInfo(t,i);if(!r)return;const a=e[i===B?n.nextAudioTrack:n.nextLoadLevel],{fetchdelay:s,okToFlushForwardBuffer:o}=this.calculateOptimalSwitchPoint(a,r);this.scheduleTrackSwitch(r,s,o)}this.tickImmediate()}}function zi(e,t,n){if(t)for(let r=t.length;r--;){const i=t[r].interstitial,a=i.startTime,s=Math.min(a+i.duration,i.resumeTime);if(i.appendInPlace){if(e.start>=a&&e.end<=s)return!0;if(n>e.start&&e.end>a&&e.start<s)return!0}}return!1}function qi(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class Wi{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;return e.length?(n=1===e.length?e[0]:function(e,t){const n=new Uint8Array(t);let r=0;for(let t=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n}(e,t),this.reset(),n):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}var Vi,Ki={exports:{}};var Xi=(Vi||(Vi=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new i(r,a||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i<a;i++)s[i]=r[i].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var l,u,c=this._events[o],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,a),!0;case 6:return c.fn.call(c.context,t,r,i,a,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,a);else{for(var l=0,u=[],c=o.length;l<c;l++)(o[l].fn!==t||i&&!o[l].once||r&&o[l].context!==r)&&u.push(o[l]);u.length?this._events[a]=1===u.length?u[0]:u:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o}(Ki)),Ki.exports),Qi=E(Xi);const Ji="1.7.2",ea={};function ta(e,t){return 255===e[t]&&240==(246&e[t+1])}function na(e,t){return 1&e[t+1]?7:9}function ra(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function ia(e,t){return t+1<e.length&&ta(e,t)}function aa(e,t){if(ia(e,t)){const n=na(e,t);if(t+n>=e.length)return!1;const r=ra(e,t);if(r<=n)return!1;const i=t+r;return i===e.length||ia(e,i)}return!1}function sa(e,t,n,r,i){if(!e.samplerate){const a=function(e,t,n,r){const i=t[n+2],a=i>>2&15;if(a>12){const t=new Error(`invalid ADTS sampling index:${a}`);return void e.emit(v.ERROR,v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message})}const s=1+(i>>6&3),o=t[n+3]>>6&3|(1&i)<<2,l=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][a];let u,c=a;5!==s&&29!==s||(c-=3);const d=(14&c)>>1,f=(1&c)<<7|o<<3;let h=0;if(1===s&&a>=6){h=5;const e=a-3;u=[h<<3|d,f|(14&e)>>1,(1&e)<<7|8,0]}else u=[s<<3|d,f];const m="mp4a.40."+(h||s);return Ee.log(`manifest codec:${r}, parsed codec:${m}, channels:${o}, rate:${l} (ADTS object type:${s} sampling index:${a} esds config:[${u.join(",")}])`),{config:u,samplerate:l,channelCount:o,codec:m,parsedCodec:m,manifestCodec:r}}(t,n,r,i);if(!a)return;J(e,a)}}function oa(e){return 9216e4/e}function la(e,t,n,r,i){const a=r+i*oa(e.samplerate),s=function(e,t){const n=na(e,t);if(t+n<=e.length){const r=ra(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);let o;if(s){const{frameLength:r,headerLength:i}=s,l=i+r,u=Math.max(0,n+l-t.length);u?(o=new Uint8Array(l-i),o.set(t.subarray(n+i,t.length),0)):o=t.subarray(n+i,n+l);const c={unit:o,pts:a};return u||e.samples.push(c),{sample:c,length:l,missing:u}}const l=t.length-n;o=new Uint8Array(l),o.set(t.subarray(n,t.length),0);return{sample:{unit:o,pts:a},length:l,missing:-1}}let ua=function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e}({});function ca(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class da{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=vt(this.cachedData,e),this.cachedData=null);let n,r=Pe(e,0),i=r?r.length:0;const a=this._audioTrack,s=this._id3Track,o=r?He(r):void 0,l=e.length;for((null===this.basePTS||0===this.frameIndex&&m(o))&&(this.basePTS=fa(o,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ua.audioId3,duration:Number.POSITIVE_INFINITY});i<l;){if(this.canParse(e,i)){const t=this.appendFrame(a,e,i);t?(this.frameIndex++,this.lastPTS=t.sample.pts,i+=t.length,n=i):i=l}else Re(e,i)?(r=Pe(e,i),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ua.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,n=i):i++;if(i===l&&n!==l){const t=e.slice(n);this.cachedData?this.cachedData=vt(this.cachedData,t):this.cachedData=t}}return{audioTrack:a,videoTrack:ca(),id3Track:s,textTrack:ca()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:ca(),id3Track:this._id3Track,textTrack:ca()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const fa=(e,t,n)=>{if(m(e))return 90*e;return 9e4*t+(n?9e4*n.baseTime/n.timescale:0)},ha=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],ma=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],pa=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ga=[0,1,1,4];function ya(e,t,n,r,i){if(n+24>t.length)return;const a=_a(t,n);if(a&&n+a.frameLength<=t.length){const s=r+i*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:t.subarray(n,n+a.frameLength),pts:s,dts:s};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}function _a(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==a){const s=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*ha[14*(3===n?3-r:3===r?3:4)+i-1],u=ma[3*(3===n?0:2===n?1:2)+a],c=3===o?1:2,d=pa[n][r],f=ga[r],h=8*d*f,m=Math.floor(d*l/u+s)*f,p=Pt();return!!p&&p<=87&&2===r&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:c,frameLength:m,samplesPerFrame:h}}}function va(e,t){return!(255!==e[t]||224&~e[t+1]||!(6&e[t+1]))}function Ea(e,t){return t+1<e.length&&va(e,t)}function ba(e,t){if(t+1<e.length&&va(e,t)){const n=4,r=_a(e,t);let i=n;null!=r&&r.frameLength&&(i=r.frameLength);const a=t+i;return a===e.length||Ea(e,a)}return!1}class Ta{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new ir(t,!0)}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Jn,{start:0,end:e.byteLength})}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(a).then(i=>{const a=new Uint8Array(i);r.set(a,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)}).catch(n)}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t);let r=0;for(let t=32;t<e.length-16;t+=160,r+=16)n.set(e.subarray(t,t+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let t=32;t<e.length-16;t+=160,r+=16)e.set(n.subarray(r,r+16),t);return e}decryptAvcSample(e,t,n,r,i){const a=St(i.data),s=this.getAvcEncryptedData(a);this.decryptBuffer(s.buffer).then(s=>{i.data=this.getAvcDecryptedUnit(a,s),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)}).catch(r)}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void r();const i=e[t].units;for(;!(n>=i.length);n++){const a=i[n];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(e,t,n,r,a),this.decrypter.isSync())))return}}}}const Sa=(e,t)=>{let n=0,r=5;t+=r;const i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const o=Math.min(r,8),l=8-o;a[0]=4278190080>>>24+l<<l,i[0]=(s[0]&a[0])>>l,n=n?n<<o|i[0]:i[0],t+=1,r-=o}return n};class wa extends da{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=La(e,t,n,this.basePTS,this.frameIndex);if(-1!==r){return{sample:e.samples[e.samples.length-1],length:r,missing:0}}}static probe(e){if(!e)return!1;const t=Pe(e,0);if(!t)return!1;const n=t.length;if(11===e[n]&&119===e[n+1]&&void 0!==He(t)){if(Sa(e,n)<16)return!0;throw new Error("Containerless ec-3 is not supported")}return!1}}function La(e,t,n,r,i){if(n+8>t.length)return-1;if(11!==t[n]||119!==t[n+1])return-1;const a=t[n+4]>>6;if(a>=3)return-1;const s=[48e3,44100,32e3][a],o=63&t[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(n+l>t.length)return-1;const u=t[n+6]>>5;let c=0;2===u?c+=2:(1&u&&1!==u&&(c+=2),4&u&&(c+=2));const d=(t[n+6]<<8|t[n+7])>>12-c&1,f=[2,1,2,3,3,4,4,5][u]+d,h=t[n+5]>>3,m=7&t[n+5],p=new Uint8Array([a<<6|h<<1|m>>2,(3&m)<<6|u<<3|d<<2|o>>4,o<<4&224]),g=r+i*(1536/s*9e4),y=t.subarray(n,n+l);return e.config=p,e.channelCount=f,e.samplerate=s,e.samples.push({unit:y,pts:g}),l}const Aa=/\/emsg[-/]ID3/i;function Ma(e,t){return m(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class Da{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n,r=this.VideoSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!=(t=r)&&t.units){const e=r.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){const n=t.samples,r=n.length;if(!r)return void t.dropped++;{const t=n[r-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;if(0===r)return[];const i=e.naluState||0,a=-1===i?0:i,s=[];let o=0,l=0,u=-1,c=0;for(-1===i&&(u=0,c=this.getNALuType(t,0),l=1);l<r;){const n=t.indexOf(1,l);if(-1===n)break;l=n+1;let i=n;for(;i>0&&0===t[i-1];)i--;if(!(n-i+(0===i?a:0)<2)){if(u>=0)s.push({data:t.subarray(u,i),type:c});else{const n=this.getLastNalUnit(e.samples);n&&(i>0?n.data=vt(n.data,t.subarray(0,i)):a>0&&(n.data=n.data.subarray(0,n.data.byteLength-a)),n.state=0)}if(!(l<r)){o=-1,u=-1;break}u=l,c=this.getNALuType(t,l)}}if(-1!==o){let e=r;for(;e>0&&0===t[e-1];)e--;o=r-e+(0===e?a:0)}if(u>=0)s.push({data:t.subarray(u),type:c,state:o});else if(0===s.length&&-1!==o){const n=this.getLastNalUnit(e.samples);n&&(n.data=vt(n.data,t),n.state=o)}return e.naluState=o,s}}class ka{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&Ee.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}}class Ia extends Da{parsePES(e,t,n,r,i){const a=i.iframe,s=this.parseNALu(e,n.data,r);let o,l=this.VideoSample,u=!1;n.data=null,l&&s.length&&!e.audFound&&(this.pushAccessUnit(l,e),l=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.forEach(r=>{var i,s;switch(r.type){case 1:{if(a)break;let t=!1;o=!0;const i=r.data;if(u&&i.length>4){const e=this.readSliceType(i);2!==e&&4!==e&&7!==e&&9!==e||(t=!0)}var c;if(t)null!=(c=l)&&c.frame&&!l.key&&(this.pushAccessUnit(l,e),l=this.VideoSample=null);l||(l=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),l.frame=!0,l.key=t;break}case 5:o=!0,null!=(i=l)&&i.frame&&!l.key&&(this.pushAccessUnit(l,e),l=this.VideoSample=null),l||(l=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),l.key=!0,l.frame=!0;break;case 6:if(a)break;o=!0,Tt(r.data,1,n.pts,t.samples);break;case 7:{var d,f;o=!0,u=!0;const t=r.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(d=e.pixelRatio)?void 0:d[0])!==n.pixelRatio[0]||(null==(f=e.pixelRatio)?void 0:f[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];const r=t.subarray(1,4);let i="avc1.";for(let e=0;e<3;e++){let t=r[e].toString(16);t.length<2&&(t="0"+t),i+=t}e.codec=i}break}case 8:o=!0,e.pps=[r.data];break;case 9:o=!0,e.audFound=!0,null!=(s=l)&&s.frame&&(this.pushAccessUnit(l,e),l=null),l||(l=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:o=!0;break;default:o=!1}if(l&&o){l.units.push(r)}}),r&&l&&(this.pushAccessUnit(l,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new ka(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n,r=8,i=8;for(let a=0;a<e;a++)0!==i&&(n=t.readEG(),i=(r+n+256)%256),r=0===i?r:i}readSPS(e){const t=new ka(e);let n,r,i,a=0,s=0,o=0,l=0;const u=t.readUByte.bind(t),c=t.readBits.bind(t),d=t.readUEG.bind(t),f=t.readBoolean.bind(t),h=t.skipBits.bind(t),m=t.skipEG.bind(t),p=t.skipUEG.bind(t),g=this.skipScalingList.bind(this);u();const y=u();if(c(5),h(3),u(),p(),100===y||110===y||122===y||244===y||44===y||83===y||86===y||118===y||128===y){const e=d();if(3===e&&h(1),p(),p(),h(1),f())for(r=3!==e?8:12,i=0;i<r;i++)f()&&g(i<6?16:64,t)}p();const _=d();if(0===_)d();else if(1===_)for(h(1),m(),m(),n=d(),i=0;i<n;i++)m();p(),h(1);const v=d(),E=d(),b=c(1);0===b&&h(1),h(1),f()&&(a=d(),s=d(),o=d(),l=d());let T=[1,1];if(f()&&f()){switch(u()){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:T=[u()<<8|u(),u()<<8|u()]}}return{width:Math.ceil(16*(v+1)-2*a-2*s),height:(2-b)*(E+1)*16-(b?2:4)*(o+l),pixelRatio:T}}}class Ra extends Da{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let a,s=this.VideoSample,o=!1;n.data=null;const l=e=>(s=this.VideoSample=this.createVideoSample(e,n.pts,n.dts),s);i.forEach((r,i)=>{var u,c;if(this.startsNewAccessUnit(s,e,r,i)){this.pushAccessUnit(s,e);const t=r.type>=16&&r.type<=23;s=l(t),o=!1}switch(r.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=l(!1)),s.frame=!0,a=!0;break;case 16:case 17:case 18:case 21:case 22:case 23:var d;if(a=!0,o)null!=(d=s)&&d.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null);s||(s=l(!0)),s.key=!0,s.frame=!0;break;case 19:case 20:a=!0,null!=(u=s)&&u.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=l(!0)),s.key=!0,s.frame=!0;break;case 39:a=!0,Tt(r.data,2,n.pts,t.samples);break;case 32:a=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=J(e.params,this.readVPS(r.data)),this.initVPS=r.data),e.vps=[r.data];break;case 33:if(a=!0,o=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],r.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(r.data);e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={});for(const n in t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,r.data,e.vps),s||(s=l(!1));break;case 34:if(a=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];const t=this.readPPS(r.data);for(const n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,r.data,e.vps)}break;case 35:a=!0,e.audFound=!0,null!=(c=s)&&c.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=l(!1));break;default:a=!1}if(s&&a){s.units.push(r)}}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}startsNewAccessUnit(e,t,n,r){if(!e)return!1;if(!t.audFound&&0===r)return!0;if(!e.frame)return!1;const{type:i,data:a}=n;return!!(i>=32&&i<=35||39===i||i>=41&&i<=44||i>=48&&i<=55)||i<=31&&a.length>2&&!!(128&a[2])}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&3===e[r]&&0===e[r-1]&&0===e[r-2]||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new ka(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);return{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){const t=new ka(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),a=t.readBits(5),s=t.readUByte(),o=t.readUByte(),l=t.readUByte(),u=t.readUByte(),c=t.readUByte(),d=t.readUByte(),f=t.readUByte(),h=t.readUByte(),m=t.readUByte(),p=t.readUByte(),g=t.readUByte(),y=[],_=[];for(let e=0;e<n;e++)y.push(t.readBoolean()),_.push(t.readBoolean());if(n>0)for(let e=n;e<8;e++)t.readBits(2);for(let e=0;e<n;e++)y[e]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),_[e]&&t.readUByte();t.readUEG();const v=t.readUEG();3==v&&t.skipBits(1);const E=t.readUEG(),b=t.readUEG(),T=t.readBoolean();let S=0,w=0,L=0,A=0;T&&(S+=t.readUEG(),w+=t.readUEG(),L+=t.readUEG(),A+=t.readUEG());const M=t.readUEG(),D=t.readUEG(),k=t.readUEG();for(let e=t.readBoolean()?0:n;e<=n;e++)t.skipUEG(),t.skipUEG(),t.skipUEG();t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.readBoolean()){if(t.readBoolean())for(let e=0;e<4;e++)for(let n=0;n<(3===e?2:6);n++){if(t.readBoolean()){const n=Math.min(64,1<<4+(e<<1));e>1&&t.readEG();for(let e=0;e<n;e++)t.readEG()}else t.readUEG()}}t.readBoolean(),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const I=t.readUEG();let R=0;for(let e=0;e<I;e++){let n=!1;if(0!==e&&(n=t.readBoolean()),n){e===I&&t.readUEG(),t.readBoolean(),t.readUEG();let n=0;for(let e=0;e<=R;e++){const e=t.readBoolean();let r=!1;e||(r=t.readBoolean()),(e||r)&&n++}R=n}else{const e=t.readUEG(),n=t.readUEG();R=e+n;for(let n=0;n<e;n++)t.readUEG(),t.readBoolean();for(let e=0;e<n;e++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const e=t.readUEG();for(let n=0;n<e;n++){for(let e=0;e<k+4;e++)t.readBits(1);t.readBits(1)}}let C=0,P=1,O=1,x=!0,N=1,F=0;t.readBoolean(),t.readBoolean();let Y=!1;if(t.readBoolean()){if(t.readBoolean()){const e=t.readUByte();e>0&&e<16?(P=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(P=t.readBits(16),O=t.readBits(16))}t.readBoolean()&&t.readBoolean();if(t.readBoolean()){t.readBits(3),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())}t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),Y=t.readBoolean(),Y&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG());if(t.readBoolean()){N=t.readBits(32),F=t.readBits(32);t.readBoolean()&&t.readUEG();if(t.readBoolean()){const e=t.readBoolean(),r=t.readBoolean();let i=!1;(e||r)&&(i=t.readBoolean(),i&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),i&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let a=0;a<=n;a++){x=t.readBoolean();let n=!1;x||t.readBoolean()?t.readEG():n=t.readBoolean();const a=n?1:t.readUEG()+1;if(e)for(let e=0;e<a;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(r)for(let e=0;e<a;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),C=t.readUEG())}let U=E,B=b;if(T){let e=1,t=1;1===v?e=t=2:2==v&&(e=2),U=E-e*w-e*S,B=b-t*A-t*L}const j=r?["A","B","C"][r]:"",H=s<<24|o<<16|l<<8|u;let G=0;for(let e=0;e<32;e++)G=(G|(H>>e&1)<<31-e)>>>0;let Z=G.toString(16);1===a&&"2"===Z&&(Z="6");return{codecString:`hvc1.${j}${a}.${Z}.${i?"H":"L"}${g}.B0`,params:{general_tier_flag:i,general_profile_idc:a,general_profile_space:r,general_profile_compatibility_flags:[s,o,l,u],general_constraint_indicator_flags:[c,d,f,h,m,p],general_level_idc:g,bit_depth:M+8,bit_depth_luma_minus8:M,bit_depth_chroma_minus8:D,min_spatial_segmentation_idc:C,chroma_format_idc:v,frame_rate:{fixed:x,fps:F/N}},width:U,height:B,pixelRatio:[P,O]}}readPPS(e){const t=new ka(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2);t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const n=t.readBoolean(),r=t.readBoolean();let i=1;return r&&n?i=0:r?i=3:n&&(i=2),{parallelismType:i}}matchSPS(e,t){return ze(e).substring(3)===ze(t).substring(3)}}const Ca=188;class Pa{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this._klvPid=-1,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.videoIntegrityChecker=null,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=Pa.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(e){const t=e.length;let n=Math.min(940,t-Ca)+1,r=0;for(;r<n;){let i=!1,a=-1,s=0;for(let o=r;o<t;o+=Ca){if(71!==e[o]||t-o!==Ca&&71!==e[o+Ca]){if(s)return-1;break}if(s++,-1===a&&(a=o,0!==a&&(n=Math.min(a+18612,e.length-Ca)+1)),i||(i=0===Oa(e,o)),i&&s>1&&(0===a&&s>2||o+Ca>n))return a}r++}return-1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:Ve[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,r,i,a){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Pa.createTrack("video"),this._videoTrack.duration=r,this.videoIntegrityChecker="skip"===this.config.handleMpegTsVideoIntegrityErrors?new Ba(this.logger):null,this._audioTrack=Pa.createTrack("audio",r),this._id3Track=Pa.createTrack("id3"),this._txtTrack=Pa.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n,e&&this.demux(e,0,a,"SAMPLE-AES"===(null==i?void 0:i.method))}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n,r=!1,i=!1){let a;r||(this.sampleAes=null);const s=this._videoTrack,o=this.videoIntegrityChecker,l=this._audioTrack,u=this._id3Track,c=this._txtTrack,d=n.iframe;let f=s.pid,h=s.pesData,m=l.pid,p=u.pid,g=this._klvPid,y=l.pesData,_=u.pesData,v=null,E=null,b=this.pmtParsed,T=this._pmtId,S=e.length;if(this.remainderData&&(S=(e=vt(this.remainderData,e)).length,this.remainderData=null),S<Ca&&!i)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:u,textTrack:c};const w=Math.max(0,Pa.syncOffset(e));S-=(S-w)%Ca,S<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,S,e.buffer.byteLength-S));let L=0;for(let t=w;t<S;t+=Ca)if(71===e[t]){const i=!!(64&e[t+1]),S=Oa(e,t);let L;if((48&e[t+3])>>4>1){if(L=t+5+e[t+4],L===t+Ca)continue}else L=t+4;switch(S){case f:i&&(!h||null!=o&&o.isCorrupted||!(a=Ua(h,this.logger))||(this.readyVideoParser(s.segmentCodec),null!==this.videoParser&&this.videoParser.parsePES(s,c,a,!1,n)),h={data:[],size:0},null==o||o.reset(f)),null==o||o.handlePacket(e.subarray(t)),h&&(h.data.push(e.subarray(L,t+Ca)),h.size+=t+Ca-L);break;case m:if(d)break;if(i){if(y&&(a=Ua(y,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,a,n);break;case"mp3":this.parseMPEGPES(l,a);break;case"ac3":this.parseAC3PES(l,a)}y={data:[],size:0}}y&&(y.data.push(e.subarray(L,t+Ca)),y.size+=t+Ca-L);break;case p:if(d)break;i&&(_&&(a=Ua(_,this.logger))&&this.parseID3PES(u,a),_={data:[],size:0}),_&&(_.data.push(e.subarray(L,t+Ca)),_.size+=t+Ca-L);break;case g:if(d)break;i&&(v&&(a=Ua(v,this.logger))&&this.parseKlvPES(u,a),v={data:[],size:0}),v&&(v.data.push(e.subarray(L,t+Ca)),v.size+=t+Ca-L);break;case 0:i&&(L+=e[L]+1),T=this._pmtId=xa(e,L);break;case T:{i&&(L+=e[L]+1);const a=Na(e,L,this.typeSupported,r,this.observer,this.logger,this.config,n);f=a.videoPid,f>0&&(s.pid=f,s.segmentCodec=a.segmentVideoCodec),m=a.audioPid,m>0&&(l.pid=m,l.segmentCodec=a.segmentAudioCodec),p=a.id3Pid,p>0&&(u.pid=p),g=a.klvPid,g>0&&(this._klvPid=g),null===E||b||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${E}'. Backtracking to sync byte @${w} to parse all TS packets.`),E=null,t=w-188),b=this.pmtParsed=!0;break}case 17:case 8191:break;default:E=S}}else L++;L>0&&Fa(this.observer,new Error(`Found ${L} TS packet/s that do not start with 0x47`),n,void 0,this.logger),s.pesData=h,l.pesData=y,u.pesData=_;const A={audioTrack:l,videoTrack:s,id3Track:u,textTrack:c};return i&&this.extractRemainingSamples(A,n),A}flush(e,t){const{remainderData:n}=this;let r;return this.remainderData=null,r=n?this.demux(n,0,t,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(r,t),this.sampleAes?this.decrypt(r,this.sampleAes):r}extractRemainingSamples(e,t){const{audioTrack:n,videoTrack:r,id3Track:i,textTrack:a}=e,s=r.pesData,o=n.pesData,l=i.pesData,u=this.videoIntegrityChecker;let c;if(!s||null!=u&&u.isCorrupted||!(c=Ua(s,this.logger))?r.pesData=s:(this.readyVideoParser(r.segmentCodec),null!==this.videoParser&&(this.videoParser.parsePES(r,a,c,!0,t),r.pesData=null)),o&&(c=Ua(o,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,c,t);break;case"mp3":this.parseMPEGPES(n,c);break;case"ac3":this.parseAC3PES(n,c)}n.pesData=null}else null!=o&&o.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=o;l&&(c=Ua(l,this.logger))?(this.parseID3PES(i,c),i.pesData=null):i.pesData=l}demuxSampleAes(e,t,n,r){const i=this.demux(e,n,r,!0,!this.config.progressive),a=this.sampleAes=new Ta(this.observer,this.config,t);return this.decrypt(i,a)}readyVideoParser(e){null===this.videoParser&&("avc"===e?this.videoParser=new Ia:"hevc"===e&&(this.videoParser=new Ra))}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0,this.videoIntegrityChecker=null}parseAACPES(e,t,n){let r=0;const i=this.aacOverFlow;let a,s,o,l=t.data;if(i){this.aacOverFlow=null;const t=i.missing,n=i.sample.unit.byteLength;if(-1===t)l=vt(i.sample.unit,l);else{const a=n-t;i.sample.unit.set(l.subarray(0,t),a),e.samples.push(i.sample),r=i.missing}}for(a=r,s=l.length;a<s-1&&!ia(l,a);a++);if(a!==r){let e;const t=a<s-1;if(e=t?`AAC PES did not start with ADTS header,offset:${a}`:"No ADTS header found in AAC PES",Fa(this.observer,new Error(e),n,t,this.logger),!t)return}if(sa(e,this.observer,l,a,this.audioCodec),void 0!==t.pts)o=t.pts;else{if(!i)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");{const t=oa(e.samplerate);o=i.sample.pts+t}}let u,c=0;for(;a<s;){if(u=la(e,l,a,o,c),a+=u.length,u.missing){this.aacOverFlow=u;break}for(c++;a<s-1&&!ia(l,a);a++);}}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,a=0;const s=t.pts;if(void 0!==s)for(;a<r;)if(Ea(n,a)){const t=ya(e,n,a,s,i);if(!t)break;a+=t.length,i++}else a++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(void 0===r)return void this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");const i=n.length;let a,s=0,o=0;for(;o<i&&(a=La(e,n,o,r,s++))>0;)o+=a}}parseID3PES(e,t){if(void 0===t.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=J({},t,{type:this._videoTrack?ua.emsg:ua.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}parseKlvPES(e,t){var n;const r=null!=(n=t.pts)?n:t.dts;if(void 0===r)return void this.logger.warn("[tsdemuxer]: KLV PES unknown PTS and DTS");const i=t.data;if(i.length<16)return void this.logger.warn("[tsdemuxer]: KLV PES payload too short");let a=0;for(;a<i.length;){var s;if(a+16>i.length)break;const n=a;if(a+=16,a>=i.length)break;const o=i[a];a+=1;let l=0;if(128&o){const e=127&o;if(0===e||e>4||a+e>i.length){this.logger.warn("[tsdemuxer]: Invalid KLV length encoding");break}for(let t=0;t<e;t++)l=l<<8|i[a+t];a+=e}else l=o;if(a+l>i.length){this.logger.warn("[tsdemuxer]: KLV value extends beyond PES payload");break}const u=a+l,c=i.subarray(n,u),d={data:c,len:c.byteLength,pts:r,dts:null!=(s=t.dts)?s:r,type:ua.misbklv,duration:Number.POSITIVE_INFINITY};e.samples.push(d),a=u}}}function Oa(e,t){return((31&e[t+1])<<8)+e[t+2]}function xa(e,t){return(31&e[t+10])<<8|e[t+11]}function Na(e,t,n,r,i,a,s,o){const l={audioPid:-1,videoPid:-1,id3Pid:-1,klvPid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},u=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<u;){const u=Oa(e,t),c=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!r){Ya("ADTS AAC",a);break}case 15:-1===l.audioPid&&(l.audioPid=u);break;case 21:-1===l.id3Pid&&(l.id3Pid=u);break;case 219:if(!r){Ya("H.264",a);break}case 27:-1===l.videoPid&&(l.videoPid=u);break;case 3:case 4:n.mpeg||n.mp3?-1===l.audioPid&&(l.audioPid=u,l.segmentAudioCodec="mp3"):a.log("MPEG audio found, not supported in this browser");break;case 193:if(!r){Ya("AC-3",a);break}case 129:n.ac3?-1===l.audioPid&&(l.audioPid=u,l.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(c>0){let r=t+5,i=c;for(;i>2;){switch(e[r]){case 106:-1===l.audioPid&&(!0!==n.ac3?a.log("AC-3 audio found, not supported in this browser for now"):(l.audioPid=u,l.segmentAudioCodec="ac3"));break;case 5:-1===l.klvPid&&s.enableEmsgKLVMetadata&&(l.klvPid=u,a.log(`KLV metadata PID found: ${u}`))}const t=e[r+1]+2;r+=t,i-=t}}break;case 194:case 135:return Fa(i,new Error("Unsupported EC-3 in M2TS found"),o,void 0,a),l;case 36:-1===l.videoPid&&(l.videoPid=u,l.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"))}t+=c+5}return l}function Fa(e,t,n,r,i){i.warn(`parsing error: ${t.message}`),e.emit(v.ERROR,v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_PARSING_ERROR,fatal:!1,levelRetry:r,chunkMeta:n,error:t,reason:t.message})}function Ya(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function Ua(e,t){let n,r,i,a,s,o=0;const l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=vt(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(r=(n[4]<<8)+n[5],r&&r>e.size-6)return null;const u=n[7];192&u&&(a=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&u?(s=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,a-s>54e5&&(t.warn(`${Math.round((a-s)/9e4)}s delta between PTS and DTS, align them`),a=s)):s=a),i=n[8];let c=i+9;if(e.size<=c)return null;e.size-=c;const d=new Uint8Array(e.size);for(let e=0,t=l.length;e<t;e++){n=l[e];let t=n.byteLength;if(c){if(c>t){c-=t;continue}n=n.subarray(c),t-=c,c=0}d.set(n,o),o+=t}return r&&(r-=i+3),{data:d,pts:a,dts:s,len:r}}return null}class Ba{constructor(e){this.logger=void 0,this.pid=0,this.lastContinuityCounter=-1,this.integrityState="ok",this.logger=e}get isCorrupted(){return"ok"!==this.integrityState}reset(e){this.pid=e,this.lastContinuityCounter=-1,this.integrityState="ok"}handlePacket(e){if(e.byteLength<4)return;const t=Oa(e,0);if(t!==this.pid)return void this.logger.debug(`Packet PID mismatch, expected ${this.pid} got ${t}`);const n=(48&e[3])>>4;if(0===n)return;const r=15&e[3],i=this.lastContinuityCounter;this.lastContinuityCounter=r;const a=!!(1&n);if(!!(2&n)&&0!=e[4]&&!!(128&e[5]))return;if(i<0)return;const s=a?i+1&15:i;return r!==s?(this.logger.warn(`MPEG-TS Continuity Counter check failed for PID='${t}', CC=${r}, Expected-CC=${s} Last-CC=${i}`),void(this.integrityState="cc-failed")):128&e[1]?(this.logger.warn(`MPEG-TS Packet had TEI flag set for PID='${t}'`),void(this.integrityState="tei-bit")):void 0}}class ja{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}var Ha;const Ga={video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])},Za=new Uint8Array([0,0,0,0,0,0,0,0]),$a=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),za=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),qa=new Uint8Array([0,0,0,0,0,0,0,0]),Wa=new Uint8Array([0,0,0,0,0,0,0,1]),Va=new Uint8Array([105,115,111,109]),Ka=new Uint8Array([97,118,99,49]),Xa=new Uint8Array([0,0,0,1]);class Qa{static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const a=new Uint8Array(n);for(tt(a,0,n),tt(a,4,e),r=0,n=8;r<i;r++)a.set(t[r],n),n+=t[r].byteLength;return a}static hdlr(e){return Qa.box(We.hdlr,Ga[e])}static mdat(e){return Qa.box(We.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(qe+1)),r=Math.floor(t%(qe+1));return Qa.box(We.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,85,196,0,0]))}static mdia(e){return Qa.box(We.mdia,Qa.mdhd(e.timescale||0,e.duration||0),Qa.hdlr(e.type),Qa.minf(e))}static mfhd(e){return Qa.box(We.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?Qa.box(We.minf,Qa.box(We.smhd,qa),Qa.DINF,Qa.stbl(e)):Qa.box(We.minf,Qa.box(We.vmhd,za),Qa.DINF,Qa.stbl(e))}static moof(e,t,n){return Qa.box(We.moof,Qa.mfhd(e),Qa.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Qa.trak(e[t]);return Qa.box.apply(null,[We.moov,Qa.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Qa.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Qa.trex(e[t]);return Qa.box.apply(null,[We.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(qe+1)),r=Math.floor(t%(qe+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Qa.box(We.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Qa.box(We.sdtp,n)}static stbl(e){return Qa.box(We.stbl,Qa.stsd(e),Qa.box(We.stts,Za),Qa.box(We.stsc,Za),Qa.box(We.stsz,$a),Qa.box(We.stco,Za))}static avc1(e){let t,n,r,i=[],a=[];for(t=0;t<e.sps.length;t++)n=e.sps[t],r=n.byteLength,i.push(r>>>8&255),i.push(255&r),i=i.concat(Array.prototype.slice.call(n));for(t=0;t<e.pps.length;t++)n=e.pps[t],r=n.byteLength,a.push(r>>>8&255),a.push(255&r),a=a.concat(Array.prototype.slice.call(n));const s=Qa.box(We.avcC,new Uint8Array([1,i[3],i[4],i[5],255,224|e.sps.length].concat(i).concat([e.pps.length]).concat(a))),o=e.width,l=e.height,u=e.pixelRatio[0],c=e.pixelRatio[1];return Qa.box(We.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o>>8&255,255&o,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,Qa.box(We.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Qa.box(We.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,c>>24,c>>16&255,c>>8&255,255&c])))}static esds(e){const t=e.config,n=t.length;return new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5,n,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return Qa.box(We.mp4a,Qa.audioStsd(e),Qa.box(We.esds,Qa.esds(e)))}static mp3(e){return Qa.box(We[".mp3"],Qa.audioStsd(e))}static ac3(e){return Qa.box(We["ac-3"],Qa.audioStsd(e),Qa.box(We.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return Qa.box(We.stsd,Wa,Qa.mp4a(e));if("ac3"===t&&e.config)return Qa.box(We.stsd,Wa,Qa.ac3(e));if("mp3"===t&&"mp3"===e.codec)return Qa.box(We.stsd,Wa,Qa.mp3(e))}else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return Qa.box(We.stsd,Wa,Qa.avc1(e));if("hevc"===t&&e.vps)return Qa.box(We.stsd,Wa,Qa.hvc1(e))}throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,a=Math.floor(n/(qe+1)),s=Math.floor(n%(qe+1));return Qa.box(We.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,i>>8&255,255&i,0,0]))}static traf(e,t){const n=Qa.sdtp(e),r=e.id,i=Math.floor(t/(qe+1)),a=Math.floor(t%(qe+1));return Qa.box(We.traf,Qa.box(We.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r])),Qa.box(We.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a])),Qa.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Qa.box(We.trak,Qa.tkhd(e),Qa.mdia(e))}static trex(e){const t=e.id;return Qa.box(We.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,a=new Uint8Array(i);let s,o,l,u,c,d;for(t+=8+i,a.set(["video"===e.type?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),s=0;s<r;s++)o=n[s],l=o.duration,u=o.size,c=o.flags,d=o.cts,a.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.paddingValue<<1|c.isNonSync,61440&c.degradPrio,15&c.degradPrio,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s);return Qa.box(We.trun,a)}static initSegment(e){const t=Qa.moov(e);return vt(Qa.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let i=r.length;for(let e=0;e<n.length;e+=1){i+=3;for(let t=0;t<n[e].length;t+=1)i+=2+n[e][t].length}const a=new Uint8Array(i);a.set(r,0),i=r.length;const s=n.length-1;for(let e=0;e<n.length;e+=1){a.set(new Uint8Array([32+e|(e===s?128:0),0,n[e].length]),i),i+=3;for(let t=0;t<n[e].length;t+=1)a.set(new Uint8Array([n[e][t].length>>8,255&n[e][t].length]),i),i+=2,a.set(n[e][t],i),i+=n[e][t].length}const o=Qa.box(We.hvcC,a),l=e.width,u=e.height,c=e.pixelRatio[0],d=e.pixelRatio[1];return Qa.box(We.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,Qa.box(We.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Qa.box(We.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))}}Ha=Qa,Qa.FTYP=Ha.box(We.ftyp,Va,Xa,Va,Ka),Qa.DINF=Ha.box(We.dinf,Ha.box(We.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])));function Ja(e,t,n=1,r=!1){const i=e*t*n;return r?Math.round(i):i}function es(e,t=!1){return Ja(e,1e3,1/9e4,t)}function ts(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const ns=8589934592;function rs(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1,paddingValue:0}}}class is extends me{constructor(e,t,n,r){super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){const t=this._initPTS;t&&e&&e.trackId===t.trackId&&e.baseTime===t.baseTime&&e.timescale===t.timescale||this.log(`Reset initPTS: ${t?ts(t):t} > ${e?ts(e):e}`),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((e,r)=>{let i=r.pts,a=i-e;return a<-4294967296&&(t=!0,i=as(i,n),a=i-e),a>0?e:i},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,a,s,o,l){let u,c,d,f,h,m,p=i,g=i;const y=!l.iframe&&e.pid>-1,_=t.pid>-1,v=t.samples.length,E=e.samples.length>0,b=s&&v>0||v>1;if((!y||E)&&(!_||b)||this.ISGenerated||s){if(this.ISGenerated){var T,S,w,L;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(T=t.pixelRatio)?void 0:T[0])!==(null==(S=e.pixelRatio)?void 0:S[0])||(null==(w=t.pixelRatio)?void 0:w[1])!==(null==(L=e.pixelRatio)?void 0:L[1]))||!e&&b||null===this.nextAudioTs&&E)&&this.resetInitSegment()}this.ISGenerated||(d=this.generateIS(e,t,i,a));const n=this.isVideoContiguous;let r,s=-1;if(b&&(s=function(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!n&&this.config.forceKeyFrameOnDiscontinuity))if(m=!0,s>0){this.warn(`Dropped ${s} out of ${v} video samples due to a missing keyframe`);const e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(s),t.dropped+=s,g+=(t.samples[0].pts-e)/t.inputTimeScale,r=g}else-1===s&&(this.warn(`No keyframe found out of ${v} video samples`),m=!1);if(this.ISGenerated){if(E&&b&&i){const n=this.getVideoStartPts(t.samples),r=(as(e.samples[0].pts,n)-n)/t.inputTimeScale;p+=Math.max(0,r),g+=Math.max(0,-r)}if(E){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),d=this.generateIS(e,t,i,a)),c=this.remuxAudio(e,p,this.isAudioContiguous,a,_||b||o===B?g:void 0,l),b){const r=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),d=this.generateIS(e,t,i,a)),u=this.remuxVideo(t,g,n,r,l)}}else b&&(u=this.remuxVideo(t,g,n,0,l));u&&(u.firstKeyFrame=s,u.independent=-1!==s,u.firstKeyFramePTS=r)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=ss(n,i,this._initPTS,this._initDTS)),r.samples.length&&(f=os(r,i,this._initPTS))),{audio:c,video:u,initSegment:d,independent:m,text:f,id3:h}}computeInitPts(e,t,n,r){const i=Math.round(n*t);let a=as(e,i);if(a<i)for(this.log(`Adjusting PTS for rollover in timeline near ${(i-a)/t} ${r}`);a<i;)a+=ns;return a-i}generateIS(e,t,n,r){const i=e.samples,a=t.samples,s=this.typeSupported,o={},l=this._initPTS,u=!l||r;let c,d,f,h="audio/mp4",p=-1;if(u&&(c=d=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":s.mpeg?(h="audio/mpeg",e.codec=""):s.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}if(o.audio={id:"audio",container:h,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&s.mpeg?new Uint8Array(0):Qa.initSegment([e]),metadata:{channelCount:e.channelCount}},u){p=e.id,f=e.inputTimeScale;const t=this.computeInitPts(i[0].pts,f,n,"audio");(!l||f!==l.timescale||0===n&&t<l.baseTime)&&(c=d=t)}}if(t.sps&&t.pps&&a.length){if(t.timescale=t.inputTimeScale,o.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Qa.initSegment([t]),metadata:{width:t.width,height:t.height}},u){p=t.id,f=t.inputTimeScale;const e=this.getVideoStartPts(a),r=as(a[0].dts,e),i=this.computeInitPts(r,f,n,"video"),s=this.computeInitPts(e,f,n,"video");(!l||f!==l.timescale||m(c)||0===n&&s<l.baseTime)&&(d=Math.min(d,i),c=Math.min(c,i))}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(o).length)return this.ISGenerated=!0,u&&m(c)?(l&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${c/f} != initPTS: ${l.baseTime/l.timescale} (${l.baseTime}/${l.timescale}) trackId: ${l.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${c/f} (${c}/${f}) trackId: ${p}`),this._initPTS={baseTime:c,timescale:f,trackId:p},this._initDTS={baseTime:d,timescale:f,trackId:p}):c=f=void 0,{tracks:o,initPTS:c,timescale:f,trackId:p}}remuxVideo(e,t,n,r,i){const a=e.inputTimeScale,s=e.samples,o=[],l=s.length,u=this._initPTS,c=u.baseTime*a/u.timescale;let d,f,h=this.nextVideoTs,m=8,p=this.videoSampleDuration,g=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY,b=!1;if(!n||null===h){const e=c+t*a,r=s[0].pts-as(s[0].dts,s[0].pts);Pt()&&null!==h&&Math.abs(e-r-(h+c))<15e3?n=!0:h=e-r-c}const T=h+c;for(let e=0;e<l;e++){const t=s[e];t.pts=as(t.pts,T),t.dts=as(t.dts,T),t.dts<s[e>0?e-1:e].dts&&(b=!0)}b&&s.sort(function(e,t){const n=e.dts-t.dts,r=e.pts-t.pts;return n||r}),d=s[0].dts,f=s[s.length-1].dts;const S=f-d,w=S?Math.round(S/(l-1)):p||e.inputTimeScale/30;if(n){const n=d-T,r=n>w,i=n<-1;if((r||i)&&(r?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${es(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${es(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!i||T>=s[0].pts||Pt())){d=T;const e=s[0].pts-n;if(r)s[0].dts=d,s[0].pts=e;else{let t=!0;for(let r=0;r<s.length&&!(s[r].dts>e&&t);r++){const e=s[r].pts;if(s[r].dts-=n,s[r].pts-=n,r<s.length-1){const n=s[r+1].pts;t=n<=s[r].pts==n<=e}}}this.log(`Video: Initial PTS/DTS adjusted: ${es(e,!0)}/${es(d,!0)}, delta: ${es(n,!0)} ms`)}}d=Math.max(0,d);let L=0,A=0,M=d;for(let e=0;e<l;e++){const t=s[e],n=t.units,r=n.length;let i=0;for(let e=0;e<r;e++)i+=n[e].data.length;A+=i,L+=r,t.length=i,t.dts<M?(t.dts=M,M+=w/4|0||1):M=t.dts,g=Math.min(t.pts,g),E=Math.max(t.pts,E)}f=s[l-1].dts;const D=A+4*L+8;let k;try{k=new Uint8Array(D)}catch(e){return void this.observer.emit(v.ERROR,v.ERROR,{type:y.MUX_ERROR,details:_.REMUX_ALLOC_ERROR,fatal:!1,chunkMeta:i,error:e,bytes:D,reason:`fail allocating video mdat ${D}`})}tt(k,0,D),tt(k,4,We.mdat);let I=!1,R=Number.POSITIVE_INFINITY,C=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,O=Number.NEGATIVE_INFINITY;for(let e=0;e<l;e++){const t=s[e],u=t.units;let d,f=0;for(let e=0,t=u.length;e<t;e++){const t=u[e],n=t.data,r=t.data.byteLength;tt(k,m,r),m+=4,k.set(n,m),m+=r,f+=4+r}if(e<l-1)p=s[e+1].dts-t.dts,d=s[e+1].pts-t.pts;else{const n=this.config,i=e>0?t.dts-s[e-1].dts:w;if(d=e>0?t.pts-s[e-1].pts:w,n.stretchShortVideoTrack&&null!==this.nextAudioTs){const e=Math.floor(n.maxBufferHole*a),s=(r?g+r*a:this.nextAudioTs+c)-t.pts;s>e?(p=s-i,p<0?p=i:I=!0,this.log(`It is approximately ${s/90} ms to the next segment; using duration ${p/90} ms for the last video frame.`)):p=i}else p=i}let h=Math.round(t.pts-t.dts);if(R=Math.min(R,p),P=Math.max(P,p),C=Math.min(C,d),O=Math.max(O,d),!n&&0===e&&h>p){const e=Math.round(h/w)*w;e-h===1&&(this.log(`pad first CTS ${h} -> ${e} of sn: ${i.sn}`),h=e)}o.push(rs(t.key,p,f,h))}if(o.length){const e=Pt();if(e){if(e<70){const e=o[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(function(){if(void 0===Rt){const e=Mt.match(/Safari\/(\d+)/i);Rt=e?parseInt(e[1]):0}return Rt}()&&O-C<P-R&&w/P<.025&&0===o[0].cts){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let e=d;for(let t=0,n=o.length;t<n;t++){const r=e+o[t].duration,i=e+o[t].cts;if(t<n-1){const e=r+o[t+1].cts;o[t].duration=e-i}else o[t].duration=t?o[t-1].duration:w;o[t].cts=0,e=r}}}p=I||!p?w:p;const x=f+p;this.nextVideoTs=h=x-c,this.videoSampleDuration=p,this.isVideoContiguous=!0,i.iframe&&(1===o.length?(o[0].duration=p=i.duration*a,this.nextVideoTs=h=d+p-c):this.warn(`Not adjusting IFrame duration (sample count ${o.length})`));const N={data1:Qa.moof(i.sn,d,J(e,{samples:o})),data2:k,startPTS:(g-c)/a,endPTS:(E+p-c)/a,startDTS:(d-c)/a,endDTS:h/a,type:"video",hasAudio:!1,hasVideo:!0,nb:o.length,dropped:e.dropped};return e.samples=[],e.dropped=0,N}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}remuxAudio(e,t,n,r,i,a){const s=e.inputTimeScale,o=s/(e.samplerate?e.samplerate:s),l=this.getSamplesPerFrame(e),u=l*o,c=this._initPTS,d="mp3"===e.segmentCodec&&this.typeSupported.mpeg,f=[],h=void 0!==i;let m=e.samples,p=d?0:8,g=this.nextAudioTs||-1;const E=c.baseTime*s/c.timescale,b=E+t*s;if(this.isAudioContiguous=n=n||m.length&&g>0&&(r&&Math.abs(b-(g+E))<9e3||Math.abs(as(m[0].pts,b)-(g+E))<20*u),m.forEach(function(e){e.pts=as(e.pts,b)}),!n||g<0){const e=m.length;if(m=m.filter(e=>e.pts>=0),e!==m.length&&this.warn(`Removed ${m.length-e} of ${e} samples (initPTS ${E} / ${s})`),!m.length)return;g=0===i?0:r&&!h?Math.max(0,b-E):m[0].pts-E}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let n=0,r=g+E;n<m.length;n++){const i=m[n],a=i.pts,o=a-r,l=Math.abs(1e3*o/s);if(o<=-t*u&&h)0===n&&(this.warn(`Audio frame @ ${(a/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*o/s)} ms.`),this.nextAudioTs=g=a-E,r=a);else if(o>=t*u&&l<1e4&&h){let t=Math.round(o/u);for(r=a-t*u;r<0&&t&&u;)t--,r+=u;0===n&&(this.nextAudioTs=g=r-E),this.warn(`Injecting ${t} audio frames @ ${((r-E)/s).toFixed(3)}s due to ${Math.round(1e3*o/s)} ms gap.`);for(let a=0;a<t;a++){let t=ja.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);t||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),t=i.unit.subarray()),m.splice(n,0,{unit:t,pts:r}),r+=u,n++}}i.pts=r,r+=u}}let T,S=null,w=null,L=0,A=m.length;for(;A--;)L+=m[A].unit.byteLength;for(let t=0,r=m.length;t<r;t++){const r=m[t],i=r.unit;let s=r.pts;if(null!==w){f[t-1].duration=Math.round((s-w)/o)}else{if(n&&"aac"===e.segmentCodec&&(s=g+E),S=s,!(L>0))return;L+=p;try{T=new Uint8Array(L)}catch(e){return void this.observer.emit(v.ERROR,v.ERROR,{type:y.MUX_ERROR,details:_.REMUX_ALLOC_ERROR,fatal:!1,chunkMeta:a,error:e,bytes:L,reason:`fail allocating audio mdat ${L}`})}d||(tt(T,0,L),tt(T,4,We.mdat))}T&&T.set(i,p);const u=i.byteLength;p+=u,f.push(rs(!0,l,u,0)),w=s}const M=f.length;if(!M)return;const D=f[f.length-1];g=w-E,this.nextAudioTs=g+o*D.duration;const k=d?new Uint8Array(0):Qa.moof(e.sequenceNumber++,S/o,J({},e,{samples:f}));e.samples=[];const I=(S-E)/s,R=this.nextAudioTs/s,C={data1:k,data2:T,startPTS:I,endPTS:R,startDTS:I,endDTS:R,type:"audio",hasAudio:!0,hasVideo:!1,nb:M};return this.isAudioContiguous=!0,C}}function as(e,t){let n;if(null===t)return e;for(n=t<e?-8589934592:ns;Math.abs(e-t)>4294967296;)e+=n;return e}function ss(e,t,n,r){const i=e.samples.length;if(!i)return;const a=e.inputTimeScale;for(let s=0;s<i;s++){const i=e.samples[s];i.pts=as(i.pts-n.baseTime*a/n.timescale,t*a)/a,i.dts=as(i.dts-r.baseTime*a/r.timescale,t*a)/a}const s=e.samples;return e.samples=[],{samples:s}}function os(e,t,n){const r=e.samples.length;if(!r)return;const i=e.inputTimeScale;for(let a=0;a<r;a++){const r=e.samples[a];r.pts=as(r.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort((e,t)=>e.pts-t.pts);const a=e.samples;return e.samples=[],{samples:a}}function ls(e,t,n=!1){return void 0!==(null==e?void 0:e.start)?(e.start+(n?e.duration:0))/e.timescale:t}function us(e,t,n){const r=e.codec;if(r&&r.length>4)return r;if(t===H){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r){return Zt(r,!1)}return n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"}return"mjpg"===r?r:(n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let cs;try{cs=self.performance.now.bind(self.performance)}catch(e){cs=Date.now}const ds=[{demux:class{constructor(e,t,n,r=Ee){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.initData=void 0,this.logger=void 0,this.config=t,this.logger=r}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=ca("video",1),a=this.audioTrack=ca("audio",1),s=this.txtTrack=ca("text",1);if(this.id3Track=ca("id3",1),this.initData=void 0,this.timeOffset=0,null==e||!e.byteLength)return;const o=this.initData=lt(e);if(o.video){const{id:e,timescale:t,codec:n,supplemental:r}=o.video;i.id=e,i.timescale=s.timescale=t,i.codec=n,i.supplemental=r}if(o.audio){const{id:e,timescale:t,codec:n}=o.audio;a.id=e,a.timescale=t,a.codec=n}s.id=Ve.text,i.sampleDuration=0,i.duration=a.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return function(e,t){const n=e.byteLength;for(let r=0;r<n;){const i=Xe(e,r);if(i>8&&Xe(e,r+4)===We[t])return!0;r=i>1?r+i:n}return!1}(e,"moof")}demux(e,t,n){this.timeOffset=t;let r=e;const i=this.videoTrack,a=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=vt(this.remainderData,e));const t=function(e){const t={valid:null,remainder:null},n=at(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}(r);this.remainderData=t.remainder,i.samples=t.valid||new Uint8Array}else i.samples=r;const s=this.extractID3Track(i,t),o=this.parseFragment(i,a,t,n);return{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack,initData:this.initData,sampleData:o}}flush(e,t){const n=this.timeOffset,r=this.videoTrack,i=this.txtTrack;r.samples=this.remainderData||new Uint8Array,this.remainderData=null;const a=this.extractID3Track(r,this.timeOffset),s=this.parseFragment(r,i,n,t);return{videoTrack:r,audioTrack:ca(),id3Track:a,textTrack:ca(),initData:this.initData,sampleData:s}}parseFragment(e,t,n,r){const i=this.initData;if(i&&r){const{samples:a,sampleData:s}=function(e,t,n,r,i=!1){const a=[];return{samples:a,sampleData:{includeSampleDetails:i,tracks:_t(t.samples,n,r,i,{isHEVCFlavor:Et(t.codec),samples:a,timeOffset:e,timescale:t.timescale,trackId:t.id})}}}(n,e,i,this.logger,r.iframe);return t.samples=a,s}t.samples=function(e,t){const n=[],r=t.samples,i=t.timescale,a=t.id;let s=!1;return at(r,["moof"]).map(o=>{const l=o.byteOffset-8;at(o,["traf"]).map(o=>{const u=at(o,["tfdt"]).map(e=>{const t=e[0];let n=Xe(e,4);return 1===t&&(n*=Math.pow(2,32),n+=Xe(e,8)),n/i})[0];return void 0!==u&&(e=u),at(o,["tfhd"]).map(u=>{const c=Xe(u,4),d=16777215&Xe(u,0),f=!!(1&d);let h=0;const m=!!(2&d),p=!!(8&d);let g=0;const y=!!(16&d);let _=0;const v=!!(32&d),E=!f&&!!(131072&d);let b=8;c===a&&(f?(h=Xe(u,b),b+=4,h*=Math.pow(2,32),h+=Xe(u,b),b+=4):E&&(h=l),m&&(b+=4),p&&(g=Xe(u,b),b+=4),y&&(_=Xe(u,b),b+=4),v&&(b+=4),"video"===t.type&&(s=Et(t.codec)),at(o,["trun"]).map(a=>{const o=a[0],l=16777215&Xe(a,0),u=!!(1&l);let c=0;const d=!!(4&l),f=!!(256&l);let m=0;const p=!!(512&l);let y=0;const v=!!(1024&l),E=!!(2048&l);let b=0;const T=Xe(a,4);let S=8;u&&(c=Xe(a,S),S+=4),d&&(S+=4);let w=h+c;for(let l=0;l<T;l++){if(f?(m=Xe(a,S),S+=4):m=g,p?(y=Xe(a,S),S+=4):y=_,v&&(S+=4),E&&(b=0===o?Xe(a,S):et(a,S),S+=4),t.type===G){let t=0;for(;t<y;){const a=Xe(r,w);w+=4,bt(s,r[w])&&Tt(r.subarray(w,w+a),s?2:1,e+b/i,n),w+=a,t+=a+4}}e+=m/i}}))})})}),n}(n,e)}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=at(e.samples,["emsg"]);r&&r.forEach(e=>{const r=function(e){const t=e[0];let n,r="",i="",a=0,s=0,o=0,l=0,u=4;if(0===t){const t=Je(e,u),n=null!==t?Je(e,u+t.length):null;null!==t&&null!==n?(r=t,i=n,u+=t.length+n.length,a=Xe(e,u),u+=4,s=Xe(e,u),u+=4,o=Xe(e,u),u+=4,l=Xe(e,u),u+=4):(Ee.warn(`Unterminated ${null===t?"scheme_id_uri":"value"} in parsing emsg box: version 0 box ends inside a string, dropping all of its fields`),u=e.length)}else if(1===t){a=Xe(e,u),u+=4;const t=Xe(e,u);u+=4;const s=Xe(e,u);u+=4,n=2**32*t+s,p(n)||(n=Number.MAX_SAFE_INTEGER,Ee.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Xe(e,u),u+=4,l=Xe(e,u),u+=4;const c=Je(e,u),d=null!==c?Je(e,u+c.length):null;null!==c&&(r=c,u+=c.length),null!==d?(i=d,u+=d.length):(Ee.warn(`Unterminated ${null===c?"scheme_id_uri":"value"} in parsing emsg box: version 1 box ends inside a string, dropping its ${null===c?"strings and payload":"value and payload"}`),u=e.length)}return{schemeIdUri:r,value:i,timeScale:a,presentationTime:n,presentationTimeDelta:s,eventDuration:o,id:l,payload:e.subarray(u,e.byteLength)}}(e);if(Aa.test(r.schemeIdUri)){const e=Ma(r,t);let i=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;i<=.001&&(i=Number.POSITIVE_INFINITY);const a=r.payload;n.samples.push({data:a,len:a.byteLength,dts:e,pts:e,type:ua.emsg,duration:i})}else if(this.config.enableEmsgKLVMetadata){const e=this.config.emsgKLVSchemaUri||ua.misbklv;if(r.schemeIdUri.startsWith(e)){const e=Ma(r,t);n.samples.push({data:r.payload,len:r.payload.byteLength,dts:e,pts:e,type:ua.misbklv,duration:Number.POSITIVE_INFINITY})}}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0,this.initData=void 0}},remux:class extends me{constructor(e,t,n,r){super("passthrough-remuxer",r),this.observer=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1,this.videoOnlyRemux=!1,this.decryptdata=null,this.pendingInitSegment=void 0,this.observer=e}destroy(){this.observer&&this.observer.removeAllListeners(),this.observer=null}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.decryptdata=r,this.pendingInitSegment=e,this.videoOnlyRemux=!1,this.initTracks=void 0,this.initData=void 0,this.emitInitSegment=!0}generateInitSegment(e,t,n){this.videoOnlyRemux=!1;let{audioCodec:r,videoCodec:i}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const{audio:a,video:s}=this.initData=n||lt(e);if(t)!function(e,t){if(!e||!t)return;const n=t.keyId;16===(null==n?void 0:n.byteLength)&&t.isCommonEncryption&&mt(e,(e,t)=>{const r=e.subarray(8,24);r.some(e=>0!==e)||(Ee.log(`[eme] Patching keyId in 'enc${t?"a":"v"}>sinf>>tenc' box: ${Ge(r)} -> ${Ge(n)}`),e.set(n,8))})}(e,t);else{const e=a||s;null!=e&&e.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${e.codec}")!`)}a&&(r=us(a,H,this)),s&&(i=us(s,G,this));const o={};a&&s?o.audiovideo={container:"video/mp4",codec:r+","+i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:a?o.audio={container:"audio/mp4",codec:r,encrypted:a.encrypted,initSegment:e,id:"audio"}:s?o.video={container:"video/mp4",codec:i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=o}remux(e,t,n,r,i,a,s,o,l,u,c){var d,f;let{initPTS:h,lastEndTime:p}=this;const g={audio:void 0,video:void 0,text:void 0,id3:n,initSegment:void 0};m(p)||(p=this.lastEndTime=i||0);const y=t.samples;if(!y.length)return g;const _=this.pendingInitSegment;_&&(this.pendingInitSegment=void 0,this.generateInitSegment(_,this.decryptdata,u));const v={initPTS:void 0,timescale:void 0,trackId:void 0};let E=this.initData;if(null!=(d=E)&&d.length||(this.generateInitSegment(y),E=this.initData),null==(f=E)||!f.length)return this.warn("Failed to generate initSegment."),g;if(l.iframe&&E.audio&&E.video){var b;const e=null==(b=this.initTracks)||null==(b=b.audiovideo)?void 0:b.initSegment,t=e?function(e){const t=at(e,["moov"]);if(1!==t.length||at(e,["moof"]).length)return null;const n=e.byteOffset,r=[],i=[];let a=!1;const s=at(t[0],["trak"]);for(let e=0;e<s.length;e++){const t=s[e],o=at(t,["mdia","hdlr"])[0];if("vide"===(o?ze(o.subarray(8,12)):"")){a=!0;continue}const l=at(t,["tkhd"])[0];if(!l)return null;const u=l[0];i.push(Xe(l,0===u?12:20)),r.push(rt(t,n))}if(!a||!r.length)return null;const o=at(t[0],["mvex"])[0];let l=0;if(o){const e=at(o,["trex"]);for(let t=0;t<e.length;t++){const a=e[t];-1!==i.indexOf(Xe(a,4))&&(r.push(rt(a,n)),l+=a.byteLength+8)}}const{result:u,dropped:c,droppedBefore:d}=it(e,r);if(tt(u,t[0].byteOffset-n-8,t[0].byteLength+8-c),o&&l){const e=o.byteOffset-n-8;tt(u,e-d(e),o.byteLength+8-l)}return u}(e):null;var T;if(t)this.log("Converted muxed init segment to video-only for I-Frame playback"),this.generateInitSegment(t,this.decryptdata),null!=(T=this.initData)&&T.length&&(E=this.initData,this.emitInitSegment=!0,this.videoOnlyRemux=!0)}this.emitInitSegment&&(v.tracks=this.initTracks,g.initSegment=v,this.emitInitSegment=!1);const S=l.iframe,w=!c||S&&!c.includeSampleDetails?function(e,t,n,r,i=!0){return _t(e,t,r,i)}(y,E,0,this,S):c.tracks,L=E.audio?w[E.audio.id]:null,A=E.video?w[E.video.id]:null,M=!!E.audio,D=!!E.video;let k="";M&&(k+="audio"),D&&(k+="video");const I=ls(A,1/0),R=ls(L,1/0),C=ls(A,0,!0),P=ls(L,0,!0);let O=i,x=0;A&&L&&E.audio&&(R>C||I>P)&&this.warn(`audio and video track sample timestamps do not overlap. v: ${I}-${C} a: ${R}-${P}}`,A,L);const N=!!L&&(!A||!h&&R<I||!!h&&h.trackId===E.audio.id),F=N?L:A;if(!F)return this.log(`No media samples found in ${o} ${l.level} ${-1===l.part?"":`part: ${l.part} of`} sn: ${l.sn} at playlist time: ${i}`),g;let Y,U=y;if(A&&A.sampleCount>=1&&E.video&&l.iframe){const{trun:e,start:t}=A,n=1===e.length,r=e.length?n?e[0].samples:e[0].samples.concat(...e.slice(1).map(e=>e.samples)):[];if(r.length){const i=e[0];let a=i;for(let t=e.length;t--;)if(e[t].samples.length){a=e[t];break}const s=a.lastSampleDurationOffset,{defaultSampleDurationOffset:o}=i,u=Math.abs(l.duration-(C-I))>.05,c=r.length<A.sampleCount;if(u||c||this.videoOnlyRemux||!n){const e=c?a.sampleOffset+a.samples.reduce((e,t)=>e+t.size,0):void 0,n=u?l.duration:C-I,i=function(e,t,n,r){if(void 0!==n){const r=e[e.length-1];let i=t;for(let t=0;t<e.length-1;t++)i-=e[t].duration;return i<=0&&(i=r.duration),r.duration=i,{durationOffset:n,value:i}}if(void 0===r)return;const i=Math.round(t/e.length);for(let t=0;t<e.length;t++)e[t].duration=i;return{durationOffset:r,value:i}}(r,n*E.video.timescale,s,o),d=function(e,t,n,r,i){if(n<1)return null;const a=at(e,["moof"]);if(1!==a.length)return null;const s=a[0],o=e.byteOffset,l=[],u=[],c=at(s,["traf"]);let d=!0;for(let e=0;e<c.length;e++){const n=c[e],r=at(n,["tfhd"])[0];if(!r)return null;Xe(r,4)===t?(l.push(n),131072&Xe(r,0)||(d=!1)):u.push(rt(n,o))}if(!l.length)return null;if(u.length&&!d)return null;if(void 0!==r){let t=n;for(let n=0;n<l.length;n++){const r=l[n];let i=0;const a=at(r,["trun"]);for(let n=0;n<a.length;n++){const r=a[n],s=Math.min(t,Xe(r,4));if(s){tt(e,r.byteOffset-o+4,s);const t=16777215&Xe(r,0);nt(e,r,8+(1&t?4:0)+(4&t?4:0)+s*((256&t?4:0)+(512&t?4:0)+(1024&t?4:0)+(2048&t?4:0)))}else tt(e,r.byteOffset-o-4,We.free);t-=s,i+=s}const s=at(r,["senc"])[0];s&&tt(e,s.byteOffset-o+4,i);const u=at(r,["saiz"])[0];if(u){let t=4;1&(u[1]<<16|u[2]<<8|u[3])&&(t+=8);const n=u[t];t+=1,tt(e,u.byteOffset-o+t,i),nt(e,u,t+4+(0===n?i:0))}}const i=at(e,["mdat"]);if(1===i.length){const t=i[0].byteOffset-o-8;tt(e,t,r-t)}}let f=e,h=0,m=()=>0;if(u.length){({result:f,dropped:h,droppedBefore:m}=it(e,u)),tt(f,s.byteOffset-o-8,s.byteLength+8-h);for(let e=0;e<l.length;e++){const t=l[e],n=m(t.byteOffset-o),r=at(t,["trun"]);for(let e=0;e<r.length;e++){const t=r[e];1&Xe(t,0)&&tt(f,t.byteOffset-o-n+8,Xe(t,8)-h)}if(n){const e=at(t,["saio"]);for(let t=0;t<e.length;t++){const r=e[t],i=0===r[0]?4:8;let a=1&Xe(r,0)?12:4,s=Xe(r,a);for(a+=4;s--;a+=i){const e=a+i-4;tt(f,r.byteOffset-o-n+e,Xe(r,e)-n)}}}}}if(i){const{durationOffset:e,value:t}=i;tt(f,e-m(e),t)}return void 0!==r?f.subarray(0,r-h):f}(y,E.video.id,r.length,e,i);d?(U=d,Y=function(e,t){let n=e,r=e;for(let e=0;e<t.length;e++){const{cts:i,duration:a}=t[e];r=Math.max(r,n+(i||0)+a),n+=a}return r}(t,r)):this.warn(`IFrame remux skipped (sn ${l.sn}); using native sample duration`),x=d&&i?n:C-I}else x=C-I}else this.warn(`Could not remux IFrame track fragment (no samples in range, trun count ${e.length})`),x=C-I}else x=N?P-R:C-I;if(this.videoOnlyRemux&&U===y)return this.warn(`Dropping muxed I-Frame fragment that could not be remuxed to video-only (sn: ${l.sn})`),g;const B=F.timescale,j=F.start-i*B,H=N?E.audio.id:E.video.id;if(O=F.start/B,(a||!h)&&(function(e,t,n,r){if(null===e)return!0;const i=Math.max(r,1),a=t-e.baseTime/e.timescale;return Math.abs(a-n)>=i}(h,O,i,x)||B!==h.timescale)){let e=!1;const t=N?"audio":"video";if(h){const n=0!==i?O/i:1+O/1;e=O>=0&&Math.abs(1-n)<.001,this.log(`${t} timestamps in track ${H} at playlist time: ${a?"":"~"}${i} maps to ${O} with initPTS: ${h.baseTime/h.timescale} (${j/B-h.baseTime/h.timescale}s diff) (${k}) drift estimate: ${n} ${e?"(ignoring drift)":"remapping timestamps (initPTS)"}`)}e||(this.log(`Found initPTS in ${t} track ${H} at playlist time: ${i} offset: ${O-i} (${j}/${B})`),h=null,v.initPTS=j,v.timescale=B,v.trackId=H)}h?(v.initPTS=h.baseTime,v.timescale=h.timescale,v.trackId=h.trackId):(v.timescale&&void 0!==v.trackId&&void 0!==v.initPTS||(this.warn("Could not set initPTS"),v.initPTS=O,v.timescale=1,v.trackId=-1),this.initPTS=h={baseTime:v.initPTS,timescale:v.timescale,trackId:v.trackId});const G=O-h.baseTime/h.timescale,Z=G+x,$=D&&void 0!==(null==F?void 0:F.ptsMin)?F.ptsMin/F.timescale-h.baseTime/h.timescale:G,z=void 0!==Y&&A?Y/A.timescale-h.baseTime/h.timescale:D&&null!=F&&F.ptsMax?F.ptsMax/F.timescale-h.baseTime/h.timescale:Z;x>0?this.lastEndTime=Z:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const q={data1:U,data2:void 0,startPTS:$,startDTS:G,endPTS:z,endDTS:Z,type:k,hasAudio:M,hasVideo:D,nb:1,dropped:0,encrypted:!!E.audio&&E.audio.encrypted||!!E.video&&E.video.encrypted};g.audio=M&&!D?q:void 0,g.video=D?q:void 0;const W=this.isVideoContiguous,V=null==A?void 0:A.sampleCount;if(V){const e=A.keyFrameIndex,t=-1!==e;q.nb=V,q.dropped=0===e||W?0:t?e:V,q.independent=t,q.firstKeyFrame=e,t&&A.keyFrameStart&&(q.firstKeyFramePTS=(A.keyFrameStart-h.baseTime)/h.timescale),W||(g.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),q.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${e}/${V} dropped: ${q.dropped} start: ${q.firstKeyFramePTS||"NA"}`)}return g.initSegment=v,g.id3=ss(n,i,h,h),r.samples.length&&(g.text=os(r,i,h)),g}}},{demux:Pa,remux:is},{demux:class extends da{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.sampleAes=null,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Pe(e,0);let r=(null==n?void 0:n.length)||0;if(ba(e,r))return!1;for(let n=e.length;r<n;r++)if(aa(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&ta(e,t)&&ra(e,t)<=e.length-t}(e,t)}appendFrame(e,t,n){sa(e,this.observer,t,n,e.manifestCodec);const r=la(e,t,n,this.basePTS,this.frameIndex);if(0===(null==r?void 0:r.missing))return r}demuxSampleAes(e,t,n){const r=this.demux(e,n),i=this.sampleAes=new Ta(this.observer,this.config,t);return new Promise(e=>{i.decryptAacSamples(r.audioTrack.samples,0,()=>{e(r)})})}},remux:is},{demux:class extends da{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Pe(e,0);let n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==He(t)&&Sa(e,n)<=16)return!1;for(let t=e.length;n<t;n++)if(ba(e,n))return Ee.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return va(e,t)&&4<=e.length-t}(e,t)}appendFrame(e,t,n){if(null!==this.basePTS)return ya(e,t,n,this.basePTS,this.frameIndex)}},remux:is}];ds.splice(2,0,{demux:wa,remux:is});class fs{constructor(e,t,n,r,i,a){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=a}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){if(!this.observer)return hs(n);const i=n.transmuxing;i.executeStart=cs();const a=new Uint8Array(e),{currentTransmuxState:s,transmuxConfig:o}=this;r&&(this.currentTransmuxState=r);const{contiguous:l,discontinuity:u,trackSwitch:c,accurateTimeOffset:d,timeOffset:f,initSegmentChange:h}=r||s,{audioCodec:m,videoCodec:p,defaultInitPts:g,duration:E,initSegmentData:b}=o,T=function(e,t){let n=null;e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(n=t);return n}(a,t);if(T&&kr(T.method)){const e=this.getDecrypter(),t=Ir(T.method);return this.asyncResult=!0,this.decryptionPromise=e.decrypt(a,T.key.buffer,T.iv.buffer,t,n.decryptRange).then(e=>{const t=this.push(e,null,n);return this.decryptionPromise=null,t}),this.decryptionPromise}const S=this.needsProbing(u,c);if(S){const e=n.iframe&&b&&Pa.probe(b,this.logger)?b:a,t=this.configureTransmuxer(e);if(t)return this.logger.warn(`[transmuxer] ${t.message}`),this.observer.emit(v.ERROR,v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_PARSING_ERROR,fatal:!1,error:t,reason:t.message}),i.executeEnd=cs(),hs(n)}(u||c||h||S)&&this.resetInitSegment(b,m,p,E,t,n),(u||h||S)&&this.resetInitialTimestamp(g),l||this.resetContiguity();const w=this.transmux(a,T,f,d,n);this.asyncResult=ms(w);const L=this.currentTransmuxState;return L.contiguous=!0,L.discontinuity=!1,L.trackSwitch=!1,i.executeEnd=cs(),w}flush(e){const t=e.transmuxing;t.executeStart=cs();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const a=[],{timeOffset:s}=r;if(n){const t=n.flush();t&&a.push(this.push(t.buffer,null,e))}const{demuxer:o,remuxer:l}=this;if(!o||!l){t.executeEnd=cs();const n=[hs(e)];return this.asyncResult?Promise.resolve(n):n}const u=o.flush(s,e);return ms(u)?(this.asyncResult=!0,u.then(t=>(this.flushRemux(a,t,e),a))):(this.flushRemux(a,u,e),this.asyncResult?Promise.resolve(a):a)}flushRemux(e,t,n){if(!this.remuxer)return;const{audioTrack:r,videoTrack:i,id3Track:a,textTrack:s}
vendor: 5,275 bytes, line 2
2=t,{accurateTimeOffset:o,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id} playlist ${n.level}`);const u=this.remuxer.remux(r,i,a,s,l,o,!0,this.id,n,t.initData,t.sampleData);e.push({remuxResult:u,chunkMeta:n}),n.transmuxing.executeEnd=cs()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i,a){const{demuxer:s,remuxer:o}=this;s&&o&&(s.resetInitSegment(e,t,n,r,i,a),o.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0),this.observer&&this.observer.removeAllListeners(),this.decryptionPromise=null,this.decrypter=this.observer=void 0,this.logger=this.config=this.probe=void 0}transmux(e,t,n,r,i){let a;return a="SAMPLE-AES"===(null==t?void 0:t.method)?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i),a}transmuxUnencrypted(e,t,n,r){const{demuxer:i,remuxer:a}=this;if(!i||!a)return hs(r);const s=i.demux(e,t,r,!1,!this.config.progressive),{audioTrack:o,videoTrack:l,id3Track:u,textTrack:c}=s;return{remuxResult:a.remux(o,l,u,c,t,n,!1,this.id,r,s.initData,s.sampleData),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer?this.demuxer.demuxSampleAes(e,t,n,i).then(e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,this.id,i,e.initData,e.sampleData),chunkMeta:i})):Promise.reject(new Error("no demuxer"))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;if(!n)return;let i;try{for(let t=0,n=ds.length;t<n;t++){var a;if(null!=(a=ds[t].demux)&&a.probe(e,this.logger)){i=ds[t];break}}}catch(e){return e}if(!i)return new Error("Failed to find demuxer by probing fragment data");const s=this.demuxer,o=this.remuxer,l=i.demux,u=i.remux;s&&s instanceof l||(this.logger.log(`Using ${l.name}`),this.demuxer=new l(n,t,r,this.logger),this.probe=l.probe),o&&o instanceof u||(this.logger.log(`Using ${u.name}`),this.remuxer=new u(n,t,r,this.logger))}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new ir(this.config)),e}}const hs=e=>({remuxResult:{},chunkMeta:e});function ms(e){return"then"in e&&e.then instanceof Function}class ps{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class gs{constructor(e,t,n,r,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=a}}let ys=0;class _s{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=ys++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=e=>{const t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var r;const e=null==(r=this.workerContext)?void 0:r.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;const t=new Error(`${e.message} (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const a=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===v.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new Qi,this.observer.on(v.FRAG_DECRYPTED,a),this.observer.on(v.ERROR,a);const s=Wt(i.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(i.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{i.workerPath?(n.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=function(e){const t=ea[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,r={worker:new self.Worker(n),scriptURL:n,clientCount:1};return ea[e]=r,r}(i.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){const e=ea[Ji];if(e)return e.clientCount++,e;const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}
vendor: 4,097 bytes, line 2
2),n=self.URL.createObjectURL(t),r={worker:new self.Worker(n),objectURL:n,clientCount:1};return ea[Ji]=r,r}());const{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:s,id:t,config:pn(i)})}catch(r){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,r),this.terminateWorker(),this.error=null,this.transmuxer=new fs(this.observer,s,i,"",t,e.logger)}return}}this.transmuxer=new fs(this.observer,s,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=ys++;const t=this.hls.config,n=Wt(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:pn(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){const t=ea[e||Ji];if(t&&1===t.clientCount--){const{worker:n,objectURL:r}=t;delete ea[e||Ji],r&&self.URL.revokeObjectURL(r),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,a,s,o,l,u){var c,d;l.transmuxing.start=self.performance.now();const{instanceNo:f,transmuxer:h}=this,m=a?a.start:i.start,p=i.decryptdata,g=this.frag,y=!g||i.cc!==g.cc,_=!g||l.level!==g.level,v=g?l.sn-g.sn:-1,E=this.part?l.part-this.part.index:-1,b=0===v&&l.id>1&&l.id===(null==g?void 0:g.stats.chunkCount),T=!_&&(1===v||0===v&&(1===E||b&&E<=0)),S=self.performance.now();(_||v||0===i.stats.parsing.start)&&(i.stats.parsing.start=S),!a||!E&&T||(a.stats.parsing.start=S);const w=!(g&&(null==(c=i.initSegment)?void 0:c.url)===(null==(d=g.initSegment)?void 0:d.url)),L=new gs(y,T,o,_,m,w);if(!T||y||w){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id} playlist: ${l.level} id: ${l.id}\n discontinuity: ${y}\n trackSwitch: ${_}\n contiguous: ${T}\n accurateTimeOffset: ${o}\n timeOffset: ${m}\n initSegmentChange: ${w}`);const e=new ps(n,r,t,s,u);this.configureTransmuxer(e)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:f,cmd:"demux",data:e,decryptdata:p,chunkMeta:l,state:L},e instanceof ArrayBuffer?[e]:[]);else if(h){const t=h.push(e,p,l,L);ms(t)?t.then(e=>{this.handleTransmuxComplete(e)}).catch(e=>{this.transmuxerError(e,l,"transmuxer-interface push error")}):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const t=n.flush(e);ms(t)?t.then(t=>{this.handleFlushResult(t,e)}).catch(t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")}):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(e=>{this.handleTransmuxComplete(e)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}class vs extends me{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}
vendor: 4,833 bytes, line 2
2startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=null==t?void 0:t.renditionReports;if(r){let i=-1;for(let n=0;n<r.length;n++){const a=r[n];let s;try{s=new self.URL(a.URI,t.url).href}catch(e){this.warn(`Could not construct new URL for Rendition Report: ${e}`),s=a.URI||""}if(s===e){i=n;break}s===e.substring(0,s.length)&&(i=n)}if(-1!==i){const e=r[i],a=parseInt(e["LAST-MSN"])||t.lastPartSn;let s=parseInt(e["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const e=Math.min(t.age-t.partTarget,t.targetduration);s>=0&&e>t.partTarget&&(s+=1)}const o=n&&cn(n);return new dn(a,s>=0?s:void 0,o)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,a=r.fragments,s=self.performance.now(),o=i.loading.first?Math.max(0,Math.floor(s-i.loading.first)):0;r.advancedDateTime=Date.now()-o;const l=this.hls.config.timelineOffset;if(l!==r.appliedTimelineOffset){const e=Math.max(l||0,0);r.appliedTimelineOffset=e,a.forEach(t=>{null==t||t.setStart(t.playlistOffset+e)})}if(r.live||null!=n&&n.live){var u;const l="levelInfo"in t?t.levelInfo:t.track;r.reloaded(n);const c=null==(u=a[a.length-1])?void 0:u.type;if(r.misses>=this.hls.config.liveMaxUnchangedPlaylistRefresh){const e=new Error(`${c} playlist ${l.id} hit max allowed unchanged reloads.`);this.warn(e);const{networkDetails:n,context:a}=t;return void this.hls.trigger(v.ERROR,{type:y.NETWORK_ERROR,details:_.PLAYLIST_UNCHANGED_ERROR,fatal:!1,url:r.url,error:e,reason:e.message,level:t.level,parent:c,context:a,networkDetails:n,stats:i})}if(n){gi(n,r,this);const e=r.playlistParsingError;if(e){this.warn(e);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){const{networkDetails:a}=t;return void n.trigger(v.ERROR,{type:y.NETWORK_ERROR,details:_.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:e,reason:e.message,level:t.level,parent:c,networkDetails:a,stats:i})}r.playlistParsingError=null}}-1===r.requestScheduled&&(r.requestScheduled=i.loading.start);const d=this.hls.mainForwardBufferInfo,f=d?d.end-d.len:0,h=vi(r,1e3*(r.edge-f));r.requestScheduled+h<s?r.requestScheduled=s:r.requestScheduled<=s&&(r.requestScheduled+=h);const m=t.deliveryDirectives;if(this.log(`live playlist ${e} ${r.advanced?`REFRESHED ${r.lastPartSn} - ${r.lastPartIndex}`:r.updated?"UPDATED":`MISSED (received ${r.lastPartSn} - ${r.lastPartIndex}${m?` | requested ${m.msn} - ${m.part}`:""})`}`),!this.canLoad||!r.live)return;let p,g,E;if(r.canBlockReload&&r.advanced){const e=this.hls.config.lowLatencyMode,i=r.lastPartSn,a=r.endSN,o=r.lastPartIndex,u=i===a;-1!==o?u?(g=a+1,E=e?0:o):(g=i,E=e?o+1:r.maxPartIndex):g=a+1;const c=r.age,d=c+r.ageHeader;let f=Math.min(d-r.partTarget,1.5*r.targetduration);if(f>0){if(d>3*r.targetduration)this.log(`Playlist last advanced ${c.toFixed(2)}s ago. Omitting segment and part directives.`),g=void 0,E=void 0;else if(null!=n&&n.tuneInGoal&&d-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${f} with playlist age: ${r.age}`),f=0;else{const e=Math.floor(f/r.targetduration);if(g+=e,void 0!==E){E+=Math.round(f%r.targetduration/r.partTarget)}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${c.toFixed(2)}s goal: ${f} skip sn ${e} to part ${E}`)}r.tuneInGoal=f}if(p=this.getDeliveryDirectives(r,t.deliveryDirectives,g,E),e||!u)return r.requestScheduled=s,void this.loadingPlaylist(l,p)}else(r.canBlockReload||r.canSkipUntil)&&(p=this.getDeliveryDirectives(r,t.deliveryDirectives,g,E));p&&void 0!==g&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(h-2*o,h/2)),this.scheduleLoading(l,p,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r)return void this.loadingPlaylist(e,t);const i=self.performance.now(),a=r.requestScheduled;if(i>=a)return void this.loadingPlaylist(e,t);const s=a-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(s)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),s)}getDeliveryDirectives(e,t,n,r){let i=cn(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=on),new dn(n,r,i)}checkRetry(e){const t=e.details,n=re(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:s}=r||{},o=!!r&&!!s&&(i===xn||!r.resolved&&i===Pn);if(o){var l;if(a>=s.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${s.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{var u;const n=ce(null==(u=e.response)?void 0:u.code);
2if(this.clearTimer(),n)this.log("Waiting for connection (offline)"),e.reason="offline",this.timer=self.setTimeout(()=>this.checkOfflineStatus(),1e3);else{const e=oe(s,a);this.warn(`Retrying playlist loading ${a+1}/${s.maxNumRetry} after "${t}" in ${e}ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(),e)}}e.levelRetry=!0,r.resolved=!0}return o}checkOfflineStatus(){this.clearTimer(),ce(0)?this.timer=self.setTimeout(()=>this.checkOfflineStatus(),1e3):(this.log("Connection restored (online)"),this.loadPlaylist())}}function Es(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!bs(e[n].attrs,t[n].attrs))return!1;return!0}function bs(e,t,n){const r=e["STABLE-RENDITION-ID"];return r&&!n?r===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>e[n]!==t[n])}class Ts{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(null===this.queues||null===this.tracks)return;const r=this.queues[t];r.push(e),1!==r.length||n||this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=null==(t=e[0])?void 0:t.label;"async-blocker"===n||"async-blocker-prepend"===n?(e[0].execute(),e.splice(0,1)):"block-audio"===n&&e.splice(0,1)})}insertNext(e,t){null!==this.queues&&this.queues[t].splice(1,0,...e)}unblockAudio(){var e;null!==this.queues&&"block-audio"===(null==(e=this.current("audio"))?void 0:e.label)&&this.shiftAndExecuteNext("audio")}audioBlocking(){return null!==this.queues&&this.queues.audio.some(e=>"block-audio"===e.label)}executeNext(e){if(null===this.queues||null===this.tracks)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(t){var n;if(r.onError(t),null===this.queues||null===this.tracks)return;const i=null==(n=this.tracks[e])?void 0:n.buffer;null!=i&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return null===e||null===t?"<destroyed>":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=null==(t=this.tracks)?void 0:t[e],r=null==n?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map(e=>e.label).join(", "))||""}}const Ss=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ws="HlsJsTrackRemovedError";
vendor: 1,263 bytes, line 2
2class Ls extends Error{constructor(e){super(e),this.name=ws}}function As(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(t=>{e.removeChild(t)})}function Ms(e){return"audio"===e?1:0}function Ds(e,t){return`${e?"":" - triggering recovery"}${t?" with HTMLMediaElement Error: "+t.message:""}`}function ks(e){return`${e.type}_${e.sn}_${e.level}`}function Is(e,t){const{start:n,end:r}=t;let i=0;for(let t=0;t<e.length;t++){const a=e[t];if(a.start>=r)break;const s=Math.max(n,a.start),o=Math.min(r,a.end);o>s&&(i+=o-s)}return i}function Rs(e,t){return t.duration-e<=.05}class Cs{constructor(e){this.hls=null,this.autoLevelCapping=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.observer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.media=null,this.restrictedLevels=[],this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),(this.timer||this.observer)&&this.stopCapping(),this.media=this.clientRect=this.hls=null,this.streamController=void 0}registerListeners(){const{hls:e}=this;e&&(e.on(v.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(v.MEDIA_ATTA
2CHING,this.onMediaAttaching,this),e.on(v.MANIFEST_PARSED,this.onManifestParsed,this),e.on(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(v.BUFFER_CODECS,this.onBufferCodecs,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this))}unregisterListener(){const{hls:e}=this;e&&(e.off(v.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(v.MANIFEST_PARSED,this.onManifestParsed,this),e.off(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(v.BUFFER_CODECS,this.onBufferCodecs,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this))}onFpsDropLevelCapping(e,t){if(!this.hls)return;const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){const n=t.media;this.clientRect=null,this.hls&&(n instanceof HTMLVideoElement?(this.media=n,this.hls.config.capLevelToPlayerSize&&this.observe()):this.media=null,(this.timer||this.observer)&&this.hls.levels.length>1&&this.detectPlayerSize())}onManifestParsed(e,t){this.restrictedLevels=[],t.video&&this.startCapping(),this.onLevelsUpdated()}onLevelsUpdated(){if(this.hls)if((this.timer||this.observer)&&(m(this.autoLevelCapping)||this.clientRect))this.detectPlayerSize();else if(void 0===this.observer&&void 0===this.timer){const e=this.hls.levels;e.length>1&&e.some(e=>!!e.videoCodec)&&this.startCapping()}}onBufferCodecs(e,t){t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0||!this.hls)return void(this.clientRect=null);const e=this.hls.levels;if(e.length>1){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}else 1===e.length&&this.stopCapping()}}getMaxLevel(e){if(!this.hls)return-1;const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((t,n)=>this.isLevelAllowed(t)&&n<=e);return this.observer||(this.clientRect=null),Cs.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}observe(){const e=self.ResizeObserver;e&&(this.observer=new e(e=>{var t;const n=null==(t=e[0])?void 0:t.contentRect;n&&(this.clientRect=n,this.detectPlayerSize())})),this.observer&&this.media&&this.observer.observe(this.media)}startCapping(){var e;this.timer||this.observer||null==(e=this.hls)||!e.config.capLevelToPlayerSize||(self.clearInterval(this.timer),this.timer=void 0,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.observe(),this.observer||(this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3)),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0),this.observer&&(this.observer.disconnect(),this.observer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls)return e;const{ignoreDevicePixelRatio:t,maxDevicePixelRatio:n}=this.hls.config;if(!t)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,n)}isLevelAllowed(e){return!this.restrictedLevels.some(t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height)}static getMaxLevelByMediaSize(e,t,n){if(null==e||!e.length)return-1;const r=(e,t)=>!t||(e.width!==t.width||e.height!==t.height);let i=e.length-1;const a=Math.max(t,n);for(let t=0;t<e.length;t+=1){const n=e[t];if((n.width>=a||n.height>=a)&&r(n,e[t+1])){i=t;break}}return i}}var Ps=class e{constructor(t,n){Array.isArray(t)&&(t=t.map(t=>t instanceof e?t:new e(t))),this.value=t,this.params=n}};function Os(e,t,n,r){return new Error(`failed to ${e} "${i=t,Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":"object"==typeof i?JSON.stringify(i):String(i)}" as ${n}`,{cause:r});var i}const xs="Bare Item";const Ns=/[\x00-\x1f\x7f]+/;var Fs=class{constructor(e){this.description=e}};
vendor: 4,882 bytes, line 2
2function Ys(e,t,n){return Os("serialize",e,t,n)}function Us(e){if(!1===ArrayBuffer.isView(e))throw Ys(e,"Byte Sequence");return`:${t=e,btoa(String.fromCharCode(...t))}:`;var t}function Bs(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw Ys(e,"Integer");return e.toString()}function js(e){const t=Me(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw Ys(e,"Decimal");const n=t.toString();return n.includes(".")?n:`${n}.0`}function Hs(e){const t=(n=e).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw Ys(t,"Token");return t}function Gs(e){switch(typeof e){case"number":if(!m(e))throw Ys(e,xs);return Number.isInteger(e)?Bs(e):js(e);case"string":return function(e){if(Ns.test(e))throw Ys(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return Hs(e);case"boolean":return function(e){if("boolean"!=typeof e)throw Ys(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return`@${Bs(e.getTime()/1e3)}`}(e);if(e instanceof Uint8Array)return Us(e);if(e instanceof Fs)return Hs(e);default:throw Ys(e,xs)}}function Zs(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw Ys(e,"Key");return e}function $s(e){return null==e?"":Object.entries(e).map(([e,t])=>!0===t?`;${Zs(e)}`:`;${Zs(e)}=${Gs(t)}`).join("")}function zs(e){return e instanceof Ps?`${Gs(e.value)}${$s(e.params)}`:Gs(e)}function qs(e,t={whitespace:!0}){if("object"!=typeof e||null==e)throw Ys(e,"Dict");const n=e instanceof Map?e.entries():Object.entries(e),r=null!=t&&t.whitespace?" ":"";return Array.from(n).map(([e,t])=>{t instanceof Ps==!1&&(t=new Ps(t));let n=Zs(e);var r;return!0===t.value?n+=$s(t.params):(n+="=",Array.isArray(t.value)?n+=`(${(r=t).value.map(zs).join(" ")})${$s(r.params)}`:n+=zs(t)),n}).join(`,${r}`)}function Ws(e,t){return qs(e,t)}const Vs=["url"],Ks=["version","eventTargets","sid","transmissionMode"],Xs=["customData","headers"],Qs=e=>e instanceof Ps?new Ps(Math.round(e.value),e.params):Math.round(e),Js=e=>Array.isArray(e)?e.map(Qs):Qs(e),eo=(e,t)=>Array.isArray(e)?e.map(e=>eo(e,t)):e instanceof Ps&&"string"==typeof e.value?new Ps(eo(e.value,t),e.params):(t.baseUrl&&(e=function(e,t){let n;try{n=new URL(e)}catch(t){return e}const r=new URL(t);if(n.origin!==r.origin)return e;const i=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1),s=Math.min(i.length,a.length);for(let e=0;e<s&&i[e]===a[e];e++)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")+n.search+n.hash}(e,function(e){const t="string"==typeof e?new URL(e):e;return t.origin+t.pathname.substring(0,t.pathname.lastIndexOf("/")+1)}(t.baseUrl))),1===t.version?encodeURIComponent(e):e),to=e=>e instanceof Ps?new Ps(100*Math.round(e.value/100),e.params):100*Math.round(e/100),no=e=>Array.isArray(e)?e.map(to):to(e),ro={br:Js,d:Js,bl:no,dl:no,mtp:no,nor:(e,t)=>{let n=e;return t.version>=2&&(e instanceof Ps&&"string"==typeof e.value?n=new Ps([e]):"string"==typeof e&&(n=[e])),eo(n,t)},rtp:no,tb:Js},io=2,ao="rr",so="bc",oo="e",lo=ao,uo="ce",co=new Map([["ps","sta"],["pr","pr"],["c","cid"],["b","bg"],["bc","br"]]),fo="event",ho="request",mo=["cen","e","h","ts"],po=["ab","bg","bl","br","bs","bsa","bsd","bsda","cdn","cid","cs","d","dfa","dl","ec","lab","lb","ltc","msd","mtp","nor","nr","ot","pb","pr","pt","rtp","sf","sid","sn","st","sta","su","tab","tb","tbl","tpb","v"],go=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function yo(e){return go.test(e)}const _o=new Set(po);function vo(e){return _o.has(e)||yo(e)}const Eo=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"],bo=new Set(Eo);function To(e){return bo.has(e)}const So=new Set(mo);const wo=new Set(["ab","bl","br","bsa","bsd","bsda","lab","lb","mtp","pb","tab","tb","tbl","tpb"]),Lo=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"],Ao=new Set(Lo);function Mo(e){return Ao.has(e)||yo(e)}const Do=new Set(["ot","sf","st","e","sta"]);function ko(e){return Do.has(e)}function Io(e){return"number"==typeof e?m(e):null!=e&&""!==e&&!1!==e}const Ro={[fo]:function(e){return vo(e)||To(e)||So.has(e)},[ho]:vo};function Co(e,t){if(Array.isArray(e)){let n;return t&&(n=e.find(e=>{var n;return(null==(n=e.params)?void 0:n.ot)===t})),n||(n=e[0]),Co(n)}return e instanceof Ps?e.value:e}function Po(e,t={}){const n={};if(null==e||"object"!=typeof e)return n;const r=t.version||e.v||io,i=t.reportingMode||ho,a=1===r?function(e){const t={};for(const[r,i]of Object.entries(e))if(null!=i)if("nor"===r){const e=(Array.isArray(i)?i:[i])[0];var n;e instanceof Ps?(t.nor=e.value,null!=(n=e.params)&&n.r&&(t.nrr=e.params.r)):t.nor=e}else wo.has(r)?t[r]=Co(i,e.ot):t[r]=i;else t[r]=i;return t}(e):e,s=1===r?Mo:Ro[i];let o=Object.keys(a).filter(s);a.e&&a.e!==ao&&(o=o.filter(e=>!To(e)));const l=t.filter;"function"==typeof l&&(o=o.filter(l));const u=i===fo;
2if(u){const e=a.e;o.includes("e")||null==e||o.push("e"),o.includes("ts")||o.push("ts"),o.includes("cen")||null==a.cen||"ce"!==e||o.push("cen");const t=e?co.get(e):void 0;t&&null!=a[t]&&!o.includes(t)&&o.push(t)}if(0===o.length)return n;r>1&&!o.includes("v")&&o.push("v");const c={version:r,reportingMode:i,baseUrl:t.baseUrl};o.sort();for(const e of o){var d,f;let i=a[e];const s=null!=(d=null==(f=t.formatters)?void 0:f[e])?d:ro[e];if("function"==typeof s&&(i=s(i,c)),"v"===e){if(1===r)continue;i=r}if("pr"===e&&1===i&&(!u||"pr"!==a.e))continue;u&&"ts"===e&&!m(i)&&(i=Date.now());const o=u&&!1===i&&"bg"===e&&"b"===a.e;(Io(i)||o)&&(ko(e)&&"string"==typeof i&&(i=new Fs(i)),n[e]=i)}return n}const Oo="CMCD-Object",xo="CMCD-Request",No="CMCD-Session",Fo="CMCD-Status",Yo=xo,Uo={ab:Oo,br:Oo,d:Oo,lab:Oo,lb:Oo,ot:Oo,tab:Oo,tb:Oo,tpb:Oo,bl:xo,cs:xo,dfa:xo,dl:xo,ltc:xo,mtp:xo,nor:xo,nrr:xo,pb:xo,sn:xo,sta:xo,su:xo,tbl:xo,cid:No,msd:No,sf:No,sid:No,st:No,v:No,bg:Fo,bs:Fo,bsa:Fo,bsd:Fo,bsda:Fo,cdn:Fo,ec:Fo,nr:Fo,pr:Fo,pt:Fo,rtp:Fo};function Bo(e,t){const n={};if(!e)return n;const r=Object.keys(e),i=t?(a=t,Object.keys(a).reduce((e,t)=>{var n;return null==(n=a[t])||n.forEach(n=>e[n]=t),e},{})):{};var a;for(const t of r){var s;const r=Uo[t]||i[t]||Yo;(null!=(s=n[r])?s:n[r]={})[t]=e[t]}return n}const jo="CMCD";function Ho(e){return Ws(e,{whitespace:!1})}const Go=[...Lo,...po,...Eo,...mo].filter((e,t,n)=>n.indexOf(e)===t),Zo="m",$o="a",zo="v",qo="av",Wo="i",Vo="tt",Ko="s",Xo="p",Qo="k",Jo="r",el="a",tl="e",nl="f",rl="d",il="query",al="headers";function sl(e,t,n){var r;const i=new Set(null!=(r=t.enabledKeys)?r:[]);return{version:t.version||io,reportingMode:e,filter:e=>i.has(e),baseUrl:n}}const ol=Object.is,ll=e=>e,ul=Array.from(co,([e,t])=>"br"===t?{event:e,field:t,equal:(e,t)=>void 0===e||void 0===t?e===t:function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=e[n],i=t[n];if(r===i)continue;if("number"==typeof r||"number"==typeof i)return!1;if(r.value!==i.value)return!1;const a=r.params,s=i.params,o=a&&Object.keys(a)[0],l=s&&Object.keys(s)[0];if(o!==l)return!1;if(void 0!==o&&void 0!==l&&a&&s&&a[o]!==s[l])return!1}return!0}(e,t),snapshot:e=>e.slice()}:{event:e,field:t,equal:ol,snapshot:ll}),cl=new Map(ul.map(e=>[e.event,e]));function dl(e){const{url:t}=e,n=ne(e,Vs);return fetch(t,n)}var fl=class{constructor(e,t=dl){var n;this.timeOrigin=performance.timeOrigin||(null==(n=performance.timing)?void 0:n.fetchStart)||Date.now()-performance.now(),this.data={},this.msd=NaN,this.eventTargets=new Map,this.lastEmitted={},this.requestTarget={sn:0,msdSent:!1},this.config=function(e){const{version:t=io,eventTargets:n=[],sid:r=De(),transmissionMode:i=il}=e;return te(te({},ne(e,Ks)),{},{version:t,transmissionMode:i,sid:r,eventTargets:n.reduce((e,t)=>{var n,r,i;return null!=t&&t.url&&null!=(n=t.events)&&n.length&&e.push({version:t.version||io,enabledKeys:(null==(r=t.enabledKeys)?void 0:r.slice())||[],url:t.url,events:t.events.slice(),interval:null!=(i=t.interval)?i:30,batchSize:t.batchSize||1}),e},[])})}(e),this.data={cid:this.config.cid,sid:this.config.sid,v:this.config.version},this.requester=t;for(const e of this.config.eventTargets)this.eventTargets.set(e,{intervalId:void 0,sn:0,msdSent:!1,queue:[]})}start(){this.eventTargets.forEach((e,t)=>{if(this.disarmInterval(e),0===t.interval||!t.events.includes("t"))return;const n=()=>{this.recordTargetEvent(e,t,"t"),this.processEventTargets()};e.intervalId=setInterval(n,1e3*t.interval),n()})}stop(e=!1){e&&this.flush(),this.eventTargets.forEach(e=>{this.disarmInterval(e)})}flush(){this.processEventTargets(!0)}update(e){e.sid&&e.sid!==this.data.sid&&this.resetSession(),e.msd&&!isNaN(e.msd)&&(this.msd=e.msd),this.data=te(te(te({},this.data),e),{},{msd:void 0});for(const t of ul)t.field in e&&!t.equal(this.data[t.field],this.lastEmitted[t.field])&&this.recordEvent(t.event)}recordEvent(e,t={}){const n=cl.get(e);if(n){const e=n.field,r=t[e];void 0!==r&&J(this.data,{[e]:r});const i=this.data[e];if(void 0===i)return;if(n.equal(i,this.lastEmitted[e]))return;J(this.lastEmitted,{[e]:n.snapshot(i)})}
2this.eventTargets.forEach((n,r)=>{this.recordTargetEvent(n,r,e,t)}),this.processEventTargets()}recordTargetEvent(e,t,n,r={}){var i;if(!t.events.includes(n))return;const a=te(te(te({},this.data),r),{},{e:n,ts:null!=(i=r.ts)?i:Date.now(),sn:e.sn++});isNaN(this.msd)||e.msdSent||(a.msd=this.msd,e.msdSent=!0),e.queue.push(a)}recordResponseReceived(e,t={}){var n,r,i;const{request:a}=e,s=null!=(n=t.url)?n:null==a?void 0:a.url;if(!s)return;const o=new URL(s);o.searchParams.delete(jo);const l={url:o.toString(),rc:e.status},u=e.resourceTiming;u&&(null!=u.startTime&&(l.ts=Math.round(this.timeOrigin+u.startTime),null!=u.responseStart&&(l.ttfb=Math.round(u.responseStart-u.startTime))),null!=u.duration&&(l.ttlb=Math.round(u.duration)));const c=null!=(r=null==(i=a.customData)?void 0:i.cmcd)?r:{};this.recordEvent(ao,te(te(te({},c),l),t))}applyRequestReport(e){var t;return null!=(t=this.createRequestReport(e))?t:e}isRequestReportingEnabled(){var e;return!(null==(e=this.config.enabledKeys)||!e.length)}createRequestReport(e,t){var n;const{customData:r={},headers:i={}}=e,a=te(te({},ne(e,Xs)),{},{headers:te({},i),customData:te(te({},r),{},{cmcd:{}})});if(null==(n=this.config.enabledKeys)||!n.length||!a.url)return a;const s=new URL(a.url),o=te(te(te({},this.data),t),{},{sn:this.requestTarget.sn++}),l=sl(ho,this.config,a.url);isNaN(this.msd)||this.requestTarget.msdSent||(o.msd=this.msd,this.requestTarget.msdSent=!0);const u=a.customData.cmcd=Po(o,l);switch(this.config.transmissionMode){case il:const e=Ho(u);e&&(s.searchParams.set(jo,e),a.url=s.toString());break;case al:J(a.headers,function(e,t){const n={},r=Bo(e,t);for(const[e,t]of Object.entries(r)){const r=Ws(t,{whitespace:!1});r&&(n[e]=r)}return n}(u,l.customHeaderMap))}return a}processEventTargets(e=!1){let t=!1;this.eventTargets.forEach((n,r)=>{const{queue:i}=n;if(!i.length)return;if(i.length<r.batchSize&&!e)return;const a=e?i.length:r.batchSize,s=i.splice(0,a);this.sendEventReport(r,s).catch(()=>{n.queue.unshift(...s)}),t||(t=i.length>0)}),t&&this.processEventTargets()}async sendEventReport(e,t){const n=sl(fo,e),{status:r}=await this.requester({url:e.url,method:"POST",headers:{"Content-Type":"application/cmcd"},body:t.map(e=>function(e,t={}){return e?Ho(Po(e,t)):""}(e,n)).join("\n")+"\n"});if(410===r)this.disposeEventTarget(e);else if(429===r||r>499&&r<600)throw new Error(`Event report failed with status ${r}`)}disarmInterval(e){clearInterval(e.intervalId),e.intervalId=void 0}disposeEventTarget(e){const t=this.eventTargets.get(e);t&&(this.disarmInterval(t),this.eventTargets.delete(e))}resetSession(){this.eventTargets.forEach(e=>e.sn=0),this.requestTarget.sn=0,this.lastEmitted={}}};const hl="h",ml="v",pl="l",gl="ll";new Set(Lo),new Set(Go);const yl=["includeKeys"];function _l(e){return Object.keys(e).every(yo)}function vl(e,t,n,r){e&&Object.keys(t).forEach(i=>{const a=e.filter(e=>e.groupId===i).map(e=>{const a=J({},e);return a.details=void 0,a.attrs=new Tr(a.attrs),a.url=a.attrs.URI=El(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),a.groupId=a.attrs["GROUP-ID"]=t[i],a.attrs["PATHWAY-ID"]=r,a});e.push(...a)})}function El(e,t,n,r){if(t){const{[n]:e}=r;if(e){const n=e[t];if(n)return n}}const{HOST:i,PARAMS:a}=r,s=new self.URL(e);return i&&(s.hostname=i),a&&Object.keys(a).sort().forEach(e=>{e&&rn(s,e,a[e])}),s.href}class bl{constructor(){this.status="initialized",this.requestErrors=[],this.licenseXhr=void 0,this.onmessage=void 0,this.onkeystatuseschange=void 0,this.emitter=new Qi,this.error=void 0,this.ok=void 0}get errored(){return this.error}set errored(e){this.error=e,this.emitter.eventNames().length&&this.emitter.emit("error",e)}get hasListeners(){return this.emitter.eventNames().length>0}get resolved(){return this.ok}resolve(){this.ok=!0,this.emitter.emit("resolved")}get useable(){return this.ok?Promise.resolve():this.error?Promise.reject(this.error):new Promise((e,t)=>{this.emitter.on("error",t),this.emitter.on("resolved",e)})}reset(){this.emitter.removeAllListeners();const e=this.licenseXhr;e&&(e.readyState!==XMLHttpRequest.DONE&&e.abort(),this.licenseXhr=void 0),this.onmessage=this.onkeystatuseschange=void 0}}
2class Tl extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class Sl extends me{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.mediaResolved=void 0,this.keyFormatPromise=null,this.keySystemAccessPromises={},this.sessionSetupByUri={},this.mediaKeySessions=[],this.activeKeys={},this.mediaKeys=null,this.setMediaKeysQueue=Sl.CDMCleanupPromise?[Sl.CDMCleanupPromise]:[],this.onMediaEncrypted=e=>{const{initDataType:t,initData:n}=e,r=`"${e.type}" event: init data type: "${t}"`;if(this.log(r),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=Gr(this.config));const t=e.map(Hr).filter(e=>!!e);this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then(i=>{let a;const s=Br(i),o=this.activeLevelKeys();if(s===xr.FAIRPLAY&&"sinf"===t)try{const e=ze(new Uint8Array(n)),t=pt($e(JSON.parse(e).sinf));if(!t)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(t.subarray(8,24))}catch(e){return void this.warn(`${r} Failed to parse sinf: ${e}`)}else if(s===xr.PLAYREADY)a=zr(new Uint8Array(n));else if(s===xr.WIDEVINE){const e=Lt(n).filter(e=>e.systemId===jr);if(e.length){var l;const t=e[0];a=null!=(l=t.kids)&&l.length?t.kids[0]:null}}let u;if(a){const e=Ge(a);for(let r=0;r<o.length;r++){const i=o[r];if(i.keyId&&(Mr(a,i.keyId)||-1!==i.uri.replace(/-/g,"").indexOf(e))){i.pssh||(i.scheme=t,i.pssh=new Uint8Array(n),i.keyId=a,Wr.setKeyIdForUri(i.uri,a)),u=this.getSessionForKey(i,"encrypted-event-key-match");break}}}if(!u){var c,d;if(o.length)return(c=o[0]).scheme||(c.scheme=t),(d=o[0]).pssh||(d.pssh=new Uint8Array(n)),this.getSessionForKey(o[0],"encrypted-event-no-match");if(a)throw new Error(`Key ID ${Ge(a)} not encountered in playlist`);this.log(`Ignoring "${e.type}" event - could not determine keyId`)}return u}).catch(e=>this.handleError(e))}},this.onWaitingForKey=e=>{this.log(`"${e.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){const{hls:e}=this;
2e&&(e.on(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHED,this.onMediaDetached,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(v.DESTROYING,this.onDestroying,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHED,this.onMediaDetached,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(v.DESTROYING,this.onDestroying,this))}attemptKeySystemAccess(e){if(!this.hls)return Promise.reject(new Error("destroyed"));const t=this.hls.levels,n=(e,t,n)=>!!e&&n.indexOf(e)===t,r=t.map(e=>e.audioCodec).filter(n),i=t.map(e=>e.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((t,n)=>{const a=e=>{const s=e.shift();this.getMediaKeysPromise(s,r,i).then(e=>t({keySystem:s,mediaKeys:e})).catch(t=>{e.length?a(e):n(t instanceof Tl?t:new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))})};a(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let e=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===Zr&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){var r;const i=function(e,t,n,r){let i;switch(e){case xr.FAIRPLAY:i=["cenc","sinf"];break;case xr.WIDEVINE:case xr.PLAYREADY:i=["cenc"];break;case xr.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return function(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(e=>({contentType:`audio/mp4; codecs=${e}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(e=>({contentType:`video/mp4; codecs=${e}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}(i,t,n,r)}(e,t,n,this.config.drmSystemOptions||{});let a=this.keySystemAccessPromises[e],s=null==(r=a)?void 0:r.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${pn(i)}`),s=this.requestMediaKeySystemAccess(e,i);const t=a=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)}),s.then(n=>{this.throwIfDestroyed(),this.log(`Access for key-system "${n.keySystem}" obtained`);const r=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const i=t.mediaKeys=n.createMediaKeys().then(n=>(this.log(`Media-keys created for "${e}"`),t.hasMediaKeys=!0,r.then(t=>t?this.setMediaKeysServerCertificate(n,e,t):n)));return i.catch(t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)}),i})}return s.then(()=>a.mediaKeys)}getMediaKeySessionContext(e,t,n,r){const{mediaKeySessions:i}=this,a=` key-session "${e}" keyId: ${Ge(n.keyId||[])} keyUri: ${n.uri} for "${r}"`;for(let e=0;e<i.length;e++){const t=i[e];if(!t.initialized&&t.createdFor.levelKey.uri===n.uri)return this.log(`Reusing${a}`),t}this.log(`Creating${a}`);const s=t.createSession(),o={keySystem:e,mediaKeys:t,mediaKeysSession:s,keyRequests:{},keyStatuses:{},createdFor:{levelKey:n,reason:r},initialized:!1};return i.push(o),o}resetMediaKeys(){var e;const t=null==(e=this.mediaKeySessions[0])?void 0:e.keySystem,n=this.keySystemAccessPromises[t];n&&(this.log("reset mediaKeys"),this.mediaKeys=null,n.hasMediaKeys=!1,delete n.mediaKeys,delete this.keySystemAccessPromises[t])}updateKeySession(e,t,n){const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${Ge(t.keyId||[])}\n } (data length: ${n.byteLength})`),r.update(n)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>Hr(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:e,mediaKeys:t})=>this.attemptSetMediaKeys(e,t))}selectKeySystem(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:e})=>{const t=Hr(e);if(!t)throw new Error(`Unable to find format for key-system "${e}"`);return t})}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=Gr(this.config),n=e.map(Br).filter(e=>!!e&&-1!==t.indexOf(e));return this.selectKeySystem(n)}loadClear(e,t,n){if(this.config.emeEnabled&&!this.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,i=t.length;r<i;r++){const a=t[r];if(e.cc<=a.cc&&(!z(e)||!z(a)||e.sn<a.sn)||!n&&r==i-1)return this.selectKeySystemFormat(a).then(e=>{if(!this.hls)return;a.setKeyFormat(e);const t=Br(e);return t?this.getKeySystemAccess([t]):void 0})}if(this.config.requireKeySystemAccessOnStart){const e=Gr(this.config);if(e.length)return this.getKeySystemAccess(e)}}return null}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let n=0;n<t.length;n++){const r=wl(e,t[n]);if(r)return r}}loadKey(e){const t=e.decryptdata,n=this.getKeyStatus(t);if("internal-error"===n){const r=Ll(n,t);return r.data.frag=e,this.error(`${r.message} (${Ge(t.keyId||[])})`),Promise.reject(r)}const r=e.type,i=this.activeKeys,a=i[r];a&&!t.matches(a.decryptdata)&&(i.previous||(i.previous=[]),i.previous.push(a),delete i[r]),i[r]||(i[r]=e);for(let e=this.mediaKeySessions.length;e--;){const n=this.mediaKeySessions[e];if(t.keyId&&"expired"===n.keyStatuses[Ge(t.keyId)])return this.renewKeySession(t,n)}return this.updateUsablePromise(t,"playlist-key",e)}renewKeySession(e,t){return this.resetMediaKeys(),this.removeSession(t).then(()=>(this.throwIfDestroyed(),this.updateUsablePromise(e,"expired")))}updateUsablePromise(e,t,n){const r=this.getSessionForKey(e,t);return r.catch(e=>this.handleError(e,n)),r.then(t=>e)}getSessionForKey(e,t){const n=this.findContextForKey(e);if(void 0!==n)return Promise.resolve(n);const r=e.uri,i=this.sessionSetupByUri[r];let a;a=void 0===i?this.resolveSessionForKey(e,t):i.catch(()=>{}).then(()=>(this.throwIfDestroyed(),this.resolveSessionForKey(e,t))),this.sessionSetupByUri[r]=a;const s=()=>{this.sessionSetupByUri[r]===a&&delete this.sessionSetupByUri[r]};return a.then(s,s),a}findContextForKey(e){const{mediaKeySessions:t}=this;for(let n=t.length;n--;){const r=t[n];if(wl(e,r))return r}}resolveSessionForKey(e,t){return this.getKeySystemForKeyPromise(e).then(({keySystem:n,mediaKeys:r})=>{this.throwIfDestroyed();for(let n=this.mediaKeySessions.length;n--;){const r=this.mediaKeySessions[n];if(wl(e,r))return r;const i=this.getUsableKeyPromise(r,e,t);if(i)return i}return this.attemptSetMediaKeys(n,r).then(()=>(this.throwIfDestroyed(),this.getMediaKeySessionContext(n,r,e,t))).then(n=>{this.throwIfDestroyed();const r=e.scheme||"cenc",i=e.pssh?e.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(n,e,r,i,t)})})}getUsableKeyPromise(e,t,n){const r=e.keyRequests[t.uri];if(r)return this.log(`Waiting for usable key (${n} keyId: ${function(e){if(e.keyFormat===Fr)return e.uri;if(null===e.keyId)throw new Error("keyId is null");return Ge(e.keyId)}(t)} format: "${t.keyFormat}" URI: ${t.uri})`),r.useable.then(()=>e)}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof Tl){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${Ge(n.keyId||[])})`:""}`),this.hls.trigger(v.ERROR,e.data)}else this.error(e.message),this.hls.trigger(v.ERROR,{type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}
2getKeySystemForKeyPromise(e){const t=Br(e.keyFormat),n=t?[t]:Gr(this.config);return this.attemptKeySystemAccess(n)}getKeySystemSelectionPromise(e){if(e.length||(e=Gr(this.config)),0===e.length)throw new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${pn({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}activeLevelKeys(){const e=this.activeKeys,t=(e.previous||[]).map(e=>e.decryptdata);return e.audio&&t.unshift(e.audio.decryptdata),e.main&&t.unshift(e.main.decryptdata),t}attemptSetMediaKeys(e,t){if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>this.media?this.media.setMediaKeys(t):new Promise((e,n)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return n(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=t,this.media.setMediaKeys(t).then(e).catch(n)}}));return this.mediaKeys=t,this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(e=>-1===n.indexOf(e))})}filterInitData(e,t,n,r,i){var a;const s=null==(a=this.config.drmSystems)||null==(a=a[e.keySystem])?void 0:a.generateRequest;if(s)try{const a=s.call(this.hls,n,r,J({},e,{decryptdata:t,reason:i}),i);if(!a)throw new Error("Invalid response from configured generateRequest filter");t.scheme=a.initDataType?a.initDataType:"cenc";const o=a.initData?a.initData:null;return t.pssh=o?new Uint8Array(o):null,a}catch(e){var o;if(this.warn(e.message),null!=(o=this.hls)&&o.config.debug)throw e}return{initDataType:n,initData:r}}generateRequestWithPreferredKeySession(e,t,n,r,i){const a=this.getUsableKeyPromise(e,t,i);if(a)return a;const s=this.filterInitData(e,t,n,r,i);if(s&&(r=s.initData?s.initData:null,n=s.initDataType),null===r)return i.startsWith("encrypted-event")?Promise.reject(new Error(`missing initialization data for "${i}"`)):(this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e));const o=t.uri,l=new bl;e.keyRequests[o]=l;const u=n=>{const r=e.mediaKeysSession;if(!r){const e=new Error("invalid state");return void(l.errored=e)}const{messageType:i,message:a}=n;l.status=i,this.log(`"${i}" message event for session "${r.sessionId}" message size: ${a.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(e,t,a).catch(t=>{l.errored=t,l.hasListeners||this.handleError(t),this.removeSession(e)}):"license-release"===i?e.keySystem===xr.FAIRPLAY&&this.updateKeySession(e,t,Rr("acknowledged")).then(()=>this.removeSession(e)).catch(e=>this.handleError(e)):this.warn(`unhandled media key message type "${i}"`)};l.onmessage=u,Ii(e.mediaKeysSession,"message",u);return this.generateRequest(e,t,n,r,i,!1)}generateRequest(e,t,n,r,i,a){if(a){const a=this.filterInitData(e,t,n,r,i);a&&(r=a.initData?a.initData:r,n=a.initDataType)}const s=t.uri,o=e.keyRequests[s],l=Ge(t.keyId||[]),u=e=>{let n;e.startsWith("usable")?o.resolve():"internal-error"===e||"output-restricted"===e||"output-downscaled"===e?n=Ll(e,t):"expired"===e?n=new Error(`key expired (keyId: ${l})`):"released"===e?n=new Error("key released"):"status-pending"===e||this.warn(`unhandled key status change "${e}" (keyId: ${l})`),n&&(o.errored=n,o.hasListeners||this.handleError(n))},c=n=>{if(!e.mediaKeysSession){const e=new Error("invalid state");return void(o.errored=e)}const r=e.keyStatuses=this.getKeyStatuses(e);if(!Object.keys(r).some(e=>"status-pending"!==r[e]))return;const i=this.activeLevelKeys();for(let n=0;n<i.length;n++){const s=Ge(i[n].keyId||[]);if("expired"===r[s]){var a;this.log(`Expired key ${pn(r)} in key-session "${null==(a=e.mediaKeysSession)?void 0:a.sessionId}"`),this.renewKeySession(t,e).catch(e=>this.handleError(e));break}}let s=r[l];if(s)u(s);else{var c;const n=1e3;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(c=e.keyStatusTimeouts)[l]||(c[l]=self.setTimeout(()=>{var r;if(!e.mediaKeysSession)return;const i=this.getKeyStatus(t);var a;if(i&&"status-pending"!==i)return this.log(`No status for keyId ${l} in key-session "${null==(a=e.mediaKeysSession)?void 0:a.sessionId}". Using session key-status ${i} from other session.`),u(i);this.log(`key status for ${l} in key-session "${null==(r=e.mediaKeysSession)?void 0:r.sessionId}" timed out after ${n}ms`),s="internal-error",u(s)},n)),this.log(`No status for keyId ${l} (${pn(r)}).`)}};o.onkeystatuseschange=c,Ii(e.mediaKeysSession,"keystatuseschange",c);const d=o.useable;return this.log(`Generating key-session request for "${i}" keyId: ${l} URI: ${s} (init data type: ${n} length: ${r.byteLength})`),o.status="started",e.initialized=!0,e.mediaKeysSession.generateRequest(n,r).then(()=>{var t;o.status="generated",this.log(`Request generated for key-session "${null==(t=e.mediaKeysSession)?void 0:t.sessionId}" keyId: ${l} URI: ${s}`)}).catch(e=>{throw this.log(`mediaKeysSession.generateRequest failed: ${e}`),new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_NO_SESSION,error:e,decryptdata:t,fatal:!1},`Error generating key-session request: ${e}`)}).then(()=>d).catch(t=>{var n;this.log(`mediaKeysSession.generateRequest failed: ${t}`);const r=null==(n=t.data)?void 0:n.details;return r!==_.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED&&r!==_.KEY_SYSTEM_STATUS_INTERNAL_ERROR||!Object.keys(e.keyStatuses).some(t=>"usable"===e.keyStatuses[t])?this.removeSession(e).then(()=>{throw t}):(this.handleError(t),e)}).then(()=>e)}getKeyStatuses(e){const t={},n=e.mediaKeysSession.sessionId;
2return e.mediaKeysSession.keyStatuses.forEach((r,i)=>{if("string"==typeof i&&"object"==typeof r){const e=i;i=r,r=e}const a="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);if(e.keySystem===xr.PLAYREADY&&16===a.length){const e=Ge(a);t[e]=r,Cr(a)}const s=Ge(a);this.log(`key status change "${r}" for keyStatuses keyId: ${s} key-session "${n}"`),t[s]=r}),t}fetchServerCertificate(e){const t=this.config,n=new(0,t.loader)(t),r=function(e,t){const{drmSystems:n}=t,r=null==n?void 0:n[e];if(r)return r.serverCertificateUrl}(e,t);return r?(this.log(`Fetching server certificate for "${e}"`),new Promise((i,a)=>{const s={type:F,responseType:"arraybuffer",url:r},o=t.certLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},u={onSuccess:(e,t,n,r)=>{i(e.data)},onError:(t,n,i,o)=>{a(new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:te({url:s.url,data:void 0},t)},`"${e}" certificate request failed (${r}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,i)=>{a(new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:s.url,data:void 0}},`"${e}" certificate request timed out (${r})`))},onAbort:(e,t,n)=>{a(new Error("aborted"))}};n.load(s,l,u)})):(this.log(`No Server Certificate in config.drmSystems["${e}"]`),Promise.resolve())}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(i=>{this.log(`setServerCertificate ${i?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),r(e)}).catch(e=>{i(new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))})})}renewLicense(e,t,n){return this.requestLicense(e,t,new Uint8Array(n)).then(n=>this.updateKeySession(e,t,new Uint8Array(n)).catch(e=>{throw new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t,error:e,fatal:!1},e.message)}))}unpackPlayReadyKeyMessage(e,t){const n=ze(new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=(new DOMParser).parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let t;for(let n=0,r=i.length;n<r;n++){var a,s;t=i[n];const r=null==(a=t.querySelector("name"))?void 0:a.textContent,o=null==(s=t.querySelector("value"))?void 0:s.textContent;r&&o&&e.setRequestHeader(r,o)}}const o=r.querySelector("Challenge"),l=null==o?void 0:o.textContent;if(!l)throw new Error("Cannot find <Challenge> in key message");return Rr(atob(l))}setupLicenseXHR(e,t,n,r,i){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>(this.throwIfDestroyed(),a.call(this.hls,e,t,te(te({},n),{},{decryptdata:r}),i))).catch(s=>{if(!n.mediaKeysSession)throw s;return e.open("POST",t,!0),a.call(this.hls,e,t,te(te({},n),{},{decryptdata:r}),i)}).then(n=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:n||i}}):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t,n){return new Promise((r,i)=>{const a=function(e,t){const{drmSystems:n,widevineLicenseUrl:r}=t,i=null==n?void 0:n[e];if(i)return i.licenseUrl;if(e===xr.WIDEVINE&&r)return r}(e.keySystem,this.config);if(!a)return i(new Error(`no license server URL configured for key-system "${e.keySystem}"`));const s=e.keyRequests[t.uri];if(!s)return i(new Error("License emitter removed"));this.log(`Sending license request to URL: ${a}`);const o=this.config.keyLoadPolicy.default,l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(4===l.readyState)if(200===l.status){s.requestErrors=[];let n=l.response;this.log(`License received ${n instanceof ArrayBuffer?n.byteLength:n}`);const i=this.config.licenseResponseCallback;if(i)try{n=i.call(this.hls,l,a,te(te({},e),{},{decryptdata:t}))}catch(e){this.error(e)}r(n)}else{const u=o.errorRetry,c=u?u.maxNumRetry:0;if(s.requestErrors.push({status:l.status,message:l.statusText}),s.requestErrors.length>c||l.status>=400&&l.status<500)i(new Tl({type:y.KEY_SYSTEM_ERROR,details:_.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t,fatal:!0,networkDetails:l,response:{url:a,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${a}). Status: ${l.status} (${l.statusText})`));else{const a=c-s.requestErrors.length;this.warn(`Retrying license request, ${a} attempts left`),this.requestLicense(e,t,n).then(r,i)}}},s.licenseXhr&&s.licenseXhr.readyState!==XMLHttpRequest.DONE&&s.licenseXhr.abort(),s.licenseXhr=l,this.setupLicenseXHR(l,a,e,t,n).then(({xhr:t,licenseChallenge:n})=>{e.keySystem==xr.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Ii(n,"encrypted",this.onMediaEncrypted),Ii(n,"waitingforkey",this.onWaitingForKey);const r=this.mediaResolved;r?r():this.mediaKeys=n.mediaKeys}onMediaDetached(){const e=this.media;e&&(Ri(e,"encrypted",this.onMediaEncrypted),Ri(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;this.keyFormatPromise=null,this.keySystemAccessPromises={},this.activeKeys={},this.sessionSetupByUri={};const t=this.mediaResolved;if(t&&t(),!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Wr.clearKeyUriToKeyIdMap();const i=r.length;Sl.CDMCleanupPromise=Promise.all(r.map(e=>this.removeSession(e)).concat((null==n||null==(e=n.setMediaKeys(null))?void 0:e.catch(e=>
2{this.log(`Could not clear media keys: ${e}`),this.hls&&this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${e}`)})}))||Promise.resolve())).catch(e=>{this.log(`Could not close sessions and clear media keys: ${e}`),this.hls&&this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${e}`)})}).then(()=>{i&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this._clear(),this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){const e=t.reduce((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e),this.keyFormatPromise.catch(()=>{})}}removeSession(e){const{mediaKeysSession:t}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}"`),Object.keys(e.keyRequests).forEach(n=>{const r=e.keyRequests[n];r.onmessage&&t.removeEventListener("message",r.onmessage),r.onkeystatuseschange&&t.removeEventListener("keystatuseschange",r.onkeystatuseschange),r.reset(),e.keyRequests[n]=void 0}),e.mediaKeysSession=void 0;const n=this.mediaKeySessions.indexOf(e);n>-1&&this.mediaKeySessions.splice(n,1);const{keyStatusTimeouts:r}=e;r&&Object.keys(r).forEach(e=>self.clearTimeout(r[e]));const{drmSystemOptions:i}=this.config,a=function(e){var t;return!(!e||"persistent-license"!==e.sessionType&&(null==(t=e.sessionTypes)||!t.some(e=>"persistent-license"===e)))}(i)?new Promise((e,n)=>{self.setTimeout(()=>n(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(e).catch(n)}):Promise.resolve();return a.catch(e=>{this.log(`Could not remove session: ${e}`),this.hls&&this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${e}`)})}).then(()=>t.close()).then(()=>t.closed).catch(e=>{this.log(`Could not close session: ${e}`),this.hls&&this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${e}`)})})}return Promise.resolve()}}function wl(e,t){const n=e.keyId,r=t.mediaKeysSession;if(n&&r){const e=t.mediaKeysSession.keyStatuses;if(e.size)return e.has(n)?e.get(n):t.keyStatuses[Ge(n)]}}function Ll(e,t){const n="output-restricted"===e,r=n?_.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:_.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Tl({type:y.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}Sl.CDMCleanupPromise=void 0;var Al=function(){if(null!=Or&&Or.VTTCue)return self.VTTCue;const e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;const n=t.toLowerCase();return!!~e.indexOf(n)&&n}function r(e){return n(t,e)}function i(e,...t){let n=1;for(;n<arguments.length;n++){const t=arguments[n];for(const n in t)e[n]=t[n]}return e}function a(t,a,s){const o=this,l={enumerable:!0};o.hasBeenReset=!1;let u="",c=!1,d=t,f=a,h=s,m=null,p="",g=!0,y="auto",_="start",v=50,E="middle",b=50,T="middle";Object.defineProperty(o,"id",i({},l,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(o,"pauseOnExit",i({},l,{get:function(){return c},set:function(e){c=!!e}})),Object.defineProperty(o,"startTime",i({},l,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},l,{get:function(){return f},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},l,{get:function(){return h},set:function(e){h=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},l,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},l,{get:function(){return p},set:function(t){const r=function(t){return n(e,t)}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");p=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},l,{get:function(){return y},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},l,{get:function(){return _},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},l,{get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},l,{get:function(){return E},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},l,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},l,{get:function(){return T},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}();class Ml{decode(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Dl(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(r||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class kl{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function Il(e,t,n,r){const i=r?e.split(r):[e];for(const e in i){if("string"!=typeof i[e])continue;const r=i[e].split(n);if(2!==r.length)continue;t(r[0],r[1])}}const Rl=new Al(0,0,""),Cl="middle"===Rl.align?"middle":"center";function Pl(e,t,n){const r=e;function i(){const t=Dl(e);if(null===t)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.slice(3),a(),t.endTime=i(),a(),function(e,t){const r=new kl;Il(e,function(e,t){let i;switch(e){case"region":for(let i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),r.integer(e,i[0]),r.percent(e,i[0])&&r.set("snapToLines",!1),r.alt(e,i[0],["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start",Cl,"end"]);break;case"position":i=t.split(","),r.percent(e,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start",Cl,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",Cl,"end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");let i=r.get("line","auto");"auto"===i&&-1===Rl.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",Cl);let a=r.get("position","auto");"auto"===a&&50===Rl.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function Ol(e){return e.replace(/<br(?: \/)?>/gi,"\n")}class xl{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new Ml,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;function n(){let e=t.buffer,n=0;for(e=Ol(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;const r=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),r}function r(e){Il(e,function(e,t){},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{let e="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;e=n();const r=e.match(/^()?WEBVTT([ \t].*)?$/);if(null==r||!r[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let i=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(i?i=!1:e=n(),t.state){case"HEADER":/:/.test(e)?r(e):e||(t.state="ID");continue;case"NOTE":e||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){t.state="NOTE";break}if(!e)continue;if(t.cue=new Al(0,0,""),t.state="CUE",-1===e.indexOf("--\x3e")){t.cue.id=e;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Pl(e,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const n=-1!==e.indexOf("--\x3e");
2if(!e||n&&(i=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=e}continue;case"BADCUE":e||(t.state="ID")}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}function Nl(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}const Fl=/\r\n|\n\r|\n|\r/g,Yl="Missing initPTS for VTT ";function Ul(e,t,n){return Nl(e.toString())+Nl(t.toString())+Nl(n)}function Bl(e,t,n,r,i,a,s){const o=new xl,l=xe(new Uint8Array(e)).trim().replace(Fl,"\n").split("\n"),u=[],c=t?function(e,t=1){return Ja(e,9e4,1/t)}(t.baseTime,t.timescale):0;let d,f="00:00.000",h=0,p=0,g=!1,y=!0;o.oncue=function(e){const a=n[r];let s=n.ccOffset;const o=(h-c)/9e4;if(g){if(null!=a&&a.new&&(s=n.ccOffset=a.start),o){if(!t)return void(d=new Error(Yl+"MPEGTS"));s=o-n.presentationOffset}}else{if(!t)return void(d=new Error(Yl+"without X-TIMESTAMP-MAP"));s=-t.baseTime/t.timescale}const l=e.endTime-e.startTime,f=as(9e4*(e.startTime+s-p),9e4*i)/9e4;e.startTime=Math.max(f,0),e.endTime=Math.max(f+l,0);const m=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(m)),e.id?r&&(e.id=`hlsjscc${r}_${e.id}`):e.id=Ul(e.startTime,e.endTime,m),e.endTime>0&&u.push(e)},o.onparsingerror=function(e){d=e},o.onflush=function(){d?s(d):a(u)},l.forEach(e=>{if(y){if(e.startsWith("X-TIMESTAMP-MAP=")){y=!1,g=!0,e.slice(16).split(",").forEach(e=>{e.startsWith("LOCAL:")?f=e.slice(6):e.startsWith("MPEGTS:")&&(h=parseInt(e.slice(7)))});try{p=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(m(t)&&m(n)&&m(r)&&m(i)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=6e4*r,t+=36e5*i,t}(f)/1e3}catch(e){d=e}return}""===e&&(y=!1)}o.parse(e+"\n")}),o.flush()}const jl="stpp.ttml.im1t",Hl=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Gl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Zl={left:"start",center:"center",right:"end",start:"start",end:"end"};function $l(e,t,n,r){const i=at(new Uint8Array(e),["mdat"]);if(0===i.length)return void r(new Error("Could not parse IMSC1 mdat"));const a=i.map(e=>xe(e)),s=function(e,t,n=1,r=!1){return Ja(e,t,1/n,r)}(t.baseTime,1,t.timescale);try{a.forEach(e=>n(function(e,t){const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:1},a=Object.keys(i).reduce((e,t)=>(e[t]=r.getAttribute(`ttp:${t}`)||i[t],e),{});!r.getAttribute("ttp:tickRate")&&r.getAttribute("ttp:frameRate")&&(a.tickRate=Number(a.frameRate)*Number(a.subFrameRate));const s="preserve"!==r.getAttribute("xml:space"),o=ql(zl(r,"styling","style")),l=ql(zl(r,"layout","region")),u=zl(r,"body","[begin]");return[].map.call(u,e=>{const n=Wl(e,s);if(!n||!e.hasAttribute("begin"))return null;const r=Xl(e.getAttribute("begin"),a),i=Xl(e.getAttribute("dur"),a);let u=Xl(e.getAttribute("end"),a);if(null===r)throw Kl(e);if(null===u){if(null===i)throw Kl(e);u=r+i}const c=new Al(r-t,u-t,n);c.id=Ul(c.startTime,c.endTime,c.text);const d=function(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;s&&n.hasOwnProperty(s)&&(i=n[s]);return a.reduce((n,a)=>{const s=Vl(t,r,a)||Vl(e,r,a)||Vl(i,r,a);return s&&(n[a]=s),n},{})}(l[e.getAttribute("region")],o[e.getAttribute("style")],o),{textAlign:f}=d;if(f){const e=Zl[f];e&&(c.lineAlign=e),c.align=f}return J(c,d),c}).filter(e=>null!==e)}(e,s)))}catch(e){r(e)}}function zl(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function ql(e){return e.reduce((e,t)=>
2{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Wl(e,t){return[].slice.call(e.childNodes).reduce((e,n,r)=>{var i;return"br"===n.nodeName&&r?e+"\n":null!=(i=n.childNodes)&&i.length?Wl(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent},"")}function Vl(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Kl(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Xl(e,t){if(!e)return null;let n=Dl(e);return null===n&&(Hl.test(e)?n=function(e,t){const n=Hl.exec(e),r=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+r/t.frameRate}(e,t):Gl.test(e)&&(n=function(e,t){const n=Gl.exec(e),r=Number(n[1]);switch(n[2]){case"h":return 3600*r;case"m":return 60*r;case"ms":return r/1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}(e,t))),n}function Ql(e,t,n,r="",i="disabled"){const a=e.ownerDocument.createElement("track");return a.kind=t,a.label=n,r&&(a.srclang=r),a.src="data:,WEBVTT",a.track.mode=i,e.appendChild(a),a}function Jl(e){return e.forced&&(Dt.indexOf("Apple")>-1||/iPhone|iPad|iPod/.test(Mt))?"forced":e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function eu(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(n){Ee.debug(`[texttrack-utils]: ${n}`);try{const n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){Ee.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function tu(e,t,n,r){const i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0){const i=function(e,t,n){const r=[],i=function(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let r,i=0,a=n;for(;i<=a;)if(r=Math.floor((a+i)/2),t<e[r].startTime)a=r-1;else{if(!(t>e[r].startTime&&i<n))return r;i=r+1}return e[i].startTime-t<t-e[a].startTime?i:a}(e,t);if(i>-1)for(let a=i,s=e.length;a<s;a++){const i=e[a];if(i.startTime>=t&&i.endTime<=n)r.push(i);else if(i.startTime>n)return r}return r}(e.cues,t,n);for(let t=0;t<i.length;t++)r&&!r(i[t])||e.removeCue(i[t])}"disabled"===i&&(e.mode=i)}function nu(e,t){const n=ru(e.main);if(n&&n.start<=t)return n;const r=ru(e.audio);return r&&r.start<=t?r:null}function ru(e){if(!e)return null;switch(e.state){case Oi:case Pi:case ji:case Hi:return null}return e.frag}function iu(e,t){return t.getAppendedFrag(e,U)||t.getPartialFragment(e)}function au(e,t,n,r){const i=r.latestLevelDetails,a=iu(t,n);if(qi(r.config)&&!e.nextStart&&i&&a&&r.interstitialsManager){const n="type"in a?a:a.fragment,s=Rn(i,n.sn);(null==s?void 0:s.level)===n.level&&zi(s,r.interstitialsManager.playerQueue,t)&&(e.nextStart=s.start)}}function su(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function ou(e,t,n,r,i){let a=new e(t,n,"");try{a.value=r,i&&(a.type=i)}catch(s){a=new e(t,n,pn(i?te({type:i},r):r))}return a}const lu=(()=>{const e=su();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function uu(){return self.SourceBuffer||self.WebKitSourceBuffer}function cu(){if(!be())return!1;const e=uu();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}var du=0,fu=1,hu=2;class mu extends $i{constructor(e,t,n){super(e,t,n,"stream-controller",U),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=du,this.audioOnly=!1,this._couldBacktrack=!1,this._backtrackFragment=void 0,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const e=this.media,t=e?e.currentTime:null;if(null===t||!m(t))return;if(this.log(`Media seeked to ${t}`),!this.getBufferedFrag(t))return;const n=this.getFwdBufferInfoAtPos(e,t,U,0);n&&0!==n.len?this.tick():this.log(`Main buffer empty at ${t} on "seeked" event: ${n?n.len:n}`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(v.MANIFEST_PARSED,this.onManifestParsed,this),e.on(v.LEVEL_LOADING,this.onLevelLoading,this),e.on(v.LEVEL_LOADED,this.onLevelLoaded,this),e.on(v.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(v.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(v.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(v.BUFFER_CREATED,this.onBufferCreated,this),e.on(v.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(v.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(v.MANIFEST_PARSED,this.onManifestParsed,this),e.off(v.LEVEL_LOADED,this.onLevelLoaded,this),e.off(v.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(v.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(v.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(v.BUFFER_CREATED,this.onBufferCreated,this),e.off(v.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(v.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}
vendor: 10,878 bytes, line 2
2startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=r.startLevel;-1===e&&(r.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=r.firstAutoLevel),r.nextLoadLevel=e,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&this.initPTS.length&&(this.log(`Override startPosition with lastCurrentTime @${n}`),e=n),this.state=Oi,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,t||this.fragmentTracker.hasFragments(this.playlistType)||(this._hasEnoughToStart=this.startFragRequested=!1),this.tick()}else this._forceStartLoad=!0,this.state=Pi}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Zi:{const{levels:e,level:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=Oi;break}if(this.hls.nextLoadLevel!==this.level){this.state=Oi;break}break}case Fi:this.checkRetryDate()}this.state===Oi&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(null===t||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==n||!n[i])return;const a=n[i],s=this.getMainFwdBufferInfo();if(null===s)return;const o=this.getLevelDetails();if(o&&this._streamEnded(s,o)){const e={type:this.targetBufferType()};return this.hls.trigger(v.BUFFER_EOS,e),void(this.state=ji)}if(!this.buffering)return;e.loadLevel!==i&&-1===e.manualLevel&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const l=a.details;if(!l||this.state===Zi||this.waitForLive(a))return this.level=i,this.state=Zi,void(this.startFragRequested=!1);const u=s.len,c=this.getMaxBufferLength(a.maxBitrate);if(u>=c)return;this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=void 0);const d=this.backtrackFragment?this.backtrackFragment.start:s.end;let f=this.getNextFragment(d,l);if(this.couldBacktrack&&!this.fragPrevious&&f&&z(f)&&this.fragmentTracker.getState(f)!==Wn){var h;const e=(null!=(h=this.backtrackFragment)?h:f).sn-l.startSN,t=l.fragments[e-1];t&&f.cc===t.cc&&(f=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=void 0);if(f&&this.isLoopLoading(f,d)){if(!f.gap){const e=this.audioOnly&&!this.altAudio?H:G,t=(e===G?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e)}f=this.getNextFragmentLoopLoading(f,l,s,U,c)}f&&(this.exceedsMaxBuffer(s,c,f)||this.loadFragment(f,a,d))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===$n||r===qn?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this.clearTrackerIfNeeded(e)}immediateLevelSwitch(){if(this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY),this.altAudio!==du){var e;((null==(e=this.getLevelDetails())?void 0:e.fragmentStart)||0)>this.lastCurrentTime&&super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio")}}getBufferOutput(){return this.mediaBuffer&&this.altAudio===hu?this.mediaBuffer:this.media}checkFragmentChanged(){const e=this.fragPlaying;if(!this.checkFragPlaying())return!1;const t=this.fragPlaying;if(t){const n=t.level;this.hls.trigger(v.FRAG_CHANGED,{frag:t,previousFrag:e}),(null==e?void 0:e.level)!==n&&this.hls.trigger(v.LEVEL_SWITCHED,{level:n})}return!0}get backtrackFragment(){return this._backtrackFragment}set backtrackFragment(e){this._backtrackFragment=e}get couldBacktrack(){return this._couldBacktrack}set couldBacktrack(e){this._couldBacktrack=e}abortCurrentFrag(){this.backtrackFragment=void 0,super.abortCurrentFrag()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.targetBufferType())}targetBufferType(){return this.altAudio!==hu||this.audioOnly?null:"video"}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ii(n,"playing",this.onMediaPlaying),Ii(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Ri(n,"playing",this.onMediaPlaying),Ri(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,super.onMediaDetaching(e,t);!!t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(v.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.backtrackFragment=void 0,this.altAudio=du,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;for(let e=0;e<t.levels.length;e++){const i=t.levels[e].audioCodec;i&&(n=n||-1!==i.indexOf("mp4a.40.2"),r=r||-1!==i.indexOf("mp4a.40.5"))}this.audioCodecSwitch=n&&r&&!function(){var e;const t=uu();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==Oi)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=Zi)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,a=t.level,s=t.details,o=s.totalduration;if(!r)return void this.warn(`Levels were reset while loading level ${a}`);this.log(`Level ${a} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${o}`);const l=t.levelInfo,u=this.fragCurrent;!u||this.state!==Ni&&this.state!==Fi||u.level!==t.level&&u.loader&&this.abortCurrentFrag();let c=0;if(s.live||null!=(n=l.details)&&n.live){var d;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;c=this.alignPlaylists(s,l.details,null==(d=this.levelLastLoaded)?void 0:d.details)}if(l.details=s,this.levelLastLoaded=l,i||this.setStartPosition(s,c),this.hls.trigger(v.LEVEL_UPDATED,{details:s,level:a}),this.state===Zi){if(this.waitForCdnTuneIn(s))return;this.state=Oi}i&&s.live&&this.synchronizeToLiveEdge(s),this.initPTS.some((e,t)=>{if(t>=s.startCC)return!0;delete this.initPTS[t]}),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.playhead,a=e.fragmentStart,s=e.edge,o=i>=a-t.maxFragLookUpTolerance&&i<=s;if(null!==r&&n.duration>r&&(i<r||!o)){const a=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!o&&n.readyState<4||i<s-a)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${i} is located too far from the end of live sliding playlist: ${s}, reset currentTime to : ${r}`),"buffered"===this.config.liveSyncMode){var l;const e=mr.bufferInfo(n,r,0);if(null==(l=e.buffered)||!l.length)return void(n.currentTime=r);if(e.start<=i)return void(n.currentTime=r);const{nextStart:t}=mr.bufferedInfo(e.buffered,i,0);t&&(n.currentTime=t)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:a}=this;if(!a)return void this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const s=a[n.level];if(!s)return void this.warn(`Level ${n.level} not found on progress`);const o=s.details;if(!o)return this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),void this.fragmentTracker.removeFragment(n);const l=s.videoCodec,u=o.PTSKnown||!o.live,c=null==(t=n.initSegment)?void 0:t.data,d=this._getAudioCodec(s),f=this.transmuxer=this.transmuxer||new _s(this.hls,U,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),h=r?r.index:-1,m=-1!==h,{decryptRange:p,byteRange:g}=lr(n,r,this.iframesOnly),y=new fr(n.level,n.sn,n.stats.chunkCount,g?g.end-g.start:i.byteLength,h,m,n.duration,this.iframesOnly,p),_=this.initPTS[n.cc];f.push(i,c,d,l,n,r,o.totalduration,u,y,_)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio!==du;if(Sn(t.url,n))this.altAudio=fu;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const e=this.fragCurrent;e&&(this.log("Switching to main audio track, cancel main fragment load"),e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r)return this.altAudio=du,this.fragmentTracker.removeAllFragments(),n.once(v.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(v.AUDIO_TRACK_SWITCHED,t)}),void n.trigger(v.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(v.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Sn(t.url,this.hls);if(n){const e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?hu:du,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,a=!1;for(const e in n){const t=n[e];if("main"===t.id){if(i=e,r=t,"video"===e){const t=n[e];t&&(this.videoBuffer=t.buffer)}}else a=!0}a&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===U;if(i){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===Bi&&(this.state=Oi));let e=!1;if(z(n)&&(e=!!n.gap&&!n.tagList.some(e=>"GAP"===e[0])),this.fragBufferedComplete(n,r),e){var a;n.stats.retry++;const e=null==(a=this.levels)?void 0:a[n.level];e&&e.fragmentError++}}const s=this.media;s&&(!this._hasEnoughToStart&&mr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal)this.state=Hi;else switch(t.details){case _.FRAG_GAP:case _.FRAG_PARSING_ERROR:case _.FRAG_DECRYPT_ERROR:case _.FRAG_LOAD_ERROR:case _.FRAG_LOAD_TIMEOUT:case _.KEY_LOAD_ERROR:case _.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(U,t);break;case _.LEVEL_LOAD_ERROR:case _.LEVEL_LOAD_TIMEOUT:case _.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==Zi||(null==(n=t.context)?void 0:n.type)!==R||(this.state=Oi);break;case _.BUFFER_APPEND_NO_PROGRESS:if("main"!==t.parent)return;t.frag&&(t.appendsWithoutProgress||0)>
vendor: 4,154 bytes, line 2
2=this.config.appendErrorMaxRetry&&(this.warn(`Marking fragment ${t.frag.sn} of level ${t.frag.level} as a gap after ${t.appendsWithoutProgress} appends without buffered range growth, to prevent loop loading`),this.fragmentTracker.addAsGap(t.frag));break;case _.BUFFER_ADD_CODEC_ERROR:case _.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case _.BUFFER_FULL_ERROR:if("main"!==t.parent)return;if(this.reduceLengthAndFlushBuffer(t)){!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}break;case _.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=Oi,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==H||!this.altAudio){const e=(t===G?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking)return void this.log(`could not seek to ${n}, already seeking at ${t}`);const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),a=mr.getBuffered(e),s=a.length?a.start(0):0,o=s-n,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||o>0&&(o<l||this.loadingParts&&o<2*((null==i?void 0:i.partTarget)||0)))&&(this.log(`adjusting start position by ${o} to match buffer start`),n+=o,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${s}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(e=>{const{hls:n}=this,r=null==e?void 0:e.frag;if(!r||this.fragContextChanged(r))return;t.fragmentError=0,this.state=Oi,this.startFragRequested=!1,this.bitrateTest=!1;const i=r.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),n.trigger(v.FRAG_LOADED,e),r.bitrateTest=!1}).catch(t=>{this.state!==Pi&&this.state!==Hi&&(this.warn(t),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:i}=e,a=this.getCurrentContext(i);if(!a)return void this.resetWhenMissingContext(i);const{frag:s,part:o,level:l}=a,{video:u,text:c,id3:d,initSegment:f}=r,{details:h}=l,p=this.altAudio?void 0:r.audio;if(this.fragContextChanged(s))this.fragmentTracker.removeFragment(s);else{if(this.state=Ui,f){const e=f.tracks;if(e){const r=s.initSegment||s;if(this.unhandledEncryptionError(f,s))return;this._bufferInitSegment(l,e,r,i),n.trigger(v.FRAG_PARSING_INIT_SEGMENT,{frag:r,id:t,tracks:e})}const r=f.initPTS,a=f.timescale,o=this.initPTS[s.cc];if(m(r)&&(!o||o.baseTime!==r||o.timescale!==a)){const e=f.trackId;this.initPTS[s.cc]={baseTime:r,timescale:a,trackId:e};const i=this.initPTS.slice(0);n.trigger(v.INIT_PTS_FOUND,{timestampOffsets:i,frag:s,id:t,initPTS:r,timescale:a,trackId:e})}}if(u&&h){p&&"audiovideo"===u.type&&this.logMuxedErr(s);const e=h.fragments[s.sn-1-h.startSN],t=s.sn===h.startSN,n=!e||s.cc>e.cc;if(!1!==r.independent){const{startPTS:e,endPTS:r,startDTS:a,endDTS:l}=u;if(o)o.elementaryStreams[u.type]={startPTS:e,endPTS:r,startDTS:a,endDTS:l};else if(u.firstKeyFrame&&u.independent&&1===i.id&&!n&&(this.couldBacktrack=!0),u.dropped&&u.independent){const i=this.getMainFwdBufferInfo(),a=(i?i.end:this.getLoadPosition())+this.config.maxBufferHole,o=u.firstKeyFramePTS?u.firstKeyFramePTS:e;if(!t&&a<o-this.config.maxBufferHole&&!n)return void this.backtrack(s);n&&(s.gap=!0),s.setElementaryStreamInfo(u.type,s.start,r,s.start,l,!0)}
2else t&&e-(h.appliedTimelineOffset||0)>2&&(s.gap=!0);s.setElementaryStreamInfo(u.type,e,r,a,l),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(u,s,o,i,t||n)}else{if(!t&&!n)return void this.backtrack(s);s.gap=!0}}if(p){const{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=p;o&&(o.elementaryStreams[H]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),s.setElementaryStreamInfo(H,e,t,n,r),this.bufferFragmentData(p,s,o,i)}if(h&&null!=d&&d.samples.length){const e={id:t,frag:s,details:h,samples:d.samples};n.trigger(v.FRAG_PARSING_METADATA,e)}if(h&&c){const e={id:t,frag:s,details:h,samples:c.samples};n.trigger(v.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn(`${z(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==Ui)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:a,audiovideo:s}=t;if(i){const n=e.audioCodec;let r=$t(i.codec,n);if("mp4a"===r&&(r="mp4a.40.5"),this.audioCodecSwitch){r&&(r=-1!==r.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=i.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&!function(){if(void 0===It){const e=Mt.match(/Firefox\/(\d+)/i);It=e?parseInt(e[1]):0}return It}()&&(r="mp4a.40.5")}r&&-1!==r.indexOf("mp4a.40.5")&&/Android/.test(Mt)&&"audio/mpeg"!==i.container&&(r="mp4a.40.2",this.log(`Android: force audio codec to ${r}`)),n&&n!==r&&this.log(`Swapping manifest audio codec "${n}" for "${r}"`),i.levelCodec=r,i.id=U,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${r||""}/${n||""}/${i.codec}]`),delete t.audiovideo}if(a){a.levelCodec=e.videoCodec,a.id=U;const n=a.codec;if(4===(null==n?void 0:n.length))switch(n){case"hvc1":case"hev1":a.codec="hvc1.1.6.L120.90";break;case"av01":a.codec="av01.0.04M.08";break;case"avc1":a.codec="avc1.42e01e"}this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${n}]${a.codec!==n?" parsed-corrected="+a.codec:""}${a.supplemental?" supplemental="+a.supplemental:""}`),delete t.audiovideo}s&&(this.iframesOnly&&this.logMuxedErr(n),this.log(`Init audiovideo buffer, container:${s.container}, codecs[level/parsed]=[${e.codecs}/${s.codec}]`),delete t.video,delete t.audio);const o=Object.keys(t);if(o.length){if(this.hls.trigger(v.BUFFER_CODECS,t),!this.hls)return;o.forEach(e=>{const i=t[e].initSegment;null!=i&&i.byteLength&&this.hls.trigger(v.BUFFER_APPENDING,{type:e,data:i,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.getBufferOutput();return this.getFwdBufferInfo(e,U)}get maxBufferLength(){const{levels:e,level:t}=this,n=null==e?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Oi}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return m(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(m(t)){const e=this.getLevelDetails(),n=this.currentFrag||(e?Mn(null,e.fragments,t):null);if(n){const e=n.programDateTime;if(null!==e){const r=e+1e3*(t-n.start);return new Date(r)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class pu extends mu{constructor(...e){super(...e),this.currentOp=void 0,this.nextOp=void 0,this.cached=[],this.cachedSize=0,this.cacheFragmentData=!0,this.initDetails=void 0,this.onBufferedToEnd=()=>{const e=this.media;null!=e&&e.seeking&&(e.currentTime=e.currentTime)},this.onMediaSeeking=()=>{}}setInitPts(e){this.initPTS=e.slice()}loadMediaAt(e,t){if(!this.hls)return;const{seekOnAppend:n}=t,r=e+this.timelineOffset;switch(this.nextLoadPosition=this.lastCurrentTime=r,this.startPosition=e,this.state){case Pi:case ji:case Hi:this.state=Oi}this.state===Oi?(this.hls.resumeBuffering(),this.tick(),this.currentOp=[r,t]):this.nextOp=[r,t],this.hls.off(v.BUFFERED_TO_END,this.onBufferedToEnd);const i=this.media;if(n&&i){this.seekTo(r)&&(this.currentOp=[r,t],this.nextOp=void 0,this.flushPipeline(r,!0))}}seekTo(e){const t=this.media;if(t){var n;const r=null==(n=this.getLevelDetails())?void 0:n.edge,i=void 0!==r?r:t.duration;e>
2=i&&(e=i-.01);if(mr.bufferInfo(t,e,0).len>0&&this.getBufferedAt(e))return t.currentTime=e,!0}return!1}getBufferedAt(e){return this.fragmentTracker.getBufferedFrag(e,U)}cacheSet(e,t){if(!this.hls)return;e.data=t;const n=this.cached;n.push(e),this.cachedSize+=t.buffer.byteLength;const r=this.hls.config.iframeCacheLimit;for(;this.cachedSize>r&&n.length>1;){const e=n.shift();if(!e.data){this.cached=n.filter(e=>!!e.data),this.cachedSize=n.reduce((e,{data:t})=>t?t.buffer.byteLength:0,0);break}this.cachedSize-=e.data.byteLength,e.data=void 0}}onHandlerDestroying(){this.cached.length=0,this.cachedSize=0,super.onHandlerDestroying()}_handleFragmentLoadProgress(e){const t=e.frag,{part:n,payload:r}=e;this.cacheFragmentData&&!n&&null!=r&&r.byteLength&&!t.data&&z(t)&&this.cacheSet(t,new Uint8Array(r.slice(0))),super._handleFragmentLoadProgress(e)}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r!==$n&&r!==qn||!this.canReplayCached(e)?super.loadFragment(e,t,n):this.replayCachedFragment(e)}canReplayCached(e){var t;if(!this.cacheFragmentData||null==(t=e.data)||!t.byteLength)return!1;const n=e.decryptdata;return"identity"!==(null==n?void 0:n.keyFormat)||!!n.key}replayCachedFragment(e){const t=e.data.slice().buffer;this.log(`Buffering cached ${e.type} sn: ${e.sn} of level ${e.level} (${t.byteLength} bytes)`),this.fragCurrent=e,this.startFragRequested=!0;const n=e.stats=new k;n.loading.start=n.loading.first=n.loading.end=self.performance.now(),n.loaded=n.total=t.byteLength,n.chunkCount=1,this.state=Ni;const r={frag:e,part:null,payload:t,networkDetails:null};this._handleFragmentLoadProgress(r),this.hls.trigger(v.FRAG_LOADED,r),this._handleFragmentLoadComplete(r)}fragBufferedComplete(e,t){super.fragBufferedComplete(e,t);const{currentOp:n,nextOp:r}=this;this.currentOp=this.nextOp=void 0,this.state=Pi,null!=n&&n[1].seekOnAppend&&(this.flushPipeline(n[0],!r),this.seekTo(n[0])||this.log(`Could not seek to ${n[0]} after fragment buffered (superseded or flushed) buffer: ${this.media?Ci(mr.getBuffered(this.media)):"none"}`)),r&&this.loadMediaAt.apply(this,r)}flushPipeline(e,t){if(t){const t=this.media;if(t){const n=mr.bufferInfo(t,e,0),r=n.len?n.nextStart:0;r&&(this.fragmentTracker.removeFragmentsInRange(r,1/0,U),this.flushMainBuffer(r,1/0))}this.hls.once(v.BUFFERED_TO_END,this.onBufferedToEnd)}this.hls.trigger(v.BUFFER_EOS,{type:"video"})}get playhead(){return this.nextLoadPosition}startLoad(){if(!this.startFragRequested){const e=this.hls;
2e.nextLoadLevel=-1===e.startLevel?0:e.firstAutoLevel}}seekToStartPos(){}setStartPosition(){}alignPlaylists(e,t,n){const r=this.initDetails;return this.initDetails=null,super.alignPlaylists(e,t,n||r||void 0)}getMainFwdBufferInfo(){const e=this.playhead,t=this.getBufferedAt(e);if(t){const n=t.duration;return{len:n,start:e,end:e+n,bufferedIndex:-1}}return{len:0,start:e,end:e,bufferedIndex:-1}}_streamEnded(){const e=this.playhead,t=this.fragmentTracker.getBufferedFrag(e,U);return!(null==t||!t.endList)}}class gu extends pu{constructor(...e){super(...e),this._img=void 0,this.queued=void 0,this.cacheFragmentData=!1}get image(){return this._img}set image(e){var t;const n=null==(t=this._img)?void 0:t.src;n&&self.URL.revokeObjectURL(n),this._img=e}loadMediaAt(e){if(!this.hls)return;const t=e+this.timelineOffset;switch(this.nextLoadPosition=this.lastCurrentTime=t,this.startPosition=e,this.state){case Pi:case ji:case Hi:this.state=Oi}if(this.state===Oi){if(this.hls.resumeBuffering(),this.media||(this.media={}),this.tick(),this.state===Oi){const t=this.getBufferedAt(e);t&&(this.fragCurrent=t,this.updateImage(t,null))}}else{const n=this.fragCurrent;(!n||e>=n.start&&e<n.end)&&(this.queued=[t])}}updateImage(e,t,n){const r=e.data;r||this.fragmentTracker.removeFragment(e);const i=this._img;if(i&&r){const a=self.performance.now();(t?t.stats:e.stats).buffering.start=e.stats.buffering.start=a,i.onload=()=>{if(!this.hls)return;const r=this.hls.levels[e.level];null!=r&&r.fragmentError&&(r.fragmentError=0,e.stats.retry=0);const i=self.performance.now(),a=t?t.stats:e.stats;a.buffering.end=e.stats.buffering.end=i,this.hls.trigger(v.FRAG_BUFFERED,{frag:e,part:t,stats:a,id:e.type,chunkMeta:n})},i.onerror=()=>{this.handleError("Image decode error",e,t,n)};const s=i.src;s&&self.URL.revokeObjectURL(s);const o=new Blob([r],{type:"image/jpeg"});i.src=self.URL.createObjectURL(o)}else this.state=Pi,this.processQueued()}processQueued(){const e=this.queued;this.queued=void 0,e&&this.loadMediaAt.apply(this,e)}handleError(e,t,n,r){if(!this.hls)return;const i=new Error(e);this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_PARSING_ERROR,chunkMeta:r,frag:t,part:n,fatal:!1,error:i,err:i})}_bufferInitSegment(){}bufferFragmentData(e,t,n,r){super.bufferFragmentData(e,t,n,r,!0);const i=at(new Uint8Array(e.data1),["mdat"]);if(0===i.length)return void this.handleError("Could not find I-Frame mdat",t,n,r);const a=t;this.cacheSet(a,i[0]),this.updateImage(a,n,r)}fragBufferedComplete(e,t){this.fragmentTracker.fragBuffered(e,!0),super.fragBufferedComplete(e,t),this.processQueued()}checkFragPlaying(){var e;const t=null==(e=this.fragPrevious)?void 0:e.start;if(void 0!==t){const e=this.getAppendedFrag(t);if(e&&!q(e,this.fragPlaying))return this.fragPlaying=e,!0}return!1}getMainFwdBufferInfo(){return{len:0,start:this.playhead,end:this.playhead,bufferedIndex:-1}}}const yu="Image I-Frame player does not accept HTMLMediaElements",_u={seekOnAppend:!0};let vu,Eu;const bu=.025;let Tu=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function Su(e,t,n){return`${e.identifier}-${n+1}-${Nl(t)}`}class wu{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;if(e<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(t=this.assetList[e])?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Au(t,e)?Lu(e,t):e}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime;return t-Lu(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=m(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Au(t,e)?Lu(e,t):e}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<bu))}set appendInPlace(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return t=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?Tu.Range:Tu.Point}get supplementsPrimary(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}get contentMayVary(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||null!==this.assetListResponse}toString(){return`["${(e=this).identifier}" ${e.cue.pre?"<pre>":e.cue.post?"<post>":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`;var e}}function Lu(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<bu)?t.start:t.start+t.duration}function Au(e,t){return t>e.start-bu&&t<e.start+e.duration+bu}function Mu(e,t,n){const r=new self.URL(e,n);return"data:"!==r.protocol&&rn(r,"_HLS_primary_id",t),r}function Du(e,t){for(;null!=(n=e.assetList[++t])&&n.error;)var n;return t}function ku(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class Iu{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetail
2s=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(v.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const a=()=>{this.hasDetails=!0};i.once(v.LEVEL_LOADED,a),i.once(v.AUDIO_TRACK_LOADED,a),i.once(v.SUBTITLE_TRACK_LOADED,a),i.on(v.MEDIA_ATTACHING,(e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t;this.interstitial.playoutLimit&&(t.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(v.BUFFER_APPENDED,()=>{const e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,i.trigger(v.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=Mu(t,e.config.primarySessionId||"").href}catch(e){}e.loadSource(t)}}bufferedInPlaceToEnd(e,t){var n;if(!this.appendInPlace)return!1;if(null!=(n=this.hls)&&n.bufferedToEnd)return!0;if(!e)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset+(t||0),a=mr.bufferInfo(e,i,.02);return this.getAssetTime(a.end)>=r-.02}reachedPlayout(e){const t=this.interstitial.playoutLimit;return this.startOffset+e>=t}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=mr.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const n=t-this.startOffset;if(n>0&&n<e)return n}return e}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var e;this.mediaAttached&&(null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),null==(t=this.hls)||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,null==(e=this.hls)||e.detachMedia()}resumeBuffering(){var e;null==(e=this.hls)||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.hls)||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),(null==(e=this.hls)?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=e=>delete e.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var r;null==(r=this.hls)||r.on(e,t)}once(e,t,n){var r;null==(r=this.hls)||r.once(e,t)}off(e,t,n){var r;null==(r=this.hls)||r.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${ku(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Ru=.033;class Cu extends me{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={}
2,this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(i=r[n])&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];t&&"primary"!==t&&(i=i[t]);const a=i.start,s=n[r].event,o=null!=s&&s.cue.pre?s.duration:i.end;if(e===a||e>a&&e<o)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const e=n[r].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if((null==(n=t[r].event)?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let e=0;e<r;e++){const i=n[e];if(!i.error){const n=i.timelineStart;if(t===n||t>n&&(t<n+(i.duration||0)||e===r-1))return e}}return 0}get assetIdAtEnd(){var e;const t=null==(e=this.items)||null==(e=e[this.length-1])?void 0:e.event;if(t){const e=t.assetList,n=e[e.length-1];if(n)return n.identifier}return null}parseInterstitialDateRanges(e,t,n=0){const r=e.main.details,{dateRanges:i}=r,a=this.events,s=this.parseDateRanges(i,{url:r.url},t),o=Object.keys(i),l=a?a.filter(e=>-1===o.indexOf(e.identifier)):[];s.length&&s.sort((e,t)=>{const n=e.cue.pre,r=e.cue.post,i=t.cue.pre,a=t.cue.post;if(n&&!i)return-1;if(i&&!n)return 1;if(r&&!a)return 1;if(a&&!r)return-1;if(!(n||i||r||a)){const n=e.startTime,r=t.startTime;if(n!==r)return n-r}return e.dateRange.tagOrder-t.dateRange.tagOrder}),this.events=s,l.forEach(e=>{this.removeEvent(e)}),this.updateSchedule(e,l,n)}updateSchedule(e,t=[],n=0,r=!1){const i=this.events||[];
2if(i.length||t.length||this.length<2){const a=this.items,s=this.parseSchedule(i,e,n);(r||t.length||(null==a?void 0:a.length)!==s.length||s.some((e,t)=>Math.abs(e.playout.start-a[t].playout.start)>.005||Math.abs(e.playout.end-a[t].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,a))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let a=0;a<i.length;a++){const s=i[a],o=e[s];if(o.isInterstitial){let e=this.eventMap[s];e?e.setDateRange(o):(e=new wu(o,t),this.eventMap[s]=e,!1===n&&(e.appendInPlace=n)),r.push(e)}}return r}parseSchedule(e,t,n=0){const r=[],i=t.main.details,a=i.live?1/0:i.edge;let s=0;if((e=e.filter(e=>!(e.error||e.cue.once&&e.hasPlayed))).length){this.resolveOffsets(e,t);let l=0,u=0;if(e.forEach((t,o)=>{const c=t.cue.pre,d=t.cue.post,f=e[o-1]||null,h=t.appendInPlace,m=d?a:t.startOffset,p=t.duration,g=t.timelineOccupancy===Tu.Range?p:0,y=c&&i.live?n+(t.resumeOffset||0):0,_=y||t.resumptionOffset,v=(null==f?void 0:f.startTime)===m,E=m+t.cumulativeDuration;let b=h?E+p:m+_;if(c||!d&&m<=0){const e=u;u+=g,t.timelineStart=E;const n=s;s+=p,r.push({event:t,start:E,end:b,playout:{start:n,end:s},integrated:{start:e,end:u}})}else{if(!(m<=a))return;{if(!v){const n=m-l;if(n>Ru){const i=l,a=u;u+=n;const c=s;s+=n;const d={previousEvent:e[o-1]||null,nextEvent:t,start:i,end:i+n,playout:{start:c,end:s},integrated:{start:a,end:u}};r.push(d)}else n>0&&f&&(f.cumulativeDuration+=n,r[r.length-1].end=m)}d&&(b=E),t.timelineStart=E;const n=u;u+=g;const i=s;s+=p,r.push({event:t,start:E,end:b,playout:{start:i,end:s},integrated:{start:n,end:u}})}}const T=y||t.resumeTime;l=d||T>a?a:!c&&b&&t.appendInPlaceStarted&&T-b>Ru?b:T}),l<a){var o;const e=l,t=u,n=a-l;u+=n;const i=s;s+=n,r.push({previousEvent:(null==(o=r[r.length-1])?void 0:o.event)||null,nextEvent:null,start:l,end:e+n,playout:{start:i,end:s},integrated:{start:t,end:u}})}this.setDurations(a,s,u)}else{const e=0;r.push({previousEvent:null,nextEvent:null,start:e,end:a,playout:{start:e,end:a},integrated:{start:e,end:a}}),this.setDurations(a,a,a)}return r}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,a=-1;e.forEach((s,o)=>{const l=s.cue.pre,u=s.cue.post,c=l?0:u?r:s.startTime;this.updateAssetDurations(s);if(a===c?s.cumulativeDuration=i:(i=0,a=c),!u&&s.snapOptions.in&&(s.resumeAnchor=Mn(null,n.fragments,s.startOffset+s.resumptionOffset,0,0)||void 0),s.appendInPlace&&!s.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(s,t)||(s.appendInPlace=!1)}if(!s.appendInPlace&&o+1<e.length){e[o+1].startTime-e[o].resumeTime<Ru&&(e[o+1].appendInPlace=!1,e[o+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${s}`))}const d=m(s.resumeOffset)?s.resumeOffset:s.duration;i+=d})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;if(Math.abs(n-r)>bu)return this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1;return!Object.keys(t).some(r=>{const i=t[r].details,a=i.edge;if(n>=a)return this.log(`"${e.identifier}" resumption ${n} past ${r} playlist end ${a}`),!1;const s=Mn(null,i.fragments,n);if(!s)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${r} playlist (${i.fragStart}-${i.fragmentEnd})`),!0;const o="audio"===r?.175:0;return!(Math.abs(s.start-n)<bu+o||Math.abs(s.end-n)<bu+o)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${r} fragment bounds (${s.start}-${s.end} sn: ${s.sn} cc: ${s.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;for(let a=0;a<e.assetList.length;a++){const s=e.assetList[a],o=t+n;s.startOffset=n,s.timelineStart=o,r||(r=null===s.duration),i||(i=!!s.error);n+=s.error?0:s.duration||0}e.duration=r&&!i?Math.max(n,e.duration):n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Pu(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class Ou{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Mu(n,this.hls.sessionId,e.baseUrl)}catch(t){const r=this.assignAssetListError(e,_.ASSET_LIST_LOAD_ERROR,t,n);return void this.hls.trigger(v.ERROR,r)}t&&"data:"!==r.protocol&&rn(r,"_HLS_start_offset",""+t);const i=this.hls.config,a=new(0,i.loader)(i),s={type:Y,responseType:"json",url:r.href},o=i.interstitialAssetListLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},u={onSuccess:(t,n,r,i)=>{const a=t.data,s=null==a?void 0:a.ASSETS;if(!Array.isArray(s)){const t=this.assignAssetListError(e,_.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),r.url,n,i);return void this.hls.trigger(v.ERROR,t)}e.assetListResponse=a,this.hls.trigger(v.ASSET_LIST_LOADED,{event:e,assetListResponse:a,networkDetails:i}
2)},onError:(t,n,r,i)=>{const a=this.assignAssetListError(e,_.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${n.url})`),n.url,i,r);this.hls.trigger(v.ERROR,a)},onTimeout:(t,n,r)=>{const i=this.assignAssetListError(e,_.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,r);this.hls.trigger(v.ERROR,i)}};return a.load(s,l,u),this.hls.trigger(v.ASSET_LIST_LOADING,{event:e}),a}assignAssetListError(e,t,n,r,i,a){return e.error=n,{type:y.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:a,stats:i}}}function xu(e){var t;null==e||null==(t=e.play())||t.catch(()=>{})}function Nu(e,t){return`[${e}] Advancing timeline position to ${t}`}class Fu{constructor(e){this.buffered=void 0;const t=(t,n,r)=>{if((n>>>=0)>r-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${r})`);return e[n][t]};this.buffered={get length(){return e.length},end:n=>t("end",n,e.length),start:n=>t("start",n,e.length)}}}const Yu={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Uu=e=>String.fromCharCode(Yu[e]||e),Bu=15,ju=42,Hu={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Gu={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zu={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},$u={25:2,26:4,29:6,30:8,31:10,27:13,28:15},zu=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class qu{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n="function"==typeof t?t():t;Ee.log(`${this.time} [${e}] ${n}`)}}}const Wu=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t},Vu=Object.freeze({foreground:"white",underline:!1,italics:!1,background:"black",flash:!1});class Ku{constructor(){this.styles=Vu}get foreground(){return this.styles.foreground}set foreground(e){const t=this.styles;this.styles={foreground:e,underline:t.underline,italics:t.italics,background:t.background,flash:t.flash}}get underline(){return this.styles.underline}set underline(e){const t=this.styles;this.styles={foreground:t.foreground,underline:e,italics:t.italics,background:t.background,flash:t.flash}}get italics(){return this.styles.italics}set italics(e){const t=this.styles;this.styles={foreground:t.foreground,underline:t.underline,italics:e,background:t.background,flash:t.flash}}get background(){return this.styles.background}set background(e){const t=this.styles;this.styles={foreground:t.foreground,underline:t.underline,italics:t.italics,background:e,flash:t.flash}}get flash(){return this.styles.flash}set flash(e){const t=this.styles;this.styles={foreground:t.foreground,underline:t.underline,italics:t.italics,background:t.background,flash:e}}reset(){this.styles=Vu}setStyles(e){const t=this.styles,n=Object.prototype.hasOwnProperty;this.styles={foreground:n.call(e,"foreground")?e.foreground:t.foreground,underline:n.call(e,"underline")?e.underline:t.underline,italics:n.call(e,"italics")?e.italics:t.italics,background:n.call(e,"background")?e.background:t.background,flash:n.call(e,"flash")?e.flash:t.flash}}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class Xu{constructor(){this.uchar=" ",this.penState=new Ku}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.styles=t.styles}setPenState(e){this.penState.styles=e.styles}copy(e){this.uchar=e.uchar,this.penState.styles=e.penState.styles}}class Qu{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ku,this.cueStartTime=null,this.logger=void 0;for(let e=0;e<ju;e++)this.chars.push(new Xu);this.logger=e}equals(e){const t=this.chars,n=e.chars;for(let e=0;e<ju;e++){const r=t[e],i=n[e];if(r.uchar!==i.uchar)return!1;const a=r.penState.styles,s=i.penState.styles;if(a!==s&&(a.foreground!==s.foreground||a.underline!==s.underline||a.italics!==s.italics||a.background!==s.background||a.flash!==s.flash))return!1}return!0}copy(e){for(let t=0;t<ju;t++)this.chars[t].copy(e.chars[t])}isEmpty(){const e=this.chars;for(let t=0;t<ju;t++){const n=e[t];if(" "!==n.uchar)return!1;const r=n.penState.styles;if(r!==Vu&&("white"!==r.foreground||r.underline||r.italics||"black"!==r.background||r.flash))return!1}return!0}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>=ju&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=41)}moveCursor(e){const t=Math.min(this.pos+e,ju);if(e>1)for(let e=this.pos+1;e<t;e++)this.chars[e].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=Uu(e);this.pos>=ju?this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}clearFromPos(e){let t;for(t=e;t<ju;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<ju;n++){const r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e);this.chars[this.pos].setPenState(this.currPenState)}}class Ju{constructor(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Bu;t++)this.rows.push(new Qu(e));this.logger=e}reset(){for(let e=0;e<Bu;e++)this.rows[e].clear();this.currRow=14}equals(e){let t=!0;for(let n=0;n<Bu;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Bu;t++){const n=this.rows[t].chars,r=e.rows[t].chars;for(let e=0;e<ju;e++){const t=n[e],i=r[e];t.uchar=i.uchar,t.penState.styles=i.penState.styles}}}isEmpty(){let e=!0;for(let t=0;t<Bu;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e);this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+pn(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let e=0;e<Bu;e++)this.rows[e].clear();const e=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){const r=n.rows[e].cueStartTime,i=this.logger.time;if(null!==r&&null!==i&&r<i)for(let r=0;r<this.nrRollUpRows;r++)this.rows[t-this.nrRollUpRows+r+1].copy(n.rows[e+r])}}this.currRow=t;const n=this.rows[this.currRow];if(null!==e.indent){const t=e.indent,r=Math.max(t-1,0);n.setCursor(e.indent),e.color=n.chars[r].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+pn(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let n=0;n<Bu;n++){const i=this.rows[n].getTextString();i&&(r=n+1,e?t.push("Row "+r+": '"+i+"'"):t.push(i.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class ec{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Ju(n),this.nonDisplayedMemory=new Ju(n),this.lastOutputScreen=new Ju(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}
2ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+pn(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class tc{constructor(e,t,n){this.channels=[null,null,null],this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0,this.field=void 0,this.outputFilters=void 0,this.logger=new qu,this.field=e,this.outputFilters=[null,t,n]}getHandler(e){return this.outputFilters[e]}setHandler(e,t){var n;this.outputFilters[e]=t,null==(n=this.channels[e])||n.setHandler(t)}getChannel(e){let t=this.channels[e];return t||(t=this.channels[e]=new ec(this.field+e-1,this.outputFilters[e],this.logger)),t}addData(e,t){this.logger.time=e;for(let e=0;e<t.length;e+=2){const n=127&t[e],r=127&t[e+1];let i=!1,a=null;if(0===n&&0===r)continue;this.logger.log(3,()=>"["+Wu([t[e],t[e+1]])+"] -> ("+Wu([n,r])+")");const s=this.cmdHistory;if(n>=16&&n<=31){if(rc(n,r,s)){nc(null,null,s),this.logger.log(3,()=>"Repeated command ("+Wu([n,r])+") is dropped");continue}nc(n,r,this.cmdHistory),i=this.parseCmd(n,r),i||(i=this.parseMidrow(n,r)),i||(i=this.parsePAC(n,r)),i||(i=this.parseBackgroundAttributes(n,r))}else nc(null,null,s);if(!i&&(a=this.parseChars(n,r),a)){const e=this.currentChannel;if(e&&e>0){this.getChannel(e).insertChars(a)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}i||a||this.logger.log(2,()=>"Couldn't parse cleaned data "+Wu([n,r])+" orig: "+Wu([t[e],t[e+1]]))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;const n=20===e||21===e||23===e?1:2,r=this.getChannel(n);return 20===e||21===e||28===e||29===e?32===t?r.ccRCL():33===t?r.ccBS():34===t?r.ccAOF():35===t?r.ccAON():36===t?r.ccDER():37===t?r.ccRU(2):38===t?r.ccRU(3):39===t?r.ccRU(4):40===t?r.ccFON():41===t?r.ccRDC():42===t?r.ccTR():43===t?r.ccRTD():44===t?r.ccEDM():45===t?r.ccCR():46===t?r.ccENM():47===t&&r.ccEOC():r.ccTO(t-32),this.currentChannel=n,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if(n=17===e?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return!!r&&(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Wu([e,t])+")"),!0)}return!1}parsePAC(e,t){let n;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;const r=e<=23?1:2;n=t>=64&&t<=95?1===r?Hu[e]:Zu[e]:1===r?Gu[e]:$u[e];return this.getChannel(r).setPAC(this.interpretPAC(n,t)),this.currentChannel=r,!0}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>
295?t-96:t-64,r.underline=!(1&~n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let e;e=17===i?t+80:18===i?t+112:t+144,this.logger.log(2,()=>"Special char '"+Uu(e)+"' in channel "+n),r=[e]}else e>=32&&e<=127&&(r=0===t?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+Wu(r).join(",")),r}parseBackgroundAttributes(e,t){if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;let n;const r={};16===e||24===e?(n=Math.floor((t-32)/2),r.background=zu[n],t%2==1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0));const i=e<=23?1:2;return this.getChannel(i).setBkgData(r),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}nc(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function nc(e,t,n){n.a=e,n.b=t}function rc(e,t,n){return n.a===e&&n.b===t}class ic{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function ac(e,t,n,r){return Math.min(t,r)-Math.max(e,n)}const sc=/\s/,oc={newCue(e,t,n,r){const i=[];let a,s,o,l,u;const c=self.VTTCue||self.TextTrackCue;for(let f=0;f<r.rows.length;f++)if(a=r.rows[f],o=!0,l=0,u="",!a.isEmpty()){var d;for(let e=0;e<a.chars.length;e++)sc.test(a.chars[e].uchar)&&o?l++:(u+=a.chars[e].uchar,o=!1);a.cueStartTime=t,t===n&&(n+=1e-4),l>=16?l--:l++;const r=Ol(u.trim()),h=Ul(t,n,r);null!=e&&null!=(d=e.cues)&&d.getCueById(h)||(s=new c(t,n,r),s.id=h,s.line=f+1,s.align="left",s.position=10+Math.min(80,10*Math.floor(8*l/32)),i.push(s))}return e&&i.length&&(i.sort((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line),i.forEach(t=>eu(e,t))),i}};class lc{constructor(){this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=0,this.config=null,this.callbacks=null,this.context=null,this.stats=new k}destroy(){this.callbacks=this.context=this.config=null,this.abortInternal(),this.stats=null}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.getNetworkDetails())}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry;if(ue(e,this.stats.retry,!0))this.retry(e);else{var t;Ee.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);const e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.getNetworkDetails()))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=oe(e,n.retry),n.retry++,Ee.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.resetInternalLoader(),self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(()=>this.loadInternal(),this.retryDelay)}}const uc=/(\d+)-(\d+)\/(\d+)/;class cc extends lc{constructor(e){super(),this.fetchSetup=void 0,this.request=null,this.response=null,this.controller=null,this.fetchSetup=e.fetchSetup||dc}destroy(){this.request=null,super.destroy(),this.response=null,this.controller=null,this.fetchSetup=null}abortInternal(){self.clearTimeout(this.retryTimeout),this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}getNetworkDetails(){return this.response}resetInternalLoader(){this.response=null}loadInternal(){const{config:e,context:t,stats:n}=this;if(!e||!t)return;n.loading.first=0,n.loaded=0,n.aborted=!1,this.controller=new self.AbortController;const r=function(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(J({},e.headers))};e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1));return n}(t,this.controller.signal),i="arraybuffer"===t.responseType,a=i?"byteLength":"length",{maxTimeToFirstByteMs:s,maxLoadTimeMs:o}=e.loadPolicy;this.request=this.fetchSetup(t,r),self.clearTimeout(this.requestTimeout),e.timeout=s&&m(s)?s:o,this.requestTimeout=self.setTimeout(()=>{this.loadtimeout()}
vendor: 6,689 bytes, line 2
2,e.timeout);(ms(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(r=>{var a;this.response=r;const s=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(this.requestTimeout),e.timeout=o,this.requestTimeout=self.setTimeout(()=>{this.loadtimeout()},o-(s-n.loading.start)),!r.ok){const{status:e,statusText:t}=r;throw new fc(t||"fetch, bad network response",e,r)}n.loading.first=s,n.total=function(e){const t=e.get("Content-Range");if(t){const e=function(e){const t=uc.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(m(e))return e}const n=e.get("Content-Length");if(n)return parseInt(n)}(r.headers)||n.total;const l=null==(a=this.callbacks)?void 0:a.onProgress;return l&&m(e.highWaterMark)?this.loadProgressively(r,n,t,e.highWaterMark,l):i?r.arrayBuffer():"json"===t.responseType?r.json():r.text()}).then(r=>{var i,s;const o=this.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const l=r[a];l&&(n.loaded=n.total=l);const u={url:o.url,data:r,code:o.status},c=null==(i=this.callbacks)?void 0:i.onProgress;c&&!m(e.highWaterMark)&&c(n,t,r,o),null==(s=this.callbacks)||s.onSuccess(u,n,t,o)}).catch(r=>{if(self.clearTimeout(this.requestTimeout),n.aborted)return;const i=r&&r.code||0,a=r?r.message:null,s=e.loadPolicy.errorRetry;var o;ue(s,n.retry,!1,{url:t.url,data:void 0,code:i})?this.retry(s):(Ee.error(`${i} while loading ${t.url}`),null==(o=this.callbacks)||o.onError({code:i,text:a},t,r?r.details:null,n))})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const a=new Wi,s=e.body.getReader(),o=()=>s.read().then(s=>{if(s.done)return a.dataLength&&i(t,n,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=s.value,u=l.length;return t.loaded+=u,u<r||a.dataLength?(a.push(l),a.dataLength>=r&&i(t,n,a.flush().buffer,e)):i(t,n,l.buffer,e),o()}).catch(()=>Promise.reject());return o()}}function dc(e,t){return new self.Request(e.url,t)}class fc extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const hc=/^age:\s*[\d.]+\s*$/im;class mc extends lc{constructor(e){super(),this.xhrSetup=void 0,this.loader=null,this.xhrSetup=e.xhrSetup||null}destroy(){super.destroy(),this.loader=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}getNetworkDetails(){return this.loader}resetInternalLoader(){this.loader=null}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(this.loader===n&&!this.stats.aborted)return i.call(this,n,t.url,t)}).catch(e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),i.call(this,n,t.url,t)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(e=>{var i;null==(i=this.callbacks)||i.onError({code:n.status,text:e.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const t in r)e.setRequestHeader(t,r[t]);t.rangeEnd&&e.setRequestHeader("Range",`bytes=${t.rangeStart}-${t.rangeEnd-1}`),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&m(i)?i:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===r)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const r=t.status,l="text"===t.responseType?t.responseText:null;if(r>=200&&r<300){const i=null!=l?l:t.response;if(null!=i){var a,s;n.loading.end=Math.max(self.performance.now(),n.loading.first);const o="arraybuffer"===t.responseType?i.byteLength:i.length;n.loaded=n.total=o,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(a=this.callbacks)?void 0:a.onProgress;l&&l(n,e,i,t);const u={url:t.responseURL,data:i,code:r};return e.rangeEnd&&o!==e.rangeEnd-e.rangeStart&&Ee.warn(`Payload length ${o} does not match requested Range: bytes=${e.rangeStart}-${e.rangeEnd-1}`),void(null==(s=this.callbacks)||s.onSuccess(u,n,e,t))}}const u=i.loadPolicy.errorRetry;var o;if(ue(u,n.retry,!1,{url:e.url,data:void 0,code:r}))this.retry(u);else Ee.error(`${r} while loading ${e.url}`),null==(o=this.callbacks)||o.onError({code:r,text:t.statusText},e,t,n)}}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&hc.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const pc=te(te({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,loopBackBufferFlush:void 0,startOnSegmentBoundary:!1,nextAudioTrackBufferFlushForwardOffset:.25,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,skipBufferHolePadding:.1,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveMaxUnchangedPlaylistRefresh:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftw
2areAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,appendTimeout:1/0,ignorePlaylistParsingErrors:!1,loader:mc,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,handleMpegTsVideoIntegrityErrors:"process",abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,abrSwitchInterval:0,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Zr,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,emsgKLVSchemaUri:void 0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,iframeCacheLimit:2097152,useMediaCapabilities:!0,preserveManualLevelOnError:!1,errorPenaltyExpireMs:0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,streamController:mu,abrController:class extends me{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.firstAutoFloor=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.co
vendor: 8,457 bytes, line 2
2decTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;const{fragCurrent:n,partCurrent:r,hls:i}=this;if(!i)return;const{autoLevelEnabled:a,media:s}=i;if(!n||!s)return;const o=performance.now(),l=r?r.stats:n.stats,u=r?r.duration:n.duration,c=o-l.loading.start,d=i.minAutoLevel,f=n.level,h=this._nextAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||f<=d)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!a)return;const p=h>-1&&h!==f,g=!!e||p;if(!g&&(s.paused||!s.playbackRate||!s.readyState))return;const y=i.mainForwardBufferInfo;if(!g&&null===y)return;const _=this.bwEstimator.getEstimateTTFB(),E=Math.abs(s.playbackRate);if(c<=Math.max(_,u/(2*E)*1e3))return;const b=y?y.len/E:0,T=l.loading.first?l.loading.first-l.loading.start:-1,S=l.loaded&&T>-1,w=this.getBwEstimate(),L=i.levels,A=L[f],M=Math.max(l.loaded,Math.round(u*(n.bitrate||A.averageBitrate)/8));let D=S?c-T:c;D<1&&S&&(D=Math.min(c,8*l.loaded/w));const k=S?1e3*l.loaded/D:0,I=_/1e3,R=k?(M-l.loaded)/k:8*M/w+I;if(R<=b)return;const C=k?8*k:w,P=!0===(null==(t=(null==e?void 0:e.details)||i.latestLevelDetails)?void 0:t.live),O=i.config.abrBandWidthUpFactor;let x,N=Number.POSITIVE_INFINITY;for(x=f-1;x>d;x--){const e=L[x].maxBitrate,t=!L[x].details||P;if(N=this.getTimeToLoadFrag(I,C,u*e,t),N<Math.min(b,u+I))break}if(N>=R)return;if(N>10*u)return;S?this.bwEstimator.sample(c-Math.min(_,T),l.loaded):this.bwEstimator.sampleTTFB(c);const F=L[x].maxBitrate;this.getBwEstimate()*O>F&&(this.firstAutoFloor=Math.min(x,i.firstLevel),this.resetEstimator(F));const Y=this.findBestLevel(F,d,x,0,b,1,1);Y>-1&&(x=Y),this.warn(`Fragment ${n.sn}${r?" part "+r.index:""} of level ${f} is loading too slowly;\n Fragment duration: ${n.duration.toFixed(3)}\n Time to underbuffer: ${b.toFixed(3)} s\n Estimated load time for current fragment: ${R.toFixed(3)} s\n Estimated load time for down switch fragment: ${N.toFixed(3)} s\n TTFB estimate: ${0|T} ms\n Current BW estimate: ${m(w)?0|w:"Unknown"} bps\n New BW estimate: ${0|this.getBwEstimate()} bps\n Switching to level ${x} @ ${0|F} bps`),i.nextLoadLevel=i.nextAutoLevel=x,this.clearTimer();const U=()=>{this.clearTimer();const e=this.hls;if(this.fragCurrent===n&&e.loadLevel===x&&x>0){const t=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${x>0?"and switching down":""}\n Fragment duration: ${n.duration.toFixed(3)} s\n Time to underbuffer: ${t.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,x>d){let n=this.findBestLevel(e.levels[d].bitrate,d,x,0,t,1,1);-1===n&&(n=d),e.nextLoadLevel=e.nextAutoLevel=n,this.firstAutoFloor=Math.min(n,e.firstLevel),this.resetEstimator(e.levels[n].bitrate)}}};p||R>2*N?U():this.timer=self.setInterval(U,1e3*N),i.trigger(v.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:l})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){this.hls&&(e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator())}initEstimator(){const e=this.hls.config;return new he(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const e=this.hls;e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.FRAG_LOADING,this.onFragLoading,this),e.on(v.FRAG_LOADED,this.onFragLoaded,this),e.on(v.FRAG_BUFFERED,this.onFragBuffered,this),e.on(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(v.LEVEL_LOADED,this.onLevelLoaded,this),e.on(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(v.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(v.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.FRAG_LOADING,this.onFragLoading,this),e.off(v.FRAG_LOADED,this.onFragLoaded,this),e.off(v.FRAG_BUFFERED,this.onFragBuffered,this),e.off(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(v.LEVEL_LOADED,this.onLevelLoaded,this),e.off(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(v.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(v.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.audioTracksByGroup=this.codecTiers=this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.firstAutoFloor=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){var r;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(r=t.part)?r:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case _.BUFFER_ADD_CODEC_ERROR:case _.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case _.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:n,partCurrent:r}=this;if(e&&W(e,n)){const t=performance.now(),n=r?r.stats:e.stats,i=t-n.loading.start,a=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&a>-1){const e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(i-Math.min(e,a),n.loaded)}else this.bwEstimator.sampleTTFB(i)}break}}}getTimeToLoadFrag(e,t,n,r){return e+n/t+(r?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;m(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,t){var n;const{frag:r,part:i}=t,a=i?i.stats:r.stats;if(r.type===U&&this.bwEstimator.sampleTTFB(a.loading.first-a.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),r.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,null!=(n=this.hls)&&n.config.abrMaxWithRealBitrate){const e=i?i.duration:r.duration,t=this.hls.levels[r.level],n=(t.loaded?t.loaded.bytes:0)+a.loaded,s=(t.loaded?t.loaded.duration:0)+e;t.loaded={bytes:n,duration:s},t.realBitrate=Math.round(8*n/s)}if(r.bitrateTest){const e={stats:a,frag:r,part:i,id:r.type};this.onFragBuffered(v.FRAG_BUFFERED,e),r.bitrateTest=!1}else this.lastLoadedFragLevel=r.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=null!=r&&r.stats.loaded?r.stats:n.stats;if(i.aborted)return;if(this.ignoreFragment(n))return;const a=((n.bitrate||0)>=1e5?i.parsing.end:i.loading.end)-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:(this.bitrateTestDelay=0,this.firstAutoFloor>-1&&this.bwEstimator.canEstimate()&&(this.firstAutoFloor=-1))}ignoreFragment(e){return e.type!==U||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{hls:e}=this;if(!e)return 0;const{maxAutoLevel:t,minAutoLevel:n}=e,r=this.getBwEstimate(),i=this.getStarvationDelay(),a=e.config.maxStarvationDelay,s=this.findBestLevel(r,n,t,i/2,a,1,1);if(s>-1)return s;const o=e.firstLevel,l=-1===this.firstAutoFloor?1/0:this.firstAutoFloor,u=Math.min(Math.max(o,n),t,l);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${u}`),u}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){if(!this.hls)return-1;const e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;const r=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,r)&&t[e].loadError<=t[r].loadError)return e}return this._nextAutoLevel=r,this.nextAutoLevelKey=this.getAutoLevelKey(),r}getAutoLevelKey(){return`${this.getBwEstimate()}
2_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(!n)return-1;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:a}=n,s=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let u=i.abrBandWidthFactor,c=i.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(o,a,r,l,0,u,c);if(e>=0)return this.rebufferNotice=-1,e}let d=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){d=(s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),u=c=1}}const f=this.findBestLevel(o,a,r,l,d,u,c);if(this.rebufferNotice!==f&&(this.rebufferNotice=f,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${f}`)),f>-1)return f;const h=n.levels[a],m=n.loadLevelObj;return m&&(null==h?void 0:h.bitrate)<m.bitrate?a:n.loadLevel}getStarvationDelay(){const e=this.hls,t=null==e?void 0:e.media;if(!t)return 1/0;const n=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.getEstimate()}findBestLevel(e,t,n,r,i,a,s){const{hls:o,lastLoadedFragLevel:l,fragCurrent:u,partCurrent:c}=this;if(!o)return-1;const d=r+i,f=-1===l?o.firstLevel:l,{levels:h,allAudioTracks:p,loadLevel:g,latestLevelDetails:y,config:_}=o;if(1===h.length)return 0;const v=h[f],E=!(null==y||!y.live),b=-1===g||-1===l;let T,S="SDR",w=(null==v?void 0:v.frameRate)||0;const{audioPreference:L,videoPreference:A}=_,M=this.audioTracksByGroup||(this.audioTracksByGroup=yn(p));let D=-1;if(b){if(-1!==this.firstSelection)return this.firstSelection;const r=this.codecTiers||(this.codecTiers=function(e,t,n,r){return e.slice(n,r+1).reduce((e,n,r)=>{if(!n.codecSet)return e;const i=n.audioGroups;let a=e[n.codecSet];a||(e[n.codecSet]=a={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:r,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}),a.minBitrate=Math.min(a.minBitrate,n.bitrate);const s=Math.min(n.height,n.width);return a.minHeight=Math.min(a.minHeight,s),a.minFramerate=Math.min(a.minFramerate,n.frameRate),a.minIndex=Math.min(a.minIndex,r),a.maxScore=Math.max(a.maxScore,n.score),a.fragmentError+=n.fragmentError,a.videoRanges[n.videoRange]=(a.videoRanges[n.videoRange]||0)+1,i&&i.forEach(e=>{if(!e)return;const n=t.groups[e];n&&(a.hasDefaultAudio=a.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach(e=>{a.channels[e]=(a.channels[e]||0)+n.channels[e]}))}),e},{})}(h,M,t,n)),i=function(e,t,n,r,i){const a=Object.keys(e),s=null==r?void 0:r.channels,o=null==r?void 0:r.audioCodec,l=null==i?void 0:i.videoCodec,u=s&&2===parseInt(s);let c=!1,d=!1,f=1/0,h=1/0,p=1/0,g=1/0,y=0,_=[];const{preferHDR:v,allowedVideoRanges:E}=mn(t,i);for(let t=a.length;t--;){const n=e[a[t]];c||(c=n.channels[2]>0),f=Math.min(f,n.minHeight),h=Math.min(h,n.minFramerate),p=Math.min(p,n.minBitrate),E.filter(e=>n.videoRanges[e]>0).length>0&&(d=!0)}f=m(f)?f:0,h=m(h)?h:0;const b=Math.max(1080,f),T=Math.max(30,h);p=m(p)?p:n,n=Math.max(p,n),d||(t=void 0);const S=a.length>1;return{codecSet:a.reduce((t,r)=>{const i=e[r];if(r===t)return t;if(_=d?E.filter(e=>i.videoRanges[e]>0):[],S){if(i.minBitrate>n)return gn(r,`min bitrate of ${i.minBitrate} > current estimate of ${n}`),t;if(!i.hasDefaultAudio)return gn(r,"no renditions with default or auto-select sound found"),t;if(o&&r.indexOf(o.substring(0,4))%5!=0)return gn(r,`audio codec preference "${o}" not found`),t;if(s&&!u){if(!i.channels[s])return gn(r,`no renditions with ${s} channel sound found (channels options: ${Object.keys(i.channels)})`),t}else if((!o||u)&&c&&0===i.channels[2])return gn(r,"no renditions with stereo sound found"),t;if(i.minHeight>b)return gn(r,`min resolution of ${i.minHeight} > maximum of ${b}`),t;if(i.minFramerate>T)return gn(r,`min framerate of ${i.minFramerate} > maximum of ${T}`),t;if(!_.some(e=>i.videoRanges[e]>0))return gn(r,`no variants with VIDEO-RANGE of ${pn(_)} found`),t;if(l&&r.indexOf(l.substring(0,4))%5!=0)return gn(r,`video codec preference "${l}" not found`),t;if(i.maxScore<y)return gn(r,`max score of ${i.maxScore} < selected max of ${y}`),t}return t&&(jt(r)>=jt(t)||i.fragmentError>e[t].fragmentError)?t:(g=i.minIndex,y=i.maxScore,r)},void 0),videoRanges:_,preferHDR:v,minFramerate:h,minBitrate:p,minIndex:g}}(r,S,e,L,A),{codecSet:a,videoRanges:s,minFramerate:o,minBitrate:l,minIndex:u,preferHDR:c}=i;D=u,T=a,S=c?s[s.length-1]:s[0],w=o,e=Math.max(e,l),this.log(`picked start tier ${pn(i)}`)}else T=null==v?void 0:v.codecSet,S=null==v?void 0:v.videoRange;
vendor: 3,571 bytes, line 2
2const k=c?c.duration:u?u.duration:0,I=this.bwEstimator.getEstimateTTFB()/1e3,R=[];for(let o=n;o>=t;o--){var C;const t=h[o],u=o>f;if(!t)continue;if(_.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){const n=navigator.mediaCapabilities;"function"==typeof(null==n?void 0:n.decodingInfo)&&Jt(t,M,S,w,e,L)?(t.supportedPromise=en(t,M,n,this.supportedCache),t.supportedPromise.then(e=>{if(!this.hls)return;t.supportedResult=e;const n=this.hls.levels,r=n.indexOf(t);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${r} ${pn(e)}`):e.supported?e.decodingInfoResults.some(e=>!1===e.smooth||!1===e.powerEfficient)&&this.log(`MediaCapabilities decodingInfo for level ${r} not smooth or powerEfficient: ${pn(e)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${r} ${pn(e)}`),r>-1&&n.length>1&&(this.log(`Removing unsupported level ${r}`),this.hls.removeLevel(r),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}).catch(e=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${e}`)})):t.supportedResult=Xt}if((T&&t.codecSet!==T||S&&t.videoRange!==S||u&&w>t.frameRate||!u&&w>0&&w<t.frameRate||null!=(C=t.supportedResult)&&null!=(C=C.decodingInfoResults)&&C.some(e=>!1===e.smooth))&&(!b||o!==D)){R.push(o);continue}const p=t.details,y=(c?null==p?void 0:p.partTarget:null==p?void 0:p.averagetargetduration)||k||1;let v;v=u?s*e:a*e;const A=k&&r>=2*k&&0===i?t.averageBitrate:t.maxBitrate,P=this.getTimeToLoadFrag(I,v,A*y,!p||p.live);if(v>=A&&(o===l||0===t.loadError&&0===t.fragmentError||de(t,_.errorPenaltyExpireMs))&&(P<=I||!m(P)||E&&!this.bitrateTestDelay||P<d)){const e=this.forcedAutoLevel;return o===g||-1!==e&&e===g||(R.length&&this.trace(`Skipped level(s) ${R.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${h[R[0]].codecs}" ${h[R[0]].videoRange}; not compatible with "${T}" ${S}`),this.info(`switch candidate:${f}->${o} adjustedbw(${Math.round(v)})-bitrate=${Math.round(v-A)} ttfb:${I.toFixed(1)} avgDuration:${y.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${P.toFixed(1)} firstSelection:${b} codecSet:${t.codecSet} videoRange:${t.videoRange} hls.loadLevel:${g}`)),b&&(this.firstSelection=o),o}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){if(!this.hls)return-1;const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}},bufferController:class extends me{constructor(e,t){var n;super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.fragmentAppendProgress=Object.create(null),this.appendsWithoutProgress=Object.create(null),this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.appendError=void 0,this._quotaEvictionPending={},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&"open"===(null==(t=this.mediaSource)?void 0:t.readyState)&&this.media&&!this.media.seeking&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{const{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(Ri(n,"sourceopen",this._onMediaSourceOpen),Ri(t,"emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(v.MEDIA_ATTA
vendor: 1,596 bytes, line 2
2CHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{if(this.log("Media source closed"),this.media){const e=this.media.error,{appendError:t,appendErrors:n}=this;let r=!1;if(!t&&e){r=Math.max(++n.audio,++n.video,++n.audiovideo)>=this.hls.config.appendErrorMaxRetry}const i=new Error(`MediaSource closed while media attached${Ds(r,e)}`);this.warn(i),this.hls.trigger(v.ERROR,J({fatal:r},t,{type:y.MEDIA_ERROR,details:_.MEDIA_SOURCE_REQUIRES_RESET,error:i}))}},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this._onMediaError=()=>{const{media:e}=this;var t,n;e&&this.log(`Media error (code: ${null==(t=e.error)?void 0:t.code}): ${null==(n=e.error)?void 0:n.message}`)},this.hls=e,this.fragmentTracker=t,this.appendSource=(n=be(e.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null,this._onMediaEmptied=this._onMediaError=null}registerListeners(){const{hls:e}=this;
vendor: 4,724 bytes, line 2
2e.on(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_PARSED,this.onManifestParsed,this),e.on(v.BUFFER_RESET,this.onBufferReset,this),e.on(v.BUFFER_APPENDING,this.onBufferAppending,this),e.on(v.BUFFER_CODECS,this.onBufferCodecs,this),e.on(v.BUFFER_EOS,this.onBufferEos,this),e.on(v.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(v.FRAG_PARSED,this.onFragParsed,this),e.on(v.FRAG_CHANGED,this.onFragChanged,this),e.on(v.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_PARSED,this.onManifestParsed,this),e.off(v.BUFFER_RESET,this.onBufferReset,this),e.off(v.BUFFER_APPENDING,this.onBufferAppending,this),e.off(v.BUFFER_CODECS,this.onBufferCodecs,this),e.off(v.BUFFER_EOS,this.onBufferEos,this),e.off(v.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(v.FRAG_PARSED,this.onFragParsed,this),e.off(v.FRAG_CHANGED,this.onFragChanged,this),e.off(v.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const e=this.isUpdating();e||this.operationQueue.removeBlockers();const t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return r&&!this.sourceBufferCount&&r.mediaSource===t?J(n,r.tracks):this.sourceBuffers.forEach(e=>{const[t]=e;t&&(n[t]=J({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){this.resetAppendProgress(),this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.lastMpegAudioChunk=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null,this.resetAppendErrors(),this.resetAppendProgress()}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const r=be(this.appendSource);if(r){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const i=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(i),e)this._objectUrl=n.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(i);if(this.appendSource)try{n.removeAttribute("src");const t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&i instanceof t,As(n),function(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,e),n.load()}catch(t){n.src=e}else n.src=e}Ii(n,"emptied",this._onMediaEmptied),Ii(n,"error",this._onMediaError),this.appendSource&&Ii(n,"seeking",this._onStartStreaming)}}assignMediaSource(e){var t,n;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(n=e.constructor)?void 0:n.name}`),Ii(e,"sourceopen",this._onMediaSourceOpen),Ii(e,"sourceended",this._onMediaSourceEnded),Ii(e,"sourceclose",this._onMediaSourceClose),this.appendSource&&(Ii(e,"startstreaming",this._onStartStreaming),Ii(e,"endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,a=i?i.length:0,s=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(r&&i&&a){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})\nrequired tracks: ${pn(n,(e,t)=>"initSegment"===e?void 0:t)};\ntransfer tracks: ${pn(r,(e,t)=>"initSegment"===e?void 0:t)}}`),!Te(r,n)){t.mediaSource=null,t.tracks=void 0;const i=e.currentTime,a=this.details,s=Math.max(i,(null==a?void 0:a.fragments[0].start)||0);return s-i>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${i} -> ${s}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${s} currentTime: ${i}`),this.onMediaDetaching(v.MEDIA_DETACHING,{}
vendor: 4,294 bytes, line 2
2),this.onMediaAttaching(v.MEDIA_ATTACHING,t),void(e.currentTime=s))}this.transferData=void 0,i.forEach(e=>{const t=e,n=r[t];if(n){const e=n.buffer;if(e){const r=this.fragmentTracker,i=n.id;if(r.hasFragments(i)||r.hasParts(i)){const n=mr.getBuffered(e);r.detectEvictedFragments(t,n,i,null,null,!0)}const a=Ms(t),s=[t,e];this.sourceBuffers[a]=s,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,n)}}}),s(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),s()}get mediaSourceOpenOrEnded(){var e;const t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:a}=this;if(i){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach(([e])=>{e&&this.removeBuffer(e)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const e="open"===i.readyState;try{const t=i.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),i.removeSourceBuffer(t[n]);e&&i.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}Ri(i,"sourceopen",this._onMediaSourceOpen),Ri(i,"sourceended",this._onMediaSourceEnded),Ri(i,"sourceclose",this._onMediaSourceClose),this.appendSource&&(Ri(i,"startstreaming",this._onStartStreaming),Ri(i,"endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(Ri(r,"emptied",this._onMediaEmptied),Ri(r,"error",this._onMediaError),Ri(r,"seeking",this._onStartStreaming),n||(a&&self.URL.revokeObjectURL(a),this.mediaSrc===a?(r.removeAttribute("src"),this.appendSource&&As(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;null!=(r=this.mediaSource)&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ms(e)]=[null,null];const t=this.tracks[e];t&&(this.clearBufferAppendTimeoutId(t),t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Ts(this.tracks)}onBufferCodecs(e,t){var n;const r=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const a="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),s=!a&&this.sourceBufferCount&&this.media&&i.some(e=>!r[e]);a||s?this.warn(`Unsupported transition between "${Object.keys(r)}" and "${i}" SourceBuffers`):(i.forEach(e=>{var n,i;const a=t[e],{id:s,codec:o,levelCodec:l,container:u,metadata:c,supplemental:d}=a;let f=r[e];const h=null==(n=this.transferData)||null==(n=n.tracks)?void 0:n[e],m=null!=h&&h.buffer?h:f,p=(null==m?void 0:m.pendingCodec)||(null==m?void 0:m.codec),g=null==m?void 0:m.levelCodec;f||(f=r[e]={buffer:void 0,listeners:[],codec:o,supplemental:d,container:u,levelCodec:l,metadata:c,id:s});const y=$t(p,g),_=null==y?void 0:y.replace(Ss,"$1");let v=$t(o,l);const E=null==(i=v)?void 0:i.replace(Ss,"$1");v&&y&&_!==E&&("audio"===e.slice(0,5)&&(v=Zt(v,this.appendSource)),this.log(`switching codec ${p} to ${v}`),v!==(f.pendingCodec||f.codec)&&(f.pendingCodec=v),f.container=u,this.appendChangeType(e,u,v))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&"main"===(null==(n=t.audio)?void 0:n.id)&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks()))}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const i=this.tracks[e];if(i){const a=i.buffer;null!=a&&a.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}
2`),a.changeType(r),i.codec=n,i.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,U))?void 0:t.gap))return;const i={label:"block-audio",execute:()=>{var e,t;(this.lastVideoAppendEnd>r||mr.isBuffered(null==(e=this.tracks.video)?void 0:e.buffer,r)||!0===(null==(t=this.fragmentTracker.getAppendedFrag(r,U))?void 0:t.gap))&&this.unblockAudio()},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.append(i,"audio",!0)}unblockAudio(){this.operationQueue&&this.operationQueue.unblockAudio()}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:a,frag:s,part:o,chunkMeta:l,offset:u}=t,c=l.buffering[i],d=z(s)&&!o&&!s.gap&&!l.partial&&!l.iframe;let f=null,h=!1;const{sn:p,cc:g}=s,E=self.performance.now();c.start=E;const b=s.stats.buffering,T=o?o.stats.buffering:null;0===b.start&&(b.start=E),0===(null==T?void 0:T.start)&&(T.start=E);const S=n.audio;let w=!1;"audio"===i&&"audio/mpeg"===(null==S?void 0:S.container)&&(w=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);const L=n.video,A=null==L?void 0:L.buffer;if(A&&"initSegment"!==p&&void 0!==u){const e=null==S?void 0:S.buffer,t=o||s;if("audio"===i&&"main"!==a&&!L.ending&&!L.ended&&e&&mr.getBuffered(e).length){const e=t.start+.05*t.duration,n=mr.getBuffered(A),r=this.currentOp("video");n.length||r?!mr.isBuffered(A,e)&&this.lastVideoAppendEnd<e&&this.blockAudio(t):this.blockAudio(t)}else if("video"===i){const e=t.end,n=this.lastVideoAppendEnd-e;this.lastVideoAppendEnd=e,n<0||n>t.duration?this.unblockAudio():this.isAudioBlocked()&&this.executeNext("audio")}}const M=(o||s).start,D={label:`append-${i}`,execute:()=>{var e;c.executeStart=self.performance.now();const t=null==(e=this.tracks[i])?void 0:e.buffer;t&&(d&&(f=mr.timeRangesToArray(mr.getBuffered(t)),h=Rs(Is(f,s),s)),w?this.updateTimestampOffset(t,M,.1,i,p,g):void 0!==u&&m(u)&&this.updateTimestampOffset(t,u,1e-6,i,p,g)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{this.clearBufferAppendTimeoutId(this.tracks[i]);const e=self.performance.now();c.executeEnd=c.end=e,0===b.first&&(b.first=e),0===(null==T?void 0:T.first)&&(T.first=e);const t={};if(this.sourceBuffers.forEach(([e,n])=>{e&&(t[e]=mr.getBuffered(n))}),d){const e=this.getFragmentAppendProgress(s),n=t[i];if(n&&f){const t=Is(mr.timeRangesToArray(n),s);e.progressed||(e.progressed=t-Is(f,s)>.001);const r=h&&Rs(t,s);e.fullyBuffered[i]=(void 0===e.fullyBuffered[i]||e.fullyBuffered[i])&&r}}this.hls.trigger(v.BUFFER_APPENDED,{type:i,frag:s,part:o,chunkMeta:l,parent:a,timeRanges:t})},onError:e=>{var t;this.clearBufferAppendTimeoutId(this.tracks[i]);const n=e.code===DOMException.QUOTA_EXCEEDED_ERR||"QuotaExceededError"==e.name||"quota"in e;if(n&&!this._quotaEvictionPending[i]){const e=this.getBackBufferEvictionTarget(i,r.byteLength,s.type);if(e>0){this._quotaEvictionPending[i]=!0,this.log(`QuotaExceededError on "${i}" append sn: ${p} - evicting back buffer to ${e.toFixed(3)}s and retrying`);const t=this.getFlushOp(i,0,e),n=this.getClearEvictionPendingOp(i);return void this.insertNext([t,D,n],i)}this.warn(`QuotaExceededError on "${i}" sn: ${p} - no back buffer available to evict`)}d&&(this.getFragmentAppendProgress(s).errored=!0);const u={type:y.MEDIA_ERROR,parent:a,details:_.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:s,part:o,chunkMeta:l,error:e,err:e,fatal:!1},c=null==(t=this.media)?void 0:t.error;if(e.name!==ws||0!==this.sourceBufferCount||this.media&&0!==this.pendingTrackCount){var f;n&&(u.details=_.BUFFER_FULL_ERROR);const t=++this.appendErrors[i],r=this.hls.config.appendErrorMaxRetry;this.warn(`Failed ${t}/${r+1} times to append segment in "${i}" sourceBuffer with error: ${e.message}`),t>=r&&(u.fatal=!n);const a=null==(f=this.mediaSource)?void 0:f.readyState;("ended"===a||"closed"===a||c)&&(this.warn(`MediaSource readyState "${a}" during SourceBuffer${Ds(u.fatal,c)}`),u.details=_.MEDIA_SOURCE_REQUIRES_RESET)}else u.errorAction=Zn(!0);this.appendError=u,this.hls.trigger(v.ERROR,u),n&&this.hls&&this.trimBuffers(s.start,1)}};this.log(`queuing "${i}" append sn: ${p}${o?" p: "+o.index:""} of ${a} playlist ${s.level} cc: ${g} offset: ${u} bytes: ${r.byteLength}`),this.append(D,i,this.isPending(this.tracks[i]))}getClearEvictionPendingOp(e){return{label:"clear",execute:()=>{this._quotaEvictionPending[e]=!1,this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:()=>{}}}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{var r;const i=null==(r=this.tracks[e])?void 0:r.buffer;this.log(`Remove request ${t}-${n} from ${e} Source Buffer complete > buffer: ${i?Ci(mr.getBuffered(i)):"(detached)"}`),this.hls.trigger(v.BUFFER_FLUSHED,{type:e,start:t,end:n})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r),this.hls.trigger(v.BUFFER_FLUSHED,{type:e,start:0,end:0,error:r})}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n&&"audio"!==n||this.unblockAudio(),n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEac
2h(([e])=>{e&&this.append(this.getFlushOp(e,r,i),e)})}onFragParsed(e,t){const{frag:n,part:r,chunkMeta:i}=t,a=[],s=r?r.elementaryStreams:n.elementaryStreams;s[Z]?a.push("audiovideo"):(s[H]&&a.push("audio"),s[G]&&a.push("video"));0===a.length&&this.log(`Fragments must have at least one ElementaryStreamType set. ${n.type} ${n.level} ${r?`part: ${r.index} of `:""}sn: ${n.sn}`),this.blockBuffers(()=>{const e=self.performance.now();n.stats.buffering.end=e,r&&(r.stats.buffering.end=e);const t=r?r.stats:n.stats;this.checkAppendProgress(n,r,i,a),this.hls&&(this.hls.trigger(v.FRAG_BUFFERED,{frag:n,part:r,stats:t,id:n.type,chunkMeta:i}),!r&&n.gap&&t.retry&&this.log(`Nothing buffered for ${n.type} level: ${n.level} sn: ${n.sn} retries ${t.retry}`))},a).catch(e=>{this.warn(`Fragment buffered callback ${e.message}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){var n,r;const i=null==(n=this.hls)?void 0:n.config;if(!i)return;const{backBufferLength:a,frontBufferFlushThreshold:s}=i;this.trimBuffers(s,a,t.frag,t.previousFrag);const o=t.frag.elementaryStreams,{appendErrors:l}=this,u=null==(r=this.appendError)?void 0:r.sourceBufferName;Object.keys(o).forEach(e=>{o[e]&&(l[e]=0,e===u&&(this.appendError=void 0),"audio"===e||"video"===e?(l.audiovideo=0,"audiovideo"===u&&(this.appendError=void 0)):(l.audio=0,l.video=0,"audiovideo"!==u&&(this.appendError=void 0)))})}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([e])=>{if(e){const n=this.tracks[e];t.type&&t.type!==e||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${e} buffer reached EOS`)))}});const r=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)})?(this.unblockAudio(),r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:e}=this;"open"===(null==e?void 0:e.readyState)?(this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(v.BUFFERED_TO_END,void 0)):e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`)})):(this.tracksEnded(),this.hls.trigger(v.BUFFERED_TO_END,void 0))):"video"===t.type&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(null!==e){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===_.BUFFER_APPEND_ERROR&&t.frag){var n;const e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;m(e)&&e!==t.frag.level&&this.resetAppendErrors()}}getBackBufferEvictionTarget(e,t,n){const{media:r}=this;return r?this.fragmentTracker.getBackBufferEvictionEnd(r.currentTime,n,t):0}getFragmentAppendProgress(e){var t;const n=ks(e);let r=this.fragmentAppendProgress[n];return(null==(t=r)?void 0:t.stats)!==e.stats&&(r={stats:e.stats,progressed:!1,errored:!1,fullyBuffered:Object.create(null)},this.fragmentAppendProgress[n]=r),r}checkAppendProgress(e,t,n,r){if(t||!z(e)||e.gap||n.iframe||n.partial)return;const i=ks(e),a=this.fragmentAppendProgress[i];delete this.fragmentAppendProgress[i];const s=e.stats.buffering;if(s.start&&!s.first)return;const o=(null==a?void 0:a.stats)===e.stats?a:void 0;if(null!=o&&o.errored)return;const l=r.length>0&&r.every(e=>!0===(null==o?void 0:o.fullyBuffered[e]));if(null!=o&&o.progressed||l)return void delete this.appendsWithoutProgress[i];if(!o&&0===r.length)return;const u=(this.appendsWithoutProgress[i]||0)+1,c=this.hls;u>=c.config.appendErrorMaxRetry?delete this.appendsWithoutProgress[i]:this.appendsWithoutProgress[i]=u,this.warn(`Fragment ${e.sn} of ${e.type} playlist ${e.level} appended ${u} time${u>1?"s":""} without buffered range growth`),c.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_APPEND_NO_PROGRESS,fatal:!1,frag:e,chunkMeta:n,parent:e.type,appendsWithoutProgress:u,error:new Error(`Fragment append did not increase buffered coverage (${u})`)})}resetAppendProgress(){this.fragmentAppendProgress=Object.create(null),this.appendsWithoutProgress=Object.create(null)}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0},this.appendError=void 0}trimBuffers(e,t,n,r){const{hls:i,details:a,media:s}=this;if(!s||null===a)return;if(!this.sourceBufferCount)return;const o=i.config,l=s.currentTime,u=a.levelTargetDuration;t=a.live&&null!==o.liveBackBufferLength?o.liveBackBufferLength:t;
vendor: 8,573 bytes, line 2
2let c=-1/0;if(m(t)&&t>=0){const e=Math.max(t,u);c=Math.floor(l/u)*u-e}if(n){const e=this.getLoopBackBufferFlushEnd(n,null!=r?r:null);e>0&&(c=Math.max(c,e))}if(c>0&&this.flushBackBuffer(l,u,c),m(e)&&e>0){const t=Math.max(o.maxBufferLength,e),n=Math.max(t,u),r=Math.floor(l/u)*u+n;this.flushFrontBuffer(l,u,r)}}getLoopBackBufferFlushEnd(e,t){var n;const{media:r}=this;if(!1===(null==(n=this.hls)?void 0:n.config.loopBackBufferFlush)||null==r||!r.loop||!t||e.level<=t.level)return 0;const{video:i,audiovideo:a}=e.elementaryStreams;if(null!=i&&i.partial||null!=a&&a.partial)return 0;const s=this.getEarliestElementaryStreamStart(e)-.25;return s<=0?0:(this.log(`Flushing lower quality back buffer for loop: level ${e.level}, range [0-${s.toFixed(3)}]`),s)}getEarliestElementaryStreamStart(e){const{audio:t,video:n,audiovideo:r}=e.elementaryStreams;let i=e.start;return r?i=Math.min(i,r.startDTS):(t&&(i=Math.min(i,t.startDTS)),n&&(i=Math.min(i,n.startDTS))),i}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([e,t])=>{if(t){const s=mr.getBuffered(t);if(s.length>0&&n>s.start(0)){var r,i,a;this.hls.trigger(v.BACK_BUFFER_REACHED,{bufferEnd:n});const t=this.tracks[e];if(null!=(r=this.details)&&r.live)this.hls.trigger(v.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=t&&t.ended&&(null==(i=this.media)||!i.loop||!1===(null==(a=this.hls)?void 0:a.config.loopBackBufferFlush)))return void this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);this.hls.trigger(v.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:e})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([t,r])=>{if(r){const i=mr.getBuffered(r),a=i.length;if(a<2)return;const s=i.start(a-1),o=i.end(a-1);if(n>s||e>=s&&e<=o)return;this.hls.trigger(v.BUFFER_FLUSHING,{startOffset:s,endOffset:1/0,type:t})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){const e=Math.max(0,t.fragmentStart);return{duration:1/0,start:e,end:Math.max(e,r)}}return{duration:1/0}}const i=null==(e=this.overrides)?void 0:e.duration;if(i)return m(i)?{duration:i}:null;const a=this.media.duration;return r>(m(n.duration)?n.duration:0)&&r>a||!m(a)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;r&&this.media&&"open"===r.readyState&&(r.duration!==e&&(m(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),void 0!==t&&void 0!==n&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${pn(n)}`),this.tracksReady){var r;const e=null==(r=this.transferData)?void 0:r.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(v.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([e])=>{this.executeNext(e)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const a=i,s=e[a];if(this.isPending(s)){const e=this.getTrackCodec(s,a),i=`${s.container};codecs=${e}`;s.codec=e,this.log(`creating sourceBuffer(${i})${this.currentOp(a)?" Queued":""} ${pn(s)}`);try{const e=n.addSourceBuffer(i),r=Ms(a),o=[a,e];t[r]=o,s.buffer=e}catch(e){var r;return this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(a),null==(r=this.operationQueue)||r.removeBlockers(),delete this.tracks[a],void this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:a,mimeType:i,parent:s.id})}this.trackSourceBuffer(a,s)}}this.bufferCreated()}clearBufferAppendTimeoutId(e){e&&(self.clearTimeout(e.bufferAppendTimeoutId),e.bufferAppendTimeoutId=void 0)}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&("video"===t||"audiovideo"===t)&&Ft(n,"video")&&(r=function(e,t){const n=[];if(e){const t=e.split(",");for(let e=0;e<t.length;e++)Nt(t[e],"video")||n.push(t[e])}return t&&n.push(t),n.join(",")}(r,n));const i=$t(r,e.levelCodec);return i?"audio"===t.slice(0,5)?Zt(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(e,t)=>{const n=t.removedRanges;null!=n&&n.length&&(this.log(`${e} buffer removed ${Ci(n)}`),this.hls.trigger(v.BUFFER_FLUSHED,{type:e,start:n.start(0),end:n.end(n.length-1)}))})}get mediaSrc(){var e,t;const n=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t,n;if("closed"===(null==(t=this.mediaSource)?void 0:t.readyState))return void this.resetBuffer(e);const r=this.currentOp(e);if(!r)return;r.onComplete();if(null==(n=this.tracks[e])||null==(n=n.buffer)?void 0:n.updating)return this.log(`${e} SourceBuffer updating on "updateend"`),void this.blockUntilOpen(()=>{this.shiftAndExecuteNext(e)});this.shiftAndExecuteNext(e)}onSBUpdateError(e,t){var n;const r=null==(n=this.mediaSource)?void 0:n.readyState,i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${r}`);this.error(`${i.message}`,t),this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const a=this.currentOp(e);a&&a.onError(i)}updateTimestampOffset(e,t,n,r,i,a){const s=t-e.timestampOffset;Math.abs(s)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${a})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,a=this.tracks[e],s=null==a?void 0:a.buffer;if(!r||!i||!s)throw new Error(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`);const o=m(r.duration)?r.duration:1/0,l=m(i.duration)?i.duration:1/0,u=Math.max(0,t);var c;if(u>=l)return null==(c=this.currentOp(e))||c.onComplete(),void this.shiftAndExecuteNext(e);const d=Math.min(n,o,l);if(!(d>u)||a.ending&&!a.ended)throw new Error(`Cannot remove ${d<=u?`invalid range (${u} >= ${d}) `:""}from the ${e} SourceBuffer${a.ending?" while track ending":""}`);a.ended=!1,this.log(`Removing [${u},${d}] from the ${e} SourceBuffer`),s.remove(u,d)}appendExecutor(e,t){const n=this.tracks[t],r=null==n?void 0:n.buffer;if(!r)throw new Ls(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);if(n.ending=!1,n.ended=!1,this.hls.config.appendTimeout!==1/0){const e=this.calculateAppendTimeoutTime(r);n.bufferAppendTimeoutId=self.setTimeout(()=>this.appendTimeoutHandler(t,r,e),e)}r.appendBuffer(e)}appendTimeoutHandler(e,t,n){this.log(`Received timeout after ${n}ms for append on ${e} source buffer. Aborting and triggering error.`);try{t.abort()}catch(t){this.log(`Failed to abort append on ${e} source buffer after timeout.`)}const r=this.currentOp(e);r&&r.onError(new Error(`${e}-append-timeout`))}calculateAppendTimeoutTime(e){let t=10;this.details&&(t=this.details.levelTargetDuration);let n=2*t*1e3;if(null===this.media)return n;const r=mr.bufferInfo(e,this.media.currentTime,0);return r.len?(n=Math.max(1e3*r.len,n),Math.max(this.hls.config.appendTimeout,n)):n}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(e=>{this.warn(`SourceBuffer blocked callback ${e}
2`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}isAudioBlocked(){var e;return"block-audio"===(null==(e=this.currentOp("audio"))?void 0:e.label)}isAudioBlocking(){return!!this.operationQueue&&this.operationQueue.audioBlocking()}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=2===t.length&&this.isAudioBlocking()?[this.appendBlocker("video")]:t.map(e=>this.appendBlocker(e));return Promise.all(r).then(t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(e=>{var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;!n||n.updating||"audio"===e&&this.isAudioBlocked()||this.shiftAndExecuteNext(e)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}insertNext(e,t){this.operationQueue&&this.operationQueue.insertNext(e,t)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const a=n.bind(this,e);r.listeners.push({event:t,listener:a}),Ii(i,t,a)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(e=>{Ri(n,e.event,e.listener)}),t.listeners.length=0)}},capLevelController:Cs,errorController:class extends me{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(v.ERROR,this.onError,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(v.ERROR,this.onError,this),e.off(v.ERROR,this.onErrorOut,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===U?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,n=t.currentLevel;return null!=(e=t.loadLevelObj)&&e.details||-1===n?t.loadLevel:n}variantHasKey(e,t){if(e){var n;if(null!=(n=e.details)&&n.hasKey(t))return!0;const r=e.audioGroups;if(r){return this.hls.allAudioTracks.filter(e=>r.indexOf(e.groupId)>=0).some(e=>{var n;return null==(n=e.details)?void 0:n.hasKey(t)})}}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case _.FRAG_LOAD_ERROR:case _.FRAG_LOAD_TIMEOUT:case _.KEY_LOAD_ERROR:case _.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case _.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction=Zn());case _.FRAG_GAP:case _.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=Pn);case _.PLAYLIST_UNCHANGED_ERROR:case _.LEVEL_EMPTY_ERROR:case _.LEVEL_PARSING_ERROR:{var a;const e=t.parent===U?t.level:r.loadLevel;t.details===_.LEVEL_EMPTY_ERROR&&null!=(a=t.context)&&null!=(a=a.levelDetails)&&a.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case _.LEVEL_LOAD_ERROR:case _.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==i?void 0:i.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level)));case _.AUDIO_TRACK_LOAD_ERROR:case _.AUDIO_TRACK_LOAD_TIMEOUT:case _.SUBTITLE_LOAD_ERROR:case _.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const e=r.loadLevelObj;if(e&&(i.type===C&&e.hasAudioGroup(i.groupId)||i.type===P&&e.hasSubtitleGroup(i.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Pn,void(t.errorAction.flags=Fn)}return;case _.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:return void(t.errorAction={action:Pn,flags:Yn});case _.KEY_SYSTEM_SESSION_UPDATE_FAILED:case _.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case _.KEY_SYSTEM_NO_SESSION:return void(t.errorAction={action:Pn,flags:Un});
2case _.BUFFER_ADD_CODEC_ERROR:case _.REMUX_ALLOC_ERROR:case _.BUFFER_APPEND_ERROR:return void(t.errorAction||(t.errorAction=this.getLevelSwitchAction(t,t.level)));case _.MEDIA_SOURCE_REQUIRES_RESET:return t.errorAction||(t.errorAction=this.getLevelSwitchAction(t,t.level)),void(t.errorAction.flags|=jn|Bn);case _.INTERNAL_EXCEPTION:case _.BUFFER_APPENDING_ERROR:case _.BUFFER_APPEND_NO_PROGRESS:case _.BUFFER_FULL_ERROR:case _.LEVEL_SWITCH_ERROR:case _.BUFFER_STALLED_ERROR:case _.BUFFER_SEEK_OVER_HOLE:case _.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=Zn())}t.type===y.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=Zn())}getPlaylistRetryOrSwitchAction(e,t){const n=se(this.hls.config.playlistLoadPolicy,e),r=this.playlistError++;if(ue(n,r,re(e),e.response))return{action:xn,flags:Nn,retryConfig:n,retryCount:r};const i=this.getLevelSwitchAction(e,t);return n&&(i.retryConfig=n,i.retryCount=r),i}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,s=se(ie(e)?a:i,e),o=t.levels.reduce((e,t)=>e+t.fragmentError,0);if(r&&(e.details!==_.FRAG_GAP&&r.fragmentError++,!ae(e))){if(ue(s,o,re(e),e.response))return{action:xn,flags:Nn,retryConfig:s,retryCount:o}}const l=this.getLevelSwitchAction(e,n);return s&&(l.retryConfig=s,l.retryCount=o),l}getLevelSwitchAction(e,t){const n=this.hls;null==t&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,a;const t=e.details;r.loadError++,r.loadErrorTime=self.performance.now(),t===_.BUFFER_APPEND_ERROR&&r.fragmentError++;let l=-1;const{levels:u,loadLevel:c,minAutoLevel:d,maxAutoLevel:f}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const h=null==(i=e.frag)?void 0:i.type,m=(h===B&&t===_.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&Hn(e))&&u.some(({audioCodec:e})=>r.audioCodec!==e),p="video"===e.sourceBufferName&&Hn(e)&&u.some(({codecSet:e,audioCodec:t})=>r.codecSet!==e&&r.audioCodec===t),{type:g,groupId:y}=null!=(a=e.context)?a:{};for(let i=u.length;i--;){const a=(i+c)%u.length;if(a!==c&&a>=d&&a<=f&&(0===u[a].loadError||de(u[a],n.config.errorPenaltyExpireMs))){var s,o;const n=u[a];if(t===_.FRAG_GAP&&h===U&&e.frag){const t=u[a].details;if(t){const n=Mn(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else{if(g===C&&n.hasAudioGroup(y)||g===P&&n.hasSubtitleGroup(y))continue;if(h===B&&null!=(s=r.audioGroups)&&s.some(e=>n.hasAudioGroup(e))||h===j&&null!=(o=r.subtitleGroups)&&o.some(e=>n.hasSubtitleGroup(e))||m&&r.audioCodec===n.audioCodec||p&&r.codecSet===n.codecSet||!m&&r.audioCodec!==n.audioCodec)continue}l=a;break}}if(l>-1&&n.loadLevel!==l)return e.levelRetry=!0,this.playlistError=0,{action:Pn,flags:Nn,nextAutoLevel:l}}return{action:Pn,flags:Fn}}onErrorOut(e,t){var n,r;switch(null==(n=t.errorAction)?void 0:n.action){case Cn:break;case Pn:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===_.FRAG_GAP||t.details===_.PLAYLIST_UNCHANGED_ERROR||Gn(t)||(t.fatal=!0)}((null==(r=t.errorAction)?void 0:r.flags)||0)&jn&&this.hls.recoverMediaError(),t.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;let r=n.nextAutoLevel;if(n.flags===Nn)this.switchLevel(e,r);else if(n.flags&Bn){const e=this.hls.levels;for(let t=e.length;t--;)"SDR"!==e[t].videoRange?(e[t].fragmentError++,e[t].loadError++):void 0===r&&(r=t)}else if(n.flags&Yn){const r=this.getVariantLevelIndex(e.frag),i=t.levels[r],a=null==i?void 0:i.attrs["HDCP-LEVEL"];n.hdcpLevel=a;const s="NONE"===a;a&&!s?(t.maxHdcpLevel=an[an.indexOf(a)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)):(s&&this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE"),n.flags|=Un)}if(n.flags&Un){const t=e.decryptdata;if(t){const r=this.hls.levels,s=r.length;for(let n=s;n--;){var i,a;if(this.variantHasKey(r[n],t))this.log(`Banned key found in level ${n} (${r[n].bitrate}bps) or audio group "${null==(i=r[n].audioGroups)?void 0:i.join(",")}" (${null==(a=e.frag)?void 0:a.type} fragment) ${Ge(t.keyId||[])}`),r[n].fragmentError++,r[n].loadError++,this.log(`Removing level ${n} with key error (${e.error})`),this.hls.removeLevel(n)}const o=e.frag;if(this.hls.levels.length<s)n.resolved=!0;else if(o&&o.type!==U){const e=o.decryptdata;e&&!t.matches(e)&&(n.resolved=!0)}}}n.resolved||this.switchLevel(e,r)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===_.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){const t=Vt(e.mimeType),n=this.hls.levels;for(let r=n.length;r--;)n[r][`${e.sourceBufferName}Codec`]===t&&(this.log(`Removing level ${r} for ${e.details} ("${t}" not supported)`),this.hls.removeLevel(r))}}},fpsController:class{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}
vendor: 2,171 bytes, line 2
2registerListeners(){this.hls.on(v.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(v.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(v.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const e=r-this.lastTime,i=n-this.lastDroppedFrames,a=t-this.lastDecodedFrames,s=1e3*i/e,o=this.hls;if(o.trigger(v.FPS_DROP,{currentDropped:i,currentDecoded:a,totalDroppedFrames:n}),s>0&&i>o.config.fpsDroppedMonitoringThreshold*a){let e=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=e)&&(e-=1,o.trigger(v.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:o.currentLevel}),o.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}},id3TrackController:class{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(v.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;
2e&&(e.on(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(v.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(v.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(v.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(v.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){this.media=t.media}onMediaAttached(){var e;const t=null==(e=this.hls)?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null;!!t.transferMedia||(this.id3Track&&(this.id3Track.remove(),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){return Ql(e,"metadata","id3","","hidden")}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:r}=this.hls.config;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=su();if(a)for(let e=0;e<i.length;e++){const t=i[e].type;if(t===ua.emsg&&!n||!r)continue;const s=Ue(i[e].data),o=i[e].pts;let l=o+i[e].duration;l>lu&&(l=lu);l-o<=0&&(l=o+.25);for(let e=0;e<s.length;e++){const n=s[e];if(!Be(n)){this.updateId3CueEnds(o,t);const e=ou(a,o,l,n,t);e&&this.id3Track.track.addCue(e)}}}}updateId3CueEnds(e,t){var n;const r=null==(n=this.id3Track)?void 0:n.track.cues;if(r)for(let n=r.length;n--;){const i=r[n];i.type===t&&i.startTime<e&&i.endTime===lu&&(i.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:s,enableID3MetadataCues:o}}=a;if(i&&(s||o)){let e;e="audio"===r?e=>e.type===ua.audioId3&&o:"video"===r?e=>e.type===ua.emsg&&s:e=>e.type===ua.audioId3&&o||e.type===ua.emsg&&s,tu(i.track,t,n,e)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:r,enableDateRangeMetadataCues:i,interstitialsController:a}=this.hls.config;if(!i)return;const s=su();if(n&&r&&!a){const{fragmentStart:t,fragmentEnd:r}=e;let i=this.assetCue;i?(i.startTime=t,i.endTime=r):s&&(i=this.assetCue=ou(s,t,r,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),i&&(i.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.track.addCue(i),i.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:o}=this,{dateRanges:l}=e,u=Object.keys(l);let c=this.dateRangeCuesAppended;var d;if(o&&t)if(null!=(d=o.track.cues)&&d.length){const e=Object.keys(c).filter(e=>-1===u.indexOf(e));for(let t=e.length;t--;){var f;const n=e[t],r=null==(f=c[n])?void 0:f.cues;delete c[n],r&&Object.keys(r).forEach(e=>{const t=r[e];if(t){t.removeEventListener("enter",this.onEventCueEnter);try{o.track.removeCue(t)}catch(e){}}})}}else c=this.dateRangeCuesAppended={};const h=e.fragments[e.fragments.length-1];if(0!==u.length&&m(null==h?void 0:h.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let e=0;e<u.length;e++){const t=u[e],n=l[t],r=n.startTime,i=c[t],o=(null==i?void 0:i.cues)||{};let d=(null==i?void 0:i.durationKnown)||!1,f=lu;const{duration:h,endDate:m}=n;if(m&&null!==h)f=r+h,d=!0;else if(n.endOnNext&&!d){const e=u.reduce((e,t)=>{if(t!==n.id){const r=l[t];if(r.class===n.class&&r.startDate>n.startDate&&(!e||n.startDate<e.startDate))return r}return e},null);e&&(f=e.startTime,d=!0)}const p=Object.keys(n.attr);for(let e=0;e<p.length;e++){const l=p[e];if(!Sr(l))continue;const u=o[l];if(u)!d||null!=i&&i.durationKnown?Math.abs(u.startTime-r)>.01&&(u.startTime=r,u.endTime=f):u.endTime=f;else if(s){let e=n.attr[l];wr(l)&&(e=Ze(e));const i=ou(s,r,f,{key:l,data:e},ua.dateRange);i&&(i.id=t,this.id3Track.track.addCue(i),o[l]=i,a&&("X-ASSET-LIST"!==l&&"X-ASSET-URL"!==l||i.addEventListener("enter",this.onEventCueEnter)))}}c[t]={cues:o,dateRange:n,durationKnown:d}}}}},gapController:class extends dr{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.skipRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=void 0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var e;this.hls&&(this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(v.MEDIA_ENDED,{stalled:!1}))},this.hls=e,this.fragmentTracker=t,this.lastCurrentTime=this.getCurrentTime(),this.registerListeners()}registerListeners(){const{hls:e}=this;
vendor: 10,090 bytes, line 2
2e&&(e.on(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ii(n,"playing",this.onMediaPlaying),Ii(n,"waiting",this.onMediaWaiting),Ii(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Ri(n,"playing",this.onMediaPlaying),Ri(n,"waiting",this.onMediaWaiting),Ri(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}getCurrentTime(){var e;const t=(null==(e=this.hls)?void 0:e.config.timelineOffset)||0;return this.media?Math.max(this.media.currentTime,t):t}tick(){var e;if(null==(e=this.media)||!e.readyState||!this.hasBuffered)return;const t=this.getCurrentTime();this.media.currentTime<t||(this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t)}poll(e,t){var n,r;const i=null==(n=this.hls)?void 0:n.config;if(!i)return;const a=this.media;if(!a)return;const{seeking:s}=a,o=this.seeking&&!s,l=!this.seeking&&s,u=a.paused&&!s||a.ended||0===a.playbackRate;if(this.seeking=s,e!==t)return t&&(this.ended=0),this.moved=!0,s||(this.skipRetry=this.nudgeRetry=0,i.nudgeOnVideoHole&&!u&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(l||o)return void(o&&this.stallResolved(e));if(u)return this.skipRetry=this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&a.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(v.MEDIA_ENDED,{stalled:!1})));if(!mr.getBuffered(a).length)return void(this.skipRetry=this.nudgeRetry=0);const c=mr.bufferInfo(a,e,0),d=this.fragmentTracker;d&&this.hls&&au(c,e,d,this.hls);const f=c.nextStart||0;if(s&&d&&this.hls){const t=nu(this.hls.inFlightFragments,e),n=c.len>2,r=!f||t||f-e>2&&!d.getPartialFragment(e);if(n||r)return;this.moved=!1}const h=null==(r=this.hls)?void 0:r.latestLevelDetails;if(!this.moved&&null!==this.stalled&&d){if(!(c.len>0)&&!f)return;const t=Math.max(f,c.start||0)-e,n=!(null==h||!h.live)?2*h.targetduration:2,r=iu(e,d);if(t>0&&(t<=n||r))return void(a.paused||this._trySkipBufferHole(r))}const m=i.detectStallWithCurrentTimeMs,p=self.performance.now(),g=this.waiting;let y=this.stalled;if(null===y){if(!(g>0&&p-g<m))return void(this.stalled=p);y=this.stalled=g}const _=p-y;if(!s&&(_>=m||g&&this.moved)&&this.hls){var E;if("ended"===(null==(E=this.mediaSource)?void 0:E.readyState)&&(null==h||!h.live)&&Math.abs(e-((null==h?void 0:h.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(v.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(c),!this.media||!this.hls)return;if(a.currentTime!==e){const t=e;return e=a.currentTime,this.moved=!0,void this.log(`currentTime changed ${t} > ${e}`)}}const b=mr.bufferInfo(a,e,i.maxBufferHole);this._tryFixBufferStall(b,_,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(v.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&r&&r.length>1&&e>r.end(0)){const n=mr.bufferedInfo(mr.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){const n=mr.timeRangesToArray(r),i=mr.bufferedInfo(n,t,0).bufferedIndex;if(i>-1&&i<n.length-1){const t=mr.bufferedInfo(n,e,0).bufferedIndex,r=n[i].end,a=n[i+1].start;if((-1===t||t>i)&&a-r<1&&e-r<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${r} -> ${a} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;let i=iu(e,this.fragmentTracker);i&&"fragment"in i?i=i.fragment:i||(i=void 0);const s=mr.bufferInfo(this.media,e,0);this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:i,buffer:s.len,bufferInfo:s})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:a,media:s}=this,o=null==(r=this.hls)?void 0:r.config;if(!s||!a||!o)return;const l=null==(i=this.hls)?void 0:i.latestLevelDetails,u=iu(n,a);if(u||null!=l&&l.live&&n<l.fragmentStart){if(this._trySkipBufferHole(u)||!this.media)return}const c=e.buffered,d=this.adjacentTraversal(e,n);(c&&c.length>1&&e.len>o.maxBufferHole||e.nextStart&&(e.nextStart-n<o.maxBufferHole||d))&&(t>1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const e=n.getFragAtPos(t,U),i=n.getFragAtPos(r,U);if(e&&i)return i.sn-e.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&null!==i&&n&&t){this.stallReported=!0;const r=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${pn(e)})`);this.warn(r.message),t.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_STALLED_ERROR,fatal:!1,error:r,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){const{fragmentTracker:t,media:n,hls:r}=this,i=null==r?void 0:r.config;if(!n||!t||!i)return 0;const a=n.currentTime,s=mr.bufferInfo(n,a,0);au(s,a,t,r);const o=a<s.start?s.start:s.nextStart;if(o){const u=s.len<=i.maxBufferHole,c=s.len>0&&s.len<1&&n.readyState<3,d=o-a;if(d>0&&(u||c)){if(d>i.maxBufferHole){let n=!1;if(0===a){const e=t.getAppendedFrag(0,U);e&&o<e.end&&(n=!0)}if(!n&&e){var l;if(null==(l=r.loadLevelObj)||!l.details)return 0;if(nu(r.inFlightFragments,o))return 0;let n=!1,i=e.end;for(;i<o;){const e=iu(i,t),r=e?e.duration:0;if(!(r>0)){n=!0;break}i+=r}if(n)return 0}}const{nudgeMaxRetry:u,skipBufferHolePadding:c}=i,f=++this.skipRetry>u,h=Math.max(o,a)+c;if(f||(this.warn(`skipping hole, adjusting currentTime from ${a} to ${h}`),this.moved=!0,n.currentTime=h),null==e||!e.gap||f){const t=new Error(f?`Playhead still not moving after seeking over buffer hole from ${a} to ${h} after ${i.nudgeMaxRetry} attempts.`:`fragment loaded with buffer holes, seeking from ${a} to ${h}`),n={type:y.MEDIA_ERROR,details:_.BUFFER_SEEK_OVER_HOLE,fatal:f,error:t,reason:t.message,buffer:s.len,bufferInfo:s};e&&("fragment"in e?n.part=e:n.frag=e),r.trigger(v.ERROR,n)}return h}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=null==t?void 0:t.config;if(!n||!i)return 0;const a=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const s=a+(r+1)*i.nudgeOffset,o=new Error(`Nudging 'currentTime' from ${a} to ${s}`);this.warn(o.message),n.currentTime=s,t.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_NUDGE_ON_STALL,error:o,fatal:!1,buffer:e.len,bufferInfo:e})}else{const n=new Error(`Playhead still not moving while enough data buffered @${a} after ${i.nudgeMaxRetry} nudges`);this.error(n.message),t.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.BUFFER_STALLED_ERROR,error:n,fatal:!0,buffer:e.len,bufferInfo:e})}}},latencyController:class{constructor(e){this.hls=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{var e;const{media:t}=this,n=this.levelDetails;if(!t||!n||!this.hls)return;this.currentTime=t.currentTime;const r=this.hls.config,i=this.computeLatency();if(null===i)return;this._latency=i;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=r;if(!a||1===s||!n.live)return;const o=this.targetLatency;if(null===o)return;const l=i-o,u=l<Math.min(this.maxLatency,o+n.targetduration),c=qi(r)&&!(null==(e=this.hls.interstitialsManager)||null==(e=e.playingItem)||!e.event);if(u&&l>.05&&this.forwardBufferLength>1&&!c){const e=Math.min(2,Math.max(1,s)),n=Math.round(2/(1+Math.exp(-.75*l-this.edgeStalled))*20)/20,r=Math.min(e,Math.max(1,n));this.changeMediaPlaybackRate(t,r)}else 1!==t.playbackRate&&0!==t.playbackRate&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){var e;const t=null==(e=this.hls)?void 0:e.config;if(!t)return 0;if(void 0!==t.liveMaxLatencyDuration)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const e=this.levelDetails;if(null===e||!this.hls)return null;const t=this.hls.config,{holdBack:n,partHoldBack:r,targetduration:i}=e,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:o}=t,l=this.hls.userConfig;let u=o&&r||n;(this._targetLatencyUpdated||l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:s*i);const c=i;return u+Math.min(this.stallCount*t.liveSyncOnStallIncrease,c)}set targetLatency(e){this.hls&&(this.stallCount=0,this.hls.config.liveSyncDuration=e,this._targetLatencyUpdated=!0)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t||!this.hls)return null;const n=this.levelDetails;if(null===n)return null;const r=n.edge,i=e-t-this.edgeStalled,a=r-n.totalduration,s=r-(this.hls.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,i),s)}get drift(){const e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(null===e||!this.hls)return 0;const t=3*(this.hls.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;
2e&&(e.on(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(v.ERROR,this.onError,this),e.on(v.INTERSTITIAL_ASSET_STARTED,this.onAssetStarted,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(v.ERROR,this.onError,this),e.off(v.INTERSTITIAL_ASSET_STARTED,this.onAssetStarted,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onAssetStarted(e,t){var n;const r=this.hls,i=this.media||t.event.appendInPlace&&(null==r||null==(n=r.interstitialsManager)?void 0:n.playerQueue.reduce((e,t)=>e||t.media,null));r&&i&&i.playbackRate>1&&i.playbackRate<=r.config.maxLiveSyncPlaybackRate&&this.changeMediaPlaybackRate(i,1)}onError(e,t){var n;t.details===_.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(r=this.targetLatency)?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}},{cueHandler:oc,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends $i{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",j),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(v.LEVEL_LOADED,this.onLevelLoaded,this),e.on(v.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(v.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(v.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(v.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(v.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(v.LEVEL_LOADED,this.onLevelLoaded,this),e.off(v.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(v.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(v.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(v.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(v.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Oi,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,part:r,success:i}=t;if(!i)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const o=(r||n).start;for(let e=0;e<a.length;e++)if(o>=a[e].start&&o<=a[e].end){s=a[e];break}const l=o+(r||n).duration;if(s?s.end=l:(s={start:o,end:l},a.push(s)),!r||l>=n.end){const e=this.fragmentTracker.fragBuffered(n);r&&e&&(e.range.subs={time:[{startPTS:n.start,endPTS:l}],partial:!0}),z(n)&&!this.fragContextChanged(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r),this.media&&this.tickImmediate()}}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(0===n&&r!==Number.POSITIVE_INFINITY){const e=r-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach(t=>{if(t)for(let n=0;n<t.length;)if(t[n].end<=e)t.shift();else{if(!(t[n].start<e))break;t[n].start=e,n++}}
2),this.fragmentTracker.removeFragmentsInRange(n,e,j)}}onError(e,t){const n=t.frag;(null==n?void 0:n.type)===j&&(t.details===_.FRAG_GAP&&this.fragmentTracker.addAsGap(n),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Pi&&(this.state=Oi))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){this.levels&&Es(this.levels,t)?this.levels=t.map(e=>new fn(e)):(this.tracksBuffered=[],this.levels=t.map(e=>{const t=new fn(e);return this.tracksBuffered[t.id]=[],t}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,j),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const r=this.levels[this.currentTrackId];null!=r&&r.details?(this.mediaBuffer=this.mediaBufferTimeRanges,this.state!==Pi&&this.setInterval(500)):this.mediaBuffer=null}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:a,id:s}=t;if(!i)return void this.warn(`Subtitle tracks were reset while loading level ${s}`);const o=i[s];if(s>=i.length||!o)return;this.log(`Subtitle track ${s} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;const l=this.mainDetails;let u=0;if(a.live||null!=(n=o.details)&&n.live){if(a.deltaUpdateFailed)return;if(!l)return void(this.startFragRequested=!1);var c;if(o.details)u=this.alignPlaylists(a,o.details,null==(c=this.levelLastLoaded)?void 0:c.details);a.alignedSliding||(ki(l,a,this),u=a.fragmentStart)}o.details=a,this.levelLastLoaded=o,l&&!this.startFragRequested&&this.setStartPosition(l,u),s===r&&(this.hls.trigger(v.SUBTITLE_TRACK_UPDATED,{details:a,id:s,groupId:t.groupId}),this.tickImmediate())}_handleFragmentLoadProgress(e){const{frag:t,part:n,payload:r}=e;n&&null!=r&&r.byteLength&&this.shouldDecrypt(t)&&this.decryptPayload(r,t,n)}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e;!this.fragContextChanged(t)&&null!=n&&n.byteLength&&this.shouldDecrypt(t)&&this.decryptPayload(n,t,null)}shouldDecrypt(e){const t=e.decryptdata;return!!(null!=t&&t.key&&t.iv&&kr(t.method))}decryptPayload(e,t,n){const r=t.decryptdata,i=performance.now();this.decrypter.decrypt(new Uint8Array(e),r.key.buffer,r.iv.buffer,Ir(r.method)).then(e=>{this.fragContextChanged(t)||this.hls.trigger(v.FRAG_DECRYPTED,{frag:t,part:n,payload:e,stats:{tstart:i,tdecrypt:performance.now()}})}).catch(e=>{this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t,part:n}),n||(this.warn(`${e.name}: ${e.message}`),this.state=Oi)})}doTick(){if(this.state===Oi&&this.levels){var e;if(!this.media&&!this.primaryPrefetch&&(this.startFragRequested||!this.config.startFragPrefetch))return;const{currentTrackId:n,levels:r}=this,i=r[n],a=null==i?void 0:i.details;if(!a||this.waitForLive(i)||this.waitForCdnTuneIn(a))return void(this.startFragRequested=!1);const{config:s}=this,o=this.playhead,l=mr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],o,s.maxBufferHole),{end:u,len:c}=l;if(c>Math.max(this.hls.maxBufferLength+a.levelTargetDuration,(null==(e=this.hls.mainForwardBufferInfo)?void 0:e.len)||0)||c&&!this.buffering)return;let d=this.getNextFragment(u,a);if(!d)return;if(z(d)){var t;const e=d.sn-a.startSN,n=a.fragments[e-1];d.cc!==(null==n?void 0:n.cc)||null!=(t=a.partList)&&t.length||this.fragmentTracker.getState(n)!==$n||(d=n)}this.loadFragment(d,i,u)}}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r!==$n&&r!==qn||super.loadFragment(e,t,n)}get mediaBufferTimeRanges(){return new Fu(this.tracksBuffered[this.currentTrackId]||[])}},subtitleTrackController:class extends vs{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>
2{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=-1,t=!1;if(this.currentTrack){var n;const r=null==(n=this.currentTrack.trackNode)?void 0:n.track.mode;"showing"===r?(e=this.trackId,t=!0):"hidden"===r&&(e=this.trackId)}if(!t)for(let t=0;t<this.tracksInGroup.length;t++){var r;const n=null==(r=this.tracksInGroup[t].trackNode)?void 0:r.track.mode;if("showing"===n){e=t;break}e<0&&"hidden"===n&&(e=t)}var i;e>-1&&(this._subtitleDisplay="showing"===(null==(i=this.tracksInGroup[e].trackNode)?void 0:i.track.mode));this.setSubtitleTrack(e,!0)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(v.MEDIA_ATTA
2CHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_PARSED,this.onManifestParsed,this),e.on(v.LEVEL_LOADING,this.onLevelLoading,this),e.on(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(v.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(v.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_PARSED,this.onManifestParsed,this),e.off(v.LEVEL_LOADING,this.onLevelLoading,this),e.off(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(v.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(v.ERROR,this.onError,this)}createTracksInGroup(){var e;if(!this.media||!this.hls.config.renderTextTracksNatively)return;this.tracksInGroup.forEach(e=>{e.trackNode||(e.trackNode=Ql(this.media,Jl(e),e.name,e.lang))});const t=null==(e=this.currentTrack)||null==(e=e.trackNode)?void 0:e.track;"disabled"===(null==t?void 0:t.mode)&&(t.mode=this._subtitleDisplay?"showing":"hidden")}onMediaAttached(e,t){const n=t.media;this.media=n;let r=this.trackId;this.queuedDefaultTrack>-1&&(r=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.setSubtitleTrack(r),this.createTracksInGroup(),this.useTextTrackPolling=!(n.textTracks&&"onchange"in n.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):n.textTracks.addEventListener("change",this.asyncPollTrackChange)}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId,this.setSubtitleTrack(-1)),this.media=null,r||this.hls.config.renderTextTracksNatively&&this.tracksInGroup.forEach(e=>{const t=e.trackNode;t&&(t.track.mode="hidden",t.remove(),e.trackNode=void 0)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r)return void this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${null==a?void 0:a.groupId}`);const s=a.details;a.details=t.details,this.log(`Subtitle track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,s)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some(e=>-1===(null==r?void 0:r.indexOf(e)))){this.groupIds=n;const e=[];if(this.tracks.forEach(t=>{(t.textCodec===jl?this.hls.config.enableIMSC1:this.hls.config.enableWebVTT)&&(!n||n.indexOf(t.groupId)>-1?(t.id=e.length,e.push(t)):t.trackNode&&(t.trackNode.remove(),t.trackNode=void 0))}),e.length===this.tracksInGroup.length){let t=!1;for(let n=0;n<e.length;n++)if(e[n]!==this.tracksInGroup[n]){t=!0;break}if(!t)return}e.length&&this.selectDefaultTrack&&!e.some(e=>e.default)&&(this.selectDefaultTrack=!1),this.tracksInGroup=e,this.trackId=-1,this.currentTrack=null;const t=this.hls.config.subtitlePreference;if(!i&&t){this.selectDefaultTrack=!1;const n=vn(t,e);if(n>-1)i=e[n];else{const e=vn(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=this.findTrackId(null));const a={subtitleTracks:e};this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(v.SUBTITLE_TRACKS_UPDATED,a),this.setSubtitleTrack(r),this.createTracksInGroup()}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];
2if((!n||i.default)&&(n||e)&&(!e||En(i,e)))return r}if(e){for(let n=0;n<t.length;n++){const r=t[n];if(bs(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const r=t[n];if(bs(e.attrs,r.attrs,["LANGUAGE"]))return n}}return-1}onError(e,t){!t.fatal&&t.context&&t.context.type===P&&t.context.id===this.trackId&&wn(t.context.groupId,this.groupIds)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e,!0)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(-1===e.id)return this.setSubtitleTrack(-1,!0),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&En(e,n))return n;const r=vn(e,this.tracksInGroup);if(r>-1){const e=this.tracksInGroup[r];return this.setSubtitleTrack(r,!0),e}if(n)return null;{const n=vn(e,t);if(n>-1)return t[n]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,s=null==a?void 0:a.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type||0:""):""} ${i}`),this.hls.trigger(v.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){if(!this.media||!this.hls.config.renderTextTracksNatively)return;const e=this.currentTrack;this.tracksInGroup.forEach(t=>{if(t.trackNode){const n=t===e?this._subtitleDisplay?"showing":"hidden":"disabled",r=t.trackNode.track;r.mode!==n&&(r.mode=n)}})}setSubtitleTrack(e,t=!1){const n=this.tracksInGroup;if(this.media||(this.queuedDefaultTrack=e),e<-1||e>=n.length||!m(e))return void this.warn(`Invalid subtitle track id: ${e}`);const r=this.currentTrack,i=n[e]||null;if(this.trackId=e,this.currentTrack=i,t&&this.toggleTrackModes(),!i)return void(r&&this.hls.trigger(v.SUBTITLE_TRACK_SWITCH,{id:e}));const a=!!i.details&&!i.details.live;if(i===r&&a)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:s,groupId:o="",name:l,type:u,url:c}=i;this.hls.trigger(v.SUBTITLE_TRACK_SWITCH,{id:s,groupId:o,name:l,type:u,url:c});const d=this.switchParams(i.url,null==r?void 0:r.details,i.details);this.loadPlaylist(d)}},timelineController:class{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.cueCache={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.cueCache={},this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}}
vendor: 4,090 bytes, line 2
2,e.on(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(v.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(v.FRAG_LOADING,this.onFragLoading,this),e.on(v.FRAG_LOADED,this.onFragLoaded,this),e.on(v.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(v.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(v.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(v.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(v.BUFFER_APPENDED,this.onBufferAppended,this),e.on(v.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(v.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(v.FRAG_LOADING,this.onFragLoading,this),e.off(v.FRAG_LOADED,this.onFragLoaded,this),e.off(v.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(v.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(v.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(v.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(v.BUFFER_APPENDED,this.onBufferAppended,this),e.off(v.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new ic(this,"textTrack1"),t=new ic(this,"textTrack2"),n=new ic(this,"textTrack3"),r=new ic(this,"textTrack4");this.cea608Parser1=new tc(1,e,t),this.cea608Parser2=new tc(3,n,r)}addCues(e,t,n,r,i){let a=!1;for(let e=i.length;e--;){const r=i[e],s=ac(r[0],r[1],t,n);if(s>=0&&(r[0]=Math.min(r[0],t),r[1]=Math.max(r[1],n),a=!0,s/(n-t)>.5))return}if(a||i.push([t,n]),this.config.renderTextTracksNatively){const i=this.cueCache[e];if(i){const e=this.Cues.newCue(null,t,n,r);e.length&&i.push.apply(i,e)}else{const i=this.captionsTracks[e].track;this.Cues.newCue(i,t,n,r)}}else{var s;const i=this.Cues.newCue(null,t,n,r),a=null==(s=this.captionsProperties[e])?void 0:s.media;this.hls.trigger(v.CUES_PARSED,{type:"captions",cues:i,track:e,closedCaptions:a})}}onInitPtsFound(e,{id:t,timestampOffsets:n}){const{unparsedVttFrags:r}=this;t===U&&(this.initPTS=n),r.length&&(this.unparsedVttFrags=[],r.forEach(e=>{this.initPTS[e.frag.cc]?this.onFragLoaded(v.FRAG_LOADED,e):this.hls.trigger(v.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e.frag,part:null,error:new Error("Subtitle discontinuity domain does not match main")})}))}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,cueCache:r,media:i}=this,{label:a,languageCode:s}=t[e];i&&(r[e]=[],n[e]=Ql(i,"captions",a,s,"hidden"))}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(v.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}onMediaAttaching(e,t){this.media=t.media}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,!n){if(this.config.renderTextTracksNatively){const{captionsTracks:e,cueCache:t}=this;for(const n in e)e[n].remove(),delete t[n]}this.cueCache={},this.captionsTracks={},this.nonNativeCaptionsTracks={}}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[];if(n.length&&!this.config.renderTextTracksNatively&&!Es(this.tracks,n)){const e=n.map(e=>
2({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}));this.hls.trigger(v.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}this.tracks=n}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(e=>{const t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;const n=`textTrack${t[1]}`,r=this.captionsProperties[n];r&&(r.label=e.name,e.lang&&(r.languageCode=e.lang),r.media=e)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===U){var n,r;const{cea608Parser1:e,cea608Parser2:i,lastSn:a}=this,{cc:s,sn:o}=t.frag,l=null!=(n=null==(r=t.part)?void 0:r.index)?n:-1;e&&i&&(o!==a+1||o===a&&l!==this.lastPartIndex+1||s!==this.lastCc)&&(e.reset(),i.reset()),this.lastCc=s,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:n,payload:r}=t;var i;if(n.level<this.tracks.length&&n.type===j)if(r.byteLength||null!=(i=n.initSegment)&&null!=(i=i.data)&&i.byteLength){const e=n.decryptdata,r="stats"in t;if(null==e||!e.encrypted||r){const e=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),(null==e?void 0:e.textCodec)===jl?this._parseIMSC1(t):this._parseVTTs(t)}}else{const e="part"in t?t.part:null;this.hls.trigger(v.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,part:e,error:new Error("Empty subtitle payload")})}}_parseIMSC1(e){const{frag:t,payload:n}=e,r="part"in e?e.part:null,i=this.hls;$l(n,this.initPTS[t.cc],e=>{this._appendCues(e,t.level),i.trigger(v.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t,part:r})},e=>{i.logger.log(`Cannot parse IMSC1 (sn: ${t.sn} @${t.start}): ${e}`),i.trigger(v.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,part:r,error:e})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,i="part"in e?e.part:null,{initPTS:a,unparsedVttFrags:s}=this,o=a.length-1;if(!a[n.cc]&&-1===o)return void s.push(e);const l=this.hls,u=null==(t=n.initSegment)?void 0:t.data;Bl(u?vt(u,new Uint8Array(r)).buffer:r,this.initPTS[n.cc],this.vttCCs,n.cc,(i&&!u?i:n).start,e=>{this._appendCues(e,n.level),l.trigger(v.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n,part:i})},t=>{const r=t.message.startsWith("Missing initPTS");l.logger.log(`${r?"Deferred parsing of":"Cannot parse"} VTT cue (sn: ${n.sn} @${n.start}): ${t}`),r?s.push(e):(this.config.enableIMSC1&&this._fallbackToIMSC1(e),l.trigger(v.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,part:i,error:t}))})}_fallbackToIMSC1(e){const{frag:t,payload:n}=e,r=this.tracks[t.level];r.textCodec||$l(n,this.initPTS[t.cc],()=>{r.textCodec=jl,this._parseIMSC1(e)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){var r;const n=null==(r=this.tracks[t].trackNode)?void 0:r.track;if(!n||"disabled"===n.mode)return;e.forEach(e=>eu(n,e))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(v.CUES_PARSED,{type:"subtitles",cues:e,track:i,subtitleTrack:r})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===j&&this.onFragLoaded(v.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(n.type!==U||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;e<r.length;e++){const t=r[e].bytes;if(t){this.cea608Parser1||this.initCea608Parsers();const n=this.extractCea608Data(t);this.cea608Parser1.addData(r[e].pts,n[0]),this.cea608Parser2.addData(r[e].pts,n[1])}}}onBufferAppended(e,t){if(this.config.renderTextTracksNatively){var n;const{type:e,timeRanges:r}=t;if("video"===e&&null!=(n=r[e])&&n.length){const{captionsTracks:e,cueCache:t}=this;Object.keys(t).forEach(n=>{var r;const i=null==(r=e[n])?void 0:r.track;if(i){const e=t[n];for(let t=0;t<e.length;t++)eu(i,e[t])}delete t[n]})}}}onBufferFlushing(e,t){const{startOffset:n,endOffset:r,endOffsetSubtitles:i,type:a}=t,{media:s}=this;if(s&&!(s.currentTime<r)){if(!a||"video"===a){const{captionsTracks:e,cueCache:t}=this;Object.keys(e).forEach(t=>
2tu(e[t].track,n,r)),Object.keys(t).forEach(e=>{const i=t[e];for(let e=i.length;e--;){const t=i[e];t.startTime>=n&&t.endTime<=r&&i.splice(e,1)}})}this.config.renderTextTracksNatively&&0===n&&void 0!==i&&this.tracks.forEach(e=>{var t;const r=null==(t=e.trackNode)?void 0:t.track;r&&tu(r,n,i)})}}extractCea608Data(e){const t=[[],[]],n=31&e[0];let r=2;for(let i=0;i<n;i++){const n=e[r++],i=127&e[r++],a=127&e[r++];if(0===i&&0===a)continue;if(!!(4&n)){const e=3&n;0!==e&&1!==e||(t[e].push(i),t[e].push(a))}}return t}},audioStreamController:class extends $i{constructor(e,t,n){super(e,t,n,"audio-stream-controller",B),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.nextTrackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(v.LEVEL_LOADED,this.onLevelLoaded,this),e.on(v.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(v.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(v.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(v.BUFFER_RESET,this.onBufferReset,this),e.on(v.BUFFER_CREATED,this.onBufferCreated,this),e.on(v.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(v.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(v.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(v.FRAG_LOADING,this.onFragLoading,this),e.on(v.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(v.LEVEL_LOADED,this.onLevelLoaded,this),e.off(v.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(v.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(v.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(v.BUFFER_RESET,this.onBufferReset,this),e.off(v.BUFFER_CREATED,this.onBufferCreated,this),e.off(v.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(v.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(v.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(v.FRAG_LOADING,this.onFragLoading,this),e.off(v.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,t){const{frag:n,id:r,initPTS:i,timescale:a,trackId:s,timestampOffsets:o}=t;if(r===U){const e=n.cc,t=this.fragCurrent;if(this.initPTS=o,this.log(`InitPTS for cc: ${e} found from main: ${i/a} (${i}/${a}) trackId: ${s}`),this.mainAnchor=n,this.state===Gi){const t=this.waitingData;(!t&&!this.loadingParts||t&&t.frag.cc!==e)&&this.syncWithAnchor(n,null==t?void 0:t.frag)}else!this.hls.hasEnoughToStart&&t&&t.cc!==e?(t.abortRequests(),this.syncWithAnchor(n,t)):this.state===Oi&&this.tick()}}getLoadPosition(){var e;return!this.startFragRequested&&this.nextLoadPosition>=0&&!1!==(null==(e=this.switchingTrack)?void 0:e.flushImmediate)?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==r?void 0:r.cc)===t.cc)return;const i=(r||e).cc,a=In(this.getLevelDetails(),i,this.getLoadPosition());a&&(this.log(`Syncing with main frag at ${a.start} cc ${a.cc}`),this.startFragRequested=!1,this.nextLoadPosition=a.start,this.resetLoadingState(),this.state===Oi&&this.doTickIdle())}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=Pi);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===e&&!t&&this.initPTS.length&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=Oi,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,t||this.fragmentTracker.hasFragments(this.playlistType)||(this.startFragRequested=!1),this.tick()}doTick(){switch(this.state){case Oi:this.doTickIdle();break;case Yi:{const{levels:e,trackId:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;
2if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=Gi}break}case Fi:this.checkRetryDate();break;case Gi:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,a=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=Ni;const e={frag:t,part:n,payload:r.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),i&&super._handleFragmentLoadComplete(e)}else a&&a.cc!==e.frag.cc&&this.syncWithAnchor(a,e.frag)}else this.state=Oi}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime,this.checkFragmentChanged())}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,a=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!a.startFragPrefetch)||null==n||!n[i])return;const s=n[i],o=s.details;if(!o||this.waitForLive(s)||this.waitForCdnTuneIn(o))return this.state=Yi,void(this.startFragRequested=!1);const l=this.getBufferOutput();this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,H));const u=this.getFwdBufferInfo();if(null===u)return;if(!this.switchingTrack&&this._streamEnded(u,o))return t.trigger(v.BUFFER_EOS,{type:"audio"}),void(this.state=ji);const c=u.len,d=t.maxBufferLength,f=o.fragments,h=f[0].start,m=this.getLoadPosition(),p=this.flushing||this.switchingTrack&&!this.switchingTrack.flushImmediate?m:u.end;if(this.switchingTrack&&r){const e=m;o.PTSKnown&&e<h&&e>=this.timelineOffset&&(u.end>h||u.nextStart)&&(this.log(`Alt audio track ahead of main track, seek to start of alt audio track ${e} -> ${h} + 0.05`),r.currentTime=h+.05)}if(c>=d&&!this.switchingTrack&&p<f[f.length-1].start)return;let g=this.getNextFragment(p,o);if(g&&this.isLoopLoading(g,p)&&(g=this.getNextFragmentLoopLoading(g,o,u,U,d)),!g)return void(this.bufferFlushed=!0);if(this.exceedsMaxBuffer(u,d,g))return;let y=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&y&&z(g)&&!g.endList&&(!o.live||!this.loadingParts&&p<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(y)===Wn&&(this.mainFragLoading=y=null),y&&z(y))){if(g.start>y.end){const e=this.fragmentTracker.getFragAtPos(p,U);e&&e.end>y.end&&(y=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(g.start>y.end)return}this.loadFragment(g,s,p)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(e=>new fn(e))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,t.flushImmediate||(this.nextTrackId=t.id,this.nextLevelSwitch()),this.flushAudioIfNeeded(t),this.state!==Pi&&(this.setInterval(100),this.state=Oi,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(v.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:a,groupId:s,track:o}=t;if(!r)return void this.warn(`Audio tracks reset while loading track ${a} "${o.name}" of "${s}"`);const l=this.mainDetails;if(!l||i.endCC>l.endCC||l.expired)return this.cachedTrackLoadedData=t,void(this.state!==Pi&&(this.state=Yi));this.cachedTrackLoadedData=null,this.log(`Audio track ${a} "${o.name}" of "${s}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const u=r[a];let c=0;if(i.live||null!=(n=u.details)&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;var d;if(u.details)c=this.alignPlaylists(i,u.details,null==(d=this.levelLastLoaded)?void 0:d.details);i.alignedSliding||(ki(l,i,this),c=i.fragmentStart)}u.details=i,this.levelLastLoaded=u,this.startFragRequested||this.setStartPosition(l,c),this.hls.trigger(v.AUDIO_TRACK_UPDATED,{details:i,id:a,groupId:t.groupId}),this.state!==Yi||this.waitForCdnTuneIn(i)||(this.state=Oi),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:a,trackId:s,levels:o}=this;if(!o)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=o[s];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const c=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let d=this.transmuxer;
2d||(d=this.transmuxer=new _s(this.hls,B,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const f=this.initPTS[n.cc],h=null==(t=n.initSegment)?void 0:t.data;if(void 0!==f){const e=!1,t=r?r.index:-1,a=-1!==t,s=new fr(n.level,n.sn,n.stats.chunkCount,i.byteLength,t,a,n.duration);d.push(i,h,c,"",n,r,u.totalduration,e,s,f)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${s}`);const{cache:e}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Wi,complete:!1};e.push(new Uint8Array(i)),this.state!==Pi&&(this.state=Gi)}}_handleFragmentLoadComplete(e){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===U&&z(t.frag)&&(this.mainFragLoading=t,this.state===Oi&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type===B)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(z(n)){const e=this.switchingTrack;e&&(this.bufferedTrack=e)}this.fragBufferedComplete(n,r),this.media&&this.tick()}else this.audioOnly||n.type!==U||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}getFwdBufferInfo(){const e=this.getBufferOutput();return super.getFwdBufferInfo(e,B)}getBufferOutput(){return this.mediaBuffer?this.mediaBuffer:this.media}checkFragmentChanged(){const e=this.fragPlaying;if(!this.checkFragPlaying())return!1;const t=this.fragPlaying,n=null==e?void 0:e.level;return t&&t.level===n||(e&&this.cleanupBackBuffer(),this.switchingTrack&&this.completeAudioSwitch(this.switchingTrack)),!0}onError(e,t){var n;if(t.fatal)this.state=Hi;else switch(t.details){case _.FRAG_GAP:case _.FRAG_PARSING_ERROR:case _.FRAG_DECRYPT_ERROR:case _.FRAG_LOAD_ERROR:case _.FRAG_LOAD_TIMEOUT:case _.KEY_LOAD_ERROR:case _.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(B,t);break;case _.AUDIO_TRACK_LOAD_ERROR:case _.AUDIO_TRACK_LOAD_TIMEOUT:case _.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==Yi||(null==(n=t.context)?void 0:n.type)!==C||(this.state=Oi);break;case _.BUFFER_APPEND_NO_PROGRESS:if("audio"!==t.parent)return;t.frag&&(t.appendsWithoutProgress||0)>=this.config.appendErrorMaxRetry&&(this.warn(`Marking fragment ${t.frag.sn} of track ${t.frag.level} as a gap after ${t.appendsWithoutProgress} appends without buffered range growth, to prevent loop loading`),this.fragmentTracker.addAsGap(t.frag));break;case _.BUFFER_ADD_CODEC_ERROR:case _.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case _.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case _.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==G&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==G){this.flushing=!1,this.bufferFlushed=!0,this.state===ji&&(this.state=Oi);const e=this.getBufferOutput();e&&(this.afterBufferFlushed(e,t),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s)return void this.resetWhenMissingContext(a);const{frag:o,part:l,level:u}=s,{details:c}=u,{audio:d,text:f,id3:h,initSegment:m}=i;if(this.fragContextChanged(o)||!c)return this.fragmentTracker.removeFragment(o),void(null!=m&&m.tracks&&this.resetTransmuxer());if(this.state=Ui,d&&this.switchingTrack&&!this.switchingTrack.flushImmediate){const{config:e}=this,t=e.nextAudioTrackBufferFlushForwardOffset,n=Math.max(this.getLoadPosition()+t,o.start);super.flushMainBuffer(n,Number.POSITIVE_INFINITY,B)}if(null!=m&&m.tracks){const e=o.initSegment||o;if(this.unhandledEncryptionError(m,o))return;this._bufferInitSegment(u,m.tracks,e,a),r.trigger(v.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:m.tracks})}if(d){const{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=d;l&&(l.elementaryStreams[H]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),o.setElementaryStreamInfo(H,e,t,n,r),this.bufferFragmentData(d,o,l,a)}if(null!=h&&null!=(t=h.samples)&&t.length){const e=J({id:n,frag:o,details:c},h);r.trigger(v.FRAG_PARSING_METADATA,e)}if(f){const e=J({id:n,frag:o,details:c},f);r.trigger(v.FRAG_PARSING_USERDATA,e)}}_bufferInitSegment(e,t,n,r){if(this.state!==Ui)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const i=t.audio;i.id=B;const a=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${a}/${i.codec}]`),1===(null==a?void 0:a.split(",").length)&&(i.levelCodec=a),this.hls.trigger(v.BUFFER_CODECS,t);const s=i.initSegment;if(null!=s&&s.byteLength){const e={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:s};this.hls.trigger(v.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);var i;if(this.switchingTrack||r===$n||r===qn)if(null!=(i=t.details)&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Gi;const n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&ki(n,t.details,this)}else super.loadFragment(e,t,n);else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack&&e.flushImmediate){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:s}=this.bufferedTrack;En({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:s},e,bn)||(Sn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.bufferedTrack=e,this.switchingTrack=null,t.trigger(v.AUDIO_TRACK_SWITCHED,te({},e))}get nextAudioTrack(){return this.nextTrackId}},audioTrackController:class extends vs{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_PARSED,this.onManifestParsed,this),e.on(v.LEVEL_LOADING,this.onLevelLoading,this),e.on(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(v.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(v.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_PARSED,this.onManifestParsed,this),e.off(v.LEVEL_LOADING,this.onLevelLoading,this),e.off(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(v.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(v.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r)return void this.warn(`Audio track with id:${n} and group:${r} not found in active group ${null==a?void 0:a.groupId}`);const s=a.details;a.details=t.details,this.log(`Audio track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,s)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some(e=>-1===(null==r?void 0:r.indexOf(e)))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter(e=>wn(e.groupId,n));if(e.length)this.selectDefaultTrack&&!e.some(e=>e.default)&&(this.selectDefaultTrack=!1),e.forEach((e,t)=>
vendor: 1,344 bytes, line 2
2{e.id=t});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!i&&t){const n=vn(t,e,bn);if(n>-1)i=e[n];else{const e=vn(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=this.findTrackId(null));const s={audioTracks:e};this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(v.AUDIO_TRACKS_UPDATED,s);const o=this.trackId;if(-1!==r&&-1===o)this.setAudioTrack(r);else if(e.length&&-1===o){var a;const t=new Error(`No audio track selected for current audio group-ID(s): ${null==(a=this.groupIds)?void 0:a.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&t.context.type===C&&t.context.id===this.trackId&&wn(t.context.groupId,this.groupIds)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}get nextAudioTrack(){return this.trackId}set nextAudioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e,!1)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;
2if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&En(e,r,bn))return r;const i=vn(e,this.tracksInGroup,bn);if(i>-1){const t=this.tracksInGroup[i];return this.setAudioTrack(i,"flushImmediate"in e&&e.flushImmediate),t}if(r){let r=t.loadLevel;-1===r&&(r=t.firstAutoLevel);const i=function(e,t,n,r,i){const a=t[r],s=t.reduce((e,t,n)=>{const r=t.uri;return(e[r]||(e[r]=[])).push(n),e},{})[a.uri];s.length>1&&(r=Math.max.apply(Math,s));const o=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),c=Tn(t,r,t=>{if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;const r=t.audioGroups,a=n.filter(e=>wn(e.groupId,r));return vn(e,a,i)>-1});return c>-1?c:Tn(t,r,t=>{const r=t.audioGroups,a=n.filter(e=>wn(e.groupId,r));return vn(e,a,i)>-1})}(e,t.levels,n,r,bn);if(-1===i)return null;t.nextLoadLevel=i}if(e.channels||e.audioCodec){const t=vn(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e,t=!0){const n=this.tracksInGroup;if(e<0||e>=n.length)return void this.warn(`Invalid audio track id: ${e}`);this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[e],a=i.details&&!i.details.live;if(e===this.trackId&&i===r&&a)return;if(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(v.AUDIO_TRACK_SWITCHING,te(te({},i),{},{flushImmediate:t})),a)return;const s=this.switchParams(i.url,null==r?void 0:r.details,i.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||En(e,r,bn)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:o}=e;for(let e=0;e<t.length;e++){if(En({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:o},t[e],bn))return e}for(let n=0;n<t.length;n++){const r=t[n];if(bs(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const r=t[n];if(bs(e.attrs,r.attrs,["LANGUAGE"]))return n}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Sn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,s=null==a?void 0:a.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type||0:""):""} ${i}`),this.hls.trigger(v.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}},emeController:Sl,cmcdController:class{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.playerState=void 0,this.reporter=void 0,this.playheadLevel=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0,this.setPlayerState(Jo)),this.buffering=!0},this.onPlay=()=>{this.initialized||this.setPlayerState(Ko)},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1,this.setPlayerState(Xo)},this.onPause=()=>{this.media&&!this.media.ended&&this.setPlayerState(el)},this.onSeeking=()=>{this.initialized&&this.setPlayerState(Qo)},this.onSeeked=()=>{var e;this.initialized&&null!=(e=this.media)&&e.paused&&this.setPlayerState(el)},this.onRateChange=()=>{this.reporter&&this.media&&this.reporter.update({pr:this.media.playbackRate})},this.applyPlaylistData=e=>{try{this.apply(e,{ot:Zo,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{const{frag:a,part:s}=e,o=this.hls.levels[a.level],l=this.getObjectType(a,o),u={d:1e3*(s||a).duration,ot:l};if(l===zo||l===$o||l===qo||null==l&&("main"===a.type||"audio"===a.type)){var t;const e=o.bitrate/1e3;u.br=[e];const{cmcd:r}=this.config,i=null!=(t=null==r?void 0:r.rtpSafetyFactor)?t:5;if(u.rtp=100*Math.round(e*i/100),l===qo||null==l&&"main"===a.type){const e=this.getTopBandwidth()/1e3;m(e)&&(u.tb=[e]);const t=this.getLowestBandwidth()/1e3;m(t)&&(u.lb=[t])}const s=this.getBufferLength(a);if(m(s)){var n;u.bl=[s];const e=(null==(n=this.media)?void 0:n.playbackRate)||1;u.dl=100*Math.round(s/e/100)}this.playheadLevel&&(u.pb=[this.playheadLevel.bitrate/1e3]);const c=this.hls.maxAutoLevel;if(c>=0){const e=this.hls.levels[c];e&&(u.tpb=[e.bitrate/1e3])}}const c=s?this.getNextPart(s):this.getNextFrag(a);null!=c&&c.url&&c.url!==a.url&&(c.byteRange.length>0?u.nor=[(r=c.url,i={r:`${c.byteRange[0]}-${c.byteRange[1]}`}
2,new Ps(r,i))]:u.nor=[c.url]),this.apply(e,u)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}var r,i},this.recordFragmentResponse=(e,t,n)=>{var r;const{cmcd:i}=this.config,a=null==i||null==(r=i.eventTargets)?void 0:r.some(e=>{var t;return null==(t=e.events)?void 0:t.includes(lo)});if(this.reporter&&n.loading.first>0&&a)try{this.reporter.recordResponseReceived({request:{url:e},status:t.code,resourceTiming:{startTime:n.loading.start,responseStart:n.loading.first,duration:n.loading.end-n.loading.start,encodedBodySize:n.total}})}catch(e){this.hls.logger.warn("Could not record fragment response CMCD data.",e)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.registerListeners())}createReporter(){var e,t;const{cmcd:n}=this.config;if(null==n)return;const r=n.version||1;if(this.reporter=new fl({sid:n.sessionId||this.hls.sessionId,cid:n.contentId,version:r,transmissionMode:!0===n.useHeaders?al:il,enabledKeys:null!=(e=n.includeKeys)?e:[...r>=io?Go:Lo],eventTargets:(null!=(t=n.eventTargets)?t:[]).map(e=>{let{includeKeys:t}=e;return te(te({},ne(e,yl)),{},{enabledKeys:null!=t?t:Go})})},n.loader),this.reporter.update({sf:hl,sta:this.playerState}),n.reporterCallback){const e=this.reporter,t={updateCustomData:t=>{_l(t)&&e.update(t)},recordCustomEvent:(t,n={})=>{_l(n)&&e.recordEvent(uo,te({cen:t},n))}};n.reporterCallback(t)}this.reporter.start()}registerListeners(){const e=this.hls;e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MEDIA_ATTA
2CHING,this.onMediaAttaching,this),e.on(v.MEDIA_DETACHED,this.onMediaDetached,this),e.on(v.MEDIA_ENDED,this.onMediaEnded,this),e.on(v.ERROR,this.onError,this),e.on(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(v.LEVEL_SWITCHED,this.onLevelSwitched,this),e.on(v.BUFFER_APPENDED,this.onBufferInfoChange,this),e.on(v.BUFFER_FLUSHED,this.onBufferInfoChange,this)}unregisterListeners(){const e=this.hls;e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(v.MEDIA_DETACHED,this.onMediaDetached,this),e.off(v.MEDIA_ENDED,this.onMediaEnded,this),e.off(v.ERROR,this.onError,this),e.off(v.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(v.LEVEL_SWITCHED,this.onLevelSwitched,this),e.off(v.BUFFER_APPENDED,this.onBufferInfoChange,this),e.off(v.BUFFER_FLUSHED,this.onBufferInfoChange,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.reporter&&(this.reporter.stop(!0),this.reporter=void 0),this.hls=this.config=null,this.onWaiting=this.onPlay=this.onPlaying=this.onPause=null,this.onSeeking=this.onSeeked=this.onRateChange=this.media=null}onMediaAttaching(e,t){const n=this.media=t.media;this.setPlayerState(this.media.autoplay?Ko:rl),Ii(n,"waiting",this.onWaiting),Ii(n,"play",this.onPlay),Ii(n,"playing",this.onPlaying),Ii(n,"pause",this.onPause),Ii(n,"seeking",this.onSeeking),Ii(n,"seeked",this.onSeeked),Ii(n,"ratechange",this.onRateChange)}onMediaDetached(){const e=this.media;e&&(Ri(e,"waiting",this.onWaiting),Ri(e,"play",this.onPlay),Ri(e,"playing",this.onPlaying),Ri(e,"pause",this.onPause),Ri(e,"seeking",this.onSeeking),Ri(e,"seeked",this.onSeeked),Ri(e,"ratechange",this.onRateChange),this.media=null)}onMediaEnded(e,t){this.setPlayerState(tl)}onManifestLoading(e,t){this.initialized=!1,this.starved=!1,this.buffering=!0,this.reporter&&(this.reporter.stop(!0),this.reporter=void 0),this.createReporter(),this.media||this.setPlayerState(rl)}onError(e,t){t.fatal&&(this.setPlayerState(nl),this.reporter&&this.reporter.recordEvent(oo,{ec:[t.details]}))}onLevelSwitching(e,t){var n;if(!this.reporter)return;const r={br:[t.bitrate/1e3]},i=null==(n=t.details)?void 0:n.fragments[0];i&&(r.ot=this.getObjectType(i,t)),this.reporter.recordEvent(so,r)}onLevelSwitched(e,t){const n=this.hls.levels[t.level];n&&(this.playheadLevel=n)}setPlayerState(e){this.playerState=e,this.reporter&&this.reporter.update({sta:e})}getStreamType(){const e=this.hls.latestLevelDetails;if(e)return e.live?e.partList&&e.canBlockReload?gl:pl:ml}apply(e,t={}){var n;if(!this.reporter)return;this.reporter.update({mtp:[this.hls.bandwidthEstimate/1e3],pr:null==(n=this.media)?void 0:n.playbackRate,st:this.getStreamType()});const r=t.ot===Wo||t.ot===zo||t.ot===qo;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);const i=this.reporter.createRequestReport({url:e.url,headers:e.headers},t);e.url=i.url,e.headers=i.headers}getNextFrag(e){var t;const n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){const t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t;const{index:n,fragment:r}=e,i=null==(t=this.hls.levels[r.level])||null==(t=t.details)?void 0:t.partList;if(i){const{sn:e}=r;for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.index===n&&r.fragment.sn===e)return i[t+1]}}}getObjectType(e,t){const{type:n}=e;if("subtitle"===n)return Vo;if("initSegment"===e.sn)return Wo;if("audio"===n)return $o;if("main"===n){if(e.hasStreams){const t=e.elementaryStreams;if(t.audiovideo)return qo;if(t.video)return zo;if(t.audio)return $o}if(t){const{audioCodec:e,videoCodec:n}=t;if(!this.hls.audioTracks.length){if(e&&n)return qo;if(e)return $o}if(n)return zo}}}getTopBandwidth(){let e=0;const t=this.hls,n=t.maxAutoLevel,r=n>-1?n+1:t.levels.length;return t.levels.slice(0,r).forEach(t=>{t.bitrate>e&&(e=t.bitrate)}),e>0?e:NaN}getLowestBandwidth(){let e=1/0;const t=this.hls,n=t.maxAutoLevel,r=n>-1?n+1:t.levels.length;return t.levels.slice(0,r).forEach(t=>{t.bitrate<e&&(e=t.bitrate)}),m(e)?e:NaN}getBufferLength(e){if(!this.media)return NaN;const t="audio"===e.type?this.hls.audioForwardBufferInfo:this.hls.mainForwardBufferInfo;return t?1e3*t.len:NaN}getEventBufferLength(){if(!this.media)return NaN;const e=this.hls.mainForwardBufferInfo,t=this.hls.audioForwardBufferInfo;if(e&&t)return 1e3*Math.min(e.len,t.len);const n=e||t;return n?1e3*n.len:NaN}onBufferInfoChange(e,t){if(!this.reporter)return;const n=this.getEventBufferLength();m(n)&&this.reporter.update({bl:[n]})}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,r){t(e),this.loader.load(e,n,r)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=this.recordFragmentResponse,r=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new r(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}
2load(e,r,i){t(e);const{onSuccess:a}=i;this.loader.load(e,r,te(te({},i),{},{onSuccess:(t,r,i,s)=>{a(t,r,i,s),n(e.url,t,r)}}))}}}},contentSteeringController:class extends me{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(v.MANIFEST_PARSED,this.onManifestParsed,this),e.on(v.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(v.MANIFEST_PARSED,this.onManifestParsed,this),e.off(v.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(t=>t!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((null==n?void 0:n.action)===Pn&&n.flags&Fn){const e=this.levels;let r=this._pathwayPriority,i=this.pathwayId;if(t.context){const{groupId:n,pathwayId:r,type:a}=t.context;n&&e?i=this.getPathwayForGroupId(n,a,i):r&&(i=r)}i in this.penalizedPathways||(this.penalizedPathways[i]=performance.now()),!r&&e&&(r=this.pathways()),r&&r.length>1&&(this.updatePathwayPriority(r),n.resolved=this.pathwayId!==i,n.resolved||t.details===_.BUFFER_APPEND_ERROR&&!t.fatal||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${i} levels: ${e?e.length:e} priorities: ${pn(r)} penalized: ${pn(this.penalizedPathways)}`))}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){let t;this._pathwayPriority=e;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(e=>{r-n[e]>3e5&&delete n[e]});for(let r=0;r<e.length;r++){const i=e[r];if(i in n)continue;if(i===this.pathwayId)return;const a=this.hls.nextLoadLevel,s=this.hls.levels[a];if(t=this.getLevelsForPathway(i),t.length>0){this.log(`Setting Pathway to "${i}"`),this.pathwayId=i,Si(t),this.hls.trigger(v.LEVELS_UPDATED,{levels:t});const e=this.hls.levels[a];s&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==s.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==s.bitrate&&this.log(`Unstable Pathways change from bitrate ${s.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n<r.length;n++)if(t===C&&r[n].hasAudioGroup(e)||t===P&&r[n].hasSubtitleGroup(e))return r[n].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};
2e.forEach(e=>{const{ID:i,"BASE-ID":a,"URI-REPLACEMENT":s}=e;if(t.some(e=>e.pathwayId===i))return;const o=this.getLevelsForPathway(a).map(e=>{const t=new Tr(e.attrs);t["PATHWAY-ID"]=i;const a=t.AUDIO&&`${t.AUDIO}_clone_${i}`,o=t.SUBTITLES&&`${t.SUBTITLES}_clone_${i}`;a&&(n[t.AUDIO]=a,t.AUDIO=a),o&&(r[t.SUBTITLES]=o,t.SUBTITLES=o);const l=El(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",s),u=new fn({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t<e.audioGroups.length;t++)u.addGroupId("audio",`${e.audioGroups[t]}_clone_${i}`);if(e.subtitleGroups)for(let t=1;t<e.subtitleGroups.length;t++)u.addGroupId("text",`${e.subtitleGroups[t]}_clone_${i}`);return u});t.push(...o),vl(this.audioTracks,n,s,i),vl(this.subtitleTracks,r,s,i)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;let r;this.loader&&this.loader.destroy(),this.loader=new n(t);try{r=new self.URL(e)}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest URI: ${e}`)}if("data:"!==r.protocol){const e=0|(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate);rn(r,"_HLS_pathway",this.pathwayId),rn(r,"_HLS_throughput",""+e)}const i={type:N,responseType:"json",url:r.href},a=t.steeringManifestLoadPolicy.default,s=a.errorRetry||a.timeoutRetry||{},o={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},l={onSuccess:(e,t,n,i)=>{this.log(`Loaded steering manifest: "${r}"`);const a=e.data;if(1!==(null==a?void 0:a.VERSION))return void this.log(`Steering VERSION ${a.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=a.TTL;const{"RELOAD-URI":s,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":l}=a;if(s)try{this.uri=new self.URL(s,r).href}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${s}`)}this.scheduleRefresh(this.uri||n.url),o&&this.clonePathways(o);const u={steeringManifest:a,url:r.toString()};this.hls.trigger(v.STEERING_MANIFEST_LOADED,u),l&&this.updatePathwayPriority(l)},onError:(e,t,n,r)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code)return this.enabled=!1,void this.log(`Steering manifest ${t.url} no longer available`);let i=1e3*this.timeToLoad;if(429===e.code){const e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(i=1e3*parseFloat(t))}return void this.log(`Steering manifest ${t.url} rate limited`)}this.scheduleRefresh(this.uri||t.url,i)},onTimeout:(e,t,n)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,o,l)}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var t;const n=null==(t=this.hls)?void 0:t.media;!n||n.ended?this.scheduleRefresh(e,1e3*this.timeToLoad):this.loadSteeringManifest(e)},t)}},iframeController:class extends me{constructor(e,t){var n;super("iframes",e.logger),this.hls=void 0,this.stats=void 0,this.variableList=null,this.initPTS=[],this.iframeInstances=void 0,this.instanceCounter=0,vu||(n=t,vu=class extends n{constructor(e,t,n,r){e.streamController||(e.streamController=pu),super(e),this._url=t,this.streamController.setInitPts(n),this.streamController.initDetails=r}loadSource(){}loadMediaAt(e,t=_u){if(e<0)return;const n=te(te({},_u),t);this.loadingEnabled||this.startLoad(e),this.streamController.loadMediaAt(e,n)}}),Eu||(Eu=function(e){return class extends e{constructor(e,t,n,r){e.cmcdController=void 0,e.emeController=void 0,e.streamController||(e.streamController=gu),e.capLevelController=void 0,e.bufferController=void 0,super(e,t,n,r)}attachImage(e){this.streamController.image=e}detachImage(){this.streamController.image=void 0}loadSource(){}attachMedia(){throw new Error(yu)}detachMedia(){}recoverMediaError(){}transferMedia(){return null}loadMediaAt(e){if(e<0)return null;this.loadingEnabled||this.startLoad(e),this.streamController.loadMediaAt(e)}}}(vu)),this.hls=e,this.iframeInstances=[],this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(v.MANIFEST_LOADING,this.clearAsset,this),e.on(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(v.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(v.FRAG_BUFFERED,this.onFragBuffered,this),e.on(v.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(v.MANIFEST_LOADING,this.clearAsset,this),e.off(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(v.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(v.FRAG_BUFFERED,this.onFragBuffered,this),e.off(v.DESTROYING,this.onDestroying,this))}clearAsset(){this.stats=void 0,this.variableList=null,this.initPTS=[],this.iframeInstances.forEac
2h(e=>e.destroy()),this.iframeInstances.length=0}onDestroying(){this.unregisterListeners(),this.clearAsset(),this.hls=void 0}onManifestLoaded(e,t){this.stats=t.stats,this.variableList=t.variableList}onLevelsUpdated(e,{levels:t}){var n;const r=null==(n=this.hls)?void 0:n.pathwayPriority;t.length&&r&&this.iframeInstances.forEach(e=>{e.pathwayPriority=r})}onInitPtsFound(e,{id:t,timestampOffsets:n}){t===U&&(this.initPTS=n)}onFragBuffered(e,t){var n;const r=this.hls;r&&r.hasEnoughToStart&&((null==(n=r.mainForwardBufferInfo)?void 0:n.len)||0)>10&&this.iframeInstances.forEach(e=>{var t;e.loadingEnabled||e.startLoad((null==(t=this.hls)||null==(t=t.media)?void 0:t.currentTime)||0)})}createIFramePlayer(e){var t;return this.createInstance(vu,null==(t=this.hls)?void 0:t.iframeVariants,e)}createImageIFramePlayer(e){var t;const n=null==(t=this.hls)?void 0:t.iframeVariants.filter(e=>e.imageCodec);return this.createInstance(Eu,n,e,"image-")}createInstance(e,t,n,r){const{hls:i}=this;if(!i)return null;const{url:a,userConfig:s,latestLevelDetails:o,loadLevelObj:l,loadLevel:u,bandwidthEstimate:c,sessionId:d}=i,{stats:f,variableList:h}=this;if(null==t||!t.length||!f||!a)return null;const m=`${r||""}iframe-player-${this.instanceCounter++}`,p=i.levels,g=l||p[u],y=Ln(g,s.videoPreference),_=(null==g?void 0:g.pathwayId)||".",E=new e(te(te({},s),{},{loggerId:m,primarySessionId:d,videoPreference:y,abrEwmaDefaultEstimate:c,streamController:void 0,audioStreamController:void 0,audioTrackController:void 0,subtitleStreamController:void 0,subtitleTrackController:void 0,timelineController:void 0,id3TrackController:void 0,fpsController:void 0,gapController:void 0,iframeController:void 0,cmcd:void 0,interstitialsController:void 0,backBufferLength:1/0,maxMaxBufferLength:1,capLevelToPlayerSize:!0,enableWorker:!1,autoStartLoad:!1,startFragPrefetch:!1,testBandwidth:!1,progressive:!1},n),a,this.initPTS,o);return this.iframeInstances=this.iframeInstances.filter(e=>!e.url),this.iframeInstances.push(E),E.trigger(v.MANIFEST_LOADED,{levels:t,contentSteering:{uri:"",pathwayId:_},sessionKeys:null,audioTracks:[],iframeVariants:[],sessionData:null,startTimeOffset:null,stats:f,networkDetails:null,url:a,variableList:h}),E}},interstitialsController:class extends me{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.bufferPastEdge=!1,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled||!this.schedule)return;const t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;const n=t<=-.01;-1!==this.timelinePos||this.effectivePlayingItem||this.checkStart(),this.timelinePos=e,this.bufferedPos=e;const r=this.playingItem;if(!r)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule(!0)}if(this.checkBuffer(),n&&e<r.start||e>=r.end){var i;const t=this.findItemIndex(r);let a=this.schedule.findItemIndexAtTime(e);if(-1===a&&(a=t+(n?-1:1),this.log(`seeked ${n?"back ":""}to position not covered by schedule ${e} (resolving from ${t} to ${a})`)),!this.isInterstitial(r)&&null!=(i=this.media)&&i.paused&&(this.shouldPlay=!1),!n&&a>t){const e=this.schedule.findJumpRestrictedIndex(t+1,a);if(e>t)return void this.setSchedulePosition(e)}return void this.setSchedulePosition(a)}const a=this.playingAsset;if(!a){if(this.playingLastItem&&this.isInterstitial(r)){const t=r.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}const s=a.timelineStart,o=a.duration||0;var l;(n&&e<s||e>=s+o)&&(null!=(l=r.event)&&l.appendInPlace&&(this.clearAssetPlayers(r.event,r),this.flushFrontBuffer(e)),this.setScheduleToAssetAtTime(e,a))},this.onTimeupdate=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;if(-1!==this.timelinePos||this.effectivePlayingItem||this.checkStart(),!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();const t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}const n=this.playingAsset;if(!n)return;e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>
2{const n=this.schedule;if(!n)return;const r=this.playingItem,i=n.events||[],a=n.items||[],s=n.durations,o=e.map(e=>e.identifier),l=!(!i.length&&!o.length);(l||t)&&this.log(`INTERSTITIALS_UPDATED (${i.length}): ${i}\nSchedule: ${a.map(e=>Pu(e))} pos: ${this.timelinePos}`),o.length&&this.log(`Removed events ${o}`);let u=null,c=null;r&&(u=this.updateItem(r,this.timelinePos),this.itemsMatch(r,u)?this.playingItem=u:this.waitingItem=null),this.waitingItem=this.updateItem(this.waitingItem);const d=this.bufferingItem;if(d&&(c=this.updateItem(d,this.bufferedPos),this.itemsMatch(d,c)?this.bufferingItem=c:d.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(d.event,null))),e.forEach(e=>{e.assetList.forEach(e=>{this.clearAssetPlayer(e.identifier,null)})}),this.playerQueue.forEach(e=>{if(e.interstitial.appendInPlace){const t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(r){Math.abs(n)>bu&&this.warn(`${r} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}}),l||t){if(this.hls.trigger(v.INTERSTITIALS_UPDATED,{events:i.slice(0),schedule:a.slice(0),durations:s,removedIds:o}),this.isInterstitial(r)&&o.indexOf(r.event.identifier)>-1)return this.warn(`Interstitial "${r.event.identifier}" removed while playing`),void this.primaryFallback(r.event);r&&this.trimInPlace(u,r),d&&c!==u&&this.trimInPlace(c,d),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Ou(e),this.schedule=new Cu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;
2e&&(e.on(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(v.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(v.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(v.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(v.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(v.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(v.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(v.BUFFER_APPENDED,this.onBufferAppended,this),e.on(v.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(v.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(v.MEDIA_ENDED,this.onMediaEnded,this),e.on(v.ERROR,this.onError,this),e.on(v.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(v.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(v.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(v.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(v.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(v.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(v.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(v.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(v.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(v.BUFFER_CODECS,this.onBufferCodecs,this),e.off(v.BUFFER_APPENDED,this.onBufferAppended,this),e.off(v.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(v.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(v.MEDIA_ENDED,this.onMediaEnded,this),e.off(v.ERROR,this.onError,this),e.off(v.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Ri(e,"play",this.onPlay),Ri(e,"pause",this.onPause),Ri(e,"seeking",this.onSeeking),Ri(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ii(n,"seeking",this.onSeeking),Ii(n,"timeupdate",this.onTimeupdate),Ii(n,"play",this.onPlay),Ii(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!r){this.clearScheduleState();const e=this.findItemIndex(n);this.setSchedulePosition(e)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const e=this.getBufferingPlayer();e&&(this.log(`Removing schedule state for detachedData and ${e}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=t=>t?e.getAssetPlayer(t.identifier):t,r=(t,r,a,s,o)=>{if(t){let l=t[r].start;const u=t.event;if(u){if("playout"===r||u.timelineOccupancy!==Tu.Point){const e=n(a);(null==e?void 0:e.interstitial)===u&&(l+=e.assetItem.startOffset+e[o])}}else{l+=("bufferedPos"===s?i():e[s])-t.start}return l}return 0},i=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?a("primary"):Math.max(t,0)},a=t=>{var n,r;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:(null==(r=e.schedule)?void 0:r.durations[t])||0},s=(t,i)=>{var a,s;const o=e.effectivePlayingItem;if(null!=o&&null!=(a=o.event)&&a.restrictions.skip||!e.schedule)return;e.log(`seek to ${t} "${i}"`);const l=e.effectivePlayingItem,u=e.schedule.findItemIndexAtTime(t,i),c=null==(s=e.schedule.items)?void 0:s[u],d=e.getBuffer
2ingPlayer(),f=null==d?void 0:d.interstitial,h=null==f?void 0:f.appendInPlace,m=l&&e.itemsMatch(l,c);if(l&&(h||m)){const a=n(e.playingAsset),s=(null==a?void 0:a.media)||e.primaryMedia;if(s){const n="primary"===i?s.currentTime:r(l,i,e.playingAsset,"timelinePos","currentTime"),o=t-n,u=(h?n:s.currentTime)+o;if(u>=0&&(!a||h||u<=a.duration))return void(s.currentTime=u)}}if(c){let n=t;if("primary"!==i){const e=t-c[i].start;n=c.start+e}const r=!e.isInterstitial(c);if(e.isInterstitial(l)&&!l.event.appendInPlace||!r&&!c.event.appendInPlace){if(l){const a=e.findItemIndex(l);if(u>a){const t=e.schedule.findJumpRestrictedIndex(a+1,u);if(t>a)return void e.setSchedulePosition(t)}let s=0;if(r)e.timelinePos=n,e.checkBuffer();else{const e=c.event.assetList,n=t-(c[i]||c).start;for(let t=e.length;t--;){const r=e[t];if(r.duration&&n>=r.startOffset&&n<r.startOffset+r.duration){s=t;break}}}e.setSchedulePosition(u,s)}}else{const t=e.media||(h?null==d?void 0:d.media:null);t&&(t.currentTime=n)}}},o=()=>{const n=e.effectivePlayingItem;if(e.isInterstitial(n))return n;const r=t();return e.isInterstitial(r)?r:null},l={get bufferedEnd(){const n=t(),i=e.bufferingItem;var a;return i&&i===n&&(r(i,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-i.playout.start||(null==(a=e.bufferingAsset)?void 0:a.startOffset))||0},get currentTime(){const t=o(),n=e.effectivePlayingItem;return n&&n===t?r(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(t){const n=o(),r=e.effectivePlayingItem;r&&r===n&&s(t+r.playout.start,"playout")},get duration(){const e=o();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t;const n=null==(t=o())?void 0:t.event.assetList;return n?n.map(t=>e.getAssetPlayer(t.identifier)):[]},get playingIndex(){var t;const n=null==(t=o())?void 0:t.event;return n&&e.effectivePlayingAsset?n.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return o()}};return this.manager={get events(){var t;return(null==(t=e.schedule)||null==(t=t.events)?void 0:t.slice(0))||[]},get schedule(){var t;return(null==(t=e.schedule)||null==(t=t.items)?void 0:t.slice(0))||[]},get interstitialPlayer(){return o()?l:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const n=t();return e.findItemIndex(n)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return i()},get currentTime(){const t=e.timelinePos;return t>0?t:0},set currentTime(e){s(e,"primary")},get duration(){return a("primary")},get seekableStart(){return e.seekableStart}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){s(e,"integrated")},get duration(){return a("integrated")},get seekableStart(){return((t,n)=>{var r;if(0!==t&&"primary"!==n&&null!=(r=e.schedule)&&r.length){var i;const r=e.schedule.findItemIndexAtTime(t),a=null==(i=e.schedule.items)?void 0:i[r];if(a)return t+(a[n].start-a.start)}return t})(e.seekableStart,"integrated")}},skip:()=>{const t=e.effectivePlayingItem,n=null==t?void 0:t.event;if(n&&!n.restrictions.skip){const r=e.findItemIndex(t);if(n.appendInPlace){const e=t.playout.start+t.event.duration;s(e+.001,"playout")}else e.advanceAfterAssetEnded(n,r,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&n)&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t;if(null===this.mediaSelection)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&null!=(e=this.bufferingItem)&&null!=(e=e.event)&&e.appendInPlace&&(r=this.primaryMedia);const i=null==(t=r)?void 0:t.currentTime;return void 0!==i&&m(i)?i:void 0}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!(null==e||!e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r)return void(this.detachedData={media:r});const n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${pn(n)}`),this.detachedData=n}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const a=this.hls,s=e!==a,o=s&&e.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let u;if(a.media)o&&(i=a.transferMedia(),this.detachedData=i),u="Primary";
2else{const e=this.getBufferingPlayer();e?(i=e.transferMedia(),this.detachedData=i,u=`${e}`):u=l?"detached MediaSource":"detached media"}if(!i)if(l)i=this.detachedData,this.log(`using detachedData: MediaSource ${pn(i)}`);else if(!this.detachedData||a.media===t){const e=this.playerQueue;e.length>1&&e.forEach(e=>{if(s&&e.interstitial.appendInPlace!==o){const t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}const c=i&&"mediaSource"in i&&"closed"!==(null==(r=i.mediaSource)?void 0:r.readyState);if(this.log(`${c?"transfering MediaSource":"attaching media"} to ${s?e:"Primary"} from ${u} (media.currentTime: ${t.currentTime})`),!c&&!s)return void e.attachMedia(t);const d=c&&i?te({},i):{media:t},f=this.schedule;if(f&&s){const t=e.assetId===f.assetIdAtEnd;d.overrides={duration:f.duration,endOfStream:t||!1===e.appendInPlace}}if(!c&&o){const t=e,n=t.assetItem.timelineStart;if(n){const e=t.hls,r=Math.max(this.timelinePos-n,Number.EPSILON);e.startPosition!==r&&(this.log(`Set ${t} startPosition: ${r}`),e.config.startPosition=r,e.loadingEnabled&&e.startLoad(r))}}e.attachMedia(d)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=null==e?void 0:e.events,n=this.hls;if(!t||this.playbackDisabled||!this.media||!n)return;-1===this.bufferedPos&&(this.bufferedPos=0);const r=this.timelinePos,i=this.effectivePlayingItem;if(-1===r){if(!n.loadingEnabled)return void this.log("waiting for startLoad( <startPosition> )");const r=n.startPosition;if(this.timelinePos=r,0===t.length)this.setSchedulePosition(0);else if(t[0].cue.pre){this.log(Nu("checkStart (preroll)",r));const n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(r>=0||!this.primaryLive){this.log(Nu("checkStart",r));const t=this.timelinePos=r>0?r:0,n=e.findItemIndexAtTime(t);this.setSchedulePosition(n)}else 0===n.liveSyncPosition?this.setSchedulePosition(0):this.log("[checkStart] waiting for live start")}else if(i&&!this.playingItem){this.log(Nu("checkStart (playing item)",i.start));const t=e.findItemIndex(i);this.setSchedulePosition(t)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),i=Du(n,r);if(n.isAssetPastPlayoutLimit(i)){if(this.schedule){var a;const t=this.getNextItemIndex(e,!0),n=null==(a=this.schedule.items)?void 0:a[t];n&&this.bufferedToItem(n)}}else this.bufferedToEvent(e,i)}livePrerollResumption(e,t){if(e.cue.pre&&this.primaryLive&&!m(e.resumeOffset)&&this.hls){const e=this.getLiveStartPos();if(t){const t=this.getBufferingPlayer();return e+(null!=t&&t.interstitial.cue.pre?t.remaining:0)}return e}}getNextItemIndex(e,t){if(this.schedule){const n=this.livePrerollResumption(e.event,t);if(void 0!==n)return this.log(`find next item index @${n}`),this.schedule.findItemIndexAtTime(n)}return this.findItemIndex(e)+1}advanceAfterAssetEnded(e,t,n){const r=Du(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){const n=this.schedule.items;if(n){const r=n[t],i=r.event?this.getNextItemIndex(r):t+1;if(i>=n.length)return void this.setSchedulePosition(-1);const a=e.resumeTime;this.timelinePos<a&&(this.log(Nu("advanceAfterAssetEnded",a)),this.timelinePos=a,e.appendInPlace&&!n[i].event&&this.hls.startLoad(a+.01),this.checkBuffer(this.bufferedPos<a)),this.setSchedulePosition(i)}}}else{if(e.appendInPlace){const t=e.assetList[r];t&&this.advanceInPlace(t.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,i=n.getEvent(r);if(i){const t=n.findEventIndex(r),a=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,t,a-1)}}setSchedulePosition(e,t){var n;const r=null==(n=this.schedule)?void 0:n.items;if(!r||this.playbackDisabled)return;const i=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i?Pu(i):i}) pos: ${this.timelinePos}`);const a=this.waitingItem||this.playingItem,s=this.playingLastItem;if(this.isInterstitial(a)){const n=a.event,c=this.playingAsset,d=null==c?void 0:c.identifier,f=d?this.getAssetPlayer(d):null;if(f&&d&&(!this.eventItemsMatch(a,i)||void 0!==t&&d!==n.assetList[t].identifier)){var o;const t=n.findAssetIndex(c);if(this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${n.assetList.length} ${ku(c)}`),this.endedAsset=c,this.playingAsset=null,this.hls.trigger(v.INTERSTITIAL_ASSET_ENDED,{asset:c,assetListIndex:t,event:n,schedule:r.slice(0),scheduleIndex:e,player:f}),a!==this.playingItem)return void(this.itemsMatch(a,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(n,this.findItemIndex(this.playingItem),t));this.retreiveMediaSource(d,i),!f.media||null!=(o=this.detachedData)&&o.mediaSource||f.detachMedia()}if(!this.eventItemsMatch(a,i)&&(this.endedItem=a,this.playingItem=this.waitingItem=null,this.log(`INTERSTITIAL_ENDED ${n} ${Pu(a)}`),n.hasPlayed=!0,this.hls.trigger(v.INTERSTITIAL_ENDED,{event:n,schedule:r.slice(0),scheduleIndex:e}),n.cue.once&&this.hls)){var l;this.updateSchedule();const e=null==(l=this.schedule)?void 0:l.items;if(i&&e){const o=this.findItemIndex(i),l=this.livePrerollResumption(n);if(void 0!==l){let t=l;const i=this.getNextItemIndex(a);if(!this.isInterstitial(r[i])){var u;const e=null==(u=this.primaryDetails)?void 0:u.fragments;if(n.snapOptions.in&&e){const n=Mn(null,e,l);n&&(t=Math.min(Math.max(r[i].start,Lu(t,n)),r[i].end))}}if(this.log(Nu("live join (preroll)",t)),this.timelinePos=t,i!==o&&(i||0===i))return void this.advanceSchedule(i,e,void 0,a,s)}this.advanceSchedule(o,e,t,a,s)}return}}this.advanceSchedule(e,r,t,a,s)}advanceSchedule(e,t,n,r,i){const a=this.schedule;if(!a)return;const s=t[e]||null,o=this.primaryMedia,l=this.playerQueue;if(l.length&&l.forEach(t=>{const n=t.interstitial,r=a.findEventIndex(n.identifier);(r<e||r>e+1)&&this.clearInterstitial(n,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const i=s.event;if(void 0===n){const t=Du(i,(n=i.cue.pre?0:a.findAssetIndex(i,this.timelinePos))-1);if(i.isAssetPastPlayoutLimit(t)||i.appendInPlace&&this.timelinePos===s.end)return void this.advanceAfterAssetEnded(i,e,n);n=t}const l=this.waitingItem;this.assetsBuffered(s,o)||this.setBufferingItem(s);let u=this.preloadAssets(i,n);if(this.eventItemsMatch(s,l||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${Pu(s)} ${i.appendInPlace?"append in place":""}`),i.hasPlayed=!1,this.hls.trigger(v.INTERSTITIAL_STARTED,{event:i,schedule:t.slice(0),scheduleIndex:e})),!i.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${i}`);if(i.assetListLoader&&(i.assetListLoader.destroy(),i.assetListLoader=void 0),!o)return void this.log(`Waiting for attachMedia to start Interstitial ${i}`);this.waitingItem=this.endedItem=null,this.playingItem=s;const c=i.assetList[n];if(!c)return void this.advanceAfterAssetEnded(i,e,n||0);if(u||(u=this.getAssetPlayer(c.identifier)),null===u||u.destroyed){const e=i.assetList.length;this.warn(`asset ${n+1}/${e} player destroyed ${i}`),u=this.createAssetPlayer(i,c,n),u.loadSource()}if(!this.eventItemsMatch(s,this.bufferingItem)&&i.appendInPlace&&this.isAssetBuffered(c))return;this.startAssetPlayer(u,n,t,e,o),this.shouldPlay&&xu(u.media)}else s?(this.resumePrimary(s,e,r),this.shouldPlay&&xu(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(a.durations.primary,null))}get playbackDisabled(){return!1===this.hls.config.enableInterstitialPlayback}get primaryDetails(){var e;return null==(e=this.mediaSelection)?void 0:e.main.details}get primaryLive(){var e;return!(null==(e=this.primaryDetails)||!e.live)}
2resumePrimary(e,t,n){var r,i;this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=null,this.bufferedToItem(e),this.endedItem=null,this.log(`resuming ${Pu(e)}`);let a=this.timelinePos;if(null!=(r=this.detachedData)&&r.mediaSource?this.primaryLive&&this.startLoadingPrimaryAt(a):((a<e.start||a>=e.end||a<this.seekableStart)&&(a=this.getPrimaryResumption(e,t),this.log(Nu("resumePrimary",a)),this.timelinePos=a),this.attachPrimary(a,e)),!n)return;const s=null==(i=this.schedule)?void 0:i.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Pu(e)}`),this.hls.trigger(v.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}get seekableStart(){var e;return this.primaryLive&&(null==(e=this.primaryDetails)?void 0:e.fragmentStart)||0}getPrimaryResumption(e,t,n){const r=e.start;if(this.primaryLive){if(0===t)return this.hls.startPosition;const e=this.endedItem||this.playingItem,i=null!=e&&e.event?this.livePrerollResumption(e.event,n):void 0;if(void 0!==i)return i;const a=this.primaryDetails;if(a){const{fragmentStart:e,edge:t}=a;if(r<e||r>t&&!n){const n=this.hls.liveSyncPosition;return this.log(`primary resumption out of bounds (${r} [${e}-${t}]) snapping to liveSync ${n}`),n||e}}}return this.log(`primary resumption itemStart: ${r}`),r}getLiveStartPos(){var e;const t=this.hls.startPosition,n=this.hls.liveSyncPosition||0,r=3*((null==(e=this.primaryDetails)?void 0:e.targetduration)||10);return-1===t||n&&n-t<r?n||0:t}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);if(null!=t&&t.hls)return t.hls.bufferedToEnd;return mr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(Nu("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){const n=this.hls,{loadingEnabled:r,bufferingEnabled:i,startPosition:a}=n,s=n.hasEnoughToStart;if(this.log(`Start loading primary @${e} bufferedPos: ${this.bufferedPos} startPosition: ${a} skip seek: ${t} has enough ${s} loadingEnabled: ${r} bufferingEnabled: ${i}`),!t&&s||!r||Math.abs(a-e)>.1){const r=this.primaryDetails;if(null!=r&&r.live&&e+.5>=r.edge){const t=this.bufferingItem;return this.log(`Resume primary loading when live passes ${e} buffering item: ${t?Pu(t):null}`),n.pauseBuffering(),void(this.bufferPastEdge=!0)}n.startLoad(e,t)}else i||n.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),null==(e=this.schedule)||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(v.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(v.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level||!this.schedule)return;const n=this.hls.levels[t.level];if(!n.details)return;const r=te(te({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r;const i=this.hls.startPosition;this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace,-1===i?0:i);if(this.schedule.items)if(this.effectivePlayingItem){if(this.bufferPastEdge){const e=this.primaryDetails,t=this.bufferedPos;if(null!=e&&e.live&&t+.5<e.edge){this.bufferPastEdge=!1;const n=this.bufferingItem;this.log(`Live edge ${e.edge} passed buffer: ${t} buffering item: ${n?Pu(n):null}`);if((null==n?void 0:n.end)===1/0){const e=this.playingItem,r=this.isInterstitial(e)&&e.event.appendInPlace;this.hls.startLoad(Math.max(t,n.start),r)}else{const e=this.getBufferingPlayer();if(e){e.bufferedInPlaceToEnd(this.primaryMedia,e.currentTime)&&e.hls&&e.hls.trigger(v.BUFFERED_TO_END,void 0)}}}}}else this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r)return void(this.altSelection=te(te({},this.altSelection),{},{audio:n}));const i=te(te({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r)return void(this.altSelection=te(te({},this.altSelection),{},{subtitles:n}));const i=te(te({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=_n(t);this.playerQueue.forEach(({hls:e})=>e&&(e.setAudioOption(t)||e.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=_n(t);this.playerQueue.forEach(({hls:e})=>e&&(e.setSubtitleOption(t)||-1!==t.id&&e.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let e=0;e<t.length;e++){const n=t[e];if(n.cue.post){const e=this.getEventItem(n.identifier);e&&this.eventItemsMatch(e,this.bufferingItem)&&this.bufferedToItem(e,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}else this.shouldPlay=!1}
2updateItem(e,t){var n;const r=null==(n=this.schedule)?void 0:n.items;if(e&&r){return r[this.findItemIndex(e,t)]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((t,n)=>{e.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(t.identifier,null)});const n=e.end+.25,r=mr.bufferInfo(this.primaryMedia,n,0);if(r.end>n||(r.nextStart||0)>n){this.log(`trim buffered interstitial ${Pu(e)} (was ${Pu(t)})`);const r=!0;this.attachPrimary(n,null,r),this.flushFrontBuffer(n)}}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===(null==(n=t.event)?void 0:n.identifier))}findEventIndex(e){return this.schedule?this.schedule.findEventIndex(e):-1}getEventItem(e){if(this.schedule){var t;const n=null==(t=this.schedule.items)?void 0:t[this.findEventIndex(e)];if(this.isInterstitial(n)&&n.event.identifier===e)return n}}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t,n;const r=this.mediaSelection;if(!r)return;const i=(null==(t=this.hls)?void 0:t.liveSyncPosition)||0;null==(n=this.schedule)||n.updateSchedule(r,[],i,e)}checkBuffer(e){var t;const n=null==(t=this.schedule)?void 0:t.items;if(!n)return;const r=mr.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e||!r)return;if(1===t.length&&this.itemsMatch(t[0],i))return void(this.bufferedPos=e);const a=this.playingItem,s=this.findItemIndex(a);let o=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var l;const n=this.findItemIndex(i),r=Math.min(n+1,t.length-1),a=t[r];if((-1===o&&i&&e>=i.end||null!=(l=a.event)&&l.appendInPlace&&e+.01>=a.start)&&(o=r),this.isInterstitial(i)){const e=i.event;if(r-s>1&&!1===e.appendInPlace)return;if(0===e.assetList.length&&e.assetListLoader)return}if(this.bufferedPos=e,o>n&&o>s)this.bufferedToItem(a);else{const t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&a.start<t.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(a)&&this.preloadAssets(a.event,0)}}else n&&a&&!this.itemsMatch(a,i)&&(o===s?this.bufferedToItem(a):o===s+1&&this.bufferedToItem(t[o]))}assetsBuffered(e,t){return 0!==e.event.assetList.length&&!e.event.assetList.some(e=>{const n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:r,events:i}=n;if(!r||!i)return t;const a=this.isInterstitial(e),s=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const o=s?s.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Pu(e)}`+(t?` (${o.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(a){const t=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((e,n)=>{const r=this.getAssetPlayer(e.identifier);r&&(n===t&&r.loadSource(),r.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(e=>e.pauseBuffering());this.hls.trigger(v.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==n){this.bufferingAsset=null;const t=this.getPrimaryResumption(e,this.findItemIndex(e),!0),n=this.bufferedPos=Math.max(t,Math.min(this.bufferedPos,e.end),this.timelinePos,e.start),r=this.detachedData;if(r)if(r.mediaSource){const t=!0;this.attachPrimary(n,e,t)}else this.startLoadingPrimaryAt(n);else{const e=this.playingItem,t=this.isInterstitial(e)&&e.event.appendInPlace;this.startLoadingPrimaryAt(n,t)}}}bufferedToEvent(e,t){const n=e.event,r=0===n.assetList.length&&!n.assetListLoader,i=n.cue.once;if(r||!i){const e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){const t=this.primaryMedia;t&&this.bufferAssetPlayer(e,t)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=0===r&&!e.assetListLoader,a=e.cue.once;if(i){const i=e.timelineStart,a=this.playingItem,o=this.getBuffer
2ingPlayer();var s;if(e.appendInPlace)this.isInterstitial(a)||(null==a||null==(s=a.nextEvent)?void 0:s.identifier)!==e.identifier||this.flushFrontBuffer(i+.25);let l,u=0;if(o&&!o.interstitial.cue.pre||!this.primaryLive||(u=this.getLiveStartPos(),o&&(u+=o.remaining)),u&&!e.cue.pre&&!e.cue.post){const e=u-i;e>0&&(l=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${u?` live-start: ${u} start-offset: ${l} (timeline-start: ${i})`:""}`),n)return this.createAsset(e,0,0,i,e.duration,n);const c=this.assetListLoader.loadAssetList(e,l);c&&(e.assetListLoader=c)}else if(!a&&r){for(let n=t;n<r;n++){const t=e.assetList[n],r=this.getAssetPlayerQueueIndex(t.identifier);-1!==r&&!this.playerQueue[r].destroyed||t.error||this.createAssetPlayer(e,t,n)}const n=e.assetList[t];if(n){const e=this.getAssetPlayer(n.identifier);return e&&e.loadSource(),e}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;const n=this.primaryDetails;if(n&&e>=n.edge)return;this.log(`Removing front buffer starting at ${e}`);Object.keys(t).forEach(t=>{this.hls.trigger(v.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t)for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n];return null}createAsset(e,t,n,r,i,a){const s={parentIdentifier:e.identifier,identifier:Su(e,a,t),duration:i,startOffset:n,timelineStart:r,uri:a};return this.createAssetPlayer(e,s,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig,a=Ln(r.loadLevelObj||r.levels[r.currentLevel],i.videoPreference),s=r.audioTracks[r.audioTrack],o=r.subtitleTracks[r.subtitleTrack];let l=0;if(this.primaryLive||e.appendInPlace){const e=this.timelinePos-t.timelineStart;if(e>=0){const n=t.duration;n&&e<n&&(l=e)}}const u=t.identifier,c=te(te({},i),{},{maxMaxBufferLength:Math.min(15,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:u,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:l,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:a,audioPreference:s||i.audioPreference,subtitlePreference:o||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(c.timelineOffset=t.timelineStart));const d=c.cmcd;null!=d&&d.sessionId&&d.contentId&&(c.cmcd=J({},d,{contentId:Nl(t.uri)})),this.getAssetPlayer(u)&&this.warn(`Duplicate date range identifier ${e} and asset ${u}`);const f=new Iu(this.HlsPlayerClass,c,e,t);this.playerQueue.push(f),e.assetList[n]=t;let h=!0;const m=r=>{if(r.live){const t=new Error(`Interstitials MUST be VOD assets ${e}`),r={fatal:!0,type:y.OTHER_ERROR,details:_.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},i=this.findEventIndex(e.identifier);return void this.handleAssetItemError(r,e,i,n,t.message)}const i=r.edge-r.fragmentStart,a=t.duration;(h||null===a||i>a)&&(h=!1,this.log(`Interstitial asset "${u}" duration change ${a} > ${i}`),t.duration=i,this.updateSchedule())};f.on(v.LEVEL_UPDATED,(e,{details:t})=>m(t)),f.on(v.LEVEL_PTS_UPDATED,(e,{details:t})=>m(t)),f.on(v.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const p=(e,t)=>{const n=this.getAssetPlayer(u);if(n&&t.tracks){n.off(v.BUFFER_CODECS,p),n.tracks=t.tracks;const e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};f.on(v.BUFFER_CODECS,p);f.on(v.BUFFERED_TO_END,()=>{const t=this.getAssetPlayer(u);if(this.log(`buffered to end of asset ${t}`),!t||!this.schedule)return;const n=this.getEventItem(e.identifier);n&&this.advanceAssetBuffering(n,t.assetItem)});const g=t=>()=>{if(!this.getAssetPlayer(u)||!this.schedule)return;this.shouldPlay=!0;const n=this.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return f.once(v.MEDIA_ENDED,g(n)),f.once(v.PLAYOUT_LIMIT_REACHED,g(1/0)),f.on(v.ERROR,(t,r)=>{if(!this.schedule)return;const i=this.getAssetPlayer(u);if(r.details===_.BUFFER_STALLED_ERROR)return null!=i&&i.appendInPlace?void this.handleInPlaceStall(e):(this.onTimeupdate(),void this.checkBuffer(!0));r.details!==_.BUFFER_SEEK_OVER_HOLE&&this.handleAssetItemError(r,e,this.findEventIndex(e.identifier),n,`Asset player error ${r.error} ${e}`)}),f.on(v.DESTROYING,()=>{if(!this.getAssetPlayer(u)||!this.schedule)return;const t=new Error(`Asset player destroyed unexpectedly ${u}`),r={fatal:!0,type:y.OTHER_ERROR,details:_.INTERSTITIAL_ASSET_ITEM_ER
2ROR,error:t};this.handleAssetItemError(r,e,this.findEventIndex(e.identifier),n,t.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${ku(t)}`),this.hls.trigger(v.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:f}),f}clearInterstitial(e,t){this.clearAssetPlayers(e,t),e.reset()}clearAssetPlayers(e,t){e.assetList.forEach(e=>{this.clearAssetPlayer(e.identifier,t)})}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(-1!==t){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(-1!==n){const e=this.playerQueue[n];this.log(`clear ${e} toSegment: ${t?Pu(t):t}`),this.transferMediaFromPlayer(e,t),this.playerQueue.splice(n,1),e.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:a,assetItem:s,assetId:o}=e,l=a.assetList.length,u=this.playingAsset;this.endedAsset=null,this.playingAsset=s,(null==u?void 0:u.identifier)!==o&&(u&&(this.clearAssetPlayer(u.identifier,n[r]),delete u.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${l} ${ku(s)}`),this.hls.trigger(v.INTERSTITIAL_ASSET_STARTED,{asset:s,assetListIndex:t,event:a,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n;if(!this.schedule)return;const{interstitial:r,assetItem:i}=e,a=this.getEventItem(r.identifier);if(!a)return;if(e.loadSource(),this.setBufferingItem(a),this.bufferingAsset=i,e.bufferedInPlaceToEnd(this.primaryMedia,e.currentTime))return void this.advanceAssetBuffering(a,i);const s=this.getBufferingPlayer();if(s===e)return;const o=r.appendInPlace;if(o&&!1===(null==s?void 0:s.interstitial.appendInPlace))return;const l=(null==s?void 0:s.tracks)||(null==(n=this.detachedData)?void 0:n.tracks)||this.requiredTracks;if(o&&i!==this.playingAsset){if(!e.tracks)return void this.log(`Waiting for track info before buffering ${e}`);if(l&&!Te(l,e.tracks)){const t=new Error(`Asset ${ku(i)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(l)}')`),n={fatal:!0,type:y.OTHER_ERROR,details:_.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},a=r.findAssetIndex(i);return void this.handleAssetItemError(n,r,this.findEventIndex(r.identifier),a,t.message)}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,i=t.findAssetIndex(e,r),a=e.assetList[i];if(a){const s=this.getAssetPlayer(a.identifier);if(s){const o=s.currentTime||r-a.timelineStart,l=s.duration-o;if(this.warn(`Stalled at ${o} of ${o+l} in ${s} ${e} (media.currentTime: ${r})`),o&&(l/n.playbackRate<.5||s.bufferedInPlaceToEnd(n,s.currentTime))&&s.hls){const n=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,i)}}}}advanceInPlace(e){const t=this.primaryMedia;if(t&&t.currentTime<e){const n=`advance currentTime to ${e}, duration: ${t.duration}`;t.duration>e?(this.log(n),t.currentTime=e):this.log(`Cannot ${n}`)}}handleAssetItemError(e,t,n,r,i){if(e.details===_.BUFFER_STALLED_ERROR)return;const a=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${a?ku(a):a} ${e.error}`),!this.schedule)return;const s=(null==a?void 0:a.identifier)||"",o=this.getAssetPlayerQueueIndex(s),l=this.playerQueue[o]||null,u=this.schedule.items,c=J({},e,{fatal:!1,errorAction:Zn(!0),asset:a,assetListIndex:r,event:t,schedule:u,scheduleIndex:n,player:l});if(this.hls.trigger(v.INTERSTITIAL_ASSET_ERROR,c),!e.fatal)return;const d=this.playingAsset,f=this.bufferingAsset,h=new Error(i);if(a&&(this.clearAssetPlayer(s,null),a.error=h),t.assetList.some(e=>!e.error))for(let e=r;e<t.assetList.length;e++)this.resetAssetPlayer(t.assetList[e].identifier);else t.error=h;this.updateSchedule(!0),t.error?this.primaryFallback(t):(null==d?void 0:d.identifier)===s?this.advanceAfterAssetEnded(t,n,r):(null==f?void 0:f.identifier)===s&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,f)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem,r=this.playingItem,i=this.seekableStart,a=this.hls.startPosition;let s=this.timelinePos;if(this.isInterstitial(n)){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${s} playing: ${Pu(n)} startPosition: ${a} seekableStart: ${i} error: ${e.error}`),-1===s&&(s=a),s=Math.max(s,i);const r=this.updateItem(n,s);this.itemsMatch(n,r)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}else if(-1===s)return void this.checkStart();if(!this.schedule)return;if(!this.isInterstitial(r))return;const o=this.schedule.findItemIndexAtTime(s);this.setSchedulePosition(o)}onAssetListLoaded(e,t){var n,r;const i=t.event,a=i.identifier,s=t.assetListResponse.ASSETS;if(null==(n=this.schedule)||!n.hasEvent(a))return;const o=i.timelineStart,l=i.duration;let u=0;
2s.forEach((e,t)=>{const n=parseFloat(e.DURATION);this.createAsset(i,t,u,o+u,n,e.URI),u+=n}),i.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${l}) ${i}`);const c=this.waitingItem,d=(null==c?void 0:c.event.identifier)===a;this.updateSchedule();const f=null==(r=this.bufferingItem)?void 0:r.event;if(d){const e=this.findEventIndex(a),t=this.getEventItem(a);if(t){if(!this.playingItem&&this.timelinePos>t.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==e)return i.error=new Error(`Interstitial ${s.length?"no longer within playback range":"asset-list is empty"} ${this.timelinePos} ${i}`),this.log(i.error.message),this.updateSchedule(!0),void this.primaryFallback(i)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==f?void 0:f.identifier)===a){const e=i.assetList[0];if(e){const t=this.getAssetPlayer(e.identifier);if(f.appendInPlace){const e=this.primaryMedia;t&&e&&this.bufferAssetPlayer(t,e)}else t&&t.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case _.ASSET_LIST_PARSING_ERROR:case _.ASSET_LIST_LOAD_ERROR:case _.ASSET_LIST_LOAD_TIMEOUT:{const e=t.interstitial;e&&(this.updateSchedule(!0),this.primaryFallback(e));break}case _.BUFFER_STALLED_ERROR:{const e=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(e)&&e.event.appendInPlace)return void this.handleInPlaceStall(e.event);const t=this.primaryMedia;this.log(`Primary player stall @${this.timelinePos} currentTime: ${null==t?void 0:t.currentTime} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}});function gc(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');if(void 0!==t.liveMaxUnchangedPlaylistRefresh){const e=t.liveMaxUnchangedPlaylistRefresh,s=(r=e,i=2,a=1/0,Math.max(i,Math.min(r,a)));s!==e&&n.warn(`hls.js config: "liveMaxUnchangedPlaylistRefresh" clamped from ${e} to ${s}.`),t.liveMaxUnchangedPlaylistRefresh=s}var r,i,a;const s=yc(e),o=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach(e=>{const r=`${"level"===e?"playlist":e}LoadPolicy`,i=void 0===t[r],a=[];o.forEach(n=>{const o=`${e}Loading${n}`,l=t[o];if(void 0!==l&&i){a.push(o);const e=s[r].default;switch(t[r]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}}),a.length&&n.warn(`hls.js config: "${a.join('", "')}" setting(s) are deprecated, use "${r}": ${pn(t[r])}`)}),te(te({},s),t)}function yc(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(yc):Object.keys(e).reduce((t,n)=>(t[n]=yc(e[n]),t),{}):e}function _c(e,t){const n=e.loader;if(n!==cc&&n!==mc)t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1})()&&(e.loader=cc,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class vc extends vs{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.lastABRSwitchTime=-1,this._iframeVariants=[],this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(v.LEVEL_LOADED,this.onLevelLoaded,this),e.on(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(v.FRAG_BUFFERED,this.onFragBuffered,this),e.on(v.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(v.LEVEL_LOADED,this.onLevelLoaded,this),e.off(v.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(v.FRAG_BUFFERED,this.onFragBuffered,this),e.off(v.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}
2stopLoad(){this._levels.forEach(e=>{e.loadError=0,e.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1,this._iframeVariants=[]}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},a={};let s=!1,o=!1,l=!1,u=!1;t.levels.forEach(e=>{const t=e.attrs,c=Tc(e,n),{audioCodec:d,videoCodec:f,imageCodec:h,width:m,height:p}=e;if(!c)return void this.log(`Some or all CODECS not supported "${t.CODECS}"`);s||(s=!(!m||!p)),o||(o=!!f),l||(l=!!d),u||(u=!!h);const{CODECS:g,"FRAME-RATE":y,"HDCP-LEVEL":_,"PATHWAY-ID":v,RESOLUTION:E,"VIDEO-RANGE":b}=t,T=`${`${v||"."}-`}${e.bitrate}-${E}-${y}-${g}-${b}-${_}`;if(i[T])if(i[T].uri===e.url||e.attrs["PATHWAY-ID"])e.iframes||(i[T].addGroupId("audio",t.AUDIO),i[T].addGroupId("text",t.SUBTITLES));else{const t=a[T]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const n=this.createLevel(e);i[T]=n,r.push(n)}else{const t=this.createLevel(e);i[T]=t,a[T]=1,r.push(t)}}),this.filterAndSortMediaOptions(r,t,s,o,l,u)}createLevel(e){const t=new fn(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!bc(n.videoCodec,this.hls.config.preferManagedMediaSource)){const e=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(e.message),t.supportedResult=Qt(e,[])}return t}filterAndSortMediaOptions(e,t,n,r,i,a){var s;let o=[],l=[],u=e;const c=(null==(s=t.stats)?void 0:s.parsing)||{},d=this.hls.config.preferManagedMediaSource;if((n||r)&&i&&(u=u.filter(({videoCodec:e,videoRange:t,width:n,height:r})=>{return(!!e||!(!n||!r))&&(!!(i=t)&&sn.indexOf(i)>-1);var i})),r&&a&&(u=u.filter(e=>!e.imageCodec)),0===u.length)return Promise.resolve().then(()=>{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n=`one or more CODECS in variant not supported: ${pn(t.levels.map(e=>e.attrs.CODECS).filter((e,t,n)=>n.indexOf(e)===t))}`,this.warn(n),e+=` (${n})`);const r=new Error(e);this.hls.trigger(v.ERROR,{type:y.MEDIA_ERROR,details:_.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:r,reason:n})}}),void(c.end=performance.now());t.audioTracks&&(o=t.audioTracks.filter(e=>!e.audioCodec||Ec(e.audioCodec,d)),Sc(o)),t.subtitles&&(l=t.subtitles,Sc(l));const f=u.slice(0);u.sort((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return sn.indexOf(e.videoRange)-sn.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){const n=Bt(e.videoCodec),r=Bt(t.videoCodec);if(n!==r)return r-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const n=jt(e.codecSet),r=jt(t.codecSet);if(n!==r)return r-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0});let h=f[0];if(this.steering&&(u=this.steering.filterParsedLevels(u),u.length!==f.length))for(let e=0;e<f.length;e++)if(f[e].pathwayId===u[0].pathwayId){h=f[e];break}this._levels=u;for(let e=0;e<u.length;e++)if(u[e]===h){var m;this._firstLevel=e;const t=h.bitrate,n=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${u.length} level(s) found, first bitrate: ${t}`),void 0===(null==(m=this.hls.userConfig)?void 0:m.abrEwmaDefaultEstimate)){const e=Math.min(t,this.hls.config.abrEwmaDefaultEstimateMax);e>n&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}const p=t.iframeVariants.filter(e=>Tc(e,d));this._iframeVariants=p;const g=i&&!r,E=this.hls.config,b=!(!E.audioStreamController||!E.audioTrackController),T={levels:u,audioTracks:o,subtitleTracks:l,iframeVariants:p,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:b&&!g&&o.some(e=>!!e.url)};c.end=performance.now(),this.hls.trigger(v.MANIFEST_PARSED,T)}get iframeVariants(){return 0===this._iframeVariants.length?null:this._iframeVariants}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){const n=new Error("invalid level idx"),r=e<0;
vendor: 4,101 bytes, line 2
2if(this.hls.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.LEVEL_SWITCH_ERROR,level:e,fatal:r,error:n,reason:n.message}),r)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,a=t[e],s=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,n===e&&r&&i===s)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${s?" with Pathway "+s:""} from level ${n}${i?" with Pathway "+i:""}`);const o={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(v.LEVEL_SWITCHING,o);const l=a.details;if(!l||l.live){const e=this.switchParams(a.uri,null==r?void 0:r.details,l);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){const e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(e=>-1!==t.indexOf(e));if(e.length<1)return void this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===R&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t.type===U){const e=t.elementaryStreams;if(!Object.keys(e).some(t=>!!e[t]))return;const n=this._levels[t.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,a=t.levelInfo;var s;if(!a)return this.warn(`Invalid level index ${r}`),void(null!=(s=t.deliveryDirectives)&&s.skip&&(i.deltaUpdateFailed=!0));if(a===this.currentLevel||t.withoutMultiVariant){0===a.fragmentError&&(a.loadError=0);let e=a.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(r,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],a=e.details,s=null==a?void 0:a.age;this.log(`Loading level index ${r}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type||0:""):""} ${n}`),this.hls.trigger(v.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){const t=this.currentLevelIndex;if(-1===this.manualLevelIndex&&e!==t&&-1!==e){const n=this.hls.config.abrSwitchInterval;if(n>0){const r=performance.now(),i=r-this.lastABRSwitchTime,a=1e3*n;if(this.lastABRSwitchTime>-1&&i<a)return void this.warn(`Preventing ABR level switch: ${t} -> ${e} (${Math.round(i)}ms < ${a}ms / ${n}s)`);this.lastABRSwitchTime=r,this.log(`Allowing ABR level switch: ${t} -> ${e} (${Math.round(i)}ms >= ${a}ms / ${n}s)`)}}this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;
2const n=this._levels.filter((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach(e=>e.level=-1)),!1));Si(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(v.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(v.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Ec(e,t){return Ft(e,"audio",t)}function bc(e,t){return Ft(e,"video",t)}function Tc(e,t){let{audioCodec:n,videoCodec:r}=e;n&&(e.audioCodec=n=Zt(n,t)||void 0),r&&(r=e.videoCodec=function(e){const t=e.split(",");for(let e=0;e<t.length;e++){const n=t[e].split(".");n.length>2&&"avc1"===n[0]&&(t[e]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return t.join(",")}(r));const{unknownCodecs:i}=e;return!((null==i?void 0:i.length)||0||n&&!Ec(n,t)||r&&!bc(r,t))}function Sc(e){const t={};e.forEach(e=>{const n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++})}class wc extends me{constructor(e,t){super("key-loader",t),this.config=void 0,this.keyLoaderInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyLoaderInfo){const r=this.keyLoaderInfo[n].loader;if(r){var t;if(e&&e!==(null==(t=r.context)?void 0:t.frag.type))return;r.abort()}}}destroy(){for(const e in this.keyLoaderInfo){const t=this.keyLoaderInfo[e].loader;t&&t.destroy()}this.emeController=null,this.keyLoaderInfo={}}loadClear(e,t,n){return this.emeController?this.emeController.loadClear(e,t,n):null}load(e,t){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(n=>this.loadInternal(e,t,n)):this.loadInternal(e,t)}loadInternal(e,t,n){n&&e.setKeyFormat(n);const r=e.decryptdata;if(!r){const t=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(Lc(e,_.KEY_LOAD_ERROR,t))}const i=e;switch(r.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(i):t?t.then(()=>this.loadKeyEME(i)):this.loadKeyEME(i);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(i);default:return Promise.reject(Lc(e,_.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(e){if(this.emeController&&this.config.emeEnabled){var t;if(!e.decryptdata.keyId&&null!=(t=e.initSegment)&&t.data){const t=function(e){const t=[];return mt(e,e=>t.push(e.subarray(8,24))),t}(e.initSegment.data);if(t.length){let n=t[0];const r=e.decryptdata.uri;if(n.some(e=>0!==e))this.log(`Using keyId found in init segment ${Ge(n)} keyUri: ${r}`),Wr.setKeyIdForUri(r,n);else{const e=Wr.addKeyIdForUri(r);this.log(`Patching empty keyId with ${Ge(e)} keyUri: ${r}`),n=e}e.decryptdata.keyId=n}}return this.emeController.loadKey(e).then(()=>({frag:e,keyInfo:{decryptdata:e.decryptdata}}))}return Promise.reject(Lc(e,_.KEY_LOAD_ERROR,new Error(`emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`)))}loadKeyHTTP(e){const t=e.decryptdata,n=t.uri;if(!n)return Promise.reject(Lc(e,_.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${n}"`)));const r=this.keyLoaderInfo[n];if(r){if(r.decryptdata.key)return t.key=r.decryptdata.key,r.keyLoadPromise=null,Promise.resolve({frag:e,keyInfo:r});if(r.keyLoadPromise)return r.keyLoadPromise.then(n=>(t.key=r.decryptdata.key,te(te({},n),{},{frag:e})))}this.log(`Loading${t.keyId?" keyId: "+Ge(t.keyId):""} URI: ${t.uri} from ${e.type} ${e.level}`);const i=this.config,a=new(0,i.loader)(i);e.keyLoader=a;const s=this.keyLoaderInfo[n]={decryptdata:t,keyLoadPromise:null,loader:a};return s.keyLoadPromise=new Promise((t,r)=>{const o={type:x,keyInfo:s,frag:e,responseType:"arraybuffer",url:n},l=i.keyLoadPolicy.default,u={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,n,i,a)=>{const{frag:s,keyInfo:o,url:l}=i;if(!s.decryptdata||o!==this.keyLoaderInfo[l])return r(Lc(s,_.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),a));o.decryptdata.key=s.decryptdata.key=new Uint8Array(e.data),s.keyLoader=o.loader=o.keyLoadPromise=null,t({frag:s,keyInfo:o})},onError:(t,i,a,s)=>{this.resetLoader(i),r(Lc(e,_.KEY_LOAD_ERROR,new Error(`HTTP Error ${t.code} loading key ${t.text}`),a,te({url:n,data:void 0},t)))},onTimeout:(t,n,i)=>{this.resetLoader(n),r(Lc(e,_.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(t,n,i)=>{this.resetLoader(n),r(Lc(e,_.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};a.load(o,u,c)})}
vendor: 4,311 bytes, line 2
2resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=n.loader=n.keyLoadPromise=null),delete this.keyLoaderInfo[r],i&&i.destroy()}}function Lc(e,t=_.KEY_LOAD_ERROR,n,r,i){return new cr({type:y.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r||null})}function Ac(e){const{type:t}=e;switch(t){case C:return B;case P:return j;default:return U}}function Mc(e,t){let n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}class Dc{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(v.MANIFEST_LOADING,this.onManifestLoading,this),e.on(v.LEVEL_LOADING,this.onLevelLoading,this),e.on(v.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(v.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(v.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(v.MANIFEST_LOADING,this.onManifestLoading,this),e.off(v.LEVEL_LOADING,this.onLevelLoading,this),e.off(v.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(v.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(v.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=new(n||r)(t);return this.loaders[e.type]=i,i}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:I,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:s,levelInfo:o}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:R,url:a,deliveryDirectives:s,levelOrTrack:o})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a,track:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:C,url:i,deliveryDirectives:a,levelOrTrack:s})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a,track:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:P,url:i,deliveryDirectives:a,levelOrTrack:s})}onLevelsUpdated(e,t){const n=this.loaders[R];if(n){const e=n.context;e&&!t.levels.some(t=>t===e.levelOrTrack)&&(n.abort(),delete this.loaders[R])}}load(e){var t;const n=this.hls.config;let r,i=this.getInternalLoader(e);if(i){const t=this.hls.logger,n=i.context;if((null==n?void 0:n.levelOrTrack)===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives))return void(n.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${n.url}`));t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}if(r=e.type===I?n.manifestLoadPolicy.default:J({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),m(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===R&&null!==e.level?t=this.hls.levels[e.level].details:e.type===C&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===P&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){const e=t.partTarget,n=t.targetduration;if(e&&n){const t=1e3*Math.max(3*e,.8*n);r=J({},r,{maxTimeToFirstByteMs:Math.min(t,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,r.maxTimeToFirstByteMs)})}}}const a=r.errorRetry||r.timeoutRetry||{},s={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},o={onSuccess:(e,t,n,r)=>{const i=this.getInternalLoader(n);this.resetInternalLoader(n.type);const a=e.data;t.parsing.start=performance.now(),ti.isMediaPlaylist(a)||n.type!==I?this.handleTrackOrLevelPlaylist(e,t,n,r||null,i):this.handleMasterPlaylist(e,t,n,r)},onError:(e,t,n,r)=>{this.handleNetworkError(t,n,!1,e,r)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}};i.load(e,s,o)}
2checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,a=e.data,s=Mc(e,n),o=ti.parseMasterPlaylist(a,s);if(o.playlistParsingError)return t.parsing.end=performance.now(),void this.handleManifestParsingError(e,n,o.playlistParsingError,r,t);const{contentSteering:l,levels:u,iframeVariants:c,sessionData:d,sessionKeys:f,startTimeOffset:h,variableList:m}=o;this.variableList=m,u.forEach(e=>{const{unknownCodecs:t}=e;if(t){const{preferManagedMediaSource:n}=this.hls.config;let{audioCodec:r,videoCodec:i}=e;for(let a=t.length;a--;){const s=t[a];Ft(s,"audio",n)?(e.audioCodec=r=r?`${r},${s}`:s,xt.audio[r.substring(0,4)]=2,t.splice(a,1)):Ft(s,"video",n)&&(e.videoCodec=i=i?`${i},${s}`:s,xt.video[i.substring(0,4)]=2,t.splice(a,1))}}});const{AUDIO:p=[],SUBTITLES:g,"CLOSED-CAPTIONS":y}=ti.parseMasterPlaylistMedia(a,s,o);if(p.length){p.some(e=>!e.url)||!u[0].audioCodec||u[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),p.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Tr({}),bitrate:0,url:""}))}i.trigger(v.MANIFEST_LOADED,{levels:u,audioTracks:p,subtitles:g,iframeVariants:c,captions:y,contentSteering:l,url:s,stats:t,networkDetails:r,sessionData:d,sessionKeys:f,startTimeOffset:h,variableList:m})}handleTrackOrLevelPlaylist(e,t,n,r,i){const a=this.hls,{id:s,level:o,type:l}=n,u=Mc(e,n),c=m(o)?o:m(s)?s:0,d=Ac(n),f=ti.parseLevelPlaylist(e.data,u,c,d,0,this.variableList);if(l===I){const e={attrs:new Tr({}),bitrate:0,details:f,name:"",url:u};f.requestScheduled=t.loading.start+vi(f,0),a.trigger(v.MANIFEST_LOADED,{levels:[e],audioTracks:[],iframeVariants:[],url:u,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=f,this.handlePlaylistLoaded(f,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(v.ERROR,{type:y.NETWORK_ERROR,details:_.MANIFEST_PARSING_ERROR,fatal:t.type===I,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let a=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===R?a+=`: ${e.level} id: ${e.id}`:e.type!==C&&e.type!==P||(a+=` id: ${e.id} group-id: "${e.groupId}"`);const s=new Error(a);this.hls.logger.warn(`[playlist-loader]: ${a}`);let o=_.UNKNOWN,l=!1;const u=this.getInternalLoader(e);switch(e.type){case I:o=n?_.MANIFEST_LOAD_TIMEOUT:_.MANIFEST_LOAD_ERROR,l=!0;break;case R:o=n?_.LEVEL_LOAD_TIMEOUT:_.LEVEL_LOAD_ERROR,l=!1;break;case C:o=n?_.AUDIO_TRACK_LOAD_TIMEOUT:_.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case P:o=n?_.SUBTITLE_TRACK_LOAD_TIMEOUT:_.SUBTITLE_LOAD_ERROR,l=!1}u&&this.resetInternalLoader(e.type);const c={type:y.NETWORK_ERROR,details:o,fatal:l,url:e.url,loader:u,context:e,error:s,networkDetails:t,stats:i};if(r){let n=e.url;t&&"url"in t&&(n=t.url),c.response=te({url:n,data:void 0},r)}this.hls.trigger(v.ERROR,c)}handlePlaylistLoaded(e,t,n,r,i,a){const s=this.hls,{type:o,level:l,levelOrTrack:u,id:c,groupId:d,deliveryDirectives:f}=r,h=Mc(t,r),m=Ac(r);let p="number"==typeof r.level&&m===U?l:void 0;u&&"iframes"in u&&u.iframes&&!e.iframesOnly&&(e.playlistParsingError=new Error("EXT-X-I-FRAME-STREAM-INF media playlist MUST contain an EXT-X-I-FRAMES-ONLY tag"),e.iframesOnly=!0);const g=e.playlistParsingError;if(g){if(this.hls.logger.warn(`${g} ${e.url}`),!s.config.ignorePlaylistParsingErrors)return void s.trigger(v.ERROR,{type:y.NETWORK_ERROR,details:_.LEVEL_PARSING_ERROR,fatal:!1,url:h,error:g,reason:g.message,response:t,context:r,level:p,parent:m,networkDetails:i,stats:n});e.playlistParsingError=null}if(!e.fragments.length){const a=e.playlistParsingError=new Error("No Segments found in Playlist");
2return void s.trigger(v.ERROR,{type:y.NETWORK_ERROR,details:_.LEVEL_EMPTY_ERROR,fatal:!1,url:h,error:a,reason:a.message,response:t,context:r,level:p,parent:m,networkDetails:i,stats:n})}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),o){case I:case R:if(p)if(u){if(u!==s.levels[p]){const e=s.levels.indexOf(u);e>-1&&(p=e)}}else p=0;s.trigger(v.LEVEL_LOADED,{details:e,levelInfo:u||s.levels[0],level:p||0,id:c||0,stats:n,networkDetails:i,deliveryDirectives:f,withoutMultiVariant:o===I,context:r});break;case C:s.trigger(v.AUDIO_TRACK_LOADED,{details:e,track:u,id:c||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:f,context:r});break;case P:s.trigger(v.SUBTITLE_TRACK_LOADED,{details:e,track:u,id:c||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:f,context:r})}}}class kc{static get version(){return Ji}static isMSESupported(){return cu()}static isSupported(){return function(){if(!cu())return!1;const e=be();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(Ut(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(Ut(t,"audio"))))}()}static getMediaSource(){return be()}static get Events(){return v}static get MetadataSchema(){return ua}static get ErrorTypes(){return y}static get ErrorDetails(){return _}static get DefaultConfig(){return kc.defaultConfig?kc.defaultConfig:pc}static set DefaultConfig(e){kc.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this._url=null,this.streamController=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Qi,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.iframeC
2ontroller=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=function(e,t,n){const r=ye();if("object"==typeof console&&!0===e||"object"==typeof e){const i=["debug","log","info","warn","error"];i.forEach(t=>{r[t]=_e(t,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.7.2`)}catch(e){return ye()}i.forEach(t=>{ve[t]=_e(t,e)})}else J(ve,r);return r}(e.debug||!1,"Hls instance",e.loggerId||e.assetPlayerId),n=this.config=gc(kc.DefaultConfig,e,t);this.userConfig=e,n.progressive&&_c(n,t);const{streamController:r,abrController:i,bufferController:a,capLevelController:s,errorController:o,fpsController:l,id3TrackController:u,iframeController:c,gapController:d}=n,f=new o(this),h=this.abrController=new i(this),m=new Vn(this),p=n.interstitialsController,g=p?this.interstitialsController=new p(this,kc):null,y=a?this.bufferController=new a(this,m):null,_=s?this.capLevelController=new s(this):null,E=l?new l(this):null,b=n.cmcdController,T=b?this.cmcdController=new b(this):null,S=new Dc(this),w=n.contentSteeringController,L=w?new w(this):null,A=this.levelController=new vc(this,L),M=u?new u(this):void 0,D=new wc(this.config,this.logger),k=this.streamController=new r(this,m,D),I=this.gapController=d?new d(this,m):void 0;_&&_.setStreamController(k);const R=[S,A,k];g&&R.splice(1,0,g),L&&R.splice(1,0,L),this.networkControllers=R;const C=[h];y&&C.push(y),I&&C.push(I),_&&C.push(_),E&&(E.setStreamController(k),C.push(E)),M&&C.push(M),C.push(m),this.audioTrackController=this.createController(n.audioTrackController,R);const P=n.audioStreamController;P&&R.push(this.audioStreamController=new P(this,m,D)),this.subtitleTrackController=this.createController(n.subtitleTrackController,R);const O=n.subtitleStreamController;O&&R.push(this.subtititleStreamController=new O(this,m,D)),this.createController(n.timelineController,C),D.emeController=this.emeController=this.createController(n.emeController,C),T&&C.push(T),this.latencyController=this.createController(n.latencyController,C),this.coreComponents=C,this.iframeC
vendor: 10,150 bytes, line 2
2ontroller=c?new c(this,kc):void 0,R.push(f);const x=f.onErrorOut;"function"==typeof x&&this.on(v.ERROR,x,f),this.on(v.MANIFEST_LOADED,S.onManifestLoaded,S)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;const n=e===v.ERROR;this.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(v.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(e=>e.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(e=>e.destroy()),this.coreComponents.length=0,this.iframeController=void 0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const t=new Error(`attachMedia failed: invalid argument (${e})`);return void this.trigger(v.ERROR,{type:y.OTHER_ERROR,details:_.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(v.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia");const e={};this.trigger(v.MEDIA_DETACHING,e),this._media=null,this.trigger(v.MEDIA_DETACHED,e)}transferMedia(){var e;this._media=null;const t=(null==(e=this.bufferController)?void 0:e.transferMedia())||null,n={transferMedia:t};return this.trigger(v.MEDIA_DETACHING,n),this.trigger(v.MEDIA_DETACHED,n),t}loadSource(e){var t;this.stopLoad();const n=this.media,r=this._url,i=this._url=D.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),n&&r&&(r!==i||null!=(t=this.bufferController)&&t.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(v.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),this.started&&this.networkControllers);n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!this.started&&this.networkControllers);e++);}get loadingEnabled(){return this.started&&this.streamController.state!==Pi}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[U]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[B]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[j]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=this.started,n=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&(n?this.startLoad(n):this.config.autoStartLoad||this.startLoad()))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=De()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=this.capLevelController,n=!!e;t&&n!==this.config.capLevelToPlayerSize&&(n?t.startCapping():(t.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){(function(e){return an.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(r=-1===t&&null!=e&&e.length?e.length-1:t,n)for(let t=r;t--;){const r=e[t].attrs["HDCP-LEVEL"];if(r&&r<=n)return t}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get audioForwardBufferInfo(){var e;return(null==(e=this.audioStreamController)?void 0:e.getFwdBufferInfo())||null}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get nextAudioTrack(){var e,t;return null!=(e=null==(t=this.audioStreamController)?void 0:t.nextAudioTrack)?e:-1}set nextAudioTrack(e){const{audioTrackController:t}=this;t&&(t.nextAudioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){var e,t;return null!=(e=null==(t=this.latencyController)?void 0:t.liveSyncPosition)?e:null}get latency(){var e;return(null==(e=this.latencyController)?void 0:e.latency)||0}get maxLatency(){var e;return(null==(e=this.latencyController)?void 0:e.maxLatency)||0}get targetLatency(){var e;return(null==(e=this.latencyController)?void 0:e.targetLatency)||null}set targetLatency(e){this.latencyController&&(this.latencyController.targetLatency=e)}get drift(){var e;return(null==(e=this.latencyController)?void 0:e.drift)||null}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!(null==(e=this.bufferController)||!e.bufferedToEnd)}get interstitialsManager(){return this.interstitialsController?this.interstitialsController.interstitialsManager:null}get iframeVariants(){const e=this.levelController.iframeVariants;return e||[]}
2createIFramePlayer(e){return this._url&&this.iframeController?this.iframeController.createIFramePlayer(e):null}createImageIFramePlayer(e){return this._url&&this.iframeController?this.iframeController.createImageIFramePlayer(e):null}getMediaDecodingInfo(e,t=this.allAudioTracks){return en(e,yn(t),navigator.mediaCapabilities)}}kc.defaultConfig=void 0;var Ic,Rc,Cc,Pc,Oc,xc,Nc,Fc,Yc=n(7400),Uc=n.n(Yc);function Bc(e){return Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bc(e)}function jc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hc(r.key),r)}}function Hc(e){var t=function(e,t){if("object"!=Bc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bc(t)?t:t+""}function Gc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $c,zc,qc=!1,Wc=!1,Vc=null,Kc=null,Xc=null,Qc=.8,Jc=function(e){Pc.value=e,Pc.style.setProperty("--progress-value","".concat(e,"%")),document.body.contains(Oc)&&(Oc.setAttribute("aria-valuenow",e),Oc.style.width=e+"%")},ed=function(){Nc.style.setProperty("--progress-value","".concat(100*Qc,"%")),Fc.className=Qc<.05?"volume-mute":Qc<=.3?"volume-low":Qc<=.7?"volume-mid":"volume-high"},td=function(){Ic.volume=Qc,document.body.contains(Oc)||(Nc.value=Qc,ed())},nd=function(e){var t=Math.trunc(e),n=Math.trunc(t/60),r=Math.trunc(n/60);return[String(r).padStart(2,"0"),String(n%60).padStart(2,"0"),String(t%60).padStart(2,"0")].join(":")},rd=function(){Pc.disabled=void 0===$c||!0===$c},id=function(){ad(),rd(),Xc?xc.textContent=Xc?nd(Xc/1e3):"00:00:00":Ic.duration?xc.textContent=nd(Ic.duration):xc.textContent="00:00:00",zc=setInterval(function(){if(!Ic.moveTrack){var e=Xc?Xc/1e3:Ic.duration,t=Kc?(new Date-new Date(Kc))/1e3:Ic.currentTime,n=t/e*100;n>=100?ad():(Jc(n),Cc.textContent=nd(t))}},250)},ad=function(){clearInterval(zc),zc=null},sd=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(),200===t.status},od=function(e,t){if("mediaSession"in navigator){var n,r,i,a={title:null!==(n=e.title)&&void 0!==n?n:"",artist:null!==(r=e.artist)&&void 0!==r?r:"",album:null!==(i=e.album)&&void 0!==i?i:"",artwork:[]};e.cover&&e.coverSize&&e.coverType&&a.artwork.push({src:e.cover,sizes:e.coverSize,type:e.coverType}),navigator.mediaSession.metadata=new MediaMetadata(a),function(e){var t=[];t.push(["previoustrack",e?function(){Livewire.dispatch("player:audio:source:seekPrevious")}:null]),t.push(["nexttrack",e?function(){Livewire.dispatch("player:audio:source:seekNext")}:null]);for(var n=0,r=t;n<r.length;n++){var i=Gc(r[n],2),a=i[0],s=i[1];try{navigator.mediaSession.setActionHandler(a,s)}catch(e){console.log('The media session action "'.concat(a,'" is not supported yet.'))}}}(t)}},ld=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}
2,n=[{key:"init",value:function(){Livewire.on("player:audio:details:updated",function(e){var t=e.metadata,n=e.canPreviousNext;od(t,n)}),Livewire.on("player:audio:stream:updated",function(e){var t=e.audioSourceStream,n=e.playOnUpdate,r=e.metadata,i=e.canPreviousNext,a=void 0!==i&&i,s=e.isLive,o=void 0!==s&&s;if(qc||(qc=!0,Ic=document.getElementById("audio-player"),Rc=document.getElementById("audio-player-custom"),Nc=document.getElementById("audio-player-volume"),Fc=document.getElementById("audio-volume-selector-dropdown-icon"),Cc=Rc.querySelector("#audio-playing-timer"),Pc=Rc.querySelector("#audio-playing-progress"),Oc=document.getElementById("audio-playing-progress-mobile"),xc=Rc.querySelector("#audio-total-duration"),document.body.contains(Oc)&&(Qc=1),Nc&&Fc?ed():Qc=1),Wc||(Ic.addEventListener("canplay",function(){$c=$c||Ic.duration===1/0,rd(),Ic.volume=0,Ic.play(),td(),Ic.moveTrack=!1}),Ic.addEventListener("play",function(){id(),Livewire.dispatch("player:audio:source:played")}),Ic.addEventListener("pause",function(){Ic.ended||Livewire.dispatch("player:audio:source:paused")}),Ic.addEventListener("ended",function(){Livewire.dispatch("player:audio:source:ended")}),$c||(Pc.addEventListener("mousemove",function(e){Ic.duration&&Jc(e.target.value)}),Pc.addEventListener("input",function(){Ic.moveTrack=!0}),Pc.addEventListener("change",function(e){Ic.duration?(Jc(e.target.value),Ic.currentTime=Ic.duration*e.target.value/100):Jc(0)})),!document.body.contains(Oc)&&Nc&&Fc&&(Nc.addEventListener("change",function(e){Qc=e.target.value,Ic.volume=Qc,ed()}),Nc.addEventListener("mousemove",function(e){Qc=e.target.value,Ic.volume=Qc,ed()})),Wc=!0),ad(),od(r,a),Kc=null,Xc=null,$c=o,rd(),Vc&&(Vc.destroy(),Vc=null),n){if(r.matomoTitle?Ic.setAttribute("data-matomo-title",r.matomoTitle):Ic.removeAttribute("data-matomo-title"),t.hls&&Ic.canPlayType("application/vnd.apple.mpegurl")&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&sd(t.hls))return Ic.src=t.hls,Ic.load(),void Livewire.dispatch("media:analytics:scanForMedia");if(t.hls&&kc.isSupported()&&sd(t.hls))return(Vc=new kc).loadSource(t.hls),Vc.attachMedia(Ic),void Livewire.dispatch("media:analytics:scanForMedia");if(t.dash&&Uc().supportsMediaSource()&&sd(t.dash))return Uc().MediaPlayer().create().initialize(Ic,t.dash,!1),Ic.load(),void Livewire.dispatch("media:analytics:scanForMedia");Ic.src=t.mp3,Ic.load(),Livewire.dispatch("media:analytics:scanForMedia")}else id()}),Livewire.on("player:audio:source:play",function(){Ic.readyState===Ic.HAVE_ENOUGH_DATA&&(Ic.volume=0,Ic.play(),td())}),Livewire.on("player:audio:source:pause",function(){Ic.volume=0,Ic.pause(),td()}),Livewire.on("player:main:radio:progress:force",function(e){var t=e.startedAt,n=e.realDuration;Kc=t,Xc=n,id()})}}],(t=null)&&jc(e.prototype,t),n&&jc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ud(e){return ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ud(e)}function cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dd(r.key),r)}}function dd(e){var t=function(e,t){if("object"!=ud(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ud(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ud(t)?t:t+""}var fd=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("nav:browser:history:push",function(e){var t,n=e.url;n!==(null===(t=history.state)||void 0===t?void 0:t.prevUrl)&&history.pushState({prevUrl:n},null,n)}),Livewire.on("nav:browser:history:replace",function(e){var t=e.url;history.replaceState({prevUrl:t},null,t)}),Livewire.on("nav:browser:previous:request",function(){history.back()}),window.addEventListener("popstate",function(){Livewire.dispatch("nav:browser:route:updated",{browserUrl:document.location.href})})}}
2],(t=null)&&cd(e.prototype,t),n&&cd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),hd=n(5001),md=n(2543);function pd(e){return pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pd(e)}function gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yd(r.key),r)}}function yd(e){var t=function(e,t){if("object"!=pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pd(t)?t:t+""}var _d=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.interceptMessage(function(e){(0,e.onSuccess)(function(e){(0,e.onRender)(function(){var e;e=document.querySelectorAll('img[srcset*="responsive-images"]'),window.requestAnimationFrame(function(){(0,md.each)(e,function(e){var t=e.getBoundingClientRect().width;e.sizes=Math.ceil(t/window.innerWidth*100)+"vw"})})})})})}}],(t=null)&&gd(e.prototype,t),n&&gd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function vd(e){return vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vd(e)}function Ed(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bd(r.key),r)}}function bd(e){var t=function(e,t){if("object"!=vd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vd(t)?t:t+""}var Td=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("geolocation:position:request",function(e){var t=e.refresh;"geolocation"in navigator?navigator.geolocation.getCurrentPosition(function(e){t?Livewire.dispatch("geolocation:position:found:refresh",{browserLatitude:e.coords.latitude,browserLongitude:e.coords.longitude}):Livewire.dispatch("geolocation:position:found",{browserLatitude:e.coords.latitude,browserLongitude:e.coords.longitude})},function(){t?Livewire.dispatch("geolocation:position:found:refresh"):Livewire.dispatch("geolocation:position:found")}):t?Livewire.dispatch("geolocation:position:found:refresh"):Livewire.dispatch("geolocation:position:found")})}}],(t=null)&&Ed(e.prototype,t),n&&Ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Sd(e){return Sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sd(e)}function wd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ld(r.key),r)}}function Ld(e){var t=function(e,t){if("object"!=Sd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Sd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sd(t)?t:t+""}var Ad,Md,Dd,kd=".horizontal-rail-container",Id=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("rail:load",function(e){var t=e.ev;document.querySelectorAll('[data-rail="'.concat(t.railName,'"]')).forEac
2h(function(e){var n=e.querySelector(kd);n&&t.resetScroll&&(n.scrollLeft=0);var r=e.querySelector(".horizontal-rail").firstElementChild;if(r){var i=e.querySelector('[data-rail="previous"]'),a=e.querySelector('[data-rail="next"]');i&&a&&(i.addEventListener("click",function(t){t.preventDefault();var n=e.querySelector(kd),i=n.scrollLeft;n.scroll({left:i-r.clientWidth,behavior:"smooth"})},!1),a.addEventListener("click",function(t){t.preventDefault();var n=e.querySelector(kd),i=n.scrollLeft;n.scroll({left:i+r.clientWidth,behavior:"smooth"})},!1))}})})}}],(t=null)&&wd(e.prototype,t),n&&wd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Rd=n(5093),Cd=n.n(Rd);function Pd(e){return Pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pd(e)}function Od(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xd(r.key),r)}}function xd(e){var t=function(e,t){if("object"!=Pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pd(t)?t:t+""}var Nd=function(e,t){Ad.textContent=e>=t?Cd()(t).utc().format("HH:mm:ss"):Cd()(e).utc().format("HH:mm:ss")},Fd=function(e,t){var n=100*e/t,r=n>=100?100:n;Md.setAttribute("aria-valuenow",String(r)),Md.style.width=r+"%"},Yd=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("player:radio_station_rail:audio:progress:init",function(e){var t=e.progressBarSelector,n=e.progressTimerSelector,r=e.startedAt,i=e.totalMilliseconds;clearInterval(Dd),Dd=null,Md=document.querySelector(t),Ad=document.querySelector(n),document.body.contains(Md)&&document.body.contains(Ad)&&r&&i&&(Dd||(Dd=setInterval(function(){!function(e,t){var n=new(Cd()),r=Cd()(e),i=n.diff(r),a=Cd().duration(i).asMilliseconds();Nd(a,t),Fd(a,t),a>=t&&clearInterval(Dd)}(r,i)},250)))})}}],(t=null)&&Od(e.prototype,t),n&&Od(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Ud=n(6931);function Bd(e){return Bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bd(e)}function jd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hd(r.key),r)}}function Hd(e){var t=function(e,t){if("object"!=Bd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bd(t)?t:t+""}var Gd=function(){var e=document.getElementById("nav-mobile"),t=document.getElementById("footer-app-mobile");if(!document.body.contains(e)||!document.body.contains(t))return!1;var n=window.innerHeight-e.offsetHeight-t.offsetHeight,r=document.querySelector("#template.mobile-app");r.style.height=n+"px",r.style.maxHeight=n+"px"},Zd=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){window.addEventListener("resize",Gd),Gd()}}],(t=null)&&jd(e.prototype,t),n&&jd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function $d(e){return $d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$d(e)}function zd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qd(r.key),r)}}function qd(e){var t=function(e,t){if("object"!=$d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$d(t)?t:t+""}var Wd=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("seo:meta:update",function(e){var t=e.seoMetaHtml,n=document.getElementsByTagName("head")[0],r=[];r.push(n.getElementsByTagName("title")),r.push(n.querySelectorAll('meta[name="description"]')),r.push(n.querySelectorAll('link[rel="canonical"]')),r.push(n.querySelectorAll('meta[name="robots"]')),r.push(n.querySelectorAll('meta[property="og:locale"]')),r.push(n.querySelectorAll('meta[property="og:title"]')),r.push(n.querySelectorAll('meta[property="og:description"]')),r.push(n.querySelectorAll('meta[property="og:url"]')),r.push(n.querySelectorAll('meta[property="og:type"]')),r.push(n.querySelectorAll('meta[property="og:image"]')),r.push(n.querySelectorAll('meta[name="twitter:card"]')),r.push(n.querySelectorAll('meta[name="twitter:site"]')),r.push(n.querySelectorAll('meta[name="twitter:title"]')),r.push(n.querySelectorAll('meta[name="twitter:description"]')),r.push(n.querySelectorAll('meta[name^="twitter:image"]')),r.push(n.querySelectorAll('script[type="application/ld+json"]')),(0,md.each)(r,function(e){!function(e,t){t.length&&(0,md.each)(t,function(t){e.removeChild(t)})}(n,e)}),n.insertAdjacentHTML("beforeend",t),Livewire.dispatch("seo:meta:updated")})}}],(t=null)&&zd(e.prototype,t),n&&zd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Vd(e){return Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vd(e)}function Kd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Xd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jd(r.key),r)}}function Jd(e){var t=function(e,t){if("object"!=Vd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vd(t)?t:t+""}var ef=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){var e=function(e){var t=window.getComputedStyle(e).getPropertyValue("writing-mode");if(!t||!t.startsWith("vertical")){var n=Number(e.min),r=Number(e.max)-n;if(!(r<=0)){e.id||(e.id="input-range-"+Math.floor(Math.random()*Math.pow(10,8)).toString(8));var i=document.createElement("div");i.style.position="absolute",i.style.top=(e.offsetTop+e.offsetHeight).toString()+"px",i.style.left=(e.offsetLeft+10).toString()+"px",i.style.width=(e.offsetWidth-20).toString()+"px",i.style.overflow="visible",i.ariaHidden="true",i.classList.add("input-range-marker-container"),i.dataset.input=e.id,e.after(i);var a=document.getElementById(e.dataset.markerList);a&&(a.querySelectorAll("option").forEach(function(t){var a=document.createElement("span");a.innerHTML=t.label,a.dataset.value=t.value,a.classList.add("input-range-marker"),e.value===t.value&&(a.classList.add("selected"),e.ariaValueText=t.label),a.style.position="absolute",a.style.left=Math.round((Number(t.value)-n)*i.offsetWidth/r).toString()+"px",i.append(a)}),e.addEventListener("change",function(e){var t=i.querySelector(".selected");t&&t.classList.remove("selected");var n=i.querySelector('[data-value="'.concat(e.target.value,'"]'));n&&(e.target.ariaValueText=n.innerText,n.classList.add("selected"))}))}}},t=new ResizeObserver(function(t,n){var r,i=Kd(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.borderBoxSize[0].blockSize||a.borderBoxSize[0].inlineSize){var s=a.target.parentElement.querySelector('.input-range-marker-container[data-input="'.concat(a.target.id,'"]'));s&&s.remove(),e(a.target)}else n.unobserve(a.target)}}catch(e){i.e(e)}finally{i.f()}});document.querySelectorAll('input[type="range"][data-marker-list]').forEach(function(e){t.observe(e,{box:"border-box"})}),window.addEventListener("input-range-markers:init",function(e){e.detail.selector&&document.querySelectorAll(e.detail.selector).forEach(function(e){e.matches('input[type="range"][data-marker-list]')?t.observe(e,{box:"border-box"}):e.childElementCount&&e.querySelectorAll('input[type="range"][data-marker-list]').forEach(function(e){t.observe(e,{box:"border-box"})})})})}}],(t=null)&&Qd(e.prototype,t),n&&Qd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();f.init(),a.A.init(),s.A.init(),hd.A.init(),Zd.init(),ef.init(),document.addEventListener("livewire:initialized",function(){h.A.init(),fd.init(),_d.init(),ld.init(),Td.init(),Id.init(),Yd.init(),Ud.A.init(),Wd.init(),Livewire.on("history:clean:url:parameters",function(){history.replaceState({},document.title,window.location.pathname)}),Livewire.on("nav:route:loaded",function(e){var t=e.routeKey;if(!app.is_desktop){var n=document.getElementById("choose-upcoming-song");n&&("map"===t?n.classList.replace("d-flex","d-none"):n.classList.replace("d-none","d-flex"))}}),Livewire.on("map:info:init",function(){var e=document.getElementById("map-info-panel-content");e&&(app.is_mobile&&e.addEventListener("show.bs.collapse",function(){Livewire.dispatch("map:list:hide")}),e.addEventListener("shown.bs.collapse",function(){document.querySelectorAll('[ data-bs-toggle="collapse"][data-bs-target="#'.concat(this.id,'"]')).forEac
2h(function(e){if(e.hasAttribute("title")){var t=e.getAttribute("title");e.setAttribute("title",t.replace("Ouvrir","Fermer"))}}),Livewire.dispatch("map:info:shown")}),e.addEventListener("hidden.bs.collapse",function(){document.querySelectorAll('[ data-bs-toggle="collapse"][data-bs-target="#'.concat(this.id,'"]')).forEach(function(e){if(e.hasAttribute("title")){var t=e.getAttribute("title");e.setAttribute("title",t.replace("Fermer","Ouvrir"))}}),Livewire.dispatch("map:info:hidden")}))}),Livewire.on("map:info:hide",function(){var e=document.getElementById("map-info-panel-content");e&&i().getOrCreateInstance(e,{toggle:!1}).hide()}),Livewire.on("map:list:init",function(){var e=document.getElementById("map-rail-content");e&&(e.addEventListener("shown.bs.collapse",function(){document.querySelectorAll('[ data-bs-toggle="collapse"][data-bs-target="#'.concat(this.id,'"]')).forEach(function(e){if(e.hasAttribute("title")){var t=e.getAttribute("title");e.setAttribute("title",t.replace("Ouvrir","Fermer"))}}),Livewire.dispatch("map:list:shown")}),e.addEventListener("hidden.bs.collapse",function(){document.querySelectorAll('[ data-bs-toggle="collapse"][data-bs-target="#'.concat(this.id,'"]')).forEach(function(e){if(e.hasAttribute("title")){var t=e.getAttribute("title");e.setAttribute("title",t.replace("Fermer","Ouvrir"))}}),Livewire.dispatch("map:list:hidden")}))}),Livewire.on("map:list:hide",function(){var e=document.getElementById("map-rail-content");e&&i().getOrCreateInstance(e,{toggle:!1}).hide()})});var tf=function(e){var t=e.detail.settings;if(t.mapStyle){var n=document.getElementById("map-wrapper");if("default"!==t.mapStyle.name)if("both"===t.mapStyle.theme){var r,i,a=null!==(r=null!==(i=localStorage.getItem("userTheme"))&&void 0!==i?i:t.colorScheme)&&void 0!==r?r:"auto";if("auto"===a)a=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";n.dataset.mapStyle=t.mapStyle.name+"-"+a}else n.dataset.mapStyle=t.mapStyle.name;else n.dataset.mapStyle&&delete n.dataset.mapStyle}};window.addEventListener("message",function(e){var t;if(e.origin&&e.origin.includes("helloasso.com")){var n=null===(t=e.data)||void 0===t?void 0:t.height;null!=n&&document.querySelectorAll('iframe[src*="helloasso.com/"][src*="/widget"]').forEach(function(e){e.style.height="".concat(parseInt(n,10),"px")})}}),window.addEventListener("map:init",tf),window.addEventListener("map:draw",tf)},838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
2d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_mÃ¥ndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mÃ¥n_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_mÃ¥_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[IgÃ¥r] LT",nextWeek:"[PÃ¥] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"nÃ¥gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en mÃ¥nad",MM:"%d mÃ¥nader",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(5093))},1025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"à¯",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","à¯":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ªà®°à¯_à®
à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯".split("_"),monthsShort:"à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ªà®°à¯_à®
à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯".split("_"),weekdays:"à®à®¾à®¯à®¿à®±à¯à®±à¯à®à¯à®à®¿à®´à®®à¯_திà®à¯à®à®à¯à®à®¿à®´à®®à¯_à®à¯à®µà¯à®µà®¾à®¯à¯à®à®¿à®´à®®à¯_பà¯à®¤à®©à¯à®à®¿à®´à®®à¯_வியாழà®à¯à®à®¿à®´à®®à¯_வà¯à®³à¯à®³à®¿à®à¯à®à®¿à®´à®®à¯_à®à®©à®¿à®à¯à®à®¿à®´à®®à¯".split("_"),weekdaysShort:"à®à®¾à®¯à®¿à®±à¯_திà®à¯à®à®³à¯_à®à¯à®µà¯à®µà®¾à®¯à¯_பà¯à®¤à®©à¯_வியாழனà¯_வà¯à®³à¯à®³à®¿_à®à®©à®¿".split("_"),weekdaysMin:"à®à®¾_தி_à®à¯_பà¯_வி_வà¯_à®".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[à®à®©à¯à®±à¯] LT",nextDay:"[நாளà¯] LT",nextWeek:"dddd, LT",lastDay:"[நà¯à®±à¯à®±à¯] LT",lastWeek:"[à®à®à®¨à¯à®¤ வாரமà¯] dddd, LT",sameElse:"L"},relativeTime:{future:"%s à®à®²à¯",past:"%s à®®à¯à®©à¯",s:"à®à®°à¯ à®à®¿à®² விநாà®à®¿à®à®³à¯",ss:"%d விநாà®à®¿à®à®³à¯",m:"à®à®°à¯ நிமிà®à®®à¯",mm:"%d நிமிà®à®à¯à®à®³à¯",h:"à®à®°à¯ மணி நà¯à®°à®®à¯",hh:"%d மணி நà¯à®°à®®à¯",d:"à®à®°à¯ நாளà¯",dd:"%d நாà®à¯à®à®³à¯",M:"à®à®°à¯ மாதமà¯",MM:"%d மாதà®à¯à®à®³à¯",y:"à®à®°à¯ வரà¯à®à®®à¯",yy:"%d à®à®£à¯à®à¯à®à®³à¯"},dayOfMonthOrdinalParse:/\d{1,2}வதà¯/,ordinal:function(e){return e+"வதà¯"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬à¯à¯®à¯¯à¯¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமமà¯|வà¯à®à®±à¯|à®à®¾à®²à¯|நணà¯à®ªà®à®²à¯|à®à®±à¯à®ªà®¾à®à¯|மாலà¯/,meridiem:function(e,t,n){return e<2?" யாமமà¯":e<6?" வà¯à®à®±à¯":e<10?" à®à®¾à®²à¯":e<14?" நணà¯à®ªà®à®²à¯":e<18?" à®à®±à¯à®ªà®¾à®à¯":e<22?" மாலà¯":" யாமமà¯"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமமà¯"===t?e<2?e:e+12:"வà¯à®à®±à¯"===t||"à®à®¾à®²à¯"===t||"நணà¯à®ªà®à®²à¯"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(5093))},1052:function(e,t,n){!function(e){"use strict";var t="pagh_waâ_chaâ_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Huâ":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function i(e,t,n,r){var i=a(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";
vendor: 6,273 bytes, line 2
2case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function a(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}e.defineLocale("tlh",{months:"teraâ jar waâ_teraâ jar chaâ_teraâ jar wej_teraâ jar loS_teraâ jar vagh_teraâ jar jav_teraâ jar Soch_teraâ jar chorgh_teraâ jar Hut_teraâ jar waâmaH_teraâ jar waâmaH waâ_teraâ jar waâmaH chaâ".split("_"),monthsShort:"jar waâ_jar chaâ_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar waâmaH_jar waâmaH waâ_jar waâmaH chaâ".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[waâleS] LT",nextWeek:"LLL",lastDay:"[waâHuâ] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:i,m:"waâ tup",mm:i,h:"waâ rep",hh:i,d:"waâ jaj",dd:i,M:"waâ jar",MM:i,y:"waâ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},1135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chá»§ nháºt_thứ hai_thứ ba_thứ tư_thứ nÄm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [nÄm] YYYY",LLL:"D MMMM [nÄm] YYYY HH:mm",LLLL:"dddd, D MMMM [nÄm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngà y mai lúc] LT",nextWeek:"dddd [tuần tá»i lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trưá»c lúc] LT",sameElse:"L"},relativeTime:{future:"%s tá»i",past:"%s trưá»c",s:"và i giây",ss:"%d giây",m:"má»t phút",mm:"%d phút",h:"má»t giá»",hh:"%d giá»",d:"má»t ngà y",dd:"%d ngà y",w:"má»t tuần",ww:"%d tuần",M:"má»t tháng",MM:"%d tháng",y:"má»t nÄm",yy:"%d nÄm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},1221:function(e,t,n){!function(e){"use strict";var t=["جÙÙØ±Ù","ÙÙØ¨Ø±ÙرÙ","Ù
ارÚ","اپرÙÙ","Ù
ئÙ","جÙÙ","جÙÙØ§Ø¡Ù","آگسٽ","سÙپٽÙ
بر","Ø¢ÚªÙ½ÙØ¨Ø±","ÙÙÙ
بر","ÚØ³Ù
بر"],n=["Ø¢ÚØ±","سÙÙ
ر","اڱارÙ","اربع","Ø®Ù
ÙØ³","جÙ
ع","ÚÙÚØ±"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ddddØ D MMMM YYYY HH:mm"},meridiemParse:/صبØ|شاÙ
/,isPM:function(e){return"شاÙ
"===e},meridiem:function(e,t,n){return e<12?"صبØ":"شاÙ
"},calendar:{sameDay:"[اÚ] LT",nextDay:"[Ø³ÚØ§Ú»Ù] LT",nextWeek:"dddd [اڳÙÙ ÙÙØªÙ تÙ] LT",lastDay:"[ڪاÙÙÙ] LT",lastWeek:"[گزرÙÙ ÙÙØªÙ] dddd [تÙ] LT",sameElse:"L"},relativeTime:{future:"%s Ù¾ÙØ¡",past:"%s اڳ",s:"ÚÙØ¯ سÙÚªÙÚ",ss:"%d سÙÚªÙÚ",m:"ÙÚª Ù
ÙÙ½",mm:"%d Ù
ÙÙ½",h:"ÙÚª ÚªÙØ§Úª",hh:"%d ÚªÙØ§Úª",d:"ÙÚª ÚÙÙÙÙ",dd:"%d ÚÙÙÙÙ",M:"ÙÚª Ù
ÙÙÙÙ",MM:"%d Ù
ÙÙÙØ§",y:"ÙÚª ساÙ",yy:"%d ساÙ"},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:1,doy:4}})}(n(5093))},1290:function(e,t,n){!function(e){"use strict";var t={1:"à§§",2:"২",3:"à§©",4:"৪",5:"à§«",6:"৬",7:"à§",8:"à§®",9:"৯",0:"০"},n={"à§§":"1","২":"2","à§©":"3","৪":"4","à§«":"5","৬":"6","à§":"7","à§®":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿_ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°_à¦
à¦à§à¦à§à¦¬à¦°_নà¦à§à¦®à§à¦¬à¦°_ডিসà§à¦®à§à¦¬à¦°".split("_"),monthsShort:"à¦à¦¾à¦¨à§_ফà§à¦¬à§à¦°à§_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦_à¦
à¦à§à¦à§_নà¦à§_ডিসà§".split("_"),weekdays:"রবিবার_সà§à¦®à¦¬à¦¾à¦°_মà¦à§à¦à¦²à¦¬à¦¾à¦°_বà§à¦§à¦¬à¦¾à¦°_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦°_শà§à¦à§à¦°à¦¬à¦¾à¦°_শনিবার".split("_"),weekdaysShort:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿_শà§à¦à§à¦°_শনি".split("_"),weekdaysMin:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹_শà§à¦à§à¦°_শনি".split("_"),longDateFormat:{LT:"A h:mm সমà§",LTS:"A h:mm:ss সমà§",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সমà§",LLLL:"dddd, D MMMM YYYY, A h:mm সমà§"},calendar:{sameDay:"[à¦à¦] LT",nextDay:"[à¦à¦à¦¾à¦®à§à¦à¦¾à¦²] LT",nextWeek:"dddd, LT",lastDay:"[à¦à¦¤à¦à¦¾à¦²] LT",lastWeek:"[à¦à¦¤] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরà§",past:"%s à¦à¦à§",s:"à¦à§à§à¦ সà§à¦à§à¦¨à§à¦¡",ss:"%d সà§à¦à§à¦¨à§à¦¡",m:"à¦à¦ মিনিà¦",mm:"%d মিনিà¦",h:"à¦à¦ à¦à¦¨à§à¦à¦¾",hh:"%d à¦à¦¨à§à¦à¦¾",d:"à¦à¦ দিন",dd:"%d দিন",M:"à¦à¦ মাস",MM:"%d মাস",y:"à¦à¦ বà¦à¦°",yy:"%d বà¦à¦°"},preparse:function(e){return e.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সà¦à¦¾à¦²|দà§à¦ªà§à¦°|বিà¦à¦¾à¦²|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>
2=4||"দà§à¦ªà§à¦°"===t&&e<5||"বিà¦à¦¾à¦²"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সà¦à¦¾à¦²":e<17?"দà§à¦ªà§à¦°":e<20?"বিà¦à¦¾à¦²":"রাত"},week:{dow:0,doy:6}})}(n(5093))},1330:function(e,t){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return e>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};t.l10ns.fr=n;var r=t.l10ns;e.French=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},1355:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(2543);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var c=Swal.mixin({customClass:{confirmButton:"btn btn-primary mx-2",cancelButton:"btn btn-white mx-2"},buttonsStyling:!1}),d=c.mixin({showCloseButton:!0,showConfirmButton:!1,showCancelButton:!0,allowOutsideClick:!1,cancelButtonText:app.notify.close}),f=c.mixin({toast:!0,position:"top-end",timer:8e3,showConfirmButton:!1,showCloseButton:!0,timerProgressBar:!0}),h=function(e){return(0,r.get)(e,"willOpen")&&(e.willOpen=setTimeout(e.willOpen,0)),(0,r.get)(e,"didOpen")&&(e.didOpen=setTimeout(e.didOpen,0)),(0,r.get)(e,"didRender")&&(e.didRender=setTimeout(e.didRender,0)),(0,r.get)(e,"willClose")&&(e.willClose=setTimeout(e.willClose,0)),(0,r.get)(e,"didClose")&&(e.didClose=setTimeout(e.didClose,0)),(0,r.get)(e,"didDestroy")&&(e.didDestroy=setTimeout(e.didDestroy,0)),e},m=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){this.triggerFromSession(),this.listenToEvents()}},{key:"triggerFromSession",value:function(){app.session_notify_config&&c.fire(app.session_notify_config)}},{key:"alertSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.success,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.fire(s({icon:"success",title:t,html:e},n))}},{key:"alertError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:app.notify.unexpected,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.error,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.fire(s({icon:"error",title:t,html:e},n))}},{key:"alertInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.info,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.fire(s({icon:"info",title:t,html:e},n))}},{key:"alertQuestion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.question,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.fire(s({icon:"question",title:t,html:e},n))}},{key:"alertWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.warning,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.fire(s({icon:"warning",title:t,html:e},n))}},{key:"alertLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:app.notify.loading,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.please_wait,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Swal.fire(s({icon:"info",title:t,html:e,showConfirmButton:!1,showCancelButton:!1,allowOutsideClick:!1,timerProgressBar:!0,willOpen:function(){return Swal.showLoading()}},n))}},{key:"alertConfirm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:app.notify.confirm_request,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.fire(s({icon:"question",title:t,html:e,showConfirmButton:!0,showCancelButton:!0,confirmButtonText:app.notify.confirm,cancelButtonText:app.notify.cancel},n))}},{key:"toastSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.fire(s({icon:"success",title:e,html:t},n))}},{key:"toastError",value:function(){var e=arguments.length>
20&&void 0!==arguments[0]?arguments[0]:app.notify.unexpected,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.fire(s({icon:"error",title:e,html:t},n))}},{key:"toastInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.fire(s({icon:"info",title:e,html:t},n))}},{key:"toastQuestion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.fire(s({icon:"question",title:e,html:t},n))}},{key:"toastWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.fire(s({icon:"warning",title:e,html:t},n))}},{key:"toastInvalid",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:app.notify.invalid,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.fire(s({icon:"error",title:e,html:t},n))}},{key:"listenToEvents",value:function(){var e=this;window.addEventListener("popin",function(e){return d.fire(h(e.detail))}),window.addEventListener("popin:success",function(t){return e.alertSuccess(t.detail.html,t.detail.title,h(t.detail.config))}),window.addEventListener("popin:error",function(t){return e.alertError(t.detail.html,t.detail.title,h(t.detail.config))}),window.addEventListener("popin:info",function(t){return e.alertInfo(t.detail.html,t.detail.title,h(t.detail.config))}),window.addEventListener("popin:question",function(t){return e.alertQuestion(t.detail.html,t.detail.title,h(t.detail.config))}),window.addEventListener("popin:warning",function(t){return e.alertWarning(t.detail.html,t.detail.title,h(t.detail.config))}),window.addEventListener("popin:loading",function(t){return e.alertLoading(t.detail.html,t.detail.title,h(t.detail.config))}),window.addEventListener("popin:confirm",function(t){return e.alertConfirm(t.detail.html,t.detail.title,h(t.detail.config)).then(function(e){if(e.isConfirmed)setTimeout(t.detail.onConfirm,0);else{if(!e.isDismissed)return;setTimeout(t.detail.onDismiss,0)}})}),window.addEventListener("toast",function(e){return f.fire(h(e.detail))}),window.addEventListener("toast:success",function(t){return e.toastSuccess(t.detail.title,t.detail.html,h(t.detail.config))}),window.addEventListener("toast:error",function(t){return e.toastError(t.detail.title,t.detail.html,h(t.detail.config))}),window.addEventListener("toast:info",function(t){return e.toastInfo(t.detail.title,t.detail.html,h(t.detail.config))}),window.addEventListener("toast:question",function(t){return e.toastQuestion(t.detail.title,t.detail.html,h(t.detail.config))}),window.addEventListener("toast:warning",function(t){return e.toastWarning(t.detail.title,t.detail.html,h(t.detail.config))}),window.addEventListener("toast:invalid",function(t){return e.toastInvalid(t.detail.title,t.detail.html,h(t.detail.config))})}}],(t=null)&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},1470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+i({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function i(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,u=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sa
vendor: 14,117 bytes, line 2
2d/i],f=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:f,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:f,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:l,monthsShortStrictRegex:u,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(5093))},1488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["Ø£ÙÙ Ù
٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£ÙÙ Ù
٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£ÙÙ Ù
٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù
Ù ÙÙÙ
","ÙÙÙ
ÙØ§ØØ¯",["ÙÙÙ
اÙ","ÙÙÙ
ÙÙ"],"%d Ø£ÙØ§Ù
","%d ÙÙÙ
ÙØ§","%d ÙÙÙ
"],M:["Ø£ÙÙ Ù
Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£ÙÙ Ù
٠عاÙ
","عاÙ
ÙØ§ØØ¯",["عاÙ
اÙ","عاÙ
ÙÙ"],"%d Ø£Ø¹ÙØ§Ù
","%d عاÙ
ÙØ§","%d عاÙ
"]},r=function(e){return function(r,i,a,s){var o=t(r),l=n[e][t(r)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,r)}},i=["جاÙÙÙ","ÙÙÙØ±Ù","Ù
ارس","Ø£ÙØ±ÙÙ","Ù
اÙ","Ø¬ÙØ§Ù","جÙÙÙÙØ©","Ø£ÙØª","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/âM/âYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,n){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù
ÙØ° %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:0,doy:4}})}(n(5093))},1509:function(e,t,n){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},n={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["Ø£ÙÙ Ù
٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£ÙÙ Ù
٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£ÙÙ Ù
٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù
Ù ÙÙÙ
","ÙÙÙ
ÙØ§ØØ¯",["ÙÙÙ
اÙ","ÙÙÙ
ÙÙ"],"%d Ø£ÙØ§Ù
","%d ÙÙÙ
ÙØ§","%d ÙÙÙ
"],M:["Ø£ÙÙ Ù
Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£ÙÙ Ù
٠عاÙ
","عاÙ
ÙØ§ØØ¯",["عاÙ
اÙ","عاÙ
ÙÙ"],"%d Ø£Ø¹ÙØ§Ù
","%d عاÙ
ÙØ§","%d عاÙ
"]},a=function(e){return function(t,n,a,s){var o=r(t),l=i[e][r(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/âM/âYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,n){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù
ÙØ° %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"Ø")},week:{dow:6,doy:12}})}(n(5093))},1541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"䏿_äºæ_䏿_åæ_äºæ_å
æ_䏿_å
«æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå
".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å
".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å
".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"D/M/YYYY",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t?e>=11?e:e+12:"ä¸å"===t||"æä¸"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"忍":r<900?"æ©ä¸":r<1130?"ä¸å":r<1230?"ä¸å":r<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©] LT",nextDay:"[æå¤©] LT",nextWeek:"[ä¸]dddd LT",lastDay:"[æ¨å¤©] LT",lastWeek:"[ä¸]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"é±";default:return e}},relativeTime:{future:"%så
§",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}})}(n(5093))},1545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"à½à¾³à¼à½à¼à½à½à¼à½à½¼_à½à¾³à¼à½à¼à½à½à½²à½¦à¼à½_à½à¾³à¼à½à¼à½à½¦à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½²à¼à½_à½à¾³à¼à½à¼à½£à¾à¼à½_à½à¾³à¼à½à¼à½à¾²à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à½à¼à½_à½à¾³à¼à½à¼à½à½¢à¾à¾±à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à¼à½_à½à¾³à¼à½à¼à½à½
ུà¼à½_à½à¾³à¼à½à¼à½à½
ུà¼à½à½
ིà½à¼à½_à½à¾³à¼à½à¼à½à½
ུà¼à½à½à½²à½¦à¼à½".split("_"),monthsShort:"à½à¾³à¼1_à½à¾³à¼2_à½à¾³à¼3_à½à¾³à¼4_à½à¾³à¼5_à½à¾³à¼6_à½à¾³à¼7_à½à¾³à¼8_à½à¾³à¼9_à½à¾³à¼10_à½à¾³à¼11_à½à¾³à¼12".split("_"),monthsShortRegex:/^(à½à¾³à¼\d{1,2})/,monthsParseExact:!0,weekdays:"à½à½à½ à¼à½à½²à¼à½à¼_à½à½à½ à¼à½à¾³à¼à½à¼_à½à½à½ à¼à½à½²à½à¼à½à½à½¢à¼_à½à½à½ à¼à½£à¾·à½à¼à½à¼_à½à½à½ à¼à½à½´à½¢à¼à½à½´_à½à½à½ à¼à½à¼à½¦à½à½¦à¼_à½à½à½ à¼à½¦à¾¤à½ºà½à¼à½à¼".split("_"),weekdaysShort:"à½à½²à¼à½à¼_à½à¾³à¼à½à¼_à½à½²à½à¼à½à½à½¢à¼_ལྷà½à¼à½à¼_à½à½´à½¢à¼à½à½´_à½à¼à½¦à½à½¦à¼_སྤེà½à¼à½à¼".split("_"),weekdaysMin:"à½à½²_à½à¾³_à½à½²à½_ལྷà½_à½à½´à½¢_སà½à½¦_སྤེà½".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[à½à½²à¼à½¢à½²à½] LT",nextDay:"[སà½à¼à½à½²à½] LT",nextWeek:"[à½à½à½´à½à¼à½à¾²à½à¼à½¢à¾à½ºà½¦à¼à½], LT",lastDay:"[à½à¼à½¦à½] LT",lastWeek:"[à½à½à½´à½à¼à½à¾²à½à¼à½à½à½ à¼à½] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལà¼",past:"%s སà¾à½à¼à½£",s:"ལà½à¼à½¦à½",ss:"%d སà¾à½¢à¼à½à¼",m:"སà¾à½¢à¼à½à¼à½à½
ིà½",mm:"%d སà¾à½¢à¼à½",h:"à½à½´à¼à½à½¼à½à¼à½à½
ིà½",hh:"%d à½à½´à¼à½à½¼à½",d:"à½à½²à½à¼à½à½
ིà½",dd:"%d à½à½²à½à¼",M:"à½à¾³à¼à½à¼à½à½
ིà½",MM:"%d à½à¾³à¼à½",y:"ལོà¼à½à½
ིà½",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/à½à½à½à¼à½à½¼|à½à½¼à½à½¦à¼à½à½¦|à½à½²à½à¼à½à½´à½|à½à½à½¼à½à¼à½à½|à½à½à½à¼à½à½¼/,meridiemHour:function(e,t){return 12===e&&(e=0),"à½à½à½à¼à½à½¼"===t&&e>=4||"à½à½²à½à¼à½à½´à½"===t&&e<5||"à½à½à½¼à½à¼à½à½"===t?e+12:e},meridiem:function(e,t,n){return e<4?"à½à½à½à¼à½à½¼":e<10?"à½à½¼à½à½¦à¼à½à½¦":e<17?"à½à½²à½à¼à½à½´à½":e<20?"à½à½à½¼à½à¼à½à½":"à½à½à½à¼à½à½¼"},week:{dow:0,doy:6}})}(n(5093))},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"䏿_äºæ_䏿_åæ_äºæ_å
æ_䏿_å
«æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå
".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å
".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å
".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t?e>=11?e:e+12:"ä¸å"===t||"æä¸"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"忍":r<900?"æ©ä¸":r<1200?"ä¸å":1200===r?"ä¸å":r<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©]LT",nextDay:"[æå¤©]LT",nextWeek:"[ä¸]ddddLT",lastDay:"[æ¨å¤©]LT",lastWeek:"[ä¸]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"é±";default:return e}},relativeTime:{future:"%så¾",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}})}(n(5093))},1713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"×× ××ר_פ×ר××ר_×רץ_×פר××_×××_××× ×_××××_××××ס×_ספ×××ר_×××§×××ר_× ××××ר_×צ××ר".split("_"),monthsShort:"×× ×׳_פ×ר׳_×רץ_×פר׳_×××_××× ×_××××_×××׳_ספ×׳_××ק׳_× ××׳_×צ×׳".split("_"),weekdays:"ר×ש××_×©× ×_ש××ש×_ר×××¢×_×××ש×_ש×ש×_ש×ת".split("_"),weekdaysShort:"×׳_×׳_×׳_×׳_×׳_×׳_ש׳".split("_"),weekdaysMin:"×_×_×_×_×_×_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [×]MMMM YYYY",LLL:"D [×]MMMM YYYY HH:mm",LLLL:"dddd, D [×]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[×××× ×Ö¾]LT",nextDay:"[××ר ×Ö¾]LT",nextWeek:"dddd [×שע×] LT",lastDay:"[×ת××× ×Ö¾]LT",lastWeek:"[××××] dddd [×××ר×× ×שע×] LT",sameElse:"L"},relativeTime:{future:"××¢×× %s",past:"××¤× × %s",s:"×ספר ×©× ××ת",ss:"%d ×©× ××ת",m:"××§×",mm:"%d ××§×ת",h:"שע×",hh:function(e){return 2===e?"שעת×××":e+" שע×ת"},d:"×××",dd:function(e){return 2===e?"××××××":e+" ××××"},M:"×××ש",MM:function(e){return 2===e?"×××ש×××":e+" ×××ש××"},y:"×©× ×",yy:function(e){return 2===e?"×©× ×ª×××":e%10==0&&10!==e?e+" ×©× ×":e+" ×©× ××"}},meridiemParse:/×××"צ|××¤× ×"צ|×××¨× ×צ×ר×××|××¤× × ×צ×ר×××|××¤× ×ת ××קר|×××קר|×ער×/i,isPM:function(e){return/^(×××"צ|×××¨× ×צ×ר×××|×ער×)$/.test(e)},meridiem:function(e,t,n){return e<5?"××¤× ×ת ××קר":e<10?"×××קר":e<12?n?'××¤× ×"צ':"××¤× × ×צ×ר×××":e<18?n?'×××"צ':"×××¨× ×צ×ר×××":"×ער×"}})}(n(5093))},1734:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["E
2an","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mÃ",MM:"%d mÃonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},1765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ".split("_"),monthsShort:"âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ".split("_"),weekdays:"â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"),weekdaysShort:"â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"),weekdaysMin:"â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[â´°âµâ´·âµ
â´´] LT",nextDay:"[â´°âµâ´½â´° â´´] LT",nextWeek:"dddd [â´´] LT",lastDay:"[â´°âµâ´°âµâµ â´´] LT",lastWeek:"dddd [â´´] LT",sameElse:"L"},relativeTime:{future:"â´·â´°â´·âµ
ⵠⵢⴰⵠ%s",past:"ⵢⴰⵠ%s",s:"âµâµâµâ´½",ss:"%d âµâµâµâ´½",m:"âµâµâµâµâ´º",mm:"%d âµâµâµâµâ´º",h:"âµâ´°âµâ´°",hh:"%d âµâ´°âµâµâ´°âµâµâµ",d:"â´°âµâµ",dd:"%d oâµâµâ´°âµ",M:"â´°âµ¢oâµâµ",MM:"%d âµâµ¢âµ¢âµâµâµ",y:"â´°âµâ´³â´°âµ",yy:"%d âµâµâ´³â´°âµâµ"},week:{dow:6,doy:12}})}(n(5093))},1794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"áááááá á_ááááá áááá_ááá á¢á_ááá ááá_áááá¡á_ááááá¡á_ááááá¡á_ááááá¡á¢á_á¡áá¥á¢ááááá á_áá¥á¢ááááá á_ááááááá á_áááááááá á".split("_"),monthsShort:"ááá_ááá_ááá _ááá _ááá_ááá_ááá_ááá_á¡áá¥_áá¥á¢_ááá_ááá".split("_"),weekdays:{standalone:"áááá á_áá á¨ááááá_á¡ááá¨ááááá_ááá®á¨ááááá_á®á£áá¨ááááá_ááá áá¡áááá_á¨ááááá".split("_"),format:"áááá áá¡_áá á¨ááááá¡_á¡ááá¨ááááá¡_ááá®á¨ááááá¡_á®á£áá¨ááááá¡_ááá áá¡áááá¡_á¨ááááá¡".split("_"),isFormat:/(á¬ááá|á¨ááááá)/},weekdaysShort:"ááá_áá á¨_á¡áá_ááá®_á®á£á_ááá _á¨áá".split("_"),weekdaysMin:"áá_áá _á¡á_áá_á®á£_áá_á¨á".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[áá¦áá¡] LT[-áá]",nextDay:"[á®ááá] LT[-áá]",lastDay:"[áá£á¨áá] LT[-áá]",nextWeek:"[á¨ááááá] dddd LT[-áá]",lastWeek:"[á¬ááá] dddd LT-áá",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(á¬áá|á¬á£á|á¡ááá|á¬áá|áá¦|áá)(á|á)/,function(e,t,n){return"á"===n?t+"á¨á":t+n+"á¨á"})},past:function(e){return/(á¬ááá|á¬á£áá|á¡áááá|áá¦á|ááá)/.test(e)?e.replace(/(á|á)$/,"áá¡ á¬áá"):/á¬ááá/.test(e)?e.replace(/á¬ááá$/,"á¬ááá¡ á¬áá"):e},s:"á áááááááá á¬ááá",ss:"%d á¬ááá",m:"á¬á£áá",mm:"%d á¬á£áá",h:"á¡áááá",hh:"%d á¡áááá",d:"áá¦á",dd:"%d áá¦á",M:"ááá",MM:"%d ááá",y:"á¬ááá",yy:"%d á¬ááá"},dayOfMonthOrdinalParse:/0|1-áá|áá-\d{1,2}|\d{1,2}-á/,ordinal:function(e){return 0===e?e:1===e?e+"-áá":e<20||e<=100&&e%20==0||e%100==0?"áá-"+e:e+"-á"},week:{dow:1,doy:7}})}(n(5093))},1827:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
2d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tÄte_Hui-tanguru_PoutÅ«-te-rangi_Paenga-whÄwhÄ_Haratua_Pipiri_HÅngoingoi_Here-turi-kÅkÄ_Mahuru_Whiringa-Ä-nuku_Whiringa-Ä-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_HÅngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"RÄtapu_Mane_TÅ«rei_Wenerei_TÄite_Paraire_HÄtarei".split("_"),weekdaysShort:"Ta_Ma_TÅ«_We_TÄi_Pa_HÄ".split("_"),weekdaysMin:"Ta_Ma_TÅ«_We_TÄi_Pa_HÄ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hÄkona ruarua",ss:"%d hÄkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1877:function(e,t,n){e.exports=function(e,t,n){"use strict";const r="backdrop",i="fade",a="show",s=`mousedown.bs.${r}`,o={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},l={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class u extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return o}static get DefaultType(){return l}static get NAME(){return r}show(e){if(!this._config.isVisible)return void n.execute(e);this._append();const t=this._getElement();this._config.isAnimated&&n.reflow(t),t.classList.add(a),this._emulateAnimation(()=>{n.execute(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(a),this._emulateAnimation(()=>{this.dispose(),n.execute(e)})):n.execute(e)}dispose(){this._isAppended&&(e.off(this._element,s),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(i),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n.getElement(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,s,()=>{n.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){n.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return u}(n(7956),n(2105),n(4035))},1885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"à°à°¨à°µà°°à°¿_à°«à°¿à°¬à±à°°à°µà°°à°¿_మారà±à°à°¿_à°à°ªà±à°°à°¿à°²à±_à°®à±_à°à±à°¨à±_à°à±à°²à±_à°à°à°¸à±à°à±_à°¸à±à°ªà±à°à±à°à°¬à°°à±_à°
à°à±à°à±à°¬à°°à±_నవà°à°¬à°°à±_à°¡à°¿à°¸à±à°à°¬à°°à±".split("_"),monthsShort:"à°à°¨._à°«à°¿à°¬à±à°°._మారà±à°à°¿_à°à°ªà±à°°à°¿._à°®à±_à°à±à°¨à±_à°à±à°²à±_à°à°._à°¸à±à°ªà±._à°
à°à±à°à±._నవ._à°¡à°¿à°¸à±.".split("_"),monthsParseExact:!0,weekdays:"à°à°¦à°¿à°µà°¾à°°à°_à°¸à±à°®à°µà°¾à°°à°_à°®à°à°à°³à°µà°¾à°°à°_à°¬à±à°§à°µà°¾à°°à°_à°à±à°°à±à°µà°¾à°°à°_à°¶à±à°à±à°°à°µà°¾à°°à°_శనివారà°".split("_"),weekdaysShort:"à°à°¦à°¿_à°¸à±à°®_à°®à°à°à°³_à°¬à±à°§_à°à±à°°à±_à°¶à±à°à±à°°_శని".split("_"),weekdaysMin:"à°_à°¸à±_à°®à°_à°¬à±_à°à±_à°¶à±_à°¶".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[à°¨à±à°¡à±] LT",nextDay:"[à°°à±à°ªà±] LT",nextWeek:"dddd, LT",lastDay:"[నినà±à°¨] LT",lastWeek:"[à°à°¤] dddd, LT",sameElse:"L"},relativeTime:{future:"%s à°²à±",past:"%s à°à±à°°à°¿à°¤à°",s:"à°à±à°¨à±à°¨à°¿ à°à±à°·à°£à°¾à°²à±",
2ss:"%d à°¸à±à°à°¨à±à°²à±",m:"à°à° నిమిషà°",mm:"%d నిమిషాలà±",h:"à°à° à°à°à°",hh:"%d à°à°à°à°²à±",d:"à°à° à°°à±à°à±",dd:"%d à°°à±à°à±à°²à±",M:"à°à° à°¨à±à°²",MM:"%d à°¨à±à°²à°²à±",y:"à°à° à°¸à°à°µà°¤à±à°¸à°°à°",yy:"%d à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±"},dayOfMonthOrdinalParse:/\d{1,2}à°µ/,ordinal:"%dà°µ",meridiemParse:/రాతà±à°°à°¿|à°à°¦à°¯à°|మధà±à°¯à°¾à°¹à±à°¨à°|సాయà°à°¤à±à°°à°/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాతà±à°°à°¿"===t?e<4?e:e+12:"à°à°¦à°¯à°"===t?e:"మధà±à°¯à°¾à°¹à±à°¨à°"===t?e>=10?e:e+12:"సాయà°à°¤à±à°°à°"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాతà±à°°à°¿":e<10?"à°à°¦à°¯à°":e<17?"మధà±à°¯à°¾à°¹à±à°¨à°":e<20?"సాయà°à°¤à±à°°à°":"రాతà±à°°à°¿"},week:{dow:0,doy:6}})}(n(5093))},2105:function(e,t,n){e.exports=function(e,t){"use strict";class n{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(n,r){const i=t.isElement(r)?e.getDataAttribute(r,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...t.isElement(r)?e.getDataAttributes(r):{},..."object"==typeof n?n:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const n=e[r],a=t.isElement(n)?"element":t.toType(n);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}return n}(n(2333),n(4035))},2124:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["थà¥à¤¡à¤¯à¤¾ सà¥
à¤à¤à¤¡à¤¾à¤à¤¨à¥","थà¥à¤¡à¥ सà¥
à¤à¤à¤¡"],ss:[e+" सà¥
à¤à¤à¤¡à¤¾à¤à¤¨à¥",e+" सà¥
à¤à¤à¤¡"],m:["à¤à¤à¤¾ मिणà¤à¤¾à¤¨","à¤à¤ मिनà¥à¤"],mm:[e+" मिणà¤à¤¾à¤à¤¨à¥",e+" मिणà¤à¤¾à¤"],h:["à¤à¤à¤¾ वरान","à¤à¤ वर"],hh:[e+" वराà¤à¤¨à¥",e+" वराà¤"],d:["à¤à¤à¤¾ दिसान","à¤à¤ दà¥à¤¸"],dd:[e+" दिसाà¤à¤¨à¥",e+" दà¥à¤¸"],M:["à¤à¤à¤¾ मà¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨","à¤à¤ मà¥à¤¹à¤¯à¤¨à¥"],MM:[e+" मà¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨à¥",e+" मà¥à¤¹à¤¯à¤¨à¥"],y:["à¤à¤à¤¾ वरà¥à¤¸à¤¾à¤¨","à¤à¤ वरà¥à¤¸"],yy:[e+" वरà¥à¤¸à¤¾à¤à¤¨à¥",e+" वरà¥à¤¸à¤¾à¤"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¥à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¤¯_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°".split("_"),format:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥à¤à¥à¤¯à¤¾_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥à¤à¥à¤¯à¤¾_मारà¥à¤à¤¾à¤à¥à¤¯à¤¾_à¤à¤ªà¥à¤°à¥à¤²à¤¾à¤à¥à¤¯à¤¾_मà¥à¤¯à¤¾à¤à¥à¤¯à¤¾_à¤à¥à¤¨à¤¾à¤à¥à¤¯à¤¾_à¤à¥à¤²à¤¯à¤¾à¤à¥à¤¯à¤¾_à¤à¤à¤¸à¥à¤à¤¾à¤à¥à¤¯à¤¾_सपà¥à¤à¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_à¤à¤à¥à¤à¥à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_डिसà¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"à¤à¤¾à¤¨à¥._फà¥à¤¬à¥à¤°à¥._मारà¥à¤_à¤à¤ªà¥à¤°à¥._मà¥_à¤à¥à¤¨_à¤à¥à¤²._à¤à¤._सपà¥à¤à¥à¤._à¤à¤à¥à¤à¥._नà¥à¤µà¥à¤¹à¥à¤._डिसà¥à¤.".split("_"),monthsParseExact:!0,weekdays:"à¤à¤¯à¤¤à¤¾à¤°_सà¥à¤®à¤¾à¤°_मà¤à¤à¤³à¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_बिरà¥à¤¸à¥à¤¤à¤¾à¤°_सà¥à¤à¥à¤°à¤¾à¤°_शà¥à¤¨à¤µà¤¾à¤°".split("_"),weekdaysShort:"à¤à¤¯à¤¤._सà¥à¤®._मà¤à¤à¤³._बà¥à¤§._बà¥à¤°à¥à¤¸à¥à¤¤._सà¥à¤à¥à¤°._शà¥à¤¨.".split("_"),weekdaysMin:"à¤_सà¥_मà¤_बà¥_बà¥à¤°à¥_सà¥_शà¥".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाà¤à¤¤à¤¾à¤]",LTS:"A h:mm:ss [वाà¤à¤¤à¤¾à¤]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाà¤à¤¤à¤¾à¤]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाà¤à¤¤à¤¾à¤]",llll:"ddd, D MMM YYYY, A h:mm [वाà¤à¤¤à¤¾à¤]"}
2,calendar:{sameDay:"[à¤à¤¯à¤] LT",nextDay:"[फालà¥à¤¯à¤¾à¤] LT",nextWeek:"[फà¥à¤¡à¤²à¥] dddd[,] LT",lastDay:"[à¤à¤¾à¤²] LT",lastWeek:"[फाà¤à¤²à¥] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s à¤à¤¦à¥à¤",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वà¥à¤°)/,ordinal:function(e,t){return"D"===t?e+"वà¥à¤°":e},week:{dow:0,doy:3},meridiemParse:/रातà¥|सà¤à¤¾à¤³à¥à¤|दनपाराà¤|साà¤à¤à¥/,meridiemHour:function(e,t){return 12===e&&(e=0),"रातà¥"===t?e<4?e:e+12:"सà¤à¤¾à¤³à¥à¤"===t?e:"दनपाराà¤"===t?e>12?e:e+12:"साà¤à¤à¥"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रातà¥":e<12?"सà¤à¤¾à¤³à¥à¤":e<16?"दनपाराà¤":e<20?"साà¤à¤à¥":"रातà¥"}})}(n(5093))},2176:()=>{"use strict";let e=()=>{};const t=(t,n=void 0)=>("function"==typeof t&&(t=t()),"object"==typeof t&&(t=JSON.stringify(t)),void 0!==n?window.navigator.clipboard.write([new ClipboardItem({[n]:new Blob([t],{type:n})})]).then(e):window.navigator.clipboard.writeText(t).then(e));function n(e){e.magic("clipboard",()=>t),e.directive("clipboard",(e,{modifiers:n,expression:r},{evaluateLater:i,cleanup:a})=>{const s=n.includes("raw")?e=>e(r):i(r),o=()=>s(t);e.addEventListener("click",o),a(()=>{e.removeEventListener("click",o)})})}n.configure=t=>(t.hasOwnProperty("onCopy")&&"function"==typeof t.onCopy&&(e=t.onCopy),n);const r=n;document.addEventListener("alpine:init",function(){Alpine.plugin(r)})},2264:function(e,t,n){!function(e){"use strict";var t={1:"á",2:"á",3:"á",4:"á",5:"á
",6:"á",7:"á",8:"á",9:"á",0:"á"},n={"á":"1","á":"2","á":"3","á":"4","á
":"5","á":"6","á":"7","á":"8","á":"9","á":"0"};e.defineLocale("my",{months:"áááºááá«áá®_áá±áá±á¬áºáá«áá®_áááº_á§áá¼á®_áá±_áá½ááº_áá°ááá¯ááº_áá¼áá¯ááº_á
ááºáááºáá¬_á¡á±á¬ááºááá¯áá¬_ááá¯áááºáá¬_áá®áááºáá¬".split("_"),monthsShort:"áááº_áá±_áááº_áá¼á®_áá±_áá½ááº_ááá¯ááº_áá¼_á
ááº_á¡á±á¬ááº_ááá¯_áá®".split("_"),weekdays:"ááááºá¹ááá½á±_ááááºá¹áá¬_á¡ááºá¹áá«_áá¯áá¹ááá°á¸_áá¼á¬áááá±á¸_áá±á¬áá¼á¬_á
áá±".split("_"),weekdaysShort:"áá½á±_áá¬_áá«_áá°á¸_áá¼á¬_áá±á¬_áá±".split("_"),weekdaysMin:"áá½á±_áá¬_áá«_áá°á¸_áá¼á¬_áá±á¬_áá±".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ááá±.] LT [áá¾á¬]",nextDay:"[ááááºáá¼ááº] LT [áá¾á¬]",nextWeek:"dddd LT [áá¾á¬]",lastDay:"[ááá±.á] LT [áá¾á¬]",lastWeek:"[áá¼á®á¸áá²á·áá±á¬] dddd LT [áá¾á¬]",sameElse:"L"},relativeTime:{future:"áá¬áááºá· %s áá¾á¬",past:"áá½ááºáá²á·áá±á¬ %s á",s:"á
áá¹áááº.á¡áááºá¸áááº",ss:"%d á
áá¹ááá·áº",m:"áá
áºáááá
áº",mm:"%d áááá
áº",h:"áá
áºáá¬áá®",hh:"%d áá¬áá®",d:"áá
áºáááº",dd:"%d áááº",M:"áá
áºá",MM:"%d á",y:"áá
áºáá¾á
áº",yy:"%d áá¾á
áº"},preparse:function(e){return e.replace(/[ááááá
ááááá]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(5093))},2271:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"минÑÑа":"минÑÑÑ":e+" "+t({ss:n?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:n?"минÑÑа_минÑÑÑ_минÑÑ":"минÑÑÑ_минÑÑÑ_минÑÑ",hh:"ÑаÑ_ÑаÑа_ÑаÑов",dd:"денÑ_днÑ_дней",ww:"неделÑ_недели_неделÑ",MM:"меÑÑÑ_меÑÑÑа_меÑÑÑев",yy:"год_года_леÑ"}[r],+e)}var r=[/^Ñнв/i,/^Ñев/i,/^маÑ/i,/^апÑ/i,/^ма[йÑ]/i,/^иÑн/i,/^иÑл/i,/^авг/i,/^Ñен/i,/^окÑ/i,/^ноÑ/i,/^дек/i];e.defineLocale("ru",{months:{format:"ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),standalone:"ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_")},monthsShort:{format:"Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),standalone:"Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_")},weekdays:{standalone:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа".split("_"),format:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑедÑ_ÑеÑвеÑг_пÑÑниÑÑ_ÑÑббоÑÑ".split("_"),isFormat:/\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ|ÑÑÑ)? ?] ?dddd/},weekdaysShort:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsShortRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsStrictRegex:/^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[Ñй]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i,monthsShortStrictRegex:/^(Ñнв\.|ÑевÑ?\.|маÑ[Ñ.]|апÑ\.|ма[Ñй]|иÑн[ÑÑ.]|иÑл[ÑÑ.]|авг\.|ÑенÑ?\.|ок
2Ñ\.|ноÑб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[СегоднÑ, в] LT",nextDay:"[ÐавÑÑа, в] LT",lastDay:"[ÐÑеÑа, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Ðо] dddd, [в] LT":"[Ð] dddd, [в] LT";switch(this.day()){case 0:return"[Ð ÑледÑÑÑее] dddd, [в] LT";case 1:case 2:case 4:return"[Ð ÑледÑÑÑий] dddd, [в] LT";case 3:case 5:case 6:return"[Ð ÑледÑÑÑÑÑ] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Ðо] dddd, [в] LT":"[Ð] dddd, [в] LT";switch(this.day()){case 0:return"[РпÑоÑлое] dddd, [в] LT";case 1:case 2:case 4:return"[РпÑоÑлÑй] dddd, [в] LT";case 3:case 5:case 6:return"[РпÑоÑлÑÑ] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"ÑеÑез %s",past:"%s назад",s:"неÑколÑко ÑекÑнд",ss:n,m:n,mm:n,h:"ÑаÑ",hh:n,d:"денÑ",dd:n,w:"неделÑ",ww:n,M:"меÑÑÑ",MM:n,y:"год",yy:n},meridiemParse:/ноÑи|ÑÑÑа|днÑ|веÑеÑа/i,isPM:function(e){return/^(днÑ|веÑеÑа)$/.test(e)},meridiem:function(e,t,n){return e<4?"ноÑи":e<12?"ÑÑÑа":e<17?"днÑ":"веÑеÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|Ñ)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-Ñ";default:return e}},week:{dow:1,doy:4}})}(n(5093))},2274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},2297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},2333:function(e){e.exports=function(){"use strict";function e(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function t(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}return{setDataAttribute(e,n,r){e.setAttribute(`data-bs-${t(n)}`,r)},removeDataAttribute(e,n){e.removeAttribute(`data-bs-${t(n)}`)},getDataAttributes(t){if(!t)return{};const n={},r=Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of r){let r=i.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),n[r]=e(t.dataset[i])}return n},getDataAttribute:(n,r)=>e(n.getAttribute(`data-bs-${t(r)}`))}}()}
2,2353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["Ø£ÙÙ Ù
٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£ÙÙ Ù
٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£ÙÙ Ù
٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù
Ù ÙÙÙ
","ÙÙÙ
ÙØ§ØØ¯",["ÙÙÙ
اÙ","ÙÙÙ
ÙÙ"],"%d Ø£ÙØ§Ù
","%d ÙÙÙ
ÙØ§","%d ÙÙÙ
"],M:["Ø£ÙÙ Ù
Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£ÙÙ Ù
٠عاÙ
","عاÙ
ÙØ§ØØ¯",["عاÙ
اÙ","عاÙ
ÙÙ"],"%d Ø£Ø¹ÙØ§Ù
","%d عاÙ
ÙØ§","%d عاÙ
"]},i=function(e){return function(t,i,a,s){var o=n(t),l=r[e][n(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/âM/âYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,n){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù
ÙØ° %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"Ø")},week:{dow:6,doy:12}})}(n(5093))},2453:function(e,t,n){e.exports=function(e,t,n,r,i,a){"use strict";function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const o=s(e),l="dropdown",u=".bs.dropdown",c=".data-api",d="Escape",f="Tab",h="ArrowUp",m="ArrowDown",p=2,g=`hide${u}`,y=`hidden${u}`,_=`show${u}`,v=`shown${u}`,E=`click${u}${c}`,b=`keydown${u}${c}`,T=`keyup${u}${c}`,S="show",w="dropup",L="dropend",A="dropstart",M="dropup-center",D="dropdown-center",k='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',I=`${k}.${S}`,R=".dropdown-menu",C=".navbar",P=".navbar-nav",O=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",x=a.isRTL()?"top-end":"top-start",N=a.isRTL()?"top-start":"top-end",F=a.isRTL()?"bottom-end":"bottom-start",Y=a.isRTL()?"bottom-start":"bottom-end",U=a.isRTL()?"left-start":"right-start",B=a.isRTL()?"right-start":"left-start",j="top",H="bottom",G={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Z={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class $ extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=i.next(this._element,R)[0]||i.prev(this._element,R)[0]||i.findOne(R,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return G}static get DefaultType(){return Z}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(a.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!n.trigger(this._element,_,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(P))for(const e of[].concat(...document.body.children))n.on(e,"mouseover",a.no
2op);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(S),this._element.classList.add(S),n.trigger(this._element,v,e)}}hide(){if(a.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!n.trigger(this._element,g,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",a.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(S),this._element.classList.remove(S),this._element.setAttribute("aria-expanded","false"),r.removeDataAttribute(this._menu,"popper"),n.trigger(this._element,y,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!a.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:a.isElement(this._config.reference)?e=a.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=o.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(S)}_getPlacement(){const e=this._parent;if(e.classList.contains(L))return U;if(e.classList.contains(A))return B;if(e.classList.contains(M))return j;if(e.classList.contains(D))return H;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(w)?t?N:x:t?Y:F}_detectNavbar(){return null!==this._element.closest(C)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(r.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...a.execute(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=i.find(O,this._menu).filter(e=>a.isVisible(e));n.length&&a.getNextActiveElement(n,t,e===m,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=$.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===p||"keyup"===e.type&&e.key!==f)return;const t=i.find(I);for(const n of t){const t=$.getInstance(n);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),i=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!i||"outside"===t._config.autoClose&&i)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===f||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:t._element};"click"===e.type&&(a.clickEvent=e),t._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===d,r=[h,m].includes(e.key);if(!r&&!n)return;if(t&&!n)return;e.preventDefault();const a=this.matches(k)?this:i.prev(this,k)[0]||i.next(this,k)[0]||i.findOne(k,e.delegateTarget.parentNode),s=$.getOrCreateInstance(a);if(r)return e.stopPropagation(),s.show(),void s._selectMenuItem(e);s._isShown()&&(e.stopPropagation(),s.hide(),a.focus())}}return n.on(document,b,k,$.dataApiKeydownHandler),n.on(document,b,R,$.dataApiKeydownHandler),n.on(document,E,$.clearMenus),n.on(document,T,$.clearMenus),n.on(document,E,k,function(e){e.preventDefault(),$.getOrCreateInstance(this).toggle()}),a.defineJQueryPlugin($),$}(n(1216),n(9011),n(7956),n(2333),n(5411),n(4035))},2475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(5093))},2477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_aprÃl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_frÃggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frÃ_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[à dag kl.] LT",nextDay:"[à morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[à gjár kl.] LT",lastWeek:"[sÃðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s sÃðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tÃmi",hh:"%d tÃmar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},2543:function(e,t,n){var r;e=n.nmd(e),function(){var i,a="Expected a function",s="__lodash_hash_undefined__",o="__lodash_placeholder__",l=16,u=32,c=64,d=128,f=256,h=1/0,m=9007199254740991,p=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",f]],_="[object Arguments]",v="[object Array]",E="[object Boolean]",b="[object Date]",T="[object Error]",S="[object Function]",w="[object GeneratorFunction]",L="[object Map]",A="[object Number]",M="[object Object]",D="[object Promise]",k="[object RegExp]",I="[object Set]",R="[object String]",C="[object Symbol]",P="[object WeakMap]",O="[object ArrayBuffer]",x="[object DataView]",N="[object Float32Array]",F="[object Float64Array
vendor: 17,481 bytes, line 2
2]",Y="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",j="[object Uint8Array]",H="[object Uint8ClampedArray]",G="[object Uint16Array]",Z="[object Uint32Array]",$=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,K=RegExp(W.source),X=RegExp(V.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),se=/^\s+/,oe=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Te=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Me="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['â]",Ce="["+we+"]",Pe="["+Ie+"]",Oe="["+Le+"]",xe="\\d+",Ne="["+Ae+"]",Fe="["+Me+"]",Ye="[^"+we+Ie+xe+Ae+Me+De+"]",Ue="\\ud83c[\\udffb-\\udfff]",Be="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+De+"]",Ze="\\u200d",$e="(?:"+Fe+"|"+Ye+")",ze="(?:"+Ge+"|"+Ye+")",qe="(?:['â](?:d|ll|m|re|s|t|ve))?",We="(?:['â](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Oe+"|"+Ue+")"+"?",Ke="["+ke+"]?",Xe=Ke+Ve+("(?:"+Ze+"(?:"+[Be,je,He].join("|")+")"+Ke+Ve+")*"),Qe="(?:"+[Ne,je,He].join("|")+")"+Xe,Je="(?:"+[Be+Oe+"?",Oe,je,He,Ce].join("|")+")",et=RegExp(Re,"g"),tt=RegExp(Oe,"g"),nt=RegExp(Ue+"(?="+Ue+")|"+Je+Xe,"g"),rt=RegExp([Ge+"?"+Fe+"+"+qe+"(?="+[Pe,Ge,"$"].join("|")+")",ze+"+"+We+"(?="+[Pe,Ge+$e,"$"].join("|")+")",Ge+"?"+$e+"+"+qe,Ge+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Qe].join("|"),"g"),it=RegExp("["+Ze+we+Le+ke+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,lt={};lt[N]=lt[F]=lt[Y]=lt[U]=lt[B]=lt[j]=lt[H]=lt[G]=lt[Z]=!0,lt[_]=lt[v]=lt[O]=lt[E]=lt[x]=lt[b]=lt[T]=lt[S]=lt[L]=lt[A]=lt[M]=lt[k]=lt[I]=lt[R]=lt[P]=!1;var ut={};ut[_]=ut[v]=ut[O]=ut[x]=ut[E]=ut[b]=ut[N]=ut[F]=ut[Y]=ut[U]=ut[B]=ut[L]=ut[A]=ut[M]=ut[k]=ut[I]=ut[R]=ut[C]=ut[j]=ut[H]=ut[G]=ut[Z]=!0,ut[T]=ut[S]=ut[P]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,mt="object"==typeof self&&self&&self.Object===Object&&self,pt=ht||mt||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,_t=yt&&yt.exports===gt,vt=_t&&ht.process,Et=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=Et&&Et.isArrayBuffer,Tt=Et&&Et.isDate,St=Et&&Et.isMap,wt=Et&&Et.isRegExp,Lt=Et&&Et.isSet,At=Et&&Et.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var s=e[i];t(r,s,n(s),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}function Pt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function xt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ft(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Yt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=qt("length");function jt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ht(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,$t,n)}function Zt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function $t(e){return e!=e}function zt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:p}function qt(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function Vt(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Kt(e,t){for(var n,r=-1,a=e.length;++r<a;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return xt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}var an=Wt({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),sn=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(e){return"\\"+ct[e]}function ln(e){return it.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function mn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Bt(e)}function pn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var yn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var _n=function e(t){var n,r=(t=null==t?pt:_n.defaults(pt.Object(),t,_n.pick(pt,st))).Array,oe=t.Date,we=t.Error,Le=t.Function,Ae=t.Math,Me=t.Object,De=t.RegExp,ke=t.String,Ie=t.TypeError,Re=r.prototype,Ce=Le.prototype,Pe=Me.prototype,Oe=t["__core-js_shared__"],xe=Ce.toString,Ne=Pe.hasOwnProperty,Fe=0,Ye=(n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Pe.toString,Be=xe.call(Me),je=pt._,He=De("^"+xe.call(Ne).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=_t?t.Buffer:i,Ze=t.Symbol,$e=t.Uint8Array,ze=Ge?Ge.allocUnsafe:i,qe=cn(Me.getPrototypeOf,Me),We=Me.create,Ve=Pe.propertyIsEnumerable,Ke=Re.splice,Xe=Ze?Ze.isConcatSpreadable:i,Qe=Ze?Ze.iterator:i,Je=Ze?Ze.toStringTag:i,nt=function(){try{var e=fa(Me,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==pt.Date.now&&oe.now,ht=t.setTimeout!==pt.setTimeout&&t.setTimeout,mt=Ae.ceil,gt=Ae.floor,yt=Me.getOwnPropertySymbols,vt=Ge?Ge.isBuffer:i,Et=t.isFinite,Bt=Re.join,Wt=cn(Me.keys,Me),vn=Ae.max,En=Ae.min,bn=oe.now,Tn=t.parseInt,Sn=Ae.random,wn=Re.reverse,Ln=fa(t,"DataView"),An=fa(t,"Map"),Mn=fa(t,"Promise"),Dn=fa(t,"Set"),kn=fa(t,"WeakMap"),In=fa(Me,"create"),Rn=kn&&new kn,Cn={},Pn=Ya(Ln),On=Ya(An),xn=Ya(Mn),Nn=Ya(Dn),Fn=Ya(kn),Yn=Ze?Ze.prototype:i,Un=Yn?Yn.valueOf:i,Bn=Yn?Yn.toString:i;function jn(e){if(to(e)&&!Zs(e)&&!(e instanceof $n)){if(e instanceof Zn)return e;if(Ne.call(e,"__wrapped__"))return Ua(e)}return new Zn(e)}var Hn=function(){function e(){}return function(t){if(!eo(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Gn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new qn(e);this.size=t.size}function Xn(e,t){var n=Zs(e),r=!n&&Gs(e),i=!n&&!r&&Ws(e),a=!n&&!r&&!i&&uo(e),s=n||r||i||a,o=s?Xt(e.length,ke):[],l=o.length;for(var u in e)!t&&!Ne.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||va(u,l))||o.push(u);return o}function Qn(e){var t=e.length;return t?e[Vr(0,t-1)]:i}function Jn(e,t){return xa(Ii(e),lr(t,0,e.length))}function er(e){return xa(Ii(e))}function tr(e,t,n){(n!==i&&!Bs(e[t],n)||n===i&&!(t in e))&&sr(e,t,n)}function nr(e,t,n){var r=e[t];Ne.call(e,t)&&Bs(r,n)&&(n!==i||t in e)||sr(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,function(e,i,a){t(r,e,n(e),a)}),r}function ar(e,t){return e&&Ri(t,Co(t),e)}function sr(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,a=t.length,s=r(a),o=null==e;++n<a;)s[n]=o?i:Mo(e,t[n]);return s}function lr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ur(e,t,n,r,a,s){var o,l=1&t,u=2&t,c=4&t;if(n&&(o=a?n(e,r,a,s):n(e)),o!==i)return o;if(!eo(e))return e;var d=Zs(e);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ii(e,o)}else{var f=pa(e),h=f==S||f==w;if(Ws(e))return wi(e,l);if(f==M||f==_||h&&!a){if(o=u||h?{}:ya(e),!l)return u?function(e,t){return Ri(e,ma(e),t)}(e,function(e,t){return e&&Ri(t,Po(t),e)}(o,e)):function(e,t){return Ri(e,ha(e),t)}(e,ar(o,e))}else{if(!ut[f])return a?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case O:return Li(e);case E:case b:return new r(+e);case x:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case F:case Y:case U:case B:case j:case H:case G:case Z:return Ai(e,n);case L:return new r;case A:case R:return new r(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case C:return i=e,Un?Me(Un.call(i)):{}}var i}(e,f,l)}}s||(s=new Kn);var m=s.get(e);if(m)return m;s.set(e,o),so(e)?e.forEach(function(r){o.add(ur(r,t,n,r,e,s))}):no(e)&&e.forEach(function(r,i){o.set(i,ur(r,t,n,i,e,s))});var p=d?i:(c?u?aa:ia:u?Po:Co)(e);return kt(p||e,function(r,i){p&&(r=e[i=r]),nr(o,i,ur(r,t,n,i,e,s))}),o}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Me(e);r--;){var a=n[r],s=t[a],o=e[a];if(o===i&&!(a in e)||!s(o))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ie(a);return Ra(function(){e.apply(i,n)},t)}function fr(e,t,n,r){var i=-1,a=Pt,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;n&&(t=xt(t,Jt(n))),r?(a=Ot,s=!1):t.length>=200&&(a=tn,s=!1,t=new Vn(t));e:for(;++i<o;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,s&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,r)||l.push(c)}return l}jn.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:jn}},jn.prototype=Gn.prototype,jn.prototype.constructor=jn,Zn.prototype=Hn(Gn.prototype),Zn.prototype.constructor=Zn,$n.prototype=Hn(Gn.prototype),$n.prototype.constructor=$n,zn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?i:n}return Ne.call(t,e)?t[e]:i},zn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==i:Ne.call(t,e)},zn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===i?s:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return rr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(An||qn),string:new zn}},Wn.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ca(this,e).get(e)},Wn.prototype.has=function(e){return ca(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ca(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,s),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new qn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!An||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var hr=Oi(br),mr=Oi(Tr,!0);function pr(e,t){var n=!0;return hr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function gr(e,t,n){for(var r=-1,a=e.length;++r<a;){var s=e[r],o=t(s);if(null!=o&&(l===i?o==o&&!lo(o):n(o,l)))var l=o,u=s}return u}function yr(e,t){var n=[];return hr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function _r(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=_a),i||(i=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?_r(o,t-1,n,r,i):Nt(i,o):r||(i[i.length]=o)}return i}var vr=xi(),Er=xi(!0);function br(e,t){return e&&vr(e,t,Co)}function Tr(e,t){return e&&Er(e,t,Co)}function Sr(e,t){return Ct(t,function(t){return Xs(e[t])})}function wr(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&n<r;)e=e[Fa(t[n++])];return n&&n==r?e:i}function Lr(e,t,n){var r=t(e);return Zs(e)?r:Nt(r,n(e))}function Ar(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Me(e)?function(e){var t=Ne.call(e,Je),n=e[Je];try{e[Je]=i;var r=!0}catch(e){}var a=Ue.call(e);r&&(t?e[Je]=n:delete e[Je]);return a}(e):function(e){return Ue.call(e)}(e)}function Mr(e,t){return e>t}function Dr(e,t){return null!=e&&Ne.call(e,t)}function kr(e,t){return null!=e&&t in Me(e)}function Ir(e,t,n){for(var a=n?Ot:Pt,s=e[0].length,o=e.length,l=o,u=r(o),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=xt(f,Jt(t))),c=En(f.length,c),u[l]=!n&&(t||s>=120&&f.length>=120)?new Vn(l&&f):i}f=e[0];var h=-1,m=u[0];e:for(;++h<s&&d.length<c;){var p=f[h],g=t?t(p):p;if(p=n||0!==p?p:0,!(m?tn(m,g):a(d,g,n))){for(l=o;--l;){var y=u[l];
vendor: 1,121 bytes, line 2
2if(!(y?tn(y,g):a(e[l],g,n)))continue e}m&&m.push(g),d.push(p)}}return d}function Rr(e,t,n){var r=null==(e=Da(e,t=Ei(t,e)))?e:e[Fa(Ka(t))];return null==r?i:Mt(r,e,n)}function Cr(e){return to(e)&&Ar(e)==_}function Pr(e,t,n,r,a){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(e,t,n,r,a,s){var o=Zs(e),l=Zs(t),u=o?v:pa(e),c=l?v:pa(t),d=(u=u==_?M:u)==M,f=(c=c==_?M:c)==M,h=u==c;if(h&&Ws(e)){if(!Ws(t))return!1;o=!0,d=!1}if(h&&!d)return s||(s=new Kn),o||uo(e)?na(e,t,n,r,a,s):function(e,t,n,r,i,a,s){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new $e(e),new $e(t)));case E:case b:case A:return Bs(+e,+t);case T:return e.name==t.name&&e.message==t.message;case k:case R:return e==t+"";case L:var o=un;case I:var l=1&r;if(o||(o=fn),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=na(o(e),o(t),r,i,a,s);return s.delete(e),c;case C:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,u,n,r,a,s);if(!(1&n)){var m=d&&Ne.call(e,"__wrapped__"),p=f&&Ne.call(t,"__wrapped__");
vendor: 44,431 bytes, line 2
2if(m||p){var g=m?e.value():e,y=p?t.value():t;return s||(s=new Kn),a(g,y,n,r,s)}}if(!h)return!1;return s||(s=new Kn),function(e,t,n,r,a,s){var o=1&n,l=ia(e),u=l.length,c=ia(t),d=c.length;if(u!=d&&!o)return!1;var f=u;for(;f--;){var h=l[f];if(!(o?h in t:Ne.call(t,h)))return!1}var m=s.get(e),p=s.get(t);if(m&&p)return m==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);var y=o;for(;++f<u;){var _=e[h=l[f]],v=t[h];if(r)var E=o?r(v,_,h,t,e,s):r(_,v,h,e,t,s);if(!(E===i?_===v||a(_,v,n,r,s):E)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var b=e.constructor,T=t.constructor;b==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof T&&T instanceof T||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,a,s)}(e,t,n,r,Pr,a))}function Or(e,t,n,r){var a=n.length,s=a,o=!r;if(null==e)return!s;for(e=Me(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],c=e[u],d=l[1];if(o&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new Kn;if(r)var h=r(c,d,u,e,t,f);if(!(h===i?Pr(d,c,3,r,f):h))return!1}}return!0}function xr(e){return!(!eo(e)||(t=e,Ye&&Ye in t))&&(Xs(e)?He:_e).test(Ya(e));var t}function Nr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Zs(e)?Hr(e[0],e[1]):jr(e):hl(e)}function Fr(e){if(!wa(e))return Wt(e);var t=[];for(var n in Me(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Yr(e){if(!eo(e))return function(e){var t=[];if(null!=e)for(var n in Me(e))t.push(n);return t}(e);var t=wa(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Ur(e,t){return e<t}function Br(e,t){var n=-1,i=zs(e)?r(e.length):[];return hr(e,function(e,r,a){i[++n]=t(e,r,a)}),i}function jr(e){var t=da(e);return 1==t.length&&t[0][2]?Aa(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function Hr(e,t){return ba(e)&&La(t)?Aa(Fa(e),t):function(n){var r=Mo(n,e);return r===i&&r===t?Do(n,e):Pr(t,r,3)}}function Gr(e,t,n,r,a){e!==t&&vr(t,function(s,o){if(a||(a=new Kn),eo(s))!function(e,t,n,r,a,s,o){var l=ka(e,n),u=ka(t,n),c=o.get(u);if(c)return void tr(e,n,c);var d=s?s(l,u,n+"",e,t,o):i,f=d===i;if(f){var h=Zs(u),m=!h&&Ws(u),p=!h&&!m&&uo(u);d=u,h||m||p?Zs(l)?d=l:qs(l)?d=Ii(l):m?(f=!1,d=wi(u,!0)):p?(f=!1,d=Ai(u,!0)):d=[]:io(u)||Gs(u)?(d=l,Gs(l)?d=_o(l):eo(l)&&!Xs(l)||(d=ya(u))):f=!1}f&&(o.set(u,d),a(d,u,r,s,o),o.delete(u));tr(e,n,d)}(e,t,o,n,Gr,r,a);else{var l=r?r(ka(e,o),s,o+"",e,t,a):i;l===i&&(l=s),tr(e,o,l)}},Po)}function Zr(e,t){var n=e.length;if(n)return va(t+=t<0?n:0,n)?e[t]:i}function $r(e,t,n){t=t.length?xt(t,function(e){return Zs(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[il];var r=-1;t=xt(t,Jt(ua()));var i=Br(e,function(e,n,i){var a=xt(t,function(t){return t(e)});return{criteria:a,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,s=i.length,o=n.length;for(;++r<s;){var l=Mi(i[r],a[r]);if(l)return r>=o?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function zr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],o=wr(e,s);n(o,s)&&ei(a,Ei(s,e),o)}return a}function qr(e,t,n,r){var i=r?Zt:Gt,a=-1,s=t.length,o=e;for(e===t&&(t=Ii(t)),n&&(o=xt(e,Jt(n)));++a<s;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(o,c,l,r))>-1;)o!==e&&Ke.call(o,l,1),Ke.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;va(i)?Ke.call(e,i,1):fi(e,i)}}return e}function Vr(e,t){return e+gt(Sn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>m)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ca(Ma(e,t,il),e+"")}function Qr(e){return Qn(jo(e))}function Jr(e,t){var n=jo(e);return xa(n,lr(t,0,n.length))}function ei(e,t,n,r){if(!eo(e))return e;for(var a=-1,s=(t=Ei(t,e)).length,o=s-1,l=e;null!=l&&++a<s;){var u=Fa(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=o){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=eo(d)?d:va(t[a+1])?[]:{})}nr(l,u,c),l=l[u]}return e}var ti=Rn?function(e,t){return Rn.set(e,t),e}:il,ni=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ri(e){return xa(jo(e))}function ii(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=r(a);++i<a;)s[i]=e[i+t];return s}function ai(e,t){var n;return hr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,s=e[a];null!==s&&!lo(s)&&(n?s<=t:s<t)?r=a+1:i=a}return i}return oi(e,t,il,n)}function oi(e,t,n,r){var a=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,l=null===t,u=lo(t),c=t===i;a<s;){var d=gt((a+s)/2),f=n(e[d]),h=f!==i,m=null===f,p=f==f,g=lo(f);if(o)var y=r||p;else y=c?p&&(r||h):l?p&&h&&(r||!m):u?p&&h&&!m&&(r||!g):!m&&!g&&(r?f<=t:f<t);y?a=d+1:s=d}return En(s,4294967294)}function li(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n],o=t?t(s):s;if(!n||!Bs(o,l)){var l=o;a[i++]=0===s?0:s}}return a}function ui(e){return"number"==typeof e?e:lo(e)?p:+e}function ci(e){if("string"==typeof e)return e;if(Zs(e))return xt(e,ci)+"";if(lo(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function di(e,t,n){var r=-1,i=Pt,a=e.length,s=!0,o=[],l=o;if(n)s=!1,i=Ot;else if(a>=200){var u=t?null:Ki(e);if(u)return fn(u);s=!1,i=tn,l=new Vn}else l=t?[]:o;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,s&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),o.push(c)}else i(l,d,n)||(l!==o&&l.push(d),o.push(c))}return o}function fi(e,t){var n=-1,r=(t=Ei(t,e)).length;if(!r)return!0;for(;++n<r;){var i=Fa(t[n]);if("__proto__"===i&&!Ne.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var a=Da(e,t);return null==a||delete a[Fa(Ka(t))]}function hi(e,t,n,r){return ei(e,t,n(wr(e,t)),r)}function mi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ii(e,r?0:a,r?a+1:i):ii(e,r?a+1:0,r?i:a)}function pi(e,t){var n=e;return n instanceof $n&&(n=n.value()),Ft(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function gi(e,t,n){var i=e.length;if(i<2)return i?di(e[0]):[];for(var a=-1,s=r(i);++a<i;)for(var o=e[a],l=-1;++l<i;)l!=a&&(s[a]=fr(s[a]||o,e[l],t,n));return di(_r(s,1),t,n)}function yi(e,t,n){for(var r=-1,a=e.length,s=t.length,o={};++r<a;){var l=r<s?t[r]:i;n(o,e[r],l)}return o}function _i(e){return qs(e)?e:[]}function vi(e){return"function"==typeof e?e:il}function Ei(e,t){return Zs(e)?e:ba(e,t)?[e]:Na(vo(e))}var bi=Xr;function Ti(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ii(e,t,n)}var Si=it||function(e){return pt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Ai(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mi(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,s=lo(e),o=t!==i,l=null===t,u=t==t,c=lo(t);if(!l&&!c&&!s&&e>t||s&&o&&u&&!l&&!c||r&&o&&u||!n&&u||!a)return 1;if(!r&&!s&&!c&&e<t||c&&n&&a&&!r&&!s||l&&n&&a||!o&&a||!u)return-1}return 0}function Di(e,t,n,i){for(var a=-1,s=e.length,o=n.length,l=-1,u=t.length,c=vn(s-o,0),d=r(u+c),f=!i;++l<u;)d[l]=t[l];for(;++a<o;)(f||a<s)&&(d[n[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}function ki(e,t,n,i){for(var a=-1,s=e.length,o=-1,l=n.length,u=-1,c=t.length,d=vn(s-l,0),f=r(d+c),h=!i;++a<d;)f[a]=e[a];for(var m=a;++u<c;)f[m+u]=t[u];for(;++o<l;)(h||a<s)&&(f[m+n[o]]=e[a++]);return f}function Ii(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ri(e,t,n,r){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),a?sr(n,l,u):nr(n,l,u)}return n}function Ci(e,t){return function(n,r){var i=Zs(n)?Dt:ir,a=t?t():{};return i(n,e,ua(r,2),a)}}function Pi(e){return Xr(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:i,o=a>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(a--,s):i,o&&Ea(n[0],n[1],o)&&(s=a<3?i:s,a=1),t=Me(t);++r<a;){var l=n[r];l&&e(t,l,r,s)}return t})}function Oi(e,t){return function(n,r){if(null==n)return n;if(!zs(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Me(n);(t?a--:++a<i)&&!1!==r(s[a],a,s););return n}}function xi(e){return function(t,n,r){for(var i=-1,a=Me(t),s=r(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===n(a[l],l,a))break}return t}}function Ni(e){return function(t){var n=ln(t=vo(t))?pn(t):i,r=n?n[0]:t.charAt(0),a=n?Ti(n,1).join(""):t.slice(1);return r[e]()+a}}function Fi(e){return function(t){return Ft(Qo(Zo(t).replace(et,"")),e,"")}}function Yi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return eo(r)?r:n}}function Ui(e){return function(t,n,r){var a=Me(t);if(!zs(t)){var s=ua(n,3);t=Co(t),n=function(e){return s(a[e],e,a)}}var o=e(t,n,r);return o>-1?a[s?t[o]:o]:i}}function Bi(e){return ra(function(t){var n=t.length,r=n,s=Zn.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new Ie(a);if(s&&!l&&"wrapper"==oa(o))var l=new Zn([],!0)}for(r=l?r:n;++r<n;){var u=oa(o=t[r]),c="wrapper"==u?sa(o):i;l=c&&Ta(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[oa(c[0])].apply(l,c[3]):1==o.length&&Ta(o)?l[u]():l.thru(o)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Zs(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}})}function ji(e,t,n,a,s,o,l,u,c,f){var h=t&d,m=1&t,p=2&t,g=24&t,y=512&t,_=p?i:Yi(e);return function d(){for(var v=arguments.length,E=r(v),b=v;b--;)E[b]=arguments[b];if(g)var T=la(d),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,T);if(a&&(E=Di(E,a,s,g)),o&&(E=ki(E,o,l,g)),v-=S,g&&v<f){var w=dn(E,T);return Wi(e,t,ji,d.placeholder,n,E,w,u,c,f-v)}var L=m?n:this,A=p?L[e]:e;return v=E.length,u?E=function(e,t){var n=e.length,r=En(t.length,n),a=Ii(e);for(;r--;){var s=t[r];e[r]=va(s,n)?a[s]:i}return e}(E,u):y&&v>1&&E.reverse(),h&&c<v&&(E.length=c),this&&this!==pt&&this instanceof d&&(A=_||Yi(A)),A.apply(L,E)}}function Hi(e,t){return function(n,r){return function(e,t,n,r){return br(e,function(e,i,a){t(r,n(e),i,a)}),r}(n,e,t(r),{})}}function Gi(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=ui(n),r=ui(r)),a=e(n,r)}return a}}function Zi(e){return ra(function(t){return t=xt(t,Jt(ua())),Xr(function(n){var r=this;return e(t,function(e){return Mt(e,r,n)})})})}function $i(e,t){var n=(t=t===i?" ":ci(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,mt(e/mn(t)));return ln(t)?Ti(pn(r),0,e).join(""):r.slice(0,e)}function zi(e){return function(t,n,a){return a&&"number"!=typeof a&&Ea(t,n,a)&&(n=a=i),t=mo(t),n===i?(n=t,t=0):n=mo(n),function(e,t,n,i){for(var a=-1,s=vn(mt((t-e)/(n||1)),0),o=r(s);s--;)o[i?s:++a]=e,e+=n;return o}(t,n,a=a===i?t<n?1:-1:mo(a),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yo(t),n=yo(n)),e(t,n)}}function Wi(e,t,n,r,a,s,o,l,d,f){var h=8&t;t|=h?u:c,4&(t&=~(h?c:u))||(t&=-4);var m=[e,t,a,h?s:i,h?o:i,h?i:s,h?i:o,l,d,f],p=n.apply(i,m);return Ta(e)&&Ia(p,m),p.placeholder=r,Pa(p,e,t)}function Vi(e){var t=Ae[e];return function(e,n){if(e=yo(e),(n=null==n?0:En(po(n),292))&&Et(e)){var r=(vo(e)+"e").split("e");return+((r=(vo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=Dn&&1/fn(new Dn([,-0]))[1]==h?function(e){return new Dn(e)}:ul;function Xi(e){return function(t){var n=pa(t);return n==L?un(t):n==I?hn(t):function(e,t){return xt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qi(e,t,n,s,h,m,p,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Ie(a);var _=s?s.length:0;if(_||(t&=-97,s=h=i),p=p===i?p:vn(po(p),0),g=g===i?g:po(g),_-=h?h.length:0,t&c){var v=s,E=h;s=h=i}var b=y?i:sa(e),T=[e,t,n,s,h,v,E,m,p,g];if(b&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Di(u,l,t[4]):l,e[4]=u?dn(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?ki(u,l,t[6]):l,e[6]=u?dn(e[5],o):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:En(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(T,b),e=T[0],t=T[1],n=T[2],s=T[3],h=T[4],!(g=T[9]=T[9]===i?y?0:e.length:vn(T[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,n){var a=Yi(e);return function s(){for(var o=arguments.length,l=r(o),u=o,c=la(s);u--;)l[u]=arguments[u];var d=o<3&&l[0]!==c&&l[o-1]!==c?[]:dn(l,c);return(o-=d.length)<n?Wi(e,t,ji,s.placeholder,i,l,d,i,i,n-o):Mt(this&&this!==pt&&this instanceof s?a:e,this,l)}}(e,t,g):t!=u&&33!=t||h.length?ji.apply(i,T):function(e,t,n,i){var a=1&t,s=Yi(e);return function t(){for(var o=-1,l=arguments.length,u=-1,c=i.length,d=r(c+l),f=this&&this!==pt&&this instanceof t?s:e;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++o];return Mt(f,a?n:this,d)}}(e,t,n,s);else var S=function(e,t,n){var r=1&t,i=Yi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Pa((b?ti:Ia)(S,T),e,t)}function Ji(e,t,n,r){return e===i||Bs(e,Pe[n])&&!Ne.call(r,n)?t:e}function ea(e,t,n,r,a,s){return eo(e)&&eo(t)&&(s.set(t,e),Gr(e,t,i,ea,s),s.delete(t)),e}function ta(e){return io(e)?i:e}function na(e,t,n,r,a,s){var o=1&n,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,m=2&n?new Vn:i;for(s.set(e,t),s.set(t,e);++f<l;){var p=e[f],g=t[f];if(r)var y=o?r(g,p,f,t,e,s):r(p,g,f,e,t,s);if(y!==i){if(y)continue;h=!1;break}if(m){if(!Ut(t,function(e,t){if(!tn(m,t)&&(p===e||a(p,e,n,r,s)))return m.push(t)})){h=!1;break}}else if(p!==g&&!a(p,g,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function ra(e){return Ca(Ma(e,i,$a),e+"")}function ia(e){return Lr(e,Co,ha)}function aa(e){return Lr(e,Po,ma)}var sa=Rn?function(e){return Rn.get(e)}:ul;function oa(e){for(var t=e.name+"",n=Cn[t],r=Ne.call(Cn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function la(e){return(Ne.call(jn,"placeholder")?jn:e).placeholder}function ua(){var e=jn.iteratee||al;return e=e===al?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function da(e){for(var t=Co(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,La(i)]}return t}function fa(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return xr(n)?n:i}var ha=yt?function(e){return null==e?[]:(e=Me(e),Ct(yt(e),function(t){return Ve.call(e,t)}))}:gl,ma=yt?function(e){for(var t=[];e;)Nt(t,ha(e)),e=qe(e);return t}:gl,pa=Ar;function ga(e,t,n){for(var r=-1,i=(t=Ei(t,e)).length,a=!1;++r<i;){var s=Fa(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Js(i)&&va(s,i)&&(Zs(e)||Gs(e))}function ya(e){return"function"!=typeof e.constructor||wa(e)?{}:Hn(qe(e))}function _a(e){return Zs(e)||Gs(e)||!!(Xe&&e&&e[Xe])}function va(e,t){var n=typeof e;return!!(t=t??m)&&("number"==n||"symbol"!=n&&Ee.test(e))&&e>-1&&e%1==0&&e<t}function Ea(e,t,n){if(!eo(n))return!1;var r=typeof t;return!!("number"==r?zs(n)&&va(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function ba(e,t){if(Zs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!lo(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Me(t))}function Ta(e){var t=oa(e),n=jn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=sa(n);return!!r&&e===r[0]}(Ln&&pa(new Ln(new ArrayBuffer(1)))!=x||An&&pa(new An)!=L||Mn&&pa(Mn.resolve())!=D||Dn&&pa(new Dn)!=I||kn&&pa(new kn)!=P)&&(pa=function(e){var t=Ar(e),n=t==M?e.constructor:i,r=n?Ya(n):"";if(r)switch(r){case Pn:return x;case On:return L;case xn:return D;case Nn:return I;case Fn:return P}return t});var Sa=Oe?Xs:yl;function wa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function La(e){return e==e&&!eo(e)}function Aa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Me(n)))}}function Ma(e,t,n){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=vn(i.length-t,0),o=r(s);++a<s;)o[a]=i[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=i[a];return l[t]=n(o),Mt(e,this,l)}}function Da(e,t){return t.length<2?e:wr(e,ii(t,0,-1))}function ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ia=Oa(ti),Ra=ht||function(e,t){return pt.setTimeout(e,t)},Ca=Oa(ni);function Pa(e,t,n){var r=t+"";return Ca(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(y,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function Oa(e){var t=0,n=0;return function(){var r=bn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function xa(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var s=Vr(n,a),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var Na=function(e){var t=Os(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)}),t});function Fa(e){if("string"==typeof e||lo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ya(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ua(e){if(e instanceof $n)return e.clone();var t=new Zn(e.__wrapped__,e.__chain__);return t.__actions__=Ii(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ba=Xr(function(e,t){return qs(e)?fr(e,_r(t,1,qs,!0)):[]}),ja=Xr(function(e,t){var n=Ka(t);return qs(n)&&(n=i),qs(e)?fr(e,_r(t,1,qs,!0),ua(n,2)):[]}),Ha=Xr(function(e,t){var n=Ka(t);return qs(n)&&(n=i),qs(e)?fr(e,_r(t,1,qs,!0),i,n):[]});function Ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:po(n);return i<0&&(i=vn(r+i,0)),Ht(e,ua(t,3),i)}function Za(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=po(n),a=n<0?vn(r+a,0):En(a,r-1)),Ht(e,ua(t,3),a,!0)}function $a(e){return(null==e?0:e.length)?_r(e,1):[]}function za(e){return e&&e.length?e[0]:i}var qa=Xr(function(e){var t=xt(e,_i);return t.length&&t[0]===e[0]?Ir(t):[]}),Wa=Xr(function(e){var t=Ka(e),n=xt(e,_i);return t===Ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ir(n,ua(t,2)):[]}),Va=Xr(function(e){var t=Ka(e),n=xt(e,_i);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,i,t):[]});function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xa=Xr(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Ja=ra(function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,xt(t,function(e){return va(e,n)?+e:e}).sort(Mi)),r});function es(e){return null==e?e:wn.call(e)}var ts=Xr(function(e){return di(_r(e,1,qs,!0))}),ns=Xr(function(e){var t=Ka(e);return qs(t)&&(t=i),di(_r(e,1,qs,!0),ua(t,2))}),rs=Xr(function(e){var t=Ka(e);return t="function"==typeof t?t:i,di(_r(e,1,qs,!0),i,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,function(e){if(qs(e))return t=vn(e.length,t),!0}),Xt(t,function(t){return xt(e,qt(t))})}function as(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:xt(n,function(e){return Mt(t,i,e)})}var ss=Xr(function(e,t){return qs(e)?fr(e,t):[]}),os=Xr(function(e){return gi(Ct(e,qs))}),ls=Xr(function(e){var t=Ka(e);return qs(t)&&(t=i),gi(Ct(e,qs),ua(t,2))}),us=Xr(function(e){var t=Ka(e);return t="function"==typeof t?t:i,gi(Ct(e,qs),i,t)}),cs=Xr(is);var ds=Xr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,as(e,n)});function fs(e){var t=jn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ms=ra(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&va(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[a],thisArg:i}),new Zn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)});var ps=Ci(function(e,t,n){Ne.call(e,n)?++e[n]:sr(e,n,1)});var gs=Ui(Ga),ys=Ui(Za);function _s(e,t){return(Zs(e)?kt:hr)(e,ua(t,3))}function vs(e,t){return(Zs(e)?It:mr)(e,ua(t,3))}var Es=Ci(function(e,t,n){Ne.call(e,n)?e[n].push(t):sr(e,n,[t])});var bs=Xr(function(e,t,n){var i=-1,a="function"==typeof t,s=zs(e)?r(e.length):[];return hr(e,function(e){s[++i]=a?Mt(t,e,n):Rr(e,t,n)}),s}),Ts=Ci(function(e,t,n){sr(e,n,t)});function Ss(e,t){return(Zs(e)?xt:Br)(e,ua(t,3))}var ws=Ci(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ls=Xr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ea(e,t[0],t[1])?t=[]:n>2&&Ea(t[0],t[1],t[2])&&(t=[t[0]]),$r(e,_r(t,1),[])}),As=ct||function(){return pt.Date.now()};function Ms(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qi(e,d,i,i,i,i,t)}function Ds(e,t){var n;if("function"!=typeof t)throw new Ie(a);return e=po(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ks=Xr(function(e,t,n){var r=1;if(n.length){var i=dn(n,la(ks));r|=u}return Qi(e,r,t,n,i)}),Is=Xr(function(e,t,n){var r=3;if(n.length){var i=dn(n,la(Is));r|=u}return Qi(t,r,e,n,i)});function Rs(e,t,n){var r,s,o,l,u,c,d=0,f=!1,h=!1,m=!0;if("function"!=typeof e)throw new Ie(a);function p(t){var n=r,a=s;return r=s=i,d=t,l=e.apply(a,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||h&&e-d>=o}function y(){var e=As();if(g(e))return _(e);u=Ra(y,function(e){var n=t-(e-c);return h?En(n,o-(e-d)):n}(e))}function _(e){return u=i,m&&r?p(e):(r=s=i,l)}function v(){var e=As(),n=g(e);if(r=arguments,s=this,c=e,n){if(u===i)return function(e){return d=e,u=Ra(y,t),f?p(e):l}(c);if(h)return Si(u),u=Ra(y,t),p(c)}return u===i&&(u=Ra(y,t)),l}return t=yo(t)||0,eo(n)&&(f=!!n.leading,o=(h="maxWait"in n)?vn(yo(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m),v.cancel=function(){u!==i&&Si(u),d=0,r=c=s=u=i},v.flush=function(){return u===i?l:_(As())},v}var Cs=Xr(function(e,t){return dr(e,1,t)}),Ps=Xr(function(e,t,n){return dr(e,yo(t)||0,n)});function Os(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Os.Cache||Wn),n}function xs(e){if("function"!=typeof e)throw new Ie(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Os.Cache=Wn;var Ns=bi(function(e,t){var n=(t=1==t.length&&Zs(t[0])?xt(t[0],Jt(ua())):xt(_r(t,1),Jt(ua()))).length;return Xr(function(r){for(var i=-1,a=En(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Mt(e,this,r)})}),Fs=Xr(function(e,t){var n=dn(t,la(Fs));return Qi(e,u,i,t,n)}),Ys=Xr(function(e,t){var n=dn(t,la(Ys));return Qi(e,c,i,t,n)}),Us=ra(function(e,t){return Qi(e,f,i,i,i,t)});function Bs(e,t){return e===t||e!=e&&t!=t}var js=qi(Mr),Hs=qi(function(e,t){return e>=t}),Gs=Cr(function(){return arguments}())?Cr:function(e){return to(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")},Zs=r.isArray,$s=bt?Jt(bt):function(e){return to(e)&&Ar(e)==O};function zs(e){return null!=e&&Js(e.length)&&!Xs(e)}function qs(e){return to(e)&&zs(e)}var Ws=vt||yl,Vs=Tt?Jt(Tt):function(e){return to(e)&&Ar(e)==b};function Ks(e){if(!to(e))return!1;var t=Ar(e);return t==T||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Xs(e){if(!eo(e))return!1;var t=Ar(e);return t==S||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==po(e)}function Js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function to(e){return null!=e&&"object"==typeof e}var no=St?Jt(St):function(e){return to(e)&&pa(e)==L};function ro(e){return"number"==typeof e||to(e)&&Ar(e)==A}function io(e){if(!to(e)||Ar(e)!=M)return!1;var t=qe(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Be}var ao=wt?Jt(wt):function(e){return to(e)&&Ar(e)==k};var so=Lt?Jt(Lt):function(e){return to(e)&&pa(e)==I};function oo(e){return"string"==typeof e||!Zs(e)&&to(e)&&Ar(e)==R}function lo(e){return"symbol"==typeof e||to(e)&&Ar(e)==C}var uo=At?Jt(At):function(e){return to(e)&&Js(e.length)&&!!lt[Ar(e)]};var co=qi(Ur),fo=qi(function(e,t){return e<=t});function ho(e){if(!e)return[];if(zs(e))return oo(e)?pn(e):Ii(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=pa(e);return(t==L?un:t==I?fn:jo)(e)}function mo(e){return e?(e=yo(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function po(e){var t=mo(e),n=t%1;return t==t?n?t-n:t:0}function go(e){return e?lr(po(e),0,g):0}function yo(e){if("number"==typeof e)return e;if(lo(e))return p;if(eo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||ve.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?p:+e}function _o(e){return Ri(e,Po(e))}function vo(e){return null==e?"":ci(e)}var Eo=Pi(function(e,t){if(wa(t)||zs(t))Ri(t,Co(t),e);else for(var n in t)Ne.call(t,n)&&nr(e,n,t[n])}),bo=Pi(function(e,t){Ri(t,Po(t),e)}),To=Pi(function(e,t,n,r){Ri(t,Po(t),e,r)}),So=Pi(function(e,t,n,r){Ri(t,Co(t),e,r)}),wo=ra(or);var Lo=Xr(function(e,t){e=Me(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&Ea(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],o=Po(s),l=-1,u=o.length;++l<u;){var c=o[l],d=e[c];(d===i||Bs(d,Pe[c])&&!Ne.call(e,c))&&(e[c]=s[c])}return e}),Ao=Xr(function(e){return e.push(i,ea),Mt(xo,i,e)});function Mo(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Do(e,t){return null!=e&&ga(e,t,kr)}var ko=Hi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n},tl(il)),Io=Hi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]},ua),Ro=Xr(Rr);function Co(e){return zs(e)?Xn(e):Fr(e)}function Po(e){return zs(e)?Xn(e,!0):Yr(e)}var Oo=Pi(function(e,t,n){Gr(e,t,n)}),xo=Pi(function(e,t,n,r){Gr(e,t,n,r)}),No=ra(function(e,t){var n={};if(null==e)return n;var r=!1;t=xt(t,function(t){return t=Ei(t,e),r||(r=t.length>1),t}),Ri(e,aa(e),n),r&&(n=ur(n,7,ta));for(var i=t.length;i--;)fi(n,t[i]);return n});var Fo=ra(function(e,t){return null==e?{}:function(e,t){return zr(e,t,function(t,n){return Do(e,n)})}(e,t)});function Yo(e,t){if(null==e)return{};var n=xt(aa(e),function(e){return[e]});return t=ua(t),zr(e,n,function(e,n){return t(e,n[0])})}var Uo=Xi(Co),Bo=Xi(Po);function jo(e){return null==e?[]:en(e,Co(e))}var Ho=Fi(function(e,t,n){return t=t.toLowerCase(),e+(n?Go(t):t)});function Go(e){return Xo(vo(e).toLowerCase())}function Zo(e){return(e=vo(e))&&e.replace(be,an).replace(tt,"")}var $o=Fi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),zo=Fi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qo=Ni("toLowerCase");var Wo=Fi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Vo=Fi(function(e,t,n){return e+(n?" ":"")+Xo(t)});var Ko=Fi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Xo=Ni("toUpperCase");function Qo(e,t,n){return e=vo(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Jo=Xr(function(e,t){try{return Mt(e,i,t)}catch(e){return Ks(e)?e:new we(e)}}),el=ra(function(e,t){return kt(t,function(t){t=Fa(t),sr(e,t,ks(e[t],e))}),e});function tl(e){return function(){return e}}var nl=Bi(),rl=Bi(!0);function il(e){return e}function al(e){return Nr("function"==typeof e?e:ur(e,1))}var sl=Xr(function(e,t){return function(n){return Rr(n,e,t)}}),ol=Xr(function(e,t){return function(n){return Rr(e,n,t)}});function ll(e,t,n){var r=Co(t),i=Sr(t,r);null!=n||eo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Co(t)));var a=!(eo(n)&&"chain"in n&&!n.chain),s=Xs(e);return kt(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ii(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})}),e}function ul(){}var cl=Zi(xt),dl=Zi(Rt),fl=Zi(Ut);function hl(e){return ba(e)?qt(Fa(e)):function(e){return function(t){return wr(t,e)}}(e)}var ml=zi(),pl=zi(!0);function gl(){return[]}function yl(){return!1}var _l=Gi(function(e,t){return e+t},0),vl=Vi("ceil"),El=Gi(function(e,t){return e/t},1),bl=Vi("floor");var Tl,Sl=Gi(function(e,t){return e*t},1),wl=Vi("round"),Ll=Gi(function(e,t){return e-t},0);return jn.after=function(e,t){if("function"!=typeof t)throw new Ie(a);return e=po(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Ms,jn.assign=Eo,jn.assignIn=bo,jn.assignInWith=To,jn.assignWith=So,jn.at=wo,jn.before=Ds,jn.bind=ks,jn.bindAll=el,jn.bindKey=Is,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Zs(e)?e:[e]},jn.chain=fs,jn.chunk=function(e,t,n){t=(n?Ea(e,t,n):t===i)?1:vn(po(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,o=0,l=r(mt(a/t));s<a;)l[o++]=ii(e,s,s+=t);return l},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Nt(Zs(n)?Ii(n):[n],_r(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?xt(e,function(e){if("function"!=typeof e[1])throw new Ie(a);return[n(e[0]),e[1]]}):[],Xr(function(n){for(var r=-1;++r<t;){var i=e[r];if(Mt(i[0],this,n))return Mt(i[1],this,n)}})},jn.conforms=function(e){return function(e){var t=Co(e);return function(n){return cr(n,e,t)}}(ur(e,1))},jn.constant=tl,jn.countBy=ps,jn.create=function(e,t){var n=Hn(e);return null==t?n:ar(n,t)},jn.curry=function e(t,n,r){var a=Qi(t,8,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},jn.curryRight=function e(t,n,r){var a=Qi(t,l,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},jn.debounce=Rs,jn.defaults=Lo,jn.defaultsDeep=Ao,jn.defer=Cs,jn.delay=Ps,jn.difference=Ba,jn.differenceBy=ja,jn.differenceWith=Ha,jn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===i?1:po(t))<0?0:t,r):[]},jn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===i?1:po(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0):[]},jn.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Ea(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=po(n))<0&&(n=-n>a?0:a+n),(r=r===i||r>a?a:po(r))<0&&(r+=a),r=n>r?0:go(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},jn.filter=function(e,t){return(Zs(e)?Ct:yr)(e,ua(t,3))},jn.flatMap=function(e,t){return _r(Ss(e,t),1)},jn.flatMapDeep=function(e,t){return _r(Ss(e,t),h)},jn.flatMapDepth=function(e,t,n){return n=n===i?1:po(n),_r(Ss(e,t),n)},jn.flatten=$a,jn.flattenDeep=function(e){return(null==e?0:e.length)?_r(e,h):[]},jn.flattenDepth=function(e,t){return(null==e?0:e.length)?_r(e,t=t===i?1:po(t)):[]},jn.flip=function(e){return Qi(e,512)},jn.flow=nl,jn.flowRight=rl,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];sr(r,i[0],i[1])}return r},jn.functions=function(e){return null==e?[]:Sr(e,Co(e))},jn.functionsIn=function(e){return null==e?[]:Sr(e,Po(e))},jn.groupBy=Es,jn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},jn.intersection=qa,jn.intersectionBy=Wa,jn.intersectionWith=Va,jn.invert=ko,jn.invertBy=Io,jn.invokeMap=bs,jn.iteratee=al,jn.keyBy=Ts,jn.keys=Co,jn.keysIn=Po,jn.map=Ss,jn.mapKeys=function(e,t){var n={};return t=ua(t,3),br(e,function(e,r,i){sr(n,t(e,r,i),e)}),n},jn.mapValues=function(e,t){var n={};return t=ua(t,3),br(e,function(e,r,i){sr(n,r,t(e,r,i))}),n},jn.matches=function(e){return jr(ur(e,1))},jn.matchesProperty=function(e,t){return Hr(e,ur(t,1))},jn.memoize=Os,jn.merge=Oo,jn.mergeWith=xo,jn.method=sl,jn.methodOf=ol,jn.mixin=ll,jn.negate=xs,jn.nthArg=function(e){return e=po(e),Xr(function(t){return Zr(t,e)})},jn.omit=No,jn.omitBy=function(e,t){return Yo(e,xs(ua(t)))},jn.once=function(e){return Ds(2,e)},jn.orderBy=function(e,t,n,r){return null==e?[]:(Zs(t)||(t=null==t?[]:[t]),Zs(n=r?i:n)||(n=null==n?[]:[n]),$r(e,t,n))},jn.over=cl,jn.overArgs=Ns,jn.overEvery=dl,jn.overSome=fl,jn.partial=Fs,jn.partialRight=Ys,jn.partition=ws,jn.pick=Fo,jn.pickBy=Yo,jn.property=hl,jn.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},jn.pull=Xa,jn.pullAll=Qa,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ua(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},jn.pullAt=Ja,jn.range=ml,jn.rangeRight=pl,jn.rearg=Us,jn.reject=function(e,t){return(Zs(e)?Ct:yr)(e,xs(ua(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ua(t,3);++r<a;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Wr(e,i),n},jn.rest=function(e,t){if("function"!=typeof e)throw new Ie(a);return Xr(e,t=t===i?t:po(t))},jn.reverse=es,jn.sampleSize=function(e,t,n){return t=(n?Ea(e,t,n):t===i)?1:po(t),(Zs(e)?Jn:Jr)(e,t)},jn.set=function(e,t,n){return null==e?e:ei(e,t,n)},jn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ei(e,t,n,r)},jn.shuffle=function(e){return(Zs(e)?er:ri)(e)},jn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Ea(e,t,n)?(t=0,n=r):(t=null==t?0:po(t),n=n===i?r:po(n)),ii(e,t,n)):[]},jn.sortBy=Ls,jn.sortedUniq=function(e){return e&&e.length?li(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?li(e,ua(t,2)):[]},jn.split=function(e,t,n){return n&&"number"!=typeof n&&Ea(e,t,n)&&(t=n=i),(n=n===i?g:n>>>0)?(e=vo(e))&&("string"==typeof t||null!=t&&!ao(t))&&!(t=ci(t))&&ln(e)?Ti(pn(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Ie(a);return t=null==t?0:vn(po(t),0),Xr(function(n){var r=n[t],i=Ti(n,0,t);return r&&Nt(i,r),Mt(e,this,i)})},jn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:po(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:po(t)))<0?0:t,r):[]},jn.takeRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?mi(e,ua(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ie(a);return eo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rs(e,t,{leading:r,maxWait:t,trailing:i})},jn.thru=hs,jn.toArray=ho,jn.toPairs=Uo,jn.toPairsIn=Bo,jn.toPath=function(e){return Zs(e)?xt(e,Fa):lo(e)?[e]:Ii(Na(vo(e)))},jn.toPlainObject=_o,jn.transform=function(e,t,n){var r=Zs(e),i=r||Ws(e)||uo(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:eo(e)&&Xs(a)?Hn(qe(e)):{}}return(i?kt:br)(e,function(e,r,i){return t(n,e,r,i)}),n},jn.unary=function(e){return Ms(e,1)},jn.union=ts,jn.unionBy=ns,jn.unionWith=rs,jn.uniq=function(e){return e&&e.length?di(e):[]},jn.uniqBy=function(e,t){return e&&e.length?di(e,ua(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?di(e,i,t):[]},jn.unset=function(e,t){return null==e||fi(e,t)},jn.unzip=is,jn.unzipWith=as,jn.update=function(e,t,n){return null==e?e:hi(e,t,vi(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,vi(n),r)},jn.values=jo,jn.valuesIn=function(e){return null==e?[]:en(e,Po(e))},jn.without=ss,jn.words=Qo,jn.wrap=function(e,t){return Fs(vi(t),e)},jn.xor=os,jn.xorBy=ls,jn.xorWith=us,jn.zip=cs,jn.zipObject=function(e,t){return yi(e||[],t||[],nr)},jn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ei)},jn.zipWith=ds,jn.entries=Uo,jn.entriesIn=Bo,jn.extend=bo,jn.extendWith=To,ll(jn,jn),jn.add=_l,jn.attempt=Jo,jn.camelCase=Ho,jn.capitalize=Go,jn.ceil=vl,jn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=yo(n))==n?n:0),t!==i&&(t=(t=yo(t))==t?t:0),lr(yo(e),t,n)},jn.clone=function(e){return ur(e,4)},jn.cloneDeep=function(e){return ur(e,5)},jn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:i)},jn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:i)},jn.conformsTo=function(e,t){return null==t||cr(e,t,Co(t))},jn.deburr=Zo,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=El,jn.endsWith=function(e,t,n){e=vo(e),t=ci(t);var r=e.length,a=n=n===i?r:lr(po(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},jn.eq=Bs,jn.escape=function(e){return(e=vo(e))&&X.test(e)?e.replace(V,sn):e},jn.escapeRegExp=function(e){return(e=vo(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},jn.every=function(e,t,n){var r=Zs(e)?Rt:pr;return n&&Ea(e,t,n)&&(t=i),r(e,ua(t,3))},jn.find=gs,jn.findIndex=Ga,jn.findKey=function(e,t){return jt(e,ua(t,3),br)},jn.findLast=ys,jn.findLastIndex=Za,jn.findLastKey=function(e,t){return jt(e,ua(t,3),Tr)},jn.floor=bl,jn.forEach=_s,jn.forEachRight=vs,jn.forIn=function(e,t){return null==e?e:vr(e,ua(t,3),Po)},jn.forInRight=function(e,t){return null==e?e:Er(e,ua(t,3),Po)},jn.forOwn=function(e,t){return e&&br(e,ua(t,3))},jn.forOwnRight=function(e,t){return e&&Tr(e,ua(t,3))},jn.get=Mo,jn.gt=js,jn.gte=Hs,jn.has=function(e,t){return null!=e&&ga(e,t,Dr)},jn.hasIn=Do,jn.head=za,jn.identity=il,jn.includes=function(e,t,n,r){e=zs(e)?e:jo(e),n=n&&!r?po(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),oo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:po(n);return i<0&&(i=vn(r+i,0)),Gt(e,t,i)},jn.inRange=function(e,t,n){return t=mo(t),n===i?(n=t,t=0):n=mo(n),function(e,t,n){return e>=En(t,n)&&e<vn(t,n)}(e=yo(e),t,n)},jn.invoke=Ro,jn.isArguments=Gs,jn.isArray=Zs,jn.isArrayBuffer=$s,jn.isArrayLike=zs,jn.isArrayLikeObject=qs,jn.isBoolean=function(e){return!0===e||!1===e||to(e)&&Ar(e)==E},jn.isBuffer=Ws,jn.isDate=Vs,jn.isElement=function(e){return to(e)&&1===e.nodeType&&!io(e)},jn.isEmpty=function(e){if(null==e)return!0;if(zs(e)&&(Zs(e)||"string"==typeof e||"function"==typeof e.splice||Ws(e)||uo(e)||Gs(e)))return!e.length;var t=pa(e);if(t==L||t==I)return!e.size;if(wa(e))return!Fr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Pr(e,t)},jn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Pr(e,t,i,n):!!r},jn.isError=Ks,jn.isFinite=function(e){return"number"==typeof e&&Et(e)},jn.isFunction=Xs,jn.isInteger=Qs,jn.isLength=Js,jn.isMap=no,jn.isMatch=function(e,t){return e===t||Or(e,t,da(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Or(e,t,da(t),n)},jn.isNaN=function(e){return ro(e)&&e!=+e},jn.isNative=function(e){if(Sa(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=ro,jn.isObject=eo,jn.isObjectLike=to,jn.isPlainObject=io,jn.isRegExp=ao,jn.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=m},jn.isSet=so,jn.isString=oo,jn.isSymbol=lo,jn.isTypedArray=uo,jn.isUndefined=function(e){return e===i},jn.isWeakMap=function(e){return to(e)&&pa(e)==P},jn.isWeakSet=function(e){return to(e)&&"[object WeakSet]"==Ar(e)},jn.join=function(e,t){return null==e?"":Bt.call(e,t)},jn.kebabCase=$o,jn.last=Ka,jn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=po(n))<0?vn(r+a,0):En(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ht(e,$t,a,!0)},jn.lowerCase=zo,jn.lowerFirst=qo,jn.lt=co,jn.lte=fo,jn.max=function(e){return e&&e.length?gr(e,il,Mr):i},jn.maxBy=function(e,t){return e&&e.length?gr(e,ua(t,2),Mr):i},jn.mean=function(e){return zt(e,il)},jn.meanBy=function(e,t){return zt(e,ua(t,2))},jn.min=function(e){return e&&e.length?gr(e,il,Ur):i},jn.minBy=function(e,t){return e&&e.length?gr(e,ua(t,2),Ur):i},jn.stubArray=gl,jn.stubFalse=yl,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Sl,jn.nth=function(e,t){return e&&e.length?Zr(e,po(t)):i},jn.noConflict=function(){return pt._===this&&(pt._=je),this},jn.noop=ul,jn.now=As,jn.pad=function(e,t,n){e=vo(e);var r=(t=po(t))?mn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return $i(gt(i),n)+e+$i(mt(i),n)},jn.padEnd=function(e,t,n){e=vo(e);var r=(t=po(t))?mn(e):0;return t&&r<t?e+$i(t-r,n):e},jn.padStart=function(e,t,n){e=vo(e);var r=(t=po(t))?mn(e):0;return t&&r<t?$i(t-r,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Tn(vo(e).replace(se,""),t||0)},jn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Ea(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=mo(e),t===i?(t=e,e=0):t=mo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Sn();return En(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Vr(e,t)},jn.reduce=function(e,t,n){var r=Zs(e)?Ft:Vt,i=arguments.length<3;return r(e,ua(t,4),n,i,hr)},jn.reduceRight=function(e,t,n){var r=Zs(e)?Yt:Vt,i=arguments.length<3;return r(e,ua(t,4),n,i,mr)},jn.repeat=function(e,t,n){return t=(n?Ea(e,t,n):t===i)?1:po(t),Kr(vo(e),t)},jn.replace=function(){var e=arguments,t=vo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,a=(t=Ei(t,e)).length;for(a||(a=1,e=i);++r<a;){var s=null==e?i:e[Fa(t[r])];s===i&&(r=a,s=n),e=Xs(s)?s.call(e):s}return e},jn.round=wl,jn.runInContext=e,jn.sample=function(e){return(Zs(e)?Qn:Qr)(e)},jn.size=function(e){if(null==e)return 0;if(zs(e))return oo(e)?mn(e):e.length;var t=pa(e);return t==L||t==I?e.size:Fr(e).length},jn.snakeCase=Wo,jn.some=function(e,t,n){var r=Zs(e)?Ut:ai;return n&&Ea(e,t,n)&&(t=i),r(e,ua(t,3))},jn.sortedIndex=function(e,t){return si(e,t)},jn.sortedIndexBy=function(e,t,n){return oi(e,t,ua(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&Bs(e[r],t))return r}return-1},jn.sortedLastIndex=function(e,t){return si(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return oi(e,t,ua(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},jn.startCase=Vo,jn.startsWith=function(e,t,n){return e=vo(e),n=null==n?0:lr(po(n),0,e.length),t=ci(t),e.slice(n,n+t.length)==t},jn.subtract=Ll,jn.sum=function(e){return e&&e.length?Kt(e,il):0},jn.sumBy=function(e,t){return e&&e.length?Kt(e,ua(t,2)):0},jn.template=function(e,t,n){var r=jn.templateSettings;n&&Ea(e,t,n)&&(t=i),e=vo(e),t=So({},t,r,Ji);var a=So({},t.imports,r.imports,Ji),s=Co(a),o=en(a,s);kt(s,function(e){if(fe.test(e))throw new we("Invalid `imports` option passed into `_.template`")});var l,u,c=0,d=t.interpolate||Te,f="__p += '",h=De((t.escape||Te).source+"|"+d.source+"|"+(d===ee?me:Te).source+"|"+(t.evaluate||Te).source+"|$","g"),m="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(h,function(t,n,r,i,a,s){return r||(r=i),f+=e.slice(c,s).replace(Se,on),n&&(l=!0,f+="' +\n__e("+n+") +\n'"),a&&(u=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t}),f+="';\n";var p=Ne.call(t,"variable")&&t.variable;if(p){if(fe.test(p))throw new we("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(u?f.replace($,""):f).replace(z,"$1").replace(q,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
2\n")+f+"return __p\n}";var g=Jo(function(){return Le(s,m+"return "+f).apply(i,o)});if(g.source=f,Ks(g))throw g;return g},jn.times=function(e,t){if((e=po(e))<1||e>m)return[];var n=g,r=En(e,g);t=ua(t),e-=g;for(var i=Xt(r,t);++n<e;)t(n);return i},jn.toFinite=mo,jn.toInteger=po,jn.toLength=go,jn.toLower=function(e){return vo(e).toLowerCase()},jn.toNumber=yo,jn.toSafeInteger=function(e){return e?lr(po(e),-9007199254740991,m):0===e?e:0},jn.toString=vo,jn.toUpper=function(e){return vo(e).toUpperCase()},jn.trim=function(e,t,n){if((e=vo(e))&&(n||t===i))return Qt(e);if(!e||!(t=ci(t)))return e;var r=pn(e),a=pn(t);return Ti(r,nn(r,a),rn(r,a)+1).join("")},jn.trimEnd=function(e,t,n){if((e=vo(e))&&(n||t===i))return e.slice(0,gn(e)+1);if(!e||!(t=ci(t)))return e;var r=pn(e);return Ti(r,0,rn(r,pn(t))+1).join("")},jn.trimStart=function(e,t,n){if((e=vo(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=ci(t)))return e;var r=pn(e);return Ti(r,nn(r,pn(t))).join("")},jn.truncate=function(e,t){var n=30,r="...";if(eo(t)){var a="separator"in t?t.separator:a;n="length"in t?po(t.length):n,r="omission"in t?ci(t.omission):r}var s=(e=vo(e)).length;if(ln(e)){var o=pn(e);s=o.length}if(n>=s)return e;var l=n-mn(r);if(l<1)return r;var u=o?Ti(o,0,l).join(""):e.slice(0,l);if(a===i)return u+r;if(o&&(l+=u.length-l),ao(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=De(a.source,vo(pe.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(ci(a),l)!=l){var h=u.lastIndexOf(a);h>-1&&(u=u.slice(0,h))}return u+r},jn.unescape=function(e){return(e=vo(e))&&K.test(e)?e.replace(W,yn):e},jn.uniqueId=function(e){var t=++Fe;return vo(e)+t},jn.upperCase=Ko,jn.upperFirst=Xo,jn.each=_s,jn.eachRight=vs,jn.first=za,ll(jn,(Tl={},br(jn,function(e,t){Ne.call(jn.prototype,t)||(Tl[t]=e)}),Tl),{chain:!1}),jn.VERSION="4.18.1",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){jn[e].placeholder=jn}),kt(["drop","take"],function(e,t){$n.prototype[e]=function(n){n=n===i?1:vn(po(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=En(n,r.__takeCount__):r.__views__.push({size:En(n,g),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),kt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),kt(["head","last"],function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}}),kt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}}),$n.prototype.compact=function(){return this.filter(il)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Xr(function(e,t){return"function"==typeof e?new $n(this):this.map(function(n){return Rr(n,e,t)})}),$n.prototype.reject=function(e){return this.filter(xs(ua(e)))},$n.prototype.slice=function(e,t){e=po(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=po(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(g)},br($n.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=jn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);a&&(jn.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,l=t instanceof $n,u=o[0],c=l||Zs(t),d=function(e){var t=a.apply(jn,Nt([e],o));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,m=s&&!f,p=l&&!h;if(!s&&c){t=p?t:new $n(this);var g=e.apply(t,o);return g.__actions__.push({func:hs,args:[d],thisArg:i}),new Zn(g,f)}return m&&p?e.apply(this,o):(g=this.thru(d),m?r?g.value()[0]:g.value():g)})}),kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Zs(i)?i:[],e)}return this[n](function(n){return t.apply(Zs(n)?n:[],e)})}}),br($n.prototype,function(e,t){var n=jn[t];if(n){var r=n.name+"";Ne.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:t,func:n})}}),Cn[ji(i,2).name]=[{name:"wrapper",func:i}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Ii(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ii(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ii(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Zs(e),r=t
vendor: 1,303 bytes, line 2
2<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],s=a.size;switch(a.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=En(t,e+s);break;case"takeRight":e=vn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=a.start,o=a.end,l=o-s,u=r?o:s-1,c=this.__iteratees__,d=c.length,f=0,h=En(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return pi(e,this.__actions__);var m=[];e:for(;l--&&f<h;){for(var p=-1,g=e[u+=t];++p<d;){var y=c[p],_=y.iteratee,v=y.type,E=_(g);if(2==v)g=E;else if(!E){if(1==v)continue e;break e}}m[f++]=g}return m},jn.prototype.at=ms,jn.prototype.chain=function(){return fs(this)},jn.prototype.commit=function(){return new Zn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===i&&(this.__values__=ho(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=Ua(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:hs,args:[es],thisArg:i}),new Zn(t,this.__chain__)}
2return this.thru(es)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Qe&&(jn.prototype[Qe]=function(){return this}),jn}();pt._=_n,(r=function(){return _n}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},2572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},2648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"䏿_äºæ_䏿_åæ_äºæ_å
æ_䏿_å
«æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå
".split("_"),weekdaysShort:"卿¥_å¨ä¸_å¨äº_å¨ä¸_å¨å_å¨äº_å¨å
".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å
".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥Ahç¹mmå",LLLL:"YYYYå¹´MæDæ¥ddddAhç¹mmå",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t||"æä¸"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"忍":r<900?"æ©ä¸":r<1130?"ä¸å":r<1230?"ä¸å":r<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©]LT",nextDay:"[æå¤©]LT",nextWeek:function(e){return e.week()!==this.week()?"[ä¸]dddLT":"[æ¬]dddLT"},lastDay:"[æ¨å¤©]LT",lastWeek:function(e){return this.week()!==e.week()?"[ä¸]dddLT":"[æ¬]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|å¨)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"å¨";default:return e}},relativeTime:{future:"%så",past:"%så",s:"å ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ¶",hh:"%d å°æ¶",d:"1 天",dd:"%d 天",w:"1 å¨",ww:"%d å¨",M:"1 个æ",MM:"%d 个æ",y:"1 å¹´",yy:"%d å¹´"},week:{dow:1,doy:4}})}(n(5093))},2682:function(e,t,n){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},n={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"};e.defineLocale("ar-sa",{months:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),monthsShort:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,n){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"Ø")},week:{dow:0,doy:6}})}(n(5093))},2812:function(e,t){!function(e){"use strict";const t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},n=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),r=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,i=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!n.has(i)||Boolean(r.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))};function a(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),a=[].concat(...r.body.querySelectorAll("*"));for(const e of a){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const r=[].concat(...e.attributes),a=[].concat(t["*"]||[],t[n]||[]);for(const t of r)i(t,a)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}e.DefaultAllowlist=t,e.sanitizeHtml=a,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t)},2934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aÅgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aÅg_sept_okt_nov_dec".split("_"),weekdays:"dimanÄo_lundo_mardo_merkredo_ĵaÅdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaÅ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>
211?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[HodiaÅ je] LT",nextDay:"[MorgaÅ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[HieraÅ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaÅ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(5093))},2936:function(e,t,n){e.exports=function(e,t,n){"use strict";const r="focustrap",i=".bs.focustrap",a=`focusin${i}`,s=`keydown.tab${i}`,o="Tab",l="forward",u="backward",c={autofocus:!0,trapElement:null},d={autofocus:"boolean",trapElement:"element"};class f extends n{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return c}static get DefaultType(){return d}static get NAME(){return r}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,i),e.on(document,a,e=>this._handleFocusin(e)),e.on(document,s,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,i))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=t.focusableChildren(n);0===r.length?n.focus():this._lastTabNavDirection===u?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===o&&(this._lastTabNavDirection=e.shiftKey?u:l)}}return f}(n(7956),n(5411),n(2105))},3004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},3029:function(e,t,n){e.exports=function(e,t,n,r,i,a,s){"use strict";function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const l=o(e),u="tooltip",c=new Set(["sanitize","allowList","sanitizeFn"]),d="fade",f="show",h=".tooltip-inner",m=".modal",p="hide.bs.modal",g="hover",y="focus",_="click",v="manual",E="hide",b="hidden",T="show",S="shown",w="inserted",L="click",A="focusin",M="focusout",D="mouseenter",k="mouseleave",I={AUTO:"auto",TOP:"top",RIGHT:i.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:i.isRTL()?"right":"left"},R={allowList:a.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},C={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class P extends t{constructor(e,t){if(void 0===l)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return R}static get DefaultType(){return C}static get NAME(){return u}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),n.off(this._element.closest(m),p,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=n.trigger(this._element,this.constructor.eventName(T)),t=(i.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),n.trigger(this._element,this.constructor.eventName(w))),this._popper=this._createPopper(r),r.classList.add(f),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.on(e,"mouseover",i.noop);const s=()=>{n.trigger(this._element,this.constructor.eventName(S)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}
vendor: 5,368 bytes, line 2
2hide(){if(!this._isShown())return;if(n.trigger(this._element,this.constructor.eventName(E)).defaultPrevented)return;if(this._getTipElement().classList.remove(f),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",i.noop);this._activeTrigger[_]=!1,this._activeTrigger[y]=!1,this._activeTrigger[g]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),n.trigger(this._element,this.constructor.eventName(b)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(d,f),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=i.getUID(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(d),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new s({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[h]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(d)}_isShown(){return this.tip&&this.tip.classList.contains(f)}_createPopper(e){const t=i.execute(this._config.placement,[this,e,this._element]),n=I[t.toUpperCase()];return l.createPopper(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return i.execute(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...i.execute(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)n.on(this._element,this.constructor.eventName(L),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[_]=!(t._isShown()&&t._activeTrigger[_]),t.toggle()});else if(t!==v){const e=t===g?this.constructor.eventName(D):this.constructor.eventName(A),r=t===g?this.constructor.eventName(k):this.constructor.eventName(M);n.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?y:g]=!0,t._enter()}),n.on(this._element,r,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?y:g]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},n.on(this._element.closest(m),p,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=r.getDataAttributes(this._element);for(const e of Object.keys(t))c.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:i.getElement(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=P.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method n
2amed "${e}"`);t[e]()}})}}return i.defineJQueryPlugin(P),P}(n(1216),n(9011),n(7956),n(2333),n(4035),n(2812),n(3982))},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),monthsShort:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),weekdays:"ì¼ìì¼_ììì¼_íìì¼_ììì¼_목ìì¼_ê¸ìì¼_í ìì¼".split("_"),weekdaysShort:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),weekdaysMin:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYYë
MMMM Dì¼",LLL:"YYYYë
MMMM Dì¼ A h:mm",LLLL:"YYYYë
MMMM Dì¼ dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYYë
MMMM Dì¼",lll:"YYYYë
MMMM Dì¼ A h:mm",llll:"YYYYë
MMMM Dì¼ dddd A h:mm"},calendar:{sameDay:"ì¤ë LT",nextDay:"ë´ì¼ LT",nextWeek:"dddd LT",lastDay:"ì´ì LT",lastWeek:"ì§ë주 dddd LT",sameElse:"L"},relativeTime:{future:"%s í",past:"%s ì ",s:"ëª ì´",ss:"%dì´",m:"1ë¶",mm:"%dë¶",h:"í ìê°",hh:"%dìê°",d:"í루",dd:"%dì¼",M:"í ë¬",MM:"%dë¬",y:"ì¼ ë
",yy:"%dë
"},dayOfMonthOrdinalParse:/\d{1,2}(ì¼|ì|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"ì¼";case"M":return e+"ì";case"w":case"W":return e+"주";default:return e}},meridiemParse:/ì¤ì |ì¤í/,isPM:function(e){return"ì¤í"===e},meridiem:function(e,t,n){return e<12?"ì¤ì ":"ì¤í"}})}(n(5093))},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["ÑекÑнда","ÑекÑнде","ÑекÑнди"],m:["Ñедан минÑÑ","Ñедног минÑÑа"],mm:["минÑÑ","минÑÑа","минÑÑа"],h:["Ñедан ÑаÑ","Ñедног ÑаÑа"],hh:["ÑаÑ","ÑаÑа","ÑаÑи"],d:["Ñедан дан","Ñедног дана"],dd:["дан","дана","дана"],M:["Ñедан меÑеÑ","Ñедног меÑеÑа"],MM:["меÑеÑ","меÑеÑа","меÑеÑи"],y:["ÑÐµÐ´Ð½Ñ Ð³Ð¾Ð´Ð¸Ð½Ñ","Ñедне године"],yy:["годинÑ","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,s=t.words[r];return 1===r.length?"y"===r&&n?"Ñедна година":i||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===r&&n&&"годинÑ"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"ÑанÑаÑ_ÑебÑÑаÑ_маÑÑ_апÑил_маÑ_ÑÑн_ÑÑл_авгÑÑÑ_ÑепÑембаÑ_окÑобаÑ_новембаÑ_деÑембаÑ".split("_"),monthsShort:"Ñан._Ñеб._маÑ._апÑ._маÑ_ÑÑн_ÑÑл_авг._Ñеп._окÑ._нов._деÑ.".split("_"),monthsParseExact:!0,weekdays:"недеÑа_понедеÑак_ÑÑоÑак_ÑÑеда_ÑеÑвÑÑак_пеÑак_ÑÑбоÑа".split("_"),weekdaysShort:"нед._пон._ÑÑо._ÑÑе._ÑеÑ._пеÑ._ÑÑб.".split("_"),weekdaysMin:"не_по_ÑÑ_ÑÑ_Ñе_пе_ÑÑ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[Ð´Ð°Ð½Ð°Ñ Ñ] LT",nextDay:"[ÑÑÑÑа Ñ] LT",nextWeek:function(){switch(this.day()){case 0:return"[Ñ] [недеÑÑ] [Ñ] LT";case 3:return"[Ñ] [ÑÑедÑ] [Ñ] LT";case 6:return"[Ñ] [ÑÑбоÑÑ] [Ñ] LT";case 1:case 2:case 4:case 5:return"[Ñ] dddd [Ñ] LT"}},lastDay:"[ÑÑÑе Ñ] LT",lastWeek:function(){return["[пÑоÑле] [недеÑе] [Ñ] LT","[пÑоÑлог] [понедеÑка] [Ñ] LT","[пÑоÑлог] [ÑÑоÑка] [Ñ] LT","[пÑоÑле] [ÑÑеде] [Ñ] LT","[пÑоÑлог] [ÑеÑвÑÑка] [Ñ] LT","[пÑоÑлог] [пеÑка] [Ñ] LT","[пÑоÑле] [ÑÑбоÑе] [Ñ] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пÑе %s",s:"неколико ÑекÑнди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},3383:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0}
vendor: 6,125 bytes, line 2
2,meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(5093))},3386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},3478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"oÄÄajagemánnu_guovvamánnu_njukÄamánnu_cuoÅománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_ÄakÄamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"oÄÄj_guov_njuk_cuo_mies_geas_suoi_borg_ÄakÄ_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maÅÅebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maÅ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maÅit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},3601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"pÃ¥ dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"fÃ¥ sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"et Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кÓÑлаÑ_наÑÓÑ_пÑÑ_ака_май_Ò«ÓÑÑме_ÑÑÓ_Ò«ÑÑла_авÓн_Ñпа_Ñӳк_ÑаÑÑав".split("_"),monthsShort:"кÓÑ_наÑ_пÑÑ_ака_май_Ò«ÓÑ_ÑÑÓ_Ò«ÑÑ_авн_Ñпа_Ñӳк_ÑаÑ".split("_"),weekdays:"вÑÑÑаÑникÑн_ÑÑнÑикÑн_ÑÑлаÑикÑн_ÑнкÑн_кÓҫнеÑникÑн_ÑÑнекÑн_ÑÓмаÑкÑн".split("_"),weekdaysShort:"вÑÑ_ÑÑн_ÑÑл_Ñн_кÓÒ«_ÑÑн_ÑÓм".split("_"),weekdaysMin:"вÑ_Ñн_ÑÑ_Ñн_кҫ_ÑÑ_Ñм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [Ò«ÑлÑ
и] MMMM [ÑйÓÑ
Óн] D[-мÓÑÓ]",LLL:"YYYY [Ò«ÑлÑ
и] MMMM [ÑйÓÑ
Óн] D[-мÓÑÓ], HH:mm",LLLL:"dddd, YYYY [Ò«ÑлÑ
и] MMMM [ÑйÓÑ
Óн] D[-мÓÑÓ], HH:mm"},calendar:{sameDay:"[ÐаÑн] LT [ÑеÑ
еÑÑе]",nextDay:"[ЫÑан] LT [ÑеÑ
еÑÑе]",lastDay:"[ÓнеÑ] LT [ÑеÑ
еÑÑе]",nextWeek:"[ҪиÑеÑ] dddd LT [ÑеÑ
еÑÑе]",lastWeek:"[ÐÑÑнÓ] dddd LT [ÑеÑ
еÑÑе]",sameElse:"L"},relativeTime:{future:function(e){return e+(/ÑеÑ
еÑ$/i.exec(e)?"Ñен":/Ò«Ñл$/i.exec(e)?"Ñан":"Ñан")},past:"%s каÑлла",s:"пÓÑ-ик ҫеккÑнÑ",ss:"%d ҫеккÑнÑ",m:"пÓÑ Ð¼Ð¸Ð½ÑÑ",mm:"%d минÑÑ",h:"пÓÑ ÑеÑ
еÑ",hh:"%
2d ÑеÑ
еÑ",d:"пÓÑ ÐºÑн",dd:"%d кÑн",M:"пÓÑ ÑйÓÑ
",MM:"%d ÑйÓÑ
",y:"пÓÑ Ò«Ñл",yy:"%d Ò«Ñл"},dayOfMonthOrdinalParse:/\d{1,2}-мÓÑ/,ordinal:"%d-мÓÑ",week:{dow:1,doy:7}})}(n(5093))},3673:function(e,t,n){e.exports=function(e,t,n){"use strict";const r=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",i=".sticky-top",a="padding-right",s="margin-right";class o{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,a,t=>t+e),this._setElementAttributes(r,a,t=>t+e),this._setElementAttributes(i,s,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,a),this._resetElementAttributes(r,a),this._resetElementAttributes(i,s)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const r=this.getWidth(),i=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&e.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=t=>{const r=e.getDataAttribute(t,n);null!==r?(e.removeDataAttribute(t,n),t.style.setProperty(n,r)):t.style.removeProperty(n)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(e,r){if(n.isElement(e))r(e);else for(const n of t.find(e,this._element))r(n)}}return o}(n(2333),n(5411),n(4035))},3739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"à´à´¨àµà´µà´°à´¿_à´«àµà´¬àµà´°àµà´µà´°à´¿_മാർà´àµà´àµ_à´à´ªàµà´°à´¿àµ½_à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ_à´à´à´¸àµà´±àµà´±àµ_à´¸àµà´ªàµà´±àµà´±à´à´¬àµ¼_à´à´àµà´àµà´¬àµ¼_നവà´à´¬àµ¼_à´¡à´¿à´¸à´à´¬àµ¼".split("_"),monthsShort:"à´à´¨àµ._à´«àµà´¬àµà´°àµ._മാർ._à´à´ªàµà´°à´¿._à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ._à´à´._à´¸àµà´ªàµà´±àµà´±._à´à´àµà´àµ._നവà´._à´¡à´¿à´¸à´.".split("_"),monthsParseExact:!0,weekdays:"à´à´¾à´¯à´±à´¾à´´àµà´_തിà´àµà´à´³à´¾à´´àµà´_à´àµà´µàµà´µà´¾à´´àµà´_à´¬àµà´§à´¨à´¾à´´àµà´_à´µàµà´¯à´¾à´´à´¾à´´àµà´_à´µàµà´³àµà´³à´¿à´¯à´¾à´´àµà´_ശനിയാഴàµà´".split("_"),weekdaysShort:"à´à´¾à´¯àµ¼_തിà´àµà´àµ¾_à´àµà´µàµà´µ_à´¬àµà´§àµ»_à´µàµà´¯à´¾à´´à´_à´µàµà´³àµà´³à´¿_ശനി".split("_"),weekdaysMin:"à´à´¾_തി_à´àµ_à´¬àµ_à´µàµà´¯à´¾_à´µàµ_à´¶".split("_"),longDateFormat:{LT:"A h:mm -à´¨àµ",LTS:"A h:mm:ss -à´¨àµ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -à´¨àµ",LLLL:"dddd, D MMMM YYYY, A h:mm -à´¨àµ"},calendar:{sameDay:"[à´à´¨àµà´¨àµ] LT",nextDay:"[നാളàµ] LT",nextWeek:"dddd, LT",lastDay:"[à´à´¨àµà´¨à´²àµ] LT",lastWeek:"[à´à´´à´¿à´àµà´] dddd, LT",sameElse:"L"},relativeTime:{future:"%s à´à´´à´¿à´àµà´àµ",past:"%s à´®àµàµ»à´ªàµ",s:"à´
ൽപ നിമിഷà´àµà´àµ¾",ss:"%d à´¸àµà´àµà´àµ»à´¡àµ",m:"à´à´°àµ മിനിറàµà´±àµ",mm:"%d മിനിറàµà´±àµ",h:"à´à´°àµ മണിà´àµà´àµàµ¼",hh:"%d മണിà´àµà´àµàµ¼",d:"à´à´°àµ ദിവസà´",dd:"%d ദിവസà´",M:"à´à´°àµ മാസà´",MM:"%d മാസà´",y:"à´à´°àµ വർഷà´",yy:"%d വർഷà´"},meridiemParse:/രാതàµà´°à´¿|രാവിലàµ|à´à´àµà´ à´à´´à´¿à´àµà´àµ|à´µàµà´àµà´¨àµà´¨àµà´°à´|രാതàµà´°à´¿/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാതàµà´°à´¿"===t&&e>=4||"à´à´àµà´ à´à´´à´¿à´àµà´àµ"===t||"à´µàµà´àµà´¨àµà´¨àµà´°à´"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാതàµà´°à´¿":e<12?"രാവിലàµ":e<17?"à´à´àµà´ à´à´´à´¿à´àµà´àµ":e<20?"à´µàµà´àµà´¨àµà´¨àµà´°à´":"രാതàµà´°à´¿"}})}(n(5093))},3784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},3827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令å",narrow:"ã¿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"å¹³æ",narrow:"ã»",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"æå",narrow:"ã¼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大æ£",narrow:"ã½",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"ææ²»",narrow:"ã¾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西æ¦",n
2arrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"ç´å
å",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(å
|\d+)å¹´/,eraYearOrdinalParse:function(e,t){return"å
"===t[1]?1:parseInt(t[1]||e,10)},months:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"),weekdaysShort:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),weekdaysMin:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiemParse:/åå|åå¾/i,isPM:function(e){return"åå¾"===e},meridiem:function(e,t,n){return e<12?"åå":"åå¾"},calendar:{sameDay:"[仿¥] LT",nextDay:"[ææ¥] LT",nextWeek:function(e){return e.week()!==this.week()?"[æ¥é±]dddd LT":"dddd LT"},lastDay:"[æ¨æ¥] LT",lastWeek:function(e){return this.week()!==e.week()?"[å
é±]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}æ¥/,ordinal:function(e,t){switch(t){case"y":return 1===e?"å
å¹´":e+"å¹´";case"d":case"D":case"DDD":return e+"æ¥";default:return e}},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",ss:"%dç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}})}(n(5093))},3861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"},r=[/^à¤à¤¨/i,/^फ़र|फर/i,/^मारà¥à¤/i,/^à¤
पà¥à¤°à¥/i,/^मà¤/i,/^à¤à¥à¤¨/i,/^à¤à¥à¤²/i,/^à¤
à¤/i,/^सितà¤|सित/i,/^à¤
à¤à¥à¤à¥/i,/^नव|नवà¤/i,/^दिसà¤|दिस/i],i=[/^à¤à¤¨/i,/^फ़र/i,/^मारà¥à¤/i,/^à¤
पà¥à¤°à¥/i,/^मà¤/i,/^à¤à¥à¤¨/i,/^à¤à¥à¤²/i,/^à¤
à¤/i,/^सित/i,/^à¤
à¤à¥à¤à¥/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"à¤à¤¨à¤µà¤°à¥_फ़रवरà¥_मारà¥à¤_à¤
पà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤¸à¥à¤¤_सितमà¥à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°".split("_"),standalone:"à¤à¤¨à¤µà¤°à¥_फरवरà¥_मारà¥à¤_à¤
पà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤¸à¥à¤¤_सितà¤à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नवà¤à¤¬à¤°_दिसà¤à¤¬à¤°".split("_")},monthsShort:"à¤à¤¨._फ़र._मारà¥à¤_à¤
पà¥à¤°à¥._मà¤_à¤à¥à¤¨_à¤à¥à¤²._à¤
à¤._सित._à¤
à¤à¥à¤à¥._नव._दिस.".split("_"),weekdays:"रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤²à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार".split("_"),weekdaysShort:"रवि_सà¥à¤®_मà¤à¤à¤²_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि".split("_"),weekdaysMin:"र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श".split("_"),longDateFormat:{LT:"A h:mm बà¤à¥",LTS:"A h:mm:ss बà¤à¥",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बà¤à¥",LLLL:"dddd, D MMMM YYYY, A h:mm बà¤à¥"},monthsParse:r,longMonthsParse:r,shortMonthsParse:i,monthsRegex:/^(à¤à¤¨à¤µà¤°à¥|à¤à¤¨\.?|फ़रवरà¥|फरवरà¥|फ़र\.?|मारà¥à¤?|à¤
पà¥à¤°à¥à¤²|à¤
पà¥à¤°à¥\.?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²à¤¾à¤|à¤à¥à¤²\.?|à¤
à¤à¤¸à¥à¤¤|à¤
à¤\.?|सितमà¥à¤¬à¤°|सितà¤à¤¬à¤°|सित\.?|à¤
à¤à¥à¤à¥à¤¬à¤°|à¤
à¤à¥à¤à¥\.?|नवमà¥à¤¬à¤°|नवà¤à¤¬à¤°|नव\.?|दिसमà¥à¤¬à¤°|दिसà¤à¤¬à¤°|दिस\.?)/i,monthsShortRegex:/^(à¤à¤¨à¤µà¤°à¥|à¤à¤¨\.?|फ़रवरà¥|फरवरà¥|फ़र\.?|मारà¥à¤?|à¤
पà¥à¤°à¥à¤²|à¤
पà¥à¤°à¥\.?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²à¤¾à¤|à¤à¥à¤²\.?|à¤
à¤à¤¸à¥à¤¤|à¤
à¤\.?|सितमà¥à¤¬à¤°|सितà¤à¤¬à¤°|सित\.?|à¤
à¤à¥à¤à¥à¤¬à¤°|à¤
2à¤à¥à¤à¥\.?|नवमà¥à¤¬à¤°|नवà¤à¤¬à¤°|नव\.?|दिसमà¥à¤¬à¤°|दिसà¤à¤¬à¤°|दिस\.?)/i,monthsStrictRegex:/^(à¤à¤¨à¤µà¤°à¥?|फ़रवरà¥|फरवरà¥?|मारà¥à¤?|à¤
पà¥à¤°à¥à¤²?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²à¤¾à¤?|à¤
à¤à¤¸à¥à¤¤?|सितमà¥à¤¬à¤°|सितà¤à¤¬à¤°|सित?\.?|à¤
à¤à¥à¤à¥à¤¬à¤°|à¤
à¤à¥à¤à¥\.?|नवमà¥à¤¬à¤°|नवà¤à¤¬à¤°?|दिसमà¥à¤¬à¤°|दिसà¤à¤¬à¤°?)/i,monthsShortStrictRegex:/^(à¤à¤¨\.?|फ़र\.?|मारà¥à¤?|à¤
पà¥à¤°à¥\.?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²\.?|à¤
à¤\.?|सित\.?|à¤
à¤à¥à¤à¥\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[à¤à¤] LT",nextDay:"[à¤à¤²] LT",nextWeek:"dddd, LT",lastDay:"[à¤à¤²] LT",lastWeek:"[पिà¤à¤²à¥] dddd, LT",sameElse:"L"},relativeTime:{future:"%s मà¥à¤",past:"%s पहलà¥",s:"à¤à¥à¤ हॠà¤à¥à¤·à¤£",ss:"%d सà¥à¤à¤à¤¡",m:"à¤à¤ मिनà¤",mm:"%d मिनà¤",h:"à¤à¤ à¤à¤à¤à¤¾",hh:"%d à¤à¤à¤à¥",d:"à¤à¤ दिन",dd:"%d दिन",M:"à¤à¤ महà¥à¤¨à¥",MM:"%d महà¥à¤¨à¥",y:"à¤à¤ वरà¥à¤·",yy:"%d वरà¥à¤·"},preparse:function(e){return e.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सà¥à¤¬à¤¹|दà¥à¤ªà¤¹à¤°|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सà¥à¤¬à¤¹"===t?e:"दà¥à¤ªà¤¹à¤°"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सà¥à¤¬à¤¹":e<17?"दà¥à¤ªà¤¹à¤°":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(5093))},3872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(5093))},3982:function(e,t,n){e.exports=function(e,t,n,r){"use strict";const i="TemplateFactory",a={allowList:n.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},s={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},o={entry:"(string|element|function|null)",selector:"(string|element)"};class l extends t{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return a}static get DefaultType(){return s}static get NAME(){return i}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},o)}_setContent(t,n,i){const a=e.findOne(i,t);a&&((n=this._resolvePossibleFunction(n))?r.isElement(n)?this._putElementInTemplate(r.getElement(n),a):this._config.html?a.innerHTML=this._maybeSanitize(n):a.textContent=n:a.remove())}_maybeSanitize(e){return this._config.sanitize?n.sanitizeHtml(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return r.execute(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}return l}(n(5411),n(2105),n(2812),n(4035))},4035:function(e,t){!function(e){"use strict";const t=1e6,n=1e3,r="transitionend",i=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),a=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),s=e=>{do{e+=Math.floor(Math.random()*t)}while(document.getElementById(e));return e},o=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:r}=window.getComputedStyle(e);const i=Number.parseFloat(t),a=Number.parseFloat(r);return i||a?(t=t.split(",")[0],r=r.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(r))*n):0},l=e=>{e.dispatchEvent(new Event(r))},u=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),c=e=>u(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(i(e)):null,d=e=>{if(!u(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},f=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),h=e
2=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h(e.parentNode):null},m=()=>{},p=e=>{e.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,y=[],_=e=>{"loading"===document.readyState?(y.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of y)e()}),y.push(e)):e()},v=()=>"rtl"===document.documentElement.dir,E=e=>{_(()=>{const t=g();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},b=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,T=(e,t,n=!0)=>{if(!n)return void b(e);const i=5,a=o(t)+i;let s=!1;const u=({target:n})=>{n===t&&(s=!0,t.removeEventListener(r,u),b(e))};t.addEventListener(r,u),setTimeout(()=>{s||l(t)},a)},S=(e,t,n,r)=>{const i=e.length;let a=e.indexOf(t);return-1===a?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])};e.defineJQueryPlugin=E,e.execute=b,e.executeAfterTransition=T,e.findShadowRoot=h,e.getElement=c,e.getNextActiveElement=S,e.getTransitionDurationFromElement=o,e.getUID=s,e.getjQuery=g,e.isDisabled=f,e.isElement=u,e.isRTL=v,e.isVisible=d,e.noop=m,e.onDOMContentLoaded=_,e.parseSelector=i,e.reflow=p,e.toType=a,e.triggerTransitionEnd=l,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t)},4051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Ãp~rÃl_~Máý_~Júñé~_Júl~ý_Ãú~gúst~_Sép~témb~ér_Ã~ctób~ér_Ã~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ãpr_~Máý_~Júñ_~Júl_~Ãúg_~Sép_~Ãct_~Ãóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~FrÃd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~FrÃ_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ã~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"Ã~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~mÃñ~út
2é",mm:"%d m~Ãñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},4063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(5093))},4226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(5093))},4418:function(e,t,n){!function(e){"use strict";var t="styczeÅ_luty_marzec_kwiecieÅ_maj_czerwiec_lipiec_sierpieÅ_wrzesieÅ_październik_listopad_grudzieÅ".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅnia_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutÄ";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinÄ";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiÄ
ce":"miesiÄcy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziaÅek_wtorek_Åroda_czwartek_piÄ
tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_År_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_År_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DziÅ o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielÄ o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W ÅrodÄ o] LT";case 6:return"[W sobotÄ o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszÅÄ
niedzielÄ o] LT";case 3:return"[W zeszÅÄ
ÅrodÄ o] LT";case 6:return"[W zeszÅÄ
sobotÄ o] LT";default:return"[W zeszÅy] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzieÅ",dd:"%d dni",w:"tydzieÅ",ww:a,M:"miesiÄ
c",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4429:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){if("m"===n)return t?"jedna minuta":r?"jednu minutu":"jedne minute"}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[proÅ¡lu] dddd [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},4451:function(e,t,n){!function(e){"use strict";var t={1:"à³§",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"à³",8:"à³®",9:"೯",0:"೦"}
vendor: 5,263 bytes, line 2
2,n={"à³§":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","à³":"7","à³®":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"à²à²¨à²µà²°à²¿_ಫà³à²¬à³à²°à²µà²°à²¿_ಮಾರà³à²à³_à²à²ªà³à²°à²¿à²²à³_ಮà³à³_à²à³à²¨à³_à²à³à²²à³à³_à²à²à²¸à³à²à³_ಸà³à²ªà³à²à³à²à²¬à²°à³_à²
à²à³à²à³à³à³à²¬à²°à³_ನವà³à²à²¬à²°à³_ಡಿಸà³à²à²¬à²°à³".split("_"),monthsShort:"à²à²¨_ಫà³à²¬à³à²°_ಮಾರà³à²à³_à²à²ªà³à²°à²¿à²²à³_ಮà³à³_à²à³à²¨à³_à²à³à²²à³à³_à²à²à²¸à³à²à³_ಸà³à²ªà³à²à³à²_à²
à²à³à²à³à³à³_ನವà³à²_ಡಿಸà³à²".split("_"),monthsParseExact:!0,weekdays:"à²à²¾à²¨à³à²µà²¾à²°_ಸà³à³à³à²®à²µà²¾à²°_ಮà²à²à²³à²µà²¾à²°_ಬà³à²§à²µà²¾à²°_à²à³à²°à³à²µà²¾à²°_ಶà³à²à³à²°à²µà²¾à²°_ಶನಿವಾರ".split("_"),weekdaysShort:"à²à²¾à²¨à³_ಸà³à³à³à²®_ಮà²à²à²³_ಬà³à²§_à²à³à²°à³_ಶà³à²à³à²°_ಶನಿ".split("_"),weekdaysMin:"à²à²¾_ಸà³à³à³_ಮà²_ಬà³_à²à³_ಶà³_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[à²à²à²¦à³] LT",nextDay:"[ನಾಳà³] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನà³à²¨à³] LT",lastWeek:"[à²à³à³à²¨à³à²¯] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನà²à²¤à²°",past:"%s ಹಿà²à²¦à³",s:"à²à³à²²à²µà³ à²à³à²·à²£à²à²³à³",ss:"%d ಸà³à²à³à²à²¡à³à²à²³à³",m:"à²à²à²¦à³ ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"à²à²à²¦à³ à²à²à²à³",hh:"%d à²à²à²à³",d:"à²à²à²¦à³ ದಿನ",dd:"%d ದಿನ",M:"à²à²à²¦à³ ತಿà²à²à²³à³",MM:"%d ತಿà²à²à²³à³",y:"à²à²à²¦à³ ವರà³à²·",yy:"%d ವರà³à²·"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬à³à³®à³¯à³¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತà³à²°à²¿|ಬà³à²³à²¿à²à³à²à³|ಮಧà³à²¯à²¾à²¹à³à²¨|ಸà²à²à³/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತà³à²°à²¿"===t?e<4?e:e+12:"ಬà³à²³à²¿à²à³à²à³"===t?e:"ಮಧà³à²¯à²¾à²¹à³à²¨"===t?e>=10?e:e+12:"ಸà²à²à³"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತà³à²°à²¿":e<10?"ಬà³à²³à²¿à²à³à²à³":e<17?"ಮಧà³à²¯à²¾à²¹à³à²¨":e<20?"ಸà²à²à³":"ರಾತà³à²°à²¿"},dayOfMonthOrdinalParse:/\d{1,2}(ನà³à³)/,ordinal:function(e){return e+"ನà³à³"},week:{dow:0,doy:6}})}(n(5093))},4457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"sÄptÄmâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminicÄ_luni_marÈi_miercuri_joi_vineri_sâmbÄtÄ".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmÄ",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o orÄ",hh:t,d:"o zi",dd:t,w:"o sÄptÄmânÄ",ww:t,M:"o lunÄ",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(5093))},4496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),monthsShort:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø§ØØ¯_اثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:1,doy:4}})}(n(5093))},4566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._mÃ¥._t
2y._on._to._fr._lau.".split("_"),weekdaysMin:"su_mÃ¥_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I gÃ¥r klokka] LT",lastWeek:"[FøregÃ¥ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein mÃ¥nad",MM:"%d mÃ¥nader",y:"eit Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4691:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"ÎανοÏ
άÏιοÏ_ΦεβÏοÏ
άÏιοÏ_ÎάÏÏιοÏ_ÎÏÏίλιοÏ_ÎάιοÏ_ÎοÏνιοÏ_ÎοÏλιοÏ_ÎÏγοÏ
ÏÏοÏ_ΣεÏÏÎμβÏιοÏ_ÎκÏÏβÏιοÏ_ÎοÎμβÏιοÏ_ÎεκÎμβÏιοÏ".split("_"),monthsGenitiveEl:"ÎανοÏ
αÏίοÏ
_ΦεβÏοÏ
αÏίοÏ
_ÎαÏÏίοÏ
_ÎÏÏιλίοÏ
_ÎαÎοÏ
_ÎοÏ
νίοÏ
_ÎοÏ
λίοÏ
_ÎÏ
γοÏÏÏοÏ
_ΣεÏÏεμβÏίοÏ
_ÎκÏÏβÏίοÏ
_ÎοεμβÏίοÏ
_ÎεκεμβÏίοÏ
".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Îαν_Φεβ_ÎαÏ_ÎÏÏ_ÎαÏ_ÎοÏ
ν_ÎοÏ
λ_ÎÏ
γ_ΣεÏ_ÎκÏ_Îοε_Îεκ".split("_"),weekdays:"ÎÏ
Ïιακή_ÎεÏ
ÏÎÏα_ΤÏίÏη_ΤεÏάÏÏη_Î ÎμÏÏη_ΠαÏαÏκεÏ
ή_ΣάββαÏο".split("_"),weekdaysShort:"ÎÏ
Ï_ÎεÏ
_ΤÏι_ΤεÏ_Πεμ_ΠαÏ_Σαβ".split("_"),weekdaysMin:"ÎÏ
_Îε_ΤÏ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ÎÎ":n?"Ïμ":"Î Î"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[Î Î]\.?Î?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[ΣήμεÏα {}] LT",nextDay:"[ÎÏÏιο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Î§Î¸ÎµÏ {}] LT",lastWeek:function(){return 6===this.day()?"[Ïο ÏÏοηγοÏμενο] dddd [{}] LT":"[Ïην ÏÏοηγοÏμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],i=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",i%12==1?"ÏÏη":"ÏÏιÏ")},relativeTime:{future:"Ïε %s",past:"%s ÏÏιν",s:"λίγα δεÏ
ÏεÏÏλεÏÏα",ss:"%d δεÏ
ÏεÏÏλεÏÏα",m:"Îνα λεÏÏÏ",mm:"%d λεÏÏά",h:"μία ÏÏα",hh:"%d ÏÏεÏ",d:"μία μÎÏα",dd:"%d μÎÏεÏ",M:"ÎÎ½Î±Ï Î¼Î®Î½Î±Ï",MM:"%d μήνεÏ",y:"ÎÎ½Î±Ï ÏÏÏνοÏ",yy:"%d ÏÏÏνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(5093))},4697:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
2d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4874:(e,t,n)=>{"use strict";n(8647);var r=n(2453),i=n.n(r);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"init",value:function(){[].slice.call(document.querySelectorAll(".dropdown-toggle")).map(function(e){return new(i())(e)}),e.initLocationDropdowns(),window.Livewire&&Livewire.on("rail:refresh",function(){[].slice.call(document.querySelectorAll(".dropdown-toggle")).map(function(e){return new(i())(e)}),e.initLocationDropdowns()})}},{key:"initLocationDropdowns",value:function(){[].slice.call(document.querySelectorAll(".location-dropdown-toggle")).map(function(e){return new(i())(e,{popperConfig:{strategy:"fixed"}})})}}],(n=null)&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),u=n(1355),c=n(6128),d=n.n(c),f=n(2543);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}var g=function(e){e.addEventListener("click",function(e){e.stopImmediatePropagation(),e.preventDefault();var t=this.getAttribute("href");(function(e){return new Promise(function(t){var n=new XMLHttpRequest;n.open("HEAD",e),n.onreadystatechange=function(){this.readyState===this.DONE&&t(this.getResponseHeader("Content-Type"))},n.send()})})(t).then(function(e){var n=e.startsWith("audio/");d()({skin:n?"clean audio":"clean",elements:[n?{content:'<audio class="w-100" controls autoplay><source src="'+t+'"/></audio>',height:"auto"}:{href:t}],zoomable:!1,draggable:!1}).open()})})},y=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){(0,f.each)(document.querySelectorAll("[data-lightbox]"),function(e){g(e)}),window.Livewire&&Livewire.on("livewire:table:refresh",function(){(0,f.each)(document.querySelectorAll("[data-lightbox]"),function(e){g(e)})})}}],(t=null)&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();l.init(),u.A.init(),y.init()},4903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_MÉkalo_ZuwÉnkalo_Zuluyekalo_Utikalo_SÉtanburukalo_ÉkutÉburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_MÉ_Zuw_Zul_Uti_SÉt_Éku_Now_Des".split("_"),weekdays:"Kari_NtÉnÉn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_NtÉ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm"},calendar:{sameDay:"[Bi lÉrÉ] LT",nextDay:"[Sini lÉrÉ] LT",nextWeek:"dddd [don lÉrÉ] LT",lastDay:"[Kunu lÉrÉ] LT",lastWeek:"dddd [tÉmÉnen lÉrÉ] LT",sameElse:"L"},relativeTime:{future:"%s kÉnÉ",past:"a bÉ %s bÉ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lÉrÉ kelen",hh:"lÉrÉ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(5093))},5001:(e,t,n)=>{"use strict";n.d(t,{A:()=>G});var r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
2ox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};const s=a;var o=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},l=function(e){return!0===e?1:0};function u(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(r,i)},t)}}var c=function(e){return e instanceof Array?e:[e]};function d(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function f(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function h(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function m(e,t){return t(e)?e:e.parentNode?m(e.parentNode,t):void 0}function p(e,t){var n=f("div","numInputWrapper"),r=f("input","numInput "+e),i=f("span","arrowUp"),a=f("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var s in t)r.setAttribute(s,t[s]);return n.appendChild(r),n.appendChild(i),n.appendChild(a),n}function g(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var y=function(){},_=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:y,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*l(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:y,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:y,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},E={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return _(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return o(b.h(e,t,n))},H:function(e){return o(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[l(e.getHours()>11)]},M:function(e,t){return _(e.getMonth(),!0,t)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},T=function(e){var t=e.config,n=void 0===t?i:t,r=e.l10n,s=void 0===r?a:r,o=e.isMobile,l=void 0!==o&&o;return function(e,t,r){var i=r||s;return void 0===n.formatDate||l?t.split("").map(function(t,r,a){return b[t]&&"\\"!==a[r-1]?b[t](e,i,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,i)}},S=function(e){var t=e.config,n=void 0===t?i:t,r=e.l10n,s=void 0===r?a:r;return function(e,t,r,a){if(0===e||e){var o,l=a||s,u=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var c=t||(n||i).dateFormat,d=String(e).trim();if("today"===d)o=new Date,r=!0;else if(n&&n.parseDate)o=n.parseDate(e,c);else if(/Z$/.test(d)||/GMT$/.test(d))o=new Date(e);else{for(var f=void 0,h=[],m=0,p=0,g="";m<c.length;m++){var y=c[m],_="\\"===y,b="\\"===c[m-1]||_;if(E[y]&&!b){g+=E[y];var T=new RegExp(g).exec(e);T&&(f=!0)&&h["Y"!==y?"push":"unshift"]({fn:v[y],val:T[++p]})}else _||(g+=".")}o=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,l)||o}
vendor: 16,845 bytes, line 2
2),o=f?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===r&&o.setHours(0,0,0,0),o;n.errorHandler(new Error("Invalid date provided: "+u))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var L=function(e,t,n){return 3600*e+60*t+n},A=864e5;function M(e){var t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),a=e.minDate.getMinutes(),s=e.minDate.getSeconds();t<i&&(t=i),t===i&&n<a&&(n=a),t===i&&n===a&&r<s&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){var o=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,o))===o&&(n=Math.min(l,n)),t===o&&n===l&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}n(5990);var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)},k=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)r[i]=a[s];return r};function I(e,t){var n={config:D(D({},i),C.defaultConfig),l10n:s};function a(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function y(e){return e.bind(n)}function v(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function b(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||w(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),r=M(n.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=g(e),i=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]);var a=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),u=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),d=e.delta||(t?38===e.which?1:-1:0),f=c+u*d;if(void 0!==i.value&&2===i.value.length){var h=i===n.hourElement,m=i===n.minuteElement;f<a?(f=s+f+l(!h)+(l(h)&&l(!n.amPM)),m&&U(void 0,-1,n.hourElement)):f>s&&(f=i===n.hourElement?f-s-l(!n.amPM):a,m&&U(void 0,1,n.hourElement)),n.amPM&&h&&(1===u?f+c===23:Math.abs(f-c)>u)&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]),i.value=o(f)}}(e);var i=n._input.value;I(),Se(),n._input.value!==i&&n._debouncedChange()}function I(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,r=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,a=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=r,t=n.amPM.textContent,r=e%12+12*l(t===n.l10n.amPM[1]));var s=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===w(n.latestSelectedDateObj,n.config.minDate,!0),o=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===w(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var u=L(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),c=L(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=L(r,i,a);if(d>c&&d<u){var f=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(u);r=f[0],i=f[1],a=f[2]}}else{if(o){var h=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(r=Math.min(r,h.getHours()))===h.getHours()&&(i=Math.min(i,h.getMinutes())),i===h.getMinutes()&&(a=Math.min(a,h.getSeconds()))}if(s){var m=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(r=Math.max(r,m.getHours()))===m.getHours()&&i<m.getMinutes()&&(i=m.getMinutes()),i===m.getMinutes()&&(a=Math.max(a,m.getSeconds()))}}P(r,i,a)}}function R(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&P(t.getHours(),t.getMinutes(),t.getSeconds())}function P(e,t,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=o(n.config.time_24hr?e:(12+e)%12+12*l(e%12==0)),n.minuteElement.value=o(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=o(r)))}function O(e){var t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ee(n)}function x(e,t,r,i){return t instanceof Array?t.forEach(function(t){return x(e,t,r,i)}):e instanceof Array?e.forEach(function(e){return x(e,t,r,i)}):(e.addEventListener(t,r,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,r,i)}}))}function N(){_e("onChange")}function F(e,t){var r=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,a=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,n.config.errorHandler(e)}t&&n.currentYear!==i&&(_e("onYearChange"),z()),!t||n.currentYear===i&&n.currentMonth===a||_e("onMonthChange"),n.redraw()}function Y(e){var t=g(e);~t.className.indexOf("arrow")&&U(e,t.classList.contains("arrowUp")?1:-1)}function U(e,t,n){var r=e&&g(e),i=n||r&&r.parentNode&&r.parentNode.firstChild,a=ve("increment");a.delta=t,i&&i.dispatchEvent(a)}function B(e,t,r,i){var a=te(t,!0),s=f("span",e,t.getDate().toString());return s.dateObj=t,s.$i=i,s.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,n.now)&&(n.todayDateElem=s,s.classList.add("today"),s.setAttribute("aria-current","date")),a?(s.tabIndex=-1,Ee(t)&&(s.classList.add("selected"),n.selectedDateElem=s,"range"===n.config.mode&&(d(s,"startRange",n.selectedDates[0]&&0===w(t,n.selectedDates[0],!0)),d(s,"endRange",n.selectedDates[1]&&0===w(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(w(e,n.selectedDates[0])>=0&&w(e,n.selectedDates[1])<=0)}(t)&&!Ee(t)&&s.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),_e("onDayCreate",s),s}function j(e){e.focus(),"range"===n.config.mode&&ae(e)}function H(e){for(var t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1,i=t;i!=r;i+=e)for(var a=n.daysContainer.children[i],s=e>0?0:a.children.length-1,o=e>0?a.children.length:-1,l=s;l!=o;l+=e){var u=a.children[l];if(-1===u.className.indexOf("hidden")&&te(u.dateObj))return u}}function G(e,t){var r=a(),i=ne(r||document.body),s=void 0!==e?e:i?r:void 0!==n.selectedDateElem&&ne(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&ne(n.todayDateElem)?n.todayDateElem:H(t>0?1:-1);void 0===s?n._input.focus():i?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,a=t>0?1:-1,s=r-n.currentMonth;s!=i;s+=a)for(var o=n.daysContainer.children[s],l=r-n.currentMonth===s?e.$i+t:t<0?o.children.length-1:0,u=o.children.length,c=l;c>=0&&c<u&&c!=(t>0?u:-1);c+=a){var d=o.children[c];if(-1===d.className.indexOf("hidden")&&te(d.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return j(d)}n.changeMonth(a),G(H(a),0)}(s,t):j(s)}function Z(e,t){for(var r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),a=n.utils.getDaysInMonth(t,e),s=window.document.createDocumentFragment(),o=n.config.showMonths>1,l=o?"prevMonthDay hidden":"prevMonthDay",u=o?"nextMonthDay hidden":"nextMonthDay",c=i+1-r,d=0;c<=i;c++,d++)s.appendChild(B("flatpickr-day "+l,new Date(e,t-1,c),0,d));for(c=1;c<=a;c++,d++)s.appendChild(B("flatpickr-day",new Date(e,t,c),0,d));for(var h=a+1;h<=42-r&&(1===n.config.showMonths||d%7!=0);h++,d++)s.appendChild(B("flatpickr-day "+u,new Date(e,t+1,h%a),0,d));var m=f("div","dayContainer");return m.appendChild(s),m}function $(){if(void 0!==n.daysContainer){h(n.daysContainer),n.weekNumbers&&h(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(Z(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&ae()}}function z(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=f("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=_(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function q(){var e,t=f("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=f("span","cur-month"):(n.monthsDropdownContainer=f("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),x(n.monthsDropdownContainer,"change",function(e){var t=g(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),_e("onMonthChange")}),z(),e=n.monthsDropdownContainer);var i=p("cur-year",{tabindex:"-1"}),a=i.getElementsByTagName("input")[0];a.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&a.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(a.setAttribute("max",n.config.maxDate.getFullYear().toString()),a.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var s=f("div","flatpickr-current-month");return s.appendChild(e),s.appendChild(i),r.appendChild(s),t.appendChild(r),{container:t,yearElement:a,monthElement:e}}function W(){h(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=q();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function V(){n.weekdayContainer?h(n.weekdayContainer):n.weekdayContainer=f("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=f("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return K(),n.weekdayContainer}function K(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=k(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=k(t.splice(e,t.length),t.splice(0,e)));for(var r=n.config.showMonths;r--;)n.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function X(e,t){void 0===t&&(t=!0);var r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,_e("onYearChange"),z()),$(),_e("onMonthChange"),be())}function Q(e){return n.calendarContainer.contains(e)}function J(e){if(n.isOpen&&!n.config.inline){var t=g(e),r=Q(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!r&&!Q(e.relatedTarget),a=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});i&&a&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&b(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function ee(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),_e("onYearChange"),z())}}function te(e,t){var r;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&w(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&w(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var a=!!n.config.enable,s=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,o=0,l=void 0;o<s.length;o++){if("function"==typeof(l=s[o])&&l(i))return a;if(l instanceof Date&&void 0!==i&&l.getTime()===i.getTime())return a;if("string"==typeof l){var u=n.parseDate(l,void 0,!0);return u&&u.getTime()===i.getTime()?a:!a}if("object"==typeof l&&void 0!==i&&l.from&&l.to&&i.getTime()>=l.from.getTime()&&i.getTime()<=l.to.getTime())return a}return!a}function ne(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function re(e){var t=e.target===n._input,r=n._input.value.trimEnd()!==Te();!t||!r||e.relatedTarget&&Q(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function ie(t){var r=g(t),i=n.config.wrap?e.contains(r):r===n._input,s=n.config.allowInput,o=n.isOpen&&(!s||!i),l=n.config.inline&&i&&!s;if(13===t.keyCode&&i){if(s)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),r.blur();n.open()}else if(Q(r)||o||l){var u=!!n.timeContainer&&n.timeContainer.contains(r);switch(t.keyCode){case 13:u?(t.preventDefault(),b(),fe()):he(t);break;case 27:t.preventDefault(),fe();break;case 8:case 46:i&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(u||i)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var c=a();if(void 0!==n.daysContainer&&(!1===s||c&&ne(c))){var d=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),X(d),G(H(1),0)):G(void 0,d)}}break;case 38:case 40:t.preventDefault();var f=40===t.keyCode?1:-1;n.daysContainer&&void 0!==r.$i||r===n.input||r===n.altInput?t.ctrlKey?(t.stopPropagation(),ee(n.currentYear-f),G(H(1),0)):u||G(void 0,7*f):r===n.currentYearElement?ee(n.currentYear-f):n.config.enableTime&&(!u&&n.hourElement&&n.hourElement.focus(),b(t),n._debouncedChange());break;case 9:if(u){var h=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),m=h.indexOf(r);if(-1!==m){var p=h[m+(t.shiftKey?-1:1)];t.preventDefault(),(p||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&r===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],I(),Se();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],I(),Se()}(i||Q(r))&&_e("onKeyDown",t)}function ae(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),a=Math.min(r,n.selectedDates[0].getTime()),s=Math.max(r,n.selectedDates[0].getTime()),o=!1,l=0,u=0,c=a;c<s;c+=A)te(new Date(c),!0)||(o=o||c>a&&c<s,c<i&&(!l||c>l)?l=c:c>i&&(!u||c<u)&&(u=c));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") >
2 ."+t)).forEach(function(t){var a,s,c,d=t.dateObj.getTime(),f=l>0&&d<l||u>0&&d>u;if(f)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});o&&!f||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),i<r&&d===i?t.classList.add("startRange"):i>r&&d===i&&t.classList.add("endRange"),d>=l&&(0===u||d<=u)&&(s=i,c=r,(a=d)>Math.min(s,c)&&a<Math.max(s,c))&&t.classList.add("inRange")))})}}function se(){!n.isOpen||n.config.static||n.config.inline||ce()}function oe(e){return function(t){var r=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),i=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return te(e)}),n.selectedDates.length||"min"!==e||R(r),Se()),n.daysContainer&&(de(),void 0!==r?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==r&&i.getFullYear()===r.getFullYear())}}function le(){return n.config.wrap?e.querySelector("[data-input]"):e}function ue(){"object"!=typeof n.config.locale&&void 0===C.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=D(D({},C.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?C.l10ns[n.config.locale]:void 0),E.D="("+n.l10n.weekdays.shorthand.join("|")+")",E.l="("+n.l10n.weekdays.longhand.join("|")+")",E.M="("+n.l10n.months.shorthand.join("|")+")",E.F="("+n.l10n.months.longhand.join("|")+")",E.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===D(D({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===C.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=T(n),n.parseDate=S({config:n.config,l10n:n.l10n})}function ce(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){_e("onPreCalendarPosition");var t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=n.calendarContainer.offsetWidth,a=n.config.position.split(" "),s=a[0],o=a.length>1?a[1]:null,l=t.getBoundingClientRect(),u=window.innerHeight-l.bottom,c="above"===s||"below"!==s&&u<r&&l.top>r,f=window.pageYOffset+l.top+(c?-r-2:t.offsetHeight+2);if(d(n.calendarContainer,"arrowTop",!c),d(n.calendarContainer,"arrowBottom",c),!n.config.inline){var h=window.pageXOffset+l.left,m=!1,p=!1;"center"===o?(h-=(i-l.width)/2,m=!0):"right"===o&&(h-=i-l.width,p=!0),d(n.calendarContainer,"arrowLeft",!m&&!p),d(n.calendarContainer,"arrowCenter",m),d(n.calendarContainer,"arrowRight",p);var g=window.document.body.offsetWidth-(window.pageXOffset+l.right),y=h+i>window.document.body.offsetWidth,_=g+i>window.document.body.offsetWidth;if(d(n.calendarContainer,"rightMost",y),!n.config.static)if(n.calendarContainer.style.top=f+"px",y)if(_){var v=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===v)return;var E=window.document.body.offsetWidth,b=Math.max(0,E/2-i/2),T=v.cssRules.length,S="{left:"+l.left+"px;right:auto;}";d(n.calendarContainer,"rightMost",!1),d(n.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+S,T),n.calendarContainer.style.left=b+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=g+"px";else n.calendarContainer.style.left=h+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function de(){n.config.noCalendar||n.isMobile||(z(),be(),$())}function fe(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function he(e){e.preventDefault(),e.stopPropagation();var t=m(g(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var r=t,i=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),a=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[i];else if("multiple"===n.config.mode){var s=Ee(i);s?n.selectedDates.splice(parseInt(s),1):n.selectedDates.push(i)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==w(i,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(I(),a){var o=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),o&&(_e("onYearChange"),z()),_e("onMonthChange")}if(be(),$(),Se(),a||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():j(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var l="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(l||u)&&fe()}N()}}n.parseDate=S({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=x,n._setHoursFromDate=R,n._positionCalendar=ce,n.changeMonth=X,n.changeYear=ee,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var r=M(n.config);P(r.hours,r.minutes,r.seconds)}n.redraw(),e&&_e("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));_e("onClose")},n.onMouseOver=ae,n._createElement=f,n.createDay=B,n.destroy=function(){void 0!==n.config&&_e("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
2isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch(e){}})},n.isEnabled=te,n.jumpToDate=F,n.updateValue=Se,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var r=g(e);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void _e("onOpen")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),_e("onOpen"),ce(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))},n.redraw=de,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(n.config,e),e)void 0!==me[i]&&me[i].forEach(function(e){return e()});else n.config[e]=t,void 0!==me[e]?me[e].forEach(function(e){return e()}):r.indexOf(e)>-1&&(n.config[e]=c(t));n.redraw(),Se(!0)},n.setDate=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);pe(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),F(void 0,t),R(),0===n.selectedDates.length&&n.clear(!1);Se(t),t&&_e("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var me={locale:[ue,K],showMonths:[W,v,V],minDate:[F],maxDate:[F],positionElement:[ye],clickOpens:[function(){!0===n.config.clickOpens?(x(n._input,"focus",n.open),x(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function pe(e,t){var r=[];if(e instanceof Array)r=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":r=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter(function(e){return e instanceof Date&&te(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ge(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function ye(){n._positionElement=n.config.positionElement||n._input}function _e(e,t){if(void 0!==n.config){var r=n.config[e];if(void 0!==r&&r.length>0)for(var i=0;r[i]&&i<r.length;i++)r[i](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(ve("change")),n.input.dispatchEvent(ve("input")))}}function ve(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Ee(e){for(var t=0;t<n.selectedDates.length;t++){var r=n.selectedDates[t];if(r instanceof Date&&0===w(r,e))return""+t}return!1}function be(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=_(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Te(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Se(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Te(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Te(n.config.altFormat)),!1!==e&&_e("onValueUpdate")}function we(e){var t=g(e),r=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);r||i?X(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],s=D(D({},JSON.parse(JSON.stringify(e.dataset||{}))),t),o={};n.config.parseDate=s.parseDate,n.config.formatDate=s.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=ge(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=ge(e)}});var l="time"===s.mode;if(!s.dateFormat&&(s.enableTime||l)){var u=C.defaultConfig.dateFormat||i.dateFormat;o.dateFormat=s.noCalendar||l?"H:i"+(s.enableSeconds?":S":""):u+" H:i"+(s.enableSeconds?":S":"")}if(s.altInput&&(s.enableTime||l)&&!s.altFormat){var d=C.defaultConfig.altFormat||i.altFormat;o.altFormat=s.noCalendar||l?"h:i"+(s.enableSeconds?":S K":" K"):d+" h:i"+(s.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:oe("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:oe("max")}
vendor: 10,367 bytes, line 2
2);var f=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:f("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:f("max")}),"time"===s.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,o,s);for(var h=0;h<a.length;h++)n.config[a[h]]=!0===n.config[a[h]]||"true"===n.config[a[h]];r.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=c(n.config[e]||[]).map(y)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(h=0;h<n.config.plugins.length;h++){var m=n.config.plugins[h](n)||{};for(var p in m)r.indexOf(p)>-1?n.config[p]=c(m[p]).map(y).concat(n.config[p]):void 0===s[p]&&(n.config[p]=m[p])}s.altInputClass||(n.config.altInputClass=le().className+" "+n.config.altInputClass);_e("onParseConfig")}(),ue(),function(){if(n.input=le(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=f(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");ye()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&pe(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=f("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=f("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=f("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=f("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,W(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(d(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(d(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],be(),n.monthNav)),n.innerContainer=f("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=f("div","flatpickr-weekwrapper");e.appendChild(f("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=f("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=i,n.weekWrapper=r}n.rContainer=f("div","flatpickr-rContainer"),n.rContainer.appendChild(V()),n.daysContainer||(n.daysContainer=f("div","flatpickr-days"),n.daysContainer.tabIndex=-1),$(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=M(n.config);n.timeContainer=f("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=f("span","flatpickr-time-separator",":"),r=p("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var i=p("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=o(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=o(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var a=p("flatpickr-second");n.secondElement=a.getElementsByTagName("input")[0],n.secondElement.value=o(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(f("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(a)}n.config.time_24hr||(n.amPM=f("span","flatpickr-am-pm",n.l10n.amPM[l((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());d(n.calendarContainer,"rangeMode","range"===n.config.mode),d(n.calendarContainer,"animate",!0===n.config.animate),d(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var a=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!a&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var s=f("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(s,n.element),s.appendChild(n.element),n.altInput&&s.appendChild(n.altInput),s.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return x(t,"click",n[e])})});if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=f("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}x(n.mobileInput,"change",function(e){n.setDate(g(e).value,!1,n.mobileFormatStr),_e("onChange"),_e("onClose")})}();var e=u(se,50);n._debouncedChange=u(N,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&x(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&ae(g(e))});x(n._input,"keydown",ie),void 0!==n.calendarContainer&&x(n.calendarContainer,"keydown",ie);n.config.inline||n.config.static||x(window,"resize",e);void 0!==window.ontouchstart?x(window.document,"touchstart",J):x(window.document,"mousedown",J);x(window.document,"focus",J,{capture:!0}),!0===n.config.clickOpens&&(x(n._input,"focus",n.open),x(n._input,"click",n.open));void 0!==n.daysContainer&&(x(n.monthNav,"click",we),x(n.monthNav,["keyup","increment"],O),x(n.daysContainer,"click",he));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return g(e).select()};x(n.timeContainer,["increment"],b),x(n.timeContainer,"blur",b,{capture:!0}),x(n.timeContainer,"click",Y),x([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&x(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&x(n.amPM,"click",function(e){b(e)})}n.config.allowInput&&x(n._input,"blur",re)}
2(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&R(n.config.noCalendar?n.latestSelectedDateObj:void 0),Se(!1)),v();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&ce(),_e("onReady")}(),n}function R(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],i=0;i<n.length;i++){var a=n[i];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=I(a,t||{}),r.push(a._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return R(this,e)},HTMLElement.prototype.flatpickr=function(e){return R([this],e)});var C=function(e,t){return"string"==typeof e?R(window.document.querySelectorAll(e),t):e instanceof Node?R([e],t):R(e,t)};C.defaultConfig={},C.l10ns={en:D({},s),default:D({},s)},C.localize=function(e){C.l10ns.default=D(D({},C.l10ns.default),e)},C.setDefaults=function(e){C.defaultConfig=D(D({},C.defaultConfig),e)},C.parseDate=S({}),C.formatDate=T({}),C.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return R(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=C);const P=C;var O=n(1330),x=n(2543);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e,t){if("object"!=N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N(t)?t:t+""}var U=function(e){return!e.hasAttribute("data-enable-time")||e.dataset.enableTime},B=function(e,t){var n;
2e.length&&(0===(n=e[0]).getMonth()&&1===n.getDate())&&(t.altInput.value=String(e[0].getFullYear()))},j=function(e,t,n){n.element.hasAttribute("data-date-picker-default-january")&&(0===e.length&&(n.currentMonth=0,n.changeMonth(0)),B(e,n),function(e){var t=document.createElement("button");t.type="button",t.className="flatpickr-january-first-btn btn btn-sm btn-secondary w-100 mt-1";var n=function(){t.textContent="Année seule : ".concat(e.currentYear)};n(),t.addEventListener("click",function(t){t.preventDefault(),e.setDate(new Date(e.currentYear,0,1),!0),e.close()}),e.config.onYearChange.push(n),e.config.onMonthChange.push(n),e.calendarContainer.appendChild(t)}(n))},H=function(e,t,n){n.element.hasAttribute("data-date-picker-default-january")&&B(e,n)},G=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){var e=this;P.localize(O.French),this.initDatePicker(),this.initDateTimePicker(),this.initDatePickerWinmedia(),this.initSimpleTimePickerWrap(),this.initDateRangePicker(),this.initDateRangePickerWrap(),this.initDatePickerWrap(),window.Livewire&&(Livewire.on("datepicker:init",function(){e.initDatePicker()}),Livewire.on("datepickerwinmedia:init",function(){e.initDatePickerWinmedia()}),Livewire.on("datetimepicker:init",function(){e.initDateTimePicker()}),Livewire.on("datepickerwrap:init",function(){e.initDatePickerWrap()}),Livewire.on("contactformpicker:reset",function(){e.resetContacFormtPickers()}))}},{key:"initDateTimePicker",value:function(){var e=document.querySelectorAll("[data-datetime-picker]");(0,x.each)(e,function(e){P(e,{minDate:e.dataset.minDate||null,maxDate:e.dataset.maxDate||null,dateFormat:e.dataset.dateFormat||"Z",altInput:!0,time_24hr:!0,enableTime:U(e),noCalendar:e.hasAttribute("data-no-calendar")||!1,altFormat:e.dataset.altFormat||"j F Y H:i",mode:e.dataset.mode||"single",onChange:function(e,t,n){var r=n.element,i=r.closest("[wire\\:id]");if(i){var a=window.Livewire&&window.Livewire.find(i.getAttribute("wire:id"));if(a){var s=Array.from(r.attributes).find(function(e){return e.name.startsWith("wire:model")});s&&a.set(s.value,t)}}}})})}},{key:"initSimpleTimePickerWrap",value:function(){var e=document.querySelectorAll("[data-simple-time-picker-wrap]");(0,x.each)(e,function(e){P(e,{minDate:null,maxDate:null,defaultHour:e.dataset.defaulthour||12,dateFormat:"H:i",altInput:!0,time_24hr:!0,enableTime:!0,noCalendar:!0,altFormat:"H:i",wrap:!0})})}},{key:"initDatePicker",value:function(){P("[data-date-picker]",{altInput:!0,altFormat:"j F Y",dateFormat:"Z",onReady:j,onValueUpdate:H})}},{key:"initDatePickerWinmedia",value:function(){P("[data-date-picker-winmedia]",{altInput:!0,altFormat:"j F Y",dateFormat:"Y-m-d",onReady:j,onValueUpdate:H})}},{key:"initDateRangePicker",value:function(){P("[data-daterange-picker]",{mode:"range",altInput:!0,altFormat:"j F Y",dateFormat:"d/m/Y"})}},{key:"initDateRangePickerWrap",value:function(){P("[data-daterange-picker-wrap]",{mode:"range",altInput:!0,altFormat:"j F Y",dateFormat:"d/m/Y",wrap:!0})}},{key:"initDatePickerWrap",value:function(){P("[data-date-picker-wrap]",{altInput:!0,altFormat:"j F Y",dateFormat:"d/m/Y",wrap:!0})}},{key:"resetContacFormtPickers",value:function(){var e=document.querySelectorAll("[data-daterange-picker]");(0,x.each)(e,function(e){P(e,{mode:"range",altInput:!0,altFormat:"j F Y",dateFormat:"d/m/Y"}).clear()});var t=document.querySelectorAll("[data-date-picker-wrap]");(0,x.each)(t,function(e){P(e,{altInput:!0,altFormat:"j F Y",dateFormat:"d/m/Y",wrap:!0}).clear()});var n=document.querySelectorAll("[data-simple-time-picker-wrap]");(0,x.each)(n,function(e){P(e,{minDate:null,maxDate:null,defaultHour:e.dataset.defaulthour||12,dateFormat:"H:i",altInput:!0,time_24hr:!0,enableTime:!0,noCalendar:!0,altFormat:"H:i",wrap:!0}).clear()})}}],(t=null)&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},5050:function(e,t,n){!function(e){"use strict";var t={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«",8:"à«®",9:"૯",0:"૦"},n={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«":"7","à«®":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"àªàª¾àª¨à«àª¯à«àªàª°à«_ફà«àª¬à«àª°à«àªàª°à«_મારà«àª_àªàªªà«àª°àª¿àª²_મà«_àªà«àª¨_àªà«àª²àª¾àª_àªàªàª¸à«àª_સપà«àªà«àª®à«àª¬àª°_àªàªà«àªà«àª¬àª°_નવà«àª®à«àª¬àª°_ડિસà«àª®à«àª¬àª°".split("_"),monthsShort:"àªàª¾àª¨à«àª¯à«._ફà«àª¬à«àª°à«._મારà«àª_àªàªªà«àª°àª¿._મà«_àªà«àª¨_àªà«àª²àª¾._àªàª._સપà«àªà«._àªàªà«àªà«._નવà«._ડà
2ª¿àª¸à«.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સà«àª®àªµàª¾àª°_મàªàªàª³àªµàª¾àª°_બà«àª§à«àªµàª¾àª°_àªà«àª°à«àªµàª¾àª°_શà«àªà«àª°àªµàª¾àª°_શનિવાર".split("_"),weekdaysShort:"રવિ_સà«àª®_મàªàªàª³_બà«àª§à«_àªà«àª°à«_શà«àªà«àª°_શનિ".split("_"),weekdaysMin:"ર_સà«_મàª_બà«_àªà«_શà«_શ".split("_"),longDateFormat:{LT:"A h:mm વાàªà«àª¯à«",LTS:"A h:mm:ss વાàªà«àª¯à«",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાàªà«àª¯à«",LLLL:"dddd, D MMMM YYYY, A h:mm વાàªà«àª¯à«"},calendar:{sameDay:"[àªàª] LT",nextDay:"[àªàª¾àª²à«] LT",nextWeek:"dddd, LT",lastDay:"[àªàªàªàª¾àª²à«] LT",lastWeek:"[પાàªàª²àª¾] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહà«àª²àª¾",s:"àª
મà«àª પળà«",ss:"%d સà«àªàªàª¡",m:"àªàª મિનિàª",mm:"%d મિનિàª",h:"àªàª àªàª²àª¾àª",hh:"%d àªàª²àª¾àª",d:"àªàª દિવસ",dd:"%d દિવસ",M:"àªàª મહિનà«",MM:"%d મહિનà«",y:"àªàª વરà«àª·",yy:"%d વરà«àª·"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬à«à«®à«¯à«¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપà«àª°|સવાર|સાàªàª/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપà«àª°"===t?e>=10?e:e+12:"સાàªàª"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપà«àª°":e<20?"સાàªàª":"રાત"},week:{dow:0,doy:6}})}(n(5093))},5093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Vn(e,t,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=g()),e._pf}function _(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=y(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function v(e){var t=p(NaN);return null!=e?m(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var E=i.momentProperties=[],b=!1;function T(e,t){var n,r,i,a=E.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=y(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(i=t[r=E[n]])||(e[r]=i);return e}function S(e){T(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function L(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,t){var n=!0;return m(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,a,s,o=[],u=arguments.length;for(a=0;a<u;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])l(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];o.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var M,D={};function k(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),D[e]||(L(t),D[e]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){var t,n;for(n in e)l(e,n)&&(I(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var n,r=m({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=m({},r[n]));return r}function P(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var O={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function x(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return I(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 53,618 bytes, line 2
2|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},B={};function j(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(B[e]=i),t&&(B[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(F);for(t=0,n=r.length;t<n;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=H(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=I(r[i])?r[i].call(t,e):r[i];return a}}function Z(e,t){return e.isValid()?(t=$(t,e.localeData()),U[t]=U[t]||G(t),U[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(Y.lastIndex=0;n>=0&&Y.test(e);)e=e.replace(Y,r),Y.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var W="Invalid date";function V(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return I(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ae={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function se(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var oe,le=/\d/,ue=/\d\d/,ce=/\d{3}/,de=/\d{4}/,fe=/[+-]?\d{6}/,he=/\d\d?/,me=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,ye=/\d{1,4}/,_e=/[+-]?\d{1,6}/,ve=/\d+/,Ee=/[+-]?\d+/,be=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[+-]?\d+(\.\d{1,3})?/,we=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Le=/^[1-9]\d?/,Ae=/^([1-9]\d|\d)/;function Me(e,t,n){oe[e]=I(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return l(oe,e)?oe[e](t._strict,t._locale):new RegExp(ke(e))}function ke(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Re(t)),n}oe={};var Pe={};function Oe(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=Ce(e)}),r=e.length,n=0;n<r;n++)Pe[e[n]]=i}function xe(e,t){Oe(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Ne(e,t,n){null!=t&&l(Pe,e)&&Pe[e](t,n._a,n,e)}function Fe(e){return e%4==0&&e%100!=0||e%400==0}var Ye=0,Ue=1,Be=2,je=3,He=4,Ge=5,Ze=6,$e=7,ze=8;function qe(e){return Fe(e)?366:365}j("Y",0,0,function(){var e=this.year();return e<=9999?N(e,4):"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),Me("Y",Ee),Me("YY",he,ue),Me("YYYY",ye,de),Me("YYYYY",_e,fe),Me("YYYYYY",_e,fe),Oe(["YYYYY","YYYYYY"],Ye),Oe("YYYY",function(e,t){t[Ye]=2===e.length?i.parseTwoDigitYear(e):Ce(e)}),Oe("YY",function(e,t){t[Ye]=i.parseTwoDigitYear(e)}),Oe("Y",function(e,t){t[Ye]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return Ce(e)+(Ce(e)>68?1900:2e3)};var We,Ve=Xe("FullYear",!0);function Ke(){return Fe(this.year())}function Xe(e,t){return function(n){return null!=n?(Je(this,e,n),i.updateOffset(this,t),this):Qe(this,e)}}function Qe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Je(e,t,n){var r,i,a,s,o;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=29!==(o=e.date())||1!==s||Fe(a)?o:28,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function et(e){return I(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(I(this[e=re(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?Fe(e)?29:28:31-n%7%2}We=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),j("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Me("M",he,Le),Me("MM",he,ue),Me("MMM",function(e,t){return t.monthsShortRegex(e)}),Me("MMMM",function(e,t){return t.monthsRegex(e)}),Oe(["M","MM"],function(e,t){t[Ue]=Ce(e)-1}),Oe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ue]=i:y(n).invalidMonth=e});var it="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),at="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=we,lt=we;function ut(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ct(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=We.call(this._shortMonthsParse,s))?i:null:-1!==(i=We.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=We.call(this._shortMonthsParse,s))||-1!==(i=We.call(this._longMonthsParse,s))?i:null:-1!==(i=We.call(this._longMonthsParse,s))||-1!==(i=We.call(this._shortMonthsParse,s))?i:null}function ft(e,t,n){var r,i,a;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ht(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ce(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function mt(e){return null!=e?(ht(this,e),i.updateOffset(this,!0),this):Qe(this,"Month")}function pt(){return rt(this.year(),this.month())}function gt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _t(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],s=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r=Ie(this.monthsShort(n,"")),i=Ie(this.months(n,"")),a.push(r),s.push(i),o.push(i),o.push(r);a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function Et(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function bt(e,t,n){var r=7+t-n;return-(7+Et(e,0,r).getUTCDay()-t)%7+r-1}function Tt(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+bt(e,r,i);return o<=0?s=qe(a=e-1)+o:o>qe(e)?(a=e+1,s=o-qe(e)):(a=e,s=o),{year:a,dayOfYear:s}}function St(e,t,n){var r,i,a=bt(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+wt(i=e.year()-1,t,n):s>wt(e.year(),t,n)?(r=s-wt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function wt(e,t,n){var r=bt(e,t,n),i=bt(e+1,t,n);return(qe(e)-r+i)/7}function Lt(e){return St(e,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),Me("w",he,Le),Me("ww",he,ue),Me("W",he,Le),Me("WW",he,ue),xe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ce(e)});var At={dow:0,doy:6};function Mt(){return this._week.dow}function Dt(){return this._week.doy}function kt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Rt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("d",0,"do","day"),j("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),Me("d",he),Me("e",he),Me("E",he),Me("dd",function(e,t){return t.weekdaysMinRegex(e)}),Me("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Me("dddd",function(e,t){return t.weekdaysRegex(e)}),xe(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e}),xe(["d","e","E"],function(e,t,n,r){t[r]=Ce(e)});var Ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=we,Yt=we,Ut=we;function Bt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function jt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=We.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=We.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=We.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=We.call(this._weekdaysParse,s))||-1!==(i=We.call(this._shortWeekdaysParse,s))||-1!==(i=We.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=We.call(this._shortWeekdaysParse,s))||-1!==(i=We.call(this._weekdaysParse,s))||-1!==(i=We.call(this._minWeekdaysParse,s))?i:null:-1!==(i=We.call(this._minWeekdaysParse,s))||-1!==(i=We.call(this._weekdaysParse,s))||-1!==(i=We.call(this._shortWeekdaysParse,s))?i:null}function Zt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function $t(e){if(!this.isValid())return null!=e?this:NaN;var t=Qe(this,"Day");return null!=e?(e=Rt(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Wt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ut),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),i=Ie(this.weekdaysShort(n,"")),a=Ie(this.weekdays(n,"")),s.push(r),o.push(i),l.push(a),u.push(r),u.push(i),u.push(a);s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Qt),j("k",["kk",2],0,Jt),j("hmm",0,0,function(){return""+Qt.apply(this)+N(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Qt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),en("a",!0),en("A",!1),Me("a",tn),Me("A",tn),Me("H",he,Ae),Me("h",he,Le),Me("k",he,Le),Me("HH",he,ue),Me("hh",he,ue),Me("kk",he,ue),Me("hmm",me),Me("hmmss",pe),Me("Hmm",me),Me("Hmmss",pe),Oe(["H","HH"],je),Oe(["k","kk"],function(e,t,n){var r=Ce(e);t[je]=24===r?0:r}),Oe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Oe(["h","hh"],function(e,t,n){t[je]=Ce(e),y(n).bigHour=!0}),Oe("hmm",function(e,t,n){var r=e.length-2;t[je]=Ce(e.substr(0,r)),t[He]=Ce(e.substr(r)),y(n).bigHour=!0}),Oe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[je]=Ce(e.substr(0,r)),t[He]=Ce(e.substr(r,2)),t[Ge]=Ce(e.substr(i)),y(n).bigHour=!0}),Oe("Hmm",function(e,t,n){var r=e.length-2;t[je]=Ce(e.substr(0,r)),t[He]=Ce(e.substr(r))}),Oe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[je]=Ce(e.substr(0,r)),t[He]=Ce(e.substr(r,2)),t[Ge]=Ce(e.substr(i))});var rn=/[ap]\.?m?\.?/i,an=Xe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,ln={calendar:O,longDateFormat:z,invalidDate:W,ordinal:K,dayOfMonthOrdinalParse:X,relativeTime:J,months:it,monthsShort:at,week:At,weekdays:Ot,weekdaysMin:Nt,weekdaysShort:xt,meridiemParse:rn},un={},cn={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=fn(e[a]).split("-")).length,n=(n=fn(e[a+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}a++}return on}function mn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function pn(t){var r=null;if(void 0===un[t]&&e&&e.exports&&mn(t))try{r=on._abbr,n(5358)("./"+t),gn(r)}catch(e){un[t]=null}return un[t]}function gn(e,t){var n;return e&&((n=c(t)?vn(e):yn(e,t))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new P(C(r,t)),cn[e]&&cn[e].forEach(function(e){yn(e.name,e.config)}),gn(e),un[e]}return delete un[e],null}function _n(e,t){if(null!=t){var n,r,i=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(C(un[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=C(i,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=un[e],un[e]=n),gn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===gn()&&gn(e)):null!=un[e]&&delete un[e]);return un[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!s(e)){if(t=pn(e))return t;e=[e]}return hn(e)}function En(){return M(un)}function bn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Be]<1||n[Be]>rt(n[Ye],n[Ue])?Be:n[je]<0||n[je]>24||24===n[je]&&(0!==n[He]||0!==n[Ge]||0!==n[Ze])?je:n[He]<0||n[He]>59?He:n[Ge]<0||n[Ge]>59?Ge:n[Ze]<0||n[Ze]>999?Ze:-1,y(e)._overflowDayOfYear&&(t<Ye||t>Be)&&(t=Be),y(e)._overflowWeeks&&-1===t&&(t=$e),y(e)._overflowWeekday&&-1===t&&(t=ze),y(e).overflow=t),e}var Tn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,Ln=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],An=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mn=/^\/?Date\((-?\d+)/i,Dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(e){var t,n,r,i,a,s,o=e._i,l=Tn.exec(o)||Sn.exec(o),u=Ln.length,c=An.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(Ln[t][1].exec(l[1])){i=Ln[t][0],r=!1!==Ln[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(An[t][1].exec(l[3])){a=(l[2]||" ")+An[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!wn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),Hn(e)}else e._isValid=!1}function Rn(e,t,n,r,i,a){var s=[Cn(e),at.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Cn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function On(e,t,n){return!e||xt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function xn(e,t,n){if(e)return kn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Nn(e){var t,n=Dn.exec(Pn(e._i));if(n){if(t=Rn(n[4],n[3],n[2],n[5],n[6],n[7]),!On(n[1],t,e))return;e._a=t,e._tzm=xn(n[8],n[9],n[10]),e._d=Et.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=Mn.exec(e._i);null===t?(In(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Yn(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Bn(e){var t,n,r,i,a,s=[];if(!e._d){for(r=Un(e),e._w&&null==e._a[Be]&&null==e._a[Ue]&&jn(e),null!=e._dayOfYear&&(a=Yn(e._a[Ye],r[Ye]),(e._dayOfYear>qe(a)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=Et(a,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[je]&&0===e._a[He]&&0===e._a[Ge]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?Et:vt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function jn(e){var t,n,r,i,a,s,o,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,n=Yn(t.GG,e._a[Ye],St(Kn(),1,4).year),r=Yn(t.W,1),((i=Yn(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=St(Kn(),a,s),n=Yn(t.gg,e._a[Ye],u.year),r=Yn(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>wt(n,a,s)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(o=Tt(n,r,i,a,s),e._a[Ye]=o.year,e._dayOfYear=o.dayOfYear)}function Hn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,a,s,o,l,u=""+e._i,c=u.length,d=0;for(l=(r=$(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)a=r[t],(n=(u.match(De(a,e))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&y(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),d+=n.length),B[a]?(n?y(e).empty=!1:y(e).unusedTokens.push(a),Ne(a,n,e)):e._strict&&!n&&y(e).unusedTokens.push(a);y(e).charsLeftOver=c-d,u.length>0&&y(e).unusedInput.push(u),e._a[je]<=12&&!0===y(e).bigHour&&e._a[je]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[je]=Gn(e._locale,e._a[je],e._meridiem),null!==(o=y(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(o,e._a[Ye])),Bn(e),bn(e)}else Nn(e);else In(e)}function Gn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Zn(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,s=!1,t=T({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Hn(t),_(t)&&(s=!0),a+=y(t).charsLeftOver,a+=10*y(t).unusedTokens.length,y(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));m(e,n||t)}function $n(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Bn(e)}}function zn(e){var t=new S(bn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new S(bn(t)):(f(t)?e._d=t:s(n)?Zn(e):n?Hn(e):Wn(e),_(e)||(e._d=null),e))}function Wn(e){var t=e._i;c(t)?e._d=new Date(i.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Fn(e):s(t)?(e._a=h(t.slice(0),function(e){return parseInt(e,10)}),Bn(e)):o(t)?$n(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Vn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&u(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,zn(a)}function Kn(e,t,n,r){return Vn(e,t,n,r,!1)}i.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Xn=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Qn=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Jn(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(l(e,t)&&(-1===We.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==Ce(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return kr(NaN)}function or(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ir(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function lr(e){return e instanceof or}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&Ce(e[r])!==Ce(t[r]))&&s++;return s+a}function dr(e,t){j(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}dr("Z",":"),dr("ZZ",""),Me("Z",Te),Me("ZZ",Te),Oe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=hr(Te,e)});var fr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+Ce(n[2]))?0:"+"===n[0]?r:-r}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||f(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Kn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hr(Te,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=pr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Or(this,kr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _r(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function Er(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hr(be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function br(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Tr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return T(t,this),(t=qn(t))._a?(e=t._isUTC?p(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wr(){return!!this.isValid()&&!this._isUTC}function Lr(){return!!this.isValid()&&this._isUTC}function Ar(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(e,t){var n,r,i,a=e,s=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=Mr.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:Ce(s[Be])*n,h:Ce(s[je])*n,m:Ce(s[He])*n,s:Ce(s[Ge])*n,ms:Ce(ur(1e3*s[Ze]))*n}):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,a={y:Ir(s[2],n),M:Ir(s[3],n),w:Ir(s[4],n),d:Ir(s[5],n),h:Ir(s[6],n),m:Ir(s[7],n),s:Ir(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Cr(Kn(a.from),Kn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Ir(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Rr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Cr(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Rr(e,t):((n=Rr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Or(this,kr(n,r),e),this}}function Or(e,t,n,r){var a=t._milliseconds,s=ur(t._days),o=ur(t._months);e.isValid()&&(r=r??!0,o&&ht(e,Qe(e,"Month")+o*n),s&&Je(e,"Date",Qe(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,s||o))}kr.fn=or.prototype,kr.invalid=sr;var xr=Pr(1,"add"),Nr=Pr(-1,"subtract");function Fr(e){return"string"==typeof e||e instanceof String}function Yr(e){return w(e)||f(e)||Fr(e)||d(e)||Br(e)||Ur(e)||null==e}function Ur(e){var t,n,r=o(e)&&!u(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(t=0;t<s;t+=1)n=a[t],i=i||l(e,n);return r&&i}function Br(e){var t=s(e),n=!1;return t&&(n=0===e.filter(function(t){return!d(t)&&Fr(e)}).length),t&&n}function jr(e){var t,n,r=o(e)&&!u(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||l(e,n);return r&&i}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gr(e,t){1===arguments.length&&(arguments[0]?Yr(arguments[0])?(e=arguments[0],t=void 0):jr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),r=mr(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",s=t&&(I(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Kn(n)))}function Zr(){return new S(this)}function $r(e,t){var n=w(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function zr(e,t){var n=w(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var i=w(e)?e:Kn(e),a=w(t)?t:Kn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Wr(e,t){var n,r=w(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Vr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=mr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Qr(this,r)/12;break;case"month":a=Qr(this,r);break;case"quarter":a=Qr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Re(a)}function Qr(e,t){if(e.date()<t.date())return-Qr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Z(n,"Z")):Z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Z(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(w(e)&&e.isValid()||Kn(e).isValid())?kr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Kn(),e)}function ai(e,t){return this.isValid()&&(w(e)&&e.isValid()||Kn(e).isValid())?kr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Kn(),e)}function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function ui(){return this._locale}var ci=1e3,di=60*ci,fi=60*di,hi=3506328*fi;function mi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function gi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mi(t+(this._isUTC?0:this.utcOffset()*di),fi);break;case"minute":t=this._d.valueOf(),t-=mi(t,di);break;case"second":t=this._d.valueOf(),t-=mi(t,ci)}return this._d.setTime(t),i.updateOffset(this,!0),this}function _i(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-mi(t+(this._isUTC?0:this.utcOffset()*di),fi)-1;break;case"minute":t=this._d.valueOf(),t+=di-mi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ci-mi(t,ci)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function Ei(){return Math.floor(this.valueOf()/1e3)}function bi(){return new Date(this.valueOf())}function Ti(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wi(){return this.isValid()?this.toISOString():null}function Li(){return _(this)}function Ai(){return m({},y(this))}function Mi(){return y(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ki(e,t){var n,r,a,s=this._eras||vn("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(a=i(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=i(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function Ii(e,t,n){var r,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),o=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(o===e)return l[r]}else if([a,s,o].indexOf(e)>=0)return l[r]}function Ri(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Ci(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Oi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function xi(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-i(a[e].since).year())*n+a[e].offset;return this.year()}function Ni(e){return l(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Fi(e){return l(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Yi(e){return l(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ui(e,t){return t.erasAbbrRegex(e)}function Bi(e,t){return t.erasNameRegex(e)}function ji(e,t){return t.erasNarrowRegex(e)}function Hi(e,t){return t._eraYearOrdinalRegex||ve}function Gi(){var e,t,n,r,i,a=[],s=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=Ie(u[e].name),r=Ie(u[e].abbr),i=Ie(u[e].narrow),s.push(n),a.push(r),o.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Zi(e,t){j(0,[e,e.length],0,t)}function $i(e){return Xi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zi(e){return Xi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return wt(this.year(),1,4)}function Wi(){return wt(this.isoWeekYear(),1,4)}function Vi(){var e=this.localeData()._week;return wt(this.year(),e.dow,e.doy)}function Ki(){var e=this.localeData()._week;return wt(this.weekYear(),e.dow,e.doy)}function Xi(e,t,n,r,i){var a;return null==e?St(this,r,i).year:(t>(a=wt(e,r,i))&&(t=a),Qi.call(this,e,t,n,r,i))}function Qi(e,t,n,r,i){var a=Tt(e,t,n,r,i),s=Et(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Ji(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Me("N",Ui),Me("NN",Ui),Me("NNN",Ui),Me("NNNN",Bi),Me("NNNNN",ji),Oe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e}),Me("y",ve),Me("yy",ve),Me("yyy",ve),Me("yyyy",ve),Me("yo",Hi),Oe(["y","yy","yyy","yyyy"],Ye),Oe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ye]=n._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)}),j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Zi("gggg","weekYear"),Zi("ggggg","weekYear"),Zi("GGGG","isoWeekYear"),Zi("GGGGG","isoWeekYear"),Me("G",Ee),Me("g",Ee),Me("GG",he,ue),Me("gg",he,ue),Me("GGGG",ye,de),Me("gggg",ye,de),Me("GGGGG",_e,fe),Me("ggggg",_e,fe),xe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ce(e)}),xe(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),j("Q",0,"Qo","quarter"),Me("Q",le),Oe("Q",function(e,t){t[Ue]=3*(Ce(e)-1)}),j("D",["DD",2],"Do","date"),Me("D",he,Le),Me("DD",he,ue),Me("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],Be),Oe("Do",function(e,t){t[Be]=Ce(e.match(he)[0])});var ea=Xe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}j("DDD",["DDDD",3],"DDDo","dayOfYear"),Me("DDD",ge),Me("DDDD",ce),Oe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ce(e)}),j("m",["mm",2],0,"minute"),Me("m",he,Ae),Me("mm",he,ue),Oe(["m","mm"],He);var na=Xe("Minutes",!1);j("s",["ss",2],0,"second"),Me("s",he,Ae),Me("ss",he,ue),Oe(["s","ss"],Ge);var ra,ia,aa=Xe("Seconds",!1);for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Me("S",ge,le),Me("SS",ge,ue),Me("SSS",ge,ce),ra="SSSS";ra.length<=9;ra+="S")Me(ra,ve);function sa(e,t){t[Ze]=Ce(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")Oe(ra,sa);function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=Xe("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var ua=S.prototype;function ca(e){return Kn(1e3*e)}function da(){return Kn.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=xr,ua.calendar=Gr,ua.clone=Zr,ua.diff=Xr,ua.endOf=_i,ua.format=ni,ua.from=ri,ua.fromNow=ii,ua.to=ai,ua.toNow=si,ua.get=et,ua.invalidAt=Mi,ua.isAfter=$r,ua.isBefore=zr,ua.isBetween=qr,ua.isSame=Wr,ua.isSameOrAfter=Vr,ua.isSameOrBefore=Kr,ua.isValid=Li,ua.lang=li,ua.locale=oi,ua.localeData=ui,ua.max=Qn,ua.min=Xn,ua.parsingFlags=Ai,ua.set=tt,ua.startOf=yi,ua.subtract=Nr,ua.toArray=Ti,ua.toObject=Si,ua.toDate=bi,ua.toISOString=ei,ua.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=wi,ua.toString=Jr,ua.unix=Ei,ua.valueOf=vi,ua.creationData=Di,ua.eraName=Ci,ua.eraNarrow=Pi,ua.eraAbbr=Oi,ua.eraYear=xi,ua.year=Ve,ua.isLeapYear=Ke,ua.weekYear=$i,ua.isoWeekYear=zi,ua.quarter=ua.quarters=Ji,ua.month=mt,ua.daysInMonth=pt,ua.week=ua.weeks=kt,ua.isoWeek=ua.isoWeeks=It,ua.weeksInYear=Vi,ua.weeksInWeekYear=Ki,ua.isoWeeksInYear=qi,ua.isoWeeksInISOWeekYear=Wi,ua.date=ea,ua.day=ua.days=$t,ua.weekday=zt,ua.isoWeekday=qt,ua.dayOfYear=ta,ua.hour=ua.hours=an,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ia,ua.utcOffset=gr,ua.utc=_r,ua.local=vr,ua.parseZone=Er,ua.hasAlignedHourOffset=br,ua.isDST=Tr,ua.isLocal=wr,ua.isUtcOffset=Lr,ua.isUtc=Ar,ua.isUTC=Ar,ua.zoneAbbr=oa,ua.zoneName=la,ua.dates=A("dates accessor is deprecated. Use date instead.",ea),ua.months=A("months accessor is deprecated. Use month instead",mt),ua.years=A("years accessor is deprecated. Use year instead",Ve),ua.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),ua.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var ha=P.prototype;function ma(e,t,n,r){var i=vn(),a=p().set(r,t);return i[n](a,e)}function pa(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return ma(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ma(e,r,n,"month");return i}function ga(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,a=vn(),s=e?a._week.dow:0,o=[];if(null!=n)return ma(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=ma(t,(i+s)%7,r,"day");return o}function ya(e,t){return pa(e,t,"months")}function _a(e,t){return pa(e,t,"monthsShort")}function va(e,t,n){return ga(e,t,n,"weekdays")}function Ea(e,t,n){return ga(e,t,n,"weekdaysShort")}function ba(e,t,n){return ga(e,t,n,"weekdaysMin")}ha.calendar=x,ha.longDateFormat=q,ha.invalidDate=V,ha.ordinal=Q,ha.preparse=fa,ha.postformat=fa,ha.relativeTime=ee,ha.pastFuture=te,ha.set=R,ha.eras=ki,ha.erasParse=Ii,ha.erasConvertYear=Ri,ha.erasAbbrRegex=Fi,ha.erasNameRegex=Ni,ha.erasNarrowRegex=Yi,ha.months=ut,ha.monthsShort=ct,ha.monthsParse=ft,ha.monthsRegex=yt,ha.monthsShortRegex=gt,ha.week=Lt,ha.firstDayOfYear=Dt,ha.firstDayOfWeek=Mt,ha.weekdays=Bt,ha.weekdaysMin=Ht,ha.weekdaysShort=jt,ha.weekdaysParse=Zt,ha.weekdaysRegex=Wt,ha.weekdaysShortRegex=Vt,ha.weekdaysMinRegex=Kt,ha.isPM=nn,ha.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=A("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=A("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ta=Math.abs;function Sa(){var e=this._data;return this._milliseconds=Ta(this._milliseconds),this._days=Ta(this._days),this._months=Ta(this._months),e.milliseconds=Ta(e.milliseconds),e.seconds=Ta(e.seconds),e.minutes=Ta(e.minutes),e.hours=Ta(e.hours),e.months=Ta(e.months),e.years=Ta(e.years),this}function wa(e,t,n,r){var i=kr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function La(e,t){return wa(this,e,t,1)}function Aa(e,t){return wa(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function Da(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ma(Ia(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=Re(a/1e3),l.seconds=e%60,t=Re(e/60),l.minutes=t%60,n=Re(t/60),l.hours=n%24,s+=Re(n/24),o+=i=Re(ka(s)),s-=Ma(Ia(i)),r=Re(o/12),o%=12,l.days=s,l.months=o,l.years=r,this}function ka(e){return 4800*e/146097}function Ia(e){return 146097*e/4800}function Ra(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+ka(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ia(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ca(e){return function(){return this.as(e)}}var Pa=Ca("ms"),Oa=Ca("s"),xa=Ca("m"),Na=Ca("h"),Fa=Ca("d"),Ya=Ca("w"),Ua=Ca("M"),Ba=Ca("Q"),ja=Ca("y"),Ha=Pa;function Ga(){return kr(this)}function Za(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function $a(e){return function(){return this.isValid()?this._data[e]:NaN}}var za=$a("milliseconds"),qa=$a("seconds"),Wa=$a("minutes"),Va=$a("hours"),Ka=$a("days"),Xa=$a("months"),Qa=$a("years");function Ja(){return Re(this.days()/7)}var es=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ns(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function rs(e,t,n,r){var i=kr(e).abs(),a=es(i.as("s")),s=es(i.as("m")),o=es(i.as("h")),l=es(i.as("d")),u=es(i.as("M")),c=es(i.as("w")),d=es(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];
2return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ns.apply(null,f)}function is(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ts;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=rs(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var os=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function us(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,s,o,l=os(this._milliseconds)/1e3,u=os(this._days),c=os(this._months),d=this.asSeconds();return d?(e=Re(l/60),t=Re(e/60),l%=60,e%=60,n=Re(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=ls(this._months)!==ls(d)?"-":"",s=ls(this._days)!==ls(d)?"-":"",o=ls(this._milliseconds)!==ls(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var cs=or.prototype;return cs.isValid=ar,cs.abs=Sa,cs.add=La,cs.subtract=Aa,cs.as=Ra,cs.asMilliseconds=Pa,cs.asSeconds=Oa,cs.asMinutes=xa,cs.asHours=Na,cs.asDays=Fa,cs.asWeeks=Ya,cs.asMonths=Ua,cs.asQuarters=Ba,cs.asYears=ja,cs.valueOf=Ha,cs._bubble=Da,cs.clone=Ga,cs.get=Za,cs.milliseconds=za,cs.seconds=qa,cs.minutes=Wa,cs.hours=Va,cs.days=Ka,cs.weeks=Ja,cs.months=Xa,cs.years=Qa,cs.humanize=ss,cs.toISOString=us,cs.toString=us,cs.toJSON=us,cs.locale=oi,cs.localeData=ui,cs.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),cs.lang=li,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Me("x",Ee),Me("X",Se),Oe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Oe("x",function(e,t,n){n._d=new Date(Ce(e))}),i.version="2.30.1",a(Kn),i.fn=ua,i.min=er,i.max=tr,i.now=nr,i.utc=p,i.unix=ca,i.months=ya,i.isDate=f,i.locale=gn,i.invalid=v,i.duration=kr,i.isMoment=w,i.weekdays=va,i.parseZone=da,i.localeData=vn,i.isDuration=lr,i.monthsShort=_a,i.weekdaysMin=ba,i.defineLocale=yn,i.updateLocale=_n,i.locales=En,i.weekdaysShort=Ea,i.normalizeUnits=re,i.relativeTimeRounding=is,i.relativeTimeThreshold=as,i.calendarFormat=Hr,i.prototype=ua,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},5096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Åubat_Mart_Nisan_Mayıs_Haziran_Temmuz_AÄustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Åub_Mar_Nis_May_Haz_Tem_AÄu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_ÃarÅamba_PerÅembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Ãar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ãa_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÃÃ":n?"ös":"ÃS"},meridiemParse:/öö|ÃÃ|ös|ÃS/,isPM:function(e){return"ös"===e||"ÃS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}})}(n(5093))},5142:e=>{var t;self,t=()=>(()=>{var e={2690:(e,t,n)=>{"use strict";function r(){for(var e=document.cookie.split(";"),t=[],n=new RegExp("^\\s*([^=]+)\\s*=\\s*(.*?)$"),r=0;r<e.length;r++){var i=e[r],a=n.exec(i);null!==a&&t.push({name:a[1],value:a[2]})}return t}function i(e,t,n){var r=e+"=; Max-Age=-99999999;";document.cookie=r,r+=" path="+(t||"/")+";",document.cookie=r,void 0!==n&&(r+=" domain="+n+";",document.cookie=r)}n.d(t,{default:()=>I}),n(9305),n(2733),n(4701),n(1678),n(4776),n(4382),n(9892),n(4962),n(6584),n(9336),n(4754),n(1908),n(94),n(7132),n(6457),n(8908),n(3810),n(8557),n(646),n(5021),n(3687),n(2745),n(3994),n(3062),n(4062),n(3630),n(2367);var a=n(5482);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t,n){return t=u(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}
vendor: 12,653 bytes, line 2
2function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function m(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}n(6437),n(2697),n(1359);var g=function(){function e(){f(this,e),this.value=null}return m(e,[{key:"get",value:function(){return this.value}},{key:"set",value:function(e){this.value=e}},{key:"delete",value:function(){this.value=null}}]),e}(),y=function(){function e(t){f(this,e),this.cookieName=t.storageName,this.cookieDomain=t.cookieDomain,this.cookiePath=t.cookiePath,this.cookieExpiresAfterDays=t.cookieExpiresAfterDays}return m(e,[{key:"get",value:function(){var e=function(e){for(var t=r(),n=0;n<t.length;n++)if(t[n].name===e)return t[n];return null}(this.cookieName);return e?e.value:null}},{key:"set",value:function(e){return function(e,t,n,r,i){var a="";if(n){var s=new Date;s.setTime(s.getTime()+24*n*60*60*1e3),a="; expires="+s.toUTCString()}void 0!==r&&(a+="; domain="+r),a+=void 0!==i?"; path="+i:"; path=/",document.cookie=e+"="+(t||"")+a+"; SameSite=Lax"}(this.cookieName,e,this.cookieExpiresAfterDays,this.cookieDomain,this.cookiePath)}},{key:"delete",value:function(){return i(this.cookieName)}}]),e}(),_=function(){function e(t,n){f(this,e),this.key=t.storageName,this.handle=n}return m(e,[{key:"get",value:function(){return this.handle.getItem(this.key)}},{key:"getWithKey",value:function(e){return this.handle.getItem(e)}},{key:"set",value:function(e){return this.handle.setItem(this.key,e)}},{key:"setWithKey",value:function(e,t){return this.handle.setItem(e,t)}},{key:"delete",value:function(){return this.handle.removeItem(this.key)}},{key:"deleteWithKey",value:function(e){return this.handle.removeItem(e)}}]),e}(),v=function(e){function t(e){return f(this,t),o(this,t,[e,localStorage])}return c(t,e),m(t)}(_),E=function(e){function t(e){return f(this,t),o(this,t,[e,sessionStorage])}return c(t,e),m(t)}(_);const b={cookie:y,test:g,localStorage:v,sessionStorage:E};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=L(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){var r,i,a;r=e,i=t,a=n[t],(i=k(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e){var t=function(e){if("object"!=T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:String(t)}var I=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.store=void 0!==n?n:new b[this.storageMethod](this),void 0===this.store&&(this.store=b.cookie),this.auxiliaryStore=void 0!==r?r:new E(this),this.consents=this.defaultConsents,this.confirmed=!1,this.changed=!1,this.states={},this.initialized={},this.executedOnce={},this.watchers=new Set([]),this.loadConsents(),this.applyConsents(),this.savedConsents=D({},this.consents)}var t,n;return t=e,(n=[{key:"storageMethod",get:function(){return this.config.storageMethod||"cookie"}},{key:"storageName",get:function(){return this.config.storageName||this.config.cookieName||"klaro"}},{key:"cookieDomain",get:function(){return this.config.cookieDomain||void 0}},{key:"cookiePath",get:function(){return this.config.cookiePath||void 0}},{key:"cookieExpiresAfterDays",get:function(){return this.config.cookieExpiresAfterDays||120}},{key:"defaultConsents",get:function(){for(var e={},t=0;t<this.config.services.length;t++){var n=this.config.services[t];e[n.name]=this.getDefaultConsent(n)}return e}},{key:"watch",value:function(e){this.watchers.has(e)||this.watchers.add(e)}},{key:"unwatch",value:function(e){this.watchers.has(e)&&this.watchers.delete(e)}},{key:"notify",value:function(e,t){var n=this;this.watchers.forEach(function(r){r.update(n,e,t)})}},{key:"getService",value:function(e){var t=this.config.services.filter(function(t){return t.name===e});if(t.length>0)return t[0]}},{key:"getDefaultConsent",value:function(e){var t=e.default||e.required;return void 0===t&&(t=this.config.default),void 0===t&&(t=!1),t}},{key:"changeAll",value:function(e){var t=this,n=0;return this.config.services.filter(function(e){return!e.contextualConsentOnly}).map(function(r){r.required||t.config.required||e?t.updateConsent(r.name,!0)&&n++:t.updateConsent(r.name,!1)&&n++}),n}},{key:"updateConsent",value:function(e,t){var n=(this.consents[e]||!1)!==t;return this.consents[e]=t,this.notify("consents",this.consents),n}},{key:"resetConsents",value:function(){this.consents=this.defaultConsents,this.states={},this.confirmed=!1,this.applyConsents(),this.savedConsents=D({},this.consents),this.store.delete(),this.notify("consents",this.consents)}},{key:"getConsent",value:function(e){return this.consents[e]||!1}},{key:"loadConsents",value:function(){var e=this.store.get();return null!==e&&(this.consents=JSON.parse(decodeURIComponent(e)),this._checkConsents(),this.notify("consents",this.consents)),this.consents}},{key:"saveAndApplyConsents",value:function(e){this.saveConsents(e),this.applyConsents()}},{key:"changedConsents",value:function(){for(var e={},t=0,n=Object.entries(this.consents);t<n.length;t++){var r=w(n[t],2),i=r[0],a=r[1];this.savedConsents[i]!==a&&(e[i]=a)}return e}},{key:"saveConsents",value:function(e){var t=encodeURIComponent(JSON.stringify(this.consents));this.store.set(t),this.confirmed=!0,this.changed=!1;var n=this.changedConsents();this.savedConsents=D({},this.consents),this.notify("saveConsents",{changes:n,consents:this.consents,type:e||"script"})}},{key:"applyConsents",value:function(e,t,n){function r(e,t){if(void 0!==e)return("function"==typeof e?e:new Function("opts",e))(t)}for(var i=0,a=0;a<this.config.services.length;a++){var s=this.config.services[a];if(void 0===n||n===s.name){var o=s.vars||{},l={service:s,config:this.config,vars:o};this.initialized[s.name]||(this.initialized[s.name]=!0,r(s.onInit,l))}}for(var u=0;u<this.config.services.length;u++){var c=this.config.services[u];if(void 0===n||n===c.name){var d=this.states[c.name],f=c.vars||{},h=void 0!==c.optOut?c.optOut:this.config.optOut||!1,m=void 0!==c.required?c.required:this.config.required||!1,p=this.confirmed||h||e||t,g=this.getConsent(c.name)&&p||m,y={service:c,config:this.config,vars:f,consents:this.consents,confirmed:this.confirmed};d!==g&&i++,e||(r(g?c.onAccept:c.onDecline,y),this.updateServiceElements(c,g),this.updateServiceStorage(c,g),void 0!==c.callback&&c.callback(g,c),void 0!==this.config.callback&&this.config.callback(g,c),this.states[c.name]=g)}}return this.notify("applyConsents",i,n),i}},{key:"updateServiceElements",value:function(e,t){if(t){if(e.onlyOnce&&this.executedOnce[e.name])return;this.executedOnce[e.name]=!0}for(var n=document.querySelectorAll("[data-name='"+e.name+"']"),r=0;r<n.length;r++){var i=n[r],s=i.parentElement,o=(0,a.RT)(i),l=o.type,u=o.src,c=o.href,d=["href","src","type"];if("placeholder"!==l)if("IFRAME"===i.tagName){if(t&&i.src===u){console.debug("Skipping ".concat(i.tagName," for service ").concat(e.name,", as it already has the correct type..."));continue}var f,h=document.createElement(i.tagName),m=S(i.attributes);try{for(m.s();!(f=m.n()).done;){var p=f.value;h.setAttribute(p.name,p.value)}}catch(e){m.e(e)}finally{m.f()}h.innerText=i.innerText,h.text=i.text,t?(void 0!==o["original-display"]&&(h.style.display=o["original-display"]),void 0!==o.src&&(h.src=o.src)):(h.src="",void 0!==o["modified-by-klaro"]&&void 0!==o["original-display"]?h.setAttribute("data-original-display",o["original-display"]):(void 0!==i.style.display&&h.setAttribute("data-original-display",i.style.display),h.setAttribute("data-modified-by-klaro","yes")),h.style.display="none"),s.insertBefore(h,i),s.removeChild(i)}else if("SCRIPT"===i.tagName||"LINK"===i.tagName){if(t&&i.type===(l||"")&&i.src===u){console.debug("Skipping ".concat(i.tagName," for service ").concat(e.name,", as it already has the correct type or src..."));continue}var g,y=document.createElement(i.tagName),_=S(i.attributes);try{for(_.s();!(g=_.n()).done;){var v=g.value;y.setAttribute(v.name,v.value)}}catch(e){_.e(e)}finally{_.f()}y.innerText=i.innerText,y.text=i.text,t?(y.type=l||"",void 0!==u&&(y.src=u),void 0!==c&&(y.href=c)):y.type="text/plain",s.insertBefore(y,i),s.removeChild(i)}else{if(t){var E,b=S(d);try{for(b.s();!(E=b.n()).done;){var T=E.value,w=o[T];void 0!==w&&(void 0===o["original-"+T]&&(o["original-"+T]=i[T]),i[T]=w)}}catch(e){b.e(e)}finally{b.f()}void 0!==o.title&&(i.title=o.title),void 0!==o["original-display"]?i.style.display=o["original-display"]:i.style.removeProperty("display")}else{void 0!==o.title&&i.removeAttribute("title"),void 0===o["original-display"]&&void 0!==i.style.display&&(o["original-display"]=i.style.display),i.style.display="none";var L,A=S(d);try{for(A.s();!(L=A.n()).done;){var M=L.value;void 0!==o[M]&&(void 0!==o["original-"+M]?i[M]=o["original-"+M]:i.removeAttribute(M))}}catch(e){A.e(e)}finally{A.f()}}(0,a.X7)(o,i)}else t?(i.style.display="none",o["original-display"]=i.style.display):i.style.display=o["original-display"]||"block"}}},{key:"updateServiceStorage",value:function(e,t){if(!t&&void 0!==e.cookies&&e.cookies.length>0)for(var n=r(),a=0;a<e.cookies.length;a++){var s=e.cookies[a],o=void 0,l=void 0;if(s instanceof Array){var u=w(s,3);s=u[0],o=u[1],l=u[2]}else if(s instanceof Object&&!(s instanceof RegExp)){var c=s;s=c.pattern,o=c.path,l=c.domain}if(void 0!==s){s instanceof RegExp||(s=s.startsWith("^")?new RegExp(s):new RegExp("^"+s.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+"$"));for(var d=0;d<n.length;d++){var f=n[d];null!==s.exec(f.name)&&(console.debug("Deleting cookie:",f.name,"Matched pattern:",
2s,"Path:",o,"Domain:",l),i(f.name,o,l),void 0===l&&i(f.name,o,"."+window.location.hostname))}}}}},{key:"_checkConsents",value:function(){for(var e=!0,t=new Set(this.config.services.map(function(e){return e.name})),n=new Set(Object.keys(this.consents)),r=0,i=Object.keys(this.consents);r<i.length;r++){var a=i[r];t.has(a)||delete this.consents[a]}var s,o=S(this.config.services);try{for(o.s();!(s=o.n()).done;){var l=s.value;n.has(l.name)||(this.consents[l.name]=this.getDefaultConsent(l),e=!1)}}catch(e){o.e(e)}finally{o.f()}this.confirmed=e,e||(this.changed=!0)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5482:(e,t,n)=>{"use strict";function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){if(null!==document.currentScript&&void 0!==document.currentScript)return document.currentScript;for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var r=t[n];if(r.src.includes(e))return r}return null}function s(e){for(var t={},n=0;n<e.attributes.length;n++){var r=e.attributes[n];r.name.startsWith("data-")&&(t[r.name.slice(5)]=r.value)}return t}function o(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],a=e[i];t[i]!==a&&t.setAttribute("data-"+i,a)}}function l(e){var t,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=r(e))){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==t.return||t.return()}finally{if(o)throw a}}}}(document.querySelectorAll("style[data-context=klaro-styles]"));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=i.innerText;void 0!==i.styleSheet&&(a=i.styleSheet.cssText);for(var s=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=l[o])||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,s=[],o=!0,l=!1;try{for(i=(t=t.call(e)).next;!(o=(n=i.call(t)).done)&&(s.push(n.value),2!==s.length);o=!0);}catch(e){l=!0,r=e}finally{try{if(!o&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e)||r(e,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],i=t[1],s=new RegExp("([a-z0-9-]+):[^;]+;[\\s\\n]*\\1:\\s*var\\(--"+n+",\\s*[^\\)]+\\)","g");a=a.replace(s,function(e,t){return"".concat(t,": ").concat(i,"; ").concat(t,": var(--").concat(n,", ").concat(i,")")})},o=0,l=Object.entries(e);o<l.length;o++)s();var u=document.createElement("style");u.setAttribute("type","text/css"),u.setAttribute("data-context","klaro-styles"),void 0!==u.styleSheet?u.styleSheet.cssText=a:u.innerText=a,i.parentElement.appendChild(u),i.parentElement.removeChild(i)}}catch(e){n.e(e)}finally{n.f()}}n.d(t,{N3:()=>l,RT:()=>s,X7:()=>o,XZ:()=>a}),n(9305),n(2733),n(4701),n(4776),n(9892),n(6281),n(4962),n(9336),n(1908),n(7132),n(3810),n(8557),n(646),n(5021),n(3687),n(9425),n(3994),n(3062),n(4062),n(2367)},679:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8645),i=n.n(r),a=n(278),s=n.n(a)()(i());s
vendor: 19,632 bytes, line 2
2.push([e.id,'.klaro{font-family:inherit;font-family:var(--font-family, inherit);font-size:14px;font-size:var(--font-size, 14px)}.klaro button{font-family:inherit;font-family:var(--font-family, inherit);font-size:14px;font-size:var(--font-size, 14px)}.klaro.cm-as-context-notice{height:100%;padding-bottom:12px;padding-top:12px}.klaro .cookie-modal .cm-switch-container,.klaro .context-notice .cm-switch-container,.klaro .cookie-notice .cm-switch-container{border-bottom-style:solid;border-bottom-style:var(--border-style, solid);border-bottom-width:1px;border-bottom-width:var(--border-width, 1px);border-bottom-color:#c8c8c8;border-bottom-color:var(--light2, #c8c8c8);display:block;position:relative;padding:10px;padding-left:66px;line-height:20px;vertical-align:middle;min-height:40px}.klaro .cookie-modal .cm-switch-container:last-child,.klaro .context-notice .cm-switch-container:last-child,.klaro .cookie-notice .cm-switch-container:last-child{border-bottom:0}.klaro .cookie-modal .cm-switch-container:first-child,.klaro .context-notice .cm-switch-container:first-child,.klaro .cookie-notice .cm-switch-container:first-child{margin-top:0}.klaro .cookie-modal .cm-switch-container p,.klaro .context-notice .cm-switch-container p,.klaro .cookie-notice .cm-switch-container p{margin-top:0}.klaro .cookie-modal .cm-switch,.klaro .context-notice .cm-switch,.klaro .cookie-notice .cm-switch{position:relative;display:inline-block;width:50px;height:30px}.klaro .cookie-modal .cm-list-input:checked+.cm-list-label .slider,.klaro .context-notice .cm-list-input:checked+.cm-list-label .slider,.klaro .cookie-notice .cm-list-input:checked+.cm-list-label .slider{background-color:#1a936f;background-color:var(--green1, #1a936f)}.klaro .cookie-modal .cm-list-input.half-checked:checked+.cm-list-label .slider,.klaro .context-notice .cm-list-input.half-checked:checked+.cm-list-label .slider,.klaro .cookie-notice .cm-list-input.half-checked:checked+.cm-list-label .slider{background-color:#1a936f;background-color:var(--green1, #1a936f);opacity:.6}.klaro .cookie-modal .cm-list-input.half-checked:checked+.cm-list-label .slider::before,.klaro .context-notice .cm-list-input.half-checked:checked+.cm-list-label .slider::before,.klaro .cookie-notice .cm-list-input.half-checked:checked+.cm-list-label .slider::before{-ms-transform:translateX(10px);transform:translateX(10px)}.klaro .cookie-modal .cm-list-input.only-required+.cm-list-label .slider,.klaro .context-notice .cm-list-input.only-required+.cm-list-label .slider,.klaro .cookie-notice .cm-list-input.only-required+.cm-list-label .slider{background-color:#24cc9a;background-color:var(--green2, #24cc9a);opacity:.8}.klaro .cookie-modal .cm-list-input.only-required+.cm-list-label .slider::before,.klaro .context-notice .cm-list-input.only-required+.cm-list-label .slider::before,.klaro .cookie-notice .cm-list-input.only-required+.cm-list-label .slider::before{-ms-transform:translateX(10px);transform:translateX(10px)}.klaro .cookie-modal .cm-list-input.required:checked+.cm-list-label .slider,.klaro .context-notice .cm-list-input.required:checked+.cm-list-label .slider,.klaro .cookie-notice .cm-list-input.required:checked+.cm-list-label .slider{background-color:#24cc9a;background-color:var(--green2, #24cc9a);opacity:.8;cursor:not-allowed}.klaro .cookie-modal .slider,.klaro .context-notice .slider,.klaro .cookie-notice .slider{box-shadow:0 4px 6px 0 rgba(0,0,0,.2),5px 5px 10px 0 rgba(0,0,0,.19)}.klaro .cookie-modal .cm-list-input,.klaro .context-notice .cm-list-input,.klaro .cookie-notice .cm-list-input{position:absolute;top:0;left:0;opacity:0;width:50px;height:30px}.klaro .cookie-modal .cm-list-title,.klaro .context-notice .cm-list-title,.klaro .cookie-notice .cm-list-title{font-size:.9em;font-weight:600}.klaro .cookie-modal .cm-list-description,.klaro .context-notice .cm-list-description,.klaro .cookie-notice .cm-list-description{color:#7c7c7c;color:var(--dark3, #7c7c7c);font-size:.9em;padding-top:4px}.klaro .cookie-modal .cm-list-label .cm-switch,.klaro .context-notice .cm-list-label .cm-switch,.klaro .cookie-notice .cm-list-label .cm-switch{position:absolute;left:0}.klaro .cookie-modal .cm-list-label .slider,.klaro .context-notice .cm-list-label .slider,.klaro .cookie-notice .cm-list-label .slider{background-color:#f2f2f2;background-color:var(--white2, #f2f2f2);position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;transition:.4s;width:50px;display:inline-block}.klaro .cookie-modal .cm-list-label .slider::before,.klaro .context-notice .cm-list-label .slider::before,.klaro .cookie-notice .cm-list-label .slider::before{background-color:#e6e6e6;background-color:var(--white3, #e6e6e6);position:absolute;content:"";height:20px;width:20px;left:5px;bottom:5px;transition:.4s}.klaro .cookie-modal .cm-list-label .slider.round,.klaro .context-notice .cm-list-label .slider.round,.klaro .cookie-notice .cm-list-label .slider.round{border-radius:30px}.klaro .cookie-modal .cm-list-label .slider.round::before,.klaro .context-notice .cm-list-label .slider.round::before,.klaro .cookie-notice .cm-list-label .slider.round::before{border-radius:50%}.klaro .cookie-modal .cm-list-label input:focus+.slider,.klaro .context-notice .cm-list-label input:focus+.slider,.klaro .cookie-notice .cm-list-label input:focus+.slider{box-shadow-color:#48dfb2;box-shadow-color:var(--green3, #48dfb2);box-shadow:0 0 1px var(--box-shadow-color, green3)}.klaro .cookie-modal .cm-list-label input:checked+.slider::before,.klaro .context-notice .cm-list-label input:checked+.slider::before,.klaro .cookie-notice .cm-list-label input:checked+.slider::before{-ms-transform:translateX(20px);transform:translateX(20px)}.klaro .cookie-modal .cm-list-input:focus+.cm-list-label .slider,.klaro .context-notice .cm-list-input:focus+.cm-list-label .slider,.klaro .cookie-notice .cm-list-input:focus+.cm-list-label .slider{box-shadow:0 4px 6px 0 rgba(125,125,125,.2),5px 5px 10px 0 rgba(125,125,125,.19)}.klaro .cookie-modal .cm-list-input:checked+.cm-list-label .slider::before,.klaro .context-notice .cm-list-input:checked+.cm-list-label .slider::before,.klaro .cookie-notice .cm-list-input:checked+.cm-list-label .slider::before{-ms-transform:translateX(20px);transform:translateX(20px)}.klaro .cookie-modal .slider,.klaro .context-notice .slider,.klaro .cookie-notice .slider{box-shadow:0 4px 6px 0 rgba(0,0,0,.2),5px 5px 10px 0 rgba(0,0,0,.19)}.klaro .cookie-modal a,.klaro .context-notice a,.klaro .cookie-notice a{color:#1a936f;color:var(--green1, #1a936f);text-decoration:none}.klaro .cookie-modal p,.klaro .cookie-modal strong,.klaro .cookie-modal h1,.klaro .cookie-modal h2,.klaro .cookie-modal ul,.klaro .cookie-modal li,.klaro .context-notice p,.klaro .context-notice strong,.klaro .context-notice h1,.klaro .context-notice h2,.klaro .context-notice ul,.klaro .context-notice li,.klaro .cookie-notice p,.klaro .cookie-notice strong,.klaro .cookie-notice h1,.klaro .cookie-notice h2,.klaro .cookie-notice ul,.klaro .cookie-notice li{color:#fafafa;color:var(--light1, #fafafa)}.klaro .cookie-modal p,.klaro .cookie-modal h1,.klaro .cookie-modal h2,.klaro .cookie-modal ul,.klaro .cookie-modal li,.klaro .context-notice p,.klaro .context-notice h1,.klaro .context-notice h2,.klaro .context-notice ul,.klaro .context-notice li,.klaro .cookie-notice p,.klaro .cookie-notice h1,.klaro .cookie-notice h2,.klaro .cookie-notice ul,.klaro .cookie-notice li{display:block;text-align:left;margin:0;padding:0;margin-top:.7em}.klaro .cookie-modal h1,.klaro .cookie-modal h2,.klaro .cookie-modal h3,.klaro .cookie-modal h4,.klaro .cookie-modal h5,.klaro .cookie-modal h6,.klaro .context-notice h1,.klaro .context-notice h2,.klaro .context-notice h3,.klaro .context-notice h4,.klaro .context-notice h5,.klaro .context-notice h6,.klaro .cookie-notice h1,.klaro .cookie-notice h2,.klaro .cookie-notice h3,.klaro .cookie-notice h4,.klaro .cookie-notice h5,.klaro .cookie-notice h6{font-family:inherit;font-family:var(--title-font-family, inherit)}.klaro .cookie-modal .cm-link,.klaro .context-notice .cm-link,.klaro .cookie-notice .cm-link{margin-right:.5em;vertical-align:middle}.klaro .cookie-modal .cm-btn,.klaro .context-notice .cm-btn,.klaro .cookie-notice .cm-btn{color:#fff;color:var(--button-text-color, #fff);background-color:#5c5c5c;background-color:var(--dark2, #5c5c5c);border-radius:4px;border-radius:var(--border-radius, 4px);padding:6px 10px;margin-right:.5em;border-style:none;padding:.4em;font-size:1em;cursor:pointer}.klaro .cookie-modal .cm-btn:disabled,.klaro .context-notice .cm-btn:disabled,.klaro .cookie-notice .cm-btn:disabled{opacity:.5}.klaro .cookie-modal .cm-btn.cm-btn-close,.klaro .context-notice .cm-btn.cm-btn-close,.klaro .cookie-notice .cm-btn.cm-btn-close{background-color:#c8c8c8;background-color:var(--light2, #c8c8c8)}.klaro .cookie-modal .cm-btn.cm-btn-success,.klaro .context-notice .cm-btn.cm-btn-success,.klaro .cookie-notice .cm-btn.cm-btn-success{background-color:#1a936f;background-color:var(--green1, #1a936f)}.klaro .cookie-modal .cm-btn.cm-btn-success-var,.klaro .context-notice .cm-btn.cm-btn-success-var,.klaro .cookie-notice .cm-btn.cm-btn-success-var{background-color:#24cc9a;background-color:var(--green2, #24cc9a)}.klaro .cookie-modal .cm-btn.cm-btn-info,.klaro .context-notice .cm-btn.cm-btn-info,.klaro .cookie-notice .cm-btn.cm-btn-info{background-color:#2581c4;background-color:var(--blue1, #2581c4)}.klaro .context-notice{border-radius:4px;border-radius:var(--border-radius, 4px);border-style:solid;border-style:var(--border-style, solid);border-width:1px;border-width:var(--border-width, 1px);border-color:#c8c8c8;border-color:var(--light2, #c8c8c8);background-color:#fafafa;background-color:var(--light1, #fafafa);display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;justify-content:center;padding:12px;height:100%}.klaro .context-notice.cm-dark{background-color:#333;background-color:var(--dark1, #333);border-color:#5c5c5c;border-color:var(--dark2, #5c5c5c)}.klaro .context-notice.cm-dark p{color:#fafafa;color:var(--light1, #fafafa)}.klaro .context-notice.cm-dark p a{color:#459cdc;color:var(--blue2, #459cdc)}.klaro .context-notice p{color:#333;color:var(--dark1, #333);flex-grow:0;text-align:center;padding-top:0;margin-top:0}.klaro .context-notice p a{color:#24cc9a;color:var(--green2, #24cc9a)}.klaro .context-notice p.cm-buttons{margin-top:12px}.klaro .context-notice p.ccn-description-empty-store{margin-top:24px;font-size:14px;font-size:var(--font-size, 14px)}.klaro .cookie-modal{width:100%;height:100%;position:fixed;overflow:hidden;left:0;top:0;z-index:1000}.klaro .cookie-modal.cm-embedded{position:relative;height:inherit;width:inherit;left:inherit;right:inherit;z-index:0}.klaro .cookie-modal.cm-embedded .cm-modal.cm-klaro{position:relative;-ms-transform:none;transform:none}.klaro .cookie-modal .cm-bg{background:rgba(0,0,0,.5);height:100%;width:100%;position:fixed;top:0;left:0}.klaro .cookie-modal .cm-modal.cm-klaro{background-color:#333;background-color:var(--dark1, #333);color:#fafafa;color:var(--light1, #fafafa);z-index:1001;box-shadow:0 4px 6px 0 rgba(0,0,0,.2),5px 5px 10px 0 rgba(0,0,0,.19);width:100%;max-height:98%;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);position:fixed;overflow:auto}@media(min-width: 660px){.klaro .cookie-modal .cm-modal.cm-klaro{border-radius:4px;border-radius:var(--border-radius, 4px);position:relative;margin:0 auto;max-width:640px;height:auto;width:auto}}.klaro .cookie-modal .cm-modal .hide{border-style:none;background:none;cursor:pointer;position:absolute;top:20px;right:20px;z-index:1}.klaro .cookie-modal .cm-modal .hide svg{stroke:#fafafa;stroke:var(--light1, #fafafa)}.klaro .cookie-modal .cm-modal .cm-footer{border-top-color:#5c5c5c;border-top-color:var(--dark2, #5c5c5c);border-top-width:1px;border-top-width:var(--border-width, 1px);border-top-style:solid;border-top-style:var(--border-style, solid);padding:1em}.klaro .cookie-modal .cm-modal .cm-footer-buttons{display:flex;flex-flow:row;justify-content:space-between}.klaro .cookie-modal .cm-modal .cm-footer .cm-powered-by{font-size:.8em;padding-top:4px;text-align:right;padding-right:8px}.klaro .cookie-modal .cm-modal .cm-footer .cm-powered-by a{color:#5c5c5c;color:var(--dark2, #5c5c5c)}.klaro .cookie-modal .cm-modal .cm-header{border-bottom-width:1px;border-bottom-width:var(--border-width, 1px);border-bottom-style:solid;border-bottom-style:var(--border-style, solid);border-bottom-color:#5c5c5c;border-bottom-color:var(--dark2, #5c5c5c);padding:1em;padding-right:24px}.klaro .cookie-modal .cm-modal .cm-header h1{margin:0;font-size:2em;display:block}.klaro .cookie-modal .cm-modal .cm-header h1.title{padding-right:20px}.klaro .cookie-modal .cm-modal .cm-body{padding:1em}.klaro .cookie-modal .cm-modal .cm-body ul{display:block}.klaro .cookie-modal .cm-modal .cm-body span{display:inline-block;width:auto}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes{padding:0;margin:0}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose .cm-services .cm-caret,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose .cm-services .cm-caret{color:#a0a0a0;color:var(--light3, #a0a0a0)}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose .cm-services .cm-content,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose .cm-services .cm-content{margin-left:-40px;display:none}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose .cm-services .cm-content.expanded,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose .cm-services .cm-content.expanded{margin-top:10px;display:block}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose{position:relative;line-height:20px;vertical-align:middle;padding-left:60px;min-height:40px}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service:first-child,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose:first-child,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service:first-child,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose:first-child{margin-top:0}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service p,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose p,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service p,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose p{margin-top:0}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service p.purposes,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose p.purposes,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service p.purposes,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose p.purposes{color:#a0a0a0;color:var(--light3, #a0a0a0);font-size:.8em}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service.cm-toggle-all,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose.cm-toggle-all,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service.cm-toggle-all,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose.cm-toggle-all{border-top-width:1px;border-top-width:var(--border-width, 1px);border-top-style:solid;border-top-style:var(--border-style, solid);border-top-color:#5c5c5c;border-top-color:var(--dark2, #5c5c5c);padding-top:1em}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service span.cm-list-title,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose span.cm-list-title,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service span.cm-list-title,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose span.cm-list-title{font-weight:600}.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service span.cm-opt-out,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service span.cm-required,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose span.cm-opt-out,.klaro .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose span.cm-required,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service span.cm-opt-out,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service span.cm-required,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose span.cm-opt-out,.klaro .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose span.cm-required{color:#5c5c5c;color:var(--dark2, #5c5c5c);padding-left:.2em;font-size:.8em}.klaro .cookie-notice:not(.cookie-modal-notice){background-color:#333;background-color:var(--dark1, #333);z-index:999;position:fixed;width:100%;bottom:0;right:0}@media(min-width: 1024px){.klaro .cookie-notice:not(.cookie-modal-notice){border-radius:4px;border-radius:var(--border-radius, 4px);position:fixed;position:var(--notice-position, fixed);right:20px;right:var(--notice-right, 20px);left:auto;left:var(--notice-left, auto);bottom:20px;bottom:var(--notice-bottom, 20px);top:auto;top:var(--notice-top, auto);max-width:400px;max-width:var(--notice-max-width, 400px);box-shadow:0 4px 6px 0 rgba(0,0,0,.2),5px 5px 10px 0 rgba(0,0,0,.19)}}@media(max-width: 1023px){.klaro .cookie-notice:not(.cookie-modal-notice){border-style:none;border-radius:0}}.klaro .cookie-notice:not(.cookie-modal-notice).cn-embedded{position:relative;height:inherit;width:inherit;left:inherit;right:inherit;bottom:inherit;z-index:0}.klaro .cookie-notice:not(.cookie-modal-notice).cn-embedded .cn-body{padding-top:.5em}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body{margin-bottom:0;margin-right:0;bottom:0;padding:1em;padding-top:0}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body p{margin-bottom:.5em}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body p.cn-changes{text-decoration:underline}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-learn-more{display:inline-block;flex-grow:1}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons{display:inline-block;margin-top:-0.5em}@media(max-width: 384px){.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons{width:100%}}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons button.cm-btn{margin-top:.5em}@media(max-width: 384px){.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-buttons button.cm-btn{width:calc(50% - 0.5em)}}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-ok{margin-top:-0.5em;display:flex;flex-flow:row;flex-wrap:wrap;justify-content:right;align-items:baseline}.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-ok a,.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body .cn-ok div{margin-top:.5em}.klaro .cookie-modal-notice{background-color:#333;background-color:var(--dark1, #333);color:#fafafa;color:var(--light1, #fafafa);z-index:1001;box-shadow:0 4px 6px 0 rgba(0,0,0,.2),5px 5px 10px 0 rgba(0,0,0,.19);width:100%;max-height:98%;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);position:fixed;overflow:auto;padding:1em;padding-top:.2em}@media(min-width: 400px){.klaro .cookie-modal-notice{border-radius:4px;border-radius:var(--border-radius, 4px);position:relative;margin:0 auto;max-width:400px;height:auto;width:auto}}.klaro .cookie-modal-notice .cn-ok{display:flex;flex-flow:row;justify-content:space-between;align-items:center;margin-top:1em}.klaro .cookie-notice-hidden{display:none !important}',""]);const
vendor: 7,245 bytes, line 2
2o=s},278:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&s[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},8645:e=>{"use strict";e.exports=function(e){return e[1]}},362:(e,t,n)=>{"use strict";var r=n(6441);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,s){if(s!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},2688:(e,t,n)=>{e.exports=n(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5292:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],o=0;o<e.length;o++){var l=e[o],u=r.base?l[0]+r.base:l[0],c=a[u]||0,d="".concat(u," ").concat(c);a[u]=c+1;var f=n(d),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(h);else{var m=i(h,r);r.byIndex=o,t.splice(o,0,{identifier:d,updater:m,references:1})}s.push(d)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var o=n(a[s]);t[o].references--}for(var l=r(e,i),u=0;u<a.length;u++){var c=n(a[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},9383:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9088:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},6884:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},9893:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7997:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8120:(e,t,n)=>{"use strict";var r=n(1483),i=n(8761),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},2374:(e,t,n)=>{"use strict";var r=n(943),i=n(8761),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},3852:(e,t,n)=>{"use strict";var r=n(735),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},7095:(e,t,n)=>{"use strict";var r=n(1),i=n(5290),a=n(5835).f,s=r("unscopables"),o=Array.prototype;void 0===o[s]&&a(o,s,{configurable:!0,value:i(null)}),e.exports=function(e){o[s][e]=!0}},4419:(e,t,n)=>{"use strict";var r=n(9105).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6021:(e,t,n)=>{"use strict";var r=n(4815),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},2293:(e,t,n)=>{"use strict";var r=n(1704),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},9214:(e,t,n)=>{"use strict";var r=n(8473);e.exports=r(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},4793:(e,t,n)=>{"use strict";var r=n(2867).forEach,i=n(3152)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},6142:(e,t,n)=>{"use strict";var r=n(2914),i=n(1807),a=n(2347),s=n(8901),o=n(5299),l=n(943),u=n(6960),c=n(670),d=n(4887),f=n(6665),h=Array;e.exports=function(e){var t=a(e),n=l(this),m=arguments.length,p=m>1?arguments[1]:void 0,g=void 0!==p;g&&(p=r(p,m>2?arguments[2]:void 0));var y,_,v,E,b,T,S=f(t),w=0;if(!S||this===h&&o(S))for(y=u(t),_=n?new this(y):h(y);y>w;w++)T=g?p(t[w],w):t[w],c(_,w,T);else for(b=(E=d(t,S)).next,_=n?new this:[];!(v=i(b,E)).done;w++)T=g?s(E,p,[v.value,w],!0):v.value,c(_,w,T);return _.length=w,_}},6651:(e,t,n)=>{"use strict";var r=n(5599),i=n(3392),a=n(6960),s=function(e){return function(t,n,s){var o=r(t),l=a(o);if(0===l)return!e&&-1;var u,c=i(s,l);if(e&&n!=n){for(;l>c;)if((u=o[c++])!=u)return!0}else for(;l>c;c++)if((e||c in o)&&o[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},2867:(e,t,n)=>{"use strict";var r=n(2914),i=n(4762),a=n(2121),s=n(2347),o=n(6960),l=n(4551),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(m,p,g,y){for(var _,v,E=s(m),b=a(E),T=o(b),S=r(p,g),w=0,L=y||l,A=t?L(m,T):n||f?L(m,0):void 0;T>w;w++)if((h||w in b)&&(v=S(_=b[w],w,E),e))if(t)A[w]=v;else if(v)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:u(A,_)}else switch(e){case 4:return!1;case 7:u(A,_)}return d?-1:i||c?c:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},4595:(e,t,n)=>{"use strict";var r=n(8473),i=n(1),a=n(6170),s=i("species");e.exports=function(e){return a>=51||!r(function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}
vendor: 21,948 bytes, line 2
2},1!==t[e](Boolean).foo})}},3152:(e,t,n)=>{"use strict";var r=n(8473);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},1698:(e,t,n)=>{"use strict";var r=n(4762);e.exports=r([].slice)},7354:(e,t,n)=>{"use strict";var r=n(1698),i=Math.floor,a=function(e,t){var n=e.length;if(n<8)for(var s,o,l=1;l<n;){for(o=l,s=e[l];o&&t(e[o-1],s)>0;)e[o]=e[--o];o!==l++&&(e[o]=s)}else for(var u=i(n/2),c=a(r(e,0,u),t),d=a(r(e,u),t),f=c.length,h=d.length,m=0,p=0;m<f||p<h;)e[m+p]=m<f&&p<h?t(c[m],d[p])<=0?c[m++]:d[p++]:m<f?c[m++]:d[p++];return e};e.exports=a},9703:(e,t,n)=>{"use strict";var r=n(4914),i=n(943),a=n(1704),s=n(1)("species"),o=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===o||r(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?o:t}},4551:(e,t,n)=>{"use strict";var r=n(9703);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},8901:(e,t,n)=>{"use strict";var r=n(2293),i=n(6721);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},1554:(e,t,n)=>{"use strict";var r=n(1)("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},1278:(e,t,n)=>{"use strict";var r=n(4762),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},6145:(e,t,n)=>{"use strict";var r=n(4338),i=n(1483),a=n(1278),s=n(1)("toStringTag"),o=Object,l="Arguments"===a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=o(e),s))?n:l?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},4092:(e,t,n)=>{"use strict";var r=n(5290),i=n(3864),a=n(2313),s=n(2914),o=n(6021),l=n(5983),u=n(1506),c=n(5662),d=n(5247),f=n(240),h=n(382),m=n(8041).fastKey,p=n(4483),g=p.set,y=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e(function(e,i){o(e,f),g(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),l(i)||u(i,e[c],{that:e,AS_ENTRIES:n})}),f=d.prototype,p=y(t),_=function(e,t,n){var r,i,a=p(e),s=v(e,t);return s?s.value=n:(a.last=s={index:i=m(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),h?a.size++:e.size++,"F"!==i&&(a.index[i]=s)),e},v=function(e,t){var n,r=p(e),i=m(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return a(f,{clear:function(){for(var e=p(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=r(null),h?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=v(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),a(f,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return _(this,0===e?0:e,t)}}:{add:function(e){return _(this,e=0===e?0:e,e)}}),h&&i(f,"size",{configurable:!0,get:function(){return p(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",i=y(t),a=y(r);c(e,t,function(e,t){g(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))},n?"entries":"values",!n,!0),f(t)}}},7446:(e,t,n)=>{"use strict";var r=n(8612),i=n(8389),a=n(4762),s=n(8730),o=n(7914),l=n(8041),u=n(1506),c=n(6021),d=n(1483),f=n(5983),h=n(1704),m=n(8473),p=n(1554),g=n(2277),y=n(2429);e.exports=function(e,t,n){var _=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),E=_?"set":"add",b=i[e],T=b&&b.prototype,S=b,w={},L=function(e){var t=a(T[e]);o(T,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(v&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return v&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(v&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(s(e,!d(b)||!(v||T.forEach&&!m(function(){(new b).entries().next()}))))S=n.getConstructor(t,e,_,E),l.enable();else if(s(e,!0)){var A=new S,M=A[E](v?{}:-0,1)!==A,D=m(function(){A.has(1)}),k=p(function(e){new b(e)}),I=!v&&m(function(){for(var e=new b,t=5;t--;)e[E](t,t);return!e.has(-0)});k||((S=t(function(e,t){c(e,T);var n=y(new b,e,S);return f(t)||u(t,n[E],{that:n,AS_ENTRIES:_}),n})).prototype=T,T.constructor=S),(D||I)&&(L("delete"),L("has"),_&&L("get")),(I||M)&&L(E),v&&T.clear&&delete T.clear}return w[e]=S,r({global:!0,constructor:!0,forced:S!==b},w),g(S,e),v||n.setStrong(S,e,_),S}},6726:(e,t,n)=>{"use strict";var r=n(5755),i=n(9497),a=n(4961),s=n(5835);e.exports=function(e,t,n){for(var o=i(t),l=s.f,u=a.f,c=0;c<o.length;c++){var d=o[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},4522:(e,t,n)=>{"use strict";var r=n(1)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},9441:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},5247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},9037:(e,t,n)=>{"use strict";var r=n(382),i=n(5835),a=n(7738);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},7738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},670:(e,t,n)=>{"use strict";var r=n(382),i=n(5835),a=n(7738);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},6446:(e,t,n)=>{"use strict";var r=n(2293),i=n(348),a=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new a("Incorrect hint");return i(this,e)}},3864:(e,t,n)=>{"use strict";var r=n(169),i=n(5835);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},7914:(e,t,n)=>{"use strict";var r=n(1483),i=n(5835),a=n(169),s=n(2095);e.exports=function(e,t,n,o){o||(o={});var l=o.enumerable,u=void 0!==o.name?o.name:t;if(r(n)&&a(n,u,o),o.global)l?e[t]=n:s(t,n);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},2313:(e,t,n)=>{"use strict";var r=n(7914);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},2095:(e,t,n)=>{"use strict";var r=n(8389),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6060:(e,t,n)=>{"use strict";var r=n(8761),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},382:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3145:(e,t,n)=>{"use strict";var r=n(8389),i=n(1704),a=r.document,s=i(a)&&i(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},1091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4842:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1902:(e,t,n)=>{"use strict";var r=n(3145)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},7332:(e,t,n)=>{"use strict";var r=n(9966).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},6956:(e,t,n)=>{"use strict";var r=n(938),i=n(4334);e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},5413:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},938:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},8996:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/MSIE|Trident/.test(r)},4466:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},8417:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},4334:(e,t,n)=>{"use strict";var r=n(8389),i=n(1278);e.exports="process"===i(r.process)},6639:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/web0s(?!.*chrome)/i.test(r)},9966:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6170:(e,t,n)=>{"use strict";var r,i,a=n(8389),s=n(9966),o=a.process,l=a.Deno,u=o&&o.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},5158:(e,t,n)=>{"use strict";var r=n(9966).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},4741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8612:(e,t,n)=>{"use strict";var r=n(8389),i=n(4961).f,a=n(9037),s=n(7914),o=n(2095),l=n(6726),u=n(8730);e.exports=function(e,t){var n,c,d,f,h,m=e.target,p=e.global,g=e.stat;if(n=p?r:g?r[m]||o(m,{}):r[m]&&r[m].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=i(n,c))&&h.value:n[c],!u(p?c:m+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),s(n,c,f,e)}}},8473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},3358:(e,t,n)=>{"use strict";n(5021);var r=n(1807),i=n(7914),a=n(8865),s=n(8473),o=n(1),l=n(9037),u=o("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=o(e),h=!s(function(){var t={};return t[f]=function(){return 7},7!==""[e](t)}),m=h&&!s(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t});if(!h||!m||n){var p=/./[f],g=t(f,""[e],function(e,t,n,i,s){var o=t.exec;return o===a||o===c.exec?h&&!s?{done:!0,value:r(p,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}});i(String.prototype,e,g[0]),i(c,f,g[1])}d&&l(c[f],"sham",!0)}},6530:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},3067:(e,t,n)=>{"use strict";var r=n(274),i=Function.prototype,a=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(a):function(){return s.apply(a,arguments)})},2914:(e,t,n)=>{"use strict";var r=n(3786),i=n(8120),a=n(274),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?s(e,t):function(){return e.apply(t,arguments)}}},274:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},2164:(e,t,n)=>{"use strict";var r=n(4762),i=n(8120),a=n(1704),s=n(5755),o=n(1698),l=n(274),u=Function,c=r([].concat),d=r([].join),f={};e.exports=l?u.bind:function(e){var t=i(this),n=t.prototype,r=o(arguments,1),l=function(){var n=c(r,o(arguments));return this instanceof l?function(e,t,n){if(!s(f,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";f[t]=u("C,a","return new C("+d(r,",")+")")}return f[t](e,n)}(t,n.length,n):t.apply(e,n)};return a(n)&&(l.prototype=n),l}},1807:(e,t,n)=>{"use strict";var r=n(274),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},2048:(e,t,n)=>{"use strict";var r=n(382),i=n(5755),a=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,o=i(a,"name"),l=o&&"something"===function(){}.name,u=o&&(!r||r&&s(a,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:u}},680:(e,t,n)=>{"use strict";var r=n(4762),i=n(8120);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},3786:(e,t,n)=>{"use strict";var r=n(1278),i=n(4762);e.exports=function(e){if("Function"===r(e))return i(e)}},4762:(e,t,n)=>{"use strict";var r=n(274),i=Function.prototype,a=i.call,s=r&&i.bind.bind(a,a);e.exports=r?s:function(e){return function(){return a.apply(e,arguments)}}},1409:(e,t,n)=>{"use strict";var r=n(8389),i=n(1483);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},6665:(e,t,n)=>{"use strict";var r=n(6145),i=n(2564),a=n(5983),s=n(6775),o=n(1)("iterator");e.exports=function(e){if(!a(e))return i(e,o)||i(e,"@@iterator")||s[r(e)]}},4887:(e,t,n)=>{"use strict";var r=n(1807),i=n(8120),a=n(2293),s=n(8761),o=n(6665),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?o(e):t;if(i(n))return a(r(n,e));throw new l(s(e)+" is not iterable")}},5215:(e,t,n)=>{"use strict";var r=n(4762),i=n(4914),a=n(1483),s=n(1278),o=n(6261),l=r([].push);e.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||l(n,o(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},2564:(e,t,n)=>{"use strict";var r=n(8120),i=n(5983);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},708:(e,t,n)=>{"use strict";var r=n(4762),i=n(2347),a=Math.floor,s=r("".charAt),o=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,m=r.length,p=c;return void 0!==d&&(d=i(d),p=u),o(f,p,function(i,o){var u;switch(s(o,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":u=d[l(o,1,-1)];break;default:var c=+o;if(0===c)return i;if(c>m){var f=a(c/10);return 0===f?i:f<=m?void 0===r[f-1]?s(o,1):r[f-1]+s(o,1):i}u=r[c-1]}return void 0===u?"":u})}},8389:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5755:(e,t,n)=>{"use strict";var r=n(4762),i=n(2347),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},1507:e=>{"use strict";e.exports={}},1339:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2811:(e,t,n)=>{"use strict";var r=n(1409);e.exports=r("document","documentElement")},1799:(e,t,n)=>{"use strict";var r=n(382),i=n(8473),a=n(3145);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},2121:(e,t,n)=>{"use strict";var r=n(4762),i=n(8473),a=n(1278),s=Object,o=r("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===a(e)?o(e,""):s(e)}:s},2429:(e,t,n)=>{"use strict";var r=n(1483),i=n(1704),a=n(1953);e.exports=function(e,t,n){var s,o;return a&&r(s=t.constructor)&&s!==n&&i(o=s.prototype)&&o!==n.prototype&&a(e,o),e}},7268:(e,t,n)=>{"use strict";var r=n(4762),i=n(1483),a=n(1831),s=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return s(e)}),e.exports=a.inspectSource},8041:(e,t,n)=>{"use strict";var r=n(8612),i=n(4762),a=n(1507),s=n(1704),o=n(5755),l=n(5835).f,u=n(2278),c=n(2020),d=n(706),f=n(1866),h=n(6530),m=!1,p=f("meta"),g=0,y=function(e){l(e,p,{value:{objectID:"O"+g++,weakData:{}}})},_=e.exports={enable:function(){_.enable=function(){},m=!0;var e=u.f,t=i([].splice),n={};n[p]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,a=r.length;i<a;i++)if(r[i]===p){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,p)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[p].objectID},getWeakData:function(e,t){if(!o(e,p)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[p].weakData},onFreeze:function(e){return h&&m&&d(e)&&!o(e,p)&&y(e),e}};a[p]=!0},4483:(e,t,n)=>{"use strict";var r,i,a,s=n(4644),o=n(8389),l=n(1704),u=n(9037),c=n(5755),d=n(1831),f=n(5409),h=n(1507),m="Object already initialized",p=o.TypeError,g=o.WeakMap;if(s||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new p(m);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},a=function(e){return y.has(e)}}else{var _=f("state");h[_]=!0,r=function(e,t){if(c(e,_))throw new p(m);return t.facade=e,u(e,_,t),t},i=function(e){return c(e,_)?e[_]:{}},a=function(e){return c(e,_)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},5299:(e,t,n)=>{"use strict";var r=n(1),i=n(6775),a=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[a]===e)}},4914:(e,t,n)=>{"use strict";var r=n(1278);e.exports=Array.isArray||function(e){return"Array"===r(e)}},1483:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},943:(e,t,n)=>{"use strict";var r=n(4762),i=n(8473),a=n(1483),s=n(6145),o=n(1409),l=n(7268),u=function(){},c=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.test(u),m=function(e){if(!a(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},p=function(e){if(!a(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch(e){return!0}};p.sham=!0,e.exports=!c||i(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?p:m},8730:(e,t,n)=>{"use strict";var r=n(8473),i=n(1483),a=/#|\.prototype\./,s=function(e,t){var n=l[o(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},o=s.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},5983:e=>{"use strict";e.exports=function(e){return null==e}},1704:(e,t,n)=>{"use strict";var r=n(1483);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},735:(e,t,n)=>{"use strict";var r=n(1704);e.exports=function(e){return r(e)||null===e}},9557:e=>{"use strict";e.exports=!1},4786:(e,t,n)=>{"use strict";var r=n(1704),i=n(1278),a=n(1)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},1423:(e,t,n)=>{"use strict";var r=n(1409),i=n(1483),a=n(4815),s=n(5022),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,o(e))}},1506:(e,t,n)=>{"use strict";var r=n(2914),i=n(1807),a=n(2293),s=n(8761),o=n(5299),l=n(6960),u=n(4815),c=n(4887),d=n(6665),f=n(6721),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},p=m.prototype;e.exports=function(e,t,n){var g,y,_,v,E,b,T,S=n&&n.that,w=!(!n||!n.AS_ENTRIES),L=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),D=r(t,S),k=function(e){return g&&f(g,"normal",e),new m(!0,e)},I=function(e){return w?(a(e),M?D(e[0],e[1],k):D(e[0],e[1])):M?D(e,k):D(e)};if(L)g=e.iterator;else if(A)g=e;else{if(!(y=d(e)))throw new h(s(e)+" is not iterable");if(o(y)){for(_=0,v=l(e);v>_;_++)if((E=I(e[_]))&&u(p,E))return E;return new m(!1)}g=c(e,y)}for(b=L?e.next:g.next;!(T=i(b,g)).done;){try{E=I(T.value)}catch(e){f(g,"throw",e)}if("object"==typeof E&&E&&u(p,E))return E}return new m(!1)}},6721:(e,t,n)=>{"use strict";var r=n(1807),i=n(2293),a=n(2564);e.exports=function(e,t,n){var s,o;i(e);try{if(!(s=a(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){o=!0,s=e}if("throw"===t)throw n;if(o)throw s;return i(s),n}},1040:(e,t,n)=>{"use strict";var r=n(1851).IteratorPrototype,i=n(5290),a=n(7738),s=n(2277),o=n(6775),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:a(+!u,n)}),s(e,c,!1,!0),o[c]=l,e}},5662:(e,t,n)=>{"use strict";var r=n(8612),i=n(1807),a=n(9557),s=n(2048),o=n(1483),l=n(1040),u=n(3181),c=n(1953),d=n(2277),f=n(9037),h=n(7914),m=n(1),p=n(6775),g=n(1851),y=s.PROPER,_=s.CONFIGURABLE,v=g.IteratorPrototype,E=g.BUGGY_SAFARI_ITERATORS,b=m("iterator"),T="keys",S="values",w="entries",L=function(){return this};e.exports=function(e,t,n,s,m,g,A){l(n,t,s);var M,D,k,I=function(e){if(e===m&&x)return x;if(!E&&e&&e in P)return P[e];switch(e){case T:case S:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",C=!1,P=e.prototype,O=P[b]||P["@@iterator"]||m&&P[m],x=!E&&O||I(m),N="Array"===t&&P.entries||O;if(N&&(M=u(N.call(new e)))!==Object.prototype&&M.next&&(a||u(M)===v||(c?c(M,v):o(M[b])||h(M,b,L)),d(M,R,!0,!0),a&&(p[R]=L)),y&&m===S&&O&&O.name!==S&&(!a&&_?f(P,"name",S):(C=!0,x=function(){return i(O,this)})),m)if(D={values:I(S),keys:g?x:I(T),entries:I(w)},A)for(k in D)(E||C||!(k in P))&&h(P,k,D[k]);else r({target:t,proto:!0,forced:E||C},D);return a&&!A||P[b]===x||h(P,b,x,{name:m}),p[t]=x,D}},1851:(e,t,n)=>{"use strict";var r,i,a,s=n(8473),o=n(1483),l=n(1704),u=n(5290),c=n(3181),d=n(7914),f=n(1),h=n(9557),m=f("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):p=!0),!l(r)||s(function(){var e={};return r[m].call(e)!==e})?r={}
vendor: 2,211 bytes, line 2
2:h&&(r=u(r)),o(r[m])||d(r,m,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},6775:e=>{"use strict";e.exports={}},6960:(e,t,n)=>{"use strict";var r=n(8324);e.exports=function(e){return r(e.length)}},169:(e,t,n)=>{"use strict";var r=n(4762),i=n(8473),a=n(1483),s=n(5755),o=n(382),l=n(2048).CONFIGURABLE,u=n(7268),c=n(4483),d=c.enforce,f=c.get,h=String,m=Object.defineProperty,p=r("".slice),g=r("".replace),y=r([].join),_=o&&!i(function(){return 8!==m(function(){},"length",{value:8}).length}),v=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===p(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(o?m(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&s(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?o&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return s(r,"source")||(r.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=E(function(){return a(this)&&f(this).source||u(this)},"toString")},1703:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},553:(e,t,n)=>{"use strict";var r,i,a,s,o,l=n(8389),u=n(8123),c=n(2914),d=n(7007).set,f=n(5459),h=n(8417),m=n(4466),p=n(6639),g=n(4334),y=l.MutationObserver||l.WebKitMutationObserver,_=l.document,v=l.process,E=l.Promise,b=u("queueMicrotask");if(!b){var T=new f,S=function(){var e,t;for(g&&(e=v.domain)&&e.exit();t=T.get();)try{t()}catch(e){throw T.head&&r(),e}e&&e.enter()};h||g||p||!y||!_?!m&&E&&E.resolve?((s=E.resolve(void 0)).constructor=E,o=c(s.then,s),r=function(){o(S)}):g?r=function(){v.nextTick(S)}:(d=c(d,l),r=function(){d(S)}):(i=!0,a=_.createTextNode(""),new y(S).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),b=function(e){T.head||r(),T.add(e)}}e.exports=b},1173:(e,t,n)=>{"use strict";var r=n(8120),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}}
vendor: 13,977 bytes, line 2
2,4989:(e,t,n)=>{"use strict";var r=n(4786),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},1439:(e,t,n)=>{"use strict";var r=n(382),i=n(4762),a=n(1807),s=n(8473),o=n(3658),l=n(4347),u=n(7611),c=n(2347),d=n(2121),f=Object.assign,h=Object.defineProperty,m=i([].concat);e.exports=!f||s(function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!==f({},e)[n]||o(f({},t)).join("")!==i})?function(e,t){for(var n=c(e),i=arguments.length,s=1,f=l.f,h=u.f;i>s;)for(var p,g=d(arguments[s++]),y=f?m(o(g),f(g)):o(g),_=y.length,v=0;_>v;)p=y[v++],r&&!a(h,g,p)||(n[p]=g[p]);return n}:f},5290:(e,t,n)=>{"use strict";var r,i=n(2293),a=n(5799),s=n(4741),o=n(1507),l=n(2811),u=n(3145),c=n(5409),d="prototype",f="script",h=c("IE_PROTO"),m=function(){},p=function(e){return"<"+f+">"+e+"</"+f+">"},g=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;y="undefined"!=typeof document?document.domain&&r?g(r):(t=u("iframe"),n="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):g(r);for(var i=s.length;i--;)delete y[d][s[i]];return y()};o[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=i(e),n=new m,m[d]=null,n[h]=e):n=y(),void 0===t?n:a.f(n,t)}},5799:(e,t,n)=>{"use strict";var r=n(382),i=n(3896),a=n(5835),s=n(2293),o=n(5599),l=n(3658);t.f=r&&!i?Object.defineProperties:function(e,t){s(e);for(var n,r=o(t),i=l(t),u=i.length,c=0;u>c;)a.f(e,n=i[c++],r[n]);return e}},5835:(e,t,n)=>{"use strict";var r=n(382),i=n(1799),a=n(3896),s=n(2293),o=n(3815),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?a?function(e,t,n){if(s(e),t=o(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=o(t),s(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4961:(e,t,n)=>{"use strict";var r=n(382),i=n(1807),a=n(7611),s=n(7738),o=n(5599),l=n(3815),u=n(5755),c=n(1799),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=o(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return s(!i(a.f,e,t),e[t])}},2020:(e,t,n)=>{"use strict";var r=n(1278),i=n(5599),a=n(2278).f,s=n(1698),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"Window"===r(e)?function(e){try{return a(e)}catch(e){return s(o)}}(e):a(i(e))}},2278:(e,t,n)=>{"use strict";var r=n(6742),i=n(4741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},4347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3181:(e,t,n)=>{"use strict";var r=n(5755),i=n(1483),a=n(2347),s=n(5409),o=n(9441),l=s("IE_PROTO"),u=Object,c=u.prototype;e.exports=o?u.getPrototypeOf:function(e){var t=a(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},706:(e,t,n)=>{"use strict";var r=n(8473),i=n(1704),a=n(1278),s=n(9214),o=Object.isExtensible,l=r(function(){o(1)});e.exports=l||s?function(e){return!!i(e)&&(!s||"ArrayBuffer"!==a(e))&&(!o||o(e))}:o},4815:(e,t,n)=>{"use strict";var r=n(4762);e.exports=r({}.isPrototypeOf)},6742:(e,t,n)=>{"use strict";var r=n(4762),i=n(5755),a=n(5599),s=n(6651).indexOf,o=n(1507),l=r([].push);e.exports=function(e,t){var n,r=a(e),u=0,c=[];for(n in r)!i(o,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~s(c,n)||l(c,n));return c}},3658:(e,t,n)=>{"use strict";var r=n(6742),i=n(4741);e.exports=Object.keys||function(e){return r(e,i)}},7611:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},1953:(e,t,n)=>{"use strict";var r=n(680),i=n(2293),a=n(3852);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},5627:(e,t,n)=>{"use strict";var r=n(382),i=n(8473),a=n(4762),s=n(3181),o=n(3658),l=n(5599),u=a(n(7611).f),c=a([].push),d=r&&i(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),f=function(e){return function(t){for(var n,i=l(t),a=o(i),f=d&&null===s(i),h=a.length,m=0,p=[];h>m;)n=a[m++],r&&!(f?n in i:u(i,n))||c(p,e?[n,i[n]]:i[n]);return p}};e.exports={entries:f(!0),values:f(!1)}},5685:(e,t,n)=>{"use strict";var r=n(4338),i=n(6145);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},348:(e,t,n)=>{"use strict";var r=n(1807),i=n(1483),a=n(1704),s=TypeError;e.exports=function(e,t){var n,o;if("string"===t&&i(n=e.toString)&&!a(o=r(n,e)))return o;if(i(n=e.valueOf)&&!a(o=r(n,e)))return o;if("string"!==t&&i(n=e.toString)&&!a(o=r(n,e)))return o;throw new s("Can't convert object to primitive value")}},9497:(e,t,n)=>{"use strict";var r=n(1409),i=n(4762),a=n(2278),s=n(4347),o=n(2293),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=s.f;return n?l(t,n(e)):t}},6589:(e,t,n)=>{"use strict";var r=n(8389);e.exports=r},4193:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},5502:(e,t,n)=>{"use strict";var r=n(8389),i=n(2832),a=n(1483),s=n(8730),o=n(7268),l=n(1),u=n(6956),c=n(938),d=n(9557),f=n(6170),h=i&&i.prototype,m=l("species"),p=!1,g=a(r.PromiseRejectionEvent),y=s("Promise",function(){var e=o(i),t=e!==String(i);if(!t&&66===f)return!0;if(d&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[m]=r,!(p=n.then(function(){})instanceof r))return!0}return!t&&(u||c)&&!g});e.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:p}},2832:(e,t,n)=>{"use strict";var r=n(8389);e.exports=r.Promise},2172:(e,t,n)=>{"use strict";var r=n(2293),i=n(1704),a=n(1173);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},1407:(e,t,n)=>{"use strict";var r=n(2832),i=n(1554),a=n(5502).CONSTRUCTOR;e.exports=a||!i(function(e){r.all(e).then(void 0,function(){})})},7150:(e,t,n)=>{"use strict";var r=n(5835).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5459:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},2428:(e,t,n)=>{"use strict";var r=n(1807),i=n(2293),a=n(1483),s=n(1278),o=n(8865),l=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===s(e))return r(o,e,t);throw new l("RegExp#exec called on incompatible receiver")}},8865:(e,t,n)=>{"use strict";var r,i,a=n(1807),s=n(4762),o=n(6261),l=n(6653),u=n(7435),c=n(7255),d=n(5290),f=n(4483).get,h=n(3933),m=n(4528),p=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,_=s("".charAt),v=s("".indexOf),E=s("".replace),b=s("".slice),T=(i=/b*/g,a(g,r=/a/,"a"),a(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];(T||w||S||h||m)&&(y=function(e){var t,n,r,i,s,u,c,h=this,m=f(h),L=o(e),A=m.raw;if(A)return A.lastIndex=h.lastIndex,t=a(y,A,L),h.lastIndex=A.lastIndex,t;var M=m.groups,D=S&&h.sticky,k=a(l,h),I=h.source,R=0,C=L;if(D&&(k=E(k,"y",""),-1===v(k,"g")&&(k+="g"),C=b(L,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==_(L,h.lastIndex-1))&&(I="(?: "+I+")",C=" "+C,R++),n=new RegExp("^(?:"+I+")",k)),w&&(n=new RegExp("^"+I+"$(?!\\s)",k)),T&&(r=h.lastIndex),i=a(g,D?n:h,C),D?i?(i.input=b(i.input,R),i[0]=b(i[0],R),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:T&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),w&&i&&i.length>1&&a(p,i[0],n,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)}),i&&M)for(i.groups=u=d(null),s=0;s<M.length;s++)u[(c=M[s])[0]]=i[c[1]];return i}),e.exports=y},6653:(e,t,n)=>{"use strict";var r=n(2293);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},9736:(e,t,n)=>{"use strict";var r=n(1807),i=n(5755),a=n(4815),s=n(6653),o=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in o||i(e,"flags")||!a(o,e)?t:r(s,e)}},7435:(e,t,n)=>{"use strict";var r=n(8473),i=n(8389).RegExp,a=r(function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),s=a||r(function(){return!i("a","y").sticky}),o=a||r(function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:o,MISSED_STICKY:s,UNSUPPORTED_Y:a}},3933:(e,t,n)=>{"use strict";var r=n(8473),i=n(8389).RegExp;e.exports=r(function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},4528:(e,t,n)=>{"use strict";var r=n(8473),i=n(8389).RegExp;e.exports=r(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},3312:(e,t,n)=>{"use strict";var r=n(5983),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},8123:(e,t,n)=>{"use strict";var r=n(8389),i=n(382),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=a(r,e);return t&&t.value}},9570:(e,t,n)=>{"use strict";var r,i=n(8389),a=n(3067),s=n(1483),o=n(5413),l=n(9966),u=n(1698),c=n(4066),d=i.Function,f=/MSIE .\./.test(l)||o&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return f?function(r,i){var o=c(arguments.length,1)>n,l=s(r)?r:d(r),f=o?u(arguments,n):[],h=o?function(){a(l,this,f)}:l;return t?e(h,i):e(h)}:e}},240:(e,t,n)=>{"use strict";var r=n(1409),i=n(3864),a=n(1),s=n(382),o=a("species");e.exports=function(e){var t=r(e);s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},2277:(e,t,n)=>{"use strict";var r=n(5835).f,i=n(5755),a=n(1)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},5409:(e,t,n)=>{"use strict";var r=n(7255),i=n(1866),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},1831:(e,t,n)=>{"use strict";var r=n(9557),i=n(8389),a=n(2095),s="__core-js_shared__",o=e.exports=i[s]||a(s,{});(o.versions||(o.versions=[])).push({version:"3.36.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7255:(e,t,n)=>{"use strict";var r=n(1831);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},483:(e,t,n)=>{"use strict";var r=n(2293),i=n(2374),a=n(5983),s=n(1)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||a(n=r(o)[s])?t:i(n)}},9105:(e,t,n)=>{"use strict";var r=n(4762),i=n(3005),a=n(6261),s=n(3312),o=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,d=a(s(t)),f=i(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=l(d,f))<55296||r>56319||f+1===h||(c=l(d,f+1))<56320||c>57343?e?o(d,f):r:e?u(d,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},4544:(e,t,n)=>{"use strict";var r=n(4762),i=n(3312),a=n(6261),s=n(5870),o=r("".replace),l=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),c=function(e){return function(t){var n=a(i(t));return 1&e&&(n=o(n,l,"")),2&e&&(n=o(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},6029:(e,t,n)=>{"use strict";var r=n(6170),i=n(8473),a=n(8389).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},8192:(e,t,n)=>{"use strict";var r=n(1807),i=n(1409),a=n(1),s=n(7914);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,o=a("toPrimitive");t&&!t[o]&&s(t,o,function(e){return r(n,this)},{arity:1})}},3218:(e,t,n)=>{"use strict";var r=n(6029);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},7007:(e,t,n)=>{"use strict";var r,i,a,s,o=n(8389),l=n(3067),u=n(2914),c=n(1483),d=n(5755),f=n(8473),h=n(2811),m=n(1698),p=n(3145),g=n(4066),y=n(8417),_=n(4334),v=o.setImmediate,E=o.clearImmediate,b=o.process,T=o.Dispatch,S=o.Function,w=o.MessageChannel,L=o.String,A=0,M={},D="onreadystatechange";f(function(){r=o.location});var k=function(e){if(d(M,e)){var t=M[e];delete M[e],t()}},I=function(e){return function(){k(e)}},R=function(e){k(e.data)},C=function(e){o.postMessage(L(e),r.protocol+"//"+r.host)};v&&E||(v=function(e){g(arguments.length,1);var t=c(e)?e:S(e),n=m(arguments,1);return M[++A]=function(){l(t,void 0,n)},i(A),A},E=function(e){delete M[e]},_?i=function(e){b.nextTick(I(e))}:T&&T.now?i=function(e){T.now(I(e))}:w&&!y?(s=(a=new w).port2,a.port1.onmessage=R,i=u(s.postMessage,s)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&r&&"file:"!==r.protocol&&!f(C)?(i=C,o.addEventListener("message",R,!1)):i=D in p("script")?function(e){h.appendChild(p("script"))[D]=function(){h.removeChild(this),k(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:v,clear:E}},2430:(e,t,n)=>{"use strict";var r=n(4762);e.exports=r(1..valueOf)},3392:(e,t,n)=>{"use strict";var r=n(3005),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}
2,5599:(e,t,n)=>{"use strict";var r=n(2121),i=n(3312);e.exports=function(e){return r(i(e))}},3005:(e,t,n)=>{"use strict";var r=n(1703);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8324:(e,t,n)=>{"use strict";var r=n(3005),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},2347:(e,t,n)=>{"use strict";var r=n(3312),i=Object;e.exports=function(e){return i(r(e))}},2355:(e,t,n)=>{"use strict";var r=n(1807),i=n(1704),a=n(1423),s=n(2564),o=n(348),l=n(1),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=s(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||a(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},3815:(e,t,n)=>{"use strict";var r=n(2355),i=n(1423);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},4338:(e,t,n)=>{"use strict";var r={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},6261:(e,t,n)=>{"use strict";var r=n(6145),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},8761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1866:(e,t,n)=>{"use strict";var r=n(4762),i=0,a=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+a,36)}},5022:(e,t,n)=>{"use strict";var r=n(6029);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3896:(e,t,n)=>{"use strict";var r=n(382),i=n(8473);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},4066:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},4644:(e,t,n)=>{"use strict";var r=n(8389),i=n(1483),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},7849:(e,t,n)=>{"use strict";var r=n(6589),i=n(5755),a=n(5373),s=n(5835).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||s(t,e,{value:a.f(e)})}},5373:(e,t,n)=>{"use strict";var r=n(1);t.f=r},1:(e,t,n)=>{"use strict";var r=n(8389),i=n(7255),a=n(5755),s=n(1866),o=n(6029),l=n(5022),u=r.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return a(c,e)||(c[e]=o&&a(u,e)?u[e]:d("Symbol."+e)),c[e]}},5870:e=>{"use strict";e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},4776:(e,t,n)=>{"use strict";var r=n(8612),i=n(8473),a=n(4914),s=n(1704),o=n(2347),l=n(6960),u=n(1091),c=n(670),d=n(4551),f=n(4595),h=n(1),m=n(6170),p=h("isConcatSpreadable"),g=m>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),y=function(e){if(!s(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,n,r,i,a,s=o(this),f=d(s,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(y(a=-1===t?s:arguments[t]))for(i=l(a),u(h+i),n=0;n<i;n++,h++)n in a&&c(f,h,a[n]);else u(h+1),c(f,h++,a);return f.length=h,f}})},4382:(e,t,n)=>{"use strict";var r=n(8612),i=n(2867).filter;r({target:"Array",proto:!0,forced:!n(4595)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},2084:(e,t,n)=>{"use strict";var r=n(8612),i=n(2867).find,a=n(7095),s="find",o=!0;s in[]&&Array(1)[s](function(){o=!1}),r({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},9892:(e,t,n)=>{"use strict";var r=n(8612),i=n(6142);r({target:"Array",stat:!0,forced:!n(1554)(function(e){Array.from(e)})},{from:i})},6281:(e,t,n)=>{"use strict";var r=n(8612),i=n(6651).includes,a=n(8473),s=n(7095);r({target:"Array",proto:!0,forced:a(function(){return!Array(1).includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},4962:(e,t,n)=>{"use strict";var r=n(5599),i=n(7095),a=n(6775),s=n(4483),o=n(5835).f,l=n(5662),u=n(5247),c=n(9557),d=n(382),f="Array Iterator",h=s.set,m=s.getterFor(f);e.exports=l(Array,"Array",function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})},function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var p=a.Arguments=a.Array;
2if(i("keys"),i("values"),i("entries"),!c&&d&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(e){}},6216:(e,t,n)=>{"use strict";var r=n(8612),i=n(4762),a=n(2121),s=n(5599),o=n(3152),l=i([].join);r({target:"Array",proto:!0,forced:a!==Object||!o("join",",")},{join:function(e){return l(s(this),void 0===e?",":e)}})},6584:(e,t,n)=>{"use strict";var r=n(8612),i=n(2867).map;r({target:"Array",proto:!0,forced:!n(4595)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},9336:(e,t,n)=>{"use strict";var r=n(8612),i=n(4914),a=n(943),s=n(1704),o=n(3392),l=n(6960),u=n(5599),c=n(670),d=n(1),f=n(4595),h=n(1698),m=f("slice"),p=d("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var n,r,d,f=u(this),m=l(f),_=o(e,m),v=o(void 0===t?m:t,m);if(i(f)&&(n=f.constructor,(a(n)&&(n===g||i(n.prototype))||s(n)&&null===(n=n[p]))&&(n=void 0),n===g||void 0===n))return h(f,_,v);for(r=new(void 0===n?g:n)(y(v-_,0)),d=0;_<v;_++,d++)_ in f&&c(r,d,f[_]);return r.length=d,r}})},6448:(e,t,n)=>{"use strict";var r=n(8612),i=n(4762),a=n(8120),s=n(2347),o=n(6960),l=n(6060),u=n(6261),c=n(8473),d=n(7354),f=n(3152),h=n(7332),m=n(8996),p=n(6170),g=n(5158),y=[],_=i(y.sort),v=i(y.push),E=c(function(){y.sort(void 0)}),b=c(function(){y.sort(null)}),T=f("sort"),S=!c(function(){if(p)return p<70;if(!(h&&h>3)){if(m)return!0;if(g)return g<603;var e,t,n,r,i="";for(e=65;e<76;
vendor: 5,065 bytes, line 2
2e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort(function(e,t){return t.v-e.v}),r=0;r<y.length;r++)t=y[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});r({target:"Array",proto:!0,forced:E||!b||!T||!S},{sort:function(e){void 0!==e&&a(e);var t=s(this);if(S)return void 0===e?_(t):_(t,e);var n,r,i=[],c=o(t);for(r=0;r<c;r++)r in t&&v(i,t[r]);for(d(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=o(i),r=0;r<n;)t[r]=i[r++];for(;r<c;)l(t,r++);return t}})},4754:(e,t,n)=>{"use strict";var r=n(5755),i=n(7914),a=n(6446),s=n(1)("toPrimitive"),o=Date.prototype;r(o,s)||i(o,s,a)},1908:(e,t,n)=>{"use strict";var r=n(382),i=n(2048).EXISTS,a=n(4762),s=n(3864),o=Function.prototype,l=a(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=a(u.exec);r&&!i&&s(o,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},6184:(e,t,n)=>{"use strict";var r=n(8612),i=n(1409),a=n(3067),s=n(1807),o=n(4762),l=n(8473),u=n(1483),c=n(1423),d=n(1698),f=n(5215),h=n(6029),m=String,p=i("JSON","stringify"),g=o(/./.exec),y=o("".charAt),_=o("".charCodeAt),v=o("".replace),E=o(1..toString),b=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,w=!h||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))}),L=l(function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")}),A=function(e,t){var n=d(arguments),r=f(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=s(r,this,m(e),t)),!c(t))return t},a(p,null,n)},M=function(e,t,n){var r=y(n,t-1),i=y(n,t+1);return g(T,e)&&!g(S,i)||g(S,e)&&!g(T,r)?"\\u"+E(_(e,0),16):e};p&&r({target:"JSON",stat:!0,arity:3,forced:w||L},{stringify:function(e,t,n){var r=d(arguments),i=a(w?A:p,null,r);return L&&"string"==typeof i?v(i,b,M):i}})},2725:(e,t,n)=>{"use strict";n(7446)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(4092))},8551:(e,t,n)=>{"use strict";n(2725)},94:(e,t,n)=>{"use strict";var r=n(8612),i=n(9557),a=n(382),s=n(8389),o=n(6589),l=n(4762),u=n(8730),c=n(5755),d=n(2429),f=n(4815),h=n(1423),m=n(2355),p=n(8473),g=n(2278).f,y=n(4961).f,_=n(5835).f,v=n(2430),E=n(4544).trim,b="Number",T=s[b],S=o[b],w=T.prototype,L=s.TypeError,A=l("".slice),M=l("".charCodeAt),D=u(b,!T(" 0o1")||!T("0b1")||T("+0x1")),k=function(e){var t,n=arguments.length<1?0:T(function(e){var t=m(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,i,a,s,o,l,u=m(e,"number");if(h(u))throw new L("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=E(u),43===(t=M(u,0))||45===t){if(88===(n=M(u,2))||120===n)return NaN}else if(48===t){switch(M(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(s=(a=A(u,2)).length,o=0;o<s;o++)if((l=M(a,o))<48||l>i)return NaN;return parseInt(a,r)}return+u}(t)}(e));return f(w,t=this)&&p(function(){v(t)})?d(Object(n),this,k):n};k.prototype=w,D&&!i&&(w.constructor=k),r({global:!0,constructor:!0,wrap:!0,forced:D},{Number:k});var I=function(e,t){for(var n,r=a?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(t,n=r[i])&&!c(e,n)&&_(e,n,y(t,n))};i&&S&&I(o[b],S),(D||i)&&I(o[b],T)},7575:(e,t,n)=>{"use strict";var r=n(8612),i=n(1439);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},7132:(e,t,n)=>{"use strict";var r=n(8612),i=n(5627).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},6457:(e,t,n)=>{"use strict";var r=n(8612),i=n(8473),a=n(5599),s=n(4961).f,o=n(382);r({target:"Object",stat:!0,forced:!o||i(function(){s(1)}),sham:!o},{getOwnPropertyDescriptor:function(e,t){return s(a(e),t)}})},8908:(e,t,n)=>{"use strict";var r=n(8612),i=n(382),a=n(9497),s=n(5599),o=n(4961),l=n(670);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=s(e),i=o.f,u=a(r),c={},d=0;u.length>d;)void 0!==(n=i(r,t=u[d++]))&&l(c,t,n);return c}})},7859:(e,t,n)=>{"use strict";var r=n(8612),i=n(6029),a=n(8473),s=n(4347),o=n(2347);r({target:"Object",stat:!0,forced:!i||a(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(o(e)):[]}})},6437:(e,t,n)=>{"use strict";var r=n(8612),i=n(8473),a=n(2347),s=n(3181),o=n(9441);r({target:"Object",stat:!0,forced:i(function(){s(1)}),sham:!o},{getPrototypeOf:function(e){return s(a(e))}})},3810:(e,t,n)=>{"use strict";var r=n(8612),i=n(2347),a=n(3658);r({target:"Object",stat:!0,forced:n(8473)(function(){a(1)})},{keys:function(e){return a(i(e))}})},2697:(e,t,n)=>{"use strict";n(8612)({target:"Object",stat:!0},{setPrototypeOf:n(1953)})},8557:(e,t,n)=>{"use strict";var r=n(4338),i=n(7914),a=n(5685);r||i(Object.prototype,"toString",a,{unsafe:!0})}
vendor: 4,176 bytes, line 2
2,6249:(e,t,n)=>{"use strict";var r=n(8612),i=n(1807),a=n(8120),s=n(1173),o=n(4193),l=n(1506);r({target:"Promise",stat:!0,forced:n(1407)},{all:function(e){var t=this,n=s.f(t),r=n.resolve,u=n.reject,c=o(function(){var n=a(t.resolve),s=[],o=0,c=1;l(e,function(e){var a=o++,l=!1;c++,i(n,t,e).then(function(e){l||(l=!0,s[a]=e,--c||r(s))},u)}),--c||r(s)});return c.error&&u(c.value),n.promise}})},6681:(e,t,n)=>{"use strict";var r=n(8612),i=n(9557),a=n(5502).CONSTRUCTOR,s=n(2832),o=n(1409),l=n(1483),u=n(7914),c=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(s)){var d=o("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},8786:(e,t,n)=>{"use strict";var r,i,a,s=n(8612),o=n(9557),l=n(4334),u=n(8389),c=n(1807),d=n(7914),f=n(1953),h=n(2277),m=n(240),p=n(8120),g=n(1483),y=n(1704),_=n(6021),v=n(483),E=n(7007).set,b=n(553),T=n(1339),S=n(4193),w=n(5459),L=n(4483),A=n(2832),M=n(5502),D=n(1173),k="Promise",I=M.CONSTRUCTOR,R=M.REJECTION_EVENT,C=M.SUBCLASSING,P=L.getterFor(k),O=L.set,x=A&&A.prototype,N=A,F=x,Y=u.TypeError,U=u.document,B=u.process,j=D.f,H=j,G=!!(U&&U.createEvent&&u.dispatchEvent),Z="unhandledrejection",$=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},z=function(e,t){var n,r,i,a=t.value,s=1===t.state,o=s?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{o?(s||(2===t.rejection&&X(t),t.rejection=1),!0===o?n=a:(d&&d.enter(),n=o(a),d&&(d.exit(),i=!0)),n===e.promise?u(new Y("Promise-chain cycle")):(r=$(n))?c(r,n,l,u):l(n)):u(a)}catch(e){d&&!i&&d.exit(),u(e)}},q=function(e,t){e.notified||(e.notified=!0,b(function(){for(var n,r=e.reactions;n=r.get();)z(n,e);e.notified=!1,t&&!e.rejection&&V(e)}))},W=function(e,t,n){var r,i;G?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!R&&(i=u["on"+e])?i(r):e===Z&&T("Unhandled promise rejection",n)},V=function(e){c(E,u,function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=S(function(){l?B.emit("unhandledRejection",r,n):W(Z,n,r)}),e.rejection=l||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(E,u,function(){var t=e.facade;l?B.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)})},Q=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Y("Promise can't be resolved itself");var r=$(t);r?b(function(){var n={done:!1};try{c(r,t,Q(ee,n,e),Q(J,n,e))}catch(t){J(n,t,e)}}):(e.value=t,e.state=1,q(e,!1))}catch(t){J({done:!1},t,e)}}};if(I&&(F=(N=function(e){_(this,F),p(e),c(r,this);var t=P(this);try{e(Q(ee,t),Q(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){O(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:void 0})}).prototype=d(F,"then",function(e,t){var n=P(this),r=j(v(this,N));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=l?B.domain:void 0,0===n.state?n.reactions.add(r):b(function(){z(r,n)}),r.promise}),i=function(){var e=new r,t=P(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(J,t)},D.f=j=function(e){return e===N||void 0===e?new i(e):H(e)},!o&&g(A)&&x!==Object.prototype)){a=x.then,C||d(x,"then",function(e,t){var n=this;return new N(function(e,t){c(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete x.constructor}catch(e){}f&&f(x,F)}s({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:N}),h(N,k,!1,!0),m(k)},76:(e,t,n)=>{"use strict";n(8786),n(6249),n(6681),n(1681),n(9231),n(5774)},1681:(e,t,n)=>{"use strict";var r=n(8612),i=n(1807),a=n(8120),s=n(1173),o=n(4193),l=n(1506);r({target:"Promise",stat:!0,forced:n(1407)},{race:function(e){var t=this,n=s.f(t),r=n.reject,u=o(function(){var s=a(t.resolve);l(e,function(e){i(s,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},9231:(e,t,n)=>{"use strict";var r=n(8612),i=n(1173);r({target:"Promise",stat:!0,forced:n(5502).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},5774:(e,t,n)=>{"use strict";var r=n(8612),i=n(1409),a=n(9557),s=n(2832),o=n(5502).CONSTRUCTOR,l=n(2172),u=i("Promise"),c=a&&
vendor: 3,992 bytes, line 2
2!o;r({target:"Promise",stat:!0,forced:a||o},{resolve:function(e){return l(c&&this===u?s:this,e)}})},1359:(e,t,n)=>{"use strict";var r=n(8612),i=n(1409),a=n(3067),s=n(2164),o=n(2374),l=n(2293),u=n(1704),c=n(5290),d=n(8473),f=i("Reflect","construct"),h=Object.prototype,m=[].push,p=d(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),g=!d(function(){f(function(){})}),y=p||g;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){o(e),l(t);var n=arguments.length<3?e:o(arguments[2]);if(g&&!p)return f(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return a(m,r,t),new(a(s,e,r))}var i=n.prototype,d=c(u(i)?i:h),y=a(e,d,t);return u(y)?y:d}})},646:(e,t,n)=>{"use strict";var r=n(382),i=n(8389),a=n(4762),s=n(8730),o=n(2429),l=n(9037),u=n(5290),c=n(2278).f,d=n(4815),f=n(4786),h=n(6261),m=n(9736),p=n(7435),g=n(7150),y=n(7914),_=n(8473),v=n(5755),E=n(4483).enforce,b=n(240),T=n(1),S=n(3933),w=n(4528),L=T("match"),A=i.RegExp,M=A.prototype,D=i.SyntaxError,k=a(M.exec),I=a("".charAt),R=a("".replace),C=a("".indexOf),P=a("".slice),O=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,N=/a/g,F=new A(x)!==x,Y=p.MISSED_STICKY,U=p.UNSUPPORTED_Y;if(s("RegExp",r&&(!F||Y||S||w||_(function(){return N[L]=!1,A(x)!==x||A(N)===N||"/a/i"!==String(A(x,"i"))})))){for(var B=function(e,t){var n,r,i,a,s,c,p=d(M,this),g=f(e),y=void 0===t,_=[],b=e;if(!p&&g&&y&&e.constructor===B)return e;if((g||d(M,e))&&(e=e.source,y&&(t=m(b))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),b=e,S&&"dotAll"in x&&(r=!!t&&C(t,"s")>-1)&&(t=R(t,/s/g,"")),n=t,Y&&"sticky"in x&&(i=!!t&&C(t,"y")>-1)&&U&&(t=R(t,/y/g,"")),w&&(a=function(e){for(var t,n=e.length,r=0,i="",a=[],s=u(null),o=!1,l=!1,c=0,d="";r<=n;r++){if("\\"===(t=I(e,r)))t+=I(e,++r);else if("]"===t)o=!1;else if(!o)switch(!0){case"["===t:o=!0;break;case"("===t:k(O,P(e,r+1))&&(r+=2,l=!0),i+=t,c++;continue;case">"===t&&l:if(""===d||v(s,d))throw new D("Invalid capture group name");s[d]=!0,a[a.length]=[d,c],l=!1,d="";continue}l?d+=t:i+=t}return[i,a]}(e),e=a[0],_=a[1]),s=o(A(e,t),p?this:M,B),(r||i||_.length)&&(c=E(s),r&&(c.dotAll=!0,c.raw=B(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=I(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+I(e,++r);return i}(e),n)),i&&(c.sticky=!0),_.length&&(c.groups=_)),e!==b)try{l(s,"source",""===b?"(?:)":b)}catch(e){}return s},j=c(A),H=0;j.length>H;)g(B,A,j[H++]);M.constructor=B,B.prototype=M,y(i,"RegExp",B,{constructor:!0})}b("RegExp")},5021:(e,t,n)=>{"use strict";var r=n(8612),i=n(8865);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},3687:(e,t,n)=>{"use strict";var r=n(2048).PROPER,i=n(7914),a=n(2293),s=n(6261),o=n(8473),l=n(9736),u="toString",c=RegExp.prototype,d=c[u],f=o(function(){return"/a/b"!==d.call({source:"a",flags:"b"})}),h=r&&d.name!==u;(f||h)&&i(c,u,function(){var e=a(this);return"/"+s(e.source)+"/"+s(l(e))},{unsafe:!0})},9203:(e,t,n)=>{"use strict";n(7446)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(4092))},2745:(e,t,n)=>{"use strict";n(9203)},987:(e,t,n)=>{"use strict";var r,i=n(8612),a=n(3786),s=n(4961).f,o=n(8324),l=n(6261),u=n(4989),c=n(3312),d=n(4522),f=n(9557),h=a("".slice),m=Math.min,p=d("endsWith");i({target:"String",proto:!0,forced:!(!f&&!p&&(r=s(String.prototype,"endsWith"),r&&!r.writable)||p)},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:m(o(n),r),a=l(e);return h(t,i-a.length,i)===a}})},9425:(e,t,n)=>{"use strict";var r=n(8612),i=n(4762),a=n(4989),s=n(3312),o=n(6261),l=n(4522),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(o(s(this)),o(a(e)),arguments.length>1?arguments[1]:void 0)}})},3994:(e,t,n)=>{"use strict";var r=n(9105).charAt,i=n(6261),a=n(4483),s=n(5662),o=n(5247),l="Str
2ing Iterator",u=a.set,c=a.getterFor(l);s(String,"String",function(e){u(this,{type:l,string:i(e),index:0})},function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?o(void 0,!0):(e=r(n,i),t.index+=e.length,o(e,!1))})},3819:(e,t,n)=>{"use strict";var r=n(1807),i=n(3358),a=n(2293),s=n(5983),o=n(8324),l=n(6261),u=n(3312),c=n(2564),d=n(4419),f=n(2428);i("match",function(e,t,n){return[function(t){var n=u(this),i=s(t)?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=a(this),i=l(e),s=n(t,r,i);if(s.done)return s.value;if(!r.global)return f(r,i);var u=r.unicode;r.lastIndex=0;for(var c,h=[],m=0;null!==(c=f(r,i));){var p=l(c[0]);h[m]=p,""===p&&(r.lastIndex=d(i,o(r.lastIndex),u)),m++}return 0===m?null:h}]})},3062:(e,t,n)=>{"use strict";var r=n(3067),i=n(1807),a=n(4762),s=n(3358),o=n(8473),l=n(2293),u=n(1483),c=n(5983),d=n(3005),f=n(8324),h=n(6261),m=n(3312),p=n(4419),g=n(2564),y=n(708),_=n(2428),v=n(1)("replace"),E=Math.max,b=Math.min,T=a([].concat),S=a([].push),w=a("".indexOf),L=a("".slice),A="$0"==="a".replace(/./,"$0"),M=!!/./[v]&&""===/./[v]("a","$0");s("replace",function(e,t,n){var a=M?"$":"$0";return[function(e,n){var r=m(this),a=c(e)?void 0:g(e,v);return a?i(a,e,r,n):i(t,h(r),e,n)},function(e,i){var s=l(this),o=h(e);if("string"==typeof i&&-1===w(i,a)&&-1===w(i,"$<")){var c=n(t,s,o,i);if(c.done)return c.value}var m=u(i);m||(i=h(i));var g,v=s.global;v&&(g=s.unicode,s.lastIndex=0);for(var A,M=[];null!==(A=_(s,o))&&(S(M,A),v);)""===h(A[0])&&(s.lastIndex=p(o,f(s.lastIndex),g));for(var D,k="",I=0,R=0;R<M.length;R++){for(var C,P=h((A=M[R])[0]),O=E(b(d(A.index),o.length),0),x=[],N=1;N<A.length;N++)S(x,void 0===(D=A[N])?D:String(D));var F=A.groups;if(m){var Y=T([P],x,O,o);void 0!==F&&S(Y,F),C=h(r(i,void 0,Y))}else C=y(P,o,O,x,F,i);O>=I&&(k+=L(o,I,O)+C,I=O+P.length)}return k+L(o,I)}]},!!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!A||M)},4062:(e,t,n)=>{"use strict";var r,i=n(8612),a=n(3786),s=n(4961).f,o=n(8324),l=n(6261),u=n(4989),c=n(3312),d=n(4522),f=n(9557),h=a("".slice),m=Math.min,p=d("startsWith");i({target:"String",proto:!0,forced:!(!f&&!p&&(r=s(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=l(c(this));u(e);var n=o(m(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return h(t,n,n+r.length)===r}})},5443:(e,t,n)=>{"use strict";var r=n(8612),i=n(8389),a=n(1807),s=n(4762),o=n(9557),l=n(382),u=n(6029),c=n(8473),d=n(5755),f=n(4815),h=n(2293),m=n(5599),p=n(3815),g=n(6261),y=n(7738),_=n(5290),v=n(3658),E=n(2278),b=n(2020),T=n(4347),S=n(4961),w=n(5835),L=n(5799),A=n(7611),M=n(7914),D=n(3864),k=n(7255),I=n(5409),R=n(1507),C=n(1866),P=n(1),O=n(5373),x=n(7849),N=n(8192),F=n(2277),Y=n(4483),U=n(2867).forEach,B=I("hidden"),j="Symbol",H="prototype",G=Y.set,Z=Y.getterFor(j),$=Object[H],z=i.Symbol,q=z&&z[H],W=i.RangeError,V=i.TypeError,K=i.QObject,X=S.f,Q=w.f,J=b.f,ee=A.f,te=s([].push),ne=k("symbols"),re=k("op-symbols"),ie=k("wks"),ae=!K||!K[H]||!K[H].findChild,se=function(e,t,n){var r=X($,t);r&&delete $[t],Q(e,t,n),r&&e!==$&&Q($,t,r)},oe=l&&c(function(){return 7!==_(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?se:Q,le=function(e,t){var n=ne[e]=_(q);return G(n,{type:j,tag:e,description:t}),l||(n.description=t),n},ue=function(e,t,n){e===$&&ue(re,t,n),h(e);var r=p(t);return h(n),d(ne,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=_(n,{enumerable:y(0,!1)})):(d(e,B)||Q(e,B,y(1,_(null))),e[B][r]=!0),oe(e,r,n)):Q(e,r,n)},ce=function(e,t){h(e);var n=m(t),r=v(n).concat(me(n));return U(r,function(t){l&&!a(de,n,t)||ue(e,t,n[t])}),e},de=function(e){var t=p(e),n=a(ee,this,t);
vendor: 4,107 bytes, line 2
2return!(this===$&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,B)&&this[B][t])||n)},fe=function(e,t){var n=m(e),r=p(t);if(n!==$||!d(ne,r)||d(re,r)){var i=X(n,r);return!i||!d(ne,r)||d(n,B)&&n[B][r]||(i.enumerable=!0),i}},he=function(e){var t=J(m(e)),n=[];return U(t,function(e){d(ne,e)||d(R,e)||te(n,e)}),n},me=function(e){var t=e===$,n=J(t?re:m(e)),r=[];return U(n,function(e){!d(ne,e)||t&&!d($,e)||te(r,ne[e])}),r};u||(M(q=(z=function(){if(f(q,this))throw new V("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=C(e),n=function(e){var r=void 0===this?i:this;r===$&&a(n,re,e),d(r,B)&&d(r[B],t)&&(r[B][t]=!1);var s=y(1,e);try{oe(r,t,s)}catch(e){if(!(e instanceof W))throw e;se(r,t,s)}};return l&&ae&&oe($,t,{configurable:!0,set:n}),le(t,e)})[H],"toString",function(){return Z(this).tag}),M(z,"withoutSetter",function(e){return le(C(e),e)}),A.f=de,w.f=ue,L.f=ce,S.f=fe,E.f=b.f=he,T.f=me,O.f=function(e){return le(P(e),e)},l&&(D(q,"description",{configurable:!0,get:function(){return Z(this).description}}),o||M($,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),U(v(ie),function(e){x(e)}),r({target:j,stat:!0,forced:!u},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?_(e):ce(_(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:he}),N(),F(z,j),R[B]=!0},2733:(e,t,n)=>{"use strict";var r=n(8612),i=n(382),a=n(8389),s=n(4762),o=n(5755),l=n(1483),u=n(4815),c=n(6261),d=n(3864),f=n(6726),h=a.Symbol,m=h&&h.prototype;if(i&&l(h)&&(!("description"in m)||void 0!==h().description)){var p={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(m,this)?new h(e):void 0===e?h():h(e);return""===e&&(p[t]=!0),t};f(g,h),g.prototype=m,m.constructor=g;var y="Symbol(description detection)"===String(h("description detection")),_=s(m.valueOf),v=s(m.toString),E=/^Symbol\((.*)\)[^)]+$/,b=s("".replace),T=s("".slice);d(m,"description",{configurable:!0,get:function(){var e=_(this);if(o(p,e))return"";var t=v(e),n=y?T(t,7,-1):b(t,E,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},2484:(e,t,n)=>{"use strict";var r=n(8612),i=n(1409),a=n(5755),s=n(6261),o=n(7255),l=n(3218),u=o("string-to-symbol-registry"),c=o("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=s(e);if(a(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,c[n]=t,n}})},4701:(e,t,n)=>{"use strict";n(7849)("iterator")},9305:(e,t,n)=>{"use strict";n(5443),n(2484),n(1894),n(6184),n(7859)},1894:(e,t,n)=>{"use strict";var r=n(8612),i=n(5755),a=n(1423),s=n(8761),o=n(7255),l=n(3218),u=o("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!a(e))throw new TypeError(s(e)+" is not a symbol");if(i(u,e))return u[e]}})},1678:(e,t,n)=>{"use strict";var r=n(7849),i=n(8192);r("toPrimitive"),i()},3630:(e,t,n)=>{"use strict";var r=n(8389),i=n(4842),a=n(1902),s=n(4793),o=n(9037),l=function(e){if(e&&e.forEach!==s)try{o(e,"forEach",s)}catch(t){e.forEach=s}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(a)},2367:(e,t,n)=>{"use strict";var r=n(8389),i=n(4842),a=n(1902),s=n(4962),o=n(9037),l=n(2277),u=n(1)("iterator"),c=s.values,d=function(e,t){if(e){if(e[u]!==c)try{o(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),i[t])for(var n in s)if(e[n]!==s[n])try{o(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var f in i)d(r[f]&&r[f].prototype,f);d(a,"DOMTokenList")},9833:(e,t,n)=>{"use strict";var r=n(8612),i=n(8389),a=n(9570)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==a},{setInterval:a})},3989:(e,t,n)=>{"use strict";var r=n(8612),i=n(8389),a=n(9570)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==a},{setTimeout:a})},7089:(e,t,n)=>{"use strict";n(9833),n(3989)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>
vendor: 5,209 bytes, line 2
2{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{addEventListener:()=>nr,defaultConfig:()=>Kn,defaultTranslations:()=>Xn,getConfigTranslations:()=>ir,getElement:()=>tr,getElementID:()=>er,getManager:()=>mr,language:()=>ot,render:()=>sr,renderContextualConsentNotices:()=>or,resetManagers:()=>hr,setup:()=>cr,show:()=>dr,updateConfig:()=>Kt,validateConfig:()=>ur,version:()=>pr}),n(9305),n(2733),n(4701),n(1678),n(4776),n(4382),n(2084),n(9892),n(4962),n(6584),n(9336),n(4754),n(1908),n(8551),n(94),n(6457),n(8908),n(3810),n(8557),n(5021),n(3687),n(3994),n(3630),n(2367);var e,t,i,a,s,o,l,u,c={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function g(t,n,r){var i,a,s,o={};for(s in n)"key"==s?i=n[s]:"ref"==s?a=n[s]:o[s]=n[s];if(arguments.length>2&&(o.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===o[s]&&(o[s]=t.defaultProps[s]);return y(t,o,i,a,null)}function y(e,n,r,a,s){var o={type:e,props:n,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++i,__i:-1,__u:0};return null==s&&null!=t.vnode&&t.vnode(o),o}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function b(e,n,r){var i,a=e.__v,s=a.__e,o=e.__P;if(o)return(i=m({},a)).__v=a.__v+1,t.vnode&&t.vnode(i),O(o,i,a,e.__n,void 0!==o.ownerSVGElement,32&a.__u?[s]:null,n,s??E(a),!!(32&a.__u),r),i.__v=a.__v,i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=s&&T(i),i}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function S(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!w.__r++||s!==t.debounceRendering)&&((s=t.debounceRendering)||o)(w)}function w(){var e,n,r,i=[],s=[];for(a.sort(l);e=a.shift();)e.__d&&(r=a.length,n=b(e,i,s)||n,0===r||a.length>r?(x(i,n,s),s.length=i.length=0,n=void 0,a.sort(l)):n&&t.__c&&t.__c(n,d));n&&x(i,n,s),w.__r=0}function L(e,t,n,r,i,a,s,o,l,u,f){var h,m,p,g,y,_=r&&r.__k||d,v=t.length;for(n.__d=l,A(n,t,_),l=n.__d,h=0;h<v;h++)null!=(p=n.__k[h])&&"boolean"!=typeof p&&"function"!=typeof p&&(m=-1===p.__i?c:_[p.__i]||c,p.__i=h,O(e,p,m,i,a,s,o,l,u,f),g=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&F(m.ref,null,p),f.push(p.ref,p.__c||g,p)),null==y&&null!=g&&(y=g),65536&p.__u||m.__k===p.__k?l=M(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:g&&(l=g.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=y}function A(e,t,n){var r,i,a,s,o,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)s=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?y(null,i,null,null,null):h(i)?y(_,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?y(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,o=k(i,n,s,c),i.__i=o,a=null,-1!==o&&(c--,(a=n[o])&&(a.__u|=131072)),null==a||null===a.__v?(-1==o&&d--,"function"!=typeof i.type&&(i.__u|=65536)):o!==s&&(o===s+1?d++:o>s?c>l-s?d+=o-s:d--:o<s?o==s-1&&(d=o-s):d=0,o!==r+d&&(i.__u|=65536))):(a=n[s])&&null==a.key&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=E(a)),Y(a,a,!1),n[s]=null,c--);if(c)for(r=0;r<u;r++)null!=(a=n[r])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=E(a)),Y(a,a))}function M(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=M(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some(function(e){D(e,t)}):t.push(e)),t}function k(e,t,n,r){var i=e.key,a=e.type,s=n-1,o=n+1,l=t[n];if(null===l||l&&i==l.key&&a===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;s>=0||o<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&a===l.type)return s;s--}if(o<t.length){if((l=t[o])&&!(131072&l.__u)&&i==l.key&&a===l.type)return o;o++}}return-1}function I(e,t,n){"-"===t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function R(e,t,n,r,i){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(e.style,t,n[t])}
vendor: 3,980 bytes, line 2
2else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?P:C,a)):e.removeEventListener(t,a?P:C,a);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=n??"";break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function C(e){if(this.l){var n=this.l[e.type+!1];if(e.t){if(e.t<=n.u)return}else e.t=Date.now();return n(t.event?t.event(e):e)}}function P(e){if(this.l)return this.l[e.type+!0](t.event?t.event(e):e)}function O(e,n,r,i,a,s,o,l,u,c){var d,f,p,g,y,E,b,T,S,w,A,M,D,k,I,R=n.type;if(void 0!==n.constructor)return null;128&r.__u&&(u=!!(32&r.__u),s=[l=n.__e=r.__e]),(d=t.__b)&&d(n);e:if("function"==typeof R)try{if(T=n.props,S=(d=R.contextType)&&i[d.__c],w=d?S?S.props.value:d.__:i,r.__c?b=(f=n.__c=r.__c).__=f.__E:("prototype"in R&&R.prototype.render?n.__c=f=new R(T,w):(n.__c=f=new v(T,w),f.constructor=R,f.render=U),S&&S.sub(f),f.props=T,f.state||(f.state={}),f.context=w,f.__n=i,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=R.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=m({},f.__s)),m(f.__s,R.getDerivedStateFromProps(T,f.__s))),g=f.props,y=f.state,f.__v=n,p)null==R.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==R.getDerivedStateFromProps&&T!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(T,w),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(T,f.__s,w)||n.__v===r.__v)){for(n.__v!==r.__v&&(f.props=T,f.state=f.__s,f.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.forEach(function(e){e&&(e.__=n)}),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&o.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(T,f.__s,w),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(g,y,E)})}if(f.context=w,f.props=T,f.__P=e,f.__e=!1,M=t.__r,D=0,"prototype"in R&&R.prototype.render){for(f.state=f.__s,f.__d=!1,M&&M(n),d=f.render(f.props,f.state,f.context),k=0;k<f._sb.length;k++)f.__h.push(f._sb[k]);f._sb=[]}else do{f.__d=!1,M&&M(n),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++D<25);f.state=f.__s,null!=f.getChildContext&&(i=m(m({},i),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(E=f.getSnapshotBeforeUpdate(g,y)),L(e,h(I=null!=d&&d.type===_&&null==d.key?d.props.children:d)?I:[I],n,r,i,a,s,o,l,u,c),f.base=n.__e,n.__u&=-161,f.__h.length&&o.push(f),b&&(f.__E=f.__=null)}catch(e){n.__v=null,u||null!=s?(n.__e=l,n.__u|=u?160:32,s[s.indexOf(l)]=null):(n.__e=r.__e,n.__k=r.__k),t.__e(e,n,r)}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=N(r.__e,n,r,i,a,s,o,u,c);(d=t.diffed)&&d(n)}function x(e,n,r){for(var i=0;i<r.length;i++)F(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){t.__e(e,n.__v)}})}function N(t,n,r,i,a,s,o,l,u){var d,f,m,g,y,_,v,b=r.props,T=n.props,S=n.type;if("svg"===S&&(a=!0),null!=s)for(d=0;d<s.length;d++)if((y=s[d])&&"setAttribute"in y==!!S&&(S?y.localName===S:3===y.nodeType)){t=y,s[d]=null;break}if(null==t){if(null===S)return document.createTextNode(T);t=a?document.createElementNS("http://www.w3.org/2000/svg",S):document.createElement(S,T.is&&T),s=null,l=!1}if(null===S)b===T||l&&t.data===T||(t.data=T);else{if(s=s&&e.call(t.childNodes),b=r.props||c,!l&&null!=s)for(b={},d=0;d<t.attributes.length;d++)b[(y=t.attributes[d]).name]=y.value;for(d in b)y=b[d],"children"==d||("dangerouslySetInnerHTML"==d?m=y:"key"===d||d in T||R(t,d,null,y,a));for(d in T)y=T[d],"children"==d?g=y:"dangerouslySetInnerHTML"==d?f=y:"value"==d?_=y:"checked"==d?v=y:"
2key"===d||l&&"function"!=typeof y||b[d]===y||R(t,d,y,b[d],a);if(f)l||m&&(f.__html===m.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),n.__k=[];else if(m&&(t.innerHTML=""),L(t,h(g)?g:[g],n,r,i,a&&"foreignObject"!==S,s,o,s?s[0]:r.__k&&E(r,0),l,u),null!=s)for(d=s.length;d--;)null!=s[d]&&p(s[d]);l||(d="value",void 0!==_&&(_!==t[d]||"progress"===S&&!_||"option"===S&&_!==b[d])&&R(t,d,_,b[d],!1),d="checked",void 0!==v&&v!==t[d]&&R(t,d,v,b[d],!1))}return t}function F(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function Y(e,n,r){var i,a;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||F(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&Y(i[a],n,r||"function"!=typeof e.type);r||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function B(n,r,i){var a,s,o,l;t.__&&t.__(n,r),s=(a="function"==typeof i)?null:i&&i.__k||r.__k,o=[],l=[],O(r,n=(!a&&i||r).__k=g(_,null,[n]),s||c,c,void 0!==r.ownerSVGElement,!a&&i?[i]:s?null:r.firstChild?e.call(r.childNodes):null,o,!a&&i?i:s?s.__e:r.firstChild,a,l),n.__d=void 0,x(o,n,l)}function j(e,t){B(e,t,j)}function H(t,n,r){var i,a,s,o,l=m({},t.props);for(s in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),n)"key"==s?i=n[s]:"ref"==s?a=n[s]:l[s]=void 0===n[s]&&void 0!==o?o[s]:n[s];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),y(t.type,l,i||t.key,a||t.ref,null)}e=d.slice,t={__e:function(e,t,n,r){for(var i,a,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},i=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},v.prototype.render=_,a=[],o="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 6,999 bytes, line 2
2ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},w.__r=0,u=0;var G,Z,$,z,q=0,W=[],V=[],K=t,X=K.__b,Q=K.__r,J=K.diffed,ee=K.__c,te=K.unmount,ne=K.__;function re(e,t){K.__h&&K.__h(Z,e,q||t),q=0;var n=Z.__H||(Z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:V}),n.__[e]}function ie(e){return q=1,ae(pe,e)}function ae(e,t,n){var r=re(G++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):pe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Z,!Z.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var s=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),!(!s&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};Z.u=!0;var a=Z.shouldComponentUpdate,s=Z.componentWillUpdate;Z.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}s&&s.call(this,e,t,n)},Z.shouldComponentUpdate=i}return r.__N||r.__}function se(e,t){var n=re(G++,3);!K.__s&&me(n.__H,t)&&(n.__=e,n.i=t,Z.__H.__h.push(n))}function oe(e,t){var n=re(G++,4);!K.__s&&me(n.__H,t)&&(n.__=e,n.i=t,Z.__h.push(n))}function le(e,t){var n=re(G++,7);return me(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(){for(var e;e=W.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fe),e.__H.__h.forEach(he),e.__H.__h=[]}catch(t){e.__H.__h=[],K.__e(t,e.__v)}}K.__b=function(e){Z=null,X&&X(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ne&&ne(e,t)},K.__r=function(e){Q&&Q(e),G=0;var t=(Z=e.__c).__H;t&&($===Z?(t.__h=[],Z.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=V,e.__N=e.i=void 0})):(t.__h.forEach(fe),t.__h.forEach(he),t.__h=[],G=0)),$=Z},K.diffed=function(e){J&&J(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==W.push(t)&&z===K.requestAnimationFrame||((z=K.requestAnimationFrame)||de)(ue)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==V&&(e.__=e.__V),e.i=void 0,e.__V=V})),$=Z=null},K.__c=function(e,t){t.some(function(e){try{e.__h.forEach(fe),e.__h=e.__h.filter(function(e){return!e.__||he(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],K.__e(n,e.__v)}}),ee&&ee(e,t)},K.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{fe(e)}catch(e){t=e}}),n.__H=void 0,t&&K.__e(t,n.__v))};var ce="function"==typeof requestAnimationFrame;function de(e){var t,n=function(){clearTimeout(r),ce&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ce&&(t=requestAnimationFrame(n))}function fe(e){var t=Z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Z=t}function he(e){var t=Z;e.__c=e.__(),Z=t}function me(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function pe(e,t){return"function"==typeof t?t(e):t}function ge(e,t){for(var n in t)e[n]=t[n];return e}function ye(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function _e(e,t){this.props=e,this.context=t}(_e.prototype=new v).isPureReactComponent=!0,_e.prototype.shouldComponentUpdate=function(e,t){return ye(this.props,e)||ye(this.state,t)};var ve=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,be=function(e,t){return null==e?null:D(D(e).map(t))},Te={map:be,forEach:be,count:function(e){return e?D(e).length:0},only:function(e){var t=D(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:D},Se=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Se(e,t,n,r)};var we=t.unmount;function Le(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=ge({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return Le(e,t,n)})),e}function Ae(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Ae(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Me(){this.__u=0,this.t=null,this.__b=null}function De(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ke(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),we&&we(e)},(Me.prototype=new v).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=De(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,i?i(o):o())};n.__R=s;var o=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ae(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Me.prototype.componentWillUnmount=function(){this.t=[]},Me.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Le(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&g(_,null,e.fallback);return i&&(i.__u&=-33),[g(_,null,t.__a?null:e.children),i]};var Ie=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Re(e){return this.getChildContext=function(){return e.context},e.children}function Ce(e){var t=this,n=e.i;t.componentWillUnmount=function(){B(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),B(g(Re,{context:t.context},e.__v),t.l)}(ke.prototype=new v).__a=function(e){var t=this,n=De(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Ie(t,e,r)):i()};n?n(a):a()}},ke.prototype.render=function(e){this.u=null,this.o=new Map;var t=D(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ke.prototype.componentDidUpdate=ke.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ie(e,n,t)})};var Pe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ne=/[A-Z0-9]/g,Fe="undefined"!=typeof document,Ye=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};
vendor: 5,547 bytes, line 2
2function Ue(e,t,n){return null==t.__k&&(t.textContent=""),B(e,t),"function"==typeof n&&n(),e?e.__c:null}v.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(v.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Be=t.event;function je(){}function He(){return this.cancelBubble}function Ge(){return this.defaultPrevented}t.event=function(e){return Be&&(e=Be(e)),e.persist=je,e.isPropagationStopped=He,e.isDefaultPrevented=Ge,e.nativeEvent=e};var Ze,$e={enumerable:!1,configurable:!0,get:function(){return this.class}},ze=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||Fe&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Ye(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":xe.test(i)?i=s:-1===n.indexOf("-")&&Oe.test(i)?i=i.replace(Ne,"-$&").toLowerCase():null===a&&(a=void 0):s=i="oninput","oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=D(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=D(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",$e)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Pe,ze&&ze(e)};var qe=t.__r;t.__r=function(e){qe&&qe(e),Ze=e.__c};var We=t.diffed;t.diffed=function(e){We&&We(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Ze=null};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Ze.__n[e.__c].props.value}}}};function Ke(e){return!!e&&e.$$typeof===Pe}function Xe(e){e()}function Qe(e){var t,n,r=e.v,i=e.__;try{var a=r();return!((t=i)===(n=a)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Je={useState:ie,useId:function(){var e=re(G++,11);if(!e.__){for(var t=Z.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useReducer:ae,useEffect:se,useLayoutEffect:oe,useInsertionEffect:oe,useTransition:function(){return[!1,Xe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=t(),r=ie({h:{__:n,v:t}}),i=r[0].h,a=r[1];return oe(function(){i.__=n,i.v=t,Qe(i)&&a({h:i})},[e,n,t]),se(function(){return Qe(i)&&a({h:i}),e(function(){Qe(i)&&a({h:i})})},[e]),n},startTransition:Xe,useRef:function(e){return q=5,le(function(){return{current:e}},[])},useImperativeHandle:function(e,t,n){q=6,oe(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useMemo:le,useCallback:function(e,t){return q=8,le(function(){return e},t)},useContext:function(e){var t=Z.context[e.__c],n=re(G++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Z)),t.props.value):e.__},useDebugValue:function(e,t){K.useDebugValue&&K.useDebugValue(t?t(e):e)},version:"17.0.2",Children:Te,render:Ue,hydrate:function(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(B(null,e),!0)},createPortal:function(e,t){var n=g(Ce,{__v:e,i:t});return n.containerInfo=t,n},createElement:g,createContext:function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,S(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return g.bind(null,e)},cloneElement:function(e){return Ke(e)?H.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:_,isValidElement:Ke,isElement:Ke,isFragment:function(e){return Ke(e)&&e.type===_},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:v,PureComponent:_e,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ye(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t){var n=ge({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ee,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:_,Suspense:Me,SuspenseList:ke,lazy:function(e){var t,n,r;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return g(n,i)}return i.displayName="Lazy",i.__f=!0,i}
vendor: 6,336 bytes, line 2
2,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ve},et=(n(6437),n(2697),n(1359),n(6216),n(6448),n(7089),n(2688)),tt=function(e){var t=e.t;return Je.createElement("svg",{role:"img","aria-label":t(["close"]),width:"12",height:"12",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Je.createElement("title",null,t(["close"])),Je.createElement("line",{x1:"1",y1:"11",x2:"11",y2:"1",strokeWidth:"1"}),Je.createElement("line",{x1:"1",y1:"1",x2:"11",y2:"11",strokeWidth:"1"}))};function nt(e){return e.split("-").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join(" ")}function rt(e){return function(e){if(Array.isArray(e))return it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}tt.propTypes={t:n.n(et)().func},n(7575),n(646),n(987),n(3819);var st=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a=at(n[0]);i=0===n.length?{}:"string"===a||"number"===a?Array.prototype.slice.call(n):n[0];for(var s=[],o=e.toString();o.length>0;){var l=o.match(/\{(?!\{)([\w\d]+)\}(?!\})/);if(null!==l){var u=o.substr(0,l.index);o=o.substr(l.index+l[0].length);var c=parseInt(l[1]);s.push(u),c!=c?s.push(i[l[1]]):s.push(i[c])}else s.push(o),o=""}return s};function ot(e){if(void 0!==e&&void 0!==e.lang&&"zz"!==e.lang)return e.lang;var t=(("string"==typeof window.language?window.language:null)||document.documentElement.lang||(void 0!==e&&void 0!==e.languages&&void 0!==e.languages[0]?e.languages[0]:"en")).toLowerCase(),n=new RegExp("^([\\w]+)-([\\w]+)$").exec(t);return null===n?t:n[1]}function lt(e,t,n){var r=t;Array.isArray(r)||(r=[r]);for(var i=e,a=0;a<r.length;a++){if(void 0===i)return n;if(void 0!==r[a]&&r[a].endsWith("?")){var s,o=r[a].slice(0,r[a].length-1);void 0!==(s=i instanceof Map?i.get(o):i[o])&&"string"==typeof s&&(i=s)}else i=i instanceof Map?i.get(r[a]):i[r[a]]}return void 0===i||"string"!=typeof i?n:""!==i?i:void 0}function ut(e,t,n,r){var i=r,a=!1;"!"===i[0]&&(i=i.slice(1),a=!0),Array.isArray(i)||(i=[i]);var s=lt(e,[t].concat(rt(i)));if(void 0===s&&void 0!==n&&(s=lt(e,[n].concat(rt(i)))),void 0===s){if(a)return;return["[missing translation: ".concat(t,"/").concat(i.join("/"),"]")]}for(var o=arguments.length,l=new Array(o>4?o-4:0),u=4;u<o;u++)l[u-4]=arguments[u];return l.length>0?st.apply(void 0,[s].concat(l)):s}const ct=function(e){var t=e.text,n=e.config;if(t instanceof Array||(t=[t]),!0===n.htmlTexts){var r=!1;"<"===t[0][0]&&(r=!0);var i=t.map(function(e,t){return"string"==typeof e?Je.createElement("span",{key:t,dangerouslySetInnerHTML:{__html:e}}):e});return r?Je.createElement(Je.Fragment,null,i):Je.createElement("span",null,i)}return Je.createElement("span",null,t)};function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ft.apply(this,arguments)}function ht(e){var t=function(e){if("object"!=dt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dt(t)?t:String(t)}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(mt=function(){return!!e})()}function pt(e){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pt(e)}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}var yt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=pt(t),function(e,t){if(t&&("object"===dt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mt()?Reflect.construct(t,n||[],pt(e).constructor):t.apply(e,n))}(this,t,arguments)}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e,t=this.props,n=t.checked,r=t.onlyRequiredEnabled,i=t.onToggle,a=t.name,s=t.lang,o=t.config,l=t.translations,u=t.title,c=t.description,d=t.visible,f=t.t,h=this.props.required||!1,m=this.props.optOut||!1,p=this.props.purposes||[],g="service-item-".concat(a),y="".concat(g,"-title"),_=p.map(function(e){return f(["!","purposes",e,"title?"])||nt(e)}).join(", "),v=m?Je.createElement("span",{className:"cm-opt-out",title:f(["service","optOut","description"])},f(["service","optOut","title"])):"",E=h?Je.createElement("span",{className:"cm-required",title:f(["service","required","description"])},f(["service","required","title"])):"";p.length>0&&(e=Je.createElement("p",{className:"purposes"},f(["service",p.length>1?"purposes":"purpose"]),": ",_));
vendor: 3,727 bytes, line 2
2var b=c||ut(l,s,"zz",["!","description"])||f(["!",a,"description?"]);return Je.createElement("div",null,Je.createElement("input",{id:g,className:"cm-list-input"+(h?" required":"")+(r?" half-checked only-required":""),"aria-labelledby":"".concat(y),"aria-describedby":"".concat(g,"-description"),disabled:h,checked:n||h,tabIndex:d?"0":"-1",type:"checkbox",onChange:function(e){i(e.target.checked)}}),Je.createElement("label",ft({htmlFor:g,className:"cm-list-label"},h?{tabIndex:"0"}:{}),Je.createElement("span",{className:"cm-list-title",id:"".concat(y)},u||ut(l,s,"zz",["!","title"])||f(["!",a,"title?"])||nt(a)),E,v,Je.createElement("span",{className:"cm-switch"},Je.createElement("div",{className:"slider round active"}))),Je.createElement("div",{id:"".concat(g,"-description")},b&&Je.createElement("p",{className:"cm-list-description"},Je.createElement(ct,{config:o,text:b})),e))}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ht(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function vt(e){var t=function(e){if("object"!=_t(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:String(t)}function Et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Et=function(){return!!e})()}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e,t){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},St(e,t)}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(this,arguments)}var Lt=function(e){var t=e.services,n=e.config,r=e.consents,i=e.lang,a=e.toggle,s=e.visible,o=e.t;return t.map(function(e){var t=r[e.name];return Je.createElement("li",{key:e.name,className:"cm-service"},Je.createElement(yt,wt({checked:t||e.required,onToggle:function(t){a([e],t)},config:n,lang:i,visible:s,t:o},e)))})},At=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=bt(t),function(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tt(e)}(e,Et()?Reflect.construct(t,n||[],bt(e).constructor):t.apply(e,n))}(this,t,[e]),e.manager.watch(Tt(n)),n.state={consents:e.manager.consents},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(t,e),n=t,(r=[{key:"componentWillUnmount",value:function(){this.props.manager.unwatch(this)}},{key:"update",value:function(e,t,n){e===this.props.manager&&"consents"===t&&this.setState({consents:n}
2)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.t,r=e.manager,i=e.lang,a=this.state.consents,s=t.services,o=function(e,t){e.map(function(e){e.required||r.updateConsent(e.name,t)})},l=Je.createElement(Lt,{config:t,lang:i,services:s,t:n,consents:a,toggle:o}),u=s.filter(function(e){return!e.required}),c=u.filter(function(e){return a[e.name]}).length,d=s.filter(function(e){return e.required}).length,f=c===u.length;return s.filter(function(e){return e.required}).length,Je.createElement("ul",{className:"cm-services"},l,!t.hideToggleAll&&u.length>1&&Je.createElement("li",{className:"cm-service cm-toggle-all"},Je.createElement(yt,{name:"disableAll",title:n(["service","disableAll","title"]),description:n(["service","disableAll","description"]),checked:f,config:t,onlyRequiredEnabled:!f&&d>0,onToggle:function(e){o(s,e)},lang:i,t:n})))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vt(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function Mt(e){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(e)}function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dt.apply(this,arguments)}function kt(e){var t=function(e){if("object"!=Mt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mt(t)?t:String(t)}function It(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(It=function(){return!!e})()}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rt(e)}function Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ct(e,t)}var Pt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Rt(t),function(e,t){if(t&&("object"===Mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,It()?Reflect.construct(t,n||[],Rt(e).constructor):t.apply(e,n))}(this,t,[e])).state={servicesVisible:!1},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.allEnabled,i=n.onlyRequiredEnabled,a=n.allDisabled,s=n.services,o=n.config,l=n.onToggle,u=n.name,c=n.lang,d=n.manager,f=n.consents,h=n.title,m=n.description,p=n.t,g=this.state.servicesVisible,y=this.props.required||!1,_=this.props.purposes||[],v="purpose-item-".concat(u),E="".concat(v,"-title"),b=_.map(function(e){return p(["!","purposes",e,"title?"])||nt(e)}).join(", "),T=y?Je.createElement("span",{className:"cm-required",title:p(["!","service","required","description"])||""},p(["service","required","title"])):"";_.length>0&&(e=Je.createElement("p",{className:"purposes"},p(["purpose",_.length>1?"purposes":"purpose"]),": ",b));var S=function(e){e.preventDefault();var n="false"!==e.currentTarget.getAttribute("aria-expanded");e.currentTarget.setAttribute("aria-expanded",!n),t.setState({servicesVisible:!g})},w=Je.createElement(Lt,{config:o,lang:c,services:s,toggle:function(e,t){e.map(function(e){e.required||d.updateConsent(e.name,t)})},consents:f,visible:g,t:p}
vendor: 4,634 bytes, line 2
2),L=m||p(["!","purposes",u,"description"]);return Je.createElement(Je.Fragment,null,Je.createElement("input",{id:v,className:"cm-list-input"+(y?" required":"")+(r?"":i?" only-required":" half-checked"),"aria-labelledby":"".concat(E),"aria-describedby":"".concat(v,"-description"),disabled:y,checked:r||!a&&!i,type:"checkbox",onChange:function(e){l(e.target.checked)}}),Je.createElement("label",Dt({htmlFor:v,className:"cm-list-label"},y?{tabIndex:"0"}:{}),Je.createElement("span",{className:"cm-list-title",id:"".concat(E)},h||p(["!","purposes",u,"title?"])||nt(u)),T,Je.createElement("span",{className:"cm-switch"},Je.createElement("div",{className:"slider round active"}))),Je.createElement("div",{id:"".concat(v,"-description")},L&&Je.createElement("p",{className:"cm-list-description"},Je.createElement(ct,{config:o,text:L})),e),s.length>0&&Je.createElement("div",{className:"cm-services"},Je.createElement("div",{className:"cm-caret"},Je.createElement("a",{href:"#","aria-haspopup":"true","aria-expanded":"false",tabIndex:"0",onClick:S,onKeyDown:function(e){32===e.keyCode&&S(e)}},g&&Je.createElement("span",null,"â")||Je.createElement("span",null,"â")," ",s.length," ",p(["purposeItem",s.length>1?"services":"service"]))),Je.createElement("ul",{className:"cm-content"+(g?" expanded":"")},w)))}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kt(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function xt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e){var t=function(e){if("object"!=Ot(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ot(t)?t:String(t)}function Yt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yt=function(){return!!e})()}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ut(e)}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}var Ht=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=Ut(t),function(e,t){if(t&&("object"===Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bt(e)}(e,Yt()?Reflect.construct(t,n||[],Ut(e).constructor):t.apply(e,n))}(this,t,[e]),e.manager.watch(Bt(n)),n.state={consents:e.manager.consents},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.props.manager.unwatch(this)}},{key:"update",value:function(e,t,n){e===this.props.manager&&"consents"===t&&this.setState({consents:n}
vendor: 7,638 bytes, line 2
2)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.t,i=t.manager,a=t.lang,s=this.state.consents,o=n.services,l={},u=xt(o);try{for(u.s();!(e=u.n()).done;){var c,d=e.value,f=xt(d.purposes);try{for(f.s();!(c=f.n()).done;){var h=c.value;void 0===l[h]&&(l[h]=[]),l[h].push(d)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){u.e(e)}finally{u.f()}var m=function(e,t){e.map(function(e){var n,r=xt(l[e]);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.required||i.updateConsent(a.name,t)}}catch(e){r.e(e)}finally{r.f()}})},p=function(e){var t,n={allEnabled:!0,onlyRequiredEnabled:!0,allDisabled:!0,allRequired:!0},r=xt(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.required||(n.allRequired=!1),s[i.name]?(i.required||(n.onlyRequiredEnabled=!1),n.allDisabled=!1):i.required||(n.allEnabled=!1)}}catch(e){r.e(e)}finally{r.f()}return n.allDisabled&&(n.onlyRequiredEnabled=!1),n},g=n.purposeOrder||[],y=Object.keys(l).sort(function(e,t){return g.indexOf(e)-g.indexOf(t)}).map(function(e){var t=p(l[e]);return Je.createElement("li",{key:e,className:"cm-purpose"},Je.createElement(Pt,{allEnabled:t.allEnabled,allDisabled:t.allDisabled,onlyRequiredEnabled:t.onlyRequiredEnabled,required:t.allRequired,consents:s,name:e,config:n,lang:a,manager:i,onToggle:function(t){m([e],t)},services:l[e],t:r}))}),_=Object.keys(l).filter(function(e){var t,n=xt(l[e]);try{for(n.s();!(t=n.n()).done;)if(!t.value.required)return!0}catch(e){n.e(e)}finally{n.f()}return!1}),v=p(o);return Je.createElement("ul",{className:"cm-purposes"},y,_.length>1&&Je.createElement("li",{className:"cm-purpose cm-toggle-all"},Je.createElement(Pt,{name:"disableAll",title:r(["service","disableAll","title"]),description:r(["service","disableAll","description"]),allDisabled:v.allDisabled,allEnabled:v.allEnabled,onlyRequiredEnabled:v.onlyRequiredEnabled,onToggle:function(e){m(Object.keys(l),e)},manager:i,consents:s,config:n,lang:a,services:[],t:r})))}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ft(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Zt(e){var t=function(e){if("object"!=Gt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gt(t)?t:String(t)}function $t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($t=function(){return!!e})()}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}var Wt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=zt(t),function(e,t){if(t&&("object"===Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$t()?Reflect.construct(t,n||[],zt(e).constructor):t.apply(e,n))}(this,t,arguments)}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.consentModalRef&&this.consentModalRef.focus()}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,a=i.hide,s=i.confirming,o=i.saveAndHide,l=i.acceptAndHide,u=i.declineAndHide,c=i.config,d=i.manager,f=i.lang,h=i.t,m=c.embedded,p=void 0===c.groupByPurpose||c.groupByPurpose;c.mustConsent||(e=Je.createElement("button",{title:h(["close"]),"aria-label":h(["close"]),className:"hide",type:"button",onClick:a,tabIndex:"0",ref:function(e){r.consentModalRef=e}},Je.createElement(tt,{t:h}))),c.hideDeclineAll||d.confirmed||(t=Je.createElement("button",{disabled:s,className:"cm-btn cm-btn-decline cm-btn-danger cn-decline",type:"button",onClick:u},h(["decline"])));var g,y,_,v=Je.createElement("button",{disabled:s,className:"cm-btn cm-btn-success cm-btn-info cm-btn-accept",type:"button",onClick:o},h([d.confirmed?"save":"acceptSelected"]));c.acceptAll&&!d.confirmed&&(n=Je.createElement("button",{disabled:s,className:"cm-btn cm-btn-success cm-btn-accept-all",type:"button",onClick:l},h(["acceptAll"]))),void 0!==c.privacyPolicy?"string"==typeof c.privacyPolicy?g=c.privacyPolicy:"object"===Gt(c.privacyPolicy)&&(g=c.privacyPolicy[f]||c.privacyPolicy.default):void 0!==(g=h(["!","privacyPolicyUrl"],{lang:f}))&&(g=g.join("")),void 0!==g&&(y=Je.createElement("a",{key:"ppLink",href:g,target:"_blank",rel:"noopener"},h(["privacyPolicy","name"]))),_=p?Je.createElement(Ht,{t:h,config:c,manager:d,lang:f}):Je.createElement(At,{t:h,config:c,manager:d,lang:f});var E=Je.createElement("div",{className:"cm-modal cm-klaro"},Je.createElement("div",{className:"cm-header"},e,Je.createElement("h1",{className:"title"},Je.createElement(ct,{config:c,text:h(["consentModal","title"])})),Je.createElement("p",null,Je.createElement(ct,{config:c,text:[h(["consentModal","description"])].concat(y&&[" "].concat(h(["privacyPolicy","text"],{privacyPolicy:y}))||[])}))),Je.createElement("div",{className:"cm-body"},_),Je.createElement("div",{className:"cm-footer"},Je.createElement("div",{className:"cm-footer-buttons"},t,v,n),!c.disablePoweredBy&&Je.createElement("p",{className:"cm-powered-by"},Je.createElement("a",{target:"_blank",href:c.poweredBy||"https://kiprotect.com/klaro",rel:"noopener"},h(["poweredBy"])))));return m?Je.createElement("div",{id:"cookieScreen",className:"cookie-modal cm-embedded"},E):Je.createElement("div",{id:"cookieScreen",className:"cookie-modal"},Je.createElement("div",{className:"cm-bg",onClick:a}),E)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zt(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function Vt(e){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(e)}function Kt(e,t,n){void 0===n&&(n=!0);for(var r=Object.keys(t),i=0;i<r.length;i++){var a=r[i],s=t[a],o=e[a];"string"==typeof s?(n||void 0===o)&&(e[a]=s):"object"===Vt(s)&&("object"===Vt(o)?Kt(o,s,n):(n||void 0===o)&&(e[a]=s))}return e}function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jt=function(){return!!e})()}
vendor: 4,967 bytes, line 2
2function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}function tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nn(e,t){return nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nn(e,t)}function rn(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){var t=function(e){if("object"!=Xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:String(t)}n(2745);var sn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rn(tn(n=function(e,t,n){return t=en(t),function(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tn(e)}(e,Jt()?Reflect.construct(t,n||[],en(e).constructor):t.apply(e,n))}(this,t,[e])),"executeButtonClicked",function(e,t,r){var i=n.state.modal,a=0;e&&(a=n.props.manager.changeAll(t));var s=n.props.manager.confirmed;if(n.props.manager.saveAndApplyConsents(r),e&&!s&&(i||n.props.config.mustConsent)){var o=function(){n.setState({confirming:!1}),n.props.hide()};n.setState({confirming:!0}),0===a?o():setTimeout(o,800)}else n.props.hide()}),rn(tn(n),"saveAndHide",function(){n.executeButtonClicked(!1,!1,"save")}),rn(tn(n),"acceptAndHide",function(){n.executeButtonClicked(!0,!0,"accept")}),rn(tn(n),"declineAndHide",function(){n.executeButtonClicked(!0,!1,"decline")}),n.state={modal:e.modal,confirming:!1},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(t,e),n=t,r=[{key:"componentDidUpdate",value:function(e){e.modal!==this.props.modal&&this.setState({modal:this.props.modal}),this.noticeRef&&this.noticeRef.focus()}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,a=i.lang,s=i.config,o=i.show,l=i.manager,u=i.testing,c=i.t,d=this.state,f=d.confirming,h=d.modal,m=s.embedded,p=s.noticeAsModal,g=s.hideLearnMore,y=s.purposeOrder||[],_=function(e){for(var t=new Set([]),n=0;n<e.services.length;n++)for(var r=e.services[n].purposes||[],i=0;i<r.length;i++)t.add(r[i]);return Array.from(t)}(s).filter(function(e){return"functional"!==e}).sort(function(e,t){return y.indexOf(e)-y.indexOf(t)}),v=_.map(function(e){return c(["!","purposes",e,"title?"])||nt(e)});t=1===v.length?v[0]:[].concat((n=v.slice(0,-2),function(e){if(Array.isArray(e))return Qt(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[v.slice(-2).join(" & ")]).join(", "),void 0!==s.privacyPolicy?"string"==typeof s.privacyPolicy?e=s.privacyPolicy:"object"===Xt(s.privacyPolicy)&&(e=s.privacyPolicy[a]||s.privacyPolicy.default):void 0!==(e=c(["!","privacyPolicyUrl"],{lang:a}))&&(e=e.join(""));var E,b=function(e){e.preventDefault(),r.setState({modal:!0})};if(l.changed&&(E=Je.createElement("p",{className:"cn-changes"},c(["consentNotice","changeDescription"]))),!o&&!u&&!f)return Je.createElement("div",null);var T,S=(!s.mustConsent||p)&&!l.confirmed&&!s.noNotice,w=s.hideDeclineAll?"":Je.createElement("button",{className:"cm-btn cm-btn-danger cn-decline",type:"button",onClick:this.declineAndHide},c(["decline"])),L=s.acceptAll?Je.createElement("button",{className:"cm-btn cm-btn-success",type:"button",onClick:this.acceptAndHide},c(["ok"])):Je.createElement("button",{className:"cm-btn cm-btn-success",type:"button",onClick:this.saveAndHide},c(["ok"])),A=function(){return p?Je.createElement("button",{key:"learnMoreLink",className:"cm-btn cm-btn-lern-more cm-btn-info",type:"button",onClick:b},c(["consentNotice","learnMore"])):Je.createElement("a",{key:"learnMoreLink",className:"cm-link cn-learn-more",href:"#",onClick:b},c(["consentNotice","learnMore"]))};if(void 0!==e&&(T=Je.createElement("a",{key:"ppLink",href:e},c(["privacyPolicy","name"]))),h||l.confirmed&&!u||!l.confirmed&&s.mustConsent)return Je.createElement(Wt,{t:c,lang:a,c
vendor: 5,441 bytes, line 2
2onfig:s,hide:function(){s.mustConsent&&!s.acceptAll||(l.confirmed&&!u?r.props.hide():r.setState({modal:!1}),setTimeout(function(){r.noticeRef&&r.noticeRef.focus()},1))},confirming:f,declineAndHide:this.declineAndHide,saveAndHide:this.saveAndHide,acceptAndHide:this.acceptAndHide,manager:l});var M=Je.createElement("div",{role:"dialog","aria-describedby":"id-cookie-notice","aria-labelledby":"id-cookie-title",id:"klaro-cookie-notice",tabIndex:"0",autoFocus:!0,ref:function(e){r.noticeRef=e},className:"cookie-notice ".concat(S||u?"":"cookie-notice-hidden"," ").concat(p?"cookie-modal-notice":""," ").concat(m?"cn-embedded":"")},Je.createElement("div",{className:"cn-body"},c(["!","consentNotice","title"])&&s.showNoticeTitle&&Je.createElement("h2",{id:"id-cookie-title"},c(["consentNotice","title"])),Je.createElement("p",{id:"id-cookie-notice"},Je.createElement(ct,{config:s,text:c(["consentNotice","description"],{purposes:Je.createElement("strong",{key:"strong"},t),privacyPolicy:T,learnMoreLink:A()})})),u&&Je.createElement("p",null,c(["consentNotice","testing"])),E,Je.createElement("div",{className:"cn-ok"},!g&&A(),Je.createElement("div",{className:"cn-buttons"},w,L))));return p?Je.createElement("div",{id:"cookieScreen",className:"cookie-modal"},Je.createElement("div",{className:"cm-bg"}),M):M}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,an(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function ln(e){var t=function(e){if("object"!=on(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==on(t)?t:String(t)}function un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(un=function(){return!!e})()}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cn(e)}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fn(e,t)}var hn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=cn(t),function(e,t){if(t&&("object"===on(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dn(e)}(e,un()?Reflect.construct(t,n||[],cn(e).constructor):t.apply(e,n))}(this,t,[e]),e.manager.watch(dn(n)),n.state={show:e.show>0||!e.manager.confirmed},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fn(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.props.manager.unwatch(this)}},{key:"update",value:function(e,t){e===this.props.manager&&"applyConsents"===t&&(!this.props.config.embedded&&this.props.manager.confirmed?this.setState({show:!1}):this.forceUpdate())}},{key:"notifyApi",value:function(){var e=this.props,t=e.api,n=e.modal,r=e.show,i=e.config;if(void 0!==t){if(n||r>0)return;this.props.manager.confirmed||this.props.manager.auxiliaryStore.getWithKey("shown-before")||(t.update(this,"showNotice",{config:i}),this.props.manager.auxiliaryStore.setWithKey("shown-before",!0))}}},{key:"componentDidMount",value:function(){this.notifyApi()}},{key:"componentDidUpdate",value:function(e){if(e.show!==this.props.show){this.notifyApi();var t=this.props.show>0||!this.props.manager.confirmed;t!==this.state.show&&this.setState({show:t})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.config,r=t.t,i=t.lang,a=t.testing,s=t.manager,o=t.modal,l=this.state.show,u=n.additionalClass,c=n.embedded,d=n.stylePrefix;return Je.createElement("div",{lang:i,className:(d||"klaro")+(void 0!==u?" "+u:"")},Je.createElement(sn,{key:"app-"+this.props.show,t:r,testing:a,show:l,lang:i,modal:o,hide:function(){c||e.setState({show:!1})},config:n,manager:s}))}}],r&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ln(r.key),r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Je.Component);function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const pn=function(e){var t=e.manager,n=e.style,r=e.config,i=e.t,a=e.lang,s=e.service,o=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,s=[],o=!0,l=!1;try{for(i=(t=t.call(e)).next;!(o=(n=i.call(t)).done)&&(s.push(n.value),2!==s.length);o=!0);}catch(e){l=!0,r=e}
2finally{try{if(!o&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e)||function(e){if(e){if("string"==typeof e)return mn(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mn(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ie(0)),l=o[0],u=o[1],c=r.additionalClass,d=(r.embedded,r.stylePrefix);se(function(){var e={update:function(){return u(l+1)}};return t.watch(e),function(){t.unwatch(e)}});var f=ut(s.translations||{},a,"zz",["!","title"])||i(["!",s.name,"title?"])||nt(s.name);return Je.createElement("div",{lang:a,className:(d||"klaro")+(void 0!==c?" "+c:"")+" cm-as-context-notice"},Je.createElement("div",{className:"context-notice"+(void 0!==n?" cm-".concat(n):"")},Je.createElement("p",null,i(["contextualConsent","description"],{title:f})),Je.createElement("p",{className:"cm-buttons"},Je.createElement("button",{className:"cm-btn cm-btn-success",type:"button",onClick:function(){t.updateConsent(s.name,!0),t.applyConsents(!1,!0,s.name),t.updateConsent(s.name,!1)}},i(["contextualConsent","acceptOnce"])),null!==t.store.get()?Je.createElement("button",{className:"cm-btn cm-btn-success-var",type:"button",onClick:function(){t.updateConsent(s.name,!0),t.confirmed?(t.saveConsents("contextual-accept"),t.applyConsents(!1,!0,s.name)):t.applyConsents(!1,!0,s.name)}},i(["contextualConsent","acceptAlways"])):""),null===t.store.get()&&r.showDescriptionEmptyStore?Je.createElement(Je.Fragment,null,Je.createElement("p",{className:"ccn-description-empty-store"},i(["contextualConsent","descriptionEmptyStore"],{title:f,link:Je.createElement("a",{key:"modalLink",className:"ccn-modal-link",href:"#",onClick:function(e){e.preventDefault(),dr(r,!0)}},i(["contextualConsent","modalLinkText"]))}))):""))};var gn=n(2690);function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach(function(t){var r,i,a;r=e,i=t,a=n[t],(i=En(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function En(e){var t=function(e){if("object"!=yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:String(t)}n(76);var bn=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t,this.id=n,this.opts=Object.assign({},r)}var t,n;return t=e,(n=[{key:"getLocationData",value:function(e){var t=e.records||{};return{pathname:void 0===t.savePathname||t.savePathname?location.pathname:void 0,port:""!==location.port?parseInt(location.port):0,hostname:location.hostname,protocol:location.protocol.slice(0,location.protocol.length-1)}}},{key:"getUserData",value:function(){return{client_version:pr(),client_name:"klaro:web"}}},{key:"getBaseConsentData",value:function(e){return{location_data:this.getLocationData(e),user_data:this.getUserData(e)}}},{key:"update",value:function(e,t,n){if("saveConsents"===t){if("save"===n.type&&0===Object.keys(n.changes).length)return;var r=vn(vn({},this.getBaseConsentData(e.config)),{},{consent_data:{consents:n.consents,changes:"save"===n.type?n.changes:void 0,type:n.type,config:e.config.id}});this.submitConsentData(r)}else if("showNotice"===t){var i=vn(vn({},this.getBaseConsentData(n.config)),{},{consent_data:{consents:{},changes:{},type:"show",config:n.config.id}});this.submitConsentData(i)}}},{key:"apiRequest",value:function(e,t,n,r){var i=this;return new Promise(function(a,s){var o,l,u=new XMLHttpRequest;u.addEventListener("load",function(){var e=JSON.parse(u.response);u.status<200||u.status>=300?(e.status=u.status,s(e)):a(e,u.status)}),u.addEventListener("error",function(){s({status:0,xhr:u})}),void 0!==n&&("GET"===e?t+="?"+(l=n,"?"+Object.keys(l).map(function(e){return e+"="+encodeURIComponent(l[e])}).join("&")):o=JSON.stringify(n)),u.open(e,i.url+t),void 0!==o&&u.setRequestHeader("Content-Type",r||"application/json;charset=UTF-8"),u.send(o)})}},{key:"submitConsentData",value:function(e){return this.apiRequest("POST","/v1/privacy-managers/"+this.id+"/submit",e,"text/plain;charset=UTF-8")}},{key:"loadConfig",value:function(e){return this.apiRequest("GET","/v1/privacy-managers/"+this.id+"/config.json?name="+e+(this.opts.testing?"&testing=true":""))}},{key:"loadConfigs",value:function(){return this.apiRequest("GET","/v1/privacy-managers/"+this.id+"/configs.json"+(this.opts.testing?"&testing=true":""))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,En(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Tn=(n(7132),n(4062),n(5482));function Sn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,i=e}
vendor: 8,942 bytes, line 2
2finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}(e,t)||wn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wn(e,t){if(e){if("string"==typeof e)return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ln(e,t):void 0}}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function An(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e){for(var t=new Map([]),n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],a=e[i];"string"==typeof i&&("string"==typeof a||null===a?t.set(i,a):t.set(i,Mn(a)))}return t}function Dn(e,t,n,r){var i=function(e,t,n){if(n instanceof Map){var r=new Map([]);Dn(r,n,!0,!1),e.set(t,r)}else e.set(t,n)};if(!(t instanceof Map&&e instanceof Map))throw new Error("Parameters are not maps!");void 0===n&&(n=!0),void 0===r&&(r=!1),r&&(e=new e.constructor(e));var a,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(e,t):void 0}}(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}(t.keys());try{for(s.s();!(a=s.n()).done;){var o=a.value,l=t.get(o),u=e.get(o);if(e.has(o))if(l instanceof Map&&u instanceof Map)e.set(o,Dn(u,l,n,r));else{if(!n)continue;i(e,o,l)}else i(e,o,l)}}catch(e){s.e(e)}finally{s.f()}return e}var kn={top:{_meta:{incompatibleWith:["bottom"]},"notice-top":"20px","notice-bottom":"auto"},bottom:{_meta:{incompatibleWith:["top"]},"notice-bottom":"20px","notice-top":"auto"},left:{_meta:{incompatibleWith:["wide"]},"notice-left":"20px","notice-right":"auto"},right:{_meta:{incompatibleWith:["wide"]},"notice-right":"20px","notice-left":"auto"},wide:{"notice-left":"20px","notice-right":"auto","notice-max-width":"calc(100vw - 60px)","notice-position":"fixed"},light:{"button-text-color":"#fff",dark1:"#fafafa",dark2:"#777",dark3:"#555",light1:"#444",light2:"#666",light3:"#111",green3:"#f00"}},In=n(5292),Rn=n.n(In),Cn=n(9893),Pn=n.n(Cn),On=n(9383),xn=n.n(On),Nn=n(6884),Fn=n.n(Nn),Yn=n(9088),Un=n.n(Yn),Bn=n(7997),jn=n.n(Bn),Hn=n(679),Gn={};function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach(function(t){var r,i,a;r=e,i=t,a=n[t],i=function(e){var t=function(e){if("object"!=Zn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zn(t)?t:String(t)}(i),i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Wn(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Gn.styleTagTransform=jn(),Gn.setAttributes=Fn(),Gn.insert=xn().bind(null,"head"),Gn.domAPI=Pn(),Gn.insertStyleElement=Un(),Rn()(Hn.A,Gn),Hn.A&&Hn.A.locals&&Hn.A.locals;var Kn,Xn=new Map([]),Qn={},Jn={};function er(e,t){return(e.elementID||"klaro")+(t?"-ide":"")}function tr(e,t){var n=er(e,t),r=document.getElementById(n);return null===r&&((r=document.createElement("div")).id=n,document.body.appendChild(r)),r}function nr(e,t){if(void 0===Qn[e]?Qn[e]=[t]:Qn[e].push(t),void 0!==Jn[e]){var n,r=qn(Jn[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!1===t.apply(void 0,function(e){if(Array.isArray(e))return Vn(e)}(a=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||Wn(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))break}}catch(e){r.e(e)}finally{r.f()}}var a}function rr(e){for(var t=Qn[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(void 0===Jn[e]?Jn[e]=[r]:Jn[e].push(r),void 0!==t){var a,s=qn(t);try{for(s.s();!(a=s.n()).done;)if(!0===a.value.apply(void 0,r))return!0}catch(e){s.e(e)}finally{s.f()}}}function ir(e){var t=new Map([]);return Dn(t,Xn),Dn(t,Mn(e.translations||{})),t}var ar=1;function sr(e,t){if(void 0!==e){t=t||{},rr("render",e=ur(e),t);var n=0;t.show&&(n=ar++);var r=tr(e),i=mr(e);void 0!==t.api&&i.watch(t.api),function(e,t,n){if(void 0!==e.styling){var r=Object.assign({},e.styling);if(void 0!==r.theme){var i=r.theme;i instanceof Array||(i=[i]),r={};var a,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=wn(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}(i);try{for(s.s();!(a=s.n()).done;){var o=t[a.value];if(void 0!==o)for(var l=0,u=Object.entries(o);l<u.length;l++){var c=Sn(u[l],2),d=c[0],f=c[1];d.startsWith("_")||(r[d]=f)}}}catch(e){s.e(e)}finally{s.f()}for(var h=0,m=Object.entries(e.styling);h<m.length;h++){var p=Sn(m[h],2),g=p[0],y=p[1];"theme"!==g&&(r[g]=y)}}void 0===n&&(n=document.documentElement);for(var _=0,v=Object.entries(r);_<v.length;_++){var E=Sn(v[_],2),b=E[0],T=E[1];n.style.setProperty("--"+b,T)}window.document.documentMode&&n===document.documentElement&&(0,Tn.N3)(r)}}(e,kn,r);var a=ot(e),s=ir(e),o=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ut.apply(void 0,[s,a,e.fallbackLang||"zz"].concat(n))},l=Ue(Je.createElement(hn,{t:o,lang:a,manager:i,config:e,testing:t.testing,modal:t.modal,api:t.api,show:n}),r);return or(i,o,a,e,t),l}}function or(e,t,n,r,i){var a,s=[],o=qn(r.services);try{for(o.s();!(a=o.n()).done;){var l,u=a.value,c=e.getConsent(u.name)&&e.confirmed,d=qn(document.querySelectorAll("[data-name='"+u.name+"']"));try{for(d.s();!(l=d.n()).done;){var f=l.value,h=(0,Tn.RT)(f);if("placeholder"!==h.type&&("IFRAME"===f.tagName||"DIV"===f.tagName)){var m=f.previousElementSibling;if(null!==m){var p=(0,Tn.RT)(m);"placeholder"===p.type&&p.name===u.name||(m=null)}if(null===m){(m=document.createElement("DIV")).style.maxWidth=f.
2width+"px",m.style.height=f.height+"px",(0,Tn.X7)({type:"placeholder",name:u.name},m),c&&(m.style.display="none"),f.parentElement.insertBefore(m,f);var g=Ue(Je.createElement(pn,{t,lang:n,manager:e,config:r,service:u,style:h.style,testing:i.testing,api:i.api}),m);s.push(g)}"IFRAME"===f.tagName&&(h.src=f.src),void 0===h["modified-by-klaro"]&&void 0===f.style.display&&(h["original-display"]=f.style.display),h["modified-by-klaro"]="yes",(0,Tn.X7)(h,f),c||(f.src="",f.style.display="none")}}}catch(e){d.e(e)}finally{d.f()}}}catch(e){o.e(e)}finally{o.f()}return s}function lr(e){/complete|interactive|loaded/.test(document.readyState)?e():window.addEventListener("DOMContentLoaded",e)}function ur(e){var t=zn({},e);return 2===t.version||(void 0!==t.apps&&void 0===t.services&&(t.services=t.apps,console.warn("Warning, your configuration file is outdated. Please change `apps` to `services`"),delete t.apps),void 0!==t.translations&&void 0!==t.translations.apps&&void 0===t.services&&(t.translations.services=t.translations.apps,console.warn("Warning, your configuration file is outdated. Please change `apps` to `services` in the `translations` key"),delete t.translations.apps)),t}function cr(e){if(void 0!==window){var t=(0,Tn.XZ)("klaro"),n=new Map(decodeURI(location.hash.slice(1)).split("&").map(function(e){return e.split("=")}).map(function(e){return 1===e.length?[e[0],!0]:e})),r=n.get("klaro-testing"),i=function(e){var t=zn(zn({},e),{},{testing:r});Kn.noAutoLoad||Kn.testing&&!t.testing||sr(Kn,t)};if(void 0!==e)Kn=e,lr(function(){return i({})});else if(null!==t){var a=function(e){var t=e.getAttribute("data-klaro-id");if(null!==t)return t;var n=/.*\/privacy-managers\/([a-f0-9]+)\/klaro.*\.js/.exec(e.src);return null!==n?n[1]:null}(t),s=function(e){var t=e.getAttribute("data-klaro-api-url");if(null!==t)return t;var n=/(http(?:s)?:\/\/[^/]+)\/v1\/privacy-managers\/([a-f0-9]+)\/klaro.*\.js/.exec(e.src);return null!==n?n[1]:null}(t),o=function(e,t){if(e.has("klaro-config"))return e.get("klaro-config");var n=t.getAttribute("data-klaro-config");return null!==n?n:"default"}(n,t);if(null!==a){var l=new bn(s,a,{testing:r});if(void 0!==window.klaroApiConfigs){if(!0===rr("apiConfigsLoaded",window.klaroApiConfigs,l))return;var u=window.klaroApiConfigs.find(function(e){return e.name===o&&("active"===e.status||r)});void 0!==u?(Kn=u,lr(function(){return i({api:l})})):rr("apiConfigsFailed",{})}else l.loadConfig(o).then(function(e){!0!==rr("apiConfigsLoaded",[e],l)&&(Kn=e,lr(function(){return i({api:l})}))}).catch(function(e){console.error(e,"cannot load Klaro configs"),rr("apiConfigsFailed",e)})}else{var c=t.getAttribute("data-klaro-config")||"klaroConfig";void 0!==(Kn=window[c])&&lr(function(){return i({})})}}n.has("klaro-ide")&&function(e){var t=/^(.*)(\/[^/]+)$/.exec(e.src)[1]||"",n=document.createElement("script");n.src=""!==t?t+"/ide.js":"ide.js",n.type="application/javascript";var r,i=qn(n.attributes);try{for(i.s();!(r=i.n()).done;){var a=r.value;n.setAttribute(a.name,a.value)}}catch(e){i.e(e)}finally{i.f()}document.head.appendChild(n)}(t)}}function dr(e,t,n){return sr(e=e||Kn,{show:!0,modal:t,api:n}),!1}var fr={};function hr(){for(var e in Object.keys(fr))delete fr[e]}function mr(e){var t=(e=e||Kn).storageName||e.cookieName||"default";return void 0===fr[t]&&(fr[t]=new gn.default(ur(e))),fr[t]}function pr(){return"v"==="unknown"[0]?"unknown".slice(1):"unknown"}var gr=Mn(
vendor: 45,366 bytes, line 2
2{ca:{acceptAll:"Accepta-les totes",acceptSelected:"Accepta les escollides",service:{disableAll:{description:"Useu aquest botó per a habilitar o deshabilitar totes les aplicacions.",title:"Habilita/deshabilita totes les aplicacions"},optOut:{description:"Aquesta aplicació es carrega per defecte, però podeu desactivar-la",title:"(opt-out)"},purpose:"Finalitat",purposes:"Finalitats",required:{description:"Aquesta aplicació es necessita sempre",title:"(necessà ria)"}},close:"Tanca",consentModal:{description:"Aquà podeu veure i personalitzar la informació que recopilem sobre vós.",privacyPolicy:{name:"polÃtica de privadesa",text:"Per a més informació, consulteu la nostra {privacyPolicy}."},title:"Informació que recopilem"},consentNotice:{changeDescription:"Hi ha hagut canvis des de la vostra darrera visita. Actualitzeu el vostre consentiment.",description:"Recopilem i processem la vostra informació personal amb les següents finalitats: {purposes}.",imprint:{name:"Empremta"},learnMore:"Saber-ne més",privacyPolicy:{name:"polÃtica de privadesa"}},decline:"Rebutja",ok:"Accepta",poweredBy:"Funciona amb Klaro!",purposeItem:{service:"aplicació",services:"aplicacions"},save:"Desa"},cs:{privacyPolicy:{name:"zásady ochrany soukromÃ",text:'Pro dalšà informace si pÅeÄtete naÅ¡e <tr-hint v="privacy policy">{privacyPolicy}</tr-hint>.'},consentModal:{title:"Služby, které bychom rádi využili",description:"Zde můžete posoudit a pÅizpůsobit služby, které bychom rádi na tomto webu použÃvali. Máte to pod kontrolou! Povolte nebo zakažte služby, jak uznáte za vhodné."},consentNotice:{testing:"Testing mode!",changeDescription:"Od vašà poslednà návÅ¡tÄvy doÅ¡lo ke zmÄnám, obnovte prosÃm svůj souhlas.",description:"âDobrý den! Můžeme povolit nÄkteré dalšà služby pro {purposes}? Svůj souhlas můžete kdykoliv zmÄnit nebo odvolat.â","learnMore|capitalize":"Vyberu si"},úÄely:{functional:{"title|capitalize":"Poskytovánà služeb",description:"Tyto služby jsou nezbytné pro správné fungovánà tohoto webu. Nelze je zde deaktivovat, protože služba by jinak nefungovala správnÄ.\n"},performance:{"title|capitalize":"Optimalizace výkonu",description:"V rámci tÄchto služeb jsou zpracovávány osobnà údaje za úÄelem optimalizace služeb, které jsou na tomto webu poskytovány.\n"},marketing:{"title|capitalize":"Marketing",description:"V rámci tÄchto služeb jsou zpracovávány osobnà údaje, aby se vám zobrazoval relevantnà obsah o produktech, službách nebo tématech, které by vás mohly zajÃmat."},advertising:{"title|capitalize":"Reklama",description:"V rámci tÄchto služeb jsou zpracovávány osobnà údaje, aby vám zobrazovaly personalizované nebo zájmovÄ orientované reklamy."}},purposeItem:{service:"Jednoduchá služba <tr-snip></tr-snip> , kterou nainstaluji do svého poÄÃtaÄe.",services:"NÄkolik jednoduchých služeb <tr-snip></tr-snip> , které nainstaluji do svého poÄÃtaÄe."},"ok|capitalize":"To je v poÅádku",save:"uložit","decline|capitalize":"NepÅijÃmám",close:"zavÅÃt",acceptAll:"pÅijmout vÅ¡e",acceptSelected:"pÅijmout vybrané",service:{disableAll:{title:"povolit nebo zakázat vÅ¡echny služby",description:"Pomocà tohoto pÅepÃnaÄe můžete povolit nebo zakázat vÅ¡echny služby."},optOut:{title:"(opt-out)",description:"Tato služba se naÄÃtá ve výchozÃm nastavenà (ale můžete ji zruÅ¡it)"},required:{title:"(vždy vyžadováno)",description:"Tato služba je vždy vyžadována"},purposes:"Zpracovánà pro úÄely <tr-snip></tr-snip>",purpose:"Zpracovánà pro úÄely <tr-snip></tr-snip>"},poweredBy:"Realizováno pomocà Klaro!",contextualConsent:{description:"Chcete naÄÃst externà obsah dodávaný prostÅednictvÃm {title}?",acceptOnce:"Ano",acceptAlways:"Vždy"}},da:{acceptAll:"Tillad alle",acceptSelected:"Tillad udvalgte",service:{disableAll:{description:"Brug denne kontakt til at aktivere/deaktivere alle apps.",title:"Aktiver/deaktiver alle applikatione"},optOut:{description:"Denne applikation indlæses som standard (men du kan deaktivere den)",title:"Opt-Out"},purpose:"FormÃ¥l",purposes:"FormÃ¥l",required:{description:"Denne applikation er altid nødvendig",title:"(Altid nødvendig)"}},close:"Luk",consentModal:{description:"Her kan du se og ændre, hvilke informationer vi gemmer om dig.",privacyPolicy:{name:"Flere informationer finde du under {privacyPolicy}",text:"databeskyttelseserklæring."},title:"Informationer, som vi gemmer"},consentNotice:{changeDescription:"Der har været ændringer siden dit sidste besøg. Opdater dit valg.",description:"Vi gemmer og behandler dine personlige oplysninger til følgende formÃ¥l: {purposes}.",imprint:{name:""},learnMore:"Læs mere",privacyPolicy:{name:"Datenschutzerklärung"}},decline:"Afvis",ok:"Ok",poweredBy:"Realiseret med Klaro!",purposeItem:{service:"",services:""},save:"Gem"},de:{acceptAll:"Alle akzeptieren",acceptSelected:"Ausgewählte akzeptieren",close:"SchlieÃen",consentModal:{description:"Hier können Sie die Dienste, die wir auf dieser Website nutzen möchten, bewerten und anpassen. Sie haben das Sagen! Aktivieren oder deaktivieren Sie die Dienste, wie Sie es für richtig halten.",privacyPolicy:{name:"Datenschutzerklärung",text:"Um mehr zu erfahren, lesen Sie bitte unsere {privacyPolicy}."},title:"Dienste, die wir nutzen möchten"},consentNotice:{changeDescription:"Seit Ihrem letzten Besuch gab es Ãnderungen, bitte erneuern Sie Ihre Zustimmung.",title:"Cookie-Einstellungen",description:"Hallo! Könnten wir bitte einige zusätzliche Dienste für {purposes} aktivieren? Sie können Ihre Zustimmung später jederzeit ändern oder zurückziehen.",imprint:{name:"Impressum"},learnMore:"Lassen Sie mich wählen",privacyPolicy:{name:"Datenschutzerklärung"},testing:"Testmodus!"},contextualConsent:{acceptAlways:"Immer",acceptOnce:"Ja",description:"Möchten Sie von {title} bereitgestellte externe Inhalte laden?",descriptionEmptyStore:"Um diesem Dienst dauerhaft zustimmen zu können, müssen Sie {title} in den {link} zustimmen.",modalLinkText:"Cookie-Einstellungen"},decline:"Ich lehne ab",ok:"Das ist ok",poweredBy:"Realisiert mit Klaro!",privacyPolicy:{name:"Datenschutzerklärung",text:"Um mehr zu erfahren, lesen Sie bitte unsere {privacyPolicy}."},purposeItem:{service:"Dienst",services:"Dienste"},purposes:{advertising:{description:"Diese Dienste verarbeiten persönliche Informationen, um Ihnen personalisierte oder interessenbezogene Werbung zu zeigen.",title:"Werbung"},functional:{description:"Diese Dienste sind für die korrekte Funktion dieser Website unerlässlich. Sie können sie hier nicht deaktivieren, da der Dienst sonst nicht richtig funktionieren würde.\n",title:"Dienstbereitstellung"},marketing:{description:"Diese Dienste verarbeiten persönliche Daten, um Ihnen relevante Inhalte über Produkte, Dienstleistungen oder Themen zu zeigen, die Sie interessieren könnten.",title:"Marketing"},performance:{description:"Diese Dienste verarbeiten personenbezogene Daten, um den von dieser Website angebotenen Service zu optimieren.\n",title:"Optimierung der Leistung"}},save:"Speichern",service:{disableAll:{description:"Mit diesem Schalter können Sie alle Dienste aktivieren oder deaktivieren.",title:"Alle Dienste aktivieren oder deaktivieren"},optOut:{description:"Diese Dienste werden standardmäÃig geladen (Sie können sich jedoch abmelden)",title:"(Opt-out)"},purpose:"Zweck",purposes:"Zwecke",required:{description:"Dieser Service ist immer erforderlich",title:"(immer erforderlich)"}}},el:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"ΧÏηÏιμοÏοίηÏε αÏ
ÏÏ Ïον διακÏÏÏη για να ενεÏγοÏοιήÏειÏ/αÏενεÏγοÏοιήÏÎµÎ¹Ï ÏÎ»ÎµÏ ÏÎ¹Ï ÎµÏαÏμογÎÏ.",title:"Îια ÏÎ»ÎµÏ ÏÎ¹Ï ÎµÏαÏμογÎÏ"},optOut:{description:"Îίναι ÏÏοκαθοÏιÏμÎνο να ÏοÏÏÏνεÏαι, άλλα μÏοÏεί να ÏαÏαληÏθεί",title:"(μη αÏαιÏοÏμενο)"},purpose:"ΣκοÏÏÏ",purposes:"ΣκοÏοί",required:{description:"Îεν γίνεÏαι να λειÏοÏ
ÏγήÏει ÏÏÏÏά η εÏαÏμογή ÏÏÏÎ¯Ï Î±Ï
ÏÏ",title:"(αÏαιÏοÏμενο)"}},close:"ÎλείÏιμο",consentModal:{description:"ÎÎ´Ï Î¼ÏοÏÎµÎ¯Ï Î½Î± Î´ÎµÎ¹Ï ÎºÎ±Î¹ να ÏÏ
θμίÏÎµÎ¹Ï ÏÎ¹Ï ÏληÏοÏοÏÎ¯ÎµÏ ÏοÏ
ÏÏ
λλÎγοÏ
με ÏÏεÏικά με εÏÎνα.",privacyPolicy:{name:"ΠολιÏική ÎÏοÏÏήÏοÏ
",text:"Îια ÏεÏιÏÏÏÏεÏÎµÏ ÏληÏοÏοÏίεÏ, ÏαÏÎ±ÎºÎ±Î»Ï Î´Î¹Î±Î²Î¬ÏÏε Ïην {privacyPolicy}."},title:"ΠληÏοÏοÏÎ¯ÎµÏ ÏοÏ
ÏÏ
λλÎγοÏ
με"},consentNotice:{changeDescription:"Î ÏαγμαÏοÏοιήθηκαν αλλαγÎÏ Î¼ÎµÏά Ïην ÏελεÏ
Ïαία ÏÎ±Ï ÎµÏίÏκεÏη ÏαÏακαλοÏμε ανανεÏÏÏε Ïην ÏÏ
γκαÏάθεÏη ÏαÏ.",description:"ΣÏ
γκενÏÏÏνοÏ
με και εÏεξεÏγαζÏμαÏÏε Ïα ÏÏοÏÏÏικά δεδομÎνα ÏÎ±Ï Î³Î¹Î± ÏοÏ
Ï ÏαÏακάÏÏ Î»ÏγοÏ
Ï: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"ΠεÏιÏÏÏÏεÏα",privacyPolicy:{name:"ΠολιÏική ÎÏοÏÏήÏοÏ
"}},decline:"ÎÏÏÏÏιÏÏÏ",ok:"OK",poweredBy:"Î¥ÏοÏÏηÏίζεÏαι αÏÏ Ïο Klaro!",purposeItem:{service:"",services:""},save:"ÎÏοθήκεÏ
Ïη"},en:{acceptAll:"Accept all",acceptSelected:"Accept selected",close:"Close",consentModal:{description:"Here you can assess and customize the services that we'd like to use on this website. You're in charge! Enable or disable services as you see fit.",title:"Services we would like to use"},consentNotice:{changeDescription:"There were changes since your last visit, please renew your consent.",title:"Cookie Consent",description:"Hi! Could we please enable some additional services for {purposes}? You can always change or withdraw your consent later.",learnMore:"Let me choose",testing:"Testing mode!"},contextualConsent:{acceptAlways:"Always",acceptOnce:"Yes",description:"Do you want to load external content supplied by {title}?",descriptionEmptyStore:"To agree to this service permanently, you must accept {title} in the {link}.",modalLinkText:"Consent Manager"},decline:"I decline",ok:"That's ok",poweredBy:"Realized with Klaro!",privacyPolicy:{name:"privacy policy",text:"To learn more, please read our {privacyPolicy}."},purposeItem:{service:"service",services:"services"},purposes:{advertising:{description:"These services process personal information to show you personalized or interest-based advertisements.",title:"Advertising"},functional:{description:"These services are essential for the correct functioning of this website. You cannot disable them here as the service would not work correctly otherwise.\n",title:"Service Provision"},marketing:{description:"These services process personal information to show you relevant content about products, services or topics that you might be interested in.",title:"Marketing"},performance:{description:"These services process personal information to optimize the service that this website offers.\n",title:"Performance Optimization"}},save:"Save",service:{disableAll:{description:"Use this switch to enable or disable all services.",title:"Enable or disable all services"},optOut:{description:"This services is loaded by default (but you can opt out)",title:"(opt-out)"},purpose:"purpose",purposes:"purposes",required:{description:"This services is always required",title:"(always required)"}}},zh:{acceptAll:"ç
§åå
¨æ¶",acceptSelected:"æ¥åéæ©",close:"å¯å",consentModal:{description:"å¨è¿éï¼æ¨å¯ä»¥è¯ä¼°åå®å¶æä»¬å¸æå¨æ¬ç½ç«ä¸ä½¿ç¨çæå¡ãæ¨æ¯è´è´£äººï¼æ¨å¯ä»¥æ ¹æ®èªå·±çéè¦å¯ç¨æç¦ç¨æå¡ãå¯ç¨æç¦ç¨æ¨è®¤ä¸ºåéçæå¡ã",privacyPolicy:{name:"éç§æ¿ç",text:"è¦äºè§£æ´å¤ï¼è¯·é
读æä»¬ç{privacyPolicy} ã"},title:"æä»¬æ³ä½¿ç¨çæå¡"},consentNotice:{changeDescription:"èªä¸æ¬¡è®¿é®åæååï¼è¯·æ´æ°æ¨çåæã",description:"ä½ å¥½ï¼æä»¬å¯ä»¥ä¸º{purposes} å¯ç¨ä¸äºé¢å¤çæå¡åï¼æ¨å¯ä»¥éæ¶æ´æ¹ææ¤åæ¨çåæã",imprint:{name:"å°è®°"},learnMore:"è®©ææ¥é",privacyPolicy:{name:"éç§æ¿ç"},testing:"æµè¯æ¨¡å¼ï¼"},contextualConsent:{acceptAlways:"æ»æ¯",acceptOnce:"æ¯çï¼æ¯ç",description:"ä½ æ³å è½½ç±{title} æä¾çå¤é¨å
容åï¼"},decline:"ææç»",ok:"没äºç",poweredBy:"ä¸Klaroä¸èµ·å®ç°!",privacyPolicy:{name:"éç§æ¿ç",text:"è¦äºè§£æ´å¤ï¼è¯·é
读æä»¬ç{privacyPolicy} ã"},purposeItem:{service:"æå¡",services:"æå¡"},purposes:{advertising:{description:"è¿äºæå¡å¤ç个人信æ¯ï¼åæ¨å±ç¤ºä¸ªæ§åæåºäºå
´è¶£ç广åã",title:"广åå®£ä¼ "},functional:{description:"è¿äºæå¡å¯¹äºæ¬ç½ç«çæ£å¸¸è¿è¡æ¯å¿
ä¸å¯å°çãæ¨ä¸è½å¨è¿éç¦ç¨å®ä»¬ï¼å¦åæå¡å°æ æ³æ£å¸¸è¿è¡ã\n",title:"æå¡æä¾"},marketing:{description:"è¿äºæå¡ä¼å¤ç个人信æ¯ï¼åæ¨å±ç¤ºæ¨å¯è½æå
´è¶£ç产åãæå¡æä¸»é¢çç¸å
³å
容ã",title:"å¸åºè¥é"},performance:{description:"è¿äºæå¡å¤çä¸ªäººä¿¡æ¯æ¯ä¸ºäºä¼åæ¬ç½ç«æä¾çæå¡ã\n",title:"æ§è½ä¼å"}},save:"æ½æ",service:{disableAll:{description:"ä½¿ç¨æ¤å¼å
³å¯å¯ç¨æç¦ç¨æææå¡ã",title:"å¯ç¨æåç¨æææå¡"},optOut:{description:"è¿ä¸ªæå¡æ¯é»è®¤å è½½ç(ä½ä½ å¯ä»¥éæ©éåº)",title:"(éæ©éåº)"},purpose:"ç®ç",purposes:"ç®ç",required:{description:"è¿ç§æå¡æ¯å¿
é¡»ç",title:"(æ»æ¯éè¦)"}}},pt:{acceptAll:"Aceitar todos",acceptSelected:"Aceitar selecionados",close:"Fechar",consentModal:{description:"Aqui você pode avaliar e personalizar os serviços que gostarÃamos de usar neste website. Você está no comando! Habilite ou desabilite os serviços como julgar conveniente.",privacyPolicy:{name:"polÃtica de privacidade",text:"Para saber mais, por favor, leia nossa {privacyPolicy}."},title:"Serviços que gostarÃamos de utilizar"},consentNotice:{changeDescription:"Houve mudanças desde sua última visita, queira renovar seu consentimento.",description:"Olá! PoderÃamos, por favor, habilitar alguns serviços adicionais para {purposes}? Você pode sempre mudar ou retirar seu consentimento mais tarde.",imprint:{name:"imprimir"},learnMore:"Deixe-me escolher",privacyPolicy:{name:"polÃtica de privacidade"},testing:"Modo de teste!"},contextualConsent:{acceptAlways:"Sempre",acceptOnce:"Sim",description:"Você deseja carregar conteúdo externo fornecido por {title}?"},decline:"Recusar",ok:"Aceito.",poweredBy:"Realizado com Klaro!",privacyPolicy:{name:"polÃtica de privacidade",text:"Para saber mais, por favor, leia nossa {privacyPolicy}."},purposeItem:{service:"serviço",services:"serviços"},purposes:{advertising:{description:"Esses serviços processam informações pessoais para mostrar a você anúncios personalizados ou baseados em interesses.",title:"Publicidade"},functional:{description:"Esses serviços são essenciais para o correto funcionamento deste website. Você não pode desativá-los aqui, pois de outra forma o serviço não funcionaria corretamente.\n",title:"Prestação de serviços"},marketing:{description:"Esses serviços processam informações pessoais para mostrar a você conteúdo relevante sobre produtos, serviços ou tópicos que possam ser do seu interesse.",title:"Marketing"},performance:{description:"Esses serviços processam informações pessoais para otimizar o serviço que este website oferece.\n",title:"Otimização do desempenho"}},save:"Salvar",service:{disableAll:{description:"Use essa chave para habilitar ou desabilitar todos os serviços.",title:"Habilitar ou desabilitar todos os serviços"},optOut:{description:"Estes serviços são carregados por padrão (mas o você pode optar por não participar).",title:"(opt-out)"},purpose:"Objetivo",purposes:"Objetivos",required:{description:"Esses serviços são sempre necessários",title:"(sempre necessário)"}}},es:{acceptAll:"Aceptar todas",acceptSelected:"Aceptar seleccionadas",close:"Cerrar",consentModal:{description:"Aquà puede evaluar y personalizar los servicios que nos gustarÃa utilizar en este sitio web. ¡Usted decide! Habilite o deshabilite los servicios como considere oportuno.",privacyPolicy:{name:"polÃtica de privacidad",text:"Para saber más, por favor lea nuestra {privacyPolicy}."},title:"Servicios que nos gustarÃa utilizar"},consentNotice:{changeDescription:"Ha habido cambios en las cookies desde su última visita. Debe renovar su consentimiento.",description:"¡Hola! ¿PodrÃamos habilitar algunos servicios adicionales para {purposes}? Siempre podrá cambiar o retirar su consentimiento más tarde.",imprint:{name:"Imprimir"},learnMore:"Quiero elegir",privacyPolicy:{name:"polÃtica de privacidad"},testing:"¡Modo de prueba!"},contextualConsent:{acceptAlways:"Siempre",acceptOnce:"SÃ",description:"¿Quieres cargar el contenido externo suministrado por {title}?"},decline:"Descartar todas",ok:"De acuerdo",poweredBy:"¡Realizado con Klaro!",privacyPolicy:{name:"polÃtica de privacidad",text:"Para saber más, por favor lea nuestra {privacyPolicy}."},purposeItem:{service:"servicio",services:"servicios"},purposes:{advertising:{description:"Estos servicios procesan información personal para mostrarle anuncios personalizados o basados en intereses.",title:"Publicidad"},functional:{description:"Estos servicios son esenciales para el correcto funcionamiento de este sitio web. No puede desactivarlos ya que la página no funcionarÃa correctamente.",title:"Prestación de servicios"},marketing:{description:"Estos servicios procesan información personal para mostrarle contenido relevante sobre productos, servicios o temas que puedan interesarle.",title:"Marketing"},performance:{description:"Estos servicios procesan información personal para optimizar el servicio que ofrece este sitio.",title:"Optimización del rendimiento"}},save:"Guardar",service:{disableAll:{description:"Utilice este interruptor para activar o desactivar todos los servicios.",title:"Activar o desactivar todos los servicios"},optOut:{description:"Este servicio está habilitado por defecto (pero puede optar por lo contrario)",title:"(desactivar)"},purpose:"Finalidad",purposes:"Finalidades",required:{description:"Este servicio es necesario siempre",title:"(siempre requerido)"}}},fi:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Aktivoi kaikki päälle/pois.",title:"Valitse kaikki"},optOut:{description:"Ladataan oletuksena (mutta voit ottaa sen pois päältä)",title:"(ladataan oletuksena)"},purpose:"Käyttötarkoitus",purposes:"Käyttötarkoitukset",required:{description:"Sivusto vaatii tämän aina",title:"(vaaditaan)"}},close:"Sulje",consentModal:{description:"Voit tarkastella ja muokata sinusta keräämiämme tietoja.",privacyPolicy:{name:"tietosuojasivultamme",text:"Voit lukea lisätietoja {privacyPolicy}."},title:"Keräämämme tiedot"},consentNotice:{changeDescription:"Olemme tehneet muutoksia ehtoihin viime vierailusi jälkeen, tarkista ehdot.",description:"Keräämme ja käsittelemme henkilötietoja seuraaviin tarkoituksiin: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Lue lisää",privacyPolicy:{name:"tietosuojasivultamme"}},decline:"Hylkää",ok:"Hyväksy",poweredBy:"Palvelun tarjoaa Klaro!",purposeItem:{service:"",services:""},save:"Tallenna"},fr:{acceptAll:"Accepter tout",acceptSelected:"Accepter sélectionné",close:"Fermer",consentModal:{description:"Vous pouvez ici évaluer et personnaliser les services que nous aimerions utiliser sur ce site. C'est vous qui décidez ! Activez ou désactivez les services comme bon vous semble.",privacyPolicy:{name:"politique de confidentialité",text:"Pour en savoir plus, veuillez lire notre {privacyPolicy}."},title:"Services que nous souhaitons utiliser"},consentNotice:{changeDescription:"Il y a eu des changements depuis votre dernière visite, veuillez renouveler votre consentement.",description:"Bonjour ! Pourrions-nous activer des services supplémentaires pour {purposes}? Vous pouvez toujours modifier ou retirer votre consentement plus tard.",imprint:{name:"mentions légales"},learnMore:"Laissez-moi choisir",privacyPolicy:{name:"politique de confidentialité"},testing:"Mode test !"},contextualConsent:{acceptAlways:"Toujours",acceptOnce:"Oui",description:"Vous souhaitez charger un contenu externe fourni par {title}?"},decline:"Je refuse",ok:"C'est bon.",poweredBy:"Réalisé avec Klaro !",privacyPolicy:{name:"politique de confidentialité",text:"Pour en savoir plus, veuillez lire notre {privacyPolicy}."},purposeItem:{service:"service",services:"services"},purposes:{advertising:{description:"Ces services traitent les informations personnelles pour vous présenter des publicités personnalisées ou basées sur des intérêts.",title:"Publicité"},functional:{description:"Ces services sont essentiels au bon fonctionnement de ce site. Vous ne pouvez pas les désactiver ici car le service ne fonctionnerait pas correctement autrement.\n",title:"Prestation de services"},marketing:{description:"Ces services traitent les informations personnelles afin de vous présenter un contenu pertinent sur les produits, les services ou les sujets qui pourraient vous intéresser.",title:"Marketing"},performance:{description:"Ces services traitent les informations personnelles afin d'optimiser le service que ce site Web offre.\n",title:"Optimisation de la performance"}},save:"Enregistrer",service:{disableAll:{description:"Utilisez ce commutateur pour activer ou désactiver tous les services.",title:"Activer ou désactiver tous les services"},optOut:{description:"Ce service est chargé par défaut (mais vous pouvez le désactiver)",title:"(opt-out)"},purpose:"Objet",purposes:"Fins",required:{description:"Ce service est toujours nécessaire",title:"(toujours requis)"}}},gl:{acceptAll:"Aceptar todas",acceptSelected:"Aceptar seleccionadas",close:"Pechar",consentModal:{description:"Aquà pode avaliar e personalizar os servizos que nos gustarÃa utilizar neste sitio web. ¡Vostede decide! Habilite ou deshabilite os servicios como lle conveña.",privacyPolicy:{name:"polÃtica de privacidade",text:"Para saber máis, por favor lea a nosa {privacyPolicy}."},title:"Servizos que nos gustarÃa utilizar"},consentNotice:{changeDescription:"Houbo cambios nas cookies dende a súa última visita. Debe renovar o seu consentimento.",description:"¡Ola! ¿PoderÃamos habilitar algúns servizos adicionais para {purposes}? Sempre poderá cambiar ou retirar o séu consentimento máis tarde.",imprint:{name:"Imprimir"},learnMore:"Quero elixir",privacyPolicy:{name:"polÃtica de privacidade"},testing:"¡Modo de proba!"},decline:"Descartar todas",ok:"De acordo",poweredBy:"¡Realizado con Klaro!",privacyPolicy:{name:"polÃtica de privacidade",text:"Para saber máis, por favor lea a nosa {privacyPolicy}."},purposeItem:{service:"servizo",services:"servizos"},purposes:{advertising:{description:"Estes servizos procesan información persoal para mostrarlle anuncios personalizados ou basados en intereses.",title:"Publicidade"},functional:{description:"Estes servizos son esenciais para o correcto funcionamiento deste sitio web. Non pode desactivalos xa que a páxina non funcionarÃa correctamente.",title:"Prestación de servizos"},marketing:{description:"Estes servizos procesan información persoal para mostrarlle contido relevante sobre produtos, servizos ou temas que poidan interesarlle.",title:"Marketing"},performance:{description:"Estes servizos procesan información persoal para optimizar o servizo que ofrece este sitio.",title:"Optimización do rendimento"}},save:"Gardar",service:{disableAll:{description:"Utilice este interruptor para activar ou desactivar todos os servizos.",title:"Activar ou desactivar todos os servizos"},optOut:{description:"Este servizo está habilitado por defecto (pero pode optar polo contrario)",title:"(desactivar)"},purpose:"Finalidade",purposes:"Finalidades",required:{description:"Este servizo é necesario sempre",title:"(sempre requirido)"}}},hu:{acceptAll:"Mind elfogad",acceptAll_en:"Accept all",acceptSelected:"Kiválasztottat elfogad",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Használja ezt a kapcsolót az összes alkalmazás engedélyezéséhez/letiltásához.",title:"Ãsszes app átkapcsolása"},optOut:{description:"Ez az alkalmazás alapértelmezés szerint betöltött (de ki lehet kapcsolni)",title:"(leiratkozás)"},purpose:"Cél",purposes:"Célok",required:{description:"Ez az alkalmazás mindig szükséges",title:"(mindig szükséges)"}},close:"Elvet",consentModal:{description:"Itt láthatja és testreszabhatja az önrÅl gyűjtött információkat.",privacyPolicy:{name:"adatvédelmi irányelveinket",text:"További információért kérjük, olvassa el az {privacyPolicy}."},title:"Információk, amiket gyűjtünk"},consentNotice:{changeDescription:"Az utolsó látogatás óta változások történtek, kérjük, frissÃtse a hozzájárulását.",description:"Személyes adatait összegyűjtjük és feldolgozzuk az alábbi célokra: {purposes}.",imprint:{name:"impresszum",name_en:"imprint"},learnMore:"Tudjon meg többet",privacyPolicy:{name:"adatvédelmi irányelveinket"}},contextualConsent:{acceptAlways:"Mindig",acceptOnce:"Igen",description:"Be akarod tölteni a {title} által szolgáltatott külsÅ tartalmakat?"},decline:"ElutasÃt",ok:"Elfogad",poweredBy:"Powered by Klaro!",purposeItem:{service:"",services:""},save:"Mentés"},hr:{acceptAll:"",acceptAll_en:"Prihvati sve",acceptSelected:"",acceptSelected_en:"Prihvati odabrane",service:{disableAll:{description:"Koristite ovaj prekidaÄ da omoguÄite/onemoguÄite sve aplikacije odjednom.",title:"Izmeijeni sve"},optOut:{description:"Ova aplikacija je uÄitana automatski (ali je možete onemoguÄiti)",title:"(onemoguÄite)"},purpose:"Svrha",purposes:"Svrhe",required:{description:"Ova aplikacija je uvijek obavezna",title:"(obavezna)"}},close:"Zatvori",consentModal:{description:"Ovdje možete vidjeti i podesiti informacije koje prikupljamo o Vama.",privacyPolicy:{name:"pravila privatnosti",text:"Za viÅ¡e informacije proÄitajte naÅ¡a {privacyPolicy}."},title:"Informacije koje prikupljamo"},consentNotice:{changeDescription:"DoÅ¡lo je do promjena od VaÅ¡e posljednjeg posjeÄivanja web stranice, molimo Vas da ažurirate svoja odobrenja.",description:"Mi prikupljamo i procesiramo VaÅ¡e osobne podatke radi slijedeÄeg: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Saznajte viÅ¡e",privacyPolicy:{name:"pravila privatnosti"}},decline:"Odbij",ok:"U redu",poweredBy:"PokreÄe Klaro!",purposeItem:{service:"",services:""},save:"Spremi"},it:{acceptAll:"Accettare tutti",acceptSelected:"Accettare selezionato",close:"Chiudi",consentModal:{description:"Qui può valutare e personalizzare i servizi che vorremmo utilizzare su questo sito web. à lei il responsabile! Abilitare o disabilitare i servizi come meglio crede.",privacyPolicy:{name:"informativa sulla privacy",text:"Per saperne di più, legga la nostra {privacyPolicy}."},title:"Servizi che desideriamo utilizzare"},consentNotice:{changeDescription:"Ci sono stati dei cambiamenti rispetto alla sua ultima visita, la preghiamo di rinnovare il suo consenso.",description:"Salve, possiamo attivare alcuni servizi aggiuntivi per {purposes}? Può sempre modificare o ritirare il suo consenso in un secondo momento.",imprint:{name:"impronta"},learnMore:"Lasciatemi scegliere",privacyPolicy:{name:"informativa sulla privacy"},testing:"Modalità di test!"},contextualConsent:{acceptAlways:"Sempre",acceptOnce:"Sì",description:"Vuole caricare contenuti esterni forniti da {title}?"},decline:"Rifiuto",ok:"Va bene così",poweredBy:"Realizzato con Klaro!",privacyPolicy:{name:"informativa sulla privacy",text:"Per saperne di più, legga la nostra {privacyPolicy}."},purposeItem:{service:"servizio",services:"servizi"},purposes:{advertising:{description:"Questi servizi elaborano le informazioni personali per mostrarle annunci pubblicitari personalizzati o basati su interessi.",title:"Pubblicità "},functional:{description:"Questi servizi sono essenziali per il corretto funzionamento di questo sito web. Non può disattivarli qui perché altrimenti il servizio non funzionerebbe correttamente.\n",title:"Fornitura di servizi"},marketing:{description:"Questi servizi elaborano le informazioni personali per mostrarle contenuti rilevanti su prodotti, servizi o argomenti che potrebbero interessarla.",title:"Marketing"},performance:{description:"Questi servizi elaborano le informazioni personali per ottimizzare il servizio offerto da questo sito web.\n",title:"Ottimizzazione delle prestazioni"}},save:"Salva",service:{disableAll:{description:"Utilizzi questo interruttore per attivare o disattivare tutti i servizi.",title:"Attivare o disattivare tutti i servizi"},optOut:{description:"Questo servizio è caricato di default (ma è possibile scegliere di non usufruirne)",title:"(opt-out)"},purpose:"Scopo dell",purposes:"Finalità ",required:{description:"Questo servizio è sempre richiesto",title:"(sempre richiesto)"}}},nl:{acceptAll:"Accepteer alle",acceptSelected:"Geselecteerde",close:"Sluit",consentModal:{description:"Hier kunt u de diensten die wij op deze website willen gebruiken beoordelen en aanpassen. U heeft de leiding! Schakel de diensten naar eigen inzicht in of uit.",privacyPolicy:{name:"privacybeleid",text:"Voor meer informatie kunt u ons {privacyPolicy} lezen."},title:"Diensten die we graag willen gebruiken"},consentNotice:{changeDescription:"Er waren veranderingen sinds uw laatste bezoek, gelieve uw toestemming te hernieuwen.",description:"Hallo, kunnen wij u een aantal extra diensten aanbieden voor {purposes}? U kunt uw toestemming later altijd nog wijzigen of intrekken.",imprint:{name:"impressum"},learnMore:"Laat me kiezen",privacyPolicy:{name:"privacybeleid"},testing:"Testmodus!"},contextualConsent:{acceptAlways:"Altijd",acceptOnce:"Ja",description:"Wilt u externe content laden die door {title} wordt aangeleverd ?"},decline:"Ik weiger",ok:"Dat is oké",poweredBy:"Gerealiseerd met Klaro!",privacyPolicy:{name:"privacybeleid",text:"Voor meer informatie kunt u ons {privacyPolicy} lezen."},purposeItem:{service:"service",services:"diensten"},purposes:{advertising:{description:"Deze diensten verwerken persoonlijke informatie om u gepersonaliseerde of op interesse gebaseerde advertenties te tonen.",title:"Reclame"},functional:{description:"Deze diensten zijn essentieel voor het correct functioneren van deze website. U kunt ze hier niet uitschakelen omdat de dienst anders niet correct zou werken.\n",title:"Dienstverlening"},marketing:{description:"Deze diensten verwerken persoonlijke informatie om u relevante inhoud te tonen over producten, diensten of onderwerpen waarin u geïnteresseerd zou kunnen zijn.",title:"Marketing"},performance:{description:"Deze diensten verwerken persoonlijke informatie om de service die deze website biedt te optimaliseren.\n",title:"Optimalisatie van de prestaties"}},save:"Opslaan",service:{disableAll:{description:"Gebruik deze schakelaar om alle diensten in of uit te schakelen.",title:"Alle diensten in- of uitschakelen"},optOut:{description:"Deze diensten worden standaard geladen (maar u kunt zich afmelden)",title:"(opt-out)"},purpose:"Verwerkingsdoel",purposes:"Verwerkingsdoeleinden",required:{description:"Deze diensten zijn altijd nodig",title:"(altijd nodig)"}}},no:{acceptAll:"Godtar alle",acceptSelected:"Godtar valgt",service:{disableAll:{description:"Bruk denne for Ã¥ skru av/pÃ¥ alle apper.",title:"Bytt alle apper"},optOut:{description:"Denne appen er lastet som standard (men du kan skru det av)",title:"(opt-out)"},purpose:"Ã
rsak",purposes:"Ã
rsaker",required:{description:"Denne applikasjonen er alltid pÃ¥krevd",title:"(alltid pÃ¥krevd)"}},close:"",close_en:"Close",consentModal:{description:"Her kan du se og velge hvilken informasjon vi samler inn om deg.",privacyPolicy:{name:"personvernerklæring",text:"For Ã¥ lære mer, vennligst les vÃ¥r {privacyPolicy}."},title:"Informasjon vi samler inn"},consentNotice:{changeDescription:"Det har skjedd endringer siden ditt siste besøk, vennligst oppdater ditt samtykke.",description:"Vi samler inn og prosesserer din personlige informasjon av følgende Ã¥rsaker: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Lær mer",privacyPolicy:{name:"personvernerklæring"}},decline:"AvslÃ¥",ok:"OK",poweredBy:"Laget med Klaro!",purposeItem:{service:"",services:""},save:"Opslaan"},oc:{acceptAll:"Tot acceptar",acceptSelected:"Acceptar çò seleccionat",close:"Tampar",consentModal:{description:"Aquà podètz mesurar e personalizar los servicis que volriam utilizar sus aqueste site web. Avètz lo darrièr mot ! Activatz o desactivatz segon vòstra causida.",title:"Servicis que volriam utilizar"},consentNotice:{changeDescription:"I aguèt de modificacions dempuèi vòstra darrièra visita, mercés de repassar vòstre consentiment.",description:"Adieuâ¯! Poiriam activar mai de servici per {purposes}â¯? Podètz totjorn modificar o tirar vòstre consentiment mai tard.",learnMore:"Me daissar causir",testing:"Mòde tèst !"},contextualConsent:{acceptAlways:"Totjorn",acceptOnce:"Ãc",description:"Volètz cargar de contenguts extèrn provesits per {title}â¯?"},decline:"Refusi",ok:"Es bon",poweredBy:"Realizat amb Klaro !",privacyPolicy:{name:"politica de confidencialitat",text:"Per ne saber mai, vejatz nòstra {privacyPolicy}."},purposeItem:{service:"servici",services:"servicis"},purposes:{advertising:{description:"Aquestes servicis tractan dâinformacions personalas per vos mostrar de reclamas personalizadas o basadas suls interèsses.",title:"Reclama"},functional:{description:"Aquestes servicis son essencials pel foncionament corrèct dâaqueste site web. Los podètz pas desactivar aquà prâamor que lo servici foncionariá pas coma cal autrament.\n",title:"Servici de provision"},marketing:{description:"Aquestes servicis tractan dâinformacions personalas per vos mostrar de contenguts a prepaus de produits, de servicis o tèmas que poirián vos interessar.",title:"Marketing"},performance:{description:"Aquestes servicis tractan dâinformacions per optimizar lo servici quâaqueste site web prepausa.\n",title:"Optimizacion de las performanças"}},save:"Salvar",service:{disableAll:{description:"Utilizatz aqueste alternator per activar o desactivar totes los servicis.",title:"Activar o desactivar totes los servicis"},optOut:{description:"Aqueste servici es cargar per defaut (mas lo podètz desactivar)",title:"(opt-out)"},purpose:"finalitat",purposes:"finalitat",required:{description:"Aqueste servici es totjorn requesit",title:"(totjorn requesit)"}}},ro:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"UtilizaÈi acest switch pentru a activa/dezactiva toate aplicaÈiile.",title:"ComutaÈi între toate aplicaÈiile"},optOut:{description:"AceastÄ aplicaÈie este încÄrcatÄ Ã®n mod implicit (dar puteÈi renunÈa)",title:"(opt-out)"},purpose:"Scop",purposes:"Scopuri",required:{description:"AceastÄ aplicaÈie este întotdeauna necesarÄ",title:"(întotdeauna necesar)"}},close:"",close_en:"Close",consentModal:{description:"Aici puteÈi vedea Èi personaliza informaÈiile pe care le colectÄm despre dvs.",privacyPolicy:{name:"politica privacy",text:"Pentru a afla mai multe, vÄ rugÄm sÄ citiÈi {privacyPolicy}."},title:"InformaÈiile pe care le colectÄm"},consentNotice:{changeDescription:"Au existat modificÄri de la ultima vizitÄ, vÄ rugÄm sÄ actualizaÈi consimÈÄmântul.",description:"ColectÄm Èi procesÄm informaÈiile dvs. personale în urmÄtoarele scopuri: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"AflÄ mai multe",privacyPolicy:{name:"politica privacy"}},decline:"RenunÈÄ",ok:"OK",poweredBy:"Realizat de Klaro!",purposeItem:{service:"",services:""},save:"SalveazÄ"},sr:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Koristite ovaj prekidaÄ da omoguÄite/onesposobite sve aplikacije odjednom.",title:"Izmeni sve"},optOut:{description:"Ova aplikacija je uÄitana automatski (ali je možete onesposobiti)",title:"(onesposobite)"},purpose:"Svrha",purposes:"Svrhe",required:{description:"Ova aplikacija je uvek neophodna",title:"(neophodna)"}},close:"Zatvori",consentModal:{description:"Ovde možete videti i podesiti informacije koje prikupljamo o Vama.",privacyPolicy:{name:"politiku privatnosti",text:"Za viÅ¡e informacije proÄitajte naÅ¡u {privacyPolicy}."},title:"Informacije koje prikupljamo"},consentNotice:{changeDescription:"DoÅ¡lo je do promena od VaÅ¡e poslednje posete, molimo Vas da ažurirate svoja odobrenja.",description:"Mi prikupljamo i procesiramo VaÅ¡e liÄne podatke radi sledeÄeg: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Saznajte viÅ¡e",privacyPolicy:{name:"politiku privatnosti"}},decline:"Odbij",ok:"U redu",poweredBy:"PokreÄe Klaro!",purposeItem:{service:"",services:""},save:"SaÄuvaj"},sr_cyrl:{consentModal:{title:"ÐнÑоÑмаÑиÑе коÑе пÑикÑпÑамо",description:"Ðвде можеÑе Ð²Ð¸Ð´ÐµÑ Ð¸ подеÑиÑи инÑоÑмаÑиÑе коÑе пÑикÑпÑамо о Ðама.\n",privacyPolicy:{name:"полиÑÐ¸ÐºÑ Ð¿ÑиваÑноÑÑи",text:"Ðа виÑе инÑоÑмаÑиÑа пÑоÑиÑаÑÑе наÑÑ {privacyPolicy}.\n"}},consentNotice:{changeDescription:"ÐоÑло Ñе до пÑомена од ÐаÑе поÑледнÑе поÑеÑе, молимо ÐÐ°Ñ Ð´Ð° ажÑÑиÑаÑе ÑвоÑа одобÑеÑа.",description:"Ðи пÑикÑпÑамо и пÑоÑеÑиÑамо ÐаÑе лиÑне подаÑке Ñади ÑледеÑег: {purposes}.\n",learnMore:"СазнаÑÑе виÑе",privacyPolicy:{name:"полиÑÐ¸ÐºÑ Ð¿ÑиваÑноÑÑи"}},ok:"У ÑедÑ",save:"СаÑÑваÑ",decline:"ÐдбиÑ",close:"ÐаÑвоÑи",service:{disableAll:{title:"Ðзмени Ñве",description:"ÐоÑиÑÑиÑе Ð¾Ð²Ð°Ñ Ð¿ÑÐµÐºÐ¸Ð´Ð°Ñ Ð´Ð° омогÑÑиÑе/онеÑпоÑобиÑе Ñве апликаÑиÑе одÑедном."},optOut:{title:"(онеÑпоÑобиÑе)",description:"Ðва апликаÑиÑа Ñе ÑÑиÑана аÑÑомаÑÑки (али Ñе можеÑе онеÑпоÑобиÑи)"},required:{title:"(неопÑ
одна)",description:"Ðва апликаÑиÑа Ñе Ñвек неопÑ
одна."},purposes:"СвÑÑ
е",purpose:"СвÑÑ
а"},poweredBy:"ÐокÑеÑе ÐлаÑо!"},sv:{acceptAll:"Acceptera alla",acceptSelected:"Acceptera markerat",service:{disableAll:{description:"Använd detta reglage för att aktivera/avaktivera samtliga appar.",title:"Ãndra för alla appar"},optOut:{description:"Den här appen laddas som standardinställning (men du kan avaktivera den)",title:"(Avaktivera)"},purpose:"Syfte",purposes:"Syften",required:{description:"Den här applikationen krävs alltid",title:"(Krävs alltid)"}},close:"Stäng",consentModal:{description:"Här kan du se och anpassa vilken information vi samlar om dig.",privacyPolicy:{name:"Integritetspolicy",text:"För att veta mer, läs vÃ¥r {privacyPolicy}."},title:"Information som vi samlar"},consentNotice:{changeDescription:"Det har skett förändringar sedan ditt senaste besök, var god uppdatera ditt medgivande.",description:"Vi samlar och bearbetar din personliga data i följande syften: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Läs mer",privacyPolicy:{name:"Integritetspolicy"}},decline:"Avböj",ok:"OK",poweredBy:"Körs pÃ¥ Klaro!",purposeItem:{service:"",services:""},save:"Spara"},tr:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Toplu açma/kapama için bu düÄmeyi kullanabilirsin.",title:"Tüm uygulamaları aç/kapat"},optOut:{description:"Bu uygulama varsayılanda yüklendi (ancak iptal edebilirsin)",title:"(isteÄe baÄlı)"},purpose:"Amaç",purposes:"Amaçlar",required:{description:"Bu uygulama her zaman gerekli",title:"(her zaman gerekli)"}},close:"Kapat",consentModal:{description:"Hakkınızda topladıÄımız bilgileri burada görebilir ve özelleÅtirebilirsiniz.",privacyPolicy:{name:"Gizlilik Politikası",text:"Daha fazlası için lütfen {privacyPolicy} sayfamızı okuyun."},title:"SakladıÄımız bilgiler"},consentNotice:{changeDescription:"Son ziyaretinizden bu yana deÄiÅiklikler oldu, lütfen seçiminizi güncelleyin.",description:"KiÅisel bilgilerinizi aÅaÄıdaki amaçlarla saklıyor ve iÅliyoruz: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Daha fazla bilgi",privacyPolicy:{name:"Gizlilik Politikası"}},decline:"Reddet",ok:"Tamam",poweredBy:"Klaro tarafından geliÅtirildi!",purposeItem:{service:"",services:""},save:"Kaydet"},pl:{acceptAll:"Zaakceptuj wszystkie",acceptSelected:"Zaakceptuj wybrane",close:"Zamknij",consentModal:{description:"Tutaj mogÄ
PaÅstwo oceniÄ i dostosowaÄ usÅugi, które chcielibyÅmy wykorzystaÄ na tej stronie. WÅÄ
czaj lub wyÅÄ
czaj usÅugi wedÅug wÅasnego uznania.",privacyPolicy:{name:"politykÄ
prywatnoÅci",text:"Aby dowiedzieÄ siÄ wiÄcej, prosimy o zapoznanie siÄ z naszÄ
{privacyPolicy}."},title:"UsÅugi, z których chcielibyÅmy skorzystaÄ"},consentNotice:{changeDescription:"Od Twojej ostatniej wizyty nastÄ
piÅy zmiany, prosimy o odnowienie zgody.",description:"Czy możemy wÅÄ
czyÄ dodatkowe usÅugi dla {purposes}? W każdej chwili mogÄ
PaÅstwo później zmieniÄ lub wycofaÄ swojÄ
zgodÄ.",imprint:{name:"Imprint"},learnMore:"Pozwól mi wybraÄ",privacyPolicy:{name:"polityka prywatnoÅci"},testing:"Tryb testowy!"},contextualConsent:{acceptAlways:"Zawsze",acceptOnce:"Tak",description:"Czy chcÄ
PaÅstwo zaÅadowaÄ treÅci zewnÄtrzne dostarczane przez {title}?"},decline:"Odmawiam",ok:"Ok",poweredBy:"Technologia dostarczona przez Klaro",privacyPolicy:{name:"polityka prywatnoÅci",text:"Aby dowiedzieÄ siÄ wiÄcej, prosimy o zapoznanie siÄ z naszÄ
{privacyPolicy}."},purposeItem:{service:"usÅuga",services:"usÅugi"},purposes:{advertising:{description:"UsÅugi te przetwarzajÄ
dane osobowe w celu pokazania PaÅstwu spersonalizowanych lub opartych na zainteresowaniach reklam.",title:"Reklama"},functional:{description:"UsÅugi te sÄ
niezbÄdne do prawidÅowego funkcjonowania niniejszej strony internetowej. Nie mogÄ
PaÅstwo ich tutaj wyÅÄ
czyÄ, ponieważ w przeciwnym razie strona nie dziaÅaÅaby prawidÅowo.\n",title:"Åwiadczenie usÅug"},marketing:{description:"UsÅugi te przetwarzajÄ
dane osobowe w celu pokazania PaÅstwu istotnych treÅci dotyczÄ
cych produktów, usÅug lub tematów, którymi mogÄ
byÄ PaÅstwo zainteresowani.",title:"Marketing"},performance:{description:"UsÅugi te przetwarzajÄ
dane osobowe w celu optymalizacji usÅug oferowanych przez tÄ stronÄ.\n",title:"Optymalizacja wydajnoÅci"}},save:"Zapisz",service:{disableAll:{description:"Za pomocÄ
tego przeÅÄ
cznika można wÅÄ
czaÄ lub wyÅÄ
czaÄ wszystkie usÅugi.",title:"WÅÄ
cz lub wyÅÄ
cz wszystkie usÅugi"},optOut:{description:"Ta usÅuga jest domyÅlnie zaÅadowana (ale mogÄ
PaÅstwo z niej zrezygnowaÄ)",title:"(opt-out)"},purpose:"Cel",purposes:"Cele",required:{description:"UsÅugi te sÄ
zawsze wymagane",title:"(zawsze wymagane)"}}},ru:{acceptAll:"ÐÑинÑÑÑ Ð²ÑÑ",acceptSelected:"ÐÑинÑÑÑ Ð²ÑбÑаннÑе",service:{disableAll:{description:"ÐÑполÑзÑйÑе ÑÑÐ¾Ñ Ð¿ÐµÑеклÑÑаÑелÑ, ÑÑÐ¾Ð±Ñ Ð²ÐºÐ»ÑÑиÑÑ/оÑклÑÑиÑÑ Ð²Ñе пÑиложениÑ.",title:"ÐеÑеклÑÑиÑÑ Ð²Ñе пÑиложениÑ"},optOut:{description:"ÐÑо пÑиложение вклÑÑено по ÑмолÑÐ°Ð½Ð¸Ñ (но Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе оÑказаÑÑÑÑ)",title:"(оÑказаÑÑÑÑ)"},purpose:"ÐамеÑение",purposes:"ÐамеÑениÑ",required:{description:"ÐÑо обÑзаÑелÑное пÑиложение",title:"(вÑегда обÑзаÑелÑнÑй)"}},close:"ÐакÑÑÑÑ",consentModal:{description:"ÐдеÑÑ Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе пÑоÑмоÑÑеÑÑ Ð¸ наÑÑÑоиÑÑ, какÑÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾ Ð²Ð°Ñ Ð¼Ñ Ñ
Ñаним.",privacyPolicy:{name:"СоглаÑение",text:"ЧÑÐ¾Ð±Ñ ÑзнаÑÑ Ð±Ð¾Ð»ÑÑе, пожалÑйÑÑа, пÑоÑиÑайÑе наÑе {privacyPolicy}."},title:"ÐнÑоÑмаÑиÑ, коÑоÑÑÑ Ð¼Ñ ÑоÑ
ÑанÑем"},consentNotice:{changeDescription:"Со вÑемени ваÑего поÑледнего визиÑа пÑоизоÑли изменениÑ, обновиÑе ÑÐ²Ð¾Ñ ÑоглаÑие.",description:"ÐÑ ÑобиÑаем и обÑабаÑÑваем ваÑÑ Ð»Ð¸ÑнÑÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð´Ð»Ñ ÑледÑÑÑиÑ
Ñелей: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"ÐаÑÑÑоиÑÑ",privacyPolicy:{name:"полиÑика конÑиденÑиалÑноÑÑи"}},decline:"ÐÑклониÑÑ",ok:"ÐÑинÑÑÑ",poweredBy:"РабоÑÐ°ÐµÑ Ð½Ð° ÐлаÑо!",purposeItem:{service:"",services:""},save:"СоÑ
ÑаниÑÑ"}}
2);Dn(Xn,gr),cr()})(),r})(),e.exports=t()},5177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},5358:(e,t,n)=>{var r={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":25
272,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":9837,"./yo.js":9837,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=5358},5411:function(e,t,n){e.exports=function(e){"use strict";const t=t=>{let n=t.getAttribute("data-bs-target");if(!n||"#"===n){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),n=e&&"#"!==e?e.trim():null}return n?n.split(",").map(t=>e.parseSelector(t)).join(","):null},n={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const n=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(n,t).filter(t=>!e.isDisabled(t)&&e.isVisible(t))},getSelectorFromElement(e){const r=t(e);return r&&n.findOne(r)?r:null},getElementFromSelector(e){const r=t(e);return r?n.findOne(r):null},getMultipleElementsFromSelector(e){const r=t(e);return r?n.find(r):[]}};return n}(n(4035))},5498:function(e,t,n){!function(e){"use strict";
vendor: 9,719 bytes, line 2
2var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},5533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertÉsi_ÃÉrÅÉnbÉ axÅamı_ÃÉrÅÉnbÉ_CümÉ axÅamı_CümÉ_ÅÉnbÉ".split("_"),weekdaysShort:"Baz_BzE_ÃAx_ÃÉr_CAx_Cüm_ÅÉn".split("_"),weekdaysMin:"Bz_BE_ÃA_ÃÉ_CA_Cü_ÅÉ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gÉlÉn hÉftÉ] dddd [saat] LT",lastDay:"[dünÉn] LT",lastWeek:"[keçÉn hÉftÉ] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s ÉvvÉl",s:"bir neÃ§É saniyÉ",ss:"%d saniyÉ",m:"bir dÉqiqÉ",mm:"%d dÉqiqÉ",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecÉ|sÉhÉr|gündüz|axÅam/,isPM:function(e){return/^(gündüz|axÅam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecÉ":e<12?"sÉhÉr":e<17?"gündüz":"axÅam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}})}(n(5093))},5543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},5606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var o,l=[],u=!1,c=-1;function d(){u&&o&&(u=!1,o.length?l=o.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(o=l,l=[];++c<t;)o&&o[c].run();c=-1,t=l.length}o=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5635:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(3029),i=n.n(r);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new(i())(e)})}}],(t=null)&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},5719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,s=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===r&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄe u] LT",lastWeek:function(){return["[proÅ¡le] [nedelje] [u] LT","[proÅ¡log] [ponedeljka] [u] LT","[proÅ¡log] [utorka] [u] LT","[proÅ¡le] [srede] [u] LT","[proÅ¡log] [Äetvrtka] [u] LT","[proÅ¡log] [petka] [u] LT","[proÅ¡le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},5766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundÄ_sekundžių_sekundes",m:"minutÄ_minutÄs_minutÄ",mm:"minutÄs_minuÄių_minutes",h:"valanda_valandos_valandÄ
",hh:"valandos_valandų_valandas",d:"diena_dienos_die
2nÄ
",dd:"dienos_dienų_dienas",M:"mÄnuo_mÄnesio_mÄnesį",MM:"mÄnesiai_mÄnesių_mÄnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundÄs":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function i(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function s(e,t,n,s){var o=e+" ";return 1===e?o+r(e,t,n[0],s):t?o+(i(e)?a(n)[1]:a(n)[0]):s?o+a(n)[1]:o+(i(e)?a(n)[1]:a(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužÄs_birželio_liepos_rugpjÅ«Äio_rugsÄjo_spalio_lapkriÄio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužÄ_birželis_liepa_rugpjÅ«tis_rugsÄjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_treÄiadienį_ketvirtadienį_penktadienį_Å¡eÅ¡tadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_treÄiadienis_ketvirtadienis_penktadienis_Å¡eÅ¡tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Å eÅ¡".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Å ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Å iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[PraÄjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieÅ¡ %s",s:n,ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(5093))},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_aprÃl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodÃn"):a+"hodinami";case"d":return t||i?"deÅ":"dÅom";case"dd":return t||i?a+(r(e)?"dni":"dnÃ"):a+"dÅami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_Å¡tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_Å¡t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_Å¡t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo Å¡tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[vÄera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},5802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มà¸à¸£à¸²à¸à¸¡_à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹_มีà¸à¸²à¸à¸¡_à¹à¸¡à¸©à¸²à¸¢à¸_à¸à¸¤à¸©à¸ าà¸à¸¡_มิà¸à¸¸à¸à¸²à¸¢à¸_à¸à¸£à¸à¸à¸²à¸à¸¡_สิà¸à¸«à¸²à¸à¸¡_à¸à¸±à¸à¸¢à¸²à¸¢à¸_à¸à¸¸à¸¥à¸²à¸à¸¡_à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸_à¸à¸±à¸à¸§à¸²à¸à¸¡".split("_"),monthsShort:"ม.à¸._à¸.à¸._มี.à¸._à¹à¸¡.ย._à¸.à¸._มิ.ย._à¸.à¸._ส.à¸._à¸.ย._à¸.à¸._à¸.ย._à¸.à¸.".split("_"),monthsParseExact:!0,weekdays:"à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"),weekdaysShort:"à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ª_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"),weekdaysMin:"à¸à¸²._à¸._à¸._à¸._à¸à¸¤._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY à¹à¸§à¸¥à¸² H:mm",LLLL:"วัà¸ddddà¸à¸µà¹ D MMMM YYYY à¹à¸§à¸¥à¸² H:mm"},meridiemParse:/à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸/,isPM:function(e){return"หลัà¸à¹à¸à¸µà¹à¸¢à¸"===e},meridiem:function(e,t,n){return e<12?"à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸":"หลัà¸à¹à¸à¸µà¹à¸¢à¸"},calendar:{sameDay:"[วัà¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",nextDay:"[à¸à¸£à¸¸à¹à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",nextWeek:"dddd[หà¸à¹à¸² à¹à¸§à¸¥à¸²] LT",lastDay:"[à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",lastWeek:"[วัà¸]dddd[à¸à¸µà¹à¹à¸¥à¹à¸§ à¹à¸§à¸¥à¸²] LT",sameElse:"L"},relativeTime:{future:"à¸à¸µà¸ %s",past:"%sà¸à¸µà¹à¹à¸¥à¹à¸§",s:"à¹à¸¡à¹à¸à¸µà¹à¸§à¸´à¸à¸²à¸à¸µ",ss:"%d วิà¸à¸²à¸à¸µ",m:"1 à¸à¸²à¸à¸µ",mm:"%d à¸à¸²à¸à¸µ",h:"1 à¸à¸±à¹à¸§à¹à¸¡à¸",hh:"%d à¸à¸±à¹à¸§à¹à¸¡à¸",d:"1 วัà¸",dd:"%d วัà¸",w:"1 สัà¸à¸à¸²à¸«à¹",ww:"%d สัà¸à¸à¸²à¸«à¹",M:"1 à¹à¸à¸·à¸à¸",MM:"%d à¹à¸à¸·à¸à¸",y:"1 à¸à¸µ",yy:"%d à¸à¸µ"}})}(n(5093))},5824:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(5142),i=n(2543);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l,u,c={version:"0.7.*",elementID:"klaro",styling:{theme:["light","bottom","left"]},noAutoLoad:!1,htmlTexts:!0,embedded:!1,groupByPurpose:!0,storageMethod:"cookie",cookieName:"klaro",cookieExpiresAfterDays:120,cookieDomain:"."+app.domain,default:!1,mustConsent:!1,acceptAll:!0,hideDeclineAll:!1,hideLearnMore:!1,noticeAsModal:!1,disablePoweredBy:!0,lang:app.locale,translations:(u={zz:{privacyPolicyUrl:app.gdpr_page_url,purposes:{}},fr:{decline:"Refuser tout",ok:"Accepter tout",acceptSelected:"Enregistrer sélection"}},(0,i.each)(app.cookie_categories,function(e){u.zz.purposes[e.unique_key]={title:e.title,de
2scription:e.description}}),u),services:(l=[],(0,i.each)((0,i.flatten)((0,i.map)(app.cookie_categories,"services")),function(e){(0,i.each)(e.cookies,function(t,n){(0,i.isArray)(t)&&(e.cookies[n]=new RegExp(t))});var t={name:e.unique_key,title:e.title,description:e.description||null,purposes:(0,i.map)(e.categories,"unique_key"),required:e.required,default:e.enabled_by_default,cookies:e.cookies||{}};"matomo"===e.unique_key&&(t.callback=function(e){var t=window._paq=window._paq||[];"undefined"!==t&&(1==e?t.push(["rememberCookieConsentGiven"]):t.push(["forgetCookieConsentGiven"]))}),l.push(t)}),l)},d=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){r.render(c),window.openCookiePreferences=function(){return r.show(c)};var e=document.getElementById("change-cookie-preferences");if(document.body.contains(e)&&document.getElementById("change-cookie-preferences").addEventListener("click",function(e){e.preventDefault(),r.show(c)}),"undefined"!=typeof Livewire&&Livewire.on("cookies:modal:open",function(){r.show(c)}),"undefined"!=typeof MutationObserver){var t=function(e){var t,n;return e.nodeType===Node.ELEMENT_NODE&&((null===(t=e.matches)||void 0===t?void 0:t.call(e,".cookie-embed"))||(null===(n=e.querySelector)||void 0===n?void 0:n.call(e,".cookie-embed")))};new MutationObserver(function(e){e.some(function(e){return Array.from(e.addedNodes).some(t)})&&r.getManager(c).applyConsents()}).observe(document.body,{childList:!0,subtree:!0})}}}],(t=null)&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},5867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັàºàºàºàº_àºàº¸àº¡àºàº²_ມີàºàº²_à»àº¡àºªàº²_àºàº¶àºàºªàº°àºàº²_ມິàºàº¸àºàº²_àºà»àº¥àº°àºàº»àº_ສິàºàº«àº²_àºàº±àºàºàº²_àºàº¸àº¥àº²_àºàº°àºàº´àº_àºàº±àºàº§àº²".split("_"),monthsShort:"ມັàºàºàºàº_àºàº¸àº¡àºàº²_ມີàºàº²_à»àº¡àºªàº²_àºàº¶àºàºªàº°àºàº²_ມິàºàº¸àºàº²_àºà»àº¥àº°àºàº»àº_ສິàºàº«àº²_àºàº±àºàºàº²_àºàº¸àº¥àº²_àºàº°àºàº´àº_àºàº±àºàº§àº²".split("_"),weekdays:"àºàº²àºàº´àº_àºàº±àº_àºàº±àºàºàº²àº_àºàº¸àº_àºàº°àº«àº±àº_ສຸàº_à»àºªàº»àº²".split("_"),weekdaysShort:"àºàº´àº_àºàº±àº_àºàº±àºàºàº²àº_àºàº¸àº_àºàº°àº«àº±àº_ສຸàº_à»àºªàº»àº²".split("_"),weekdaysMin:"àº_àº_àºàº_àº_àºàº«_ສàº_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັàºdddd D MMMM YYYY HH:mm"},meridiemParse:/àºàºàºà»àºàº»à»àº²|àºàºàºà»àº¥àº/,isPM:function(e){return"àºàºàºà»àº¥àº"===e},meridiem:function(e,t,n){return e<12?"àºàºàºà»àºàº»à»àº²":"àºàºàºà»àº¥àº"},calendar:{sameDay:"[ມືà»àºàºµà»à»àº§àº¥àº²] LT",nextDay:"[ມືà»àºàº·à»àºà»àº§àº¥àº²] LT",nextWeek:"[ວັàº]dddd[à»à»àº²à»àº§àº¥àº²] LT",lastDay:"[ມືà»àº§àº²àºàºàºµà»à»àº§àº¥àº²] LT",lastWeek:"[ວັàº]dddd[à»àº¥à»àº§àºàºµà»à»àº§àº¥àº²] LT",sameElse:"L"},relativeTime:{future:"àºàºµàº %s",past:"%sàºà»àº²àºàº¡àº²",s:"àºà»à»à»àºàº»à»àº²à»àºàº§àº´àºàº²àºàºµ",ss:"%d ວິàºàº²àºàºµ",m:"1 àºàº²àºàºµ",mm:"%d àºàº²àºàºµ",h:"1 àºàº»à»àº§à»àº¡àº",hh:"%d àºàº»à»àº§à»àº¡àº",d:"1 ມືà»",dd:"%d ມືà»",M:"1 à»àºàº·àºàº",MM:"%d à»àºàº·àºàº",y:"1 àºàºµ",yy:"%d àºàºµ"},dayOfMonthOrdinalParse:/(àºàºµà»)\d{1,2}/,ordinal:function(e){return"àºàºµà»"+e}})}(n(5093))},5990:()=>{"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},i=0,a=t;i<a.length;i++){r(a[i])}return e})},5995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%
2d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},6e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(5093))},6094:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9635),i=n.n(r);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l=document.getElementById("livewire-modal"),u=null,c=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("bootstrap:modal:show",function(){var e=i().getInstance(l);e?(u="navigate_to_other_modal",e.hide()):(e=i().getOrCreateInstance(l)).show()}),Livewire.on("bootstrap:modal:hide",function(){var e=i().getInstance(l);u="hide_modal",e.hide(),Livewire.dispatch("modal:reset")}),l.addEventListener("hidden.bs.modal",function(){var e=i().getInstance(l);switch(u){case"navigate_to_other_modal":l.childNodes.length>1&&e.show();break;case"hide_modal":e.dispose()}u=null})}}],(t=null)&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},6111:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
2d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6128:function(e){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=Date.now();function s(){var e={},t=!0,n=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var i=function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t&&"[object Object]"===Object.prototype.toString.call(n[r])?e[r]=s(!0,e[r],n[r]):e[r]=n[r])};n<r;n++)i(arguments[n]);return e}function o(e,t){if((A(e)||e===window||e===document)&&(e=[e]),D(e)||k(e)||(e=[e]),0!=C(e))if(D(e)&&!k(e))for(var n=e.length,r=0;r<n&&!1!==t.call(e[r],e[r],r,e);r++);else if(k(e))for(var i in e)if(R(e,i)&&!1===t.call(e[i],e[i],i,e))break}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e[a]=e[a]||[],i={all:r,evt:null,found:null};return t&&n&&C(r)>0&&o(r,function(e,r){if(e.eventName==t&&e.fn.toString()==n.toString())return i.found=!0,i.evt=r,!1}),i}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onElement,r=t.withCallback,i=t.avoidDuplicate,a=void 0===i||i,s=t.once,u=void 0!==s&&s,c=t.useCapture,d=void 0!==c&&c,f=arguments.length>2?arguments[2]:void 0,h=n||[];function m(e){w(r)&&r.call(f,e,this),u&&m.destroy()}return L(h)&&(h=document.querySelectorAll(h)),m.destroy=function(){o(h,function(t){var n=l(t,e,m);n.found&&n.all.splice(n.evt,1),t.removeEventListener&&t.removeEventListener(e,m,d)})},o(h,function(t){var n=l(t,e,m);(t.addEventListener&&a&&!n.found||!a)&&(t.addEventListener(e,m,d),n.all.push({eventName:e,fn:m}))}),m}function c(e,t){o(t.split(" "),function(t){return e.classList.add(t)})}function d(e,t){o(t.split(" "),function(t){return e.classList.remove(t)})}function f(e,t){return e.classList.contains(t)}function h(e,t){for(;e!==document.body;){if(!(e=e.parentElement))return!1;if("function"==typeof e.matches?e.matches(t):e.msMatchesSelector(t))return e}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||""===t)return!1;if("none"===t)return w(n)&&n(),!1;var r=E(),i=t.split(" ");o(i,function(t){c(e,"g"+t)}),u(r,{onElement:e,avoidDuplicate:!1,once:!0,withCallback:function(e,t){o(i,function(e){d(t,"g"+e)}),w(n)&&n()}})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===t)return e.style.webkitTransform="",e.style.MozTransform="",e.style.msTransform="",e.style.OTransform="",e.style.transform="",!1;e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){e.style.display="block"}function y(e){e.style.display="none"}function _(e){var t=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild);return t}function v(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function E(){var e,t=document.createElement("fakeelement"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}function b(e,t,n,r){if(e())t();else{var i;n||(n=100);var a=setInterval(function(){e()&&(clearInterval(a),i&&clearTimeout(i),t())},n);r&&(i=setTimeout(function(){clearInterval(a)},r))}}function T(e,t,n){if(I(e))console.error("Inject assets error");else if(w(t)&&(n=t,t=!1),L(t)&&t in window)w(n)&&n();else{var r;if(-1!==e.indexOf(".css")){if((r=document.querySelectorAll('link[href="'+e+'"]'))&&r.length>0)return void(w(n)&&n());var i=document.getElementsByTagName("head")[0],a=i.querySelectorAll('link[rel="stylesheet"]'),s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",s.href=e,s.media="all",a?i.insertBefore(s,a[0]):i.appendChild(s),void(w(n)&&n())}if((r=document.querySelectorAll('script[src="'+e+'"]'))&&r.length>0){if(w(n)){if(L(t))return b(function(){return void 0!==window[t]},function(){n()}),!1;n()}}else{var o=document.createElement("script");o.type="text/javascript",o.src=e,o.onload=function(){if(w(n)){if(L(t))return b(function(){return void 0!==window[t]},function(){n()}),!1;n()}},document.body.appendChild(o)}}}function S(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function w(e){return"function"==typeof e}function L(e){return"string"==typeof e}function A(e){return!(!e||!e.nodeType||1!=e.nodeType)}function M(e){return Array.isArray(e)}function D(e){return e&&e.length&&isFinite(e.length)}function k(e){return"object"===i(e)&&null!=e&&!w(e)&&!M(e)}function I(e){return null==e}function R(e,t){return null!==e&&hasOwnProperty.call(e,t)}function C(e){if(k(e)){if(e.keys)return e.keys().length;var t=0;for(var n in e)R(e,n)&&t++;return t}return e.length}function P(e){return!isNaN(parseFloat(e))&&isFinite(e)}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!t.length)return!1;if(1==t.length)return t[0];"string"==typeof e&&(e=parseInt(e));var n=[];o(t,function(e){n.push(e.getAttribute("data-taborder"))});var r=Math.max.apply(Math,n.map(function(e){return parseInt(e)})),i=e<0?1:e+1;i>r&&(i="1");var a=n.filter(function(e){return e>=parseInt(i)}),s=a.sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(s,'"]'))}function x(e){if(e.events.hasOwnProperty("keyboard"))return!1;e.events.keyboard=u("keydown",{onElement:window,withCallback:function(t,n){var r=(t=t||window.event).keyCode;if(9==r){var i=document.querySelector(".gbtn.focused");
vendor: 41,015 bytes, line 2
2if(!i){var a=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if("input"==a||"textarea"==a||"button"==a)return}t.preventDefault();var s=document.querySelectorAll(".gbtn[data-taborder]");if(!s||s.length<=0)return;if(!i){var o=O();return void(o&&(o.focus(),c(o,"focused")))}var l=O(i.getAttribute("data-taborder"));d(i,"focused"),l&&(l.focus(),c(l,"focused"))}39==r&&e.nextSlide(),37==r&&e.prevSlide(),27==r&&e.close()}})}var N=n(function t(n,r){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e(this,t),this.img=n,this.slide=r,this.onclose=a,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",function(e){return i.dragStart(e)},!1),this.img.addEventListener("mouseup",function(e){return i.dragEnd(e)},!1),this.img.addEventListener("mousemove",function(e){return i.drag(e)},!1),this.img.addEventListener("click",function(e){return i.slide.classList.contains("dragging-nav")?(i.zoomOut(),!1):i.zoomedIn?void(i.zoomedIn&&!i.dragging&&i.zoomOut()):i.zoomIn()},!1),this.img.setZoomEvents=!0},[{key:"zoomIn",value:function(){var e=this.widowWidth();if(!(this.zoomedIn||e<=768)){var t=this.img;if(t.setAttribute("data-style",t.getAttribute("style")),t.style.maxWidth=t.naturalWidth+"px",t.style.maxHeight=t.naturalHeight+"px",t.naturalWidth>e){var n=e/2-t.naturalWidth/2;this.setTranslate(this.img.parentNode,n,0)}this.slide.classList.add("zoomed"),this.zoomedIn=!0}}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(e){e.preventDefault(),this.zoomedIn?("touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset),e.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(e){var t=this;e.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout(function(){t.dragging=!1,t.img.isDragging=!1,t.img.classList.remove("dragging")},100)}},{key:"drag",value:function(e){this.active&&(e.preventDefault(),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(e){if(this.zoomedIn){var t=e.clientX-this.img.naturalWidth/2,n=e.clientY-this.img.naturalHeight/2;this.setTranslate(this.img,t,n)}}},{key:"setTranslate",value:function(e,t,n){e.style.transform="translate3d("+t+"px, "+n+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),F=n(function t(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t);var i=r.dragEl,a=r.toleranceX,s=void 0===a?40:a,o=r.toleranceY,l=void 0===o?65:o,u=r.slide,c=void 0===u?null:u,d=r.instance,f=void 0===d?null:d;this.el=i,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=s,this.toleranceY=l,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=c,this.instance=f,this.el.addEventListener("mousedown",function(e){return n.dragStart(e)},!1),this.el.addEventListener("mouseup",function(e){return n.dragEnd(e)},!1),this.el.addEventListener("mousemove",function(e){return n.drag(e)},!1)},[{key:"dragStart",value:function(e){if(this.slide.classList.contains("zoomed"))this.active=!1;else{"touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset);var t=e.target.nodeName.toLowerCase();e.target.classList.contains("nodrag")||h(e.target,".nodrag")||-1!==["input","select","textarea","button","a"].indexOf(t)?this.active=!1:(e.preventDefault(),(e.target===this.el||"img"!==t&&h(e.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=h(e.target,".ginner-container")))}}},{key:"dragEnd",value:function(e){var t=this;e&&e.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,"right"==this.doSlideChange&&this.instance.prevSlide(),"left"==this.doSlideChange&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout(function(){t.instance.preventOutsideClick=!1,t.toleranceReached=!1,t.lastDirection=null,t.dragging=!1,t.el.isDragging=!1,t.el.classList.remove("dragging"),t.slide.classList.remove("dragging-nav"),t.dragContainer.style.transform="",t.dragContainer.style.transition=""},100)}},{key:"drag",value:function(e){if(this.active){e.preventDefault(),this.slide.classList.add("dragging-nav"),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var t=Math.abs(this.currentX),n=Math.abs(this.currentY);if(t>0&&t>=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var r=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&r&&(this.doSlideChange=r),this.instance.settings.dragAutoSnap&&r)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==r&&this.instance.prevSlide(),void("left"==r&&this.instance.nextSlide())}if(this.toleranceY>0&&n>0&&n>=t&&(!this.lastDirection||"y"==this.lastDirection)){this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY);var i=this.shouldClose();return!this.instance.settings.dragAutoSnap&&i&&(this.doSlideClose=!0),void(this.instance.settings.dragAutoSnap&&i&&this.instance.close())}}}},{key:"shouldChange",value:function(){var e=!1;if(Math.abs(this.currentX)>=this.toleranceX){var t=this.currentX>0?"right":"left";("left"==t&&this.slide!==this.slide.parentNode.lastChild||"right"==t&&this.slide!==this.slide.parentNode.firstChild)&&(e=t)}return e}},{key:"shouldClose",value:function(){var e=!1;return Math.abs(this.currentY)>=this.toleranceY&&(e=!0),e}},{key:"setTranslate",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.style.transition=r?"all .2s ease":"",e.style.transform="translate3d(".concat(t,"px, ").concat(n,"px, 0)")}}]);function Y(e,t,n,r){var i=e.querySelector(".gslide-media"),a=new Image,s="gSlideTitle_"+n,o="gSlideDesc_"+n;a.addEventListener("load",function(){w(r)&&r()},!1),a.src=t.href,""!=t.sizes&&""!=t.srcset&&(a.sizes=t.sizes,a.srcset=t.srcset),a.alt="",I(t.alt)||""===t.alt||(a.alt=t.alt),""!==t.title&&a.setAttribute("aria-labelledby",s),""!==t.description&&a.setAttribute("aria-describedby",o),t.hasOwnProperty("_hasCustomWidth")&&t._hasCustomWidth&&(a.style.width=t.width),t.hasOwnProperty("_hasCustomHeight")&&t._hasCustomHeight&&(a.style.height=t.height),i.insertBefore(a,i.firstChild)}function U(e,t,n,r){var i=this,a=e.querySelector(".ginner-container"),s="gvideo"+n,o=e.querySelector(".gslide-media"),l=this.getAllPlayers();c(a,"gvideo-container"),o.insertBefore(_('<div class="gvideo-wrapper"></div>'),o.firstChild);var u=e.querySelector(".gvideo-wrapper");T(this.settings.plyr.css,"Plyr");var d=t.href,f=null==t?void 0:t.videoProvider,h=!1;o.style.maxWidth=t.width,T(this.settings.plyr.js,"Plyr",function(){if(!f&&d.match(/vimeo\.com\/([0-9]*)/)&&(f="vimeo"),!f&&(d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||d.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/))&&(f="youtube"),"local"===f||!f){f="local";var a='<video id="'+s+'" ';a+='style="background:#000; max-width: '.concat(t.width,';" '),a+='preload="metadata" ',a+='x-webkit-airplay="allow" ',a+="playsinline ",a+="controls ",a+='class="gvideo-local">',a+='<source src="'.concat(d,'">'),h=_(a+="</video>")}var o=h||_('<div id="'.concat(s,'" data-plyr-provider="').concat(f,'" data-plyr-embed-id="').concat(d,'"></div>'));c(u,"".concat(f,"-video gvideo")),u.appendChild(o),u.setAttribute("data-id",s),u.setAttribute("data-index",n);var m=R(i.settings.plyr,"config")?i.settings.plyr.config:{},p=new Plyr("#"+s,m);p.on("ready",function(e){l[s]=e.detail.plyr,w(r)&&r()}),b(function(){return e.querySelector("iframe")&&"true"==e.querySelector("iframe").dataset.ready},function(){i.resize(e)}),p.on("enterfullscreen",B),p.on("exitfullscreen",B)})}function B(e){var t=h(e.target,".gslide-media");"enterfullscreen"===e.type&&c(t,"fullscreen"),"exitfullscreen"===e.type&&d(t,"fullscreen")}function j(e,t,n,r){var i,a=this,s=e.querySelector(".gslide-media"),o=!(!R(t,"href")||!t.href)&&t.href.split("#").pop().trim(),l=!(!R(t,"content")||!t.content)&&t.content;if(l&&(L(l)&&(i=_('<div class="ginlined-content">'.concat(l,"</div>"))),A(l))){"none"==l.style.display&&(l.style.display="block");var d=document.createElement("div");d.className="ginlined-content",d.appendChild(l),i=d}if(o){var f=document.getElementById(o);if(!f)return!1;var h=f.cloneNode(!0);h.style.height=t.height,h.style.maxWidth=t.width,c(h,"ginlined-content"),i=h}if(!i)return console.error("Unable to append inline slide content",t),!1;s.style.height=t.height,s.style.width=t.width,s.appendChild(i),this.events["inlineclose"+o]=u("click",{onElement:s.querySelectorAll(".gtrigger-close"),withCallback:function(e){e.preventDefault(),a.close()}}),w(r)&&r()}function H(e,t,n,r){var i=e.querySelector(".gslide-media"),a=function(e){var t=e.url,n=e.allow,r=e.callback,i=e.appendTo,a=document.createElement("iframe");return a.className="vimeo-video gvideo",a.src=t,a.style.width="100%",a.style.height="100%",n&&a.setAttribute("allow",n),a.onload=function(){a.onload=null,c(a,"node-ready"),w(r)&&r()},i&&i.appendChild(a),a}({url:t.href,callback:r});i.parentNode.style.maxWidth=t.width,i.parentNode.style.height=t.height,i.appendChild(a)}var G=n(function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},k(n)&&(this.defaults=s(this.defaults,n))},[{key:"sourceType",value:function(e){var t=e;return null!==(e=e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/)?"image":e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||null!==e.match(/\.(mp4|ogg|webm|mov)/)?"video":null!==e.match(/\.(mp3|wav|wma|aac|ogg)/)?"audio":e.indexOf("#")>-1&&""!==t.split("#").pop().trim()?"inline":e.indexOf("goajax=true")>-1?"ajax":"external"}},{key:"parseConfig",value:function(e,t){var n=this,r=s({descPosition:t.descPosition},this.defaults);if(k(e)&&!A(e)){R(e,"type")||(R(e,"content")&&e.content?e.type="inline":R(e,"href")&&(e.type=this.sourceType(e.href)));var i=s(r,e);return this.setSize(i,t),i}var a="",l=e.getAttribute("data-glightbox"),u=e.nodeName.toLowerCase();if("a"===u&&(a=e.href),"img"===u&&(a=e.src,r.alt=e.alt),r.href=a,o(r,function(i,a){R(t,a)&&"width"!==a&&(r[a]=t[a]);var s=e.dataset[a];I(s)||(r[a]=n.sanitizeValue(s))}),r.content&&(r.type="inline"),!r.type&&a&&(r.type=this.sourceType(a)),I(l)){if(!r.title&&"a"==u){var c=e.title;I(c)||""===c||(r.title=c)}if(!r.title&&"img"==u){var d=e.alt;I(d)||""===d||(r.title=d)}}else{var f=[];o(r,function(e,t){f.push(";\\s?"+t)}),f=f.join("\\s?:|"),""!==l.trim()&&o(r,function(e,t){var i=l,a=new RegExp("s?"+t+"s?:s?(.*?)("+f+"s?:|$)"),s=i.match(a);if(s&&s.length&&s[1]){var o=s[1].trim().replace(/;\s*$/,"");r[t]=n.sanitizeValue(o)}})}if(r.description&&"."===r.description.substring(0,1)){var h;try{h=document.querySelector(r.description).innerHTML}catch(e){if(!(e instanceof DOMException))throw e}h&&(r.description=h)}if(!r.description){var m=e.querySelector(".glightbox-desc");m&&(r.description=m.innerHTML)}return this.setSize(r,t,e),this.slideConfig=r,r}},{key:"setSize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="video"==e.type?this.checkSize(t.videosWidth):this.checkSize(t.width),i=this.checkSize(t.height);return e.width=R(e,"width")&&""!==e.width?this.checkSize(e.width):r,e.height=R(e,"height")&&""!==e.height?this.checkSize(e.height):i,n&&"image"==e.type&&(e._hasCustomWidth=!!n.dataset.width,e._hasCustomHeight=!!n.dataset.height),e}},{key:"checkSize",value:function(e){return P(e)?"".concat(e,"px"):e}},{key:"sanitizeValue",value:function(e){return"true"!==e&&"false"!==e?e:"true"===e}}]),Z=n(function t(n,r,i){e(this,t),this.element=n,this.instance=r,this.index=i},[{key:"setContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(f(t,"loaded"))return!1;var r=this.instance.settings,i=this.slideConfig,a=S();w(r.beforeSlideLoad)&&r.beforeSlideLoad({index:this.index,slide:t,player:!1});var s=i.type,o=i.descPosition,l=t.querySelector(".gslide-media"),u=t.querySelector(".gslide-title"),d=t.querySelector(".gslide-desc"),h=t.querySelector(".gdesc-inner"),m=n,p="gSlideTitle_"+this.index,g="gSlideDesc_"+this.index;if(w(r.afterSlideLoad)&&(m=function(){w(n)&&n(),r.afterSlideLoad({index:e.index,slide:t,player:e.instance.getSlidePlayerInstance(e.index)})}),""==i.title&&""==i.description?h&&h.parentNode.parentNode.removeChild(h.parentNode):(u&&""!==i.title?(u.id=p,u.innerHTML=i.title):u.parentNode.removeChild(u),d&&""!==i.description?(d.id=g,a&&r.moreLength>0?(i.smallDescription=this.slideShortDesc(i.description,r.moreLength,r.moreText),d.innerHTML=i.smallDescription,this.descriptionEvents(d,i)):d.innerHTML=i.description):d.parentNode.removeChild(d),c(l.parentNode,"desc-".concat(o)),c(h.parentNode,"description-".concat(o))),c(l,"gslide-".concat(s)),c(t,"loaded"),"video"!==s){if("external"!==s)return"inline"===s?(j.apply(this.instance,[t,i,this.index,m]),void(i.draggable&&new F({dragEl:t.querySelector(".gslide-inline"),toleranceX:r.dragToleranceX,toleranceY:r.dragToleranceY,slide:t,instance:this.instance}))):void("image"!==s?w(m)&&m():Y(t,i,this.index,function(){var n=t.querySelector("img");i.draggable&&new F({dragEl:n,toleranceX:r.dragToleranceX,toleranceY:r.dragToleranceY,slide:t,instance:e.instance}),i.zoomable&&n.naturalWidth>n.offsetWidth&&(c(n,"zoomable"),new N(n,t,function(){e.instance.resize()})),w(m)&&m()}));H.apply(this,[t,i,this.index,m])}else U.apply(this.instance,[t,i,this.index,m])}},{key:"slideShortDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");r.innerHTML=e;var i=n;if((e=r.innerText.trim()).length<=t)return e;var a=e.substr(0,t-1);return i?(r=null,a+'... <a href="#" class="desc-more">'+n+"</a>"):a}},{key:"descriptionEvents",value:function(e,t){var n=this,r=e.querySelector(".desc-more");if(!r)return!1;u("click",{onElement:r,withCallback:function(e,r){e.preventDefault();var i=document.body,a=h(r,".gslide-desc");if(!a)return!1;a.innerHTML=t.description,c(i,"gdesc-open");var s=u("click",{onElement:[i,h(a,".gslide-description")],withCallback:function(e,r){"a"!==e.target.nodeName.toLowerCase()&&(d(i,"gdesc-open"),c(i,"gdesc-closed"),a.innerHTML=t.smallDescription,n.descriptionEvents(a,t),setTimeout(function(){d(i,"gdesc-closed")},400),s.destroy())}})}})}},{key:"create",value:function(){return _(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){A(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var e=new G(this.instance.settings.slideExtraAttributes);return this.slideConfig=e.parseConfig(this.element,this.instance.settings),this.slideConfig}}]);function $(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function z(e,t){var n=function(e,t){var n=$(e)*$(t);if(0===n)return 0;var r=function(e,t){return e.x*t.x+e.y*t.y}(e,t)/n;return r>1&&(r=1),Math.acos(r)}(e,t);return function(e,t){return e.x*t.y-t.x*e.y}(e,t)>0&&(n*=-1),180*n/Math.PI}var q=n(function t(n){e(this,t),this.handlers=[],this.el=n},[{key:"add",value:function(e){this.handlers.push(e)}},{key:"del",value:function(e){e||(this.handlers=[]);for(var t=this.handlers.length;t>=0;t--)this.handlers[t]===e&&this.handlers.splice(t,1)}},{key:"dispatch",value:function(){for(var e=0,t=this.handlers.length;e<t;e++){var n=this.handlers[e];"function"==typeof n&&n.apply(this.el,arguments)}}}]);function W(e,t){var n=new q(e);return n.add(t),n}var V=n(function t(n,r){e(this,t),this.element="string"==typeof n?document.querySelector(n):n,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var i=function(){};this.rotate=W(this.element,r.rotate||i),this.touchStart=W(this.element,r.touchStart||i),this.multipointStart=W(this.element,r.multipointStart||i),this.multipointEnd=W(this.element,r.multipointEnd||i),this.pinch=W(this.element,r.pinch||i),this.swipe=W(this.element,r.swipe||i),this.tap=W(this.element,r.tap||i),this.doubleTap=W(this.element,r.doubleTap||i),this.longTap=W(this.element,r.longTap||i),this.singleTap=W(this.element,r.singleTap||i),this.pressMove=W(this.element,r.pressMove||i),this.twoFingerPressMove=W(this.element,r.twoFingerPressMove||i),this.touchMove=W(this.element,r.touchMove||i),this.touchEnd=W(this.element,r.touchEnd||i),this.touchCancel=W(this.element,r.touchCancel||i),this.translateContainer=this.element,this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}},[{key:"start",value:function(e){if(e.touches)if(e.target&&e.target.nodeName&&["a","button","input"].indexOf(e.target.nodeName.toLowerCase())>=0)console.log("ignore drag for this touched element",e.target.nodeName.toLowerCase());else{this.now=Date.now(),this.x1=e.touches[0].pageX,this.y1=e.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(e,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var t=this.preV;if(e.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var n={x:e.touches[1].pageX-this.x1,y:e.touches[1].pageY-this.y1};t.x=n.x,t.y=n.y,this.pinchStartLen=$(t),this.multipointStart.dispatch(e,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(e,this.element),this._preventTap=!0}.bind(this),750)}}},{key:"move",value:function(e){if(e.touches){var t=this.preV,n=e.touches.length,r=e.touches[0].pageX,i=e.touches[0].pageY;if(this.isDoubleTap=!1,n>1){var a=e.touches[1].pageX,s=e.touches[1].pageY,o={x:e.touches[1].pageX-r,y:e.touches[1].pageY-i};null!==t.x&&(this.pinchStartLen>0&&(e.zoom=$(o)/this.pinchStartLen,this.pinch.dispatch(e,this.element)),e.angle=z(o,t),this.rotate.dispatch(e,this.element)),t.x=o.x,t.y=o.y,null!==this.x2&&null!==this.sx2?(e.deltaX=(r-this.x2+a-this.sx2)/2,e.deltaY=(i-this.y2+s-this.sy2)/2):(e.deltaX=0,e.deltaY=0),this.twoFingerPressMove.dispatch(e,this.element),this.sx2=a,this.sy2=s}else{if(null!==this.x2){e.deltaX=r-this.x2,e.deltaY=i-this.y2;var l=Math.abs(this.x1-this.x2),u=Math.abs(this.y1-this.y2);(l>10||u>10)&&(this._preventTap=!0)}else e.deltaX=0,e.deltaY=0;this.pressMove.dispatch(e,this.element)}this.touchMove.dispatch(e,this.element),this._cancelLongTap(),this.x2=r,this.y2=i,n>1&&e.preventDefault()}}},{key:"end",value:function(e){if(e.changedTouches){this._cancelLongTap();var t=this;e.touches.length<2&&(this.multipointEnd.dispatch(e,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(e.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout(function(){t.swipe.dispatch(e,t.element)},0)):(this.tapTimeout=setTimeout(function(){t._preventTap||t.tap.dispatch(e,t.element),t.isDoubleTap&&(t.doubleTap.dispatch(e,t.element),t.isDoubleTap=!1)},0),t.isDoubleTap||(t.singleTapTimeout=setTimeout(function(){t.singleTap.dispatch(e,t.element)},250))),this.touchEnd.dispatch(e,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(e){this.cancelAll(),this.touchCancel.dispatch(e,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(e,t,n,r){return Math.abs(e-t)>=Math.abs(n-r)?e-t>0?"Left":"Right":n-r>0?"Up":"Down"}},{key:"on",value:function(e,t){this[e]&&this[e].add(t)}},{key:"off",value:function(e,t){this[e]&&this[e].del(t)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]);function K(e){var t=function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}(),n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=f(e,"gslide-media")?e:e.querySelector(".gslide-media"),i=h(r,".ginner-container"),a=e.querySelector(".gslide-description");n>769&&(r=i),c(r,"greset"),p(r,"translate3d(0, 0, 0)"),u(t,{onElement:r,once:!0,withCallback:function(e,t){d(r,"greset")}}),r.style.opacity="",a&&(a.style.opacity="")}function X(e){if(e.events.hasOwnProperty("touch"))return!1;var t,n,r,i=v(),a=i.width,s=i.height,o=!1,l=null,u=null,m=null,g=!1,y=1,_=1,E=!1,b=!1,T=null,S=null,w=null,L=null,A=0,M=0,D=!1,k=!1,I={},R={},C=0,P=0,O=document.getElementById("glightbox-slider"),x=document.querySelector(".goverlay"),N=new V(O,{touchStart:function(t){if(o=!0,(f(t.targetTouches[0].target,"ginner-container")||h(t.targetTouches[0].target,".gslide-desc")||"a"==t.targetTouches[0].target.nodeName.toLowerCase())&&(o=!1),h(t.targetTouches[0].target,".gslide-inline")&&!f(t.targetTouches[0].target.parentNode,"gslide-inline")&&(o=!1),o){if(R=t.targetTouches[0],I.pageX=t.targetTouches[0].pageX,I.pageY=t.targetTouches[0].pageY,C=t.targetTouches[0].clientX,P=t.targetTouches[0].clientY,l=e.activeSlide,u=l.querySelector(".gslide-media"),r=l.querySelector(".gslide-inline"),m=null,f(u,"gslide-image")&&(m=u.querySelector("img")),(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>769&&(u=l.querySelector(".ginner-container")),d(x,"greset"),t.pageX>20&&t.pageX<window.innerWidth-20)return;t.preventDefault()}},touchMove:function(i){if(o&&(R=i.targetTouches[0],!E&&!b)){if(r&&r.offsetHeight>s){var l=I.pageX-R.pageX;if(Math.abs(l)<=13)return!1}g=!0;var c,d=i.targetTouches[0].clientX,f=i.targetTouches[0].clientY,h=C-d,y=P-f;if(Math.abs(h)>Math.abs(y)?(D=!1,k=!0):(k=!1,D=!0),t=R.pageX-I.pageX,A=100*t/a,n=R.pageY-I.pageY,M=100*n/s,D&&m&&(c=1-Math.abs(n)/s,x.style.opacity=c,e.settings.touchFollowAxis&&(A=0)),k&&(c=1-Math.abs(t)/a,u.style.opacity=c,e.settings.touchFollowAxis&&(M=0)),!m)return p(u,"translate3d(".concat(A,"%, 0, 0)"));p(u,"translate3d(".concat(A,"%, ").concat(M,"%, 0)"))}},touchEnd:function(){if(o){if(g=!1,b||E)return w=T,void(L=S);var t=Math.abs(parseInt(M)),n=Math.abs(parseInt(A));if(!(t>29&&m))return t<29&&n<25?(c(x,"greset"),x.style.opacity=1,K(u)):void 0;e.close()}},multipointEnd:function(){setTimeout(function(){E=!1},50)},multipointStart:function(){E=!0,y=_||1},pinch:function(e){if(!m||g)return!1;E=!0,m.scaleX=m.scaleY=y*e.zoom;var t=y*e.zoom;if(b=!0,t<=1)return b=!1,t=1,L=null,w=null,T=null,S=null,void m.setAttribute("style","");t>4.5&&(t=4.5),m.style.transform="scale3d(".concat(t,", ").concat(t,", 1)"),_=t},pressMove:function(e){if(b&&!E){var t=R.pageX-I.pageX,n=R.pageY-I.pageY;w&&(t+=w),L&&(n+=L),T=t,S=n;var r="translate3d(".concat(t,"px, ").concat(n,"px, 0)");_&&(r+=" scale3d(".concat(_,", ").concat(_,", 1)")),p(m,r)}},swipe:function(t){if(!b)if(E)E=!1;else{if("Left"==t.direction){if(e.index==e.elements.length-1)return K(u);e.nextSlide()}if("Right"==t.direction){if(0==e.index)return K(u);e.prevSlide()}}}});e.events.touch=N}var Q=S(),J=null!==S()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,ee=document.getElementsByTagName("html")[0],te={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.12/plyr.css",js:"https://cdn.plyr.io/3.6.12/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',prev:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'},slideHTML:'<div class="gslide">\n <div class="gslide-inner-content">\n <div class="ginner-container">\n <div class="gslide-media">\n </div>\n <div class="gslide-description">\n <div class="gdesc-inner">\n <h4 class="gslide-title"></h4>\n <div class="gslide-desc"></div>\n </div>\n </div>\n </div>\n </div>\n</div>',lightboxHTML:'<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">\n <div class="gloader visible"></div>\n <div class="goverlay"></div>\n <div class="gcontainer">\n <div id="glightbox-slider" class="gslider"></div>\n <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>\n <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>\n <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>\n</div>\n</div>'},ne=n(function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.customOptions=n,this.settings=s(te,n),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1},[{key:"init",value:function(){var e=this,t=this.getSelector();t&&(this.baseEvents=u("click",{onElement:t,withCallback:function(t,n){t.preventDefault(),e.open(n)}})),this.elements=this.getElements()}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0===this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var n=P(t)?t:this.settings.startAt;if(A(e)){var r=e.getAttribute("data-gallery");r&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,r)),I(n)&&(n=this.getElementIndex(e))<0&&(n=0)}P(n)||(n=0),this.build(),m(this.overlay,"none"===this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var i=document.body,a=window.innerWidth-document.documentElement.clientWidth;if(a>0){var s=document.createElement("style");s.type="text/css",s.className="gcss-styles",s.innerText=".gscrollbar-fixer {margin-right: ".concat(a,"px}"),document.head.appendChild(s),c(i,"gscrollbar-fixer")}c(i,"glightbox-open"),c(ee,"glightbox-open"),Q&&(c(document.body,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(n,!0),1===this.elements.length?(c(this.prevButton,"glightbox-button-hidden"),c(this.nextButton,"glightbox-button-hidden")):(d(this.prevButton,"glightbox-button-hidden"),d(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),w(this.settings.onOpen)&&this.settings.onOpen(),J&&this.settings.touchNavigation&&X(this),this.settings.keyboardNavigation&&x(this)}},{key:"openAt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.open(null,e)}},{key:"showSlide",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this.loader),this.index=parseInt(t);var r=this.slidesContainer.querySelector(".current");r&&d(r,"current"),this.slideAnimateOut();var i=this.slidesContainer.querySelectorAll(".gslide")[t];if(f(i,"loaded"))this.slideAnimateIn(i,n),y(this.loader);else{g(this.loader);var a=this.elements[t],s={index:this.index,slide:i,slideNode:i,slideConfig:a.slideConfig,slideIndex:this.index,trigger:a.node,player:null};this.trigger("slide_before_load",s),a.instance.setContent(i,function(){y(e.loader),e.resize(),e.slideAnimateIn(i,n),e.trigger("slide_after_load",s)})}this.slideDescription=i.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&f(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(t+1),this.preloadSlide(t-1)),this.updateNavigationClasses(),this.activeSlide=i}},{key:"preloadSlide",value:function(e){var t=this;if(e<0||e>this.elements.length-1)return!1;if(I(this.elements[e]))return!1;var n=this.slidesContainer.querySelectorAll(".gslide")[e];if(f(n,"loaded"))return!1;var r=this.elements[e],i=r.type,a={index:e,slide:n,slideNode:n,slideConfig:r.slideConfig,slideIndex:e,trigger:r.node,player:null};this.trigger("slide_before_load",a),"video"===i||"external"===i?setTimeout(function(){r.instance.setContent(n,function(){t.trigger("slide_after_load",a)})},200):r.instance.setContent(n,function(){t.trigger("slide_after_load",a)})}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(e<0||e>this.elements.length-1))return!1;e<0?e=this.elements.length-1:e>=this.elements.length&&(e=0),this.showSlide(e)}},{key:"insertSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;t<0&&(t=this.elements.length);var n=new Z(e,this,t),r=n.getConfig(),i=s({},r),a=n.create(),o=this.elements.length-1;i.index=t,i.node=!1,i.instance=n,i.slideConfig=r,this.elements.splice(t,0,i);var l=null,u=null;if(this.slidesContainer){if(t>o)this.slidesContainer.appendChild(a);else{var c=this.slidesContainer.querySelectorAll(".gslide")[t];this.slidesContainer.insertBefore(a,c)}(this.settings.preload&&0==this.index&&0==t||this.index-1==t||this.index+1==t)&&this.preloadSlide(t),0===this.index&&0===t&&(this.index=1),this.updateNavigationClasses(),l=this.slidesContainer.querySelectorAll(".gslide")[t],u=this.getSlidePlayerInstance(t),i.slideNode=l}this.trigger("slide_inserted",{index:t,slide:l,slideNode:l,slideConfig:r,slideIndex:t,trigger:null,player:u}),w(this.settings.slideInserted)&&this.settings.slideInserted({index:t,slide:l,player:u})}},{key:"removeSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||e>this.elements.length-1)return!1;var t=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[e];t&&(this.getActiveSlideIndex()==e&&(e==this.elements.length-1?this.prevSlide():this.nextSlide()),t.parentNode.removeChild(t)),this.elements.splice(e,1),this.trigger("slide_removed",e),w(this.settings.slideRemoved)&&this.settings.slideRemoved(e)}},{key:"slideAnimateIn",value:function(e,t){var n=this,r=e.querySelector(".gslide-media"),i=e.querySelector(".gslide-description"),a={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:I(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:I(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},s={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};if(r.offsetWidth>0&&i&&(y(i),i.style.display=""),d(e,this.effectsClasses),t)m(e,this.settings.cssEfects[this.settings.openEffect].in,function(){n.settings.autoplayVideos&&n.slidePlayerPlay(e),n.trigger("slide_changed",{prev:a,current:s}),w(n.settings.afterSlideChange)&&n.settings.afterSlideChange.apply(n,[a,s])});else{var o=this.settings.slideEffect,l="none"!==o?this.settings.cssEfects[o].in:o;this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(l=this.settings.cssEfects.slideBack.in),m(e,l,function(){n.settings.autoplayVideos&&n.slidePlayerPlay(e),n.trigger("slide_changed",{prev:a,current:s}),w(n.settings.afterSlideChange)&&n.settings.afterSlideChange.apply(n,[a,s])})}setTimeout(function(){n.resize(e)},100),c(e,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var e=this.prevActiveSlide;d(e,this.effectsClasses),c(e,"prev");var t=this.settings.slideEffect,n="none"!==t?this.settings.cssEfects[t].out:t;this.slidePlayerPause(e),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:I(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:I(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),w(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(n=this.settings.cssEfects.slideBack.out),m(e,n,function(){var t=e.querySelector(".ginner-container"),n=e.querySelector(".gslide-media"),r=e.querySelector(".gslide-description");t.style.transform="",n.style.transform="",d(n,"greset"),n.style.opacity="",r&&(r.style.opacity=""),d(e,"prev")})}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(e){var t="gvideo"+e,n=this.getAllPlayers();return!(!R(n,t)||!n[t])&&n[t]}},{key:"stopSlideVideo",value:function(e){if(A(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}console.log("stopSlideVideo is deprecated, use slidePlayerPause");var n=this.getSlidePlayerInstance(e);n&&n.playing&&n.pause()}},{key:"slidePlayerPause",value:function(e){if(A(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}var n=this.getSlidePlayerInstance(e);n&&n.playing&&n.pause()}},{key:"playSlideVideo",value:function(e){if(A(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}console.log("playSlideVideo is deprecated, use slidePlayerPlay");var n=this.getSlidePlayerInstance(e);n&&!n.playing&&n.play()}},{key:"slidePlayerPlay",value:function(e){var t;if(!Q||null!==(t=this.settings.plyr.config)&&void 0!==t&&t.muted){if(A(e)){var n=e.querySelector(".gvideo-wrapper");
2n&&(e=n.getAttribute("data-index"))}var r=this.getSlidePlayerInstance(e);r&&!r.playing&&(r.play(),this.settings.autofocusVideos&&r.elements.container.focus())}}},{key:"setElements",value:function(e){var t=this;this.settings.elements=!1;var n=[];e&&e.length&&o(e,function(e,r){var i=new Z(e,t,r),a=i.getConfig(),o=s({},a);o.slideConfig=a,o.instance=i,o.index=r,n.push(o)}),this.elements=n,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(o(this.elements,function(){var e=_(t.settings.slideHTML);t.slidesContainer.appendChild(e)}),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(e){var t=!1;return o(this.elements,function(n,r){if(R(n,"node")&&n.node==e)return t=r,!0}),t}},{key:"getElements",value:function(){var e=this,t=[];this.elements=this.elements?this.elements:[],!I(this.settings.elements)&&M(this.settings.elements)&&this.settings.elements.length&&o(this.settings.elements,function(n,r){var i=new Z(n,e,r),a=i.getConfig(),o=s({},a);o.node=!1,o.index=r,o.instance=i,o.slideConfig=a,t.push(o)});var n=!1;return this.getSelector()&&(n=document.querySelectorAll(this.getSelector())),n?(o(n,function(n,r){var i=new Z(n,e,r),a=i.getConfig(),o=s({},a);o.node=n,o.index=r,o.instance=i,o.slideConfig=a,o.gallery=n.getAttribute("data-gallery"),t.push(o)}),t):t}},{key:"getGalleryElements",value:function(e,t){return e.filter(function(e){return e.gallery==t})}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var e=[];for(var t in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(t)){var n=this.settings.cssEfects[t];e.push("g".concat(n.in)),e.push("g".concat(n.out))}return e.join(" ")}},{key:"build",value:function(){var e=this;if(this.built)return!1;var t=document.body.childNodes,n=[];o(t,function(e){e.parentNode==document.body&&"#"!==e.nodeName.charAt(0)&&e.hasAttribute&&!e.hasAttribute("aria-hidden")&&(n.push(e),e.setAttribute("aria-hidden","true"))});var r=R(this.settings.svg,"next")?this.settings.svg.next:"",i=R(this.settings.svg,"prev")?this.settings.svg.prev:"",a=R(this.settings.svg,"close")?this.settings.svg.close:"",s=this.settings.lightboxHTML;s=_(s=(s=(s=s.replace(/{nextSVG}/g,r)).replace(/{prevSVG}/g,i)).replace(/{closeSVG}/g,a)),document.body.appendChild(s);var l=document.getElementById("glightbox-body");this.modal=l;var d=l.querySelector(".gclose");this.prevButton=l.querySelector(".gprev"),this.nextButton=l.querySelector(".gnext"),this.overlay=l.querySelector(".goverlay"),this.loader=l.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=n,this.events={},c(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&d&&(this.events.close=u("click",{onElement:d,withCallback:function(t,n){t.preventDefault(),e.close()}})),d&&!this.settings.closeButton&&d.parentNode.removeChild(d),this.nextButton&&(this.events.next=u("click",{onElement:this.nextButton,withCallback:function(t,n){t.preventDefault(),e.nextSlide()}})),this.prevButton&&(this.events.prev=u("click",{onElement:this.prevButton,withCallback:function(t,n){t.preventDefault(),e.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=u("click",{onElement:l,withCallback:function(t,n){e.preventOutsideClick||f(document.body,"glightbox-mobile")||h(t.target,".ginner-container")||h(t.target,".gbtn")||f(t.target,"gnext")||f(t.target,"gprev")||e.close()}})),o(this.elements,function(t,n){e.slidesContainer.appendChild(t.instance.create()),t.slideNode=e.slidesContainer.querySelectorAll(".gslide")[n]}),J&&c(document.body,"glightbox-touch"),this.events.resize=u("resize",{onElement:window,withCallback:function(){e.resize()}}),this.built=!0}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if((e=e||this.activeSlide)&&!f(e,"zoomed")){var t=v(),n=e.querySelector(".gvideo-wrapper"),r=e.querySelector(".gslide-image"),i=this.slideDescription,a=t.width,s=t.height;if(a<=768?c(document.body,"glightbox-mobile"):d(document.body,"glightbox-mobile"),n||r){var o=!1;if(i&&(f(i,"description-bottom")||f(i,"description-top"))&&!f(i,"gabsolute")&&(o=!0),r)if(a<=768)r.querySelector("img");else if(o){var l,u,h=i.offsetHeight,m=r.querySelector("img"),p=null===(l=this.elements[this.index])||void 0===l?void 0:l.node,g="100vh";p&&(g=null!==(u=p.getAttribute("data-height"))&&void 0!==u?u:g),m.setAttribute("style","max-height: calc(".concat(g," - ").concat(h,"px)")),i.setAttribute("style","max-width: ".concat(m.offsetWidth,"px;"))}if(n){var y=R(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"";if(!y){var _=n.clientWidth,E=n.clientHeight,b=_/E;y="".concat(_/b,":").concat(E/b)}var T=y.split(":"),S=this.settings.videosWidth,w=this.settings.videosWidth,L=(w=P(S)||-1!==S.indexOf("px")?parseInt(S):-1!==S.indexOf("vw")?a*parseInt(S)/100:-1!==S.indexOf("vh")?s*parseInt(S)/100:-1!==S.indexOf("%")?a*parseInt(S)/100:parseInt(n.clientWidth))/(parseInt(T[0])/parseInt(T[1]));if(L=Math.floor(L),o&&(s-=i.offsetHeight),w>a||L>s||s<L&&a>w){var A=n.offsetWidth,M=n.offsetHeight,D=s/M,k={width:A*D,height:M*D};n.parentNode.setAttribute("style","max-width: ".concat(k.width,"px")),o&&i.setAttribute("style","max-width: ".concat(k.width,"px;"))}else n.parentNode.style.maxWidth="".concat(S),o&&i.setAttribute("style","max-width: ".concat(S,";"))}}}}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var e=this.loop();d(this.nextButton,"disabled"),d(this.prevButton,"disabled"),0==this.index&&this.elements.length-1==0?(c(this.prevButton,"disabled"),c(this.nextButton,"disabled")):0!==this.index||e?this.index!==this.elements.length-1||e||c(this.nextButton,"disabled"):c(this.prevButton,"disabled")}},{key:"loop",value:function(){var e=R(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return e=R(this.settings,"loop")?this.settings.loop:e}},{key:"close",value:function(){var e=this;if(!this.lightboxOpen){if(this.events){for(var t in this.events)this.events.hasOwnProperty(t)&&this.events[t].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&o(this.bodyHiddenChildElms,function(e){e.removeAttribute("aria-hidden")}),c(this.modal,"glightbox-closing"),m(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.out),m(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,function(){if(e.activeSlide=null,e.prevActiveSlideIndex=null,e.prevActiveSlide=null,e.built=!1,e.events){for(var t in e.events)e.events.hasOwnProperty(t)&&e.events[t].destroy();e.events=null}var n=document.body;d(ee,"glightbox-open"),d(n,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),e.modal.parentNode.removeChild(e.modal),e.trigger("close"),w(e.settings.onClose)&&e.settings.onClose();var r=document.querySelector(".gcss-styles");r&&r.parentNode.removeChild(r),e.lightboxOpen=!1,e.closing=null})}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!w(t))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:e,once:n,callback:t})}},{key:"once",value:function(e,t){this.on(e,t,!0)}},{key:"trigger",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];o(this.apiEvents,function(t,i){var a=t.evt,s=t.once,o=t.callback;a==e&&(o(n),s&&r.push(i))}),r.length&&o(r,function(e){return t.apiEvents.splice(e,1)})}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.3.1"}}]);return function(){var e=new ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return e.init(),e}}()},6169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦";break;case"ss":i="%d सà¥à¤à¤à¤¦";break;case"m":i="à¤à¤ मिनिà¤";break;case"mm":i="%d मिनिà¤à¥";break;case"h":i="à¤à¤ तास";break;case"hh":i="%d तास";break;case"d":i="à¤à¤ दिवस";break;case"dd":i="%d दिवस";break;case"M":i="à¤à¤ महिना";break;case"MM":i="%d महिनà¥";break;case"y":i="à¤à¤ वरà¥à¤·";break;case"yy":i="%d वरà¥à¤·à¥"}
vendor: 12,488 bytes, line 2
2else switch(n){case"s":i="à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦à¤¾à¤";break;case"ss":i="%d सà¥à¤à¤à¤¦à¤¾à¤";break;case"m":i="à¤à¤à¤¾ मिनिà¤à¤¾";break;case"mm":i="%d मिनिà¤à¤¾à¤";break;case"h":i="à¤à¤à¤¾ तासा";break;case"hh":i="%d तासाà¤";break;case"d":i="à¤à¤à¤¾ दिवसा";break;case"dd":i="%d दिवसाà¤";break;case"M":i="à¤à¤à¤¾ महिनà¥à¤¯à¤¾";break;case"MM":i="%d महिनà¥à¤¯à¤¾à¤";break;case"y":i="à¤à¤à¤¾ वरà¥à¤·à¤¾";break;case"yy":i="%d वरà¥à¤·à¤¾à¤"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¤¿à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¥_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°".split("_"),monthsShort:"à¤à¤¾à¤¨à¥._फà¥à¤¬à¥à¤°à¥._मारà¥à¤._à¤à¤ªà¥à¤°à¤¿._मà¥._à¤à¥à¤¨._à¤à¥à¤²à¥._à¤à¤._सपà¥à¤à¥à¤._à¤à¤à¥à¤à¥._नà¥à¤µà¥à¤¹à¥à¤._डिसà¥à¤.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤³à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार".split("_"),weekdaysShort:"रवि_सà¥à¤®_मà¤à¤à¤³_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि".split("_"),weekdaysMin:"र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श".split("_"),longDateFormat:{LT:"A h:mm वाà¤à¤¤à¤¾",LTS:"A h:mm:ss वाà¤à¤¤à¤¾",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाà¤à¤¤à¤¾",LLLL:"dddd, D MMMM YYYY, A h:mm वाà¤à¤¤à¤¾"},calendar:{sameDay:"[à¤à¤] LT",nextDay:"[à¤à¤¦à¥à¤¯à¤¾] LT",nextWeek:"dddd, LT",lastDay:"[à¤à¤¾à¤²] LT",lastWeek:"[माà¤à¥à¤²] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमधà¥à¤¯à¥",past:"%sपà¥à¤°à¥à¤µà¥",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/पहाà¤à¥|सà¤à¤¾à¤³à¥|दà¥à¤ªà¤¾à¤°à¥|सायà¤à¤à¤¾à¤³à¥|रातà¥à¤°à¥/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाà¤à¥"===t||"सà¤à¤¾à¤³à¥"===t?e:"दà¥à¤ªà¤¾à¤°à¥"===t||"सायà¤à¤à¤¾à¤³à¥"===t||"रातà¥à¤°à¥"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाà¤à¥":e<12?"सà¤à¤¾à¤³à¥":e<17?"दà¥à¤ªà¤¾à¤°à¥":e<20?"सायà¤à¤à¤¾à¤³à¥":"रातà¥à¤°à¥"},week:{dow:0,doy:6}})}(n(5093))},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?i[n][0]:i[n][1]}function n(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Ãlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Ãlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"YekÅem_DuÅem_SêÅem_ÃarÅem_PêncÅem_Ãn_Åemî".split("_"),weekdaysShort:"Yek_Du_Sê_Ãar_Pên_Ãn_Åem".split("_"),weekdaysMin:"Ye_Du_Sê_Ãa_Pê_Ãn_Åe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Ãro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var r=t.toLowerCase();return r.includes("w")||r.includes("m")?e+".":e+n(e)},week:{dow:1,doy:4}})}(n(5093))},6195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"sijeÄnja_veljaÄe_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sijeÄanj_veljaÄa_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[proÅ¡lu] [nedjelju] [u] LT";case 3:return"[proÅ¡lu] [srijedu] [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(5093))},6464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_bÅezen_duben_kvÄten_Äerven_Äervenec_srpen_záÅÃ_ÅÃjen_listopad_prosinec".split("_"),format:"ledna_února_bÅezna_dubna_kvÄtna_Äervna_Äervence_srpna_záÅÃ_ÅÃjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bÅe_dub_kvÄ_Ävn_Ävc_srp_záÅ_ÅÃj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bÅe/i,/^dub/i,/^kvÄ/i,/^(Ävn|Äerven$|Äervna)/i,/^(Ävc|Äervenec|Äervence)/i,/^srp/i,/^záÅ/i,/^ÅÃj/i,/^lis/i,/^pro/i],i=/^(leden|únor|bÅezen|duben|kvÄten|Äervenec|Äervence|Äerven|Äervna|srpen|záÅÃ|ÅÃjen|listopad|prosinec|led|úno|bÅe|dub|kvÄ|Ävn|Ävc|srp|záÅ|ÅÃj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(a(e)?"dny":"dnÃ"):i+"dny";case"M":return t||r?"mÄsÃc":"mÄsÃcem";case"MM":return t||r?i+(a(e)?"mÄsÃce":"mÄsÃců"):i+"mÄsÃci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|bÅezen|bÅezna|duben|dubna|kvÄten|kvÄtna|Äervenec|Äervence|Äerven|Äervna|srpen|srpna|záÅÃ|ÅÃjen|ÅÃjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bÅe|dub|kvÄ|Ävn|Ävc|srp|záÅ|ÅÃj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"nedÄle_pondÄlÃ_úterý_stÅeda_Ätvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_Ät_pá_so".split("_"),weekdaysMin:"ne_po_út_st_Ät_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zÃtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedÄli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve stÅedu v] LT";case 4:return"[ve Ätvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[vÄera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou nedÄli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou stÅedu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pÅed %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6571:function(e,t,n){!function(e){"use strict";var t={0:"-Ñм",1:"-Ñм",2:"-Ñм",3:"-Ñм",4:"-Ñм",5:"-Ñм",6:"-Ñм",7:"-Ñм",8:"-Ñм",9:"-Ñм",10:"-Ñм",12:"-Ñм",13:"-Ñм",20:"-Ñм",30:"-Ñм",40:"-Ñм",50:"-Ñм",60:"-Ñм",70:"-Ñм",80:"-Ñм",90:"-Ñм",100:"-Ñм"};e.defineLocale("tg",{months:{format:"ÑнваÑи_ÑевÑали_маÑÑи_апÑели_майи_иÑни_иÑли_авгÑÑÑи_ÑенÑÑбÑи_окÑÑбÑи_ноÑбÑи_декабÑи".split("_"),standalone:"ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ".split("_")},monthsShort:"Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"Ñ
2кÑанбе_дÑÑанбе_ÑеÑанбе_ÑоÑÑанбе_панҷÑанбе_Ò·ÑмÑа_Ñанбе".split("_"),weekdaysShort:"ÑÑб_дÑб_ÑÑб_ÑÑб_пÑб_Ò·Ñм_Ñнб".split("_"),weekdaysMin:"ÑÑ_дÑ_ÑÑ_ÑÑ_пÑ_ҷм_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ÐмÑӯз ÑоаÑи] LT",nextDay:"[ФаÑдо ÑоаÑи] LT",lastDay:"[ÐиÑӯз ÑоаÑи] LT",nextWeek:"dddd[и] [ҳаÑÑаи оÑнда ÑоаÑи] LT",lastWeek:"dddd[и] [ҳаÑÑаи гÑзаÑÑа ÑоаÑи] LT",sameElse:"L"},relativeTime:{future:"баÑди %s",past:"%s пеÑ",s:"ÑкÑанд ÑониÑ",m:"Ñк даÒиÒа",mm:"%d даÒиÒа",h:"Ñк ÑоаÑ",hh:"%d ÑоаÑ",d:"Ñк Ñӯз",dd:"%d Ñӯз",M:"Ñк моҳ",MM:"%d моҳ",y:"Ñк Ñол",yy:"%d Ñол"},meridiemParse:/Ñаб|ÑÑбҳ|Ñӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"Ñаб"===t?e<4?e:e+12:"ÑÑбҳ"===t?e:"Ñӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"Ñаб":e<11?"ÑÑбҳ":e<16?"Ñӯз":e<19?"бегоҳ":"Ñаб"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñм|Ñм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(5093))},6575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(5093))},6584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6618:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"Ñ
вилина":"Ñ
вилинÑ":"h"===r?n?"година":"годинÑ":e+" "+t
vendor: 7,606 bytes, line 2
2({ss:n?"ÑекÑнда_ÑекÑнди_ÑекÑнд":"ÑекÑндÑ_ÑекÑнди_ÑекÑнд",mm:n?"Ñ
вилина_Ñ
вилини_Ñ
вилин":"Ñ
вилинÑ_Ñ
вилини_Ñ
вилин",hh:n?"година_години_годин":"годинÑ_години_годин",dd:"денÑ_днÑ_днÑв",MM:"мÑÑÑÑÑ_мÑÑÑÑÑ_мÑÑÑÑÑв",yy:"ÑÑк_Ñоки_ÑокÑв"}[r],+e)}function r(e,t){var n={nominative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑеда_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑа".split("_"),accusative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑедÑ_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑÑ".split("_"),genitive:"недÑлÑ_понедÑлка_вÑвÑоÑка_ÑеÑеди_ÑеÑвеÑга_пâÑÑниÑÑ_ÑÑбоÑи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ÐвУÑ]\]) ?dddd/.test(t)?"accusative":/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"ÑÑÑнÑ_лÑÑого_беÑезнÑ_квÑÑнÑ_ÑÑавнÑ_ÑеÑвнÑ_липнÑ_ÑеÑпнÑ_веÑеÑнÑ_жовÑнÑ_лиÑÑопада_гÑÑднÑ".split("_"),standalone:"ÑÑÑенÑ_лÑÑий_беÑезенÑ_квÑÑенÑ_ÑÑавенÑ_ÑеÑвенÑ_липенÑ_ÑеÑпенÑ_веÑеÑенÑ_жовÑенÑ_лиÑÑопад_гÑÑденÑ".split("_")},monthsShort:"ÑÑÑ_лÑÑ_беÑ_квÑÑ_ÑÑав_ÑеÑв_лип_ÑеÑп_веÑ_жовÑ_лиÑÑ_гÑÑд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Ñ.",LLL:"D MMMM YYYY Ñ., HH:mm",LLLL:"dddd, D MMMM YYYY Ñ., HH:mm"},calendar:{sameDay:i("[СÑÐ¾Ð³Ð¾Ð´Ð½Ñ "),nextDay:i("[ÐавÑÑа "),lastDay:i("[ÐÑоÑа "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[ÐинÑлоÑ] dddd [").call(this);case 1:case 2:case 4:return i("[ÐинÑлого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s ÑомÑ",s:"декÑлÑка ÑекÑнд",ss:n,m:n,mm:n,h:"годинÑ",hh:n,d:"денÑ",dd:n,M:"мÑÑÑÑÑ",MM:n,y:"ÑÑк",yy:n},meridiemParse:/ноÑÑ|ÑанкÑ|днÑ|веÑоÑа/,isPM:function(e){return/^(днÑ|веÑоÑа)$/.test(e)},meridiem:function(e,t,n){return e<4?"ноÑÑ":e<12?"ÑанкÑ":e<17?"днÑ":"веÑоÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(5093))},6637:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_Äetrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._Äet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_Äe_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[vÄeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejÅ¡njo] [nedeljo] [ob] LT";case 3:return"[prejÅ¡njo] [sredo] [ob] LT";case 6:return"[prejÅ¡njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejÅ¡nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"Äez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6870:function(e,t,n){!function(e){"use strict";var t={1:"á¡",2:"á¢",3:"á£",4:"á¤",5:"á¥",6:"á¦",7:"á§",8:"á¨",9:"á©",0:"á "},n={"á¡":"1","á¢":"2","á£":"3","á¤":"4","á¥":"5","á¦":"6","á§":"7","á¨":"8","á©":"9","á ":"0"};e.defineLocale("km",{months:"áááá¶_áá»áááá_áá¸áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á
ááá·áá¶_áááá¼".split("_"),monthsShort:"áááá¶_áá»áááá_áá¸áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á
ááá·áá¶_áááá¼".split("_"),weekdays:"á¢á¶áá·ááá_á
áááá_á¢áááá¶á_áá»á_áááá ááááá·á_áá»ááá_áá
áá".split("_"),weekdaysShort:"á¢á¶_á
_á¢_á_ááá_áá»_á".split("_"),weekdaysMin:"á¢á¶_á
_á¢_á_ááá_áá»_á".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/áááá¹á|áááá¶á
/,isPM:function(e){return"áááá¶á
"===e},meridiem:function(e,t,n){return e<12?"áááá¹á":"áááá¶á
"}
2,calendar:{sameDay:"[ááááááá áááá] LT",nextDay:"[ááá¢áá áááá] LT",nextWeek:"dddd [áááá] LT",lastDay:"[áááá·ááá·á áááá] LT",lastWeek:"dddd [ááááá¶á ááá»á] [áááá] LT",sameElse:"L"},relativeTime:{future:"%sááá",past:"%sáá»á",s:"ááá»áááá¶ááá·áá¶áá¸",ss:"%d áá·áá¶áá¸",m:"áá½ááá¶áá¸",mm:"%d áá¶áá¸",h:"áá½ááááá",hh:"%d áááá",d:"áá½ááááá",dd:"%d áááá",M:"áá½ááá",MM:"%d áá",y:"áá½ááááá¶á",yy:"%d áááá¶á"},dayOfMonthOrdinalParse:/áá¸\d{1,2}/,ordinal:"áá¸%d",preparse:function(e){return e.replace(/[á¡á¢á£á¤á¥á¦á§á¨á©á ]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(5093))},6931:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"init",value:function(){Livewire.on("scroll:top",function(e){var t=e.selector,n=e.timeout,r=void 0===n?500:n,i=e.windowTop,a=void 0===i?0:i;if("window"===t)setTimeout(function(){window.scrollTo({top:a,behavior:"smooth"})},Number(r));else{var s=document.querySelector(t);setTimeout(function(){s.scrollTo({top:0,behavior:"smooth"})},Number(r))}})}}],(t=null)&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},6947:function(e,t,n){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},n={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"};e.defineLocale("ar-ps",{months:"ÙØ§ÙÙÙ Ø§ÙØ«Ø§ÙÙ_شباط_آذار_ÙÙØ³Ø§Ù_Ø£ÙÙØ§Ø±_ØØ²ÙراÙ_تÙ
ÙÙØ²_آب_Ø£ÙÙÙÙ_ØªØ´Ø±Ù Ø§ÙØ£ÙÙÙ_تشرÙÙ Ø§ÙØ«Ø§ÙÙ_ÙØ§ÙÙÙ Ø§ÙØ£ÙÙÙ".split("_"),monthsShort:"ÙÙ¢_شباط_آذار_ÙÙØ³Ø§Ù_Ø£ÙÙØ§Ø±_ØØ²ÙراÙ_تÙ
ÙÙØ²_آب_Ø£ÙÙÙÙ_ت١_ت٢_ÙÙ¡".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,n){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,function(e){return n[e]}).split("").reverse().join("").replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"Ø")},week:{dow:0,doy:6}})}(n(5093))},7071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},7075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_DiÄembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_DiÄ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"fâ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7088:function(e,t,n){!function(e){"use strict";var t={0:"-ÑÑ",1:"-ÑÑ",2:"-ÑÑ",3:"-ÑÑ",4:"-ÑÑ",5:"-ÑÑ",6:"-ÑÑ",7:"-ÑÑ",8:"-ÑÑ",9:"-ÑÑ",10:"-ÑÑ",20:"-ÑÑ",30:"-ÑÑ",40:"-ÑÑ",50:"-ÑÑ",60:"-ÑÑ",70:"-ÑÑ",80:"-ÑÑ",90:"-ÑÑ",100:"-ÑÑ"};e.defineLocale("kk",{months:"ÒаңÑаÑ_аÒпан_наÑÑÑз_ÑÓÑÑÑ_мамÑÑ_маÑÑÑм_ÑÑлде_ÑамÑз_ÒÑÑкүйек_Òазан_ÒаÑаÑа_желÑоÒÑан".split("_"),monthsShort:"Òаң_аÒп_наÑ_ÑÓÑ_мам_маÑ_ÑÑл_Ñам_ÒÑÑ_Òаз_ÒаÑ_жел".split("_"),weekdays:"жекÑенбÑ_дүйÑенбÑ_ÑейÑенбÑ_ÑÓÑÑенбÑ_бейÑенбÑ_жұма_ÑенбÑ".split("_"),weekdaysShort:"жек_дүй_Ñей_ÑÓÑ_бей_жұм_Ñен".split("_"),weekdaysMin:"жк_дй_Ñй_ÑÑ_бй_жм_Ñн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ÐүгÑн ÑаÒаÑ] LT",nextDay:"[ÐÑÑең ÑаÒаÑ] LT",nextWeek:"dddd [ÑаÒаÑ] LT",lastDay:"[ÐеÑе ÑаÒаÑ] LT",lastWeek:"[Ó¨Ñкен апÑанÑÒ£] dddd [ÑаÒаÑ] LT",sameElse:"L"},relativeTime:{future:"%s ÑÑÑнде",past:"%s бұÑÑн",s:"бÑÑнеÑе ÑекÑнд",ss:"%d ÑекÑнд",m:"бÑÑ Ð¼Ð¸Ð½ÑÑ",mm:"%d минÑÑ",h:"бÑÑ ÑаÒаÑ",hh:"%
2d ÑаÒаÑ",d:"бÑÑ ÐºÒ¯Ð½",dd:"%d күн",M:"бÑÑ Ð°Ð¹",MM:"%d ай",y:"бÑÑ Ð¶Ñл",yy:"%d жÑл"},dayOfMonthOrdinalParse:/\d{1,2}-(ÑÑ|ÑÑ)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(5093))},7160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"Õ°Õ¸ÖÕ¶Õ¾Õ¡ÖÕ«_ÖÕ¥Õ¿ÖÕ¾Õ¡ÖÕ«_Õ´Õ¡ÖÕ¿Õ«_Õ¡ÕºÖÕ«Õ¬Õ«_Õ´Õ¡ÕµÕ«Õ½Õ«_Õ°Õ¸ÖÕ¶Õ«Õ½Õ«_Õ°Õ¸ÖÕ¬Õ«Õ½Õ«_Ö
Õ£Õ¸Õ½Õ¿Õ¸Õ½Õ«_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥ÖÕ«_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«".split("_"),standalone:"Õ°Õ¸ÖÕ¶Õ¾Õ¡Ö_ÖÕ¥Õ¿ÖÕ¾Õ¡Ö_Õ´Õ¡ÖÕ¿_Õ¡ÕºÖÕ«Õ¬_Õ´Õ¡ÕµÕ«Õ½_Õ°Õ¸ÖÕ¶Õ«Õ½_Õ°Õ¸ÖÕ¬Õ«Õ½_Ö
Õ£Õ¸Õ½Õ¿Õ¸Õ½_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö".split("_")},monthsShort:"Õ°Õ¶Õ¾_ÖÕ¿Ö_Õ´ÖÕ¿_Õ¡ÕºÖ_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_Ö
Õ£Õ½_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿".split("_"),weekdays:"Õ¯Õ«ÖÕ¡Õ¯Õ«_Õ¥ÖÕ¯Õ¸ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¥ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¹Õ¸ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_Õ¸ÖÖÕ¢Õ¡Õ©_Õ·Õ¡Õ¢Õ¡Õ©".split("_"),weekdaysShort:"Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©".split("_"),weekdaysMin:"Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Õ©.",LLL:"D MMMM YYYY Õ©., HH:mm",LLLL:"dddd, D MMMM YYYY Õ©., HH:mm"},calendar:{sameDay:"[Õ¡ÕµÕ½Ö
Ö] LT",nextDay:"[Õ¾Õ¡Õ²Õ¨] LT",lastDay:"[Õ¥ÖÕ¥Õ¯] LT",nextWeek:function(){return"dddd [Ö
ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT"},lastWeek:function(){return"[Õ¡Õ¶ÖÕ¡Õ®] dddd [Ö
ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT"},sameElse:"L"},relativeTime:{future:"%s Õ°Õ¥Õ¿Õ¸",past:"%s Õ¡Õ¼Õ¡Õ»",s:"Õ´Õ« ÖÕ¡Õ¶Õ« Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶",ss:"%d Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶",m:"ÖÕ¸ÕºÕ¥",mm:"%d ÖÕ¸ÕºÕ¥",h:"ÕªÕ¡Õ´",hh:"%d ÕªÕ¡Õ´",d:"Ö
Ö",dd:"%d Ö
Ö",M:"Õ¡Õ´Õ«Õ½",MM:"%d Õ¡Õ´Õ«Õ½",y:"Õ¿Õ¡ÖÕ«",yy:"%d Õ¿Õ¡ÖÕ«"},meridiemParse:/Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡|Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡|ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶/,isPM:function(e){return/^(ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶)$/.test(e)},meridiem:function(e){return e<4?"Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡":e<12?"Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡":e<17?"ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡":"Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(Õ«Õ¶|ÖÕ¤)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-Õ«Õ¶":e+"-ÖÕ¤";default:return e}},week:{dow:1,doy:7}})}(n(5093))},7269:function(e){e.exports=function(){"use strict";const e=new Map;return{set(t,n,r){e.has(t)||e.set(t,new Map);const i=e.get(t);i.has(n)||0===i.size?i.set(n,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const r=e.get(t);r.delete(n),0===r.size&&e.delete(t)}}}()},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquà %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},7329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%
2d horas",d:"un dÃa",dd:"%d dÃas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7357:function(e,t,n){!function(e){"use strict";var t={1:"à§§",2:"২",3:"à§©",4:"৪",5:"à§«",6:"৬",7:"à§",8:"à§®",9:"৯",0:"০"},n={"à§§":"1","২":"2","à§©":"3","৪":"4","à§«":"5","৬":"6","à§":"7","à§®":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿_ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°_à¦
à¦à§à¦à§à¦¬à¦°_নà¦à§à¦®à§à¦¬à¦°_ডিসà§à¦®à§à¦¬à¦°".split("_"),monthsShort:"à¦à¦¾à¦¨à§_ফà§à¦¬à§à¦°à§_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦_à¦
à¦à§à¦à§_নà¦à§_ডিসà§".split("_"),weekdays:"রবিবার_সà§à¦®à¦¬à¦¾à¦°_মà¦à§à¦à¦²à¦¬à¦¾à¦°_বà§à¦§à¦¬à¦¾à¦°_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦°_শà§à¦à§à¦°à¦¬à¦¾à¦°_শনিবার".split("_"),weekdaysShort:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿_শà§à¦à§à¦°_শনি".split("_"),weekdaysMin:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹_শà§à¦à§à¦°_শনি".split("_"),longDateFormat:{LT:"A h:mm সমà§",LTS:"A h:mm:ss সমà§",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সমà§",LLLL:"dddd, D MMMM YYYY, A h:mm সমà§"},calendar:{sameDay:"[à¦à¦] LT",nextDay:"[à¦à¦à¦¾à¦®à§à¦à¦¾à¦²] LT",nextWeek:"dddd, LT",lastDay:"[à¦à¦¤à¦à¦¾à¦²] LT",lastWeek:"[à¦à¦¤] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরà§",past:"%s à¦à¦à§",s:"à¦à§à§à¦ সà§à¦à§à¦¨à§à¦¡",ss:"%d সà§à¦à§à¦¨à§à¦¡",m:"à¦à¦ মিনিà¦",mm:"%d মিনিà¦",h:"à¦à¦ à¦à¦¨à§à¦à¦¾",hh:"%d à¦à¦¨à§à¦à¦¾",d:"à¦à¦ দিন",dd:"%d দিন",M:"à¦à¦ মাস",MM:"%d মাস",y:"à¦à¦ বà¦à¦°",yy:"%d বà¦à¦°"},preparse:function(e){return e.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|à¦à§à¦°|সà¦à¦¾à¦²|দà§à¦ªà§à¦°|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"à¦à§à¦°"===t||"সà¦à¦¾à¦²"===t?e:"দà§à¦ªà§à¦°"===t?e>=3?e:e+12:"বিà¦à¦¾à¦²"===t||"সনà§à¦§à§à¦¯à¦¾"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"à¦à§à¦°":e<12?"সà¦à¦¾à¦²":e<15?"দà§à¦ªà§à¦°":e<18?"বিà¦à¦¾à¦²":e<20?"সনà§à¦§à§à¦¯à¦¾":"রাত"},week:{dow:0,doy:6}})}(n(5093))},7400:(e,t,n)=>{var r=n(5606),i=n(8287).hp;self,e.exports=function(){var e={4593:function(e,t){var n,r,i,o,l,u=function(e){for(var t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?(t.push(192|r>>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},c=function(e){for(var t=[],n=0;n<e.length;){var r=e[n++];r<128||(r<224?(r=(31&r)<<6,r|=63&e[n++]):r<240?(r=(15&r)<<12,r|=(63&e[n++])<<6,r|=63&e[n++]):(r=(7&r)<<18,r|=(63&e[n++])<<12,r|=(63&e[n++])<<6,r|=63&e[n++])),t.push(String.fromCharCode(r))}return t.join("")},d={};n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=function(e){for(var t=0,r=[],i=0|e.length/3;0<i--;){var a=(e[t]<<16)+(e[t+1]<<8)+e[t+2];t+=3,r.push(n.charAt(63&a>>18)),r.push(n.charAt(63&a>>12)),r.push(n.charAt(63&a>>6)),r.push(n.charAt(63&a))}return 2==e.length-t?(a=(e[t]<<16)+(e[t+1]<<8),r.push(n.charAt(63&a>>18)),r.push(n.charAt(63&a>>12)),r.push(n.charAt(63&a>>6)),r.push("=")):1==e.length-t&&(a=e[t]<<16,r.push(n.charAt(63&a>>18)),r.push(n.charAt(63&a>>12)),r.push("==")),r.join("")},i=function(){for(var e=[],t=0;t<n.length;
vendor: 13,951 bytes, line 2
2++t)e[n.charCodeAt(t)]=t;return e["=".charCodeAt(0)]=0,e}(),o=function(e){for(var t=0,n=[],r=0|e.length/4;0<r--;){var a=(i[e.charCodeAt(t)]<<18)+(i[e.charCodeAt(t+1)]<<12)+(i[e.charCodeAt(t+2)]<<6)+i[e.charCodeAt(t+3)];n.push(255&a>>16),n.push(255&a>>8),n.push(255&a),t+=4}return n&&("="==e.charAt(t-2)?(n.pop(),n.pop()):"="==e.charAt(t-1)&&n.pop()),n},l={encode:function(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t},decode:function(e){for(var t=0;t<s.length;++t)a[t]=String.fromCharCode(a[t]);return a.join("")}},d.decodeArray=function(e){var t=o(e);return new Uint8Array(t)},d.encodeASCII=function(e){var t=l.encode(e);return r(t)},d.decodeASCII=function(e){var t=o(e);return l.decode(t)},d.encode=function(e){var t=u(e);return r(t)},d.decode=function(e){var t=o(e);return c(t)},t.decode=d.decode,t.decodeArray=d.decodeArray,t.encode=d.encode,t.encodeASCII=d.encodeASCII},452:function(e,t){!function(e){"use strict";var t={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},n=function(e){var n=e;return t.hasOwnProperty(e)&&(n=t[e]),String.fromCharCode(n)},r=15,i=32,a={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},s={17:2,18:4,21:6,22:8,23:10,19:13,20:15},o={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},l={25:2,26:4,29:6,30:8,31:10,27:13,28:15},u=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],c={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}},d=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},f=function(e,t,n,r,i){this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1};f.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var h=function(e,t,n,r,i,a){this.uchar=e||" ",this.penState=new f(t,n,r,i,a)};h.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var m=function(){this.chars=[];for(var e=0;e<i;e++)this.chars.push(new h);this.pos=0,this.currPenState=new f};m.prototype={equals:function(e){for(var t=!0,n=0;n<i;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<i;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;t<i;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(c.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>i&&(c.log("ERROR","Too large cursor position "+this.pos),this.pos=i)},moveCursor:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){e>=144&&this.backSpace();var t=n(e);this.pos>=i?c.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t<i;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,n=0;n<i;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}};var p=function(){this.rows=[];for(var e=0;e<r;e++)this.rows.push(new m);this.currRow=14,this.nrRollUpRows=null,this.reset()};p.prototype={reset:function(){for(var e=0;e<r;e++)this.rows[e].clear();this.currRow=14},equals:function(e){for(var t=!0,n=0;n<r;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<r;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;t<r;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(e){this.rows[this.currRow].insertChar(e)},setPen:function(e){this.rows[this.currRow].setPenStyles(e)},moveCursor:function(e){this.rows[this.currRow].moveCursor(e)},setCursor:function(e){c.log("INFO","setCursor: "+e),this.rows[this.currRow].setCursor(e)},setPAC:function(e){c.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var n=this.rows[this.currRow];if(null!==e.indent){var r=e.indent,i=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[i].penState.foreground}var a={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(a)},setBkgData:function(e){c.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null!==this.nrRollUpRows){c.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),c.log("INFO","Rolling up")}else c.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(e){e=e||!1;for(var t=[],n="",i=-1,a=0;a<r;a++){var s=this.rows[a].getTextString();s&&(i=a+1,e?t.push("Row "+i+': "'+s+'"'):t.push(s.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};var g=function(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new p,this.nonDisplayedMemory=new p,this.lastOutputScreen=new p,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};g.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,c.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";c.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(c.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){c.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){c.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){c.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){c.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){c.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){c.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){c.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){c.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){c.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){c.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){c.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(c.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,c.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){c.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}c.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=c.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};var y=function(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new g(1,t),new g(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};y.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,i,a=!1;this.lastTime=e,c.setTime(e);for(var s=0;s<t.length;s+=2)r=127&t[s],i=127&t[s+1],r>=16&&r<=31&&r===this.lastCmdA&&i===this.lastCmdB?(this.lastCmdA=null,this.lastCmdB=null,c.log("DEBUG","Repeated command ("+d([r,i])+") is dropped")):0!==r||0!==i?(c.log("DATA","["+d([t[s],t[s+1]])+"] -> ("+d([r,i])+")"),(n=this.parseCmd(r,i))||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),n||(a=this.parseChars(r,i))&&(this.currChNr&&this.currChNr>=0?this.channels[this.currChNr-1].insertChars(a):c.log("WARNING","No channel found yet. TEXT-MODE?")),n?this.dataCounters.cmd+=2:a?this.dataCounters.char+=2:(this.dataCounters.other+=2,c.log("WARNING","Couldn't parse cleaned data "+d([r,i])+" orig: "+d([t[s],t[s+1]])))):this.dataCounters.padding+=2},parseCmd:function(e,t){var n;if(!((20===e||21===e||28===e||29===e)&&32<=t&&t<=47||(23===e||31===e)&&33<=t&&t<=35))return!1;n=20===e||21===e||23===e?1:2;var r=this.channels[n-1];return 20===e||21===e||28===e||29===e?32===t?r.cc_RCL():33===t?r.cc_BS():34===t?r.cc_AOF():35===t?r.cc_AON():36===t?r.cc_DER():37===t?r.cc_RU(2):38===t?r.cc_RU(3):39===t?r.cc_RU(4):40===t?r.cc_FON():41===t?r.cc_RDC():42===t?r.cc_TR():43===t?r.cc_RTD():44===t?r.cc_EDM():45===t?r.cc_CR():46===t?r.cc_ENM():47===t&&r.cc_EOC():r.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if((n=17===e?1:2)!==this.currChNr)return c.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(t),c.log("DEBUG","MIDROW ("+d([e,t])+")"),this.lastCmdA=e,this.lastCmdB=t,!0}return!1},parsePAC:function(e,t){var n,r;if(!((17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127||(16===e||24===e)&&64<=t&&t<=95))return!1;n=e<=23?1:2,r=64<=t&&t<=95?1===n?a[e]:o[e]:1===n?s[e]:l[e];var i=this.interpretPAC(r,t);return this.channels[n-1].setPAC(i),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>
vendor: 16,700 bytes, line 2
295?t-96:t-64,r.underline=!(1&~n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var r,i=null,a=null,s=null;if(e>=25?(i=2,s=e-8):(i=1,s=e),17<=s&&s<=19?(r=17===s?t+80:18===s?t+112:t+144,c.log("INFO","Special char '"+n(r)+"' in channel "+i),a=[r],this.lastCmdA=e,this.lastCmdB=t):32<=e&&e<=127&&(a=0===t?[e]:[e,t],this.lastCmdA=null,this.lastCmdB=null),a){var o=d(a);c.log("DEBUG","Char codes = "+o.join(","))}return a},parseBackgroundAttributes:function(e,t){var n,r,i;return((16===e||24===e)&&32<=t&&t<=47||(23===e||31===e)&&45<=t&&t<=47)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=u[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,this.channels[i-1].setBkgData(n),this.lastCmdA=e,this.lastCmdB=t,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}},e.logger=c,e.PenState=f,e.CaptionScreen=p,e.Cea608Parser=y,e.findCea608Nalus=function(e,t,n){for(var r=0,i=t,a=[],s=function(e,t,n,r){if(4!==e||t<8)return null;var i=n.getUint8(r),a=n.getUint16(r+1),s=n.getUint32(r+3),o=n.getUint8(r+7);return 181==i&&49==a&&1195456820==s&&3==o};i<t+n;){if(r=e.getUint32(i),6==(31&e.getUint8(i+4)))for(var o=i+5,l=-1;o<i+4+r-1;){l=0;for(var u=255;255===u;)l+=u=e.getUint8(o),o++;var c=0;for(u=255;255===u;)c+=u=e.getUint8(o),o++;s(l,c,e,o)&&a.push([o,c]),o+=c}i+=r+4}return a},e.extractCea608DataFromRange=function(e,t){var n=t[0],r=[[],[]];n+=8;var i=31&e.getUint8(n);n+=2;for(var a=0;a<i;a++){var s=e.getUint8(n),o=4&s,l=3&s;n++;var u=e.getUint8(n);n++;var c=e.getUint8(n);n++,o&&(127&u)+(127&c)!=0&&(0===l?(r[0].push(u),r[0].push(c)):1===l&&(r[1].push(u),r[1].push(c)))}return r}}(t)},8416:function(e,t,n){"use strict";var r=n(1139),i=n(5448),a=n(6398),s=n(2032),o=(n(5530),"undefined"!=typeof window&&window||n.g),l=o.dashjs;l||(l=o.dashjs={}),l.MediaPlayer=r.Z,l.FactoryMaker=i.Z,l.Debug=a.Z,l.Version=(0,s.e)()},6398:function(e,t,n){"use strict";var r=n(5595),i=n(8512),a=n(5448),s=1,o=2,l=3,u=4,c=5;function d(e){e=e||{};var t,n,a,d,f=this.context,h=(0,r.Z)(f).getInstance(),m=e.settings,p=[];function g(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[s,this].concat(t))}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[o,this].concat(t))}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[l,this].concat(t))}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[u,this].concat(t))}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[c,this].concat(t))}function T(e,t){var r="",s=null;n&&(s=(new Date).getTime(),r+="["+(s-d)+"]"),a&&t&&t.getClassName&&(r+="["+t.getClassName()+"]",t.getType&&(r+="["+t.getType()+"]")),r.length>0&&(r+=" ");for(var o=arguments.length,l=new Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];Array.apply(null,l).forEach(function(e){r+=e+" "}),p[e]&&m&&m.get().debug.logLevel>=e&&p[e](r),m&&m.get().debug.dispatchEvent&&h.trigger(i.Z.LOG,{message:r,level:e})}return t={getLogger:function(e){return{fatal:y.bind(e),error:_.bind(e),warn:v.bind(e),info:E.bind(e),debug:b.bind(e)}},setLogTimestampVisible:function(e){n=e},setCalleeNameVisible:function(e){a=e}},n=!0,a=!0,d=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(p[s]=g(window.console.error),p[o]=g(window.console.error),p[l]=g(window.console.warn),p[u]=g(window.console.info),p[c]=g(window.console.debug)),t}d.__dashjs_factory_name="Debug";var f=a.Z.getSingletonFactory(d);f.LOG_LEVEL_NONE=0,f.LOG_LEVEL_FATAL=s,f.LOG_LEVEL_ERROR=o,f.LOG_LEVEL_WARNING=l,f.LOG_LEVEL_INFO=u,f.LOG_LEVEL_DEBUG=c,a.Z.updateSingletonFactory(d.__dashjs_factory_name,f),t.Z=f},5595:function(e,t,n){"use strict";var r=n(5448),i=n(8825);function a(){var e={};function t(t,n,r){var i=-1;return e[t]?(e[t].some(function(e,t){if(e&&e.callback===n&&(!r||r===e.scope))return i=t,!0}),i):i}var n={on:function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n)throw new Error("event type cannot be null or undefined");if(!r||"function"!=typeof r)throw new Error("listener must be a function: "+r);var s=a.priority||0;if(!(t(n,r,i)>=0)){e[n]=e[n]||[];var o={callback:r,scope:i,priority:s};i&&i.getStreamId&&(o.streamId=i.getStreamId()),i&&i.getType&&(o.mediaType=i.getType()),a&&a.mode&&(o.mode=a.mode);var l=e[n].some(function(t,r){if(t&&s>t.priority)return e[n].splice(r,0,o),!0});l||e[n].push(o)}},off:function(n,r,i){if(n&&r&&e[n]){var a=t(n,r,i);a<0||(e[n][a]=null)}},trigger:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&e[t]){if((n=n||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");n.type=t,r.streamId&&(n.streamId=r.streamId),r.mediaType&&(n.mediaType=r.mediaType),e[t].filter(function(e){return!(!e||r.streamId&&e.streamId&&e.streamId!==r.streamId||r.mediaType&&e.mediaType&&e.mediaType!==r.mediaType||r.mode&&e.mode&&e.mode!==r.mode||!e.mode&&r.mode&&r.mode===i.Z.EVENT_MODE_ON_RECEIVE)}).forEach(function(e){return e&&e.callback.call(e.scope,n)})}},reset:function(){e={}}};return n}a.__dashjs_factory_name="EventBus";var s=r.Z.getSingletonFactory(a);s.EVENT_PRIORITY_LOW=0,s.EVENT_PRIORITY_HIGH=5e3,r.Z.updateSingletonFactory(a.__dashjs_factory_name,s),t.Z=s},5448:function(e,t){"use strict";var n=function(){var e,t=[],n={},r={};function i(e,n){for(var r in t){var i=t[r];if(i.context===e&&i.name===n)return i.instance}return null}function a(e,t){return t[e]}function s(e,t,n){e in n&&(n[e]=t)}function o(t,n,r){var i,a=t.__dashjs_factory_name,s=n[a];if(s){var o=s.instance;if(!s.override)return o.apply({context:n,factory:e},r);for(var l in i=t.apply({context:n},r),o=o.apply({context:n,factory:e,parent:i},r))i.hasOwnProperty(l)&&(i[l]=o[l])}else i=t.apply({context:n},r);return i.getClassName=function(){return a},i}return e={extend:function(e,t,n,r){!r[e]&&t&&(r[e]={instance:t,override:n})},getSingletonInstance:i,setSingletonInstance:function(e,n,r){for(var i in t){var a=t[i];if(a.context===e&&a.name===n)return void(t[i].instance=r)}t.push({name:n,context:e,instance:r})},deleteSingletonInstances:function(e){t=t.filter(function(t){return t.context!==e})},getSingletonFactory:function(e){var r=a(e.__dashjs_factory_name,n);return r||(r=function(n){var r;return void 0===n&&(n={}),{getInstance:function(){return r||(r=i(n,e.__dashjs_factory_name)),r||(r=o(e,n,arguments),t.push({name:e.__dashjs_factory_name,context:n,instance:r})),r}}},n[e.__dashjs_factory_name]=r),r},getSingletonFactoryByName:function(e){return a(e,n)},updateSingletonFactory:function(e,t){s(e,t,n)},getClassFactory:function(e){var t=a(e.__dashjs_factory_name,r);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return o(e,t,arguments)}}},r[e.__dashjs_factory_name]=t),t},getClassFactoryByName:function(e){return a(e,r)},updateClassFactory:function(e,t){s(e,t,r)}},e}();t.Z=n},1264:function(e,t,n){"use strict";var r=n(5448),i=n(703),a=n(6398),s=n(3393),o=n(7855),l=n(5595),u=n(8512);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){var e,t,n=this.context,r=(0,l.Z)(n).getInstance(),f={"streaming.delay.liveDelay":u.Z.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":u.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":u.Z.SETTING_UPDATED_CATCHUP_ENABLED,"streaming.liveCatchup.playbackRate.min":u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,"streaming.liveCatchup.playbackRate.max":u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX},h={debug:{logLevel:a.Z.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,liveUpdateTimeThresholdInMilliseconds:0,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,eventControllerRefreshDelay:100,enableManifestDurationMismatchFix:!0,parseInbandPrft:!1,enableManifestTimescaleMismatchFix:!1,capabilities:{filterUnsupportedEssentialProperties:!0,useMediaCapabilitiesApi:!1},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:!0,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,stableBufferTime:12,longFormContentDurationThreshold:600,stallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1,useChangeTypeForTrackSwitch:!0,mediaSourceDurationInfinity:!0,resetSourceBuffersForTrackSwitch:!1},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroundSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"}},scheduling:{defaultTimeout:500,lowLatencyTimeout:0,scheduleWhilePaused:!0},text:{defaultEnabled:!0,dispatchForManualRendering:!1,extendSegmentedCues:!0,imsc:{displayForcedOnlyMode:!1,enableRollUp:!0},webvtt:{customRenderingEnabled:!1}},liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN},playbackBufferMin:.5,enabled:null,mode:s.Z.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},saveLastMediaSettingsForCurrentStreamingSession:!0,cacheLoadThresholds:{video:50,audio:5},trackSwitchMode:{audio:s.Z.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:s.Z.TRACK_SWITCH_MODE_NEVER_REPLACE},selectionModeForInitialTrack:s.Z.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,fragmentRequestTimeout:2e4,fragmentRequestProgressTimeout:-1,manifestRequestTimeout:1e4,retryIntervals:(e={},d(e,o.w.MPD_TYPE,500),d(e,o.w.XLINK_EXPANSION_TYPE,500),d(e,o.w.MEDIA_SEGMENT_TYPE,1e3),d(e,o.w.INIT_SEGMENT_TYPE,1e3),d(e,o.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),d(e,o.w.INDEX_SEGMENT_TYPE,1e3),d(e,o.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE,1e3),d(e,o.w.LICENSE,1e3),d(e,o.w.OTHER_TYPE,1e3),d(e,"lowLatencyReductionFactor",10),e),retryAttempts:(t={},d(t,o.w.MPD_TYPE,3),d(t,o.w.XLINK_EXPANSION_TYPE,1),d(t,o.w.MEDIA_SEGMENT_TYPE,3),d(t,o.w.INIT_SEGMENT_TYPE,3),d(t,o.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),d(t,o.w.INDEX_SEGMENT_TYPE,3),d(t,o.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE,3),d(t,o.w.LICENSE,3),d(t,o.w.OTHER_TYPE,3),d(t,"lowLatencyMultiplyFactor",5),t),abr:{movingAverageMethod:s.Z.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:s.Z.ABR_STRATEGY_DYNAMIC,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},abrRulesParameters:{abandonRequestsRule:{graceTimeThreshold:500,abandonMultiplier:1.8,minLengthToAverage:5}},bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0},fetchThroughputCalculationMode:s.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING},cmcd:{enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:s.Z.CMCD_MODE_QUERY,enabledKeys:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"]},cmsd:{enabled:!1,abr:{applyMb:!1,etpWeightRatio:0}}},errors:{recoverAttempts:{mediaErrorDecode:5}}},m=i.Z.clone(h);function p(e,t,n){for(var a in e)e.hasOwnProperty(a)&&(t.hasOwnProperty(a)?"object"!==c(e[a])||e[a]instanceof Array||null===e[a]?(t[a]=i.Z.clone(e[a]),f[n+a]&&r.trigger(f[n+a])):p(e[a],t[a],n.slice()+a+"."):console.error("Settings parameter "+n+a+" is not supported"))}return{get:function(){return m},update:function(e){"object"===c(e)&&p(e,m,"")},reset:function(){m=i.Z.clone(h)}}}f.__dashjs_factory_name="Settings";var h=r.Z.getSingletonFactory(f);t.Z=h},703:function(e,t,n){"use strict";var r=n(3875),i=n.n(r),a=n(1067);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"mixin",value:function(t,n,r){var i,a={};if(t)for(var o in n)n.hasOwnProperty(o)&&(i=n[o],o in t&&(t[o]===i||o in a&&a[o]===i)||("object"===s(t[o])&&null!==t[o]?t[o]=e.mixin(t[o],i,r):t[o]=r(i)));return t}},{key:"clone",value:function(t){if(!t||"object"!==s(t))return t;var n;if(t instanceof Array){n=[];for(var r=0,i=t.length;r<i;++r)r in t&&n.push(e.clone(t[r]))}else n={};return e.mixin(n,t,e.clone)}},{key:"addAditionalQueryParameterToUrl",value:function(e,t){try{if(!t||0===t.length)return e;var n=new URL(e);return t.forEach(function(e){e.key&&e.value&&n.searchParams.set(e.key,e.value)}),n.href}catch(t){return e}}},{key:"parseHttpHeaders",value:function(e){var t={};if(!e)return t;for(var n=e.trim().split("\r\n"),r=0,i=n.length;r<i;r++){var a=n[r],s=a.indexOf(": ");s>0&&(t[a.substring(0,s)]=a.substring(s+2))}return t}},{key:"generateUuid",value:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}},{key:"generateHashCode",value:function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}},{key:"getRelativeUrl",value:function(e,t){try{var n=new URL(e),r=new URL(t);if(n.protocol=r.protocol,n.origin!==r.origin)return t;var a=i().relative(n.pathname.substr(0,n.pathname.lastIndexOf("/")),r.pathname.substr(0,r.pathname.lastIndexOf("/"))),s=0===a.length?1:0;return a+=r.pathname.substr(r.pathname.lastIndexOf("/")+s,r.pathname.length-1),r.pathname.length<a.length?r.pathname:a}catch(e){return t}}},{key:"parseUserAgent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var t=null===e&&"undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";return(0,a.UAParser)(t)}catch(e){return{}}}},{key:"stringHasProtocol",value:function(e){return/(http(s?)):\/\//i.test(e)}}],t&&o(e,t),e}();t.Z=l},2032:function(e,t,n){"use strict";function r(){return"4.7.4"}n.d(t,{e:function(){return r}})},2230:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}])&&n(e.prototype,t),e}();t.Z=r},4351:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(t);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return a(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this)).ATTEMPT_BACKGROUND_SYNC="attemptBackgroun
2dSync",e.BUFFERING_COMPLETED="bufferingCompleted",e.BUFFER_CLEARED="bufferCleared",e.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",e.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",e.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",e.CMSD_STATIC_HEADER="cmsdStaticHeader",e.CURRENT_TRACK_CHANGED="currentTrackChanged",e.DATA_UPDATE_COMPLETED="dataUpdateCompleted",e.INBAND_EVENTS="inbandEvents",e.INITIAL_STREAM_SWITCH="initialStreamSwitch",e.INIT_FRAGMENT_LOADED="initFragmentLoaded",e.INIT_FRAGMENT_NEEDED="initFragmentNeeded",e.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",e.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",e.LOADING_COMPLETED="loadingCompleted",e.LOADING_PROGRESS="loadingProgress",e.LOADING_DATA_PROGRESS="loadingDataProgress",e.LOADING_ABANDONED="loadingAborted",e.MANIFEST_UPDATED="manifestUpdated",e.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",e.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",e.QUOTA_EXCEEDED="quotaExceeded",e.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",e.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",e.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD="serviceLocationBlacklistAdd",e.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",e.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD="serviceLocationLocationBlacklistAdd",e.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED="serviceLocationLocationBlacklistChanged",e.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",e.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",e.SOURCE_BUFFER_ERROR="sourceBufferError",e.STREAMS_COMPOSED="streamsComposed",e.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",e.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",e.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",e.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",e.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",e.URL_RESOLUTION_FAILED="urlResolutionFailed",e.VIDEO_CHUNK_RECEIVED="videoChunkReceived",e.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",e.XLINK_ELEMENT_LOADED="xlinkElementLoaded",e.XLINK_READY="xlinkReady",e.SEEK_TARGET="seekTarget",e.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",e.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",e.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",e.SETTING_UPDATED_PLAYBACK_RATE_MIN="settingUpdatedPlaybackRateMin",e.SETTING_UPDATED_PLAYBACK_RATE_MAX="settingUpdatedPlaybackRateMax",e}return o}(n(8342).Z);t.Z=o},8512:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(l,e);var t,n,r=(t=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=o(t);if(n){var i=o(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return s(this,e)});function l(){return i(this,l),r.apply(this,arguments)}return l}(n(4351).Z),u=new l;t.Z=u},8342:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}])&&n(e.prototype,t),e}();t.Z=r},9326:function(e,t,n){"use strict";var r=n(3186),i=n(7855),a=n(5448),s=n(8825),o=n(7387),l=n(1553);function u(e){var t,n,a,u,c,d=(e=e||{}).eventBus,f=e.debug,h=e.urlUtils,m=e.type,p=e.streamInfo,g=e.segmentsController,y=e.timelineConverter,_=e.baseURLController;function v(){return m}function E(){a=null}function b(e,t,n){var r,i,a=_.resolve(n.path),s={};return a&&t!==a.url&&h.isRelative(t)?(r=a.url,i=a.serviceLocation,s=a.queryParams,t&&(r=h.resolve(t,r))):r=t,!h.isRelative(r)&&(e.url=r,e.serviceLocation=i,e.queryParams=s,!0)}function T(e,t){if(null==t)return null;var n=new r.Z,a=t.representation,s=a.adaptation.period.mpd.manifest.Period_asArray[a.adaptation.period.index].AdaptationSet_asArray[a.adaptation.index].Representation_asArray[a.index].bandwidth,l=t.media;return l=(0,o.vi)(l,"Number",t.replacementNumber),l=(0,o.vi)(l,"Time",t.replacementTime),l=(0,o.vi)(l,"Bandwidth",s),l=(0,o.Aj)(l,a.id),l=(0,o.eR)(l),n.mediaType=v(),n.type=i.w.MEDIA_SEGMENT_TYPE,n.range=t.mediaRange,n.startTime=t.presentationStartTime,n.mediaStartTime=t.mediaStartTime,n.duration=t.duration,n.timescale=a.timescale,n.availabilityStartTime=t.availabilityStartTime,n.availabilityEndTime=t.availabilityEndTime,n.availabilityTimeComplete=a.availabilityTimeComplete,n.wallStartTime=t.wallStartTime,n.quality=a.index,n.index=t.index,n.mediaInfo=e,n.adaptationIndex=a.adaptation.index,n.representationId=a.id,b(n,l,a)?n:void 0}function S(e,t,r){var i=null;if(!t||!t.segmentInfoType)return i;var s=g.getSegmentByTime(t,r);return s&&(a=s,n.debug("Index for time "+r+" is "+s.index),i=T(e,s)),i}function w(e,t,r){var i=null,s=g.getSegmentByIndex(t,r,a?a.mediaStartTime:-1);if(s)i=T(e,s),a=s;else{if(u&&!c)return n.debug(v()+" No segment found at index: "+r+". Wait for next loop"),null;c=!0}return i}function L(){n.debug("Dynamic stream complete"),c=!0}return t={getCurrentIndex:function(){return a?a.index:-1},getInitRequest:function(e,t){return t?function(e,t,n){var a=new r.Z,s=t.adaptation.period,l=s.start;if(a.mediaType=n,a.type=i.w.INIT_SEGMENT_TYPE,a.range=t.range,a.availabilityStartTime=y.calcAvailabilityStartTimeFromPresentationTime(l,t,u),a.availabilityEndTime=y.calcAvailabilityEndTimeFromPresentationTime(l+s.duration,t,u),a.quality=t.index,a.mediaInfo=e,a.representationId=t.id,b(a,t.initialization,t))return a.url=(0,o.vi)(a.url,"Bandwidth",t.bandwidth),a}(e,t,v()):null},getNextSegmentRequest:function(e,t){return t&&t.segmentInfoType?w(e,t,a?a.index+1:0):null},getNextSegmentRequestIdempotent:function(e,t){var n=a?a.index+1:0,r=g.getSegmentByIndex(t,n,a?a.mediaStartTime:-1);return r?T(e,r):null},getSegmentRequestForTime:S,getStreamId:function(){return p.id},getStreamInfo:function(){return p},getType:v,getValidTimeAheadOfTargetTime:function(e,t,n,r){try{if(isNaN(e)||!t||!n)return NaN;if(e<0&&(e=0),isNaN(r)&&(r=.5),S(t,n,e))return e;if(n.adaptation.period.start+n.adaptation.period.duration<e)return NaN;for(var i=isFinite(n.adaptation.period.duration)?n.adaptation.period.start+n.adaptation.period.duration:e+30,a=Math.min(e+r,i),s=NaN,o=null;a<=i;){var l=null;if(a<=i&&(l=S(t,n,a)),l){s=a,o=l;break}a+=r}if(o){var u=o.startTime+o.duration;return e>o.startTime&&u-e>r?e:!isNaN(o.startTime)&&e<o.startTime&&s>o.startTime?o.startTime+.001:Math.min(u-r,s)}return s}catch(e){return NaN}},initialize:function(e){u=e,c=!1,g.initialize(e)},isLastSegmentRequested:function(e,t){if(!e||!a)return!1;if(c)return!0;
2if(!isFinite(e.adaptation.period.duration))return!1;if(a.presentationStartTime+a.duration>t)return!1;if(e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.numberOfSegments)&&!isNaN(a.index)&&a.index>=e.mediaFinishedInformation.numberOfSegments-1){if(!u||e.segmentInfoType===l.Z.SEGMENT_TEMPLATE)return!0;if(u&&e.segmentInfoType===l.Z.SEGMENT_LIST&&e.adaptation.period.nextPeriodId)return!0}return!!(u&&e.adaptation.period.nextPeriodId&&e.segmentInfoType===l.Z.SEGMENT_TIMELINE&&e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&a&&!isNaN(a.mediaStartTime)&&!isNaN(a.duration)&&a.mediaStartTime+a.duration>=e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},repeatSegmentRequest:function(e,t){return t&&t.segmentInfoType?w(e,t,a?a.index:0):null},reset:function(){E(),d.off(s.Z.DYNAMIC_TO_STATIC,L,t)}},n=f.getLogger(t),E(),d.on(s.Z.DYNAMIC_TO_STATIC,L,t),t}u.__dashjs_factory_name="DashHandler",t.Z=a.Z.getClassFactory(u)},1553:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.ESSENTIAL_PROPERTY_ASARRAY="EssentialProperty_asArray",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.SUPPLEMENTAL_PROPERTY_ASARRAY="SupplementalProperty_asArray",this.INBAND_EVENT_STREAM="InbandEventStream",this.PRODUCER_REFERENCE_TIME="ProducerReferenceTime",this.INBAND="inband",this.TYPE="type",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.VIEWPOINT_ASARRAY="Viewpoint_asArray",this.ROLE_ASARRAY="Role_asArray",this.REPRESENTATION_ASARRAY="Representation_asArray",this.PRODUCERREFERENCETIME_ASARRAY="ProducerReferenceTime_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.STATIC="static",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="co
2decPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.DVB_URL="dvb:url",this.DVB_MIMETYPE="dvb:mimeType",this.DVB_FONTFAMILY="dvb:fontFamily",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SERVICE_DESCRIPTION="ServiceDescription",this.SERVICE_DESCRIPTION_SCOPE="Scope",this.SERVICE_DESCRIPTION_LATENCY="Latency",this.SERVICE_DESCRIPTION_PLAYBACK_RATE="PlaybackRate",this.SERVICE_DESCRIPTION_OPERATING_QUALITY="OperatingQuality",this.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH="OperatingBandwidth",this.PATCH_LOCATION="PatchLocation",this.PATCH_LOCATION_AS_ARRAY="PatchLocation_asArray",this.LOCATION="Location",this.LOCATION_AS_ARRAY="Location_asArray",this.PUBLISH_TIME="publishTime",this.ORIGINAL_PUBLISH_TIME="originalPublishTime",this.ORIGINAL_MPD_ID="mpdId",this.WALL_CLOCK_TIME="wallClockTime",this.PRESENTATION_TIME="presentationTime",this.LABEL="Label",this.GROUP_LABEL="GroupLabel",this.CONTENT_STEERING="ContentSteering",this.CONTENT_STEERING_AS_ARRAY="ContentSteering_asArray",this.DEFAULT_SERVICE_LOCATION="defaultServiceLocation",this.QUERY_BEFORE_START="queryBeforeStart",this.CLIENT_REQUIREMENT="clientRequirement",this.TTL="ttl",this.CONTENT_STEERING_RESPONSE={VERSION:"VERSION",TTL:"TTL",RELOAD_URI:"RELOAD-URI",PATHWAY_PRIORITY:"PATHWAY-PRIORITY",PATHWAY_CLONES:"PATHWAY-CLONES",BASE_ID:"BASE-ID",ID:"ID",URI_REPLACEMENT:"URI-REPLACEMENT",HOST:"HOST",PARAMS:"PARAMS"},this.PRODUCER_REFERENCE_TIME_TYPE={ENCODER:"encoder",CAPTURED:"captured",APPLICATION:"application"},this.SEGMENT_ALIGNMENT="segmentAlignment",this.SUB_SEGMENT_ALIGNMENT="subsegmentAlignment"}}])&&n(e.prototype,t),e}());t.Z=r},7802:function(e,t,n){"use strict";var r=n(5448),i=n(1724),a=n(3636),s=n(1736),o=n(5246);function l(e){e=e||{};var t,n,r=this.context,l=e.dashConstants,u=e.type,c=e.segmentBaseController;function d(e){return e?e.segments?n[l.SEGMENT_BASE]:n[e.segmentInfoType]:null}return t={initialize:function(t){n[l.SEGMENT_TIMELINE]=(0,i.Z)(r).create(e,t),n[l.SEGMENT_TEMPLATE]=(0,a.Z)(r).create(e,t),n[l.SEGMENT_LIST]=(0,s.Z)(r).create(e,t),n[l.SEGMENT_BASE]=(0,o.Z)(r).create(e,t)},updateInitData:function(e,t){return t?Promise.resolve():c.getSegmentBaseInitSegment({representation:e,mediaType:u})},updateSegmentData:function(e,t){return t?Promise.resolve():c.getSegmentList({mimeType:e.mimeType,representation:e,mediaType:u})},getSegmentByIndex:function(e,t,n){var r=d(e);return r?r.getSegmentByIndex(e,t,n):null},getSegmentByTime:function(e,t){var n=d(e);return n?n.getSegmentByTime(e,t):null},getMediaFinishedInformation:function(e){var t=d(e);return t?t.getMediaFinishedInformation(e):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},n={},t}l.__dashjs_factory_name="SegmentsController";var u=r.Z.getClassFactory(l);t.Z=u},1736:function(e,t,n){"use strict";var r=n(5448),i=n(3393),a=n(7387);function s(e,t){var n=(e=e||{}).timelineConverter;function r(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(i.Z.MISSING_CONFIG_ERROR)}function s(e,i){if(r(),!e)return null;var s=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,o=s.SegmentURL_asArray.length,l=e&&!isNaN(e.startNumber)?e.startNumber:1,u=Math.max(l-1,0),c=Math.max(i-u,0),d=null;if(c<o){var f=s.SegmentURL_asArray[c];(d=(0,a.NF)(n,t,e,i))&&(d.replacementTime=(l+i-1)*e.segmentDuration,d.media=f.media?f.media:"",d.mediaRange=f.mediaRange,d.indexRange=f.indexRange)}return d}return{getSegmentByIndex:s,getSegmentByTime:function(e,t){if(r(),!e)return null;var i=e.segmentDuration;if(isNaN(i))return null;var a=n.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return s(e,Math.floor(a/i))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,r=e&&!isNaN(e.startNumber)?e.startNumber:1,i=Math.max(r-1,0);return t.numberOfSegments=i+n.SegmentURL_asArray.length,t}}}s.__dashjs_factory_name="ListSegmentsGetter";var o=r.Z.getClassFactory(s);t.Z=o},5246:function(e,t,n){"use strict";var r=n(5448),i=n(3393);function a(e){var t=(e=e||{}).timelineConverter;function n(){if(!t||!t.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(i.Z.MISSING_CONFIG_ERROR)}function r(e,t){if(n(),!e)return null;var r,i=e.segments?e.segments.length:-1;if(t<i&&(r=e.segments[t])&&r.index===t)return r;for(var a=0;a<i;a++)if((r=e.segments[a])&&r.index===t)return r;return null}return{getSegmentByIndex:r,getSegmentByTime:function(e,t){n();var i=function(e,t){if(!e)return-1;var n,r,i,a,s,o=e.segments,l=o?o.length:null,u=-1;if(o&&l>0)for(s=0;s<l;s++)if(i=(r=o[s]).presentationStartTime,t+(n=(a=r.duration)/2)>=i&&t-n<i+a){u=r.index;break}return u}(e,t);return r(e,i)},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};return e&&e.segments?(t.numberOfSegments=e.segments.length,t):t}}}a.__dashjs_factory_name="SegmentBaseGetter";var s=r.Z.getClassFactory(a);t.Z=s},7387:function(e,t,n){"use strict";n.d(t,{Aj:function(){return s},NF:function(){return c},TJ:function(){return d},eR:function(){return a},vi:function(){return o}});var r=n(2011);function i(e,t){for(;e.length<t;)e="0"+e;return e}function a(e){return e?e.split("$$").join("$"):e}function s(e,t){if(!t||!e||-1===e.indexOf("$RepresentationID$"))return e;var n=t.toString();return e.split("$RepresentationID$").join(n)}function o(e,t,n){var r,a,s,o,l,u,c=t.length,d=2;if(!e)return e;for(;;){if((r=e.indexOf("$"+t))<0)return e;if((a=e.indexOf("$",r+c))<0)return e;if((s=e.indexOf("%0",r+c))>r&&s<a)switch(o=e.charAt(a-1),l=parseInt(e.substring(s+d,a-1),10),o){case"d":case"i":case"u":u=i(n.toString(),l);break;case"x":u=i(n.toString(16),l);break;case"X":u=i(n.toString(16),l).toUpperCase();break;case"o":u=i(n.toString(8),l);break;default:return e}else u=n;e=e.substring(0,r)+u+e.substring(a+1)}}function l(e,t,n,i,a,s,o,l){var u,c=new r.Z;return c.representation=e,c.duration=t,c.presentationStartTime=n,c.mediaStartTime=i,c.availabilityStartTime=a.calcAvailabilityStartTimeFromPresentationTime(s,e,o),c.availabilityEndTime=a.calcAvailabilityEndTimeFromPresentationTime(s+t,e,o),c.wallStartTime=a.calcWallTimeForSegment(c,o),c.replacementNumber=(u=l,c.representation.startNumber+u),c.index=l,c}function u(e,t,n,r){var i=t.adaptation.period;if(isFinite(i.duration)&&i.start+i.duration<=n.presentationStartTime)return!1;if(r){if("INF"===t.availabilityTimeOffset)return!0;var a=e.getClientReferenceTime();return n.availabilityStartTime.getTime()<=a&&(!isFinite(n.availabilityEndTime)||n.availabilityEndTime.getTime()>=a)}return!0}function c(e,t,n,r){var i,a,s;i=n.segmentDuration,isNaN(i)&&(i=n.adaptation.period.duration),a=parseFloat((n.adaptation.period.start+r*i).toFixed(5)),s=parseFloat((a+i).toFixed(5));var o=l(n,i,a,e.calcMediaTimeFromPresentationTime(a,n),e,s,t,r);return u(e,n,o,t)?o:null}function d(e,t,n,r,i,a,s,c,d,f){var h,m,p=r/a,g=i/a;return h=e.calcPresentationTimeFromMediaTime(p,n),u(e,n,m=l(n,g,h,p,e,h+g,t,d),t)?(m.replacementTime=f||r,s=o(s,"Number",m.replacementNumber),s=o(s,"Time",m.replacementTime),m.media=s,m.mediaRange=c,m):null}},3636:function(e,t,n){"use strict";var r=n(5448),i=n(3393),a=n(7387);function s(e,t){var n=(e=e||{}).timelineConverter;function r(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(i.Z.MISSING_CONFIG_ERROR)}function s(e,i){if(r(),!e)return null;var s=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate;i=Math.max(i,0);var o=(0,a.NF)(n,t,e,i);if(o){o.replacementTime=Math.round((i-1)*e.segmentDuration*e.timescale,10);var l=s.media;l=(0,a.vi)(l,"Number",o.replacementNumber),l=(0,a.vi)(l,"Time",o.replacementTime),o.media=l}return o}return{getSegmentByIndex:s,getSegmentByTime:function(e,t){if(r(),!e)return null;var i=e.segmentDuration;if(isNaN(i))return null;var a=n.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return s(e,Math.floor(a/i))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var n=e.segmentDuration;return isNaN(n)?t.numberOfSegments=1:t.numberOfSegments=Math.ceil(e.adaptation.period.duration/n),t}}}s.__dashjs_factory_name="TemplateSegmentsGetter";var o=r.Z.getClassFactory(s);t.Z=o},1724:function(e,t,n){"use strict";var r=n(5448),i=n(3393),a=n(7387);function s(e,t){var n=(e=e||{}).timelineConverter,r=e.dashMetrics;function s(){if(!n)throw new Error(i.Z.MISSING_CONFIG_ERROR)}function o(e,t){var n,r,i,a,s,o,u,c=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,d=c.SegmentTimeline,f=c.SegmentURL_asArray,h=0,m=-1;u=e.timescale;var p=!1;for(i=0,a=(n=d.S_asArray).length;i<a&&!p;i++)for(o=0,(r=n[i]).hasOwnProperty("r")&&(o=r.r),r.hasOwnProperty("t")&&(h=r.t),o<0&&(o=l(e,n[i+1],r,u,h/u)),s=0;s<=o&&!p;s++)(p=t(h,c,f,r,u,++m,i))&&(e.segmentDuration=r.d/u),h+=r.d}function l(e,t,i,a,s){var o;if(t&&t.hasOwnProperty("t"))o=t.t/a;else try{var l=0;if(isNaN(e.adaptation.period.start)||isNaN(e.adaptation.period.duration)||!isFinite(e.adaptation.period.duration)){var u=r.getCurrentDVRInfo();l=isNaN(u.end)?0:u.end}else l=e.adaptation.period.start+e.adaptation.period.duration;o=n.calcMediaTimeFromPresentationTime(l,e),e.segmentDuration=i.d/a}catch(e){o=0}return Math.max(Math.ceil((o-s)/(i.d/a))-1,0)}return{getSegmentByIndex:function(e,r,i){if(s(),!e)return null;var l=null,u=!1;return o(e,function(r,s,o,c,d,f,h){if(u||i<0){var m=s.media,p=c.mediaRange;
vendor: 4,690 bytes, line 2
2return o&&(m=o[h].media||"",p=o[h].mediaRange),l=(0,a.TJ)(n,t,e,r,c.d,d,m,p,f,c.tManifest),!0}return r>=i*d-.5*c.d&&(u=!0),!1}),l},getSegmentByTime:function(e,r){if(s(),!e)return null;void 0===r&&(r=null);var i=null,l=n.calcMediaTimeFromPresentationTime(r,e);return o(e,function(r,s,o,u,c,d,f){var h=parseFloat((l*c).toPrecision(15));if(h<r+u.d&&h>=r){var m=s.media,p=u.mediaRange;return o&&(m=o[f].media||"",p=o[f].mediaRange),i=(0,a.TJ)(n,t,e,r,u.d,c,m,p,d,u.tManifest),!0}return!1}),i},getMediaFinishedInformation:function(e){if(!e)return 0;var t,n,r,i,a,s,o,u=(e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList).SegmentTimeline,c=0,d=0,f=0;for(o=e.timescale,i=(t=u.S_asArray).length,r=0;r<i;r++)for(s=0,(n=t[r]).hasOwnProperty("r")&&(s=n.r),n.hasOwnProperty("t")&&(d=(c=n.t)/o),s<0&&(s=l(e,t[r+1],n,o,d)),a=0;a<=s;a++)f++,d=(c+=n.d)/o;return{numberOfSegments:f,mediaTimeOfLastSignaledSegment:d}}}}s.__dashjs_factory_name="TimelineSegmentsGetter";var o=r.Z.getClassFactory(s);t.Z=o},2011:function(e,t){"use strict";t.Z=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.wallStartTime=NaN,this.representation=null}},2610:function(e,t){"use strict";t.Z=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value=""}},1139:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ja}});var r=n(452),i=n.n(r),a=n(3393),s=n(1553),o=n(3860),l=n(5595),u=n(8512),c=n(5448),d=n(6398),f=n(8825);function h(){var e,t,n,r,i,s,c,h,m,p,g,y,_,v,E,b,T,S,w,L,A,M,D,k,I,R=this.context,C=(0,l.Z)(R).getInstance();function P(){F(),v=!1,p=0,g=0,T=0,D=!1,S=!0,w=!1,k=!1,L=NaN,b=NaN,c&&(C.off(u.Z.DATA_UPDATE_COMPLETED,Q,e),C.off(u.Z.LOADING_PROGRESS,_e,e),C.off(u.Z.MANIFEST_UPDATED,Te,e),C.off(u.Z.STREAMS_COMPOSED,Se,e),C.off(f.Z.PLAYBACK_ENDED,pe,e),C.off(f.Z.STREAM_INITIALIZING,Ee,e),C.off(f.Z.REPRESENTATION_SWITCH,be,e),C.off(f.Z.BUFFER_LEVEL_STATE_CHANGED,te,e),X(),c.removeEventListener("canplay",J),c.removeEventListener("canplaythrough",ee),c.removeEventListener("play",ne),c.removeEventListener("waiting",re),c.removeEventListener("playing",ie),c.removeEventListener("pause",ae),c.removeEventListener("error",ge),c.removeEventListener("seeking",se),c.removeEventListener("seeked",oe),c.removeEventListener("timeupdate",le),c.removeEventListener("progress",ue),c.removeEventListener("ratechange",ce),c.removeEventListener("loadedmetadata",de),c.removeEventListener("loadeddata",fe),c.removeEventListener("stalled",ve),c.removeEventListener("ended",he),c.removeEventListener("volumechange",me)),m=null,c=null,y=null,_=null}function O(){return parseFloat((x(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)-j()).toFixed(5))}function x(e){var t=e||y;return t.start+t.duration}function N(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];y&&c&&c.getElement()?(e&&_&&B(j()),c.play()):v=!0}function F(){y&&c&&c.pause()}function Y(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];y&&c&&c.getElement()&&e!==(isNaN(L)?c.getTime():L)&&((A=!0===r)||(L=e),t.info("Requesting seek to time: "+e+(A?" (internal)":"")),_&&i&&B(e),c.setCurrentTime(e,n))}function U(){if(y&&c&&_){var e=n&&n.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO,t=i.getCurrentDVRInfo(e);return t&&t.range?t.range.end:0}}function B(e){var t=new Date(h.getClientReferenceTime()),n=s.getRegularPeriods()[0],r=h.calcPresentationTimeFromWallTime(t,n);p=r-e}function j(){return y&&c?c.getTime():null}function H(){return y&&c?c.isPaused():null}function G(){return y&&c?c.isSeeking():null}function Z(){return y&&c?c.isStalled():null}function $(){return y&&c?c.getPlaybackRate():null}function z(){return y&&c?c.getEnded():null}function q(){return _}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!H()&&_&&0!==c.getReadyState()&&!G()&&!D){e||(e=n.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO);var r=j(),i=V(r,e);!isNaN(i)&&i!==r&&!G()&&(Z()||M||1===c.getReadyState())&&(t.debug("Update
2CurrentTime: Seek to actual time: ".concat(i," from currentTime: ").concat(r)),Y(i,!1,!1))}}function V(e,t){var n=i.getCurrentDVRInfo(t),r=n?n.range:null;return r?e>r.end?Math.max(r.end-p,r.start):e>0&&e+.25<r.start&&Math.abs(e-r.start)<31536e4?w?Math.max(r.end-p,r.start):r.start:e:NaN}function K(){null===m&&(m=setInterval(function(){!function(){if(C.trigger(u.Z.WALLCLOCK_TIME_UPDATED,{isDynamic:_,time:new Date}),q()){var e=Date.now();(isNaN(b)||e>b+I.get().streaming.liveUpdateTimeThresholdInMilliseconds)&&(n.addDVRMetric(),H()?function(){var e=Date.now();(!E||e>E+500)&&(E=e,le())}():W(),b=e)}}()},I.get().streaming.wallclockTimeUpdateInterval))}function X(){clearInterval(m),m=null}function Q(e){var t=s.convertRepresentationToRepresentationInfo(e.currentRepresentation),n=t?t.mediaInfo.streamInfo:null;null!==n&&y.id===n.id&&(y=n)}function J(){C.trigger(u.Z.CAN_PLAY)}function ee(){C.trigger(u.Z.CAN_PLAY_THROUGH)}function te(e){e.streamId===n.getActiveStreamInfo().id&&(M=e.state===o.Z.BUFFER_EMPTY,I.get().streaming.buffer.setStallState&&c.setStallState(e.mediaType,e.state===o.Z.BUFFER_EMPTY))}function ne(){t.info("Native video element event: play"),W(),K(),C.trigger(u.Z.PLAYBACK_STARTED,{startTime:j()})}function re(){t.info("Native video element event: waiting"),C.trigger(u.Z.PLAYBACK_WAITING,{playingTime:j()})}function ie(){t.info("Native video element event: playing"),A=!1,C.trigger(u.Z.PLAYBACK_PLAYING,{playingTime:j()})}function ae(){t.info("Native video element event: pause"),C.trigger(u.Z.PLAYBACK_PAUSED,{ended:z()})}function se(){if(!A){var e=j();isNaN(L)||L===e||(e=L),L=NaN,t.info("Seeking to: "+e),K(),C.trigger(u.Z.PLAYBACK_SEEKING,{seekTime:e,streamId:y.id})}}function oe(){t.info("Native video element event: seeked"),A=!1,C.trigger(u.Z.PLAYBACK_SEEKED)}function le(){y&&C.trigger(u.Z.PLAYBACK_TIME_UPDATED,{timeToEnd:O(),time:j(),streamId:y.id})}function ue(){C.trigger(u.Z.PLAYBACK_PROGRESS,{streamId:y.id})}function ce(){var e=$();t.info("Native video element event: ratechange: ",e),C.trigger(u.Z.PLAYBACK_RATE_CHANGED,{playbackRate:e})}function de(){t.info("Native video element event: loadedmetadata"),C.trigger(u.Z.PLAYBACK_METADATA_LOADED),K()}function fe(){t.info("Native video element event: loadeddata"),C.trigger(u.Z.PLAYBACK_LOADED_DATA)}function he(){t.info("Native video element event: ended"),F(),X();var e=n?n.getActiveStreamInfo():null;e&&C.trigger(u.Z.PLAYBACK_ENDED,{isLast:e.isLast})}function me(){C.trigger(u.Z.PLAYBACK_VOLUME_CHANGED)}function pe(e){if(m&&e.isLast){t.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended");var n=e.seekTime?e.seekTime:x();c.setCurrentTime(n),F(),X()}}function ge(e){var t=e.target||e.srcElement;C.trigger(u.Z.PLAYBACK_ERROR,{error:t.error})}function ye(){_=!1}function _e(e){if(!1===e.stream&&w&&!isNaN(e.request.duration)){var n=1.2*e.request.duration;n>p&&(t.warn("Browser does not support fetch API with StreamReader. Increasing live delay to be 20% higher than segment duration:",n.toFixed(2)),p=n,g=n)}}function ve(e){C.trigger(u.Z.PLAYBACK_STALLED,{e})}function Ee(e){var n;(n=e.mediaInfo)&&n.supplementalProperties&&n.supplementalProperties[a.Z.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME]&&"true"===n.supplementalProperties[a.Z.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME].value&&(t.debug("Low Latency critical SupplementalProperty set: Enabling low Latency"),w=!0)}function be(e){var t=n.getActiveStreamInfo();e&&t&&e.currentRepresentation&&e.streamId&&e.streamId===t.id&&e.mediaType&&(e.mediaType===a.Z.VIDEO||e.mediaType===a.Z.AUDIO)&&(S=e.currentRepresentation.availabilityTimeComplete,(w=!S)&&!k&&(k=!0))}function Te(){D=!0}function Se(){D=!1}return e={initialize:function(t,n){y=t,!0!==n&&(c.addEventListener("canplay",J),c.addEventListener("canplaythrough",ee),c.addEventListener("play",ne),c.addEventListener("waiting",re),c.addEventListener("playing",ie),c.addEventListener("pause",ae),c.addEventListener("error",ge),c.addEventListener("seeking",se),c.addEventListener("seeked",oe),c.addEventListener("timeupdate",le),c.addEventListener("progress",ue),c.addEventListener("ratechange",ce),c.addEventListener("loadedmetadata",de),c.addEventListener("loadeddata",fe),c.addEventListener("stalled",ve),c.addEventListener("ended",he),c.addEventListener("volumechange",me),_=y.manifestInfo.isDynamic,M=!1,A=!1,C.on(u.Z.DATA_UPDATE_COMPLETED,Q,e),C.on(u.Z.LOADING_PROGRESS,_e,e),C.on(u.Z.MANIFEST_UPDATED,Te,e),C.on(u.Z.STREAMS_COMPOSED,Se,e),C.on(f.Z.PLAYBACK_ENDED,pe,e,{priority:l.Z.EVENT_PRIORITY_HIGH}),C.on(f.Z.STREAM_INITIALIZING,Ee,e),C.on(f.Z.REPRESENTATION_SWITCH,be,e),C.on(f.Z.BUFFER_LEVEL_STATE_CHANGED,te,e),C.on(f.Z.DYNAMIC_TO_STATIC,ye,e),v&&(v=!1,N())
vendor: 4,664 bytes, line 2
2)},setConfig:function(e){e&&(e.streamController&&(n=e.streamController),e.serviceDescriptionController&&(r=e.serviceDescriptionController),e.dashMetrics&&(i=e.dashMetrics),e.adapter&&(s=e.adapter),e.videoModel&&(c=e.videoModel),e.timelineConverter&&(h=e.timelineConverter),e.settings&&(I=e.settings))},getTimeToStreamEnd:O,getBufferLevel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=null;return n.getActiveStreamProcessors().forEach(function(n){if(!e||0===e.length||-1===e.indexOf(n.getType())){var r=n.getBufferLevel();t=null===t?r:Math.min(t,r)}}),t},getPlaybackStalled:function(){return M},getTime:j,getLowLatencyModeEnabled:function(){return w},getInitialCatchupModeActivated:function(){return k},getIsManifestUpdateInProgress:function(){return D},getPlaybackRate:$,getPlayedRanges:function(){return y&&c?c.getPlayedRanges():null},getEnded:z,getIsDynamic:q,getStreamController:function(){return n},computeAndSetLiveDelay:function(e,t){var n,i,a,o=!isNaN(e)&&isFinite(e)?e:NaN,l=s.getSuggestedPresentationDelay(),u=r.getServiceDescriptionSettings();return n=isNaN(I.get().streaming.delay.liveDelay)?null===I.get().streaming.delay.liveDelayFragmentCount||isNaN(I.get().streaming.delay.liveDelayFragmentCount)||isNaN(o)?u&&!isNaN(u.liveDelay)&&u.liveDelay>0?u.liveDelay:!0===I.get().streaming.delay.useSuggestedPresentationDelay&&null!==l&&!isNaN(l)&&l>0?l:isNaN(o)?t&&!isNaN(t.minBufferTime)?4*t.minBufferTime:4*y.manifestInfo.minBufferTime:4*o:o*I.get().streaming.delay.liveDelayFragmentCount:I.get().streaming.delay.liveDelay,null!==(a=s.getAvailabilityStartTime())&&(T=a),i=t&&t.dvrWindowSize>0?Math.min(n,t.dvrWindowSize):n,p=i,g=i,i},getLiveDelay:function(){return p},getOriginalLiveDelay:function(){return g},getCurrentLiveLatency:function(){if(!_||isNaN(T))return NaN;var e=j();if(isNaN(e)||0===e)return 0;var t=(new Date).getTime()+1e3*h.getClientTimeOffset();return Math.max(((t-T-1e3*e)/1e3).toFixed(3),0)},play:N,isPaused:H,isStalled:Z,pause:F,isSeeking:G,getStreamEndTime:x,seek:Y,seekToOriginalLive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=U();0!==r&&Y(r-(p=g),e,t,n)},seekToCurrentLive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=U();0!==r&&Y(r-p,e,t,n)},reset:P,updateCurrentTime:W,getAvailabilityStartTime:function(){return T}},t=(0,d.Z)(R).getInstance().getLogger(e),P(),e}h.__dashjs_factory_name="PlaybackController";var m=c.Z.getSingletonFactory(h),p=n(3186),g="loading",y="executed",_="failed";function v(e){var t,n,r,i,a=(e=e||{}).eventBus,s=e.events,o=e.dashMetrics,l=e.fragmentLoader,u=e.debug,c=e.streamInfo,d=e.type;function f(e){var t;return!!e&&(t=!1,r.some(function(n){if(r=e,i=n,!isNaN(r.index)&&r.startTime===i.startTime&&r.adaptationIndex===i.adaptationIndex&&r.type===i.type||function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality}(e,n)||function(e,t){return e.action===p.Z.ACTION_COMPLETE&&e.action===t.action}(e,n))return t=!0;var r,i}),t)}function h(e){return isNaN(e.duration)?.25:Math.min(e.duration/8,.5)}function m(e){r=r.filter(function(t){var n=h(t);return isNaN(t.startTime)||void 0!==e&&t.startTime>=e-n})}function v(e,t){t<=e+.5||(r=r.filter(function(n){var r=h(n);return isNaN(n.startTime)||n.startTime>=t-r||isNaN(n.duration)||n.startTime+n.duration<=e+r}))}function E(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r],a=i.startTime,s=a+i.duration;if(n=isNaN(n)?h(i):n,!isNaN(a)&&!isNaN(s)&&t+n>=a&&t-n<s||isNaN(a)&&isNaN(t))return i}return null}function b(e,t){o.addSchedulingInfo(e,t),o.addRequestsQueue(e.mediaType,i,r)}function T(e){e.sender===l&&(i.splice(i.indexOf(e.request),1),e.response&&!e.error&&r.push(e.request),b(e.request,e.error?_:y),a.trigger(s.FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this},{streamId:c.id,mediaType:d}))}function S(e){e.sender===l&&a.trigger(s.FRAGMENT_LOADING_PROGRESS,{request:e.request,response:e.response,error:e.error,sender:this},{streamId:c.id,mediaType:d})}function w(e){e.sender===l&&a.trigger(s.FRAGMENT_LOADING_ABANDONED,{request:e.request},{streamId:c.id,mediaType:d})}function L(){r=[],i=[]}return t={getStreamId:function(){return c.id},getType:function(){return d},getRequests:function(e){var t=e?e.state instanceof Array?e.state:[e.state]:[],n=[];return t.forEach(function(t){var a=function(e){var t;switch(e){case g:t=i;break;case y:t=r;break;default:t=[]}return t}(t);
2n=n.concat(function(e,t){return t.hasOwnProperty("time")?[E(e,t.time,t.threshold)]:e.filter(function(e){for(var n in t)if("state"!==n&&t.hasOwnProperty(n)&&e[n]!=t[n])return!1;return!0})}(a,e))}),n},isFragmentLoaded:f,isFragmentLoadedOrPending:function(e){var t,n=!1,r=0;if(!(n=f(e)))for(r=0;r<i.length;r++)t=i[r],e.url===t.url&&e.startTime===t.startTime&&(n=!0);return n},removeExecutedRequestsBeforeTime:m,removeExecutedRequestsAfterTime:function(e){r=r.filter(function(t){return isNaN(t.startTime)||void 0!==e&&t.startTime<e})},syncExecutedRequestsWithBufferedRange:function(e,t){if(e&&0!==e.length){for(var n=0,r=0,i=e.length;r<i;r++)v(n,e.start(r)),n=e.end(r);t>0&&v(n,t)}else m()},abortRequests:function(){n.debug("abort requests"),l.abort(),i=[]},executeRequest:function(e){e.action===p.Z.ACTION_DOWNLOAD?(b(e,g),i.push(e),function(e){a.trigger(s.FRAGMENT_LOADING_STARTED,{request:e},{streamId:c.id,mediaType:d}),l.load(e)}(e)):n.warn("Unknown request action.")},reset:function(){a.off(s.LOADING_COMPLETED,T,this),a.off(s.LOADING_DATA_PROGRESS,S,this),a.off(s.LOADING_ABANDONED,w,this),l&&l.reset(),L()},resetInitialSettings:L,addExecutedRequest:function(e){r.push(e)}},n=u.getLogger(t),L(),a.on(s.LOADING_COMPLETED,T,t),a.on(s.LOADING_DATA_PROGRESS,S,t),a.on(s.LOADING_ABANDONED,w,t),t}v.__dashjs_factory_name="FragmentModel";var E=c.Z.getClassFactory(v);E.FRAGMENT_MODEL_LOADING=g,E.FRAGMENT_MODEL_EXECUTED=y,E.FRAGMENT_MODEL_CANCELED="canceled",E.FRAGMENT_MODEL_FAILED=_,c.Z.updateClassFactory(v.__dashjs_factory_name,E);var b=E,T=n(5459);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function L(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var M=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=A(t);if(n){var i=A(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return L(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=r.call(this)).MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,e.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,e.SEGMENT_BASE_LOADER_ERROR_CODE=15,e.TIME_SYNC_FAILED_ERROR_CODE=16,e.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,e.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,e.APPEND_ERROR_CODE=20,e.REMOVE_ERROR_CODE=21,e.DATA_UPDATE_FAILED_ERROR_CODE=22,e.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,e.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,e.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,e.DOWNLOAD_ERROR_ID_SIDX_CODE=26,e.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,e.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,e.DOWNLOAD_ERROR_ID_XLINK_CODE=29,e.MANIFEST_ERROR_ID_PARSE_CODE=31,e.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,e.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,e.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,e.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,e.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",e.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",e.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",e.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",e.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",e.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",e.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",e.APPEND_ERROR_MESSAGE="chunk is not defined",e.REMOVE_
vendor: 4,049 bytes, line 2
2ERROR_MESSAGE="Removing data from the SourceBuffer",e.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",e.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",e.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",e.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",e.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",e}return i}(n(2230).Z)),D=n(1264),k=n(7855);function I(e){var t,n,r,i,s,o,l=this.context,c=(0,D.Z)(l).getInstance(),f=e.textController,h=e.eventBus,m=[],p=[],g=!1,y=e.mediaSource,_=null;function v(e){return new Promise(function(t){C(function(){i.changeType&&i.changeType(e),t()})})}function E(e){return i=f.getTextSourceBuffer(e),Promise.resolve()}function b(){if("function"==typeof i.addEventListener)try{i.addEventListener("updateend",I,!1),i.addEventListener("error",R,!1),i.addEventListener("abort",R,!1)}catch(e){o=setInterval(I,50)}else o=setInterval(I,50)}function S(e){return new Promise(function(t){i&&c.get().streaming.buffer.useAppendWindow?C(function(){try{if(!i)return void t();var n=y.duration,a=0;e&&!isNaN(e.start)&&!isNaN(e.duration)&&isFinite(e.duration)&&(n=e.start+e.duration),e&&!isNaN(e.start)&&(a=e.start),i.appendWindowEnd===n&&i.appendWindowStart===a||(i.appendWindowStart=0,i.appendWindowEnd=n+.01,i.appendWindowStart=Math.max(a-.1,0),r.debug("Updated append window for ".concat(s.type,". Set start to ").concat(i.appendWindowStart," and end to ").concat(i.appendWindowEnd))),t()}catch(e){r.warn("Failed to set append window"),t()}}):t()})}function w(e){return new Promise(function(t){i?C(function(){try{i.timestampOffset===e||isNaN(e)||(i.timestampOffset=e,r.debug("Set MSE timestamp offset to ".concat(e))),t()}catch(e){t()}}):t()})}function L(){if(!g&&p.length>0){g=!0;var e=p[0];p.splice(0,1);var t=function(){g=!1,p.length>0&&L.call(this),e&&e.data&&e.data.segmentType&&e.data.segmentType!==k.w.INIT_SEGMENT_TYPE&&delete e.data.bytes,e.promise.resolve({chunk:e.data})};try{_=e.request,0===e.data.bytes.byteLength?t.call(this):(i.appendBuffer?i.appendBuffer(e.data.bytes):i.append(e.data.bytes,e.data),C(t.bind(this)))}catch(t){r.fatal('SourceBuffer append failed "'+t+'"'),p.length>0?L():g=!1,delete e.data.bytes,e.promise.reject({chunk:e.data,error:new T.Z(t.code,t.message)})}}}function A(){m.length>0&&(i.updating||(m.shift()(),A()))}function I(){i.updating||A()}function R(e){var t,r,i=e.target||{};t=u.Z.SOURCE_BUFFER_ERROR,r={error:i,lastRequestAppended:_}||{},h.trigger(t,r,{streamId:s.streamInfo.id,mediaType:n})}function C(e){m.push(e),i.updating||A()}return t={getType:function(){return n},getAllBufferRanges:function(){try{return i.buffered}catch(e){return r.error("getAllBufferRanges exception: "+e.message),null}},getBuffer:function(){return i},append:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(r,i){e?(p.push({data:e,promise:{resolve:r,reject:i},request:n}),C(L.bind(t))):i({chunk:e,error:new T.Z(M.APPEND_ERROR_CODE,M.APPEND_ERROR_MESSAGE)})})},remove:function(e){return new Promise(function(t,n){var r=e.start,a=e.end;r>=0&&a>r?C(function(){try{i.remove(r,a),C(function(){t({from:r,to:a,unintended:!1}),e.resolve&&e.resolve()})}catch(t){n({from:r,to:a,unintended:!1,error:new T.Z(M.REMOVE_ERROR_CODE,M.REMOVE_ERROR_MESSAGE)}),e.reject&&e.reject(t)}}):t()})},abort:function(){return new Promise(function(e){try{p=[],"open"===y.readyState?C(function(){try{i&&i.abort(),e()}catch(t){e()}}):i&&i.setTextTrack&&"ended"===y.readyState?(i.abort(),e()):e()}catch(t){e()}})},reset:function(){if(i){try{m=[],function(){try{"function"==typeof i.removeEventListener&&(i.removeEventListener("updateend",I,!1),i.removeEventListener("error",R,!1),i.removeEventListener("abort",R,!1)),clearInterval(o)}catch(e){r.error(e)}}(),g=!1,p=[],i.getClassName&&"TextSourceBuffer"===i.getClassName()||(r.debug("Removing sourcebuffer from media source"),y.removeSourceBuffer(i))}catch(e){}i=null}_=null},updateTimestampOffset:w,initializeForStreamSwitch:function(e,t,r){n=(s=e).type;
2var a=s.codec;!function(e){i=e.getBuffer()}(r),b();var o=[];return o.push(new Promise(function(e){C(function(){var t=i.appendWindowStart,n=i.appendWindowEnd;i&&(i.abort(),i.appendWindowStart=t,i.appendWindowEnd=n),e()})})),o.push(S(s.streamInfo)),c.get().streaming.buffer.useChangeTypeForTrackSwitch&&o.push(v(a)),t&&void 0!==t.MSETimeOffset&&o.push(w(t.MSETimeOffset)),Promise.all(o)},initializeForFirstUse:function(e,t,r){n=(s=t).type;var o=s.codec;try{if(o.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))return E(e);i=y.addSourceBuffer(o),b();var l=[];return l.push(S(s.streamInfo)),r&&void 0!==r.MSETimeOffset&&l.push(w(r.MSETimeOffset)),Promise.all(l)}catch(t){return s.type==a.Z.TEXT&&!s.isFragmented||-1!==o.indexOf('codecs="stpp')||-1!==o.indexOf('codecs="vtt')||-1!==o.indexOf("text/vtt")?E(e):Promise.reject(t)}},updateAppendWindow:S,changeType:v},r=(0,d.Z)(l).getInstance().getLogger(t),t}I.__dashjs_factory_name="SourceBufferSink";var R=c.Z.getClassFactory(I);function C(e){var t,n,r,i=this.context,a=[],s=e;function o(e,t){return a=a.filter(function(n){return!((isNaN(t)||n.start<t)&&(isNaN(e)||n.end>e))}),Promise.resolve()}return t={getAllBufferRanges:function(){for(var e=[],t=0;t<a.length;t++){var n=a[t];0===e.length||n.start>e[e.length-1].end?e.push({start:n.start,end:n.end}):e[e.length-1].end=n.end}var r={start:function(t){return e[t].start},end:function(t){return e[t].end}};return Object.defineProperty(r,"length",{get:function(){return e.length}}),r},append:function(e){return"InitializationSegment"!==e.segmentType?(a.push(e),a.sort(function(e,t){return e.start-t.start}),r=null):r=e,n.debug("PreBufferSink appended chunk s: "+e.start+"; e: "+e.end),s&&s({chunk:e}),Promise.resolve()},remove:o,abort:function(){return Promise.resolve()},discharge:function(e,t){var n=function(e,t){return a.filter(function(n){return(isNaN(t)||n.start<t)&&(isNaN(e)||n.end>e)})}(e,t);return r&&(n.push(r),r=null),o(e,t),n},reset:function(){a=[],r=null,s=null},updateTimestampOffset:function(){return Promise.resolve()},waitForUpdateEnd:function(e){e()},getBuffer:function(){return this}},n=(0,d.Z)(i).getInstance().getLogger(t),t}C.__dashjs_factory_name="PreBufferSink";var P=c.Z.getClassFactory(C);function O(){var e={};return{save:function(t){var n=t.streamId,r=t.representationId;e[n]=e[n]||{},e[n][r]=t},extract:function(t,n){return e&&e[t]&&e[t][n]?e[t][n]:null},reset:function(){e={}}}}O.__dashjs_factory_name="InitCache";var x=c.Z.getSingletonFactory(O),N=.01,F="BufferController";function Y(e){e=e||{};var t,n,r,i,s,c,h,m,p,g,y,_,v,E,S,w,L,A,D,I,C,O=this.context,Y=(0,l.Z)(O).getInstance(),U=e.errHandler,B=e.fragmentModel,j=e.representationController,H=e.adapter,G=e.textController,Z=e.abrController,$=e.playbackController,z=e.streamInfo,q=e.type,W=e.settings;function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(n,r){c=e,p&&t&&"function"==typeof p.discharge?(g=p,X(t).then(function(){n()}).catch(function(e){r(e)})):n()})}function K(e){return H.convertRepresentationToRepresentationInfo(j.getRepresentationForQuality(e))}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new Promise(function(n,r){A&&e?c?(y=!1,J(e,t).then(function(e){n(e)}).catch(function(e){r(e)})):(y=!0,Q().then(function(e){n(e)}).catch(function(e){r(e)})):n(null)})}function Q(){var e=this;return new Promise(function(t,n){var r=Z.getQualityFor(q,z.id);p=P(O).create(ie.bind(e)),Ee(K(r)).then(function(){t(p)}).catch(function(){n()})})}function J(e,t){return new Promise(function(r,i){var s=Z.getQualityFor(q,z.id);p=R(O).create({mediaSource:c,textController:G,eventBus:Y}),function(e,t,n){var r=K(n);return t&&t[q]&&(q===a.Z.VIDEO||q===a.Z.AUDIO)?p.initializeForStreamSwitch(e,r,t[q]):p.initializeForFirstUse(z,e,r)}(e,t,s).then(function(){return Ee(K(s))}).then(function(){r(p)}).catch(function(e){n.fatal("Caught error on create SourceBuffer: "+e),U.error(new T.Z(M.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,M.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+q)),i(e)})})}function ee(e){W.get().streaming.cacheInitSegments&&(n.info("Init fragment finished loading saving to",q+"'s init cache"),A.save(e.chunk)),n.debug("Append Init fragment",q," with representationId:",e.chunk.representationId," and quality:",e.chunk.quality,", data size:",e.chunk.bytes.byteLength),ne(e.chunk)}function te(e){ne(e.chunk,e.request)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;p&&(p.append(e,t).then(function(e){ie(e)}).catch(function(e){ie(e)}),e.mediaInfo.type===a.Z.VIDEO&&De(u.Z.VIDEO_CHUNK_RECEIVED,{chunk:e}))}function re(e){if(e&&e.length>0)for(var t=0,r=e.length;t<r;t++)n.debug("Buffered range: "+e.start(t)+" - "+e.end(t)+", currentTime = ",$.getTime())}function ie(e){if(e.error)return 22===e.error.code&&function(){if(L=!0,s=.8*Le(),n.warn("Quota exceeded, Critical Buffer: "+s),s>0){var e=Math.max(.2*s,1),t=s-e,r=Math.min(W.get().streaming.buffer.bufferTimeAtTopQuality,.9*t),i=Math.min(W.get().streaming.buffer.bufferTimeAtTopQualityLongForm,.9*t),a={streaming:{buffer:{bufferToKeep:parseFloat(e.toFixed(5)),bufferTimeAtTopQuality:parseFloat(r.toFixed(5)),bufferTimeAtTopQualityLongForm:parseFloat(i.toFixed(5))}}};W.update(a)}}(),void(22!==e.error.code&&Me()||(n.warn("Clearing playback buffer to overcome quota exceed situation"),De(u.Z.QUOTA_EXCEEDED,{criticalBufferLevel:s,quotaExceededTime:e.chunk.start}),ye(ge())));if(p&&(de(),L=!1,(E=e.chunk)&&E.endFragment)){E&&!isNaN(E.index)&&(h=Math.max(E.index,h),fe());var t=p.getAllBufferRanges();E.segmentType===k.w.MEDIA_SEGMENT_TYPE&&(re(t),oe(),function(){if(!isNaN(C)&&!y)if(q===a.Z.AUDIO||q===a.Z.VIDEO){var e=$.getTime(),t=ce(e,0),n=ce(C,0);if(t&&n&&t.start===n.start)C=NaN;else{var r=j.getCurrentRepresentation().segmentDuration,i=ce(C,r);i&&(W.get().streaming.buffer.enableSeekDecorrelationFix&&Math.abs(e-C)>r?C<=i.end&&$.seek(Math.max(C,i.start),!1,!0):e<i.start&&$.seek(i.start,!1,!0))}}else C=NaN}());var r=!1;_&&(_.indexOf(E)>0&&(r=!0),_=null),E&&!r&&De(u.Z.BYTES_APPENDED_END_FRAGMENT,{quality:E.quality,startTime:E.start,index:E.index,bufferedRanges:t,segmentType:E.segmentType,mediaType:q})}}function ae(){return new Promise(function(e,t){var n=se();
vendor: 1,376 bytes, line 2
2if(!n||0===n.length)return oe(),void e();ye(n).then(function(){e()}).catch(function(e){t(e)})})}function se(e){var t=[],r=p.getAllBufferRanges();if(!r||0===r.length)return t;if(!e&&0!==e||isNaN(e))t.push({start:r.start(0),end:r.end(r.length-1)+.5});else{var i=function(e,t){var n=W.get().streaming.buffer.bufferToKeep,r=t.start(0);if(e-r>n){var i=Math.max(0,e-n),a=B.getRequests({state:b.FRAGMENT_MODEL_EXECUTED,time:e,threshold:N})[0];if(a&&(i=Math.min(a.startTime,i)),i>0)return{start:r,end:i}}return null}(e,r),a=function(e,t){var r=t.end(t.length-1)+.5,i=Ae(e),a=z.manifestInfo.duration>=W.get().streaming.buffer.longFormContentDurationThreshold?W.get().streaming.buffer.bufferTimeAtTopQualityLongForm:W.get().streaming.buffer.bufferTimeAtTopQuality,s=isNaN(i)?e:Math.min(i,e+a);if(s>=t.end(t.length-1))return null;var o=B.getRequests({state:b.FRAGMENT_MODEL_EXECUTED,time:e,threshold:N})[0];if(o&&(s=Math.max(o.startTime+o.duration,s)),W.get().streaming.buffer.avoidCurrentTimeRangePruning)for(var l=0;l<t.length;l++)if(t.start(l)<=e&&e<=t.end(l)&&t.start(l)<=s&&s<=t.end(l)){var u=s;s=l+1<t.length?t.start(l+1):t.end(l)+1,n.debug("Buffered range ["+t.start(l)+", "+t.end(l)+"] overlaps with targetTime "+e+" and range to be pruned ["+u+", "+r+"], using ["+s+", "+r+"] instead"+(s<r?"":" (no actual pruning)"));break}return s<t.end(t.length-1)?{start:s,end:r}:null}(e,r);
2i&&t.push(i),a&&t.push(a)}return t}function oe(){(!I||q===a.Z.TEXT&&G.isTextEnabled())&&de()}function le(){he()}function ue(){he(),C=NaN}function ce(e,t){if(!p)return null;var n,r,i=p.getAllBufferRanges(),a=0,s=0,o=null,l=null,u=0,c=isNaN(t)?.15:t;if(null!=i){for(r=0,n=i.length;r<n;r++)if(a=i.start(r),s=i.end(r),null===o)u=Math.abs(a-e),(e>=a&&e<s||u<=c)&&(o=a,l=s);else{if(!((u=a-l)<=c))break;l=s}if(null!==o)return{start:o,end:l}}return null}function de(){if($){var e=$.getTime()||0;y&&(e=isNaN(C)?0:C);var t=W.get().streaming.gaps.jumpGaps&&!isNaN(W.get().streaming.gaps.smallGapLimit)?W.get().streaming.gaps.smallGapLimit:NaN;i=Math.max(function(e,t){var n;return W.get().streaming.gaps.jumpGaps&&(t=W.get().streaming.gaps.smallGapLimit),null===(n=ce(e,t))?0:n.end-e}(e,t),0),De(u.Z.BUFFER_LEVEL_UPDATED,{mediaType:q,bufferLevel:i}),he()}}function fe(){var e=h>=m-1,t=$.getTimeToStreamEnd(z)-i<1e-5;!e&&!t||r||(we(!0),n.debug("checkIfBufferingCompleted trigger BUFFERING_COMPLETED for stream id ".concat(z.id," and type ").concat(q)))}function he(){q!==a.Z.AUDIO&&q!==a.Z.VIDEO||((!$.getLowLatencyModeEnabled()&&i<W.get().streaming.buffer.stallThreshold||0===i)&&!r?me(o.Z.BUFFER_EMPTY):(r||i>=W.get().streaming.buffer.stallThreshold||$.getLowLatencyModeEnabled()&&i>0)&&me(o.Z.BUFFER_LOADED))}function me(e){v===e||e===o.Z.BUFFER_EMPTY&&0===$.getTime()||q===a.Z.TEXT&&!G.isTextEnabled()||(v=e,De(u.Z.BUFFER_LEVEL_STATE_CHANGED,{state:e}),De(e===o.Z.BUFFER_LOADED?u.Z.BUFFER_LOADED:u.Z.BUFFER_EMPTY),n.debug(e===o.Z.BUFFER_LOADED?"Got enough buffer to start":"Waiting for more buffer before starting playback"))}function pe(){p&&q!==a.Z.TEXT&&(r||ye(ge()))}function ge(){var e=[],t=p.getAllBufferRanges();if(!t||0===t.length)return e;var n=$.getTime(),r=Math.max(0,n-W.get().streaming.buffer.bufferToKeep),i=B.getRequests({state:b.FRAGMENT_MODEL_EXECUTED,time:n,threshold:N})[0];if(i)r=Math.min(i.startTime,r);else if(0===n&&$.getIsDynamic())return[];if(t.start(0)<=r){for(var a={start:0,end:r},s=0;s<t.length&&t.end(s)<=r;s++)a.end=t.end(s);a.start<a.end&&e.push(a)}return e}function ye(e){return new Promise(function(t,n){if(e&&p&&0!==e.length){var r=[];e.forEach(function(e){r.push(function(e){return new Promise(function(t,n){e.resolve=t,e.reject=n,D.push(e)})}(e))}),w||_e(),Promise.all(r).then(function(){t()}).catch(function(e){n(e)})}else t()})}function _e(){try{if(0===D.length||!p)return n.debug("Nothing to prune, halt pruning"),D=[],void(w=!1);var e=p.getBuffer();if(!e||!e.buffered||0===e.buffered.length)return n.debug("SourceBuffer is empty (or does not exist), halt pruning"),D=[],void(w=!1);var t=D.shift();n.debug("".concat(q,": Removing buffer from: ").concat(t.start," to ").concat(t.end)),w=!0,$.getTime()<t.end&&we(!1),p.remove(t).then(function(e){ve(e)}).catch(function(e){ve(e)})}catch(e){w=!1}}function ve(e){n.debug("onRemoved buffer from:",e.from,"to",e.to),p&&(re(p.getAllBufferRanges()),0===D.length&&(w=!1,de()),e.unintended&&(n.warn("Detected unintended removal from:",e.from,"to",e.to,"setting streamprocessor time to",e.from),De(u.Z.SEEK_TARGET,{time:e.from})),w?_e():(I?I=!1:de(),De(u.Z.BUFFER_CLEARED,{from:e.from,to:e.to,unintended:e.unintended,hasEnoughSpaceToAppend:Me(),quotaExceeded:L})))}function Ee(e){return new Promise(function(t){e&&void 0!==e.MSETimeOffset&&p&&p.updateTimestampOffset?p.updateTimestampOffset(e.MSETimeOffset).then(function(){t()}).catch(function(){t()}):t()})}function be(){return p&&!r?p.updateAppendWindow(z):Promise.resolve()}function Te(){++S*(W.get().streaming.wallclockTimeUpdateInterval/1e3)>=W.get().streaming.buffer.bufferPruningInterval&&(S=0,pe())}function Se(){he()}function we(e){(r=e)?De(u.Z.BUFFERING_COMPLETED):m=Number.POSITIVE_INFINITY}function Le(){try{var e,t,n=p.getAllBufferRanges(),r=0;if(!n)return r;for(t=0,e=n.length;t<e;t++)r+=n.end(t)-n.start(t);return r}catch(e){return 0}}function Ae(e){try{var t=e,n=p.getAllBufferRanges();if(!n||0===n.length)return NaN;for(var r=0;t===e&&r<n.length;){var i=n.start(r),a=n.end(r);t>=i&&t<=a&&(t=a),r+=1}return t===e?NaN:t}catch(e){}}function Me(){var e=Le();return isNaN(e)||e<s}function De(e,t){var n=t||{};Y.trigger(e,n,{streamId:z.id,mediaType:q})}function ke(e,t){if(s=Number.POSITIVE_INFINITY,v=void 0,m=Number.POSITIVE_INFINITY,h=0,E=null,r=!1,w=!1,L=!1,i=0,S=0,D=[],C=NaN,y=!1,p){var n=p;p=null,e||t||n.abort().then(function(){n.reset(t),n=null})}I=!1}return t={initialize:function(e){V(e),Y.on(u.Z.INIT_FRAGMENT_LOADED,ee,t),Y.on(u.Z.MEDIA_FRAGMENT_LOADED,te,t),Y.on(u.Z.WALLCLOCK_TIME_UPDATED,Te,t),Y.on(f.Z.PLAYBACK_PLAYING,ue,t),Y.on(f.Z.PLAYBACK_PROGRESS,oe,t),Y.on(f.Z.PLAYBACK_TIME_UPDATED,oe,t),Y.on(f.Z.PLAYBACK_RATE_CHANGED,Se,t),Y.on(f.Z.PLAYBACK_STALLED,le,t)},getStreamId:function(){return z.id},getType:function(){return q},getBufferControllerType:function(){return F},createBufferSink:X,dischargePreBuffer:function(){if(p&&g&&"function"==typeof g.discharge){var e=g.getAllBufferRanges();if(e.length>0){for(var t="Beginning "+q+"PreBuffer discharge, adding buffer for:",r=0;r<e.length;r++)t+=" start: "+e.start(r)+", end: "+e.end(r)+";";n.debug(t)}else n.debug("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");_=[];for(var i=g.discharge(),a=null,s=0;s<i.length;s++){var o=i[s];if(o.segmentType!==k.w.INIT_SEGMENT_TYPE){var l=A.extract(o.streamId,o.representationId);l&&a!==l&&(_.push(l),p.append(l),a=l)}_.push(o),p.append(o)}g.reset(),g=null}},getBuffer:function(){return p},getBufferLevel:function(){return i},getRangeAt:ce,hasBufferAtTime:function(e){try{var t=p.getAllBufferRanges();if(!t||0===t.length)return!1;for(var r=0;r<t.length;){var i=t.start(r),a=t.end(r);if(e>=i&&e<=a)return!0;r+=1}return!1}catch(e){return n.error(e),!1}},pruneBuffer:pe,setMediaSource:V,getMediaSource:function(){return c},appendInitSegmentFromCache:function(e){var t=A.extract(z.id,e);return!!t&&(n.info("Append Init fragment",q," with representationId:",t.representationId," and quality:",t.quality,", data size:",t.bytes.byteLength),ne(t),!0)},getIsBufferingCompleted:function(){return r},setIsBufferingCompleted:we,getIsPruningInProgress:function(){return w},reset:function(e,t){Y.off(u.Z.INIT_FRAGMENT_LOADED,ee,this),Y.off(u.Z.MEDIA_FRAGMENT_LOADED,te,this),Y.off(u.Z.WALLCLOCK_TIME_UPDATED,Te,this),Y.off(f.Z.PLAYBACK_PLAYING,ue,this),Y.off(f.Z.PLAYBACK_PROGRESS,oe,this),Y.off(f.Z.PLAYBACK_TIME_UPDATED,oe,this),Y.off(f.Z.PLAYBACK_RATE_CHANGED,Se,this),Y.off(f.Z.PLAYBACK_STALLED,le,this),ke(e,t)},prepareForPlaybackSeek:function(){return r&&we(!1),p.abort()},prepareForReplacementTrackSwitch:function(e){return new Promise(function(t,n){p.abort().then(function(){return be()}).then(function(){return W.get().streaming.buffer.useChangeTypeForTrackSwitch?p.changeType(e):Promise.resolve()}).then(function(){return ae()}).then(function(){we(!1),t()}).catch(function(e){n(e)})})},prepareForNonReplacementTrackSwitch:function(e){return new Promise(function(t,n){be
2().then(function(){return W.get().streaming.buffer.useChangeTypeForTrackSwitch?p.changeType(e):Promise.resolve()}).then(function(){t()}).catch(function(e){n(e)})})},prepareForForceReplacementQualitySwitch:function(e){return new Promise(function(t,n){p.abort().then(function(){return be()}).then(function(){return ae()}).then(function(){return Ee(e)}).then(function(){we(!1),t()}).catch(function(e){n(e)})})},updateAppendWindow:be,getAllRangesWithSafetyFactor:se,getContinuousBufferTimeForTargetTime:Ae,clearBuffers:ye,pruneAllSafely:ae,updateBufferTimestampOffset:Ee,setSeekTarget:function(e){C=e},segmentRequestingCompleted:function(e){isNaN(e)||(m=e,fe())}},n=(0,d.Z)(O).getInstance().getLogger(t),A=x(O).getInstance(),ke(),t}Y.__dashjs_factory_name=F;var U=c.Z.getClassFactory(Y),B="NotFragmentedTextBufferController";function j(e){e=e||{};var t,n,r,i,a,s,o=this.context,c=(0,l.Z)(o).getInstance(),d=e.textController,f=e.errHandler,h=e.streamInfo,m=e.type;function p(e){i=e}function g(e){var t,r;n!==e&&(n=e)&&(t=u.Z.BUFFERING_COMPLETED,r={},c.trigger(t,r,{streamId:h.id,mediaType:m}))}function y(e){e.chunk.bytes&&!n&&(s.save(e.chunk),a.append(e.chunk),g(!0))}return t={initialize:function(e){p(e)},getStreamId:function(){return h.id},getType:function(){return m},getBufferControllerType:function(){return B},createBufferSink:function(e){return new Promise(function(t,n){try{(a=R(o).create({mediaSource:i,textController:d,eventBus:c})).initializeForFirstUse(h,e),r||(a.getBuffer()&&"function"==typeof a.getBuffer().initialize&&a.getBuffer().initialize(),r=!0),t(a)}catch(e){f.error(new T.Z(M.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,M.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+m)),n(e)}})},dischargePreBuffer:function(){},getBuffer:function(){return a},getBufferLevel:function(){return 0},getRangeAt:function(){return null},pruneBuffer:function(){},hasBufferAtTime:function(){return!0},getAllRangesWithSafetyFactor:function(){return[]},getContinuousBufferTimeForTargetTime:function(){return Number.POSITIVE_INFINITY},setMediaSource:p,getMediaSource:function(){return i},appendInitSegmentFromCache:function(e){return null!==s.extract(h.id,e)},getIsBufferingCompleted:function(){return n},setIsBufferingCompleted:g,getIsPruningInProgress:function(){return!1},reset:function(e){c.off(u.Z.INIT_FRAGMENT_LOADED,y,t),!e&&a&&(a.abort(),a.reset(),a=null)},clearBuffers:function(){return Promise.resolve()},prepareForPlaybackSeek:function(){return Promise.resolve()},prepareForReplacementTrackSwitch:function(){return n=!1,Promise.resolve()},setSeekTarget:function(){},updateAppendWindow:function(){return Promise.resolve()},pruneAllSafely:function(){return Promise.resolve()},updateBufferTimestampOffset:function(){return Promise.resolve()},segmentRequestingCompleted:function(){}},r=!1,i=null,n=!1,s=x(o).getInstance(),c.on(u.Z.INIT_FRAGMENT_LOADED,y,t),t}j.__dashjs_factory_name=B;var H=c.Z.getClassFactory(j);function G(e){e=e||{};var t,n,r,i,s,c,h,m,p,g,y,_,v,E=this.context,T=(0,l.Z)(E).getInstance(),S=e.dashMetrics,w=e.mediaPlayerModel,L=e.fragmentModel,A=e.abrController,M=e.playbackController,D=e.textController,k=e.type,I=e.bufferController,R=e.representationController,C=e.settings;function P(){_=!0}function O(){_=!1}function x(e){if(!I.getIsBufferingCompleted()){N();var t=isNaN(e)?0:e;s=setTimeout(F,t)}}function N(){s&&(clearTimeout(s),s=null)}function F(){try{if(function(){try{return k===a.Z.TEXT&&!D.isTextEnabled()||M.isPaused()&&(!M.getStreamController().getInitialPlayback()||!M.getStreamController().getAutoPlay())&&!C.get().streaming.scheduling.scheduleWhilePaused}catch(e){return!1}}())return void N();if(function(){try{return!!_&&R.getCurrentRepresentationInfo()&&(isNaN(p)||g||(e=n.id,t=A.getMaxAllowedIndexFor(k,e),!(!isNaN(m)&&m==t||(r.info("Top quality "+k+" index has changed from "+m+" to "+t),m=t,0)))||function(){var e=R.getCurrentRepresentationInfo();return!k||!e||S.getCurrentBufferLevel(k)<Y()}())}catch(e){return!1}var e,t}()){var e=!1;v&&(e=A.checkPlaybackQuality(k,n.id)),e||(i=R.getCurrentRepresentationInfo(),y||i.quality!==p||g?(g?(r.debug("Switch track for "+k+", representation id = "+i.id),g=!1):r.debug("Quality has changed, get init request for representationid = "+i.id),T.trigger(u.Z.INIT_FRAGMENT_NEEDED,{representationId:i.id,sender:t},{streamId:n.id,mediaType:k}
vendor: 14,690 bytes, line 2
2),v=!1,y=!1):(r.debug("Media segment needed for ".concat(k," and stream id ").concat(n.id)),T.trigger(u.Z.MEDIA_FRAGMENT_NEEDED,{},{streamId:n.id,mediaType:k}),v=!0))}else x(M.getLowLatencyModeEnabled()?C.get().streaming.scheduling.lowLatencyTimeout:C.get().streaming.scheduling.defaultTimeout)}catch(e){x(M.getLowLatencyModeEnabled()?C.get().streaming.scheduling.lowLatencyTimeout:C.get().streaming.scheduling.defaultTimeout)}var i}function Y(){var e=NaN,t=R.getCurrentRepresentationInfo();return k&&t?(e=k===a.Z.TEXT?function(){try{if(D.isTextEnabled()){var e=R.getCurrentRepresentationInfo();if(isNaN(e.fragmentDuration)){var t=S.getCurrentSchedulingInfo(o.Z.SCHEDULING_INFO);return t?t.duration:0}return e.fragmentDuration}return 0}catch(e){return 0}}():k===a.Z.AUDIO&&c?function(){try{var e=S.getCurrentBufferLevel(a.Z.VIDEO),t=R.getCurrentRepresentationInfo();return isNaN(t.fragmentDuration)?e+1:Math.max(e+1,t.fragmentDuration)}catch(e){return 0}}():function(){try{var e=R.getCurrentRepresentationInfo().mediaInfo.streamInfo;return A.isPlayingAtTopQuality(e)?e.manifestInfo.duration>=C.get().streaming.buffer.longFormContentDurationThreshold?C.get().streaming.buffer.bufferTimeAtTopQualityLongForm:C.get().streaming.buffer.bufferTimeAtTopQuality:w.getStableBufferTime()}catch(e){return w.getStableBufferTime()}}(),e):e}function U(){B(!0)}function B(e){if(M&&L){var t=L.getRequests({state:b.FRAGMENT_MODEL_EXECUTED,time:M.getTime(),threshold:0})[0];t&&M.getTime()>=t.startTime&&((!h.mediaInfo||t.mediaInfo.type===h.mediaInfo.type&&t.mediaInfo.index!==h.mediaInfo.index)&&e&&T.trigger(u.Z.TRACK_CHANGE_RENDERED,{mediaType:k,oldMediaInfo:h.mediaInfo,newMediaInfo:t.mediaInfo,streamId:n.id}),t.quality===h.quality&&t.adaptationIndex===h.adaptationIndex||!e||(r.debug("Quality change rendered for streamId ".concat(n.id," and type ").concat(k)),T.trigger(u.Z.QUALITY_CHANGE_RENDERED,{mediaType:k,oldQuality:h.quality,newQuality:t.quality,streamId:n.id})),h={mediaInfo:t.mediaInfo,quality:t.quality,adaptationIndex:t.adaptationIndex})}}function j(){L.abortRequests(),N()}function H(){C.get().streaming.scheduling.scheduleWhilePaused||x()}function G(e){S.updatePlayListTraceMetrics({playbackspeed:e.playbackRate.toString()})}function Z(){v=!0,i=0,p=NaN,h={mediaInfo:void 0,quality:NaN,adaptationIndex:NaN},m=NaN,g=!1,y=!1,_=!0}return t={initialize:function(e){c=e,T.on(u.Z.URL_RESOLUTION_FAILED,j,t),T.on(f.Z.PLAYBACK_STARTED,H,t),T.on(f.Z.PLAYBACK_RATE_CHANGED,G,t),T.on(f.Z.PLAYBACK_TIME_UPDATED,U,t),T.on(f.Z.MANAGED_MEDIA_SOURCE_START_STREAMING,P,t),T.on(f.Z.MANAGED_MEDIA_SOURCE_END_STREAMING,O,t)},getType:function(){return k},getStreamId:function(){return n.id},setTimeToLoadDelay:function(e){i=e},getTimeToLoadDelay:function(){return i},setSwitchTrack:function(e){g=e},getSwitchTrack:function(){return g},startScheduleTimer:x,clearScheduleTimer:N,reset:function(){T.off(u.Z.URL_RESOLUTION_FAILED,j,t),T.off(f.Z.PLAYBACK_STARTED,H,t),T.off(f.Z.PLAYBACK_RATE_CHANGED,G,t),T.off(f.Z.PLAYBACK_TIME_UPDATED,U,t),T.off(f.Z.MANAGED_MEDIA_SOURCE_START_STREAMING,P,t),T.off(f.Z.MANAGED_MEDIA_SOURCE_END_STREAMING,O,t),N(),B(!1),Z(),n=null},getBufferTarget:Y,getPlaybackController:function(){return M},setCheckPlaybackQuality:function(e){v=e},setInitSegmentRequired:function(e){y=e},setLastInitializedQuality:function(e){p=e}},r=(0,d.Z)(E).getInstance().getLogger(t),Z(),n=e.streamInfo,t}G.__dashjs_factory_name="ScheduleController";var Z=c.Z.getClassFactory(G),$=n(7387);function z(e){var t,n,r,i,s,o,l=(e=e||{}).eventBus,u=e.events,c=e.abrController,d=e.dashMetrics,h=e.playbackController,m=e.timelineConverter,p=e.type,g=e.streamInfo,y=e.dashConstants,_=e.segmentsController,v=e.isDynamic,E=e.adapter;function b(){return p}function T(){return r}function S(){return o}function w(){n=null,r=!0,i=[],s=null}function L(e){return new Promise(function(t,n){var r=e.hasInitialization(),a=e.hasSegments(),s=[];s.push(_.updateInitData(e,r)),s.push(_.updateSegmentData(e,a)),Promise.all(s).then(function(n){var r;n[0]&&!n[0].error&&(e=function(e,t){return t&&!t.error&&t.representation?t.representation:e}(e,n[0])),n[1]&&!n[1].error&&(e=function(e,t){if(t&&!t.error){var n,r,i,a,s=t.segments,o=[],l=0;for(n=0,r=s?s.length:0;n<r;n++)i=s[n],(a=(0,$.TJ)(m,v,e,i.startTime,i.duration,i.timescale,i.media,i.mediaRange,l))&&(o.push(a),a=null,l++);return o.length>0&&(e.segments=o),e}}(e,n[1])),(r=e).mediaFinishedInformation=_.getMediaFinishedInformation(r),function(e){if(T()){var t,n,r=d.getCurrentManifestUpdate(),a=!1;if(r){for(var s=0;s<r.representationInfo.length;s++)if((t=r.representationInfo[s]).index===e.index&&t.mediaType===b()){a=!0;break}a||d.addManifestUpdateRepresentationInfo(e,b())}if(function(){for(var e=0,t=i.length;e<t;e++){var n=i[e].segmentInfoType;if(!i[e].hasInitialization()||(n===y.SEGMENT_BASE||n===y.BASE_URL)&&!i[e].segments)return!1}return!0}()){c.setPlaybackQuality(p,g,(n=o,i.indexOf(n)));var l=d.getCurrentDVRInfo(p);l&&d.updateManifestUpdateInfo({latency:l.range.end-h.getTime()}),d.getCurrentRepresentationSwitch(S().adaptation.type)||A(),D()}}}(e),t()}).catch(function(e){n(e)})})}function A(){!function(){if(!(c&&d&&h&&m))throw new Error(a.Z.MISSING_CONFIG_ERROR)}();var e=new Date,t=S(),n=1e3*h.getTime();t&&d.addRepresentationSwitch(t.adaptation.type,e,n,t.id),l.trigger(f.Z.REPRESENTATION_SWITCH,{mediaType:p,streamId:g.id,currentRepresentation:t,numberOfRepresentations:i.length},{streamId:g.id,mediaType:p})}function M(e){return null==e||e>=i.length?null:i[e]}function D(e){r=!1,l.trigger(u.DATA_UPDATE_COMPLETED,{data:n,currentRepresentation:o,error:e},{streamId:g.id,mediaType:p})}function k(e){o=e,s=E.convertRepresentationToRepresentationInfo(o)}function I(e){if(e.newDuration){var t=S();t&&t.adaptation.period&&(t.adaptation.period.duration=e.newDuration)}}return t={getStreamId:function(){return g.id},getType:b,getData:function(){return n},isUpdating:T,updateData:function(e,t,s,o,l){return new Promise(function(u,c){if(r=!0,i=t,n=e,k(M(l)),s!==a.Z.VIDEO&&s!==a.Z.AUDIO&&(s!==a.Z.TEXT||!o))return D(),void u();for(var d=[],f=0,h=i.length;f<h;f++){var m=i[f];d.push(L(m))}Promise.all(d).then(function(){k(M(l)),u()}).catch(function(e){c(e)})})},getCurrentRepresentation:S,getCurrentRepresentationInfo:function(){return s},getRepresentationForQuality:M,prepareQualityChange:function(e){k(M(e)),A()},reset:function(){l.off(f.Z.MANIFEST_VALIDITY_CHANGED,I,t),w()}},w(),l.on(f.Z.MANIFEST_VALIDITY_CHANGED,I,t),t}z.__dashjs_factory_name="RepresentationController";var q=c.Z.getClassFactory(z),W=n(3106),V=n(9326),K=n(7473),X=n(2594);function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var J=function e(){Q(this,e),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]};J.INITIAL_PLAYOUT_START_REASON="initial_playout",J.SEEK_START_REASON="seek",J.RESUME_FROM_PAUSE_START_REASON="resume",J.METRICS_COLLECTION_START_REASON="metrics_collection_start";var ee=function e(){Q(this,e),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null};ee.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",ee.REBUFFERING_REASON="rebuffering",ee.USER_REQUEST_STOP_REASON="user_request",ee.END_OF_PERIOD_STOP_REASON="end_of_period",ee.END_OF_CONTENT_STOP_REASON="end_of_content",ee.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",ee.FAILURE_STOP_REASON="failure";var te=n(7802);function ne(){return{ntpToUTC:function(e){var t=new Date(Date.UTC(1900,0,1,0,0,0));return new Date(t.getTime()+e).getTime()}}}ne.__dashjs_factory_name="TimeUtils";var re=c.Z.getSingletonFactory(ne);function ie(e){e=e||{};var t,n,r,i,c,h,m,p,g,y,_,v,E,S,w,L=this.context,A=(0,l.Z)(L).getInstance(),D=e.streamInfo,I=e.type,R=e.errHandler,C=e.mimeType,P=e.timelineConverter,O=e.adapter,x=e.manifestModel,N=e.mediaPlayerModel,F=e.fragmentModel,Y=e.abrController,B=e.playbackController,j=e.mediaController,G=e.textController,$=e.dashMetrics,z=e.settings,Q=e.boxParser,J=e.segmentBlacklistController;function ne(){return D.id}function ie(){return I}function ae(){return O.getIsTextTrack(p.getData())}function se(){c=[],i=null,S=0,g=!1,y=!1,_=!1,w=null}function oe(e){return!isNaN(e)&&!isNaN(D.duration)&&isFinite(D.duration)&&e>=D.start+D.duration}function le(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.sender)if(B.getIsManifestUpdateInProgress())he();else if((!ae()||G.isTextEnabled())&&h&&e.representationId&&!h.appendInitSegmentFromCache(e.representationId)){var n=p.getCurrentRepresentation();if(0===n.range)return void ue();var r=v?v.getInitRequest(i,n):null;r?F.executeRequest(r):t&&(m.setInitSegmentRequired(!0),he())}}function ue(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(B.getIsManifestUpdateInProgress()||h.getIsPruningInProgress())he();else{var n=fe();n?(g=!1,y=!1,ce(n)):de(t)}}function ce(e){isNaN(e.startTime+e.duration)||(S=e.startTime+e.duration),e.delayLoadingTime=(new Date).getTime()+m.getTimeToLoadDelay(),m.setTimeToLoadDelay(0),function(e){var t=e.url;return e.range&&(t=t.concat("_",e.range)),J.contains(t)}(e)?(n.warn("Fragment request url ".concat(e.url," for stream id ").concat(D.id," and media type ").concat(I," is on the ignore list and will be skipped")),he()):(n.debug("Next fragment request url for stream id ".concat(D.id," and media type ").concat(I," is ").concat(e.url)),F.executeRequest(e))}function de(e){var t,a=p.getCurrentRepresentation();if(!z.get().streaming.gaps.enableSeekFix||!g&&0!==B.getTime()||(r?r&&a.segmentInfoType===s.Z.SEGMENT_TIMELINE&&(t=v.getValidTimeAheadOfTargetTime(S,i,a,z.get().streaming.gaps.threshold)):t=v.getValidTimeAheadOfTargetTime(S,i,a,z.get().streaming.gaps.threshold),isNaN(t)||t===S)){if(v.isLastSegmentRequested(a,S)){var o=v.getCurrentIndex();return n.debug("Segment requesting for stream ".concat(D.id," has finished")),A.trigger(u.Z.STREAM_REQUESTING_COMPLETED,{segmentIndex:o},{streamId:D.id,mediaType:I}),h.segmentRequestingCompleted(o),void m.clearScheduleTimer()}e&&he()}else B.isSeeking()||0===B.getTime()?(n.warn("Adjusting playback time ".concat(t," because of gap in the manifest. Seeking by ").concat(t-S)),B.seek(t,!1,!1)):(n.warn("Adjusting buffering time ".concat(t," because of gap in the manifest. Adjusting time by ").concat(t-S)),xe(t),e&&he())}function fe(){var e,t=De();if(isNaN(S)||ie()===a.Z.TEXT&&!G.isTextEnabled())return null;if(v){var n=p&&t?p.getRepresentationForQuality(t.quality):null;e=g?v.getSegmentRequestForTime(i,n,S):y?v.repeatSegmentRequest(i,n):v.getNextSegmentRequest(i,n)}return e}function he(){m.startScheduleTimer(B.getLowLatencyModeEnabled()?z.get().streaming.scheduling.lowLatencyTimeout:z.get().streaming.scheduling.defaultTimeout)}function me(e){e.error||h.getIsBufferingCompleted()||h.updateBufferTimestampOffset(e.currentRepresentation)}function pe(e){$.addBufferState(I,e.state,m.getBufferTarget()),e.state!==o.Z.BUFFER_EMPTY||B.isSeeking()||(n.info("Buffer is empty! Stalling!"),$.pushPlayListTraceMetrics(new Date,ee.REBUFFERING_REASON))}function ge(e){F.syncExecutedRequestsWithBufferedRange(h.getBuffer().getAllBufferRanges(),D.duration),e.quotaExceeded&&e.from>B.getTime()&&xe(e.from),e.hasEnoughSpaceToAppend&&e.quotaExceeded&&m.startScheduleTimer()}function ye(e){if(e&&e.lastRequestAppended&&e.lastRequestAppended.url){var t=e.lastRequestAppended.url;e.lastRequestAppended.range&&(t=t.concat("_",e.lastRequestAppended.range)),n.warn("Blacklisting segment with url ".concat(t)),J.add(t)}}function _e(e){if(n.debug("Appended bytes for ".concat(e.mediaType," and stream id ").concat(e.streamId)),e.segmentType===k.w.INIT_SEGMENT_TYPE){var t=e.quality;m.setLastInitializedQuality(t),n.info("["+I+"] lastInitializedRepresentationInfo changed to "+e.quality)}w?ve(w):m.startScheduleTimer(0)}function ve(e){var t=F.getRequests({state:b.FRAGMENT_MODEL_LOADING});if(t&&t.length>0)return n.debug("Preparing for default quality switch: Waiting for ongoing segment request to be finished before applying switch."),void(w=e);h.updateBufferTimestampOffset(e).then(function(){m.setCheckPlaybackQuality(!1),i.segmentAlignment||i.subSegmentAlignment?m.startScheduleTimer():Pe(),w=null,_=!1}).catch(function(){w=null,_=!1})}function Ee(e){n.info("onFragmentLoadingAbandoned request: "+e.request.url+" has been aborted"),B.isSeeking()||m.getSwitchTrack()||_||(n.info("onFragmentLoadingAbandoned request: "+e.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),e.request&&e.request.isInitializationRequest()?m.setInitSegmentRequired(!0):xe(e.request.startTime+e.request.duration/2),m.startScheduleTimer(0))}function be(e){n.info("OnFragmentLoadingCompleted for stream id "+D.id+" and media type "+I+" - Url:",e.request?e.request.url:"undefined",e.request.range?", Range:"+e.request.range:""),ae()&&m.startScheduleTimer(0),e.error&&e.request.serviceLocation&&function(e){n.info("Fragment loading completed with an error"),e&&e.request&&e.request.type&&(e.request.type===k.w.INIT_SEGMENT_TYPE?le({representationId:e.request.representationId,sender:{}},!1):e.request.type===k.w.MEDIA_SEGMENT_TYPE&&(xe(e.request.startTime+e.request.duration/2),ue({},!1)))}(e)}function Te(){xe(B.getTime()),Me().startScheduleTimer()}function Se(e){var t=e.currentTrackInfo;if(t){var n=c.find(function(e){return e.index===t.index&&e.lang===t.lang});n&&Ae(n).then(function(){h.setIsBufferingCompleted(!1),xe(B.getTime()),m.setInitSegmentRequired(!0),m.startScheduleTimer()})}}function we(e){xe(e.quotaExceededTime),m.clearScheduleTimer()}function Le(){return h?h.getBuffer():null}function Ae(e){e===i||e&&i&&e.type!==i.type||(i=e);var t=O.getRealAdaptation(D,i),n=O.getVoRepresentations(i);if(p){var s,o=p.getData(),l=Y.getMaxAllowedIndexFor(I,D.id),u=Y.getMinAllowedIndexFor(I,D.id),c=null;return null!==o&&o.id===t.id||I===a.Z.TEXT?s=Y.getQualityFor(I,D.id):(c=Y.getThroughputHistory().getAverageThroughput(I,r)||Y.getInitialBitrateFor(I,D.id),s=Y.getQualityForBitrate(i,c,D.id)),void 0!==u&&s<u&&(s=u),s>l&&(s=l),p.updateData(t,n,I,i.isFragmented,s)}return Promise.resolve()}function Me(){return m}function De(e){var t;return void 0!==e?((0,W.SE)(e),t=p?p.getRepresentationForQuality(e):null):t=p?p.getCurrentRepresentation():null,O.convertRepresentationToRepresentationInfo(t)}function ke(){return!!h&&h.getIsBufferingCompleted()}function Ie(e){if(z.get().streaming.enableManifestTimescaleMismatchFix){var t=e.chunk,n=t.bytes,r=De(t.quality),i=p&&r?p.getRepresentationForQuality(r.quality):null;r&&i&&(i.timescale=Q.getMediaTimescaleFromMoov(n))}}function Re(e){var t=e.chunk,n=t.bytes,r=t.quality,i=De(r),a=p&&i?p.getRepresentationForQuality(i.qual
2ity):null;if(i&&a){var o;if(z.get().streaming.parseInbandPrft&&e.request.type===k.w.MEDIA_SEGMENT_TYPE){var l=function(e,t){var n=e.getBoxes("prft"),r=[];return n.forEach(function(e){r.push(function(e,t){var n="unknown";switch(e.flags){case 0:n=s.Z.PRODUCER_REFERENCE_TIME_TYPE.ENCODER;break;case 16:n=s.Z.PRODUCER_REFERENCE_TIME_TYPE.APPLICATION;break;case 24:n=s.Z.PRODUCER_REFERENCE_TIME_TYPE.CAPTURED}var r=1e3*e.ntp_timestamp_sec+e.ntp_timestamp_frac/Math.pow(2,32)*1e3;return{type:n,ntpTimestamp:r=re(L).getInstance().ntpToUTC(r),mediaTime:e.media_time/t}}(e,t))}),r}(o=o||Q.parse(n),a.timescale);l&&l.length&&A.trigger(f.Z.INBAND_PRFT,{data:l},{streamId:D.id,mediaType:I})}var c=O.getEventsFor(i.mediaInfo,null,D),d=O.getEventsFor(i,a,D);if(c&&c.length>0||d&&d.length>0){var h=F.getRequests({state:b.FRAGMENT_MODEL_EXECUTED,quality:r,index:t.index})[0],m=function(e,t,n,r){try{for(var i={},a=[],s=n.concat(r),o=0,l=s.length;o<l;o++)i[s[o].schemeIdUri+"/"+s[o].value]=s[o];var u=e.getBoxes("emsg");if(!u||0===u.length)return a;for(var c=e.getBox("sidx"),d=!c||isNaN(c.earliest_presentation_time)||isNaN(c.timescale)?t&&!isNaN(t.mediaStartTime)?t.mediaStartTime:0:c.earliest_presentation_time/c.timescale,f=Math.max(d,0),h=p.getCurrentRepresentation(),m=0,g=u.length;m<g;m++){var y=O.getEvent(u[m],i,f,h);y&&a.push(y)}return a}catch(e){return[]}}(o=o||Q.parse(n),h,c,d);A.trigger(u.Z.INBAND_EVENTS,{events:m},{streamId:D.id})}}}function Ce(){var e=B.getTime();z.get().streaming.buffer.flushBufferAtTrackSwitch&&B.seek(e+.001,!1,!0),xe(e),h.setSeekTarget(e),m.startScheduleTimer()}function Pe(){var e=B.getTime(),t=h.getContinuousBufferTimeForTargetTime(e);xe(isNaN(t)?e:t),m.startScheduleTimer()}function Oe(e){e&&!isNaN(e.time)&&(xe(e.time),h.setSeekTarget(e.time))}function xe(e){S=e,g=!0}return t={initialize:function(n,i,o){E=(0,te.Z)(L).create({events:u.Z,eventBus:A,streamInfo:D,timelineConverter:P,dashConstants:s.Z,segmentBaseController:e.segmentBaseController,type:I}),v=(0,V.Z)(L).create({streamInfo:D,type:I,timelineConverter:P,dashMetrics:$,mediaPlayerModel:N,baseURLController:e.baseURLController,errHandler:R,segmentsController:E,settings:z,boxParser:Q,events:u.Z,eventBus:A,errors:M,debug:(0,d.Z)(L).getInstance(),requestModifier:(0,K.Z)(L).getInstance(),dashConstants:s.Z,constants:a.Z,urlUtils:(0,X.Z)(L).getInstance()}),r=D.manifestInfo.isDynamic,v.initialize(r),Y.registerStreamType(I,t),p=q(L).create({streamInfo:D,type:I,abrController:Y,dashMetrics:$,playbackController:B,timelineConverter:P,dashConstants:s.Z,events:u.Z,eventBus:A,errors:M,isDynamic:r,adapter:O,segmentsController:E}),h=function(e,t){return e?e!==a.Z.TEXT||t?U(L).create({streamInfo:D,type:e,mediaPlayerModel:N,manifestModel:x,fragmentModel:F,errHandler:R,mediaController:j,representationController:p,adapter:O,textController:G,abrController:Y,playbackController:B,settings:z}):H(L).create({streamInfo:D,type:e,mimeType:C,fragmentModel:F,textController:G,errHandler:R,settings:z}):(R.error(new T.Z(M.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,M.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+"not properly defined")),null)}(I,o),h&&h.initialize(n),(m=Z(L).create({streamInfo:D,type:I,mimeType:C,adapter:O,dashMetrics:$,mediaPlayerModel:N,fragmentModel:F,abrController:Y,playbackController:B,textController:G,mediaController:j,bufferController:h,representationController:p,settings:z})).initialize(i),S=0,g=!1,y=!1},getStreamId:ne,getType:ie,isUpdating:function(){return!!p&&p.isUpdating()},getBufferController:function(){return h},dischargePreBuffer:function(){h.dischargePreBuffer()},getFragmentModel:function(){return F},getScheduleController:Me,getRepresentationController:function(){return p},getRepresentationInfo:De,getBufferLevel:function(){return h?h.getBufferLevel():0},isBufferingCompleted:ke,createBufferSinks:function(e){var t=Le();return t?Promise.resolve(t):h?h.createBufferSink(i,e):Promise.resolve(null)},updateStreamInfo:function(e){return D=e,ke()?Promise.resolve():h.updateAppendWindow()},getStreamInfo:function(){return D},selectMediaInfo:Ae,clearMediaInfoArray:function(){c=[]},addMediaInfo:function(e){-1===c.indexOf(e)&&c.push(e)},prepareTrackSwitch:function(){return new Promise(function(e){n.debug("Preparing track switch for type ".concat(I
2));var t=I===a.Z.TEXT||z.get().streaming.trackSwitchMode[I]===a.Z.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&B.getTimeToStreamEnd(D)>z.get().streaming.buffer.stallThreshold;if(h.getIsBufferingCompleted()&&!t)return h.prepareForNonReplacementTrackSwitch(i.codec).then(function(){A.trigger(u.Z.BUFFERING_COMPLETED,{},{streamId:D.id,mediaType:I})}).catch(function(){A.trigger(u.Z.BUFFERING_COMPLETED,{},{streamId:D.id,mediaType:I})}),void e();m.clearScheduleTimer(),m.setSwitchTrack(!0),t?(A.trigger(u.Z.BUFFER_REPLACEMENT_STARTED,{mediaType:I,streamId:D.id},{mediaType:I,streamId:D.id}),F.abortRequests(),h.prepareForReplacementTrackSwitch(i.codec).then(function(){var e=De();return h.updateBufferTimestampOffset(e)}).then(function(){Ce(),e()}).catch(function(){Ce(),e()})):h.prepareForNonReplacementTrackSwitch(i.codec).then(function(){Pe(),e()}).catch(function(){Pe(),e()})})},prepareQualityChange:function(e){w&&n.warn("Canceling queued representation switch to ".concat(w.quality," for ").concat(I)),n.debug("Preparing quality switch for type ".concat(I));var t=e.newQuality;_=!0,m.clearScheduleTimer(),p.prepareQualityChange(t);var r=De(t);e.reason&&e.reason.forceReplace?function(e){F.abortRequests(),A.trigger(u.Z.BUFFER_REPLACEMENT_STARTED,{mediaType:I,streamId:D.id},{mediaType:I,streamId:D.id}),m.setCheckPlaybackQuality(!1),h.prepareForForceReplacementQualitySwitch(e).then(function(){Ce(),w=null,_=!1}).catch(function(){Ce(),w=null,_=!1})}(r):e&&e.reason&&e.reason.forceAbandon?function(e){h.updateBufferTimestampOffset(e).then(function(){F.abortRequests(),y=!0,m.setCheckPlaybackQuality(!1),m.startScheduleTimer(),_=!1,w=null}).catch(function(){w=null,_=!1})}(r):z.get().streaming.buffer.fastSwitchEnabled?function(e){var t=B.getTime(),n=1.5*(isNaN(e.fragmentDuration)?1:e.fragmentDuration),r=F.getRequests({state:b.FRAGMENT_MODEL_EXECUTED,time:t+n,threshold:0})[0];if(r&&!ae()){var i=h.getBufferLevel(),a=Y.getAbandonmentStateFor(D.id,I);r.quality<e.quality&&i>=n&&a!==o.Z.ABANDON_LOAD?h.updateBufferTimestampOffset(e).then(function(){F.abortRequests(),xe(t+n),m.setCheckPlaybackQuality(!1),m.startScheduleTimer(),_=!1}).catch(function(){_=!1}):ve(e)}else ve(e)}(r):ve(r),$.pushPlayListTraceMetrics(new Date,ee.REPRESENTATION_SWITCH_STOP_REASON),$.createPlaylistTraceMetrics(r.id,1e3*B.getTime(),B.getPlaybackRate())},getMediaInfo:function(){return i},getMediaSource:function(){return h.getMediaSource()},setMediaSource:function(e){return h.setMediaSource(e,i)},getBuffer:Le,setExplicitBufferingTime:xe,finalisePlayList:function(e,t){$.pushPlayListTraceMetrics(e,t)},probeNextRequest:function(){var e=De(),t=p&&e?p.getRepresentationForQuality(e.quality):null;return v.getNextSegmentRequestIdempotent(i,t)},prepareInnerPeriodPlaybackSeeking:function(e){return new Promise(function(t){if(h.hasBufferAtTime(e.seekTime))return h.pruneBuffer(),oe(h.getContinuousBufferTimeForTargetTime(e.seekTime))&&h.setIsBufferingCompleted(!0),void t();m.clearScheduleTimer(),F.abortRequests(),h.prepareForPlaybackSeek().then(function(){var t=h.getAllRangesWithSafetyFactor(e.seekTime);return h.clearBuffers(t)}).then(function(){var n=h.getContinuousBufferTimeForTargetTime(e.seekTime);if(oe(n))h.setIsBufferingCompleted(!0),t();else{var r=isNaN(n)?e.seekTime:n;xe(r),h.setSeekTarget(r);var i=[];i.push(h.updateAppendWindow());var a=De();i.push(h.updateBufferTimestampOffset(a)),Promise.all(i).then(function(){m.setInitSegmentRequired(!0),m.setCheckPlaybackQuality(!1),m.startScheduleTimer(),t()})}}).catch(function(e){n.error(e)})})},prepareOuterPeriodPlaybackSeeking:function(){return new Promise(function(e,t){try{m.clearScheduleTimer(),F.abortRequests(),h.prepareForPlaybackSeek().then(function(){return h.pruneAllSafely()}).then(function(){e()})}catch(e){t(e)}})},reset:function(e,n){v&&v.reset(),h&&(h.reset(e,n),h=null),m&&(m.reset(),m=null),p&&(p.reset(),p=null),E&&(E=null),Y&&Y.unRegisterStreamType(ne(),I),A.off(u.Z.DATA_UPDATE_COMPLETED,me,t),A.off(u.Z.INIT_FRAGMENT_NEEDED,le,t),A.off(u.Z.MEDIA_FRAGMENT_NEEDED,ue,t),A.off(u.Z.INIT_FRAGMENT_LOADED,Ie,t),A.off(u.Z.MEDIA_FRAGMENT_LOADED,Re,t),A.off(u.Z.BUFFER_LEVEL_STATE_CHANGED,pe,t),A.off(u.Z.BUFFER_CLEARED,ge,t),A.off(u.Z.SEEK_TARGET,Oe,t),A.off(u.Z.FRAGMENT_LOADING_ABANDONED,Ee,t),A.off(u.Z.FRAGMENT_LOADING_COMPLETED,be,t),A.off(u.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,Te,t),A.off(u.Z.SET_NON_FRAGMENTED_TEXT,Se,t),A.off(u.Z.QUOTA_EXCEEDED,we,t),A.off(u.Z.SOURCE_BUFFER_ERROR,ye,t),A.off(u.Z.BYTES_APPENDED_END_FRAGMENT,_e,t),se(),I=null,D=null}},n=(0,d.Z)(L).getInstance().getLogger(t),se(),A.on(u.Z.DATA_UPDATE_COMPLETED,me,t,{priority:l.Z.EVENT_PRIORITY_HIGH}),A.on(u.Z.INIT_FRAGMENT_NEEDED,le,t),A.on(u.Z.MEDIA_FRAGMENT_NEEDED,ue,t),A.on(u.Z.INIT_FRAGMENT_LOADED,Ie,t),A.on(u.Z.MEDIA_FRAGMENT_LOADED,Re,t),A.on(u.Z.BUFFER_LEVEL_STATE_CHANGED,pe,t),A.on(u.Z.BUFFER_CLEARED,ge,t),A.on(u.Z.SEEK_TARGET,Oe,t),A.on(u.Z.FRAGMENT_LOADING_ABANDONED,Ee,t),A.on(u.Z.FRAGMENT_LOADING_COMPLETED,be,t),A.on(u.Z.QUOTA_EXCEEDED,we,t),A.on(u.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,Te,t),A.on(u.Z.SET_NON_FRAGMENTED_TEXT,Se,t),A.on(u.Z.SOURCE_BUFFER_ERROR,ye,t),A.on(u.Z.BYTES_APPENDED_END_FRAGMENT,_e,t),t}ie.__dashjs_factory_name="StreamProcessor";var ae=c.Z.getClassFactory(ie),se=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.qual
vendor: 5,380 bytes, line 2
2ity=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null},oe=n(9032);function le(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){e=e||{};var t,n,r=this.context,i=e.requestModifier,s=e.lowLatencyThroughputModel,o=e.boxParser,l=(0,D.Z)(r).getInstance();function u(e){var t,r=new Date,u=e.request,f=new Headers;if(u.range&&f.append("Range","bytes="+u.range),e.headers)for(var h in e.headers){var m=e.headers[h];m&&f.append(h,m)}u.requestStartDate||(u.requestStartDate=r),i&&i.modifyRequestHeader&&i.modifyRequestHeader({setRequestHeader:function(e,t){f.append(e,t)}},{url:e.url}),"function"==typeof window.AbortController&&(t=new AbortController,e.abortController=t,t.signal.onabort=e.onabort);var p={method:e.method,headers:f,credentials:e.withCredentials?"include":void 0,signal:t?t.signal:void 0},g=l.get().streaming.abr.fetchThroughputCalculationMode,y=Date.now(),_=0;new Promise(function(e){if(g===a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&s&&(_=s.getThroughputCapacityDelayMS(u,1e3*n.getCurrentBufferLevel(u.mediaType))))return setTimeout(e,_);e()}).then(function(){var t=Date.now();fetch(e.url,p).then(function(r){e.response||(e.response={}),e.response.status=r.status,e.response.statusText=r.statusText,e.response.responseURL=r.url,r.ok||e.onerror();var i,l="",f=function(e){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=le(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}(r.headers.keys());try{for(f.s();!(i=f.n()).done;){var h=i.value;l+=h+": "+r.headers.get(h)+"\r\n"}}catch(e){f.e(e)}finally{f.f()}if(e.response.responseHeaders=l,!r.body)return r.arrayBuffer().then(function(t){e.response.response=t;var n={loaded:t.byteLength,total:t.byteLength,stream:!1};e.progress(n),e.onload(),e.onend()});var m,p,v,E,b=parseInt(r.headers.get("Content-Length"),10),T=0,S=!1,w=new Uint8Array,L=0;if(g===a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&s){var A=t,M=0,D=(E=2,function(e){if(Array.isArray(e))return e}(v=r.body.tee())||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return n}}(v,E)||le(v,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=D[0],I=D[1];m=k.getReader(),p=[],m.read().then(function r(i){var a=i.value,o=i.done;if(M=Date.now(),a&&a.length){var c=M-A,d=a.length;p.push({chunkDownloadTimeRelativeMS:M-t,chunkDownloadDurationMS:c,chunkBytes:d,kbps:Math.round(8*d/(c/1e3)),bufferLevel:n.getCurrentBufferLevel(u.mediaType)})}if(o){var f=M-t,h=p.reduce(function(e,t){return e+t.chunkBytes},0);return s.addMeasurement(u,f,p,y,_,l),void e.progress({loaded:h,total:h,lengthComputable:!0,time:s.getEstimatedDownloadDurationMS(u),stream:!0})}return A=Date.now(),m.read().then(r)}),e.reader=I.getReader()}else e.reader=r.body.getReader();var R=[],C=[],P=[],O=!0;c(e,function t(n){var r=n.value;if(n.done){if(w){if(g!==a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST){var i=null,s=null;g===a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING?(i=function(e,t){try{var n,r;n=e.filter(function(t,n){return n<e.length-1}),r=t.filter(function(e,n){return n<t.length-1});var i=[];if(n.length>1){for(var a=0,s=0,o=0;o<n.length;o++)if(n[o]&&r[o]){var l=r[o].ts-n[o].ts;if(l>1)i.push(8*r[o].bytes/l),s=0;else{0===s&&(s=n[o].ts,a=0);var u=r[o].ts-s;u>1?(a+=r[o].bytes,i.push(8*a/u),s=0):a+=r[o].bytes}}if(i.length>0)return i.reduce(function(e,t){return e+t},0)/i.length}return null}catch(e){return null}}(C,P),i&&(s=8*T/i)):g===a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA&&(s=d(R,T)),e.progress({loaded:T,total:isNaN(b)?T:b,lengthComputable:!0,time:s,stream:!0})}e.response.response=w.buffer}return e.onload(),void e.onend()}if(r&&r.length>0){w=function(e,t){if(0===e.length)return t;var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(w,r),T+=r.length,R.push({ts:Date.now(),bytes:r.length}),g===a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING&&O&&o.findLastTopIsoBoxCompleted(["moof"],w,L).found&&(O=!1,C.push({ts:performance.now(),bytes:r.length}));var l=o.findLastTopIsoBoxCompleted(["moov","mdat"],w,L);if(l.found){var u,f=l.lastCompletedOffset+l.size;g!==a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING||O||(O=!0,P.push({ts:performance.now(),bytes:w.length}
vendor: 1,428 bytes, line 2
2)),f===w.length?(u=w,w=new Uint8Array):(u=new Uint8Array(w.subarray(0,f)),w=w.subarray(f)),e.progress({data:u.buffer,lengthComputable:!1,noTrace:!0}),L=0}else L=l.lastCompletedOffset,S||(e.progress({lengthComputable:!1,noTrace:!0}),S=!0)}c(e,t)})}).catch(function(t){e.onerror&&e.onerror(t)})})}function c(e,t){e.reader.read().then(t).catch(function(t){e.onerror&&200===e.response.status&&e.onerror(t)})}function d(e,t){try{if((e=e.filter(function(n){return n.bytes>t/4/e.length})).length>1){var n=0,r=(e[e.length-1].ts-e[0].ts)/e.length;return e.forEach(function(t,i){var a=e[i+1];if(a){var s=a.ts-t.ts;n+=s<r?s:0}}),n}return null}catch(e){return null}}return t={load:function(e){i&&i.modifyRequest?(0,K.k)(e,i).then(function(){return u(e)}):u(e)},abort:function(e){if(e.abortController)e.abortController.abort();else if(e.reader)try{e.reader.cancel(),e.onabort()}catch(e){}},calculateDownloadedTime:d,setup:function(e){n=e.dashMetrics}},t}ce.__dashjs_factory_name="FetchLoader";var de=c.Z.getClassFactory(ce),fe=n(1180);function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.co
vendor: 28,553 bytes, line 2
2decs=null,this.mimeType=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.mediaFinishedInformation={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN},this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0,this.frameRate=null}var t;return(t=[{key:"hasInitialization",value:function(){return null!==this.initialization||null!==this.range}},{key:"hasSegments",value:function(){return this.segmentInfoType!==s.Z.BASE_URL&&this.segmentInfoType!==s.Z.SEGMENT_BASE&&!this.indexRange}}])&&he(e.prototype,t),e}(),pe=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.period=null,this.index=-1,this.type=null},ge=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null,this.nextPeriodId=null};ge.DEFAULT_ID="defaultId";var ye=ge,_e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.publishTime=null,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN},ve=n(2610),Ee=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="",this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN},be=function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=n||t||"",this.dvbPriority=r||1,this.dvbWeight=i||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0,this.queryParams={}};be.DEFAULT_DVB_PRIORITY=1,be.DEFAULT_DVB_WEIGHT=1;var Te=be,Se=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri="",this.presentationTimeOffset=0},we=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.inband=!1,this.type="encoder",this.applicationScheme=null,this.wallClockTime=null,this.presentationTime=NaN,this.UTCTiming=null},Le=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultServiceLocation=null,this.defaultServiceLocationArray=[],this.queryBeforeStart=!1,this.serverUrl=null,this.clientRequirement=!0};function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri=null,this.value=null,this.id=null}var t;return(t=[{key:"init",value:function(e){return e&&(this.schemeIdUri=e.schemeIdUri?e.schemeIdUri:null,this.value=e.value?e.value:null,this.id=e.id?e.id:null,e[s.Z.DVB_URL]&&(this.dvbUrl=e[s.Z.DVB_URL]),e[s.Z.DVB_MIMETYPE]&&(this.dvbMimeType=e[s.Z.DVB_MIMETYPE]),e[s.Z.DVB_FONTFAMILY]&&(this.dvbFontFamily=e[s.Z.DVB_FONTFAMILY])),this}}])&&Ae(e.prototype,t),e}(),De=n(3101),ke=n.n(De);function Ie(){return{areEqual:function(e,t){return ke()(e,t)}}}Ie.__dashjs_factory_name="ObjectUtils";var Re=c.Z.getSingletonFactory(Ie),Ce=n(7803),Pe=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=n||null,this.queryParams={}},Oe=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=n||null,this.ttl=r||NaN,this.queryParams={}};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach(function(t){Fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Ue(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Ue(e,t){if(e){if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function je(){var e,t,n,r,i=this.context,o=(0,X.Z)(i).getInstance(),l=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function u(e,t){if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");if(e.Representation_asArray&&e.Representation_asArray.length){var n=v(e.Representation_asArray[0]);if(n&&n.length>0&&Ce.Y.indexOf(n[0].schemeIdUri)>=0)return t===a.Z.IMAGE}if(e.ContentComponent_asArray&&e.ContentComponent_asArray.length>0){if(e.ContentComponent_asArray.length>1)return t===a.Z.MUXED;if(e.ContentComponent_asArray[0].contentType===t)return!0}var r=t===a.Z.TEXT?new RegExp("(ttml|vtt|wvtt|stpp)"):new RegExp(t);if(e.Representation_asArray&&e.Representation_asArray.length){var i=e.Representation_asArray[0].codecs;if(r.test(i))return!0}if(e.hasOwnProperty(s.Z.MIME_TYPE))return r.test(e.mimeType);if(e.Representation_asArray)for(var o,l=0;l<e.Representation_asArray.length;l++)if((o=e.Representation_asArray[l]).hasOwnProperty(s.Z.MIME_TYPE))return r.test(o.mimeType);return!1}function c(e){if(!e)throw new Error("adaptation is not defined");if(e.hasOwnProperty(s.Z.SEGMENT_TEMPLATE)||e.hasOwnProperty(s.Z.SEGMENT_TIMELINE)||e.hasOwnProperty(s.Z.SEGMENT_LIST)||e.hasOwnProperty(s.Z.SEGMENT_BASE))return!0;if(e.Representation_asArray&&e.Representation_asArray.length>0){var t=e.Representation_asArray[0];if(t.hasOwnProperty(s.Z.SEGMENT_TEMPLATE)||t.hasOwnProperty(s.Z.SEGMENT_TIMELINE)||t.hasOwnProperty(s.Z.SEGMENT_LIST)||t.hasOwnProperty(s.Z.SEGMENT_BASE))return!0}return!1}function f(e){return u(e,a.Z.VIDEO)}function h(e){return u(e,a.Z.TEXT)}function m(e){return u(e,a.Z.IMAGE)}function p(e){return e&&Array.isArray(e.Representation_asArray)&&e.Representation_asArray.sort(function(e,t){return e.bandwidth-t.bandwidth}),e}function g(e,t){return e&&e.Period_asArray&&l(t)&&e.Period_asArray[t]?e.Period_asArray[t].AdaptationSet_asArray:[]}function y(e){return e&&e.Period_asArray?e.Period_asArray:[]}function _(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===s.Z.DYNAMIC),t}function v(e){return e&&e.EssentialProperty_asArray&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map(function(e){return{schemeIdUri:e.schemeIdUri,value:e.value}}):null}function E(e){if(!e||!e.S_asArray)return NaN;var t=e.S_asArray[0],n=e.S_asArray[1];return t.hasOwnProperty("d")?t.d:n.t-t.t}function b(e,t){if(!e)throw new Error("Period cannot be null or undefined");var n=ye.DEFAULT_ID+"_"+t;return e.hasOwnProperty(s.Z.ID)&&e.id.length>0&&"__proto__"!==e.id&&(n=e.id),n}function S(e,t,n){var r,i=[];if(!e)return i;for(r=0;r<e.length;r++){var o=new Se;if(o.timescale=1,o.representation=t,!e[r].hasOwnProperty(a.Z.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");o.schemeIdUri=e[r].schemeIdUri,e[r].hasOwnProperty(s.Z.TIMESCALE)&&(o.timescale=e[r].timescale),e[r].hasOwnProperty(s.Z.VALUE)&&(o.value=e[r].value),i.push(o),o.period=n}return i}function w(e){var t=[],n=e.BaseURL_asArray||[e.baseUri],r=!1;return n.some(function(n){if(n){var i=new Te,a=n.__text||n;return o.isRelative(a)&&(r=!0,e.baseUri&&(a=o.resolve(a,e.baseUri))),i.url=a,n.hasOwnProperty(s.Z.SERVICE_LOCATION)&&n.serviceLocation.length?i.serviceLocation=n.serviceLocation:i.serviceLocation=a,n.hasOwnProperty(s.Z.DVB_PRIORITY)&&(i.dvbPriority=n[s.Z.DVB_PRIORITY]),n.hasOwnProperty(s.Z.DVB_WEIGHT)&&(i.dvbWeight=n[s.Z.DVB_WEIGHT]),n.hasOwnProperty(s.Z.AVAILABILITY_TIME_OFFSET)&&(i.availabilityTimeOffset=n[s.Z.AVAILABILITY_TIME_OFFSET]),n.hasOwnProperty(s.Z.AVAILABILITY_TIME_COMPLETE)&&(i.availabilityTimeComplete="false"!==n[s.Z.AVAILABILITY_TIME_COMPLETE]),t.push(i),r}}),t}function L(e){var t=new Le;return t.serverUrl=e.__text,e.hasOwnProperty(s.Z.DEFAULT_SERVICE_LOCATION)&&(t.defaultServiceLocation=e[s.Z.DEFAULT_SERVICE_LOCATION],t.defaultServiceLocationArray=t.defaultServiceLocation.split(" ")),e.hasOwnProperty(s.Z.QUERY_BEFORE_START)&&(t.queryBeforeStart="true"===e[s.Z.QUERY_BEFORE_START].toLowerCase()),e.hasOwnProperty(s.Z.CLIENT_REQUIREMENT)&&(t.clientRequirement="false"!==e[s.Z.CLIENT_REQUIREMENT].toLowerCase()),t}return e={getIsTypeOf:u,getIsText:h,getIsFragmented:c,getProducerReferenceTimesForAdaptation:function(e){var t=e&&e.hasOwnProperty(s.Z.PRODUCERREFERENCETIME_ASARRAY)?e[s.Z.PRODUCERREFERENCETIME_ASARRAY]:[];(e&&e.hasOwnProperty(s.Z.REPRESENTATION_ASARRAY)?e[s.Z.REPRESENTATION_ASARRAY]:[]).forEach(function(e){var n;e.hasOwnProperty(s.Z.PRODUCERREFERENCETIME_ASARRAY)&&t.push.apply(t,function(e){if(Array.isArray(e))return Be(e)}(n=e[s.Z.PRODUCERREFERENCETIME_ASARRAY])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||Ue(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())});var n=[];return t.forEach(function(e){var t=new we;e.hasOwnProperty(s.Z.ID)&&(t[s.Z.ID]=e[s.Z.ID],e.hasOwnProperty(s.Z.WALL_CLOCK_TIME)&&(t[s.Z.WALL_CLOCK_TIME]=e[s.Z.WALL_CLOCK_TIME],e.hasOwnProperty(s.Z.PRESENTATION_TIME)&&(t[s.Z.PRESENTATION_TIME]=e[s.Z.PRESENTATION_TIME],e.hasOwnProperty(s.Z.INBAND)&&(t[s.Z.INBAND]="false"!==e[s.Z.INBAND]),e.hasOwnProperty(s.Z.TYPE)&&(t[s.Z.TYPE]=e[s.Z.TYPE]),n.push(t))))}),n},getLanguageForAdaptation:function(e){var t="";return e&&e.hasOwnProperty(s.Z.LANG)&&(t=e.lang),t},getViewpointForAdaptation:function(e){return e&&e.hasOwnProperty(s.Z.VIEWPOINT_ASARRAY)&&e[s.Z.VIEWPOINT_ASARRAY].length?e[s.Z.VIEWPOINT_ASARRAY].map(function(e){return(new Me).init(e)}):[]},getRolesForAdaptation:function(e){return e&&e.hasOwnProperty(s.Z.ROLE_ASARRAY)&&e[s.Z.ROLE_ASARRAY].length?e[s.Z.ROLE_ASARRAY].map(function(e){return(new Me).init(e)}):[]},getAccessibilityForAdaptation:function(e){return e&&e.hasOwnProperty(s.Z.ACCESSIBILITY_ASARRAY)&&e[s.Z.ACCESSIBILITY_ASARRAY].length?e[s.Z.ACCESSIBILITY_ASARRAY].map(function(e){return(new Me).init(e)}):[]},getAudioChannelConfigurationForAdaptation:function(e){return e&&e.hasOwnProperty(s.Z.AUDIOCHANNELCONFIGURATION_ASARRAY)&&e[s.Z.AUDIOCHANNELCONFIGURATION_ASARRAY].length?e[s.Z.AUDIOCHANNELCONFIGURATION_ASARRAY].map(function(e){return(new Me).init(e)}):[]},getAudioChannelConfigurationForRepresentation:function(e){return e&&e.hasOwnProperty(s.Z.AUDIOCHANNELCONFIGURATION_ASARRAY)&&e[s.Z.AUDIOCHANNELCONFIGURATION_ASARRAY].length?e[s.Z.AUDIOCHANNELCONFIGURATION_ASARRAY].map(function(e){return(new Me).init(e)}):[]},getAdaptationForIndex:function(e,t,n){var r=g(t,n);return r.length>0&&l(e)?r[e]:null},getIndexForAdaptation:function(e,t,n){if(!e)return-1;for(var r=g(t,n),a=0;a<r.length;a++)if(Re(i).getInstance().areEqual(r[a],e))return a;return-1},getAdaptationForId:function(e,t,n){var r,i,a=g(t,n);for(r=0,i=a.length;r<i;r++)if(a[r].hasOwnProperty(s.Z.ID)&&a[r].id===e)return a[r];return null},getAdaptationsForType:function(e,t,n){var r,i,a=g(e,t),s=[];for(r=0,i=a.length;r<i;r++)u(a[r],n)&&s.push(p(a[r]));return s},getRealPeriods:y,getRealPeriodForIndex:function(e,t){var n=y(t);return n.length>0&&l(e)?n[e]:null},getCodec:function(e,t,n){var r=null;if(e&&e.Representation_asArray&&e.Representation_asArray.length>0){var i=l(t)&&t>=0&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];i&&(r=i.mimeType+';codecs="'+i.codecs+'"',n&&void 0!==i.width&&(r+=';width="'+i.width+'";height="'+i.height+'"'))}return r&&(r=r.replace(/\sprofiles=[^;]*/g,"")),r},getSelectionPriority:function(e){try{var t=e&&void 0!==e.selectionPriority?parseInt(e.selectionPriority):1;return isNaN(t)?1:t}catch(e){return 1}},getMimeType:function(e){return e&&e.Representation_asArray&&e.Representation_asArray.length>0?e.Representation_asArray[0].mimeType:null},getKID:function(e){return e&&e.hasOwnProperty(s.Z.CENC_DEFAULT_KID)?e[s.Z.CENC_DEFAULT_KID]:null},getLabelsForAdaptation:function(e){if(!e||!Array.isArray(e.Label_asArray))return[];for(var t=[],n=0;n<e.Label_asArray.length;n++)t.push({lang:e.Label_asArray[n].lang,text:e.Label_asArray[n].__text||e.Label_asArray[n]});return t},getContentProtectionData:function(e){return e&&e.hasOwnProperty(s.Z.CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null},getIsDynamic:_,getId:function(e){return e&&e[s.Z.ID]||null},hasProfile:function(e,t){var n=!1;return e&&e.profiles&&e.profiles.length>0&&(n=-1!==e.profiles.indexOf(t)),n},getDuration:function(e){return e&&e.hasOwnProperty(s.Z.MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:e&&"dynamic"==e.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(e){return e&&e.bandwidth?e.bandwidth:NaN},getManifestUpdatePeriod:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=NaN;return e&&e.hasOwnProperty(s.Z.MINIMUM_UPDATE_PERIOD)&&(n=e.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-t,1)},getPublishTime:function(e){return e&&e.hasOwnProperty(s.Z.PUBLISH_TIME)?new Date(e[s.Z.PUBLISH_TIME]):null},getRepresentationCount:function(e){return e&&Array.isArray(e.Representation_asArray)?e.Representation_asArray.length:0},getBitrateListForAdaptation:function(e){var t=p(e);return(t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray:[]).map(function(e){return{bandwidth:e.bandwidth,width:e.width||0,height:e.height||0,scanType:e.scanType||null,id:e.id||null}})},getRepresentationFor:function(e,t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0&&l(e)?t.Representation_asArray[e]:null},getRepresentationsForAdaptation:function(e){var t,n,r,i,a=[],o=function(e){if(e&&e.period&&l(e.period.index)){var t=e.period.mpd.manifest.Period_asArray[e.period.index];if(t&&t.AdaptationSet_asArray&&l(e.index))return p(t.AdaptationSet_asArray[e.index])}}(e);if(o&&o.Representation_asArray){if(e&&e.period&&l(e.period.index)){var u=w(e.period.mpd.manifest);u&&(n=u[0])}for(var d=0,f=o.Representation_asArray.length;d<f;++d){var m=o.Representation_asArray[d],g=new me;if(g.index=d,g.adaptation=e,m.hasOwnProperty(s.Z.ID)&&(g.id=m.id),m.hasOwnProperty(s.Z.CODECS)&&(g.codecs=m.codecs),m.hasOwnProperty(s.Z.MIME_TYPE)&&(g.mimeType=m[s.Z.MIME_TYPE]),m.hasOwnProperty(s.Z.CODEC_PRIVATE_DATA)&&(g.codecPrivateData=m.codecPrivateData),m.hasOwnProperty(s.Z.BANDWITH)&&(g.bandwidth=m.bandwidth),m.hasOwnProperty(s.Z.WIDTH)&&(g.width=m.width),m.hasOwnProperty(s.Z.HEIGHT)&&(g.height=m.height),m.hasOwnProperty(s.Z.SCAN_TYPE)&&(g.scanType=m.scanType),m.hasOwnProperty(s.Z.MAX_PLAYOUT_RATE)&&(g.maxPlayoutRate=m.maxPlayoutRate),m.hasOwnProperty(s.Z.SEGMENT_BASE)?(t=m.SegmentBase,g.segmentInfoType=s.Z.SEGMENT_BASE):m.hasOwnProperty(s.Z.SEGMENT_LIST)?(t=m.SegmentList).hasOwnProperty(s.Z.SEGMENT_TIMELINE)?g.segmentInfoType=s.Z.SEGMENT_TIMELINE:g.segmentInfoType=s.Z.SEGMENT_LIST:m.hasOwnProperty(s.Z.SEGMENT_TEMPLATE)?((t=m.SegmentTemplate).hasOwnProperty(s.Z.SEGMENT_TIMELINE)?g.segmentInfoType=s.Z.SEGMENT_TIMELINE:g.segmentInfoType=s.Z.SEGMENT_TEMPLATE,t.hasOwnProperty(s.Z.INITIALIZATION_MINUS)&&(g.initialization=t.initialization.split("$Bandwidth$").join(m.bandwidth).split("$RepresentationID$").join(m.id))):g.segmentInfoType=s.Z.BASE_URL,g.essentialProperties=v(m),t){if(t.hasOwnProperty(s.Z.INITIALIZATION)){var y=t.Initialization;y.hasOwnProperty(s.Z.SOURCE_URL)&&(g.initialization=y.sourceURL),y.hasOwnProperty(s.Z.RANGE)&&(g.range=y.range)}else h(o)&&c(o)&&o.mimeType&&-1===o.mimeType.indexOf("application/mp4")&&(g.range=0);t.hasOwnProperty(s.Z.TIMESCALE)&&(g.timescale=t.timescale),t.hasOwnProperty(s.Z.DURATION)?g.segmentDuration=t.duration/g.timescale:m.hasOwnProperty(s.Z.SEGMENT_TEMPLATE)&&(t=m.SegmentTemplate).hasOwnProperty(s.Z.SEGMENT_TIMELINE)&&(g.segmentDuration=E(t.SegmentTimeline)/g.timescale),t.hasOwnProperty(s.Z.MEDIA)&&(g.media=t.media),t.hasOwnProperty(s.Z.START_NUMBER)&&(g.startNumber=t.startNumber),t.hasOwnProperty(s.Z.INDEX_RANGE)&&(g.indexRange=t.indexRange),t.hasOwnProperty(s.Z.PRESENTATION_TIME_OFFSET)&&(g.presentationTimeOffset=t.presentationTimeOffset/g.timescale),t.hasOwnProperty(s.Z.AVAILABILITY_TIME_OFFSET)?g.availabilityTimeOffset=t.availabilityTimeOffset:n&&void 0!==n.availabilityTimeOffset&&(g.availabilityTimeOffset=n.availabilityTimeOffset),t.hasOwnProperty(s.Z.AVAILABILITY_TIME_COMPLETE)?g.availabilityTimeComplete="false"!==t.availabilityTimeComplete:n&&void 0!==n.availabilityTimeComplete&&(g.availabilityTimeComplete=n.availabilityTimeComplete)}g.MSETimeOffset=(i=(r=g).presentationTimeOffset,r.adaptation.period.start-i),g.path=[e.period.index,e.index,d],a.push(g)}}return a},getAdaptationsForPeriod:function(e){var n,r,i,o=e&&l(e.index)?e.mpd.manifest.Period_asArray[e.index]:null,c=[];if(o&&o.AdaptationSet_asArray)for(i=0;i<o.AdaptationSet_asArray.length;i++)r=o.AdaptationSet_asArray[i],n=new pe,r.hasOwnProperty(s.Z.ID)&&(n.id=r.id),n.index=i,n.period=e,u(r,a.Z.MUXED)?n.type=a.Z.MUXED:u(r,a.Z.AUDIO)?n.type=a.Z.AUDIO:f(r)?n.type=a.Z.VIDEO:h(r)?n.type=a.Z.TEXT:m(r)?n.type=a.Z.IMAGE:t.warn("Unknown Adaptation stream type"),c.push(n);return c},getRegularPeriods:function(e){var r,i,o=!!e&&_(e.manifest),l=[],u=null,c=null,d=null,f=null;for(i=0,r=e&&e.manifest&&e.manifest.Period_asArray?e.manifest.Period_asArray.length:0;i<r;i++)(c=e.manifest.Period_asArray[i]).hasOwnProperty(s.Z.START)?(f=new ye).start=c.start:null!==u&&u.hasOwnProperty(s.Z.DURATION)&&null!==d?(f=new ye).start=parseFloat((d.start+d.duration).toFixed(5)):0!==i||o||((f=new ye).start=0),null!==d&&isNaN(d.duration)&&(null!==f?d.duration=parseFloat((f.start-d.start).toFixed(5)):t.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==f&&(f.id=b(c,i),f.index=i,f.mpd=e,c.hasOwnProperty(s.Z.DURATION)&&(f.duration=c.duration),d&&(d.nextPeriodId=f.id),l.push(f),u=c,d=f),c=null,f=null;return 0===l.length||null!==d&&isNaN(d.duration)&&(d.duration=parseFloat((function(e){!function(){if(!n||!n.hasOwnProperty("error"))throw new Error(a.Z.MISSING_CONFIG_ERROR)}();var t,r=_(e.mpd.manifest);return e.mpd.manifest.mediaPresentationDuration?t=e.mpd.manifest.mediaPresentationDuration:e.duration?t=e.duration:r?t=Number.POSITIVE_INFINITY:n.error(new T.Z(M.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",e)),t}(d)-d.start).toFixed(5))),l},getMpd:function(e){var t=new _e;return e&&(t.manifest=e,e.hasOwnProperty(s.Z.AVAILABILITY_START_TIME)?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):e.loadedTime&&(t.availabilityStartTime=new Date(e.loadedTime.getTime())),e.hasOwnProperty(s.Z.AVAILABILITY_END_TIME)&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty(s.Z.MINIMUM_UPDATE_PERIOD)&&(t.minimumUpdatePeriod=e.minimumUpdatePeriod),e.hasOwnProperty(s.Z.MEDIA_PRESENTATION_DURATION)&&(t.mediaPresentationDuration=e.mediaPresentationDuration),e.hasOwnProperty(s.Z.SUGGESTED_PRESENTATION_DELAY)&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty(s.Z.TIMESHIFT_BUFFER_DEPTH)&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty(s.Z.MAX_SEGMENT_DURATION)&&(t.maxSegmentDuration=e.maxSegmentDuration),e.hasOwnProperty(s.Z.PUBLISH_TIME)&&(t.publishTime=new Date(e.publishTime))),t},getEventsForPeriod:function(e){var t,n,i=e&&e.mpd&&e.mpd.manifest?e.mpd.manifest:null,o=i?i.Period_asArray:null,u=o&&e&&l(e.index)?o[e.index].EventStream_asArray:null,c=[];if(u)for(t=0;t<u.length;t++){var d=new Se;if(d.period=e,d.timescale=1,!u[t].hasOwnProperty(a.Z.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(d.schemeIdUri=u[t][a.Z.SCHEME_ID_URI],u[t].hasOwnProperty(s.Z.TIMESCALE)&&(d.timescale=u[t][s.Z.TIMESCALE]),u[t].hasOwnProperty(s.Z.VALUE)&&(d.value=u[t][s.Z.VALUE]),u[t].hasOwnProperty(s.Z.PRESENTATION_TIME_OFFSET)&&(d.presentationTimeOffset=u[t][s.Z.PRESENTATION_TIME_OFFSET]),n=0;u[t].Event_asArray&&n<u[t].Event_asArray.length;n++){var f=u[t].Event_asArray[n],h=new Ee;h.presentationTime=0,h.eventStream=d,f.hasOwnProperty(s.Z.PRESENTATION_TIME)&&(h.presentationTime=f.presentationTime);var m=d.presentationTimeOffset?d.presentationTimeOffset/d.timescale:0;h.calculatedPresentationTime=h.presentationTime/d.timescale+e.start-m,f.hasOwnProperty(s.Z.DURATION)&&(h.duration=f.duration/d.timescale),f.hasOwnProperty(s.Z.ID)?h.id=f.id:h.id=null,f.Signal&&f.Signal.Binary?h.messageData=r.decodeArray(f.Signal.Binary.toString()):h.messageData=f.messageData||f.__cdata||f.__text,c.push(h)}}return c},getEssentialPropertiesForAdaptation:function(e){var t={};if(e&&e.hasOwnProperty(s.Z.ESSENTIAL_PROPERTY_ASARRAY)){var n,r=Ye(e.EssentialProperty_asArray);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.hasOwnProperty(a.Z.SCHEME_ID_URI)&&(t[i[a.Z.SCHEME_ID_URI]]=Ne({},i))}}catch(e){r.e(e)}finally{r.f()}}return t},getEssentialPropertiesAsArrayForAdaptation:function(e){return e&&e.hasOwnProperty(s.Z.ESSENTIAL_PROPERTY_ASARRAY)&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map(function(e){return(new Me).init(e)}):[]},getEssentialPropertiesForRepresentation:v,getEventStreamForAdaptationSet:function(e,t,n){var r,i,a;return e&&e.Period_asArray&&t&&t.period&&l(t.period.index)&&(i=e.Period_asArray[t.period.index])&&i.AdaptationSet_asArray&&l(t.index)&&(a=i.AdaptationSet_asArray[t.index])&&(r=a.InbandEventStream_asArray),S(r,null,n)},getEventStreamForRepresentation:function(e,t,n){var r,i,a,s;return e&&e.Period_asArray&&t&&t.adaptation&&t.adaptation.period&&l(t.adaptation.period.index)&&(i=e.Period_asArray[t.adaptation.period.index])&&i.AdaptationSet_asArray&&l(t.adaptation.index)&&(a=i.AdaptationSet_asArray[t.adaptation.index])&&a.Representation_asArray&&l(t.index)&&(s=a.Representation_asArray[t.index])&&(r=s.InbandEventStream_asArray),S(r,t,n)},getUTCTimingSources:function(e){var t=_(e),n=!!e&&e.hasOwnProperty(s.Z.AVAILABILITY_START_TIME),r=e?e.UTCTiming_asArray:null,i=[];return(t||n)&&r&&r.forEach(function(e){var t=new ve.Z;e.hasOwnProperty(a.Z.SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty(s.Z.VALUE)&&(t.value=e.value.toString(),i.push(t)))}),i},getBaseURLsFromElement:w,getRepresentationSortFunction:function(){return function(e,t){return e.bandwidth-t.bandwidth}},getContentSteering:function(e){if(e&&e.hasOwnProperty(s.Z.CONTENT_STEERING_AS_ARRAY))return L(e[s.Z.CONTENT_STEERING_AS_ARRAY][0])},getLocation:function(e){return e&&e.hasOwnProperty(s.Z.LOCATION_AS_ARRAY)?e[s.Z.LOCATION_AS_ARRAY].map(function(e){var t=e.__text||e,n=e.hasOwnProperty(s.Z.SERVICE_LOCATION)?e[s.Z.SERVICE_LOCATION]:null;return new Pe(t,n)}):[]},getPatchLocation:function(e){return e&&e.hasOwnProperty(s.Z.PATCH_LOCATION_AS_ARRAY)?e[s.Z.PATCH_LOCATION_AS_ARRAY].map(function(e){var t=e.__text||e,n=e.hasOwnProperty(s.Z.SERVICE_LOCATION)?e[s.Z.SERVICE_LOCATION]:null,r=e.hasOwnProperty(s.Z.TTL)?1e3*parseFloat(e[s.Z.TTL]):NaN;return new Oe(t,n,r)}):[]},getSuggestedPresentationDelay:function(e){return e&&e.hasOwnProperty(s.Z.SUGGESTED_PRESENTATION_DELAY)?e.suggestedPresentationDelay:null},getAvailabilityStartTime:function(e){return e&&e.hasOwnProperty(s.Z.AVAILABILITY_START_TIME)&&null!==e.availabilityStartTime?e.availabilityStartTime.getTime():null},getServiceDescriptions:function(e){var t=[];if(e&&e.hasOwnProperty(s.Z.SERVICE_DESCRIPTION)){var n,r=Ye(e.ServiceDescription_asArray);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=null,o=null,l=null,u=null,c=null,d=null,f=null;for(var h in i)i.hasOwnProperty(h)&&(h===s.Z.ID?a=i[h]:h===s.Z.SERVICE_DESCRIPTION_SCOPE?o=i[h].schemeIdUri:h===s.Z.SERVICE_DESCRIPTION_LATENCY?l={target:parseInt(i[h].target),max:parseInt(i[h].max),min:parseInt(i[h].min),referenceId:parseInt(i[h].referenceId)}:h===s.Z.SERVICE_DESCRIPTION_PLAYBACK_RATE?u={max:parseFloat(i[h].max),min:parseFloat(i[h].min)}:h===s.Z.SERVICE_DESCRIPTION_OPERATING_QUALITY?c={mediaType:i[h].mediaType,max:parseInt(i[h].max),min:parseInt(i[h].min),target:parseInt(i[h].target),type:i[h].type,maxQualityDifference:parseInt(i[h].maxQualityDifference)}:h===s.Z.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH?d={mediaType:i[h].mediaType,max:parseInt(i[h].max),min:parseInt(i[h].min),target:parseInt(i[h].target)}:h===s.Z.CONTENT_STEERING&&(f=L(i[h])));t.push({id:a,schemeIdUri:o,latency:l,playbackRate:u,operatingQuality:c,operatingBandwidth:d,contentSteering:f})}}catch(e){r.e(e)}finally{r.f()}}return t},getSegmentAlignment:function(e){return!(!e||!e.hasOwnProperty(s.Z.SEGMENT_ALIGNMENT))&&"true"===e[s.Z.SEGMENT_ALIGNMENT]},getSubSegmentAlignment:function(e){return!(!e||!e.hasOwnProperty(s.Z.SUB_SEGMENT_ALIGNMENT))&&"true"===e[s.Z.SUB_SEGMENT_ALIGNMENT]},getSupplementalPropertiesForAdaptation:function(e){var t={};if(e&&e.hasOwnProperty(s.Z.SUPPLEMENTAL_PROPERTY_ASARRAY)){var n,r=Ye(e.SupplementalProperty_asArray);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.hasOwnProperty(a.Z.SCHEME_ID_URI)&&(t[i[a.Z.SCHEME_ID_URI]]=Ne({},i))}}catch(e){r.e(e)}finally{r.f()}}return t},getSupplementalPropertiesAsArrayForAdaptation:function(e){return e&&e.hasOwnProperty(s.Z.SUPPLEMENTAL_PROPERTY_ASARRAY)&&e.SupplementalProperty_asArray.length?e.SupplementalProperty_asArray.map(function(e){return(new Me).init(e)}):[]},getSupplementalPropertiesForRepresentation:function(e){var t={};if(e&&e.hasOwnProperty(s.Z.SUPPLEMENTAL_PROPERTY_ASARRAY)){var n,r=Ye(e.SupplementalProperty_asArray);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.hasOwnProperty(a.Z.SCHEME_ID_URI)&&(t[i[a.Z.SCHEME_ID_URI]]=Ne({},i))}}catch(e){r.e(e)}finally{r.f()}}return t},getSupplementalPropertiesAsArrayForRepresentation:function(e){return e&&e.hasOwnProperty(s.Z.SUPPLEMENTAL_PROPERTY_ASARRAY)&&e.SupplementalProperty_asArray.length?e.SupplementalProperty_asArray.map(function(e){return(new Me).init(e)}):[]},setConfig:function(e){e&&(e.errHandler&&(n=e.errHandler),e.BASE64&&(r=e.BASE64))}},t=(0,d.Z)(i).getInstance().getLogger(e),e}je.__dashjs_factory_name="DashManifestModel";var He=c.Z.getSingletonFactory(je),Ge=n(703);function Ze(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ze(){var e,t,n,r,i,s,o,u,c,d,h=this.context,m=(0,l.Z)(h).getInstance(),p=(0,D.Z)(h).getInstance();function g(){n={pr:1,nor:null,st:null,sf:null,sid:"".concat(Ge.Z.generateUuid()),cid:null},c={},u={},d={},_()}function y(){_()}function _(){if(s){var e=s.getStreamController();if(e&&"function"==typeof e.getActiveStream){var t=e.getActiveStream();t&&(o=t.getProcessors())}}}function v(e,t){var n,r={},i=Ze(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;e[a]&&(r[a]=e[a])}}catch(e){i.e(e)}finally{i.f()}return r}function E(e){var t=p.get().streaming.cmcd.enabledKeys;return e.filter(function(e){return t.includes(e)})}function b(e){try{return e.type===k.w.MPD_TYPE?((l=T()).ot="m",l):e.type===k.w.MEDIA_SEGMENT_TYPE?(t=e.mediaType,d.hasOwnProperty(t)||(d[t]=!1),u.hasOwnProperty(t)||(u[t]=!1),c.hasOwnProperty(t)||(c[t]=!1),function(e){var t,l=T(),f=function(e){try{var t=e.quality,n=e.mediaInfo.bitrateList;return parseInt(n[t].bandwidth/1e3)}catch(e){return null}}(e),h=function(e){try{return isNaN(e.duration)?NaN:Math.round(1e3*e.duration)}catch(e){return null}}(e),m=function(e){try{return 100*parseInt(r.getThroughputHistory().getSafeAverageThroughput(e)/100)}catch(e){return null}}(e.mediaType),g=function(e){try{var t=n.pr,r=i.getCurrentBufferLevel(e);return isNaN(t)||isNaN(r)?null:100*parseInt(r/t*10)}catch(e){return null}}(e.mediaType),y=S(e.mediaType),_=function(e){try{var t=r.getTopBitrateInfoFor(e);return Math.round(t.bitrate/1e3)}catch(e){return null}}(e.mediaType),v=n.pr,E=function(e){if(o&&0!==o.length){var t,n=Ze(o);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.getType()===e)return r.probeNextRequest()}}catch(e){n.e(e)}finally{n.f()}}}(e.mediaType);e.mediaType===a.Z.VIDEO&&(t="v"),e.mediaType===a.Z.AUDIO&&(t="a"),e.mediaType===a.Z.TEXT&&(t="application/mp4"===e.mediaInfo.mimeType?"tt":"c");var b=p.get().streaming.cmcd.rtp;return b||(b=function(e){try{var t=s.getPlaybackRate();t||(t=1);var n=e.quality,r=e.mediaType,i=e.mediaInfo,a=e.duration;if(!i)return NaN;var o=S(r);0===o&&(o=500);var l=i.bitrateList[n].bandwidth*a/1e3/(o/t/1e3),u=p.get().streaming.cmcd.rtpSafetyFactor&&!isNaN(p.get().streaming.cmcd.rtpSafetyFactor)?p.get().streaming.cmcd.rtpSafetyFactor:5;return 100*(parseInt(l*u/100)+1)}catch(e){return NaN}}(e)),isNaN(b)||(l.rtp=b),E&&(e.url!==E.url?l.nor=encodeURIComponent(Ge.Z.getRelativeUrl(e.url,E.url)):E.range&&(l.nrr=E.range)),f&&(l.br=f),t&&(l.ot=t),isNaN(h)||(l.d=h),isNaN(m)||(l.mtp=m),isNaN(g)||(l.dl=g),isNaN(y)||(l.bl=y),isNaN(_)||(l.tb=_),isNaN(v)||1===v||(l.pr=v),c[e.mediaType]&&(l.bs=!0,c[e.mediaType]=!1),!u[e.mediaType]&&d[e.mediaType]||(l.su=!0,u[e.mediaType]=!1,d[e.mediaType]=!0),l}(e)):e.type===k.w.INIT_SEGMENT_TYPE?function(){var e=T();return e.ot="i",e.su=!0,e}():e.type===k.w.OTHER_TYPE||e.type===k.w.XLINK_EXPANSION_TYPE?function(){var e=T();return e.ot="o",e}():e.type===k.w.LICENSE?function(){var e=T();return e.ot="k",e}():null}catch(e){return null}var t,l}function T(){var e={},t=p.get().streaming.cmcd.cid?p.get().streaming.cmcd.cid:n.cid;return e.v=1,e.sid=p.get().streaming.cmcd.sid?p.get().streaming.cmcd.sid:n.sid,e.sid="".concat(e.sid),t&&(e.cid="".concat(t)),isNaN(n.pr)||1===n.pr||null===n.pr||(e.pr=n.pr),n.st&&(e.st=n.st),n.sf&&(e.sf=n.sf),e}function S(e){try{var t=i.getCurrentBufferLevel(e);return isNaN(t)?null:100*parseInt(10*t)}catch(e){return null}}function w(e){try{n.pr=e.playbackRate}catch(e){}}function L(t){try{var r=e.getIsDynamic(t.data)?"l":"v",i=t.protocol&&"MSS"===t.protocol?"s":"d";n.st="".concat(r),n.sf="".concat(i)}catch(e){}}function A(e){try{e.state&&e.mediaType&&e.state===f.Z.BUFFER_EMPTY&&(c[e.mediaType]||(c[e.mediaType]=!0),u[e.mediaType]||(u[e.mediaType]=!0))}catch(e){}}function M(){for(var e in c)c.hasOwnProperty(e)&&(c[e]=!0);for(var t in u)u.hasOwnProperty(t)&&(u[t]=!0)}function I(e){try{if(!e)return null;var t=Object.keys(e).sort(function(e,t){return e.localeCompare(t)}),n=t.length,r=t.reduce(function(t,r,i){return"v"===r&&1===e[r]||("string"==typeof e[r]&&"ot"!==r&&"sf"!==r&&"st"!==r?t+="".concat(r,"=").concat(JSON.stringify(e[r])):t+="".concat(r,"=").concat(e[r]),i<n-1&&(t+=",")),t},"");return(r=r.replace(/=true/g,"")).replace(/,\s*$/,"")}catch(e){return null}}return t={getQueryParameter:function(e){try{if(p.get().streaming.cmcd&&p.get().streaming.cmcd.enabled){var t=b(e),n=function(e){try{var t=p.get().streaming.cmcd.enabledKeys;return Object.keys(e).filter(function(e){return t.includes(e)}).reduce(function(t,n){return t[n]=e[n],t},{})}catch(t){return e}}(t),r=I(n);return m.trigger(fe.Z.CMCD_DATA_GENERATED,{url:e.url,mediaType:e.mediaType,cmcdData:t,cmcdString:r}),{key:"CMCD",value:r}}return null}catch(e){return null}},getHeaderParameters:function(e){try{if(p.get().streaming.cmcd&&p.get().streaming.cmcd.enabled){var t=b(e),n=v(t,E(["br","d","ot","tb"])),r
2=v(t,E(["bl","dl","mtp","nor","nrr","su"])),i=v(t,E(["bs","rtp"])),a=v(t,E(["cid","pr","sf","sid","st","v"])),s={"CMCD-Object":I(n),"CMCD-Request":I(r),"CMCD-Status":I(i),"CMCD-Session":I(a)};return m.trigger(fe.Z.CMCD_DATA_GENERATED,{url:e.url,mediaType:e.mediaType,cmcdData:t,headers:s}),s}return null}catch(e){return null}},setConfig:function(e){e&&(e.abrController&&(r=e.abrController),e.dashMetrics&&(i=e.dashMetrics),e.playbackController&&(s=e.playbackController))},reset:function(){m.off(f.Z.PLAYBACK_RATE_CHANGED,w,this),m.off(f.Z.MANIFEST_LOADED,L,this),m.off(f.Z.BUFFER_LEVEL_STATE_CHANGED,A,t),m.off(f.Z.PLAYBACK_SEEKED,M,t),g()},initialize:function(){m.on(f.Z.PLAYBACK_RATE_CHANGED,w,t),m.on(f.Z.MANIFEST_LOADED,L,t),m.on(f.Z.BUFFER_LEVEL_STATE_CHANGED,A,t),m.on(f.Z.PLAYBACK_SEEKED,M,t),m.on(f.Z.PERIOD_SWITCH_COMPLETED,y,t)}},e=He(h).getInstance(),g(),t}ze.__dashjs_factory_name="CmcdModel";var qe=c.Z.getSingletonFactory(ze);function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ve(e,t){Ve=function(e,t){return new a(e,void 0,t)};
vendor: 19,110 bytes, line 2
2var n=Xe(RegExp),r=RegExp.prototype,i=new WeakMap;function a(e,t,r){var a=n.call(this,e,t);return i.set(a,r||i.get(e)),a}function s(e,t){var n=i.get(t);return Object.keys(n).reduce(function(t,r){return t[r]=e[n[r]],t},Object.create(null))}return Ke(a,n),a.prototype.exec=function(e){var t=r.exec.call(this,e);return t&&(t.groups=s(t,this)),t},a.prototype[Symbol.replace]=function(e,t){if("string"==typeof t){var n=i.get(this);return r[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,function(e,t){return"$"+n[t]}))}if("function"==typeof t){var a=this;return r[Symbol.replace].call(this,e,function(){var e=[];return e.push.apply(e,arguments),"object"!==We(e[e.length-1])&&e.push(s(e,a)),t.apply(this,e)})}return r[Symbol.replace].call(this,e,t)},Ve.apply(this,arguments)}function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}function Xe(e){var t="function"==typeof Map?new Map:void 0;return Xe=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Qe(e,arguments,tt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),et(r,e)},Xe(e)}function Qe(e,t,n){return Qe=Je()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&et(i,n.prototype),i},Qe.apply(null,arguments)}function Je(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){return tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tt(e)}var nt="static",rt="dynamic",it="cmsd-",at=it+nt,st=it+rt,ot="stream",lt=["mb","st","sf","v"],ut={video:"v",audio:"a",text:"tt",stream:ot},ct=/^[-0-9]/;function dt(){var e,t,n,r,i=this.context,a=(0,l.Z)(i).getInstance();function s(){n={},r={}}function o(e){e&&Object.keys(e).forEach(function(t){lt.includes(t)||delete e[t]})}function c(e){return!e||"false"!==e.toLowerCase()&&(ct.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}function f(e){try{for(var n={},r=e.split(","),i=0;i<r.length;i++){var a=r[i].split("="),s=a[0],o=c(a[1]);n[s]=o}return n}catch(e){t.error("Failed to parse CMSD-Static response header value:",e)}}function h(e){try{for(var n={},r=e.split(","),i=r[r.length-1].split(";"),a=1;a<i.length;a++){var s=i[a].split("="),o=s[0],l=c(s[1]);n[o]=l}return n}catch(e){return t.error("Failed to parse CMSD-Dynamic response header value:",e),[]}}function m(e){return ut[e]||"o"}function p(e,t,i){var a=e===nt?n:r,s=a[t]||{},o=a[ot]||{};return s[i]||o[i]}return e={setConfig:function(){},initialize:function(){},reset:function(){s()},parseResponseHeaders:function(e,t){for(var i=null,s=null,l=e.split("\r\n"),c=l.length-1;c>=0;c--){var d=l[c].match(Ve(/^((?:(?!:)[\s\S])*):[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(.*)$/,{key:1,value:2}));if(d&&d.groups){var p=d.groups.key.toLowerCase(),g=d.groups.value;switch(p){case at:i=f(g),a.trigger(u.Z.CMSD_STATIC_HEADER,i);break;case st:s||(s=h(g))}}}var y=ot;return i&&i.ot?y=i.ot:t&&(y=m(t)),o(n[y]),o(r[y]),i&&(n[y]=Object.assign(n[y]||{},i)),s&&(r[y]=Object.assign(r[y]||{},s)),{static:i,dynamic:s}},getMaxBitrate:function(e){var t=m(e);return p(rt,t,"mb")||-1},getEstimatedThroughput:function(e){var t=m(e);return p(rt,t,"etp")||null},getResponseDelay:function(e){var t=m(e);return p(rt,t,"rd")||null},getRoundTripTime:function(e){var t=m(e);return p(rt,t,"rtt")||null}},t=(0,d.Z)(i).getInstance().getLogger(e),s(),e}dt.__dashjs_factory_name="CmsdModel";var ft=c.Z.getSingletonFactory(dt);function ht(){var e,t,n=this.context,r={};function i(){t=(0,d.Z)(n).getInstance().getLogger(e)}function a(e){for(var t={},n=0,r=0,i=0,a=0,s=e.length,o=0;o<s;++o)n+=e[o].chunkDownloadTimeRelativeMS,r+=e[o].bufferLevel,i+=e[o].chunkDownloadTimeRelativeMS*e[o].bufferLevel,a+=e[o].chunkDownloadTimeRelativeMS*e[o].chunkDownloadTimeRelativeMS;return t.m=(i-n*r/s)/(a-n*n/s),t.b=r/s-t.m*n/s,function(e){return t.m*e+t.b}}function s(e){var t,n=!0,r=e.reduce(function(e,t){return e+t.bufferLevelAtSegmentEnd},0)/e.length;return e.forEach(function(e){Math.abs(e.bufferLevelAtSegmentEnd/e.bufferLevelAtSegmentStart)<.95&&(n=!1),e.bufferLevelAtSegmentEnd/r<.8&&(n=!1),t?t>e.bitrate&&(n=!1):t=e.bitrate}),n}return e={setup:i,addMeasurement:function(e,t,n,i,s){e&&e.mediaType&&!r[e.mediaType]&&(r[e.mediaType]=[]);var o=e.mediaInfo.bitrateList.find(function(t){return t.id===e.representationId});r[e.mediaType].push({index:e.index,repId:e.representationId,mediaType:e.mediaType,requestTimeMS:i,adjustedAvailabilityStartTimeMS:e.availabilityStartTime.getTime(),segDurationMS:1e3*e.duration,chunksDurationMS:n.reduce(function(e,t){return e+t.chunkDownloadDurationMS},0),segmentBytes:n.reduce(function(e,t){return e+t.chunkBytes},0),bitrate:o&&o.bandwidth,bitrateList:e.mediaInfo.bitrateList,chunkMeasurements:n,fetchDownloadDurationMS:t,throughputCapacityDelayMS:s,getEstimatedBufferLevel:a(n.slice(1))}),r[e.mediaType].length>10&&r[e.mediaType].shift()},getThroughputCapacityDelayMS:function(e,t){var n=r[e.mediaType]&&r[e.mediaType].slice(-3);return!n||n.length<3?0:s(n)?t/4>250?250:t/4:0},getEstimatedDownloadDurationMS:function(e){var n=r[e.mediaType].slice(-1).pop(),i=r[e.mediaType].slice(-3),a=n.chunkMeasurements.slice(-1).pop().chunkDownloadTimeRelativeMS;n.bufferLevelAtSegmentStart=n.getEstimatedBufferLevel(a/2),n.bufferLevelAtSegmentEnd=n.getEstimatedBufferLevel(a);var o=s(i),l=o?.6:.8;if(n.isBufferStable&&1.05*n.segDurationMS<n.fetchDownloadDurationMS)return n.fetchDownloadDurationMS;if(!o||n.segDurationMS<n.fetchDownloadDurationMS)return.8*n.fetchDownloadDurationMS;if(n.adjustedAvailabilityStartTimeMS<=n.requestTimeMS+n.throughputCapacityDelayMS-n.segDurationMS)return.8*n.fetchDownloadDurationMS;for(var u=n.requestTimeMS+n.throughputCapacityDelayMS-n.adjustedAvailabilityStartTimeMS,c=0,d=0,f=0,h=0;h<n.chunkMeasurements.length;h++){var m=n.chunkMeasurements[h];if(u<d+m.chunkDownloadDurationMS)break;d+=m.chunkDownloadDurationMS,c+=m.chunkBytes,f++}if(u<0&&t.warn("request time was before adjusted availibitly start time"),c&&d&&f>.2*n.chunkMeasurements.length){var p=c/d,g=n.segmentBytes/p;return n.fetchDownloadDurationMS<g?n.fetchDownloadDurationMS*l:g*l}var y=n.bitrate;return n.bitrateList.some(function(e){if(e.bandwidth>n.bitrate)return y=e.bandwidth,!0}),y===n.bitrate?n.fetchDownloadDurationMS*l:l*n.segmentBytes*8*1e3/y}},i(),e}ht.__dashjs_factory_name="LowLatencyThroughputModel";var mt=c.Z.getSingletonFactory(ht),pt=n(5717);function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e){e=e||{};var t,n,r,i,s,o,c,f,h,m,p,g=this.context,y=e.errHandler,_=e.dashMetrics,v=e.mediaPlayerModel,E=e.requestModifier,b=e.boxParser,S=e.errors,w=e.requestTimeout||0,L=(0,l.Z)(g).getInstance(),A=(0,D.Z)(g).getInstance();function M(e,t){var l,d=e.request,p=[],S=!0,D=!0,I=new Date,R=I,C=0,P=null,O=null;if(!E||!_||!y)throw new Error("config object is not correct or missing");var x,N=function(e){d.requestStartDate=I,d.requestEndDate=new Date,d.firstByteDate=d.firstByteDate||I,d.fileLoaderType=O;var t=l.response?l.response.responseURL:null,n=l.response?l.response.status:null,r=l.response&&l.response.getAllResponseHeaders?l.response.getAllResponseHeaders():l.response?l.response.responseHeaders:null,i=r&&A.get().streaming.cmsd&&A.get().streaming.cmsd.enabled?c.parseResponseHeaders(r,d.mediaType):null;_.addHttpRequest(d,t,n,r,e?p:null,i)},F=function(e){D=!1,N(e),d.type===k.w.MPD_TYPE&&(_.addManifestUpdate(d),L.trigger(u.Z.MANIFEST_LOADING_FINISHED,{request:d}))},Y=function(){if(P&&(clearTimeout(P),P=null),-1!==n.indexOf(l)&&(n.splice(n.indexOf(l),1),D))if(F(!1),t>0){try{A.get().streaming.utcSynchronization.enableBackgroundSyncAfterSegmentDownloadError&&d.type===k.w.MEDIA_SEGMENT_TYPE&&v.getRetryAttemptsForType(k.w.MEDIA_SEGMENT_TYPE)===t&&L.trigger(u.Z.ATTEMPT_BACKGROUND_SYNC)}catch(e){}t--;var r={config:e};i.push(r),r.timeout=setTimeout(function(){-1!==i.indexOf(r)&&(i.splice(i.indexOf(r),1),M(e,t))},v.getRetryIntervalsForType(d.type))}else{if(d.type===k.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE)return;y.error(new T.Z(s[d.type],d.url+" is not available",{request:d,response:l.response})),e.error&&e.error(d,"error",l.response.statusText,l.response),e.complete&&e.complete(d,l.response.statusText)}};d.hasOwnProperty("availabilityTimeComplete")&&!1===d.availabilityTimeComplete&&window.fetch&&"arraybuffer"===d.responseType&&d.type===k.w.MEDIA_SEGMENT_TYPE?((x=de(g).create({requestModifier:E,lowLatencyThroughputModel:h,boxParser:b})).setup({dashMetrics:_}),O=a.Z.FILE_LOADER_TYPES.FETCH):(x=(0,oe.Z)(g).create({requestModifier:E}),O=a.Z.FILE_LOADER_TYPES.XHR);var U=null,B=E.modifyRequestURL?E.modifyRequestURL(d.url):d.url;if(A.get().streaming.cmcd&&A.get().streaming.cmcd.enabled){var j=A.get().streaming.cmcd.mode;if(j===a.Z.CMCD_MODE_QUERY){var H=function(e){try{var t=[],n=o.getQueryParameter(e);return n&&t.push(n),t}catch(e){return[]}}(d);B=Ge.Z.addAditionalQueryParameterToUrl(B,H)}else j===a.Z.CMCD_MODE_HEADER&&(U=o.getHeaderParameters(d))}var G=f.getXHRWithCredentialsForType(d.type);if(d.queryParams){var Z=Object.keys(d.queryParams).map(function(e){return{key:e,value:d.queryParams[e]}});B=Ge.Z.addAditionalQueryParameterToUrl(B,Z)}d.url=B,l={url:B,method:k.w.GET,withCredentials:G,request:d,onload:function(){l.response.status>=200&&l.response.status<=299&&(F(!0),e.success&&e.success(l.response.response,l.response.statusText,l.response.responseURL),e.complete&&e.complete(d,l.response.statusText))},onend:Y,onerror:Y,progress:function(t){var n=new Date;S&&(S=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(d.firstByteDate=n)),t.lengthComputable&&(d.bytesLoaded=t.loaded,d.bytesTotal=t.total),t.noTrace||(p.push({s:R,d:t.time?t.time:n.getTime()-R.getTime(),b:[t.loaded?t.loaded-C:0]}),R=n,C=t.loaded),P&&(clearTimeout(P),P=null),A.get().streaming.fragmentRequestProgressTimeout>0&&(P=setTimeout(function(){m.warn("Abort request "+l.url+" due to progress timeout"),l.response.onabort=null,l.loader.abort(l),Y()},A.get().streaming.fragmentRequestProgressTimeout)),e.progress&&t&&e.progress(t)},onabort:function(){N(!0),P&&(clearTimeout(P),P=null),e.abort&&e.abort(d)},ontimeout:function(e){var t;if(e.lengthComputable){var n=e.loaded/e.total*100;t="Request timeout: loaded: "+e.loaded+", out of: "+e.total+" : "+n.toFixed(3)+"% Completed"}else t="Request timeout: non-computable download size";m.warn(t)},loader:x,timeout:w,headers:U};var $=(new Date).getTime();if(isNaN(d.delayLoadingTime)||$>=d.delayLoadingTime)n.push(l),x.load(l);else{var z={httpRequest:l};r.push(z),z.delayTimeout=setTimeout(function(){if(-1!==r.indexOf(z)){r.splice(r.indexOf(z),1);try{I=new Date,R=I,n.push(z.httpRequest),x.load(z.httpRequest)}catch(e){z.httpRequest.onerror()}}},d.delayLoadingTime-$)}}return t={load:function(e){e.request?M(e,v.getRetryAttemptsForType(e.request.type)):e.error&&e.error(e.request,"error")},abort:function(){i.forEach(function(e){clearTimeout(e.timeout),e.config.request&&e.config.abort&&e.config.abort(e.config.request)}),i=[],r.forEach(function(e){return clearTimeout(e.delayTimeout)}),r=[],n.forEach(function(e){e.request.type!==k.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE&&(e.onloadend=e.onerror=e.onprogress=void 0,e.loader.abort(e))}),n=[]}},m=(0,d.Z)(g).getInstance().getLogger(t),n=[],r=[],i=[],o=qe(g).getInstance(),c=ft(g).getInstance(),h=mt(g).getInstance(),f=(0,pt.Z)(g).getInstance(),gt(p={},k.w.MPD_TYPE,S.DOWNLOAD_ERROR_ID_MANIFEST_CODE),gt(p,k.w.XLINK_EXPANSION_TYPE,S.DOWNLOAD_ERROR_ID_XLINK_CODE),gt(p,k.w.INIT_SEGMENT_TYPE,S.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),gt(p,k.w.MEDIA_SEGMENT_TYPE,S.DOWNLOAD_ERROR_ID_CONTENT_CODE),gt(p,k.w.INDEX_SEGMENT_TYPE,S.DOWNLOAD_ERROR_ID_CONTENT_CODE),gt(p,k.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,S.DOWNLOAD_ERROR_ID_CONTENT_CODE),gt(p,k.w.OTHER_TYPE,S.DOWNLOAD_ERROR_ID_CONTENT_CODE),s=p,t}yt.__dashjs_factory_name="HTTPLoader";var _t=c.Z.getClassFactory(yt);function vt(){var e;function t(){e={}}function n(){t()}return n(),{getLoader:function(t){for(var n in e)if(e.hasOwnProperty(n)&&t.startsWith(n))return e[n];return _t},registerLoader:function(t,n){e[t]=n},unregisterLoader:function(t){e[t]&&delete e[t]},unregisterAllLoader:t,reset:n}}vt.__dashjs_factory_name="SchemeLoaderFactory";var Et=c.Z.getSingletonFactory(vt);function bt(e){e=e||{};var t,n,r=this.context;return t=Et(r).getInstance(),{load:function(i){if(!n){var a=t.getLoader(i&&i.request?i.request.url:null);n=a(r).create({errHandler:e.errHandler,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,dashMetrics:e.dashMetrics,boxParser:e.boxParser?e.boxParser:null,constants:e.constants?e.constants:null,dashConstants:e.dashConstants?e.dashConstants:null,urlUtils:e.urlUtils?e.urlUtils:null,requestTimeout:isNaN(e.requestTimeout)?0:e.requestTimeout,errors:e.errors})}n.load(i)},abort:function(){n&&n.abort()}}}bt.__dashjs_factory_name="URLLoader";var Tt=c.Z.getClassFactory(bt);function St(e){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}function wt(e,t){return wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wt(e,t)}function Lt(e,t){return!t||"object"!==St(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wt(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=At(t);if(n){var i=At(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Lt(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).checkForExistenceOnly=!0,t}return i}(p.Z);function Dt(e){e=e||{};var t,n,r=this.context,i=e.eventBus,s=e.events,o=e.urlUtils,l=e.errors,u=e.streamId;return t={checkForExistence:function(e){var t=function(t){i.trigger(s.CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var r=new Mt(e.url);n.load({request:r,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)},load:function(e){var r=function(n,r){i.trigger(s.LOADING_COMPLETED,{request:e,response:n||null,error:r||null,sender:t})};e?n.load({request:e,progress:function(n){i.trigger(s.LOADING_PROGRESS,{request:e,stream:n.stream,streamId:u}),n.data&&i.trigger(s.LOADING_DATA_PROGRESS,{request:e,response:n.data||null,error:null,sender:t})},success:function(e){r(e)},error:function(e,t,n){r(void 0,new T.Z(l.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,n,t))},abort:function(e){e&&i.trigger(s.LOADING_ABANDONED,{mediaType:e.mediaType,request:e,sender:t})}}):r(void 0,new T.Z(l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){n&&n.abort()},reset:function(){n&&(n.abort(),n=null)}},n=Tt(r).create({errHandler:e.errHandler,errors:l,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,urlUtils:o,constants:a.Z,boxParser:e.boxParser,dashConstants:e.dashConstants,requestTimeout:e.settings.get().streaming.fragmentRequestTimeout}),t}Dt.__dashjs_factory_name="FragmentLoader";var kt=c.Z.getClassFactory(Dt);function It(){return{modifyResponseAsync:function(e){return Promise.resolve(e)}}}It.__dashjs_factory_name="SegmentResponseModifier";var Rt=c.Z.getSingletonFactory(It);function Ct(e){e=e||{};var t,n,r,i=this.context,s=(0,l.Z)(i).getInstance(),o=e.errHandler,c=e.mediaPlayerModel,h=e.dashMetrics,m=(0,d.Z)(i).getInstance(),p=Rt(i).getInstance(),g=e.streamInfo;function y(){return g.id}function _(){for(var e in r)r[e].reset();r={}}function v(e){if(e.sender){var t=e.request,r=e.response,i=t.isInitializationRequest(),o=t.mediaInfo.streamInfo;if(e.error&&(t.mediaType===a.Z.AUDIO||t.mediaType===a.Z.VIDEO||t.mediaType===a.Z.TEXT&&t.mediaInfo.isFragmented)&&s.trigger(u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD,{entry:e.request.serviceLocation}),r&&o){var l=function(e,t,n,r){var i=new se;return i.streamId=n,i.mediaInfo=t.mediaInfo,i.segmentType=t.type,i.start=t.startTime,i.duration=t.duration,i.end=i.start+i.duration,i.bytes=e,i.index=t.index,i.quality=t.quality,i.representationId=t.representationId,i.endFragment=r,i}(r,t,g.id,e.type!==u.Z.FRAGMENT_LOADING_PROGRESS);p.modifyResponseAsync(l).then(function(e){s.trigger(i?u.Z.INIT_FRAGMENT_LOADED:u.Z.MEDIA_FRAGMENT_LOADED,{chunk:e,request:t},{streamId:o.id,mediaType:t.mediaType})}).catch(function(e){n.error(e),s.trigger(i?u.Z.INIT_FRAGMENT_LOADED:u.Z.MEDIA_FRAGMENT_LOADED,{chunk:l,request:t},{streamId:o.id,mediaType:t.mediaType})})}else n.warn("No "+t.mediaType+" bytes to push or stream is inactive.")}}return t={getStreamId:y,getModel:function(t){var n=r[t];return n||(n=b(i).create({streamInfo:g,type:t,dashMetrics:h,fragmentLoader:kt(i).create({dashMetrics:h,mediaPlayerModel:c,errHandler:o,requestModifier:(0,K.Z)(i).getInstance(),settings:e.settings,boxParser:e.boxParser,eventBus:s,events:u.Z,errors:M,dashConstants:e.dashConstants,urlUtils:e.urlUtils,streamId:y()}),debug:m,eventBus:s,events:u.Z}),r[t]=n),n},reset:function(){s.off(f.Z.FRAGMENT_LOADING_COMPLETED,v,this),s.off(f.Z.FRAGMENT_LOADING_PROGRESS,v,this),_()}},n=m.getLogger(t),_(),s.on(f.Z.FRAGMENT_LOADING_COMPLETED,v,t),s.on(f.Z.FRAGMENT_LOADING_PROGRESS,v,t),t}Ct.__dashjs_factory_name="FragmentController";var Pt=c.Z.getClassFactory(Ct),Ot=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=null,this.width=null,this.height=null,this.x=null,this.y=null},xt=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qual
2ityIndex=NaN};function Nt(e){var t,n,r=this.context,i=e.streamInfo;function s(e){n.setTrackByIndex(e)}function o(){n&&n.reset()}return t={getStreamId:function(){return i.id},initialize:function(){n.addTracks();var e=n.getTracks();e&&e.length>0&&s(0)},provide:function(e,t){if("function"==typeof t){var r,i,a=n.getCurrentTrack();if(!a||a.segmentDuration<=0||null==e)t(null);else{(i=n.getThumbnailRequestForTime(e))&&(a.segmentDuration=i.duration),r=e%a.segmentDuration;var s=Math.floor(r*a.tilesHor*a.tilesVert/a.segmentDuration),o=new Ot;if(o.width=Math.floor(a.widthPerTile),o.height=Math.floor(a.heightPerTile),o.x=Math.floor(s%a.tilesHor)*a.widthPerTile,o.y=Math.floor(s/a.tilesHor)*a.heightPerTile,"readThumbnail"in a)return a.readThumbnail(e,function(e){o.url=e,t(o)});if(i)o.url=i.url,a.segmentDuration=NaN;else{var l=Math.floor(e/a.segmentDuration);o.url=function(e,t){var n=t+e.startNumber,r=(0,$.vi)(e.templateUrl,"Number",n);return r=(0,$.vi)(r,"Time",(n-1)*e.segmentDuration*e.timescale),r=(0,$.vi)(r,"Bandwidth",e.bandwidth),(0,$.eR)(r)}(a,l)}t(o)}}},setTrackByIndex:s,getCurrentTrackIndex:function(){return n.getCurrentTrackIndex()},getBitrateList:function(){var e=n.getTracks(),t=0;return e.map(function(e){var n=new xt;return n.mediaType=a.Z.IMAGE,n.qualityIndex=t++,n.bitrate=e.bitrate,n.width=e.width,n.height=e.height,n})},reset:o},o(),n=(0,Ce.Z)(r).create({streamInfo:i,adapter:e.adapter,baseURLController:e.baseURLController,timelineConverter:e.timelineConverter,debug:e.debug,eventBus:e.eventBus,events:e.events,dashConstants:e.dashConstants,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController}),t}Nt.__dashjs_factory_name="ThumbnailController";var Ft=c.Z.getClassFactory(Nt),Yt=n(7417);function Ut(e){var t;e=e||{};var n=[],r=(0,l.Z)(this.context).getInstance(),i=e.updateEventName,a=e.addBlacklistEventName;function s(e){-1===n.indexOf(e)&&(n.push(e),r.trigger(i,{entry:e}))}return t={add:s,contains:function(e){return!!(n.length&&e&&e.length)&&-1!==n.indexOf(e)},reset:function(){n=[]}},a&&r.on(a,function(e){s(e.entry)},t),t}Ut.__dashjs_factory_name="BlackListController";var Bt=c.Z.getClassFactory(Ut),jt=[a.Z.VIDEO,a.Z.AUDIO,a.Z.TEXT,a.Z.MUXED,a.Z.IMAGE];function Ht(e){e=e||{};var t,n,r,i,o,c,f,h,m,p,g,y,_,v,E,b,S,w,L=this.context,A=(0,l.Z)(L).getInstance(),D=(0,X.Z)(L).getInstance(),k=e.manifestModel,I=e.mediaPlayerModel,R=e.dashMetrics,C=e.manifestUpdater,P=e.adapter,O=e.timelineConverter,x=e.capabilities,N=e.errHandler,F=e.abrController,Y=e.playbackController,U=e.eventController,B=e.mediaController,j=e.protectionController,H=e.textController,G=e.videoModel,Z=e.streamInfo,$=e.settings;function z(e,t){return new Promise(function(i,s){ne(),p=!0,ie();var o=G.getElement(),l=[];jt.forEach(function(t){(t!==a.Z.TEXT||e)&&(t!==a.Z.VIDEO||!o||o&&/^VIDEO$/i.test(o.nodeName))&&l.push(q(t,e))}),Promise.all(l).then(function(){return e=t,new Promise(function(t){var n={},i=r.map(function(t){return t.createBufferSinks(e)});Promise.all(i).then(function(e){e.forEach(function(e){e&&(n[e.getType()]=e)}),t(n)}).catch(function(){t(n)})});var e}).then(function(t){if(p=!1,0===r.length){var a="No streams to play.";N.error(new T.Z(M.MANIFEST_ERROR_ID_NOSTREAMS_CODE,a,k.getValue())),n.fatal(a)}else se();e&&H.createTracks(Z),i(t)}).catch(function(e){s(e)})})}function q(t,i){var o,l=P.getAllMediaInfoForType(Z,t),c=[],d=null;if(!l||0===l.length)return n.info("No "+t+" data."),Promise.resolve();t===a.Z.VIDEO&&(f=!0),t===a.Z.AUDIO&&(h=!0);for(var m=0,p=l.length;m<p;m++)d=l[m],t===a.Z.TEXT&&d.isEmbedded&&(H.addEmbeddedTrack(Z,d),c.push(d)),W(d)&&B.addTrack(d);if(c.length>0&&(B.setInitialMediaSettingsForType(t,Z),H.addMediaInfosToBuffer(Z,t,c)),l=l.filter(function(e){return!e.isEmbedded}),0===l.length)return Promise.resolve();if(t===a.Z.IMAGE)return(y=Ft(L).create({streamInfo:Z,adapter:P,baseURLController:e.baseURLController,timelineConverter:e.timelineConverter,debug:b,eventBus:A,events:u.Z,dashConstants:s.Z,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController})).initialize(),Promise.resolve();A.trigger(u.Z.STREAM_INITIALIZING,{streamInfo:Z,mediaInfo:d}),B.setInitialMediaSettingsForType(t,Z);var v=function(t,n){var i=t&&t.length>0?t[0]:null,s=g.getModel(i?i.type:null),o=i?i.type:null,l=i?i.mimeType:null,u=i?i.isFragmented:null,c=ae(L).create({streamInfo:Z,type:o,mimeType:l,timelineConverter:O,adapter:P,manifestModel:k,mediaPlayerModel:I,fragmentModel:s,dashMetrics:e.dashMetrics,baseURLController:e.baseURLController,segmentBaseController:e.segmentBaseController,abrController:F,playbackController:Y,mediaController:B,textController:H,errHandler:N,settings:$,boxParser:E,segmentBlacklistController:_});c.initialize(n,f,u),r.push(c);for(var d=0;d<t.length;d++)c.addMediaInfo(t[d]);return o===a.Z.TEXT&&H.addMediaInfosToBuffer(Z,o,t,s),c}(l,i);return(o=B.getCurrentTrackFor(t,Z.id))?(F.updateTopQualityIndex(o),v.selectMediaInfo(t===a.Z.TEXT&&o.isEmbedded?l[0]:o)):Promise.resolve()}function W(e){var t,r=e?e.type:null;return r===a.Z.MUXED?(t="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",n.fatal(t),N.error(new T.Z(M.MANIFEST_ERROR_ID_MULTIPLEXED_CODE,t,k.getValue())),!1):!(r!==a.Z.TEXT&&r!==a.Z.IMAGE&&e.contentProtection&&!x.supportsEncryptedMedia()&&(N.error(new T.Z(M.CAPABILITY_MEDIAKEYS_ERROR_CODE,M.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE)),1))}function V(e){for(var t=r?r.length:0,n=0;n<t;n++){var i=r[n].getFragmentModel();i.abortRequests(),i.resetInitialSettings(),r[n].reset(!1,e)}H&&H.deactivateStream(Z),r=[],o=!1,c=!1,ge(!1),Q(!1),A.trigger(u.Z.STREAM_DEACTIVATED,{streamInfo:Z})}function K(e){V(e),i=!1,f=!1,h=!1,m={},p=!1,S=!1,w=[]}function Q(e){S=e}function J(){return Z?Z.start:NaN}function ee(){return Z?Z.id:null}function te(){return Z}function ne(){if(!G||!F)throw new Error(a.Z.MISSING_CONFIG_ERROR)}function re(e){e.error&&(N.error(e.error),n.fatal(e.error.message))}function ie(){if(U){var e=P.getEventsFor(Z);e&&e.length>0&&U.addInlineEvents(e,Z.id)}}function se(){for(var e=r.length,t=m.audio||m.video?new T.Z(M.DATA_UPDATE_FAILED_ERROR_CODE,M.DATA_UPDATE_FAILED_ERROR_MESSAGE):null,n=0;n<e;n++)if(r[n].isUpdating()||p)return;if(j){j.clearMediaInfoArray();for(var s=0;s<e&&r[s];s++){var o=r[s].getType(),l=r[s].getMediaInfo();if(o===a.Z.AUDIO||o===a.Z.VIDEO||o===a.Z.TEXT&&l.isFragmented){var c=r[s].getMediaInfo();c&&j.initializeForMedia(c)}}j.handleKeySystemFromManifest()}t?N.error(t):i||(i=!0,G.waitForReadyState(a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,function(){A.trigger(u.Z.STREAM_INITIALIZED,{streamInfo:Z})}))}
2function oe(){var e=fe(),t=e.length;if(0!==t){for(var r=0;r<t;r++)if(!e[r].isBufferingCompleted()&&(e[r].getType()===a.Z.AUDIO||e[r].getType()===a.Z.VIDEO))return void n.debug("onBufferingCompleted - One streamProcessor has finished but",e[r].getType(),"one is not buffering completed");n.debug("onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED"),c=!0,A.trigger(u.Z.STREAM_BUFFERING_COMPLETED,{streamInfo:Z},{streamInfo:Z})}else n.warn("onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because no streamProcessor is defined")}function le(e){m[e.mediaType]=e.error,se()}function ue(e){U&&U.addInbandEvents(e.events,Z.id)}function ce(e){return e&&e.type?de(e.type):null}function de(e){return e?fe().filter(function(t){return t.getType()===e})[0]:null}function fe(){for(var e,t,n=[],i=0;i<r.length;i++)(e=(t=r[i]).getType())!==a.Z.AUDIO&&e!==a.Z.VIDEO&&e!==a.Z.TEXT||n.push(t);return n}function he(e,t){var n=te(),r=t.getStreamInfo();if(!r||!n)return!0;var i=P.getAdaptationForType(r.index,e,r),a=P.getAdaptationForType(n.index,e,n);return i&&a?!(!me(a)&&me(i)):!i&&!a}function me(e){return!!e&&!!(e.ContentProtection||e.Representation_asArray&&e.Representation_asArray.length>0&&e.Representation_asArray[0].ContentProtection)}function pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e||!e.hasOwnProperty("getStreamInfo"))return!1;var r=e.getStreamInfo(),i=n?n.getStreamInfo():te();if(!r||!i)return!1;var a=P.getAdaptationForType(r.index,t,r),s=P.getAdaptationForType(i.index,t,i);if(!a||!s)return!a&&!s;var o=a&&s&&a.mimeType===s.mimeType,l=s.Representation_asArray.map(function(e){return e.codecs}),u=a.Representation_asArray.map(function(e){return e.codecs}),c=u.some(function(e){return l.indexOf(e)>-1}),d=u.some(function(e){return l.some(function(t){return x.codecRootCompatibleWithCodec(t,e)})});return c||d&&o}function ge(e){v=e}function ye(){return v}return t={initialize:function(){A.on(u.Z.BUFFERING_COMPLETED,oe,t),A.on(u.Z.DATA_UPDATE_COMPLETED,le,t),A.on(u.Z.INBAND_EVENTS,ue,t),j&&(A.on(u.Z.KEY_ERROR,re,t),A.on(u.Z.SERVER_CERTIFICATE_UPDATED,re,t),A.on(u.Z.LICENSE_REQUEST_COMPLETE,re,t),A.on(u.Z.KEY_SYSTEM_SELECTED,re,t),A.on(u.Z.KEY_SESSION_CREATED,re,t),A.on(u.Z.KEY_STATUSES_CHANGED,re,t)),H.initializeForStream(Z),A.trigger(u.Z.STREAM_UPDATED,{streamInfo:Z})},getStreamId:function(){return Z?Z.id:null},activate:function(e,t){return new Promise(function(n,r){if(!o)return ye()?(o=!0,A.trigger(u.Z.STREAM_ACTIVATED,{streamInfo:Z}),void n(t)):void function(e,t){return z(e,t)}(e,t).then(function(e){o=!0,A.trigger(u.Z.STREAM_ACTIVATED,{streamInfo:Z}),n(e)}).catch(function(e){r(e)});n(t)})},deactivate:V,getIsActive:function(){return o},getDuration:function(){return Z?Z.duration:NaN},getStartTime:J,getId:ee,getStreamInfo:te,getHasAudioTrack:function(){return h},getHasVideoTrack:function(){return f},startPreloading:function(e,t){return new Promise(function(i,a){ye()?a():(n.info("[startPreloading] Preloading next stream with id ".concat(ee())),ge(!0),z(e,t).then(function(){for(var e=0;e<r.length&&r[e];e++)r[e].setExplicitBufferingTime(J()),r[e].getScheduleController().startScheduleTimer();i()}).catch(function(){ge(!1),a()}))})},initializeForTextWithMediaSource:function(e){return new Promise(function(t,n){q(a.Z.TEXT,e).then(function(){return(e=de(a.Z.TEXT))?e.createBufferSinks():Promise.resolve();var e}).then(function(){H.createTracks(Z),t()}).catch(function(e){n(e)})})},getThumbnailController:function(){return y},getBitrateListFor:function(e){if(ne(),e===a.Z.IMAGE)return y?y.getBitrateList():[];var t=function(e){for(var t=null,n=0;n<r.length;n++)if((t=r[n]).getType()===e)return t.getMediaInfo();return null}(e);return F.getBitrateList(t)},updateData:function(e){return new Promise(function(t){p=!0,Z=e,U&&ie();for(var n=[],i=0,a=r.length;i<a;i++){var s=r[i],o=s.getMediaInfo();n.push(s.updateStreamInfo(Z));var l=P.getAllMediaInfoForType(Z,s.getType());if(l=l.filter(function(e){return!e.isEmbedded})){s.clearMediaInfoArray();for(var c=0;c<l.length;c++){var d=l[c];s.addMediaInfo(l[c]),P.areMediaInfosEqual(o,d)&&(F.updateTopQualityIndex(d),n.push(s.selectMediaInfo(d)))}}}Promise.all(n).then(function(){for(n=[];w.length>0;){var e=w.pop(),t=e.newMediaInfo,r=ce(e.oldMediaInfo);if(!r)return;n.push(r.prepareTrackSwitch()),n.push(r.selectMediaInfo(t))}return Promise.all(n)}).then(function(){p=!1,se(),A.trigger(u.Z.STREAM_UPDATED,{streamInfo:Z}),t()})})},reset:function(e){g&&(g.reset(),g=null),F&&Z&&F.clearDataForStream(Z.id),_&&(_.reset(),_=null),K(e),Z=null,A.off(u.Z.DATA_UPDATE_COMPLETED,le,t),A.off(u.Z.BUFFERING_COMPLETED,oe,t),A.off(u.Z.INBAND_EVENTS,ue,t),j&&(A.off(u.Z.KEY_ERROR,re,t),A.off(u.Z.SERVER_CERTIFICATE_UPDATED,re,t),A.off(u.Z.LICENSE_REQUEST_COMPLETE,re,t),A.off(u.Z.KEY_SYSTEM_SELECTED,re,t),A.off(u.Z.KEY_SESSION_CREATED,re,t),A.off(u.Z.KEY_STATUSES_CHANGED,re,t))},getProcessors:fe,setMediaSource:function(e){return new Promise(function(t,i){for(var a=[],s=0;s<r.length;)W(r[s].getMediaInfo())?(a.push(r[s].setMediaSource(e)),s++):(r[s].reset(),r.splice(s,1));Promise.all(a).then(function(){for(var e=0;e<r.length;e++)r[e].dischargePreBuffer();if(0===r.length){var i="No streams to play.";N.error(new T.Z(M.MANIFEST_ERROR_ID_NOSTREAMS_CODE,i+"nostreams",k.getValue())),n.fatal(i)}t()}).catch(function(e){n.error(e),i(e)})})},isMediaCodecCompatible:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return pe(e,a.Z.VIDEO,t)&&pe(e,a.Z.AUDIO,t)},isProtectionCompatible:function(e){return!e||he(a.Z.VIDEO,e)&&he(a.Z.AUDIO,e)},getPreloaded:ye,getIsEndedEventSignaled:function(){return S}
2,setIsEndedEventSignaled:Q,getAdapter:function(){return P},getHasFinishedBuffering:function(){return c},setPreloaded:ge,startScheduleControllers:function(){for(var e=r.length,t=0;t<e&&r[t];t++)r[t].getScheduleController().startScheduleTimer()},prepareTrackChange:function(e){if(o&&Z){c=!1;var t=e.newMediaInfo,r=k.getValue();P.setCurrentMediaInfo(Z.id,t.type,t);var i=ce(t);if(i){var s=Y.getTime();n.info("Stream - Process track changed at current time "+s),r.refreshManifestOnSwitchTrack?(w.push(e),C.getIsUpdating()||(n.debug("Stream - Refreshing manifest for switch track"),C.refreshManifest())):i.selectMediaInfo(t).then(function(){t.type!==a.Z.VIDEO&&t.type!==a.Z.AUDIO||F.updateTopQualityIndex(t),i.prepareTrackSwitch()})}}},prepareQualityChange:function(e){var t=de(e.mediaType);t&&t.prepareQualityChange(e)}},function(){try{b=(0,d.Z)(L).getInstance(),n=b.getLogger(t),K(),E=(0,Yt.Z)(L).getInstance(),_=Bt(L).create({updateEventName:u.Z.SEGMENT_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:u.Z.SEGMENT_LOCATION_BLACKLIST_ADD}),g=Pt(L).create({streamInfo:Z,mediaPlayerModel:I,dashMetrics:R,errHandler:N,settings:$,boxParser:E,dashConstants:s.Z,urlUtils:D})}catch(e){throw e}}(),t}Ht.__dashjs_factory_name="Stream";var Gt=c.Z.getClassFactory(Ht),Zt=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||null,this.type=k.w.CONTENT_STEERING_TYPE,this.responseType="json"},$t=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version=null,this.ttl=300,this.reloadUri=null,this.pathwayPriority=[],this.pathwayClones=[]};function zt(){var e,t,n,r,i,a,o,l,u,c,h,m,p,g,y,_=this.context,v=(0,X.Z)(_).getInstance();function E(e){L(e,"baseUrl")}function b(e){L(e,"location")}function T(e){if(e&&e.request&&e.request.serviceLocation&&e.request.requestStartDate&&e.request.requestEndDate&&!isNaN(e.request.bytesTotal)){var t=e.request.serviceLocation,n=e.request.requestEndDate.getTime()-e.request.requestStartDate.getTime();w(t,parseInt(8*e.request.bytesTotal/n*1e3))}}function S(e){e&&e.httpRequest&&e.httpRequest._serviceLocation&&!isNaN(e.throughput)&&w(e.httpRequest._serviceLocation,1e3*e.throughput)}function w(e,t){i[e]||(i[e]=[]),i[e].push(t),i[e].length>4&&i[e].shift()}function L(e,t){if(e&&e.request&&e.request.serviceLocation){var n=e.request.serviceLocation;-1===r[t].all.indexOf(n)&&r[t].all.push(n),r[t].current=n}}function A(){var e=h.getValue(),t=y.getContentSteering(e);return t||(t=p.getServiceDescriptionSettings().contentSteering),t}function D(){return new Promise(function(e){try{var a=A();if(!a||!a.serverUrl)return void e();var l=function(e){var t=e.serverUrl;n&&n.reloadUri&&(t=v.isRelative(n.reloadUri)?v.resolve(n.reloadUri,e.serverUrl):n.reloadUri);var a=[],s=r.baseUrl.all.concat(r.location.all);if(s.length>0){var o=s.map(function(e){var t=function(e){if(!e||!i[e]||0===i[e].length)return-1;var t=i[e].reduce(function(e,t){return e+t})/i[e].length;return parseInt(t)}(e);return{serviceLocation:e,throughput:t}});o.sort(function(e,t){return t.throughput-e.throughput});var l="",u="";o.forEach(function(e,t){0!==t&&(l="".concat(l,","),e.throughput>-1&&(u="".concat(u,","))),l="".concat(l).concat(e.serviceLocation),e.throughput>-1&&(u="".concat(u).concat(e.throughput))}),a.push({key:"_DASH_pathway",value:'"'.concat(l,'"')}),a.push({key:"_DASH_throughput",value:u})}return Ge.Z.addAditionalQueryParameterToUrl(t,a)}(a),u=new Zt(l);o.load({request:u,success:function(t){!function(e){e&&e[s.Z.CONTENT_STEERING_RESPONSE.VERSION]&&1===parseInt(e[s.Z.CONTENT_STEERING_RESPONSE.VERSION])&&((n=new $t).version=e[s.Z.CONTENT_STEERING_RESPONSE.VERSION],e[s.Z.CONTENT_STEERING_RESPONSE.TTL]&&!isNaN(e[s.Z.CONTENT_STEERING_RESPONSE.TTL])&&(n.ttl=e[s.Z.CONTENT_STEERING_RESPONSE.TTL]),e[s.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]&&(n.reloadUri=e[s.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]),e[s.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]&&(n.pathwayPriority=e[s.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]),e[s.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES]&&(n.pathwayClones=e[s.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES],n.pathwayClones=n.pathwayClones.filter(function(e){return function(e){return e[s.Z.CONTENT_STEERING_RESPONSE.BASE_ID]&&e[s.Z.CONTENT_STEERING_RESPONSE.ID]&&e[s.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT]&&e[s.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][s.Z.CONTENT_STEERING_RESPONSE.HOST]}(e)})),R())}(t),g.trigger(f.Z.CONTENT_STEERING_REQUEST_COMPLETED,{currentSteeringResponseData:n,url:l}),e()},error:function(r,i,a,s){!function(e,r){try{switch(t.warn("Error fetching data from content steering server",e),r.status){case 410:break;case 429:var i=r&&r.getResponseHeader?r.getResponseHeader("retry-after"):null;null!==i&&(n||(n={}),n.ttl=parseInt(i)),R();break;default:R()}}catch(e){t.error(e)}}(r,s),e(r)},complete:function(){r.baseUrl.all=k(r.baseUrl),r.location.all=k(r.location)}})}catch(t){e(t)}})}function k(e){return e.all&&0!==e.all.length&&e.current?e.all.filter(function(t){return t===e.current}):[]}function I(e){try{var r=[];return e&&0!==e.length&&n&&n.pathwayClones&&0!==n.pathwayClones.length?(n.pathwayClones.forEac
vendor: 17,205 bytes, line 2
2h(function(t){var n=e.filter(function(e){return t[s.Z.CONTENT_STEERING_RESPONSE.BASE_ID]===e.serviceLocation}),i=null;if(n&&n.length>0&&(i=n[0]),i){var a=new URL(i.url),o=t[s.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][s.Z.CONTENT_STEERING_RESPONSE.HOST];o=Ge.Z.stringHasProtocol(o)?o:"".concat(a.protocol,"//").concat(o);var l={synthesizedUrl:"".concat(o).concat(a.pathname),serviceLocation:t[s.Z.CONTENT_STEERING_RESPONSE.ID],queryParams:t[s.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][s.Z.CONTENT_STEERING_RESPONSE.PARAMS],reference:i};r.push(l)}}),r):r}catch(e){return t.error(e),[]}}function R(){n&&n.ttl&&!isNaN(n.ttl)&&(a&&clearTimeout(a),a=setTimeout(function(){D()},1e3*n.ttl))}function C(){a&&clearTimeout(a),a=null}function P(){n=null,i={},r={baseUrl:{current:null,all:[]},location:{current:null,all:[]}},C()}return e={reset:function(){P(),g.off(f.Z.FRAGMENT_LOADING_STARTED,E,e),g.off(f.Z.MANIFEST_LOADING_STARTED,b,e),g.off(f.Z.MANIFEST_LOADING_FINISHED,T,e),g.off(f.Z.THROUGHPUT_MEASUREMENT_STORED,S,e)},setConfig:function(e){e&&(e.adapter&&(y=e.adapter),e.errHandler&&(l=e.errHandler),e.dashMetrics&&(u=e.dashMetrics),e.mediaPlayerModel&&(c=e.mediaPlayerModel),e.requestModifier&&(m=e.requestModifier),e.manifestModel&&(h=e.manifestModel),e.serviceDescriptionController&&(p=e.serviceDescriptionController),e.eventBus&&(g=e.eventBus))},loadSteeringData:D,getCurrentSteeringResponseData:function(){return n},shouldQueryBeforeStart:function(){var e=A();return!!e&&e.queryBeforeStart},getSteeringDataFromManifest:A,stopSteeringRequestTimer:C,getSynthesizedBaseUrlElements:function(e){try{return I(e).map(function(e){var t=new Te(e.synthesizedUrl,e.serviceLocation);return t.queryParams=e.queryParams,t.dvbPriority=e.reference.dvbPriority,t.dvbWeight=e.reference.dvbWeight,t.availabilityTimeOffset=e.reference.availabilityTimeOffset,t.availabilityTimeComplete=e.reference.availabilityTimeComplete,t})}catch(e){return t.error(e),[]}},getSynthesizedLocationElements:function(e){try{return I(e).map(function(e){var t=new Pe(e.synthesizedUrl,e.serviceLocation);return t.queryParams=e.queryParams,t})}catch(e){return t.error(e),[]}},initialize:function(){o=Tt(_).create({errHandler:l,dashMetrics:u,mediaPlayerModel:c,requestModifier:m,errors:M}),g.on(f.Z.FRAGMENT_LOADING_STARTED,E,e),g.on(f.Z.MANIFEST_LOADING_STARTED,b,e),g.on(f.Z.MANIFEST_LOADING_FINISHED,T,e),g.on(f.Z.THROUGHPUT_MEASUREMENT_STORED,S,e)}},t=(0,d.Z)(_).getInstance().getLogger(e),P(),e}zt.__dashjs_factory_name="ContentSteeringController";var qt=c.Z.getSingletonFactory(zt);function Wt(){var e,t,n,r=this.context,i=(0,D.Z)(r).getInstance();return e={select:function(e){if(!e||0===e.length)return null;var r=null;return i.get().streaming.applyContentSteering&&(r=function(e){var r=n.getCurrentSteeringResponseData();return r&&r.pathwayPriority&&r.pathwayPriority.length>0?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,i=null,a=function(){var a=e[r],s=n.findIndex(function(e){return e.serviceLocation&&e.serviceLocation===a});if(-1!==s&&!t.contains(n[s].serviceLocation))return i=n[s],"break";r+=1};r<e.length&&"break"!==a(););return i}(r.pathwayPriority,e):null}(e)),r||(r=function(e){return e[0]}(e)),r},setConfig:function(e){e.blacklistController&&(t=e.blacklistController),e.contentSteeringController&&(n=e.contentSteeringController)},reset:function(){t.reset()}},t=Bt(r).create({updateEventName:u.Z.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:u.Z.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD}),n=qt(r).getInstance(),e}Wt.__dashjs_factory_name="LocationSelector";var Vt=c.Z.getClassFactory(Wt);function Kt(){var e,t,n,r,i,a,o,c,h,m,p,g,y,_,v=this.context,E=(0,l.Z)(v).getInstance(),b=(0,X.Z)(v).getInstance();function T(){n=NaN,o=!1,i=!0,a=!1,S()}function S(){null!==r&&(clearTimeout(r),r=null)}function w(e){S(),a||(isNaN(e)&&!isNaN(n)&&(e=1e3*n),isNaN(e)||(t.debug("Refresh manifest in "+e+" milliseconds."),r=setTimeout(k,e)))}function L(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o=!0;var t=h.getValue(),n=t.url,r=null,i=p.getPatchLocation(t),a=m.select(i),s=null;if(a&&!e)n=a.url,r=a.serviceLocation,s=a.queryParams;else{var l=A(t),u=m.select(l);u&&(n=u.url,r=u.serviceLocation,s=u.queryParams)}b.isRelative(n)&&(n=b.resolve(n,t.url)),c.load(n,r,s)}function A(e){var t=p.getLocation(e),n=y.getSynthesizedLocationElements(t);return t.concat(n)}function D(e){if(e){if(p.getIsPatch(e)){var r=e;e=h.getValue();var l=p.isPatchValid(e,r),c=l;if(l){var d=p.getPublishTime(e);c=p.applyPatchToManifest(e,r);var f=p.getPublishTime(e);c=d.getTime()!=f.getTime()}if(!c)return t.debug("Patch provided is invalid, performing full manifest refresh"),void L(!0);e.loadedTime=new Date}}else(e=h.getValue()).loadedTime=new Date;if(h.getValue()&&h.getValue().type===s.Z.DYNAMIC&&e.type===s.Z.STATIC)return E.trigger(u.Z.DYNAMIC_TO_STATIC),o=!1,void(a=!0);h.setValue(e);var m=new Date,g=(m.getTime()-e.loadedTime.getTime())/1e3;1e3*(n=p.getManifestUpdatePeriod(e,g))>2147483647&&(n=2147483.647),E.trigger(u.Z.MANIFEST_UPDATED,{manifest:e}),t.info("Manifest has been refreshed at "+m+"["+m.getTime()/1e3+"] "),i||w()}function k(){i||(o?w(_.get().streaming.manifestUpdateRetryInterval):L())}function I(e){e.error?e.error.code===M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE&&g.error(e.error):D(e.manifest)}function R(){i=!1,w()}function C(){(i=!_.get().streaming.scheduling.scheduleWhilePaused)&&S()}function P(){o=!1}return e={initialize:function(){T(),E.on(u.Z.STREAMS_COMPOSED,P,this),E.on(f.Z.PLAYBACK_STARTED,R,this),E.on(f.Z.PLAYBACK_PAUSED,C,this),E.on(u.Z.INTERNAL_MANIFEST_LOADED,I,this)},setManifest:function(e){D(e)},refreshManifest:L,getIsUpdating:function(){return o},setConfig:function(e){e&&(e.manifestModel&&(h=e.manifestModel),e.adapter&&(p=e.adapter),e.manifestLoader&&(c=e.manifestLoader),e.errHandler&&(g=e.errHandler),e.locationSelector&&(m=e.locationSelector),e.settings&&(_=e.settings),e.contentSteeringController&&(y=e.contentSteeringController))},reset:function(){E.off(f.Z.PLAYBACK_STARTED,R,this),E.off(f.Z.PLAYBACK_PAUSED,C,this),E.off(u.Z.STREAMS_COMPOSED,P,this),E.off(u.Z.INTERNAL_MANIFEST_LOADED,I,this),T()}},t=(0,d.Z)(v).getInstance().getLogger(e),m=Vt(v).create(),e}Kt.__dashjs_factory_name="ManifestUpdater";var Xt=c.Z.getClassFactory(Kt);function Qt(){var e,t,n,r,i,a,s,o,c,f,h,m,p,g,y,_,v=this.context,E=(0,l.Z)(v).getInstance(),b=(0,X.Z)(v).getInstance();function S(){o=[],c=[],f=null,h=null,p=null,m=NaN,n=!1,r=!1,g=i.get().streaming.utcSynchronization.timeBetweenSyncAttempts}function w(){i.get().streaming.utcSynchronization.enabled&&!n&&!r&&p&&p.value&&p.schemeIdUri&&!isNaN(m)&&!isNaN(i.get().streaming.utcSynchronization.backgroundAttempts)&&(h&&(Date.now()-h)/1e3<30||(o=[],r=!0,L(isNaN(i.get().streaming.utcSynchronization.backgroundAttempts)?2:i.get().streaming.utcSynchronization.backgroundAttempts)))}function L(e){try{if(e<=0)return void B();var t=Date.now();a[p.schemeIdUri](p.value,function(n){var r=Date.now(),i=D(t,r,n);o.push(i),L(e-1)},function(){B()})}catch(e){B()}}function A(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||0;if(!c||0===c.length||e>=c.length)I();else{var t=c[e];if(t)if(a.hasOwnProperty(t.schemeIdUri)){var n=(new Date).getTime();a[t.schemeIdUri](t.value,function(e){var r=(new Date).getTime(),i=D(n,r,e);p=t,I(i)},function(){A(e+1)})}else A(e+1);else I()}}function D(e,t,n){return n-(t-(t-e)/2)}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN,t=isNaN(e);t&&i.get().streaming.utcSynchronization.useManifestDateHeaderTimeSource?Y():U(t,e)}function R(e){var t=Date.parse(e);return isNaN(t)&&(t=function(e){var t,n,r=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(e);return t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&(parseInt(r[6],10)||0),r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]&&(n=60*parseInt(r[9],10)+parseInt(r[10],10),t+=("+"===r[8]?-1:1)*n*60*1e3),new Date(t).getTime()}(e)),t}function C(e){return Date.parse(e)}function P(e){return Date.parse(e)}function O(e,t,n){n()}function x(e,t,n){var r=R(e);isNaN(r)?n():t(r)}function N(e,t,n,r,i){var a,s,o=!1,l=new XMLHttpRequest,u=i?k.w.HEAD:k.w.GET,c=t.match(/\S+/g);if(t=c.shift(),a=function(){o||(o=!0,c.length?N(e,c.join(" "),n,r,i):r())},s=function(){var t,r;200===l.status&&(t=i?l.getResponseHeader("Date"):l.response,r=e(t),isNaN(r)||(n(r),o=!0))},b.isRelative(t)){var d=_.resolve();d&&(t=b.resolve(t,d.url))}l.open(u,t),l.timeout=5e3,l.onload=s,l.onloadend=a,l.send()}function F(e,t,n){N(P,e,t,n,!0)}function Y(){var e=s.getLatestMPDRequestHeaderValueByID("Date"),t=null!==e?new Date(e).getTime():Number.NaN;isNaN(t)?U(!0):U(!1,t-Date.now())}function U(e,r){if(isNaN(m)||isNaN(r)||e||function(e){try{var n,r=j(e),a=isNaN(g)?30:g,s=isNaN(i.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor)?2:i.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor,o=isNaN(i.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts)?600:i.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts,l=isNaN(i.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts)?2:i.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts;r?(n=Math.min(a*s,o),t.debug("Increasing timeBetweenSyncAttempts to ".concat(n))):(n=Math.max(a/s,l),t.debug("Decreasing timeBetweenSyncAttempts to ".concat(n))),g=n}catch(e){}}(r),!e&&!isNaN(r)){f=Date.now(),n=!1;var a=isNaN(m);m=r,a&&w(),t.debug("Completed UTC sync. Setting client - server offset to ".concat(r))}e&&(p=null,n=!1,y.error(new T.Z(M.TIME_SYNC_FAILED_ERROR_CODE,M.TIME_SYNC_FAILED_ERROR_MESSAGE))),E.trigger(u.Z.UPDATE_TIME_SYNC_OFFSET,{offset:r}),E.trigger(u.Z.TIME_SYNCHRONIZATION_COMPLETED)}function B(){if(o&&0!==o.length){var e=o.reduce(function(e,t){return e+t},0)/o.length;j(e)?t.debug("Completed background UTC sync. Offset is within allowed threshold and is not adjusted."):(t.debug("Completed background UTC sync. Setting client - server offset to ".concat(e)),m=e,E.trigger(u.Z.UPDATE_TIME_SYNC_OFFSET,{offset:m})),r=!1,h=Date.now()}}function j(e){try{if(isNaN(m))return!0;var t=i.get().streaming.utcSynchronization.maximumAllowedDrift&&!isNaN(i.get().streaming.utcSynchronization.maximumAllowedDrift)?i.get().streaming.utcSynchronization.maximumAllowedDrift:100;return e>=m-t&&e<=m+t}catch(e){return!0}}return e={initialize:function(){S(),a={"urn:mpeg:dash:utc:http-head:2014":F,"urn:mpeg:dash:utc:http-xsdate:2014":N.bind(null,R),"urn:mpeg:dash:utc:http-iso:2014":N.bind(null,C),"urn:mpeg:dash:utc:direct:2014":x,"urn:mpeg:dash:utc:http-head:2012":F,"urn:mpeg:dash:utc:http-xsdate:2012":N.bind(null,R),"urn:mpeg:dash:utc:http-iso:2012":N.bind(null,C),"urn:mpeg:dash:utc:direct:2012":x,"urn:mpeg:dash:utc:http-ntp:2014":O,"urn:mpeg:dash:utc:ntp:2014":O,"urn:mpeg:dash:utc:sntp:2014":O}},attemptSync:function(e,t){c=e,n||(function(e){try{if(!e||!i.get().streaming.utcSynchronization.enabled)return!1;var t=isNaN(g)?30:g;return!(f&&t&&!isNaN(t))||(Date.now()-f)/1e3>=t}catch(e){return!0}}(t)?(n=!0,A()):E.trigger(u.Z.TIME_SYNCHRONIZATION_COMPLETED))},setConfig:function(e){e&&(e.dashMetrics&&(s=e.dashMetrics),e.baseURLController&&(_=e.baseURLController),e.errHandler&&(y=e.errHandler),e.settings&&(i=e.settings))},reset:function(){S(),E.off(u.Z.ATTEMPT_BACKGROUND_SYNC,w,e)}},t=(0,d.Z)(v).getInstance().getLogger(e),E.on(u.Z.ATTEMPT_BACKGROUND_SYNC,w,e),e}Qt.__dashjs_factory_name="TimeSyncController";var Jt=c.Z.getSingletonFactory(Qt);Jt.HTTP_TIMEOUT_MS=5e3,c.Z.updateSingletonFactory(Qt.__dashjs_factory_name,Jt);var en=Jt;function tn(){var e,t,n,r,i,a=this.context,s=(0,l.Z)(a).getInstance();return e={attachMediaSource:function(e){var n=window.URL.createObjectURL(t);return e.setSource(n),"managedMediaSource"===r&&(e.setDisableRemotePlayback(!0),t.addEventListener("startstreaming",function(){s.trigger(f.Z.MANAGED_MEDIA_SOURCE_START_STREAMING)}),t.addEventListener("endstreaming",function(){s.trigger(f.Z.MANAGED_MEDIA_SOURCE_END_STREAMING)})),n},createMediaSource:function(){var e="WebKitMediaSource"in window,n="MediaSource"in window;return"ManagedMediaSource"in window?(t=new ManagedMediaSource,r="managedMediaSource",i.info("Created ManagedMediaSource")):n?(t=new MediaSource,r="mediaSource",i.info("Created MediaSource")):e&&(t=new WebKitMediaSource,i.info("Created WebkitMediaSource")),t},detachMediaSource:function(e){e.setSource(null)},setConfig:function(e){e&&e.settings&&(n=e.settings)},setDuration:function e(r){t&&"open"===t.readyState&&(null===r&&isNaN(r)||t.duration!==r&&(r!==1/0||n.get().streaming.buffer.mediaSourceDurationInfinity||(r=Math.pow(2,32)),function(e){for(var t=e.sourceBuffers,n=0;n<t.length;n++)if(t[n].updating)return!0;return!1}(t)?setTimeout(e.bind(null,r),50):(i.info("Set MediaSource duration:"+r),t.duration=r)))},setSeekable:function(e,n){t&&"function"==typeof t.setLiveSeekableRange&&"function"==typeof t.clearLiveSeekableRange&&"open"===t.readyState&&e>=0&&e<n&&(t.clearLiveSeekableRange(),t.setLiveSeekableRange(e,n))},signalEndOfStream:function(e){if(e&&"open"===e.readyState){for(var t=e.sourceBuffers,n=0;n<t.length;n++){if(t[n].updating)return;if(0===t[n].buffered.length)return}i.info("call to mediaSource endOfStream"),e.endOfStream()}}},i=(0,d.Z)(a).getInstance().getLogger(e),e}tn.__dashjs_factory_name="MediaSourceController";var nn=c.Z.getSingletonFactory(tn);function rn(){var e,t,n,r,i,a,s,o,u,c,h,m="urn:mpeg:dash:event:2012",p="discarded",g="updated",y="added",_=this.context,v=(0,l.Z)(_).getInstance();function E(){if(!s||!o)throw new Error("setConfig function has to be called previously")}function b(){h=!1,n={},r={},i=null,c=!1,a=Date.now()/1e3}function T(){try{if(!c){c=!0;var e=o.getTime(),i=e-a;i=a>0?Math.max(0,i):0,S(r,i,e),S(n,i,e),w(r),w(n),a=e,c=!1}}catch(e){c=!1,t.error(e)}}function S(e,n,r){try{D(e,function(i){if(void 0!==i){var a=isNaN(i.duration)?0:i.duration;i.calculatedPresentationTime<=r&&i.calculatedPresentationTime+n+a>=r?I(i,f.Z.EVENT_MODE_ON_START):(k(r,a+n,i.calculatedPresentationTime)||function(e){try{var n=e.eventStream.period.start+e.eventStream.period.duration;return e.calculatedPresentationTime>n}catch(e){return t.error(e),!1}}(i))&&(t.debug("Removing event ".concat(i.id," from period ").concat(i.eventStream.period.id," as it is expired or invalid")),function(e,n){try{var r=n.eventStream.schemeIdUri,i=n.eventStream.period.id,a=n.eventStream.value,s=n.id;e[i][r]=e[i][r].filter(function(e){return a&&e.eventStream.value&&e.eventStream.value!==a||e.id!==s}),0===e[i][r].length&&delete e[i][r]}catch(e){t.error(e)}}(e,i))}})}catch(e){t.error(e)}}function w(e){try{for(var n in e)e.hasOwnProperty(n)&&0===Object.keys(e[n]).length&&delete e[n]}catch(e){t.error(e)}}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.eventStream.schemeIdUri,i=e.eventStream.value,a=e.id,s=p;t[r]||(t[r]=[]);var o=t[r].findIndex(function(e){return(!i||e.eventStream.value&&e.eventStream.value===i)&&e.id===a});if(-1===o)t[r].push(e),e.triggeredReceivedEvent=!1,e.triggeredStartEvent=!1,s=y;else if(n){var l=t[r][o];e.triggeredReceivedEvent=l.triggeredReceivedEvent,e.triggeredStartEvent=l.triggeredStartEvent,t[r][o]=e,s=g}return s}function A(e){try{if(1==e.eventStream.value){var n,r=e.calculatedPresentationTime;n=4294967295==e.calculatedPresentationTime?NaN:e.calculatedPresentationTime+e.duration,v.trigger(f.Z.MANIFEST_VALIDITY_CHANGED,{id:e.id,validUntil:r,newDuration:n,newManifestValidAfter:NaN},{mode:f.Z.EVENT_MODE_ON_START})}}catch(e){t.error(e)}}function M(e){try{var n=o.getTime();D(e,function(e){var t=e.eventStream&&e.eventStream.period&&!isNaN(e.eventStream.period.duration)?e.eventStream.period.duration:NaN,r=e.eventStream&&e.eventStream.period&&!isNaN(e.eventStream.period.start)?e.eventStream.period.start:NaN;if(!isNaN(t)&&!isNaN(r)){var i=e.calculatedPresentationTime;Math.abs(i-n)<300&&I(e,f.Z.EVENT_MODE_ON_START)}})}catch(e){t.error(e)}}function D(e,n){try{if(e)for(var r=Object.keys(e),i=0;i<r.length;i++)for(var a=e[r[i]],s=Object.keys(a),o=0;o<s.length;o++)a[s[o]].forEach(function(e){void 0!==e&&n(e)})}catch(e){t.error(e)}}function k(e,n,r){try{return e-n>r}catch(e){return t.error(e),!1}}function I(e,n){try{var r=o.getTime(),i=e.id;if(n===f.Z.EVENT_MODE_ON_RECEIVE&&!e.triggeredReceivedEvent)return t.debug("Received event ".concat(i)),e.triggeredReceivedEvent=!0,void v.trigger(e.eventStream.schemeIdUri,{event:e},{mode:n});e.triggeredStartEvent||(e.eventStream.schemeIdUri===m&&1==e.eventStream.value?0===e.duration&&0===e.presentationTimeDelta||(t.debug("Starting manifest refresh event ".concat(i," at ").concat(r)),function(){try{E(),s.refreshManifest()}catch(e){t.error(e)}}()):"urn:mpeg:dash:event:callback:2015"===e.eventStream.schemeIdUri&&1==e.eventStream.value?(t.debug("Starting callback event ".concat(i," at ").concat(r)),function(e){try{(0,oe.Z)(_).create({}).load({method:"get",url:e,request:{responseType:"arraybuffer"}})}catch(e){t.error(e)}}(e.messageData)):(t.debug("Starting event ".concat(i," from peri
2od ").concat(e.eventStream.period.id," at ").concat(r)),v.trigger(e.eventStream.schemeIdUri,{event:e},{mode:n})),e.triggeredStartEvent=!0)}catch(e){t.error(e)}}return e={addInlineEvents:function(e,r){try{if(E(),n[r]||(n[r]={}),e)for(var i=0;i<e.length;i++){var a=e[i];if(!k(o.getTime(),isNaN(a.duration)?0:a.duration,a.calculatedPresentationTime)){var s=L(a,n[r],!0);s===y?(t.debug("Added inline event with id ".concat(a.id," from period ").concat(r)),I(a,f.Z.EVENT_MODE_ON_RECEIVE)):s===g&&t.debug("Updated inline event with id ".concat(a.id," from period ").concat(r))}}}catch(e){throw e}},addInbandEvents:function(e,n){try{E(),r[n]||(r[n]={});for(var i=0;i<e.length;i++){var a=e[i];k(o.getTime(),isNaN(a.duration)?0:a.duration,a.calculatedPresentationTime)||(L(a,r[n],!1)===y?(a.eventStream.schemeIdUri===m&&A(a),t.debug("Added inband event with id ".concat(a.id," from period ").concat(n)),I(a,f.Z.EVENT_MODE_ON_RECEIVE)):t.debug("Inband event with scheme_id_uri ".concat(a.eventStream.schemeIdUri,", value ").concat(a.eventStream.value,", period id ").concat(n," and event id ").concat(a.id," was ignored because it has been added before.")))}T()}catch(e){throw e}},getInbandEvents:function(){return r},getInlineEvents:function(){return n},start:function(){try{E(),t.debug("Start Event Controller");var e=u.get().streaming.eventControllerRefreshDelay;h||isNaN(e)||(h=!0,i=setInterval(T,e))}catch(e){throw e}},setConfig:function(e){try{if(!e)return;e.manifestUpdater&&(s=e.manifestUpdater),e.playbackController&&(o=e.playbackController),e.settings&&(u=e.settings)}catch(e){throw e}},reset:function(){(function(){try{null!==i&&h&&(clearInterval(i),i=null,h=!1,function(){try{M(r),M(n)}catch(e){t.error(e)}}())}catch(e){throw e}})(),b()}},t=(0,d.Z)(_).getInstance().getLogger(e),b(),e}rn.__dashjs_factory_name="EventController";var an=c.Z.getSingletonFactory(rn),sn={LEVELS:{SUGGESTION:"Suggestion",WARNING:"Warning",ERROR:"Error"},EVENTS:{NO_UTC_TIMING_ELEMENT:{key:"NO_UTC_TIMING_ELEMENT",message:"No UTCTiming element is present in the manifest. You may experience playback failures. For a detailed validation use https://conformance.dashif.org/"},NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE:{key:"NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE",message:'SMPTE 2052-1:2013 defines the attribute name as "imageType" and does not define "imagetype"'},INVALID_DVR_WINDOW:{key:"INVALID_DVR_WINDOW",message:"No valid segment found when applying a specification compliant DVR window calculation. Using SegmentTimeline entries as a fallback."}}};function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ln(){var e,t,n,r,i,s,c,h,m,p,g,y,_,v,E,b,S,w,L,A,D,k,I,R,C,P,O,N,F,Y,U,B,j,H,G,Z,$,z,q,W,V,K,X,Q,te,ne,re,ie,ae=this.context,se=(0,l.Z)(ae).getInstance();function oe(){if(!(s&&s.hasOwnProperty("load")&&D&&D.hasOwnProperty("initialize")&&D.hasOwnProperty("reset")&&D.hasOwnProperty("getClientTimeOffset")&&c&&A&&m&&j))throw new Error(a.Z.MISSING_CONFIG_ERROR)}function le(){if(!i||!i.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}function ue(){!function(){try{var e=h.getStreamsInfo();if(!I&&0===e.length)throw new Error("There are no periods in the MPD");I&&e.length>0&&m.updateManifestUpdateInfo({currentTime:j.getTime(),buffered:B.getBufferRange(),presentationStartTime:e[0].start,clientTimeOffset:D.getClientTimeOffset()}),k.length>0&&function(e){0!==e.length?k=k.filter(function(n){var r=e.filter(function(e){return e.id===n.getId()}).length>0||n.getId()===I.getId();return r||(t.debug("Removing stream ".concat(n.getId())),n.reset(!0)),r}):t.warn("No periods included in the current manifest. Skipping the filtering of outdated stream objects.")}(e);for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r];n.push(de(a)),m.addManifestUpdateStreamInfo(a)}Promise.all(n).then(function(){return new Promise(function(t,n){I?t():fe(e,t,n)})}).then(function(){se.trigger(u.Z.STREAMS_COMPOSED),Ce()}).catch(function(e){throw e})}catch(e){A.error(new T.Z(M.MANIFEST_ERROR_ID_NOSTREAMS_CODE,e.message+" nostreamscomposed",c.getValue())),Y=!0,Xe()}}()}function ce(){te=!0}function de(e){var t=We(e.id);return t?t.updateData(e):(t=Gt(ae).create({manifestModel:c,mediaPlayerModel:G,dashMetrics:m,manifestUpdater:i,adapter:h,timelineConverter:D,capabilities:n,capabilitiesFilter:r,errHandler:A,baseURLController:_,segmentBaseController:v,textController:C,abrController:b,playbackController:j,eventController:w,mediaController:S,protectionController:R,videoModel:B,streamInfo:e,settings:Q}),k.push(t),t.initialize(),Promise.resolve())}function fe(e,n,r){try{we();var i=m.getCurrentDVRInfo().range;if(i.end<i.start){ne&&clearTimeout(ne);var a=Math.min(1e3*(-1*(i.end-i.start)+2),2147483647);return t.debug("Waiting for ".concat(a," ms before playback can start")),se.trigger(u.Z.AST_IN_FUTURE,{delay:a}),void(ne=setTimeout(function(){fe(e,n,r)},a))}Q.get().streaming.applyProducerReferenceTime&&H.calculateProducerReferenceTimeOffsets(e);var s=e[0].manifestInfo;if(Q.get().streaming.applyServiceDescription&&H.applyServiceDescription(s),h.getIsDynamic()){var o=Be(e,s);j.computeAndSetLiveDelay(o,s)}(Q.get().streaming.applyContentSteering&&y.shouldQueryBeforeStart()?y.loadSteeringData():Promise.resolve()).then(function(){var e=c.getValue();e&&_.update(e),he(),n()}).catch(function(e){t.error(e),he(),n()})}catch(e){r(e)}}function he(){var e=function(){var e;if(h.getIsDynamic()){var n=m.getCurrentDVRInfo();e=(n&&n.range?n.range.end:0)-j.getOriginalLiveDelay();var r=n?n.range:null;if(r){if(isNaN(re)&&-1===re.toString().indexOf("posix:")){var i=Fe(!0);isNaN(i)||(t.info("Start time from URI parameters: ".concat(i)),e=Math.min(e,i))}else{t.info("Start time provided by the app: ".concat(re));var a=Ye(!0,re);
2isNaN(a)||(e=Math.min(e,a))}var s=Q.get().streaming.timeShiftBuffer.calcFromSegmentTimeline?.1:0;e=Math.max(e,r.start+s)}}else if(e=Je()[0].getStreamInfo().start,isNaN(re)){var o=Fe(!1);isNaN(o)||(t.info("Start time from URI parameters: ".concat(o)),e=Math.max(e,o))}else{t.info("Start time provided by the app: ".concat(re));var l=Ye(!1,re);isNaN(l)||(e=Math.max(e,l))}return e}(),n=Se(e),r=null!==n?n:k[0];se.trigger(u.Z.INITIAL_STREAM_SWITCH,{startTime:e}),me(r,null,e),W||(W=setInterval(function(){!N&&j.getTimeToStreamEnd()<=0&&!j.isSeeking()&&se.trigger(u.Z.PLAYBACK_ENDED,{isLast:qe().isLast})},200))}function me(e,n,r){try{if(N||!e||n===e&&e.getIsActive())return;N=!0,se.trigger(u.Z.PERIOD_SWITCH_STARTED,{fromStreamInfo:n?n.getStreamInfo():null,toStreamInfo:e.getStreamInfo()});var i=!1;I=e,n&&(i=be(e,n),n.deactivate(i)),r=isNaN(r)?!i&&n?e.getStreamInfo().start:NaN:r,t.info("Switch to stream ".concat(e.getId(),". Seektime is ").concat(r,", current playback time is ").concat(j.getTime(),". Seamless period switch is set to ").concat(i)),K=K.filter(function(e){return e.getId()!==I.getId()}),j.initialize(qe(),!!n),B.getElement()?pe(r,i,!1):ge(r,i)}catch(e){N=!1}}function pe(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];function a(){if(U&&"open"===U.readyState){t.debug("MediaSource is open!"),window.URL.revokeObjectURL(r),U.removeEventListener("sourceopen",a),U.removeEventListener("webkitsourceopen",a),Ne();var s=m.getCurrentDVRInfo();p.setSeekable(s.range.start,s.range.end),i?(isNaN(e)||j.seek(e,!0,!0),I.setMediaSource(U).then(function(){I.initializeForTextWithMediaSource(U)})):ge(e,n)}}function s(){U.addEventListener("sourceopen",a,!1),U.addEventListener("webkitsourceopen",a,!1),r=p.attachMediaSource(B),t.debug("MediaSource attached to element. Waiting on open...")}U?n?ge(e,n):(p.detachMediaSource(B),s()):(U=p.createMediaSource(),s())}function ge(e,t){I.activate(U,t?V:void 0,e).then(function(t){if(t){var n=Object.keys(t);n.length>0&&t[n[0]].getBuffer().changeType&&(X=!0),V=t}isNaN(e)||(se.trigger(u.Z.SEEK_TARGET,{time:e},{streamId:I.getId()}),j.seek(e,!1,!0),I.startScheduleControllers()),N=!1,se.trigger(u.Z.PERIOD_SWITCH_COMPLETED,{toStreamInfo:qe()})})}function ye(e){var t=Se(e.seekTime);t&&t!==I?t&&t!==I&&(_e(),function(e,t){var n=e&&!isNaN(e.seekTime)?e.seekTime:NaN,r=I.getProcessors().map(function(t){return t.prepareOuterPeriodPlaybackSeeking(e)});Promise.all(r).then(function(){me(t,I,n)}).catch(function(e){A.error(e)})}
vendor: 19,981 bytes, line 2
2(e,t)):(_e(),function(e){I.getProcessors().forEach(function(t){return t.prepareInnerPeriodPlaybackSeeking(e)}),Ze(ee.USER_REQUEST_STOP_REASON)}(e)),$e(J.SEEK_START_REASON)}function _e(){ve()}function ve(){K&&K.length>0&&(K.forEach(function(e){e.deactivate(!0)}),K=[])}function Ee(e){if(e.newMediaInfo.streamInfo.id===I.getId()){if(ve(),Q.get().streaming.buffer.resetSourceBuffersForTrackSwitch&&e.oldMediaInfo&&e.oldMediaInfo.codec!==e.newMediaInfo.codec){var t=j.getTime();return I.deactivate(!1),void pe(t,!1,!1)}I.prepareTrackChange(e)}}function be(e,t){try{return Q.get().streaming.buffer.reuseExistingSourceBuffers&&(t.isProtectionCompatible(e)||te)&&(X&&Q.get().streaming.buffer.useChangeTypeForTrackSwitch||t.isMediaCodecCompatible(e,t))}catch(e){return!1}}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;U&&!e.getPreloaded()&&be(e,t)&&e.startPreloading(U,V).then(function(){K.push(e)})}function Se(e){if(isNaN(e))return null;for(var t=k.length,n=0;n<t;n++){var r=k[n];if(e<parseFloat((r.getStartTime()+r.getDuration()).toFixed(5)))return r}return null}function we(){try{var e=h.getIsDynamic(),t=h.getStreamsInfo()[0].manifestInfo,n=j.getTime(),r=D.calcTimeShiftBufferWindow(k,e),i=Oe();if(void 0===r.start||void 0===r.end)return;i&&0!==i.length?i.forEach(function(e){m.addDVRInfo(e.getType(),n,t,r)}):m.addDVRInfo(a.Z.VIDEO,n,t,r)}catch(e){}}function Le(e){if(z&&O){var t=G.getInitialBufferLevel(),n=[a.Z.TEXT];(isNaN(t)||t<=j.getBufferLevel(n)||h.getIsDynamic()&&t>j.getLiveDelay())&&(z=!1,$e(J.INITIAL_PLAYOUT_START_REASON),j.play())}e&&e.mediaType&&m.addBufferLevel(e.mediaType,new Date,1e3*e.bufferLevel)}function Ae(e){e.streamInfo.id===I.getId()&&e.reason&&e.reason.forceReplace&&ve(),We(e.streamInfo.id).prepareQualityChange(e)}function Me(){if(h.getIsDynamic()&&0!==j.getOriginalLiveDelay()&&I){var e=h.getStreamsInfo();if(e.length>0){var t=e[0].manifestInfo,n=Be(e,t);j.computeAndSetLiveDelay(n,t)}}}function De(){if(He()){var e=B.getPlaybackQuality();e&&m.addDroppedFrames(e)}}function ke(){t.debug("[onPlaybackStarted]"),!z&&$&&$e(J.RESUME_FROM_PAUSE_START_REASON),z&&(z=!1),q&&(q=!1,Q.get().streaming.applyContentSteering&&!y.shouldQueryBeforeStart()&&y.loadSteeringData()),$=!1}function Ie(e){t.debug("[onPlaybackPaused]"),e.ended||($=!0,Ze(ee.USER_REQUEST_STOP_REASON))}function Re(e){t.debug("Stream with id ".concat(e.streamInfo.id," finished buffering"));var n=e.streamInfo.isLast;U&&n?(t.info("[onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),p.signalEndOfStream(U)):Ce()}function Ce(){if(I&&I.getHasFinishedBuffering())for(var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var t=e||I||null;if(t){var n=t.getStreamInfo();return k.filter(function(e){var t=e.getStreamInfo();return t.start>n.start&&n.id!==t.id})}}catch(e){return[]}}(I),t=0;t<e.length;){var n=e[t],r=0===t?I:e[t-1];!n.getPreloaded()&&r.getHasFinishedBuffering()&&U&&Te(n,r),t+=1}}function Pe(){W&&(clearInterval(W),W=null)}function Oe(){return I?I.getProcessors():[]}function xe(e){if(I&&!I.getIsEndedEventSignaled()){I.setIsEndedEventSignaled(!0);var n=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||I||null;if(!e)return null;for(var t=e.getStreamInfo(),n=t.start,r=0,i=-1,a=NaN;r<k.length;){var s=k[r].getStreamInfo(),o=s.start-n;o>0&&(isNaN(a)||o<a)&&t.id!==s.id&&(a=o,i=r),r+=1}return i>=0?k[i]:null}();n?(t.debug("StreamController onEnded, found next stream with id ".concat(n.getStreamInfo().id,". Switching from ").concat(I.getStreamInfo().id," to ").concat(n.getStreamInfo().id)),me(n,I,NaN)):(t.debug("StreamController no next stream found"),I.setIsEndedEventSignaled(!1)),Ze(n?ee.END_OF_PERIOD_STOP_REASON:ee.END_OF_CONTENT_STOP_REASON)}e&&e.isLast&&(Pe(),y.stopSteeringRequestTimer())}function Ne(e){var t=e||qe().manifestInfo.duration;p.setDuration(t)}function Fe(e){var t=E.getURIFragmentData();if(!t||!t.t)return NaN;var n=Je()[0].getStreamInfo().start;return t.t=t.t.split(",")[0],Ue(e,t.t,n)}function Ye(e,t){var n=0;return e||(n=Je()[0].getStreamInfo().start),Ue(e,t,n)}function Ue(e,t,n){var r=h.getRegularPeriods()[0],i=t.toString(),a=-1!==i.indexOf("posix:")?"now"===i.substring(6)?Date.now()/1e3:parseFloat(i.substring(6)):NaN;return e&&!isNaN(a)?D.calcPresentationTimeFromWallTime(new Date(1e3*a),r):parseFloat(i)+n}function Be(e,t){try{var n=NaN;if(t&&!isNaN(t.maxFragmentDuration)&&isFinite(t.maxFragmentDuration))return t.maxFragmentDuration;if(e&&1===e.length){var r=e[0],i=[a.Z.VIDEO,a.Z.AUDIO,a.Z.TEXT].reduce(function(e,t){var n=h.getMediaInfoForType(r,t);return n&&!1!==n.isFragmented&&e.push(n),e},[]).reduce(function(e,t){var n=h.getVoRepresentations(t);return n&&n.length>0&&n.forEach(function(t){t&&e.push(t)}),e},[]).reduce(function(e,t){var n=h.convertRepresentationToRepresentationInfo(t);return n&&n.fragmentDuration&&!isNaN(n.fragmentDuration)&&e.push(n.fragmentDuration),e},[]);n=Math.max.apply(Math,function(e){if(Array.isArray(e))return on(e)}(s=i)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?on(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return isFinite(n)?n:NaN}catch(e){return NaN}var s}function je(e){if(e.error)Y=!0,Xe();else{t.info("Manifest updated... updating data system wide.");var n=e.manifest;h.updatePeriods(n);var i=h.getUTCTimingSources();!h.getIsDynamic()||i&&0!==i.length||se.trigger(f.Z.CONFORMANCE_VIOLATION,{level:sn.LEVELS.WARNING,event:sn.EVENTS.NO_UTC_TIMING_ELEMENT});var a=h.getIsDynamic()?i.concat(Z.getUTCTimingSources()):i;r.filterUnsupportedFeatures(n).then(function(){_.initialize(n),g.attemptSync(a,h.getIsDynamic())})}}function He(){return!!I&&I.getHasVideoTrack()}function Ge(){return!!I&&I.getHasAudioTrack()}function Ze(e,t){t=t||new Date,Oe().forEach(function(n){n.finalisePlayList(t,e)}),m.addPlayList()}function $e(e){m.createPlaylistMetrics(1e3*j.getTime(),e)}function ze(e){if(e.error){var n="";switch(e.error.code){case 1:n="MEDIA_ERR_ABORTED";break;case 2:n="MEDIA_ERR_NETWORK";break;case 3:n="MEDIA_ERR_DECODE",ie.counts.mediaErrorDecode+=1;break;case 4:n="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:n="MEDIA_ERR_ENCRYPTED";break;default:n="UNKNOWN"}"MEDIA_ERR_DECODE"===n&&Q.get().errors.recoverAttempts.mediaErrorDecode>=ie.counts.mediaErrorDecode?function(){t.warn("A MEDIA_ERR_DECODE occured: Resetting the MediaSource");var e=j.getTime();I.deactivate(!1),t.warn("MediaSource has been resetted. Resuming playback from time ".concat(e)),pe(e,!1,!1)}():(F=!0,e.error.message&&(n+=" ("+e.error.message+")"),e.error.msExtendedCode&&(n+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),t.fatal("Video Element Error: "+n),e.error&&t.fatal(e.error),A.error(new T.Z(e.error.code,n)),Xe())}}function qe(){return I?I.getStreamInfo():null}function We(e){for(var t=0,n=k.length;t<n;t++)if(k[t].getId()===e)return k[t];return null}function Ve(e){isNaN(e.newDuration)||Ne(e.newDuration)}function Ke(){k=[],re=NaN,R=null,N=!1,I=null,F=!1,Y=!1,z=!0,q=!0,$=!1,O=!0,W=null,te=!1,X=!1,K=[],ne=null,ie={counts:{mediaErrorDecode:0}}}function Xe(){oe(),g.reset(),Ze(F||Y?ee.FAILURE_STOP_REASON:ee.USER_REQUEST_STOP_REASON);for(var t=0,n=k?k.length:0;t<n;t++)k[t].reset(F);se.off(f.Z.PLAYBACK_TIME_UPDATED,De,e),se.off(f.Z.PLAYBACK_SEEKING,ye,e),se.off(f.Z.PLAYBACK_ERROR,ze,e),se.off(f.Z.PLAYBACK_STARTED,ke,e),se.off(f.Z.PLAYBACK_PAUSED,Ie,e),se.off(f.Z.PLAYBACK_ENDED,xe,e),se.off(f.Z.METRIC_ADDED,Qe,e),se.off(f.Z.MANIFEST_VALIDITY_CHANGED,Ve,e),se.off(f.Z.BUFFER_LEVEL_UPDATED,Le,e),se.off(f.Z.QUALITY_CHANGE_REQUESTED,Ae,e),u.Z.KEY_SESSION_UPDATED&&se.off(u.Z.KEY_SESSION_UPDATED,ce,e),se.off(u.Z.MANIFEST_UPDATED,je,e),se.off(u.Z.STREAM_BUFFERING_COMPLETED,Re,e),se.off(u.Z.TIME_SYNCHRONIZATION_COMPLETED,ue,e),se.off(u.Z.CURRENT_TRACK_CHANGED,Ee,e),se.off(u.Z.SETTING_UPDATED_LIVE_DELAY,Me,e),se.off(u.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,Me,e),_.reset(),i.reset(),w.reset(),m.clearAllCurrentMetrics(),c.setValue(null),s.reset(),D.reset(),L.reset(),U&&(p.detachMediaSource(B),U=null),B=null,R&&(R=null,P=null,c.getValue()&&se.trigger(u.Z.PROTECTION_DESTROYED,{data:c.getValue().url})),Pe(),se.trigger(u.Z.STREAM_TEARDOWN_COMPLETE),Ke()}function Qe(e){if(e.metric===o.Z.DVR_INFO){var t=Ge()?a.Z.AUDIO:a.Z.VIDEO;e.mediaType===t&&p.setSeekable(e.value.range.start,e.value.range.end)}}function Je(){return k}return e={initialize:function(t,n){oe(),O=t,P=n,D.initialize(),(i=Xt(ae).create()).setConfig({manifestModel:c,adapter:h,manifestLoader:s,errHandler:A,settings:Q,contentSteeringController:y}),i.initialize(),(w=an(ae).getInstance()).setConfig({manifestUpdater:i,playbackController:j,settings:Q}),w.start(),g.setConfig({dashMetrics:m,baseURLController:_,errHandler:A,settings:Q}),g.initialize(),p.setConfig({settings:Q}),R&&(se.trigger(u.Z.PROTECTION_CREATED,{controller:R}),R.setMediaElement(B.getElement()),P&&R.setProtectionData(P)),se.on(f.Z.PLAYBACK_TIME_UPDATED,De,e),se.on(f.Z.PLAYBACK_SEEKING,ye,e),se.on(f.Z.PLAYBACK_ERROR,ze,e),se.on(f.Z.PLAYBACK_STARTED,ke,e),se.on(f.Z.PLAYBACK_PAUSED,Ie,e),se.on(f.Z.PLAYBACK_ENDED,xe,e),se.on(f.Z.METRIC_ADDED,Qe,e),se.on(f.Z.MANIFEST_VALIDITY_CHANGED,Ve,e),se.on(f.Z.BUFFER_LEVEL_UPDATED,Le,e),se.on(f.Z.QUALITY_CHANGE_REQUESTED,Ae,e),u.Z.KEY_SESSION_UPDATED&&se.on(u.Z.KEY_SESSION_UPDATED,ce,e),se.on(u.Z.MANIFEST_UPDATED,je,e),se.on(u.Z.STREAM_BUFFERING_COMPLETED,Re,e),se.on(u.Z.TIME_SYNCHRONIZATION_COMPLETED,ue,e),se.on(u.Z.CURRENT_TRACK_CHANGED,Ee,e),se.on(u.Z.SETTING_UPDATED_LIVE_DELAY,Me,e),se.on(u.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,Me,e)},getActiveStreamInfo:qe,addDVRMetric:we,hasVideoTrack:He,hasAudioTrack:Ge,getStreamById:We,getStreamForTime:Se,getTimeRelativeToStreamId:function(e,t){for(var n=null,r=0,i=0,a=null,s=0;s<k.length;s++){if(i=(n=k[s]).getStartTime(),a=n.getDuration(),Number.isFinite(i)&&(r=i),n.getId()===t)return e-r;Number.isFinite(a)&&(r+=a)}return null},load:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;oe(),re=t,s.load(e)},loadWithManifest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;le(),re=t,i.setManifest(e)},getActiveStreamProcessors:Oe,setConfig:function(e){e&&(e.capabilities&&(n=e.capabilities),e.capabilitiesFilter&&(r=e.capabilitiesFilter),e.manifestLoader&&(s=e.manifestLoader),e.manifestModel&&(c=e.manifestModel),e.mediaPlayerModel&&(G=e.mediaPlayerModel),e.customParametersModel&&(Z=e.customParametersModel),e.protectionController&&(R=e.protectionController),e.adapter&&(h=e.adapter),e.dashMetrics&&(m=e.dashMetrics),e.errHandler&&(A=e.errHandler),e.timelineConverter&&(D=e.timelineConverter),e.videoModel&&(B=e.videoModel),e.playbackController&&(j=e.playbackController),e.serviceDescriptionController&&(H=e.serviceDescriptionController),e.contentSteeringController&&(y=e.contentSteeringController),e.textController&&(C=e.textController),e.abrController&&(b=e.abrController),e.mediaController&&(S=e.mediaController),e.settings&&(Q=e.settings),e.baseURLController&&(_=e.baseURLController),e.uriFragmentModel&&(E=e.uriFragmentModel),e.segmentBaseController&&(v=e.segmentBaseController),e.manifestUpdater&&(i=e.manifestUpdater))},setProtectionData:function(e){P=e,R&&R.setProtectionData(P)},getIsStreamSwitchInProgress:function(){return N},switchToVideoElement:function(e){I&&(j.initialize(qe()),pe(e,!1,!0))},getHasMediaOrInitialisationError:function(){return F||Y},getStreams:Je,getActiveStream:function(){return I},getInitialPlayback:function(){return z},getAutoPlay:function(){return O},refreshManifest:function(){i.getIsUpdating()||i.refreshManifest()},reset:Xe},t=(0,d.Z)(ae).getInstance().getLogger(e),g=en(ae).getInstance(),p=nn(ae).getInstance(),L=x(ae).getInstance(),Ke(),e}ln.__dashjs_factory_name="StreamController";var un=c.Z.getSingletonFactory(ln);function cn(){var e,t,n,r,i,s,o,c,f,h,m,p,g=this.context,y=(0,l.Z)(g).getInstance();function _(){p.debug("Stopping the gap controller"),i&&(clearInterval(i),i=null),function(){y.off(u.Z.WALLCLOCK_TIME_UPDATED,S,this),y.off(u.Z.INITIAL_STREAM_SWITCH,T,this),y.off(u.Z.PLAYBACK_SEEKING,v,this),y.off(u.Z.BUFFER_REPLACEMENT_STARTED,E,e),y.off(u.Z.TRACK_CHANGE_RENDERED,b,e)}(),i=null,s=NaN,r=0,h=null,m={}}function v(){h&&(clearTimeout(h),h=null)}function E(e){try{if(e.streamId!==c.getActiveStreamInfo().id||e.mediaType!==a.Z.VIDEO&&e.mediaType!==a.Z.AUDIO)return;e.streamId===c.getActiveStreamInfo().id&&(m[e.mediaType]=!0)}catch(e){p.error(e)}}function b(e){e&&e.mediaType&&(m[e.mediaType]=!1)}function T(){i||function(){try{i||(p.debug("Starting the gap controller"),i=setInterval(function(){w()&&D(o.getTime())},100))}catch(e){}}()}function S(){if(w(n.get().streaming.gaps.enableSeekFix)&&++r>=10){var e=o.getTime();t===e?D(e,!0):(t=e,s=NaN),r=0}}function w(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!c.getActiveStream())return!1;var t=Object.keys(m).some(function(e){return m[e]}),r=!!e&&L();return!t&&n.get().streaming.gaps.jumpGaps&&c.getActiveStreamProcessors().length>0&&(!o.isSeeking()||r)&&!o.isPaused()&&!c.getIsStreamSwitchInProgress()&&!c.getHasMediaOrInitialisationError()}function L(){var e=c.getActiveStream(),t=parseFloat((e.getStartTime()+e.getDuration()).toFixed(5));return o.getTime()+n.get().streaming.gaps.threshold>=t}function A(e,t){try{if(!e||e.length<=1&&t>0)return NaN;for(var r=NaN,i=0;isNaN(r)&&i<e.length;){var a=i>0?e.end(i-1):0;t<e.start(i)&&a-t<n.get().streaming.gaps.threshold&&(r=i),i+=1}return r}catch(e){return null}}function M(e,t){for(var n=0,r=e.length;n<r;n++)if(t>=e.start(n)&&t<=e.end(n))return!0;return!1}function D(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.get().streaming.gaps.enableStallFix,a=n.get().streaming.gaps.stallSeek,l=n.get().streaming.gaps.smallGapLimit,u=n.get().streaming.gaps.jumpLargeGaps,d=f.getBufferRange(),m=NaN,g=!1;if(t=A(d,e),!isNaN(t)){var y=d.start(t),_=y-e;_>0&&(_<=l||u)&&(m=y)}var v=o.getTimeToStreamEnd();if(isNaN(m)&&r&&isFinite(v)&&!isNaN(v)&&v<l&&(m=parseFloat(o.getStreamEndTime().toFixed(5)),g=!0),i&&isNaN(m)&&r&&isNaN(t)&&M(d,e)&&(0===a?(p.warn("Toggle play pause to break stall"),f.pause(),f.play()):(p.warn("Jumping ".concat(a,"s to break stall")),m=e+a)),m>0&&s!==m&&m>e&&!h){var E=m-e;if(g){var b=c.getStreamForTime(m),T=b&&!!b.getPreloaded();p.warn("Jumping to end of stream because of gap from ".concat(e," to ").concat(m,". Gap duration: ").concat(E)),o.seek(m,!0,T)}else{var S=o.getIsDynamic(),w=t>0?d.end(t-1):e,L=S?1e3*Math.max(0,E-.1):0;h=window.setTimeout(function(){o.seek(m,!0,!0),p.warn("Jumping gap occuring in period ".concat(c.getActiveStream().getStreamId()," starting at ").concat(w," and ending at ").concat(m,". Jumping by: ").concat(m-w)),h=null},L)}s=m}}return e={reset:_,setConfig:function(e){e&&(e.settings&&(n=e.settings),e.playbackController&&(o=e.playbackController),e.streamController&&(c=e.streamController),e.videoModel&&(f=e.videoModel))},initialize:function(){!function(){y.on(u.Z.WALLCLOCK_TIME_UPDATED,S,this),y.on(u.Z.INITIAL_STREAM_SWITCH,T,this),y.on(u.Z.PLAYBACK_SEEKING,v,this),y.on(u.Z.BUFFER_REPLACEMENT_STARTED,E,e),y.on(u.Z.TRACK_CHANGE_RENDERED,b,e)}()}},p=(0,d.Z)(g).getInstance().getLogger(e),_(),e}cn.__dashjs_factory_name="GapController";var dn=c.Z.getSingletonFactory(cn);function fn(){var e,t,n,r,i,s,c,h,m,p,g=this.context,y=(0,l.Z)(g).getInstance();function _(){t=!1;var e=Ge.Z.parseUserAgent();n=e&&e.browser&&e.browser.name&&"safari"===e.browser.name.toLowerCase()}function v(){t=!1}function E(e){if(e.streamId===s.getActiveStreamInfo().id&&m){var t=c.getLiveDelay();c.getBufferLevel()>t/2&&(m=!1)}}function b(e){e.streamId===s.getActiveStreamInfo().id&&(m=e.state===o.Z.BUFFER_EMPTY)}function T(){h.getCatchupModeEnabled()||r.setPlaybackRate(1)}function S(){c.getIsDynamic()&&h.getCatchupModeEnabled()&&(h.getCatchupPlaybackRates().max>0||h.getCatchupPlaybackRates().min<0)&&!c.isPaused()&&!c.isSeeking()&&function(){try{return!(!c.getTime()>0||t)&&(L()===a.Z.LIVE_CATCHUP_MODE_LOLP?function(e,t){try{return Math.abs(w())>0||e<t}catch(e){return!1}}(c.getBufferLevel(),i.get().streaming.liveCatchup.playbackBufferMin):function(){try{return Math.abs(w())>0}catch(e){return!1}}())}catch(e){return!1}}()&&function(){if(!t&&r){var e,s=r.getPlaybackRate(),o=h.getCatchupPlaybackRates(),l=c.getBufferLevel(),u=w(),d=h.getCatchupMaxDrift();if(!isNaN(d)&&d>0&&u>d)p.info("[CatchupController]: Low Latency catchup mechanism. Latency too high, doing a seek to live point"),t=!0,c.seekToCurrentLive(!0,!1);else{var f=c.getCurrentLiveLatency(),g=c.getLiveDelay();e=L()===a.Z.LIVE_CATCHUP_MODE_LOLP?function(e,t,n,r,i){var a;if(i<r){var s=Math.abs(e.min),o=5*(i-r);a=1-s+2*s/(1+Math.pow(Math.E,-o)),p.debug("[LoL+ playback control_buffer-based] bufferLevel: "+i+", newRate: "+a)}else{if(Math.abs(t-n)<=.02*n)a=1;else{var l=t-n,u=l<0?Math.abs(e.min):e.max,c=5*l;a=1-u+2*u/(1+Math.pow(Math.E,-c))}p.debug("[LoL+ playback control_latency-based] latency: "+t+", newRate: "+a)}return a}(o,f,g,i.get().streaming.liveCatchup.playbackBufferMin,l):function(e,t,n,r){if(m)return 1;var i=t-n,a=i<0?Math.abs(e.min):e.max,s=5*i,o=1-a+2*a/(1+Math.pow(Math.E,-s));return c.getPlaybackStalled()&&r<=n/2&&i>0&&(o=1),o}(o,f,g,l);var y=n?.25:.02/(.5/o.max);e&&Math.abs(s-e)>=y&&(p.debug("[CatchupController]: Setting playback rate to ".concat(e)),r.setPlaybackRate(e))}}}()}function w(){return c.getCurrentLiveLatency()-c.getLiveDelay()}function L(){var e=i.get().streaming.liveCatchup.playbackBufferMin;return i.get().streaming.liveCatchup.mode!==a.Z.LIVE_CATCHUP_MODE_LOLP||null===e||isNaN(e)?a.Z.LIVE_CATCHUP_MODE_DEFAULT:a.Z.LIVE_CATCHUP_MODE_LOLP}function A(){h.getCatchupPlaybackRates(!0)}return e={reset:function(){y.off(f.Z.BUFFER_LEVEL_UPDATED,E,e),y.off(f.Z.BUFFER_LEVEL_STATE_CHANGED,b,e),y.off(f.Z.PLAYBACK_PROGRESS,S,e),y.off(f.Z.PLAYBACK_TIME_UPDATED,S,e),y.off(f.Z.PLAYBACK_SEEKED,v,e),y.off(u.Z.SETTING_UPDATED_CATCHUP_ENABLED,T,e),y.off(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,A,e),y.off(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,A,e),y.off(f.Z.STREAM_INITIALIZED,A,e),_(),r.setPlaybackRate(1,!0)},setConfig:function(e){e&&(e.settings&&(i=e.settings),e.videoModel&&(r=e.videoModel),e.streamController&&(s=e.streamController),e.playbackController&&(c=e.playbackController),e.mediaPlayerModel&&(h=e.mediaPlayerModel))},initialize:function(){y.on(f.Z.BUFFER_LEVEL_UPDATED,E,e),y.on(f.Z.BUFFER_LEVEL_STATE_CHANGED,b,e),y.on(f.Z.PLAYBACK_PROGRESS,S,e),y.on(f.Z.PLAYBACK_TIME_UPDATED,S,e),y.on(f.Z.PLAYBACK_SEEKED,v,e),y.on(u.Z.SETTING_UPDATED_CATCHUP_ENABLED,T,e),y.on(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,A,e),y.on(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,A,e),y.on(f.Z.STREAM_INITIALIZED,A,e),A()}},p=(0,d.Z)(g).getInstance().getLogger(e),_(),e}fn.__dashjs_factory_name="CatchupController";var hn=c.Z.getSingletonFactory(fn),mn=[a.Z.SERVICE_DESCRIPTION_DVB_LL_SCHEME],pn="video",gn="audio";function yn(){var e,t,n,r,i,o=this.context;function l(){t={liveDelay:NaN,liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN}},minBitrate:{},maxBitrate:{},initialBitrate:{},contentSteering:null},n=[]}function u(e,n,i){try{t[e][n]=i/1e3}catch(e){r.error(e)}}return e={getServiceDescriptionSettings:function(){return t},getProducerReferenceTimeOffsets:function(){return n},calculateProducerReferenceTimeOffsets:function(e){try{var t=[];if(e&&e.length>0){var o=[a.Z.VIDEO,a.Z.AUDIO,a.Z.TEXT],l=i.getAvailabilityStartTime()/1e3;e.forEach(function(e){var n=o.reduce(function(t,n){return t.concat(i.getAllMediaInfoForType(e,n))},[]).reduce(function(t,n){return i.getProducerReferenceTimes(e,n).forEac
2h(function(r){var a=i.getVoRepresentations(n);if(a&&a.length>0&&a[0].adaptation&&a[0].segmentInfoType===s.Z.SEGMENT_TEMPLATE){var o=a[0],u=new Date(r[s.Z.WALL_CLOCK_TIME]).getTime()/1e3-(r[s.Z.PRESENTATION_TIME]/o[s.Z.TIMESCALE]-o[s.Z.PRESENTATION_TIME_OFFSET]+e.start),c=l-u;t.push({id:r[s.Z.ID],to:c})}}),t},[]);t=t.concat(n)})}n=t}catch(e){r.error(e),n=[]}},applyServiceDescription:function(e){if(e&&e.serviceDescriptions){var i=e.serviceDescriptions.filter(function(e){return mn.includes(e.schemeIdUri)}),s=e.serviceDescriptions.filter(function(e){return null==e.schemeIdUri}),o=i.length>0?i[i.length-1]:s[s.length-1];o&&(o.latency&&o.latency.target>0&&function(e){var i;if(e.schemeIdUri,a.Z.SERVICE_DESCRIPTION_DVB_LL_SCHEME,i=function(e){return{liveDelay:e.latency.target/1e3,maxDrift:!isNaN(e.latency.max)&&e.latency.max>e.latency.target?(e.latency.max-e.latency.target+500)/1e3:NaN,referenceId:e.latency.referenceId||NaN}}(e),n.length>0){var s=function(e){var t,r=0,i=n.filter(function(t){return t.id===e.referenceId});return 0===i.length?(r=n.length>0?n[0].to:0,t=n[0].id||NaN):(r=i[0].to||0,t=i[0].id||NaN),{to:r,id:t}}(i),o=s.to,l=s.id;t.liveDelay=i.liveDelay-o,t.liveCatchup.maxDrift=i.maxDrift,r.debug("\n Found latency properties coming from service description. Applied time offset of ".concat(o," from ProducerReferenceTime element with id ").concat(l,".\n Live Delay: ").concat(i.liveDelay-o,", Live catchup max drift: ").concat(i.maxDrift,"\n "))}else t.liveDelay=i.liveDelay,t.liveCatchup.maxDrift=i.maxDrift,r.debug("Found latency properties coming from service description: Live Delay: ".concat(i.liveDelay,", Live catchup max drift: ").concat(i.maxDrift))}(o),o.playbackRate&&function(e){var n=e.playbackRate.min?Math.round(1e3*(e.playbackRate.min-1))/1e3:NaN,i=e.playbackRate.max?Math.round(1e3*(e.playbackRate.max-1))/1e3:NaN;t.liveCatchup.playbackRate.min=n,t.liveCatchup.playbackRate.max=i,r.debug("Found latency properties coming from service description: Live catchup min playback rate: ".concat(n)),r.debug("Found latency properties coming from service description: Live catchup max playback rate: ".concat(i))}(o),o.operatingQuality,o.operatingBandwidth&&function(e){if(e&&e.operatingBandwidth&&e.operatingBandwidth.mediaType&&"all"!==e.operatingBandwidth.mediaType){var t={};t.minBandwidth=e.operatingBandwidth.min,t.maxBandwidth=e.operatingBandwidth.max,t.targetBandwidth=e.operatingBandwidth.target;var n=[];e.operatingBandwidth.mediaType===pn||e.operatingBandwidth.mediaType===gn?n.push(e.operatingBandwidth.mediaType):"any"===e.operatingBandwidth.mediaType&&(n.push(gn),n.push(pn)),n.forEach(function(e){isNaN(t.minBandwidth)||u("minBitrate",e,t.minBandwidth),isNaN(t.maxBandwidth)||u("maxBitrate",e,t.maxBandwidth),isNaN(t.targetBandwidth)||u("initialBitrate",e,t.targetBandwidth)})}}(o),o.contentSteering&&function(e){t.contentSteering=e.contentSteering}(o))}},reset:function(){l()},setConfig:function(e){e&&e.adapter&&(i=e.adapter)}},r=(0,d.Z)(o).getInstance().getLogger(e),l(),e}yn.__dashjs_factory_name="ServiceDescriptionController";var _n=c.Z.getSingletonFactory(yn),vn=n(3973),En=n.n(vn),bn=n(3039);function Tn(){var e,t,n,r,i,s,o,c,f=this.context,h=(0,l.Z)(f).getInstance();function m(e,t){return e&&n[t]&&n[t][e]?n[t][e].list:[]}function p(e,t){return e&&n[t]&&n[t][e]?n[t][e].current:null}function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.streamInfo){var i=e.type,o=e.streamInfo.id,l=p(i,o);if(n[o]&&n[o][i]&&(n[o][i].current=e,n[o][i].current&&(i!==a.Z.TEXT&&!v(e,l)||i===a.Z.TEXT&&e.isFragmented)&&h.trigger(u.Z.CURRENT_TRACK_CHANGED,{oldMediaInfo:l,newMediaInfo:e,switchMode:r.get().streaming.trackSwitchMode[i]},{streamId:o}),!t)){var d=b(e);if(!d||!n[o][i].storeLastSettings)return;d.roles&&(d.role=d.roles[0],delete d.roles),d.accessibility&&(d.accessibility=d.accessibility[0]),d.audioChannelConfiguration&&(d.audioChannelConfiguration=d.audioChannelConfiguration[0]),s[i]=d,c.setSavedMediaSettings(i,d)}}}function y(e,t){e&&t&&(i[e]=t)}function _(e){return e?i[e]:null}function v(e,t){if(!e&&!t)return!0;
2if(!e||!t)return!1;var n=e.id===t.id,r=e.viewpoint===t.viewpoint,i=JSON.stringify(e.viewpointsWithSchemeIdUri)===JSON.stringify(t.viewpointsWithSchemeIdUri),a=e.lang===t.lang,s=e.codec===t.codec,o=e.roles.toString()===t.roles.toString(),l=JSON.stringify(e.rolesWithSchemeIdUri)===JSON.stringify(t.rolesWithSchemeIdUri),u=e.accessibility.toString()===t.accessibility.toString(),c=JSON.stringify(e.accessibilitiesWithSchemeIdUri)===JSON.stringify(t.accessibilitiesWithSchemeIdUri),d=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString(),f=JSON.stringify(e.audioChannelConfigurationsWithSchemeIdUri)===JSON.stringify(t.audioChannelConfigurationsWithSchemeIdUri);return n&&s&&r&&i&&a&&o&&l&&u&&c&&d&&f}function E(){n={},s={},i={audio:null,video:null,text:null}}function b(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration,codec:e.codec};return t.lang||t.viewpoint||t.role&&t.role.length>0||t.accessibility&&t.accessibility.length>0||t.audioChannelConfiguration&&t.audioChannelConfiguration.length>0?t:null}function T(e,t,n){var r=[];return e.forEach(function(e){t(n,e)&&r.push(e)}),0!==r.length?r:e}function S(e,t){try{return!e.lang||e.lang instanceof RegExp?t.lang.match(e.lang):""!==t.lang&&(0,bn.extendedFilter)(t.lang,En()(e.lang)).length>0}catch(e){return!1}}function w(e,t){return void 0===e.index||null===e.index||t.index===e.index}function L(e,t){return!e.viewpoint||e.viewpoint===t.viewpoint}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!e.role||!!t.roles.filter(function(t){return t===e.role})[0]||t.type===a.Z.AUDIO&&n}function M(e,t){return e.accessibility?!!t.accessibility.filter(function(t){return t===e.accessibility})[0]:!t.accessibility.length}function D(e,t){return!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter(function(t){return t===e.audioChannelConfiguration})[0]}function k(e,t){return!e.codec||e.codec===t.codec}function I(e){var t,n=0,r=[];return e.forEach(function(e){(t=Math.max.apply(Math,e.bitrateList.map(function(e){return e.bandwidth})))>n?(n=t,r=[e]):t===n&&r.push(e)}),r}function R(e){var t,n=1/0,r=[];return e.forEach(function(e){var i=e.bitrateList.reduce(function(e,t){var n=Math.max(1,t.width*t.height);return e+t.bandwidth/n},0);(t=i/e.bitrateList.length)<n?(n=t,r=[e]):t===n&&r.push(e)}),r}function C(e){var t,n=0,r=[];return e.forEach(function(e){(t=e.representationCount)>n?(n=t,r=[e]):t===n&&r.push(e)}),r}function P(e,n){if(e===a.Z.TEXT)return n[0];var i,s=r.get().streaming.selectionModeForInitialTrack,l=o.getCustomInitialTrackSelectionFunction();if(l&&"function"==typeof l)i=l(n);else switch(s){case a.Z.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY:i=function(e){var t,n,r=(t=0,n=[],e.forEach(function(e){isNaN(e.selectionPriority)||(e.selectionPriority>t?(t=e.selectionPriority,n=[e]):e.selectionPriority===t&&n.push(e))}),n);return r.length>1&&(r=I(r)),r.length>1&&(r=C(r)),r}(n);break;case a.Z.TRACK_SELECTION_MODE_HIGHEST_BITRATE:i=function(e){var t=I(e);return t.length>1&&(t=C(t)),t}(n);break;case a.Z.TRACK_SELECTION_MODE_FIRST_TRACK:i=O(n);break;case a.Z.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY:i=function(e){var t=R(e);return t.length>1&&(t=I(t)),t}(n);break;case a.Z.TRACK_SELECTION_MODE_WIDEST_RANGE:i=function(e){var t=C(e);return t.length>1&&(t=I(e)),t}(n);break;default:t.warn("Track selection mode ".concat(s," is not supported. Falling back to TRACK_SELECTION_MODE_FIRST_TRACK")),i=O(n)}return i.length>0?i[0]:n[0]}function O(e){return e[0]}return e={setInitialMediaSettingsForType:function(e,t){var n=s[e]||_(e),r=m(e,t.id),i=[];n||((n=c.getSavedMediaSettings(e))&&delete n.codec,y(e,n)),r&&0!==r.length&&(n&&(i=T(i=Array.from(r),S,n),i=T(i,w,n),i=T(i,L,n),e===a.Z.AUDIO&&s[e]||(i=T(i,A,n)),i=T(i,M,n),i=T(i,D,n),i=T(i,k,n)),0===i.length?g(P(e,r),!0):i.length>1?g(P(e,i)):g(i[0]))},addTrack:function(e){if(e){var t=e.type;if((i=t)===a.Z.AUDIO||i===a.Z.VIDEO||i===a.Z.TEXT||i===a.Z.IMAGE){var i,s,o=e.streamInfo.id;n[o]||(n[o]={audio:{list:[],storeLastSettings:s=r.get().streaming.saveLastMediaSettingsForCurrentStreamingSession,current:null},video:{list:[],storeLastSettings:s,current:null},text:{list:[],storeLastSettings:s,current:null},image:{list:[],storeLastSettings:s,current:null}});for(var l=n[o][t].list,u=0,c=l.length;u<c;++u)if(v(l[u],e))return;l.push(e)}}},getTracksFor:m,getCurrentTrackFor:p,isCurrentTrack:function(e){if(!e)return!1;var t=e.type,r=e.streamInfo.id;return n[r]&&n[r][t]&&v(n[r][t].current,e)},setTrack:g,selectInitialTrack:P,setInitialSettings:y,getInitialSettings:_,getTracksWithHighestBitrate:I,getTracksWithHighestEfficiency:R,getTracksWithWidestRange:C,isTracksEqual:v,matchSett
2ings:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var r=!1;if(e.lang){if(e.lang instanceof RegExp)r=t.lang.match(e.lang);else if(""!==t.lang){var i=En()(e.lang);i&&(r=(0,bn.extendedFilter)(t.lang,i).length>0)}}else r=!0;var s=void 0===e.index||null===e.index||t.index===e.index,o=!e.viewpoint||e.viewpoint===t.viewpoint,l=!e.role||!!t.roles.filter(function(t){return t===e.role})[0],u=!e.accessibility||!!t.accessibility.filter(function(t){return t===e.accessibility})[0],c=!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter(function(t){return t===e.audioChannelConfiguration})[0];return r&&s&&o&&(l||t.type===a.Z.AUDIO&&n)&&u&&c}catch(e){return!1}},matchSettingsLang:S,matchSettingsIndex:w,matchSettingsViewPoint:L,matchSettingsRole:A,matchSettingsAccessibility:M,matchSettingsAudioChannelConfig:D,saveTextSettingsDisabled:function(){c.setSavedMediaSettings(a.Z.TEXT,null)},setConfig:function(e){e&&(e.domStorage&&(c=e.domStorage),e.settings&&(r=e.settings),e.customParametersModel&&(o=e.customParametersModel))},reset:E},t=(0,d.Z)(f).getInstance().getLogger(e),E(),e}Tn.__dashjs_factory_name="MediaController";var Sn=c.Z.getSingletonFactory(Tn);c.Z.updateSingletonFactory(Tn.__dashjs_factory_name,Sn);var wn=Sn,Ln=NaN,An=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data={baseUrls:t||null,selectedIdx:n||Ln},this.children=[]};function Mn(){var e,t,n,r,i=this.context,a=Re(i).getInstance();function s(e,t,n){var r=o(n);e[t]?a.areEqual(r,e[t].data.baseUrls)||(e[t].data.baseUrls=r,e[t].data.selectedIdx=Ln):e[t]=new An(r)}function o(e){var t=n.getBaseURLsFromElement(e),i=r.getSynthesizedBaseUrlElements(t);return i&&i.length>0&&(t=t.concat(i)),t}function l(e,n){var r=n||t;e(r.data),r.children&&r.children.forEach(function(t){return l(e,t)})}function u(){t=new An}return e={reset:u,update:function(e){!function(e){!function(){if(!n||!n.hasOwnProperty("getBaseURLsFromElement")||!n.hasOwnProperty("getRepresentationSortFunction"))throw new Error("setConfig function has to be called previously")}();var r=o(e);a.areEqual(r,t.data.baseUrls)||(t.data.baseUrls=r,t.data.selectedIdx=Ln),e&&e.Period_asArray&&e.Period_asArray.forEach(function(e,r){s(t.children,r,e),e.AdaptationSet_asArray&&e.AdaptationSet_asArray.forEach(function(e,i){s(t.children[r].children,i,e),e.Representation_asArray&&e.Representation_asArray.sort(n.getRepresentationSortFunction()).forEach(function(e,n){s(t.children[r].children[i].children,n,e)})})})}(e)},getForPath:function(e){var n=t,r=[n.data];return e&&e.forEach(function(e){(n=n.children[e])&&r.push(n.data)}),r.filter(function(e){return e.baseUrls.length})},invalidateSelectedIndexes:function(e){l(function(t){isNaN(t.selectedIdx)||e===t.baseUrls[t.selectedIdx].serviceLocation&&(t.selectedIdx=Ln)})},setConfig:function(e){e.adapter&&(n=e.adapter),e.contentSteeringController&&(r=e.contentSteeringController)},getBaseUrls:function(e){return o(e)}},u(),e}Mn.__dashjs_factory_name="BaseURLTreeModel";var Dn=c.Z.getClassFactory(Mn);function kn(e){var t=(e=e||{}).blacklistController;return{select:function(e){return e&&function(e){var t,n,r=0,i=[],a=0;
2if((n=e.sort(function(e,t){var n=e.dvbPriority-t.dvbPriority;return isNaN(n)?0:n}).filter(function(e,t,n){return!t||n[0].dvbPriority&&e.dvbPriority&&n[0].dvbPriority===e.dvbPriority})).length)return n.length>1&&(n.forEach(function(e){r+=e.dvbWeight,i.push(r)}),t=Math.floor(Math.random()*(r-1)),i.every(function(e,n){return a=n,!(t<e)})),n[a]}((n=[],e.filter(function(e){return!t.contains(e.serviceLocation)||(e.dvbPriority&&n.push(e.dvbPriority),!1)}).filter(function(e){return!n.length||!e.dvbPriority||-1===n.indexOf(e.dvbPriority)})));var n}}}kn.__dashjs_factory_name="DVBSelector";var In=c.Z.getClassFactory(kn);function Rn(e){var t=(e=e||{}).blacklistController;return{select:function(e){var n,r=0;return e&&e.some(function(e,n){return r=n,!t.contains(e.serviceLocation)})&&(n=e[r]),n}}}Rn.__dashjs_factory_name="BasicSelector";var Cn=c.Z.getClassFactory(Rn);function Pn(){var e,t,n,r=this.context;function i(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,i=NaN,a=function(){var a=e[r],s=t.findIndex(function(e){return e.serviceLocation&&e.serviceLocation===a});if(-1!==s&&!n.contains(t[s].serviceLocation))return i=s,"break";r+=1};r<e.length&&"break"!==a(););return i}return e={selectBaseUrlIndex:function(e){var n=NaN;if(isNaN(e.selectedIdx)){var r=t.getSteeringDataFromManifest();r&&r.defaultServiceLocationArray.length>0&&(n=i(r.defaultServiceLocationArray,e.baseUrls))}var a=t.getCurrentSteeringResponseData();return e.baseUrls&&e.baseUrls.length&&a&&a.pathwayPriority&&a.pathwayPriority.length&&(n=i(a.pathwayPriority,e.baseUrls)),n},setConfig:function(e){e.blacklistController&&(n=e.blacklistController),e.contentSteeringController&&(t=e.contentSteeringController)}},t=qt(r).getInstance(),e}Pn.__dashjs_factory_name="ContentSteeringSelector";var On=c.Z.getClassFactory(Pn);function xn(){var e,t,n,r,i,a,s=this.context,o=(0,l.Z)(s).getInstance(),c=(0,D.Z)(s).getInstance();function d(){t.reset()}return e={chooseSelector:function(e){(0,W.PS)(e,"boolean"),a=e?r:n},select:function(e){if(e){if(c.get().streaming.applyContentSteering){var t=i.selectBaseUrlIndex(e);isNaN(t)||-1===t||(e.selectedIdx=t)}if(!isNaN(e.selectedIdx))return e.baseUrls[e.selectedIdx];var r=a.select(e.baseUrls);return r?(e.selectedIdx=e.baseUrls.indexOf(r),r):(o.trigger(u.Z.URL_RESOLUTION_FAILED,{error:new T.Z(M.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE,M.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE)}),void(a===n&&d()))}},reset:d,setConfig:function(e){e.selector&&(a=e.selector),e.contentSteeringSelector&&(i=e.contentSteeringSelector)}},t=Bt(s).create({updateEventName:u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,addBlacklistEventName:u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD}),n=Cn(s).create({blacklistController:t}),r=In(s).create({blacklistController:t}),(i=On(s).create()).setConfig({blacklistController:t}),a=n,e}xn.__dashjs_factory_name="BaseURLSelector";var Nn=c.Z.getClassFactory(xn);function Fn(){var e,t,n,r,i,a=this.context,s=(0,l.Z)(a).getInstance(),o=(0,X.Z)(a).getInstance();function c(e){n.update(e),r.chooseSelector(t.getIsDVB(e)),s.trigger(f.Z.BASE_URLS_UPDATED,{baseUrls:d(e)})}function d(e){return n.getBaseUrls(e)}return e={reset:function(){n.reset(),r.reset()},initialize:function(e){n.setConfig({adapter:t,contentSteeringController:i}),c(e)},resolve:function(e){var t=n.getForPath(e).reduce(function(e,t){var n=r.select(t);return n?(o.isRelative(n.url)?e.url=o.resolve(n.url,e.url):(e.url=n.url,e.serviceLocation=n.serviceLocation),e.availabilityTimeOffset=n.availabilityTimeOffset,e.availabilityTimeComplete=n.availabilityTimeComplete,e.queryParams=n.queryParams,e):new Te},new Te);if(!o.isRelative(t.url))return t},setConfig:function(e){e.baseURLTreeModel&&(n=e.baseURLTreeModel),e.baseURLSelector&&(r=e.baseURLSelector),e.adapter&&(t=e.adapter),e.contentSteeringController&&(i=e.contentSteeringController)},getBaseUrls:d,update:c},n=Dn(a).create(),r=Nn(a).create(),s.on(u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,function(e){n.invalidateSelectedIndexes(e.entry)},e),e}Fn.__dashjs_factory_name="BaseURLController";var Yn=c.Z.getClassFactory(Fn);function Un(e){return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(e)}
vendor: 13,078 bytes, line 2
2function Bn(e,t){return Bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bn(e,t)}function jn(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hn(e){return Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hn(e)}var Gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bn(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=Hn(t);if(n){var i=Hn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return jn(this,e)});function i(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=r.call(this)).url=e||null,n.type=t||null,n.mediaType=a.Z.STREAM,n.responseType="",n}return i}(p.Z);function Zn(e){e=e||{};var t=this.context,n=(0,l.Z)(t).getInstance(),r=Tt(t).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,errors:M});return{load:function(e,t,i){var a=function(r,a){t.resolved=!0,t.resolvedContent=r||null,n.trigger(u.Z.XLINK_ELEMENT_LOADED,{element:t,resolveObject:i,error:r||a?null:new T.Z(M.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE,M.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE+e)})};if("urn:mpeg:dash:resolve-to-zero:2013"===e)a(null,!0);else{var s=new Gn(e,k.w.XLINK_EXPANSION_TYPE);r.load({request:s,success:function(e){a(e)},error:function(){a(null)}})}},reset:function(){r&&(r.abort(),r=null)}}}Zn.__dashjs_factory_name="XlinkLoader";var $n=c.Z.getClassFactory(Zn),zn=function(e){function t(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function n(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function r(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];if("string"==typeof a){if(a==r)break}else if(a instanceof RegExp){if(a.test(r))break}else if("function"==typeof a&&a(t,n,r))break}return i!=e.length}function i(t,n,i){"property"===e.arrayAccessForm&&(t[n]instanceof Array?t[n+"_asArray"]=t[n]:t[n+"_asArray"]=[t[n]]),!(t[n]instanceof Array)&&e.arrayAccessFormPaths.length>0&&r(e.arrayAccessFormPaths,t,n,i)&&(t[n]=[t[n]])}function a(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),t[6]&&t[7]){var i=60*t[6]+Number(t[7]);i=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*i:i),n.setMinutes(n.getMinutes()-i-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function s(t,n,i,a){return!(1==n&&e.xmlElementsFilter.length>0)||r(e.xmlElementsFilter,t,i,a)}function o(n,l){if(9==n.nodeType){for(var u=new Object,c=n.childNodes,d=0;d<c.length;d++)1==(h=c[d]).nodeType&&(e.ignoreRoot?u=o(h):(u={})[m=t(h)]=o(h));return u}if(1==n.nodeType){(u=new Object).__cnt=0;var f=[];for(c=n.childNodes,d=0;d<c.length;d++){var h,m=t(h=c[d]);if(8!=h.nodeType){var p=l+"."+m;if(s(u,h.nodeType,m,p))if(u.__cnt++,null==u[m]){var g=o(h,p);("#text"!=m||/[^\s]/.test(g))&&((y={})[m]=g,f.push(y)),u[m]=g,i(u,m,p)}else{var y;null!=u[m]&&(u[m]instanceof Array||(u[m]=[u[m]],i(u,m,p))),g=o(h,p),("#text"!=m||/[^\s]/.test(g))&&((y={})[m]=g,f.push(y)),u[m][u[m].length]=g}}}u.__children=f;for(var _=t(n),v=0;v<n.attributes.length;v++){var E=n.attributes[v];u.__cnt++;for(var b=E.value,T=0,S=e.matchers.length;T<S;T++){var w=e.matchers[T];w.test(E,_)&&(b=w.converter(E.value))}u[e.attributePrefix+E.name]=b}var L=function(e){return e.prefix}(n);return null!=L&&""!=L&&(u.__cnt++,u.__prefix=L),null!=u["#text"]&&(u.__text=u["#text"],u.__text instanceof Array&&(u.__text=u.__text.join("\n")),e.stripWhitespaces&&(u.__text=u.__text.trim()),delete u["#text"],"property"==e.arrayAccessForm&&delete u["#text_asArray"],u.__text=function(t,n,i){if(e.datetimeAccessFormPaths.length>0){var s=i.split(".#")[0];return r(e.datetimeAccessFormPaths,t,n,s)?a(t):t}return t}(u.__text,m,l+"."+m)),null!=u["#cdata-section"]&&(u.__cdata=u["#cdata-section"],delete u["#cdata-section"],"property"==e.arrayAccessForm&&delete u["#cdata-section_asArray"]),0==u.__cnt&&"text"==e.emptyNodeForm?u="":1==u.__cnt&&null!=u.__text?u=u.__text:1!=u.__cnt||null==u.__cdata||e.keepCData?u.__cnt>1&&null!=u.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==u.__text||""==u.__text.trim())&&delete u.__text:u=u.__cdata,delete u.__cnt,!e.enableToStringFunc||null==u.__text&&null==u.__cdata||(u.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),u}if(3==n.nodeType||4==n.nodeType)return n.nodeValue}function l(t,r,i,a){var s="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+r;if(null!=i)for(var o=0;o<i.length;o++){var l=i[o],u=t[l];e.escapeMode&&(u=n(u)),s+=" "+l.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?s+='"'+u+'"':s+="'"+u+"'"}return s+(a?"/>":">")}function u(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function c(t,n){return"property"==e.arrayAccessForm&&(i="_asArray",-1!==(r=n.toString()).indexOf(i,r.length-i.length))||0==n.toString().indexOf(e.attributePrefix)||0==n.toString().indexOf("__")||t[n]instanceof Function;var r,i}function d(e){var t=0;if(e instanceof Object)for(var n in e)c(e,n)||t++;return t}function f(t,n,i){return 0==e.jsonPropertiesFilter.length||""==i||r(e.jsonPropertiesFilter,t,n,i)}function h(t){var n=[];if(t instanceof Object)for(var r in t)-1==r.toString().indexOf("__")&&0==r.toString().indexOf(e.attributePrefix)&&n.push(r);return n}function m(t){var r="";return t instanceof Object?r+=function(t){var r="";return null!=t.__cdata&&(r+="<![CDATA["+t.__cdata+"]]>"),null!=t.__text&&(e.escapeMode?r+=n(t.__text):r+=t.__text),r}(t):null!=t&&(e.escapeMode?r+=n(t):r+=t),r}function p(e,t){return""===e?t:e+"."+t}function g(e,t,n,r){var i="";if(0==e.length)i+=l(e,t,n,!0);else for(var a=0;a<e.length;a++)i+=l(e[a],t,h(e[a]),!1),i+=y(e[a],p(r,t)),i+=u(e[a],t);return i}function y(e,t){var n="";if(d(e)>0)for(var r in e)if(!c(e,r)&&(""==t||f(e,r,p(t,r)))){var i=e[r],a=h(i);null==i||null==i?n+=l(i,r,a,!0):i instanceof Object?i instanceof Array?n+=g(i,r,a,t):i instanceof Date?(n+=l(i,r,a,!1),n+=i.toISOString(),n+=u(i,r)):d(i)>0||null!=i.__text||null!=i.__cdata?(n+=l(i,r,a,!1),n+=y(i,p(t,r)),n+=u(i,r)):n+=l(i,r,a,!0):(n+=l(i,r,a,!1),n+=m(i),n+=u(i,r))}return n+m(e)}void 0===(e=e||{}).escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1),e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1),void 0===e.ignoreRoot&&(e.ignoreRoot=!1),this.parseXmlString=function(e){var t;if(window.ActiveXObject||window,void 0===e)return null;if(window.DOMParser){var n=new window.DOMParser;try{(t=n.parseFromString(e,"text/xml")).getElementsByTagNameNS("*","parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?a(e):e},this.xml2json=function(e){return o(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return y(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}},qn="onLoad";function Wn(e){e=e||{};var t,n,r,i,a,o,c=this.context,d=(0,l.Z)(c).getInstance(),f=(0,X.Z)(c).getInstance();function h(e,t,n){var r,i,a={};a.elements=e,a.type=t,a.resolveType=n,0===a.elements.length&&p(a);for(var s=0;s<a.elements.length;s++)r=a.elements[s],i=f.isHTTPURL(r.url)?r.url:r.originalContent.BaseURL+r.url,o.load(i,r,a)}function m(e){var t,n,r="";if(t=e.element,n=e.resolveObject,t.resolvedContent){var i=0;0===t.resolvedContent.indexOf("<?xml")&&(i=t.resolvedContent.indexOf("?>")+2),r=t.resolvedContent.substr(0,i)+"<response>"+t.resolvedContent.substr(i)+"</response>",t.resolvedContent=a.xml_str2json(r)}(function(e){var t;for(t=0;t<e.elements.length;t++)if(!1===e.elements[t].resolved)return!1;return!0})(n)&&p(n)}function p(e){var t,n,a=[];if(function(e){var t,n,a,s,o,l,u=[];for(s=e.elements.length-1;s>=0;s--){if(n=(t=e.elements[s]).type+"_asArray",t.resolvedContent){if(t.resolvedContent)for(o=0;o<t.resolvedContent[n].length;o++)a=t.resolvedContent[n][o],u.push(a)}else delete t.originalContent["xlink:actuate"],delete t.originalContent["xlink:href"],u.push(t.originalContent);for(t.parentElement[n].splice(t.index,1),l=0;l<u.length;l++)t.parentElement[n].splice(t.index+l,0,u[l]);u=[]}e.elements.length>0&&r.run(i)}(e),"onActuate"===e.resolveType&&d.trigger(u.Z.XLINK_READY,{manifest:i}),e.resolveType===qn)switch(e.type){case s.Z.PERIOD:for(t=0;t<i[s.Z.PERIOD+"_asArray"].length;t++)(n=i[s.Z.PERIOD+"_asArray"][t]).hasOwnProperty(s.Z.ADAPTATION_SET+"_asArray")&&(a=a.concat(g(n[s.Z.ADAPTATION_SET+"_asArray"],n,s.Z.ADAPTATION_SET,qn))),n.hasOwnProperty(s.Z.EVENT_STREAM+"_asArray")&&(a=a.concat(g(n[s.Z.EVENT_STREAM+"_asArray"],n,s.Z.EVENT_STREAM,qn)));h(a,s.Z.ADAPTATION_SET,qn);break;case s.Z.ADAPTATION_SET:d.trigger(u.Z.XLINK_READY,{manifest:i})}}function g(e,t,n,r){var i,a,s,o=[];for(a=e.length-1;a>=0;a--)(i=e[a]).hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===i["xlink:href"]&&e.splice(a,1);for(a=0;a<e.length;a++)(i=e[a]).hasOwnProperty("xlink:href")&&i.hasOwnProperty("xlink:actuate")&&i["xlink:actuate"]===r&&(s=y(i["xlink:href"],t,n,a,r,i),o.push(s));return o}function y(e,t,n,r,i,a){return{url:e,parentElement:t,type:n,index:r,resolveType:i,originalContent:a,resolvedContent:null,resolved:!1}}return t={resolveManifestOnLoad:function(e){a=new zn({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:n}),(i=e).Period_asArray?h(g(i.Period_asArray,i,s.Z.PERIOD,qn),s.Z.PERIOD,qn):d.trigger(u.Z.XLINK_READY,{manifest:i})},setMatchers:function(e){e&&(n=e)},setIron:function(e){e&&(r=e)},reset:function(){d.off(u.Z.XLINK_ELEMENT_LOADED,m,t),o&&(o.reset(),o=null)}},d.on(u.Z.XLINK_ELEMENT_LOADED,m,t),o=$n(c).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,settings:e.settings}),t}Wn.__dashjs_factory_name="XlinkController";var Vn=c.Z.getClassFactory(Wn);function Kn(e){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(e)}function Xn(e){function t(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function n(e,n,r){for(var i=0,a=e.length;i<a;++i){var s=e[i];if(n[s.name])if(r[s.name]){if(s.merge){var o=n[s.name],l=r[s.name];"object"===Kn(o)&&"object"===Kn(l)?t(o,l):r[s.name]=o+l}}else r[s.name]=n[s.name]}}function r(e,t){for(var i=0,a=e.children.length;i<a;++i){var s=e.children[i],o=t[s.name+"_asArray"];if(o)for(var l=0,u=o.length;l<u;++l){var c=o[l];n(e.properties,t,c),r(s,c)}}}return{run:function(t){if(null===t||"object"!==Kn(t))return t;if(t.Period_asArray&&"period"in e)for(var n=e.period,i=t.Period_asArray,a=0,s=i.length;a<s;++a){var o=i[a];if(r(n,o),"adaptationset"in e){var l=o.AdaptationSet_asArray;if(l)for(var u=e.adaptationset,c=0,d=l.length;c<d;++c)r(u,l[c])}}return t}}}Xn.__dashjs_factory_name="ObjectIron";var Qn=c.Z.getClassFactory(Xn);function Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var er=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._test=t,this._converter=n}
2var t;return(t=[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}])&&Jn(e.prototype,t),e}();function tr(e){return tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(e)}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e,t){return rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rr(e,t)}function ir(e,t){return!t||"object"!==tr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ar(e){return ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ar(e)}var sr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=ar(t);if(n){var i=ar(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return ir(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,function(e,t){var n,r=(nr(n={},s.Z.MPD,[s.Z.ID,s.Z.PROFILES]),nr(n,s.Z.PERIOD,[s.Z.ID]),nr(n,s.Z.BASE_URL,[s.Z.SERVICE_LOCATION,s.Z.BYTE_RANGE]),nr(n,s.Z.SEGMENT_BASE,[s.Z.INDEX_RANGE]),nr(n,s.Z.INITIALIZATION,[s.Z.RANGE]),nr(n,s.Z.REPRESENTATION_INDEX,[s.Z.RANGE]),nr(n,s.Z.SEGMENT_LIST,[s.Z.INDEX_RANGE]),nr(n,s.Z.BITSTREAM_SWITCHING,[s.Z.RANGE]),nr(n,s.Z.SEGMENT_URL,[s.Z.MEDIA_RANGE,s.Z.INDEX_RANGE]),nr(n,s.Z.SEGMENT_TEMPLATE,[s.Z.INDEX_RANGE,s.Z.MEDIA,s.Z.INDEX,s.Z.INITIALIZATION_MINUS,s.Z.BITSTREAM_SWITCHING_MINUS]),nr(n,s.Z.ASSET_IDENTIFIER,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.EVENT_STREAM,[s.Z.VALUE]),nr(n,s.Z.ADAPTATION_SET,[s.Z.PROFILES,s.Z.MIME_TYPE,s.Z.SEGMENT_PROFILES,s.Z.CODECS,s.Z.CONTENT_TYPE]),nr(n,s.Z.FRAME_PACKING,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.AUDIO_CHANNEL_CONFIGURATION,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.CONTENT_PROTECTION,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.ESSENTIAL_PROPERTY,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.SUPPLEMENTAL_PROPERTY,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.INBAND_EVENT_STREAM,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.ACCESSIBILITY,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.ROLE,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.RATING,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.VIEWPOINT,[s.Z.VALUE,s.Z.ID]),nr(n,s.Z.CONTENT_COMPONENT,[s.Z.CONTENT_TYPE]),nr(n,s.Z.REPRESENTATION,[s.Z.ID,s.Z.DEPENDENCY_ID,s.Z.MEDIA_STREAM_STRUCTURE_ID]),nr(n,s.Z.SUBSET,[s.Z.ID]),nr(n,s.Z.METRICS,[s.Z.METRICS_MINUS]),nr(n,s.Z.REPORTING,[s.Z.VALUE,s.Z.ID]),n);if(r.hasOwnProperty(t)){var i=r[t];return void 0!==i&&i.indexOf(e.name)>=0}return!1},function(e){return String(e)})}return i}(er);function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function lr(e,t){return lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lr(e,t)}function ur(e,t){return!t||"object"!==or(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cr(e){return cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cr(e)}var dr=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,fr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lr(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=cr(t);if(n){var i=cr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return ur(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,function(e){for(var t=[s.Z.MIN_BUFFER_TIME,s.Z.MEDIA_PRESENTATION_DURATION,s.Z.MINI
2MUM_UPDATE_PERIOD,s.Z.TIMESHIFT_BUFFER_DEPTH,s.Z.MAX_SEGMENT_DURATION,s.Z.MAX_SUBSEGMENT_DURATION,s.Z.SUGGESTED_PRESENTATION_DELAY,s.Z.START,a.Z.START_TIME,s.Z.DURATION],n=t.length,r=0;r<n;r++)if(e.nodeName===t[r])return dr.test(e.value);return!1},function(e){var t=dr.exec(e),n=31536e3*parseFloat(t[3]||0)+2592e3*parseFloat(t[5]||0)+86400*parseFloat(t[7]||0)+3600*parseFloat(t[9]||0)+60*parseFloat(t[11]||0)+parseFloat(t[13]||0);return void 0!==t[1]&&(n=-n),n})}return i}(er);function hr(e){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(e)}function mr(e,t){return mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mr(e,t)}function pr(e,t){return!t||"object"!==hr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gr(e){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gr(e)}var yr=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,_r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=gr(t);if(n){var i=gr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return pr(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,function(e){return yr.test(e.value)},function(e){var t,n=yr.exec(e);if(t=Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10),n[6]&&parseInt(n[6],10)||0,n[7]&&1e3*parseFloat(n[7])||0),n[9]&&n[10]){var r=60*parseInt(n[9],10)+parseInt(n[10],10);t+=("+"===n[8]?-1:1)*r*60*1e3}return new Date(t)})}return i}(er);function vr(e){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(e)}function Er(e,t){return Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Er(e,t)}function br(e,t){return!t||"object"!==vr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tr(e){return Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tr(e)}var Sr=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Er(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=Tr(t);if(n){var i=Tr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return br(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,function(e){return Sr.test(e.value)},function(e){return parseFloat(e)})}return i}(er);function Lr(e){return Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(e)}function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mr(e,t){return Mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mr(e,t)}function Dr(e,t){return!t||"object"!==Lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}var Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=kr(t);if(n){var i=kr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Dr(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,function(e,t){var n,r=(Ar(n={}
2,s.Z.ADAPTATION_SET,[s.Z.LANG]),Ar(n,s.Z.REPRESENTATION,[s.Z.LANG]),Ar(n,s.Z.CONTENT_COMPONENT,[s.Z.LANG]),Ar(n,s.Z.LABEL,[s.Z.LANG]),Ar(n,s.Z.GROUP_LABEL,[s.Z.LANG]),n);if(r.hasOwnProperty(t)){var i=r[t];return void 0!==i&&i.indexOf(e.name)>=0}return!1},function(e){return En()(e)||String(e)})}return i}(er);function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Cr=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._merge=(n=t)&&n.length&&n.charAt(0)===n.charAt(0).toUpperCase()}var t;return(t=[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}])&&Rr(e.prototype,t),e}();function Pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Or=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t||"",this._properties=[],this._children=r||[],Array.isArray(n)&&n.forEach(function(e){i._properties.push(new Cr(e))})}var t;return(t=[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}])&&Pr(e.prototype,t),e}();function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function Nr(e,t){return Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nr(e,t)}function Fr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yr(e)}var Ur=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nr(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=Yr(t);if(n){var i=Yr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Fr(this,e)});function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var e=[s.Z.PROFILES,s.Z.WIDTH,s.Z.HEIGHT,s.Z.SAR,s.Z.FRAMERATE,s.Z.AUDIO_SAMPLING_RATE,s.Z.MIME_TYPE,s.Z.SEGMENT_PROFILES,s.Z.CODECS,s.Z.MAXIMUM_SAP_PERIOD,s.Z.START_WITH_SAP,s.Z.MAX_PLAYOUT_RATE,s.Z.CODING_DEPENDENCY,s.Z.SCAN_TYPE,s.Z.FRAME_PACKING,s.Z.AUDIO_CHANNEL_CONFIGURATION,s.Z.CONTENT_PROTECTION,s.Z.ESSENTIAL_PROPERTY,s.Z.ESSENTIAL_PROPERTY+"_asArray",s.Z.SUPPLEMENTAL_PROPERTY,s.Z.INBAND_EVENT_STREAM];return r.call(this,s.Z.ADAPTATION_SET,e,[new Or(s.Z.REPRESENTATION,e,[new Or(s.Z.SUB_REPRESENTATION,e)])])}return i}(Or);function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}function jr(e,t){return jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jr(e,t)}function Hr(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gr(e){return Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gr(e)}var Zr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=Gr(t);if(n){var i=Gr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Hr(this,e)});function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var e=[s.Z.SEGMENT_BASE,s.Z.SEGMENT_TEMPLATE,s.Z.SEGMENT_LIST];return r.call(this,s.Z.PERIOD,e,[new Or(s.Z.ADAPTATION_SET,e,[new Or(s.Z.REPRESENTATION,e)])])}return i}(Or);function $r(e){e=e||{};var t,n,r,i,a,s=this.context,o=e.debug;return t={parse:function(e){var t,r=window.performance.now();if(!(t=i.xml_str2json(e)))throw new Error("parsing the manifest failed");var s=window.performance.now();t.Patch?((t=t.Patch).add_asArray&&t.add_asArray.forEach(function(e){return a.run(e)}),t.replace_asArray&&t.replace_asArray.forEach(function(e){return a.run(e)})):(t=t.MPD,a.run(t));var o=window.performance.now();return n.info("Parsing complete: ( xml2json: "+(s-r).toPrecision(3)+"ms, objectiron: "+(o-s).toPrecision(3)+"ms, total: "+((o-r)/1e3).toPrecision(3)+"s)"),t.protocol="DASH",t},getMatchers:function(){return r},getIron:function(){return a}},n=o.getLogger(t),r=[new fr,new _r,new wr,new Ir,new sr],i=new zn({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespace
vendor: 27,025 bytes, line 2
2s:!1,enableToStringFunc:!0,ignoreRoot:!1,matchers:r}),a=Qn(s).create({adaptationset:new Ur,period:new Zr}),t}$r.__dashjs_factory_name="DashParser";var zr=c.Z.getClassFactory($r);function qr(e){e=e||{};var t,n,r,i,o,c=this.context,d=e.debug,f=e.settings,h=(0,l.Z)(c).getInstance(),m=(0,X.Z)(c).getInstance(),p=e.mssHandler,g=e.errHandler;function y(e){h.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:e.manifest})}function _(e){var t=null;return e.indexOf("SmoothStreamingMedia")>-1?(p&&(t=p.createMssParser(),p.createMssFragmentProcessor(),p.registerEvents()),t):e.indexOf("MPD")>-1||e.indexOf("Patch")>-1?zr(c).create({debug:d}):t}return t={load:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=new Date,l=new Gn(e,k.w.MPD_TYPE);t&&(l.serviceLocation=t),a&&(l.queryParams=a),l.requestStartDate||(l.requestStartDate=s),h.trigger(u.Z.MANIFEST_LOADING_STARTED,{request:l}),r.load({request:l,success:function(t,r,a){var s,l,c;if(i)if(a&&a!==e?(l=m.parseBaseUrl(a),s=a):(m.isRelative(e)&&(e=m.resolve(e,window.location.href)),l=m.parseBaseUrl(e)),"No Content"!=r)if(null===o&&(o=_(t)),null!==o){i.setMatchers(o.getMatchers()),i.setIron(o.getIron());try{c=o.parse(t)}catch(t){return void h.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new T.Z(M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(e))})}if(c){if(c.url=s||e,c.originalUrl||(c.originalUrl=c.url),f&&f.get().streaming.enableManifestDurationMismatchFix&&c.mediaPresentationDuration&&c.Period_asArray.length>1){var d=c.Period_asArray.reduce(function(e,t){return e+t.duration},0);!isNaN(d)&&c.mediaPresentationDuration>d&&(n.warn("Media presentation duration greater than duration of all periods. Setting duration to total period duration"),c.mediaPresentationDuration=d)}c.baseUri=l,c.loadedTime=new Date,i.resolveManifestOnLoad(c),h.trigger(u.Z.ORIGINAL_MANIFEST_LOADED,{originalManifest:t})}else h.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new T.Z(M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(e))})}else h.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new T.Z(M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,M.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(e))});else h.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null})},error:function(t,n,r){h.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new T.Z(M.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE,M.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE+"".concat(e,", ").concat(r))})}})},reset:function(){h.off(u.Z.XLINK_READY,y,t),p&&p.reset(),i&&(i.reset(),i=null),r&&(r.abort(),r=null)}},n=d.getLogger(t),h.on(u.Z.XLINK_READY,y,t),r=Tt(c).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,urlUtils:m,constants:a.Z,dashConstants:s.Z,errors:M,requestTimeout:e.settings.get().streaming.manifestRequestTimeout}),i=Vn(c).create({errHandler:g,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,settings:e.settings}),o=null,t}qr.__dashjs_factory_name="ManifestLoader";var Wr=c.Z.getClassFactory(qr);function Vr(){var e=this.context,t=(0,l.Z)(e).getInstance();return{error:function(e){t.trigger(u.Z.ERROR,{error:e})}}}Vr.__dashjs_factory_name="ErrorHandler";var Kr=c.Z.getSingletonFactory(Vr),Xr=n(1715);function Qr(){var e,t,n,r,i,s,o=this.context,c=(0,l.Z)(o).getInstance();function f(e,r){if(!r||!r.Period_asArray||0===r.Period_asArray.length)return Promise.resolve();var i=[];return r.Period_asArray.forEach(function(r){i.push(function(e,r){return new Promise(function(i){if(e&&e.AdaptationSet_asArray&&0!==e.AdaptationSet_asArray.length){var o=[];e.AdaptationSet_asArray.forEach(function(e){t.getIsTypeOf(e,r)&&o.push(function(e,r){return new Promise(function(i){if(e.Representation_asArray&&0!==e.Representation_asArray.length){var o=[],l=[];e.Representation_asArray.forEach(function(i,s){var u=t.getCodec(e,s,!1),c=function(e,t,n){switch(e){case a.Z.VIDEO:return function(e,t){return{codec:t,width:e.width||null,height:e.height||null,framerate:e.frameRate||null,bitrate:e.bandwidth||null}}(t,n);case a.Z.AUDIO:return function(e,t){var n=e.audioSamplingRate||null;return{codec:t,bitrate:e.bandwidth||null,samplerate:n}}(t,n);default:return null}}(r,i,u);l.push(c),o.push(n.supportsCodec(c,r))}),Promise.all(o).then(function(t){e.Representation_asArray=e.Representation_asArray.filter(function(e,n){return t[n]||s.debug("[Stream] Codec ".concat(l[n].codec," not supported ")),t[n]}),i()}).catch(function(){i()})}else i()})}(e,r))}),Promise.all(o).then(function(){e.AdaptationSet_asArray=e.AdaptationSet_asArray.filter(function(e){var t=e.Representation_asArray&&e.Representation_asArray.length>0;return t||(c.trigger(u.Z.ADAPTATION_SET_REMOVED_NO_CAPABILITIES,{adaptationSet:e}),s.warn("AdaptationSet has been removed because of no supported Representation")),t}),i()}).catch(function(){i()})}else i()})}(r,e))}),Promise.all(i)}return e={setConfig:function(e){e&&(e.adapter&&(t=e.adapter),e.capabilities&&(n=e.capabilities),e.settings&&(r=e.settings),e.customParametersModel&&(i=e.customParametersModel))},filterUnsupportedFeatures:function(e){return new Promise(function(o){var l=[];l.push(f(a.Z.VIDEO,e)),l.push(f(a.Z.AUDIO,e)),Promise.all(l).then(function(){r.get().streaming.capabilities.filterUnsupportedEssentialProperties&&function(e){e&&e.Period_asArray&&0!==e.Period_asArray.length&&e.Period_asArray.forEach(function(e){e.AdaptationSet_asArray=e.AdaptationSet_asArray.filter(function(e){return!e.Representation_asArray||0===e.Representation_asArray.length||(e.Representation_asArray=e.Representation_asArray.filter(function(e){var r=t.getEssentialPropertiesForRepresentation(e);if(r&&r.length>0)for(var i=0;i<r.length;){if(!n.supportsEssentialProperty(r[i]))return s.debug("[Stream] EssentialProperty not supported: "+r[i].schemeIdUri),!1;i+=1}return!0}),e.Representation_asArray&&e.Representation_asArray.length>0)})})}(e),function(e){var t=i.getCustomCapabilitiesFilters();t&&0!==t.length&&e&&e.Period_asArray&&0!==e.Period_asArray.length&&e.Period_asArray.forEach(function(e){e.AdaptationSet_asArray=e.AdaptationSet_asArray.filter(function(e){return!e.Representation_asArray||0===e.Representation_asArray.length||(e.Representation_asArray=e.Representation_asArray.filter(function(e){return!t.some(function(t){return!t(e)})}),e.Representation_asArray&&e.Representation_asArray.length>0)})})}(e),o()}).catch(function(){o()})})}},s=(0,d.Z)(o).getInstance().getLogger(e),e}Qr.__dashjs_factory_name="CapabilitiesFilter";var Jr=c.Z.getSingletonFactory(Qr),ei=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null};function ti(){var e;return{initialize:function(t){if(e=new ei,!t)return null;var n=t.indexOf("#");if(-1!==n)for(var r=t.substr(n+1).split("&"),i=0,a=r.length;i<a;++i){var s=r[i],o=s.indexOf("=");if(-1!==o){var l=s.substring(0,o);e.hasOwnProperty(l)&&(e[l]=s.substr(o+1))}}},getURIFragmentData:function(){return e}}}ti.__dashjs_factory_name="URIFragmentModel";var ni=c.Z.getSingletonFactory(ti);function ri(){var e,t=this.context,n=(0,l.Z)(t).getInstance();return{getValue:function(){return e},setValue:function(t){e=t,t&&n.trigger(u.Z.MANIFEST_LOADED,{data:t})}}}ri.__dashjs_factory_name="ManifestModel";var ii=c.Z.getSingletonFactory(ri),ai=-.5;function si(){var e,t,n,r,i=this.context,a=(0,D.Z)(i).getInstance();function s(e,n){return isNaN(e)?0:e>0?(n&&t.warn("Supplied minimum playback rate is a positive value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."),0):e<ai?(n&&t.warn("Supplied minimum playback rate is out of range and will be limited to ".concat(ai,": ").concat(-50,"% playback speed.")),ai):e}function o(e,n){return isNaN(e)?0:e<0?(n&&t.warn("Supplied maximum playback rate is a negative value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."),0):e>1?(n&&t.warn("Supplied maximum playback rate is out of range and will be limited to ".concat(1,": ").concat(200,"% playback speed.")),1):e}function l(){var e=a.get().streaming.buffer.stableBufferTime>0?a.get().streaming.buffer.stableBufferTime:a.get().streaming.buffer.fastSwitchEnabled?20:12,t=n.getLiveDelay();return!isNaN(t)&&t>0?Math.min(e,t):e}return e={getCatchupMaxDrift:function(){if(!isNaN(a.get().streaming.liveCatchup.maxDrift)&&a.get().streaming.liveCatchup.maxDrift>0)return a.get().streaming.liveCatchup.maxDrift;var e=r.getServiceDescriptionSettings();return e&&e.liveCatchup&&!isNaN(e.liveCatchup.maxDrift)&&e.liveCatchup.maxDrift>0?e.liveCatchup.maxDrift:12},getCatchupModeEnabled:function(){return null!==a.get().streaming.liveCatchup.enabled?a.get().streaming.liveCatchup.enabled:n.getInitialCatchupModeActivated()},getStableBufferTime:l,getInitialBufferLevel:function(){var e=a.get().streaming.buffer.initialBufferLevel;return isNaN(e)||e<0?0:Math.min(l(),e)},getRetryAttemptsForType:function(e){var t=isNaN(a.get().streaming.retryAttempts.lowLatencyMultiplyFactor)?5:a.get().streaming.retryAttempts.lowLatencyMultiplyFactor;return n.getLowLatencyModeEnabled()?a.get().streaming.retryAttempts[e]*t:a.get().streaming.retryAttempts[e]},getRetryIntervalsForType:function(e){var t=isNaN(a.get().streaming.retryIntervals.lowLatencyReductionFactor)?10:a.get().streaming.retryIntervals.lowLatencyReductionFactor;return n.getLowLatencyModeEnabled()?a.get().streaming.retryIntervals[e]/t:a.get().streaming.retryIntervals[e]},getCatchupPlaybackRates:function(e){var t=a.get().streaming.liveCatchup.playbackRate;if(!isNaN(t.min)||!isNaN(t.max))return{min:s(t.min,e),max:o(t.max,e)};var n=r.getServiceDescriptionSettings();if(n&&n.liveCatchup&&(!isNaN(n.liveCatchup.playbackRate.min)||!isNaN(n.liveCatchup.playbackRate.max))){var i=n.liveCatchup.playbackRate;return{min:s(i.min,e),max:o(i.max,e)}}return{min:-.5,max:.5}},getAbrBitrateParameter:function(e,t){try{var n=a.get().streaming.abr[e][t];if(!isNaN(n)&&-1!==n)return n;var i=r.getServiceDescriptionSettings();return i&&i[e]&&!isNaN(i[e][t])?i[e][t]:-1}catch(e){return-1}},setConfig:function(e){e.playbackController&&(n=e.playbackController),e.serviceDescriptionController&&(r=e.serviceDescriptionController)},reset:function(){}},t=(0,d.Z)(i).getInstance().getLogger(e),e}si.__dashjs_factory_name="MediaPlayerModel";var oi=c.Z.getSingletonFactory(si),li=n(1767);function ui(e){var t=(e=e||{}).abrController,n=e.switchHistory,r=e.droppedFramesHistory,i=e.currentRequest,a=e.useBufferOccupancyABR,s=e.useL2AABR,o=e.useLoLPABR,l=e.streamProcessor?e.streamProcessor.getScheduleController():null,u=e.streamProcessor?e.streamProcessor.getRepresentationInfo():null,c=e.videoModel?e.videoModel:null;function d(){return u?u.mediaInfo:null}return{getMediaType:function(){var e=d();return e?e.type:null},getMediaInfo:d,getDroppedFramesHistory:function(){return r},getCurrentRequest:function(){return i},getSwitchHistory:function(){return n},getStreamInfo:function(){var e=d();return e?e.streamInfo:null},getScheduleController:function(){return l},getAbrController:function(){return t},getRepresentationInfo:function(){return u},useBufferOccupancyABR:function(){return a},useL2AABR:function(){return s},useLoLPABR:function(){return o},getVideoModel:function(){return c}}}ui.__dashjs_factory_name="RulesContext";var ci=c.Z.getClassFactory(ui),di=n(2068);function fi(){var e=[],t=[];return{push:function(n){n.newValue===di.Z.NO_CHANGE&&(n.newValue=n.oldValue),e[n.oldValue]||(e[n.oldValue]={noDrops:0,drops:0,dropSize:0});var r=n.newValue-n.oldValue,i=r<0?1:0,a=i?-r:0,s=i?0:1;if(e[n.oldValue].drops+=i,e[n.oldValue].dropSize+=a,e[n.oldValue].noDrops+=s,t.push({idx:n.oldValue,noDrop:s,drop:i,dropSize:a}),t.length>8){var o=t.shift();e[o.idx].drops-=o.drop,e[o.idx].dropSize-=o.dropSize,e[o.idx].noDrops-=o.noDrop}},getSwitchRequests:function(){return e},reset:function(){e=[],t=[]}}}fi.__dashjs_factory_name="SwitchRequestHistory";var hi=c.Z.getClassFactory(fi);function mi(){var e={},t={},n={};return{push:function(r,i,a){if(i){e[r]||(e[r]=[],t[r]=0,n[r]=0);var s=a&&a.droppedVideoFrames?a.droppedVideoFrames:0,o=a&&a.totalVideoFrames?a.totalVideoFrames:0,l=s-t[r];t[r]=s;var u=o-n[r];n[r]=o;var c=e[r];isNaN(i)||(c[i]?(c[i].droppedVideoFrames+=l,c[i].totalVideoFrames+=u):c[i]={droppedVideoFrames:l,totalVideoFrames:u})}},getFrameHistory:function(t){return e[t]},clearForStream:function(r){try{delete e[r],delete t[r],delete n[r]}catch(e){}},reset:function(){e={},t={},n={}}}}mi.__dashjs_factory_name="DroppedFramesHistory";var pi=c.Z.getClassFactory(mi);function gi(e){var t,n,r,i,s,o=this.context,u=(e=e||{}).settings,c=(0,l.Z)(o).getInstance();function d(e,t,n,r){var i=Math.pow(.5,n/r.fast);e.fastEstimate=(1-i)*t+i*e.fastEstimate;var a=Math.pow(.5,n/r.slow);e.slowEstimate=(1-a)*t+a*e.slowEstimate,e.totalWeight+=n}function h(e,o,l){return u.get().streaming.abr.movingAverageMethod!==a.Z.MOVING_AVERAGE_SLIDING_WINDOW?function(e,t){var n=e?s.throughputHalfLife:s.latencyHalfLife,a=e?r[t]:i[t];if(!a||a.totalWeight<=0)return NaN;var o=a.fastEstimate/(1-Math.pow(.5,a.totalWeight/n.fast)),l=a.slowEstimate/(1-Math.pow(.5,a.totalWeight/n.slow));return e?Math.min(o,l):Math.max(o,l)}(e,o):function(e,r,i){var a=function(e,r,i){var a,s;if(e?(a=t[r],s=i?3:4):(a=n[r],s=4),a){if(s>=a.length)s=a.length;else if(e)for(var o=1;o<s;++o){var l=a[a.length-o]/a[a.length-o-1];if((l>=1.3||l<=1/1.3)&&(s+=1)===a.length)break}}else s=0;return s}(e,r,i),s=(e?t:n)[r];return 0!==a&&s&&0!==s.length?(s=s.slice(-a)).reduce(function(e,t){return e+t})/s.length:NaN}(e,o,l)}function m(e,t){return h(!0,e,t)}function p(e){t[e]=t[e]||[],n[e]=n[e]||[],r[e]=r[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0},i[e]=i[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}function g(){t={},n={},r={},i={}}var y={push:function(e,o,l){if(o.trace&&o.trace.length){var h,m=o.tresponse.getTime()-o.trequest.getTime()||1,g=o._tfinish.getTime()-o.tresponse.getTime()||1,y=o.trace.reduce(function(e,t){return e+t.b[0]},0),_=0;if(0!==(h=o._fileLoaderType&&o._fileLoaderType===a.Z.FILE_LOADER_TYPES.FETCH?o.trace.reduce(function(e,t){return e+t.d},0):l?g:m+g)&&(_=Math.round(8*y/h)),o.cmsd){var v=o.cmsd.dynamic&&o.cmsd.dynamic.etp?o.cmsd.dynamic.etp:null;if(v){var E=u.get().streaming.cmsd.abr.etpWeightRatio;E>0&&E<=1&&(_=_*(1-E)+v*E)}}if(p(e),function(e,t,n){return e===a.Z.VIDEO?n<u.get().streaming.cacheLoadThresholds[a.Z.VIDEO]:e===a.Z.AUDIO?n<u.get().streaming.cacheLoadThresholds[a.Z.AUDIO]:void 0}(e,0,g)){if(t[e].length>0&&!t[e].hasCachedEntries)return;t[e].hasCachedEntries=!0}else t[e]&&t[e].hasCachedEntries&&function(e){delete t[e],delete n[e],delete r[e],delete i[e],p(e)}(e);t[e].push(_),c.trigger(f.Z.THROUGHPUT_MEASUREMENT_STORED,{throughput:_,mediaType:e,httpRequest:o}),t[e].length>20&&t[e].shift(),n[e].push(m),n[e].length>20&&n[e].shift(),d(r[e],_,.001*g,s.throughputHalfLife),d(i[e],m,1,s.latencyHalfLife)}},getAverageThroughput:m,getSafeAverageThroughput:function(e,t){var n=m(e,t);return isNaN(n)||(n*=u.get().streaming.abr.bandwidthSafetyFactor),n},getAverageLatency:function(e){return h(!1,e)},reset:g};return s={throughputHalfLife:{fast:3,slow:8},latencyHalfLife:{fast:1,slow:2}},g(),y}gi.__dashjs_factory_name="ThroughputHistory";var yi=c.Z.getClassFactory(gi);function _i(){var e,t,n,r,i,s,c,h,m,p,g,y,_,v,E,T,S,w,L,A,M,D,I,R,C,P,O,x=this.context,N=(0,d.Z)(x).getInstance(),F=(0,l.Z)(x).getInstance();function Y(){i={},s={},h={},c={},A={},I={},R={},C={},void 0===p&&(p=!1),M&&M.reset(),L=void 0,M=void 0,D=void 0,clearTimeout(m),m=null}function U(t){var i=t.request.mediaType,a=t.streamId;if(i&&a&&c[a]&&O.get().streaming.abr.autoSwitchBitrate[i]){var s=c[a][i];if(s){var l=ci(x).create({abrController:e,streamProcessor:s,currentRequest:t.request,useBufferOccupancyABR:I[i],useL2AABR:R[i],useLoLPABR:C[i],videoModel:v}),u=n.shouldAbandonFragment(l,a);u.quality>di.Z.NO_CHANGE&&s.getFragmentModel().getRequests({state:b.FRAGMENT_MODEL_LOADING,index:t.request.index})[0]&&(h[a][i].state=o.Z.ABANDON_LOAD,A[a][i].reset(),A[a][i].push({oldValue:Z(i,a),newValue:u.quality,confidence:1,reason:u.reason}),$(i,r.getActiveStreamInfo(),u.quality,u.reason),clearTimeout(m),m=setTimeout(function(){h[a][i].state=o.Z.ALLOW_LOAD,m=null},O.get().streaming.abandonLoadTimeout))}}}function B(e){e.mediaType===a.Z.VIDEO&&(void 0!==L&&M.push(e.streamId,L,v.getPlaybackQuality()),L=e.newQuality)}function j(e){var n,r;e.metric!==o.Z.HTTP_REQUEST||!e.value||e.value.type!==k.w.MEDIA_SEGMENT_TYPE||e.mediaType!==a.Z.AUDIO&&e.mediaType!==a.Z.VIDEO||D.push(e.mediaType,e.value,O.get().streaming.abr.useDeadTimeLatency),e.metric!==o.Z.BUFFER_LEVEL||e.mediaType!==a.Z.AUDIO&&e.mediaType!==a.Z.VIDEO||(n=e.mediaType,r=.001*e.value.level,O.get().streaming.abr.ABRStrategy===a.Z.ABR_STRATEGY_DYNAMIC&&function(e,n){try{var r=E.getStableBufferTime(),i=r,a=.5*r,s=I[e],o=n>(s?a:i);I[e]=o,o!==s&&(o?t.info("["+e+"] switching from throughput to buffer occupancy ABR rule (buffer: "+n.toFixed(3)+")."):t.info("["+e+"] switching from buffer occupancy to throughput ABR rule (buffer: "+n.toFixed(3)+")."))}catch(e){t.error(e)}}(n,r))}function H(e,n){try{var r;return i[n]=i[n]||{},i[n].hasOwnProperty(e)||(i[n][e]=0),r=function(e,t){var n=i[t][e],r=n;if(!c[t]||!c[t][e])return r;var a=G(e,t);void 0!==a&&(r=Math.max(n,a));var s=function(e,t){try{var n=E.getAbrBitrateParameter("maxBitrate",e);return n>-1?V(c[t][e].getMediaInfo(),n,t):void 0}catch(e){return}}(e,t);return void 0!==s&&(r=Math.min(r,s)),r}(e,n),r=function(e,t,n){var r=i[n][t],a=O.get().streaming.abr.maxRepresentationRatio[t];return isNaN(a)||a>=1||a<0?e:Math.min(e,Math.round(r*a))}(r,e,n),r=function(e,t,n){if(t!==a.Z.VIDEO||!O.get().streaming.abr.limitBitrateByPortal||!c[n]||!c[n][t])return e;p||X();var r=c[n][t].getStreamInfo(),i=_.getAdaptationForType(r.index,t,r).Representation_asArray,s=e;if(g>0&&y>0){for(;s>0&&i[s]&&g<i[s].width&&g-i[s-1].width<i[s].width-g;)s-=1;for(;s<i.length-1&&i[s].width===i[s+1].width;)s+=1}return s}(r,e,n),O.get().streaming.cmsd.enabled&&O.get().streaming.cmsd.abr.applyMb&&(r=function(e,n,r){if("video"!==n)return e;var i=S.getMaxBitrate(n);if(i<0)return e;var a=q(r,"audio",Z("audio",r));i-=a?a.bitrate/1e3:0;var s=V(c[r][n].getMediaInfo(),i,r);return t.debug("Stream ID: "+r+" ["+n+"] Apply max bit rate from CMSD: "+i),Math.min(e,s)}(r,e,n)),r}catch(e){return}}function G(e,t){try{return function(e,t){try{var n=E.getAbrBitrateParameter("minBitrate",e);if(n>-1){var r=c[t][e].getMediaInfo(),i=K(r),a=V(r,n,t);return i[a]&&a<i.length-1&&i[a].bitrate<1e3*n&&a++,a}return}catch(e){return}}(e,t)}catch(e){return}}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return t||(t=r.getActiveStreamInfo().id),e&&c[t]&&c[t][e]&&t?(s[t]=s[t]||{},s[t].hasOwnProperty(e)||(s[t][e]=0),s[t][e]):0}catch(e){return 0}}function $(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(t&&t.id&&e){var i=t.id,a=Z(e,i);(0,W.SE)(n);var s=H(e,i);n!==a&&n>=0&&n<=s&&z(e,a,n,s,r,i)}}function z(e,n,r,i,a,o){if(e&&c[o]&&c[o][e]){var l=c[o][e].getStreamInfo(),d=l&&l.manifestInfo&&l.manifestInfo.isDynamic,f=P.getCurrentBufferLevel(e);t.info("Stream ID: "+o+" ["+e+"] switch from "+n+" to "+r+"/"+i+" (buffer: "+f+") "+(a?JSON.stringify(a):".")),s[o]=s[o]||{},s[o][e]=r;var h=q(o,e,r);F.trigger(u.Z.QUALITY_CHANGE_REQUESTED,{oldQuality:n,newQuality:r,reason:a,streamInfo:l,bitrateInfo:h,maxIdx:i,mediaType:e},{streamId:l.id,mediaType:e});var m=D.getAverageThroughput(e,d);isNaN(m)||w.setSavedBitrateSettings(e,m)}}function q(e,t,n){if(t&&c&&c[e]&&c[e][t]){var r=K(c[e][t].getMediaInfo());return r[n]?r[n]:null}return null}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=e&&e.type?c[n][e.type].getRepresentationInfo():null;if(O.get().streaming.abr.useDeadTimeLatency&&r&&i&&i.fragmentDuration){r/=1e3;var a=i.fragmentDuration;if(r>a)return 0;t*=1-r/a}for(var s=K(e),o=s.length-1;o>=0;o--)if(1e3*t>=s[o].bitrate)return o;return 0}function K(e){var t=[];if(!e||!e.bitrateList)return t;for(var n,r=e.bitrateList,i=e.type,a=0,s=r.length;a<s;a++)(n=new xt).mediaType=i,n.qualityIndex=a,n.bitrate=r[a].bandwidth,n.width=r[a].width,n.height=r[a].height,n.scanType=r[a].scanType,t.push(n);return t}function X(){if(v){var e=O.get().streaming.abr.usePixelRatioInLimitBitrateByPortal&&window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1;g=v.getClientWidth()*e,y=v.getClientHeight()*e}}return e={initialize:function(){M=pi(x).create(),D=yi(x).create({settings:O}),(n=(0,li.Z)(x).create({dashMetrics:P,customParametersModel:T,mediaPlayerModel:E,settings:O})).initialize(),F.on(f.Z.QUALITY_CHANGE_RENDERED,B,e),F.on(f.Z.METRIC_ADDED,j,e),F.on(u.Z.LOADING_PROGRESS,U,e)},isPlayingAtTopQuality:function(e){var t=e?e.id:null,n=Z(a.Z.AUDIO,t),r=Z(a.Z.VIDEO,t);return n===H(a.Z.AUDIO,t)&&r===H(a.Z.VIDEO,t)},updateTopQualityIndex:function(e){var t=e.type,n=e.streamInfo.id,r=e.representationCount-1;return i[n]=i[n]||{},i[n][t]=r,r},clearDataForStream:function(e){M&&M.clearForStream(e),c[e]&&delete c[e],A[e]&&delete A[e],h[e]&&delete h[e]},getThroughputHistory:function(){return D},getBitrateList:K,getQualityForBitrate:V,getTopBitrateInfoFor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t||(t=r.getActiveStreamInfo().id),e&&c&&c[t]&&c[t][e]){var n=H(e,t),i=K(c[t][e].getMediaInfo());return i[n]?i[n]:null}return null},getMinAllowedIndexFor:G,getMaxAllowedIndexFor:H,getInitialBitrateFor:function(e,t){if(function(){if(!w||!w.hasOwnProperty("getSavedBitrateSettings"))throw new Error(a.Z.MISSING_CONFIG_ERROR)}(),e===a.Z.TEXT)return NaN;var n=w.getSavedBitrateSettings(e),r=E.getAbrBitrateParameter("initialBitrate",e),i=O.get().streaming.abr.initialRepresentationRatio[e];if(-1===r)if(i>-1){var s=c[t][e].getStreamInfo(),o=_.getAdaptationForType(s.index,e,s).Representation_asArray;r=Array.isArray(o)?o[Math.max(Math.round(o.length*i)-1,0)].bandwidth/1e3:0}else r=isNaN(n)?e===a.Z.VIDEO?1e3:100:n;return r},getQualityFor:Z,getAbandonmentStateFor:function(e,t){return h[e]&&h[e][t]?h[e][t].state:null},setPlaybackQuality:$,checkPlaybackQuality:function(t,r){try{if(!(t&&c&&c[r]&&c[r][t]))return!1;if(M){var i=v.getPlaybackQuality();i&&M.push(r,L,i)}if(!O.get().streaming.abr.autoSwitchBitrate[t])return!1;var a=Z(t,r),s=ci(x).create({abrController:e,switchHistory:A[r][t],droppedFramesHistory:M,streamProcessor:c[r][t],currentValue:a,useBufferOccupancyABR:I[t],useL2AABR:R[t],useLoLPABR:C[t],videoModel:v}),l=G(t,r),u=H(t,r),d=n.getMaxQuality(s),f=d.quality;return void 0!==l&&(f>di.Z.NO_CHANGE?f:a)<l&&(f=l),f>u&&(f=u),A[r][t].push({oldValue:a,newValue:f}),f>di.Z.NO_CHANGE&&f!==a&&(h[r][t].state===o.Z.ALLOW_LOAD||f<a)&&(z(t,a,f,u,d.reason,r),!0)}catch(e){return!1}},setElementSize:X,setWindowResizeEventCalled:function(e){p=e},registerStreamType:function(e,t){var n=t.getStreamInfo().id;c[n]||(c[n]={}),A[n]||(A[n]={}),h[n]||(h[n]={}),A[n][e]=hi(x).create(),c[n][e]=t,h[n][e]={},h[n][e].state=o.Z.ALLOW_LOAD,function(e){var t=O.get().streaming.abr.ABRStrategy;t===a.Z.ABR_STRATEGY_L2A?(I[e]=!1,C[e]=!1,R[e]=!0):t===a.Z.ABR_STRATEGY_LoLP?(I[e]=!1,C[e]=!0,R[e]=!1):t===a.Z.ABR_STRATEGY_BOLA?(I[e]=!0,C[e]=!1,R[e]=!1):t===a.Z.ABR_STRATEGY_THROUGHPUT?(I[e]=!1,C[e]=!1,R[e]=!1):t===a.Z.ABR_STRATEGY_DYNAMIC&&(I[e]=!(!I||!I[e])&&I[e],C[e]=!1,R[e]=!1)}(e),e===a.Z.VIDEO&&X()},unRegisterStreamType:function(e,t){try{c[e]&&c[e][t]&&delete c[e][t],A[e]&&A[e][t]&&delete A[e][t],h[e]&&h[e][t]&&delete h[e][t]}catch(e){}},setConfig:function(e){e&&(e.streamController&&(r=e.streamController),e.domStorage&&(w=e.domStorage),e.mediaPlayerModel&&(E=e.mediaPlayerModel),e.customParametersModel&&(T=e.customParametersModel),e.cmsdModel&&(S=e.cmsdModel),e.dashMetrics&&(P=e.dashMetrics),e.adapter&&(_=e.adapter),e.videoModel&&(v=e.videoModel),e.settings&&(O=e.settings))},reset:function(){Y(),F.off(u.Z.LOADING_PROGRESS,U,e),F.off(f.Z.QUALITY_CHANGE_RENDERED,B,e),F.off(f.Z.METRIC_ADDED,j,e),n&&n.reset()}},t=N.getLogger(e),Y(),e}_i.__dashjs_factory_name="AbrController";var vi=c.Z.getSingletonFactory(_i);vi.QUALITY_DEFAULT=0,c.Z.updateSingletonFactory(_i.__dashjs_factory_name,vi);var Ei=vi,bi=new Map([[a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,"loadedmetadata"],[a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_CURRENT_DATA,"loadeddata"],[a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA,"canplay"],[a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_ENOUGH_DATA,"canplaythrough"]]);function Ti(){var e,t,n,r,i,s,o,c,f=this.context,h=(0,l.Z)(f).getInstance(),m=[];function p(){n&&(n.playbackRate=1,n.removeEventListener("canplay",p))}function g(){return m.length>0}function y(){if(n&&g()&&0===n.playbackRate){var e=document.createEvent("Event");e.initEvent("waiting",!0,!1),n.dispatchEvent(e)}}function _(e,t){n&&n.addEventListener(e,t)}function v(e,t){n&&n.removeEventListener(e,t)}function E(){return n?n.readyState:NaN}function b(){return n?n.buffered:null}function T(e,t,r,i,a){if(n)for(var s=0;s<n.textTracks.length;s++)if(n.textTracks[s].kind===e&&(!t||n.textTracks[s].label==t)&&n.textTracks[s].language===r&&n.textTracks[s].isTTML===i&&n.textTracks[s].isEmbedded===a)return n.textTracks[s];return null}function S(e,t){return e===a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_NOTHING||E()>=e?(t(),null):function(e,t){var n=function n(){v(e,n),t(e)};return _(e,n),{func:n,event:e}}(bi.get(e),t)}return e={addEventListener:_,addTextTrack:function(e,t,r,i,a){if(!n)return null;var s=T(e,t,r,i,a);return s||((s=n.addTextTrack(e,t,r)).isEmbedded=a,s.isTTML=i),s},appendChild:function(e){n&&(n.appendChild(e),void 0!==e.isTTML&&(n.textTracks[n.textTracks.length-1].isTTML=e.isTTML,n.textTracks[n.textTracks.length-1].isEmbedded=e.isEmbedded))},getBufferRange:b,getClientHeight:function(){return n?n.clientHeight:NaN},getClientWidth:function(){return n?n.clientWidth:NaN},getElement:function(){return n},getEnded:function(){return n?n.ended:null},getPlaybackQuality:function(){if(!n)return null;var e="webkitDroppedFrameCount"in n&&"webkitDecodedFrameCount"in n,t=null;return"getVideoPlaybackQuality"in n?t=n.getVideoPlaybackQuality():e&&(t={droppedVideoFrames:n.webkitDroppedFrameCount,totalVideoFrames:n.webkitDroppedFrameCount+n.webkitDecodedFrameCount,creationTime:new Date}),t},getPlaybackRate:function(){return n?n.playbackRate:null},getPlayedRanges:function(){return n?n.played:null},getReadyState:E,getSource:function(){return n?n.src:null},getTTMLRenderingDiv:function(){return s},getTextTrack:T,getTextTracks:function(){return n?n.textTracks:[]},getTime:function(){return n?isNaN(r)?n.currentTime:r:null},getVideoHeight:function(){return n?n.videoHeight:NaN},getVideoRelativeOffsetLeft:function(){if(n){var e=n.parentNode.host||n.parentNode;return e?n.getBoundingClientRect().left-e.getBoundingClientRect().left:NaN}
2return NaN},getVideoRelativeOffsetTop:function(){if(n){var e=n.parentNode.host||n.parentNode;return e?n.getBoundingClientRect().top-e.getBoundingClientRect().top:NaN}return NaN},getVideoWidth:function(){return n?n.videoWidth:NaN},getVttRenderingDiv:function(){return o},initialize:function(){h.on(u.Z.PLAYBACK_PLAYING,y,this)},isPaused:function(){return n?n.paused:null},isSeeking:function(){return n?n.seeking||!isNaN(r):null},isStalled:g,pause:function(){n&&(n.pause(),n.autoplay=!1)},play:function(){if(n){n.autoplay=!0;var e=n.play();e&&e.catch&&"undefined"!=typeof Promise&&e.catch(function(e){"NotAllowedError"===e.name&&h.trigger(u.Z.PLAYBACK_NOT_ALLOWED),t.warn("Caught pending play exception - continuing (".concat(e,")"))})}},removeChild:function(e){n&&n.removeChild(e)},removeEventListener:v,reset:function(){clearTimeout(c),h.off(u.Z.PLAYBACK_PLAYING,y,this)},setCurrentTime:function(e,t){n&&(i&&i.func&&i.event&&v(i.event,i.func),r=e,i=S(a.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,function(){if(n)if(n.currentTime!==r)try{r=t?function(e){var t=b(),n=e,r=9999999999;if(t)for(var i=0;i<t.length;i++){var a=t.start(i),s=t.end(i),o=Math.abs(a-e),l=Math.abs(s-e);if(e>=a&&e<=s)return e;o<r&&(r=o,n=a),l<r&&(r=l,n=s)}return n}(r):r,isNaN(r)||(n.currentTime=r),r=NaN}catch(e){0===n.readyState&&e.code===e.INVALID_STATE_ERR&&(c=setTimeout(function(){n.currentTime=r,r=NaN},400))}else r=NaN}))},setElement:function(e){if(!(null==e||e&&/^(VIDEO|AUDIO)$/i.test(e.nodeName)))throw"element is not video or audio DOM type!";(n=e)&&(n.preload="auto")},setPlaybackRate:function(e){n&&(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&n.readyState<=2&&e>0?n.addEventListener("canplay",p):n.playbackRate=e)},setSource:function(e){n&&(e?n.src=e:(n.removeAttribute("src"),n.load()))},setStallState:function(e,t){!function(e,t){t?function(e){null!==e&&n&&!n.seeking&&-1===m.indexOf(e)&&m.push(e)}(e):function(e){var t=m.indexOf(e);null!==e&&-1!==t&&m.splice(t,1)}(e)}(e,t)},setTTMLRenderingDiv:function(e){(s=e).style.position="absolute",s.style.display="flex",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.top=0,s.style.left=0},setVttRenderingDiv:function(e){o=e},waitForReadyState:S,setDisableRemotePlayback:function(e){n&&(n.disableRemotePlayback=e)}},t=(0,d.Z)(f).getInstance().getLogger(e),r=NaN,e}Ti.__dashjs_factory_name="VideoModel";var Si=c.Z.getSingletonFactory(Ti),wi=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],Li="dashjs_?_bitrate",Ai="dashjs_?_settings",Mi="localStorage",Di="lastBitrate",ki="lastMediaSettings";function Ii(e){e=e||{};var t,n,r,i=this.context,s=e.settings;function o(e){if(void 0!==r)return r;var t;r=!1;try{"undefined"!=typeof window&&(t=window[e])}catch(e){return n.warn("DOMStorage access denied: "+e.message),r}if(!t||e!==Mi&&"sessionStorage"!==e)return r;try{t.setItem("1","1"),t.removeItem("1"),r=!0}catch(e){n.warn("DOMStorage is supported, but cannot be used: "+e.message)}return r}function l(){var e=6e5;return Math.round((new Date).getTime()/e)*e}function u(e,t){return o(e)&&s.get().streaming[t+"CachingInfo"].enabled}function c(){if(!s)throw new Error(a.Z.MISSING_CONFIG_ERROR)}return t={getSavedBitrateSettings:function(e){if(c(),!s.get().streaming.lastBitrateCachingInfo.enabled)return NaN;var t=NaN;if(u(Mi,Di)){var r=Li.replace(/\?/,e);try{var i=JSON.parse(localStorage.getItem(r))||{},a=(new Date).getTime()-parseInt(i.timestamp,10)>=s.get().streaming.lastBitrateCachingInfo.ttl||!1,o=parseFloat(i.bitrate);isNaN(o)||a?a&&localStorage.removeItem(r):(t=o,n.debug("Last saved bitrate for "+e+" was "+o))}catch(e){return null}}return t},setSavedBitrateSettings:function(e,t){if(u(Mi,Di)&&t){var r=Li.replace(/\?/,e);try{localStorage.setItem(r,JSON.stringify({bitrate:t.toFixed(3),timestamp:l()}))}catch(e){n.error(e.message)}}},getSavedMediaSettings:function(e){if(c(),!s.get().streaming.lastMediaSettingsCachingInfo.enabled)return null;var t=null;if(u(Mi,ki)){var n=Ai.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},i=(new Date).getTime()-parseInt(r.timestamp,10)>=s.get().streaming.lastMediaSettingsCachingInfo.ttl||!1;t=r.settings,i&&(localStorage.removeItem(n),t=null)}catch(e){return null}}return t},setSavedMediaSettings:function(e,t){if(u(Mi,ki)){var r=Ai.replace(/\?/,e);try{localStorage.setItem(r,JSON.stringify({settings:t,timestamp:l()}))}catch(e){n.error(e.message)}}}},n=(0,d.Z)(i).getInstance().getLogger(t),o(Mi)&&wi.forEach(function(e){var t=localStorage.getItem(e.oldKey
vendor: 15,456 bytes, line 2
2);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(e){n.error(e.message)}}}),t}Ii.__dashjs_factory_name="DOMStorage";var Ri=c.Z.getSingletonFactory(Ii),Ci=n(2032),Pi=n(2011);function Oi(){var e,t,n,r,i,a,s,o,l,u,c,d,f,h=this.context;function m(e,n,i,a){var s=null,l=e?f.resolve(e.path):null,u=a||{init:!0,url:l?l.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,mediaType:n};t.debug("Start searching for initialization.");var c=_(u);o.load({request:c,success:function(t){if(u.bytesLoaded=u.range.end,!(s=r.findInitRange(t)))return u.range.end=u.bytesLoaded+u.bytesToLoad,m(e,n,i,u);e.range=s,i(e)},error:function(){i(e)}}),t.debug("Perform init search: "+u.url)}function g(e,n,i,a,s,l){if(i&&(void 0===i.start||void 0===i.end)){var u=i?i.toString().split("-"):null;i=u?{start:parseFloat(u[0]),end:parseFloat(u[1])}:null}s=s||y;var c=null,d=null,h=!!i,m=e?f.resolve(e.path):null,p={init:!1,url:m?m.url:void 0,range:h?i:{start:0,end:1500},searching:!h,bytesLoaded:l?l.bytesLoaded:0,bytesToLoad:1500,mediaType:n},v=_(p);o.load({request:v,success:function(i){var o=p.bytesToLoad,l=i.byteLength;if(p.bytesLoaded=p.range.end-p.range.start,c=r.parse(i),(d=c.getBox("sidx"))&&d.isComplete){var u,f,h=d.references;if(null!=h&&h.length>0&&(u=1===h[0].reference_type),u){var m,y,_,v;t.debug("Initiate multiple SIDX load."),p.range.end=p.range.start+d.size;var E=[],b=0,T=(d.offset||p.range.start)+d.size,S=function(t){t?(E=E.concat(t),++b>=y&&(E.sort(function(e,t){return e.startTime-t.startTime<0?-1:0}),s(E,e,a))):s(null,e,a)};for(m=0,y=h.length;m<y;m++)_=T,v=T+h[m].referenced_size-1,T+=h[m].referenced_size,g(e,n,{start:_,end:v},a,S,p)}else t.debug("Parsing segments from SIDX. representation "+n+" - id: "+e.id+" for range : "+p.range.start+" - "+p.range.end),f=function(e,t){for(var n,r,i,a,s=e.references,o=s.length,l=e.timescale,u=e.earliest_presentation_time,c=t.range.start+e.offset+e.first_offset+e.size,d=[],f=0;f<o;f++)i=s[f].subsegment_duration,a=s[f].referenced_size,(n=new Pi.Z).duration=i,n.startTime=u,n.timescale=l,r=c+a-1,n.mediaRange=c+"-"+r,d.push(n),u+=i,c+=a;return d}(d,p),s(f,e,a)}else{if(d)p.range.start=d.offset||p.range.start,p.range.end=p.range.start+(d.size||o);else{if(l<p.bytesLoaded)return void s(null,e,a);var w=c.getLastBox();w&&w.size?(p.range.start=w.offset+w.size,p.range.end=p.range.start+o):p.range.end+=o}g(e,n,p.range,a,null,p)}},error:function(){s(null,e,a)}}),t.debug("Perform SIDX load for type ".concat(n," : ").concat(p.url," with range ").concat(p.range.start," - ").concat(p.range.end))}function y(e,t,n){n({segments:e,representation:t,error:e?void 0:new T.Z(l.SEGMENT_BASE_LOADER_ERROR_CODE,l.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}function _(e){if(e.url){var t=new p.Z;return t.setInfo(e),t}}return e={setConfig:function(o){o.baseURLController&&(f=o.baseURLController),o.dashMetrics&&(a=o.dashMetrics),o.mediaPlayerModel&&(s=o.mediaPlayerModel),o.errHandler&&(n=o.errHandler),o.boxParser&&(r=o.boxParser),o.debug&&(t=o.debug.getLogger(e)),o.requestModifier&&(i=o.requestModifier),o.errors&&(l=o.errors),o.urlUtils&&(d=o.urlUtils),o.constants&&(u=o.constants),o.dashConstants&&(c=o.dashConstants)},initialize:function(){o=Tt(h).create({errHandler:n,dashMetrics:a,mediaPlayerModel:s,requestModifier:i,boxParser:r,errors:l,urlUtils:d,constants:u,dashConstants:c})},loadInitialization:function(e,t){return new Promise(function(n){m(e,t,n)})},loadSegments:function(e,t,n){return new Promise(function(r){g(e,t,n,r)})},reset:function(){o&&(o.abort(),o=null)}}}Oi.__dashjs_factory_name="SegmentBaseLoader";var xi=c.Z.getSingletonFactory(Oi);function Ni(e){var t;e=e||{};var n=new DataView(e.data),r=0;function i(e,t){var i=!0,a=0;if(void 0===t&&(t=!1),e.tag>16777215?(n.getUint32(r)!==e.tag&&(i=!1),a=4):e.tag>65535?(256*n.getUint16(r)+n.getUint8(r+2)!==e.tag&&(i=!1),a=3):e.tag>255?(n.getUint16(r)!==e.tag&&(i=!1),a=2):(n.getUint8(r)!==e.tag&&(i=!1),a=1),!i&&e.required&&!t)throw new Error("required tag not found");return i&&(r+=a),i}function a(e){var t=1,i=128,a=-1,s=0,o=n.getUint8(r),l=0;for(l=0;l<8;l+=1){if((o&i)===i){s=void 0===e?o&~i:o,a=l;break}i>>=1}for(l=0;l<a;l+=1,t+=1)s=s<<8|255&n.getUint8(r+t);return r+=t,s}return t={getPos:function(){return r},setPos:function(e){r=e},consumeTag:i,consumeTagAndSize:function(e,t){var n=i(e,t);return n&&a(),n},parseTag:function(e){var n;return i(e),n=a(),t[e.parse](n)},skipOverElement:function(e,t){var n,s=i(e,t);return s&&(n=a(),r+=n),s},getMatroskaCodedNum:a,getMatroskaFloat:function(e){var t;switch(e){case 4:t=n.getFloat32(r),r+=4;break;case 8:t=n.getFloat64(r),r+=8}return t},getMatroskaUint:function(e){if(e>4)return function(e){for(var t=Math.floor(Number.MAX_SAFE_INTEGER/256),i=0,a=0;a<e;a+=1){if(i>t)throw new Error("Value exceeds safe integer limit");i*=256;var s=n.getUint8(r+a);if(i>Number.MAX_SAFE_INTEGER-s)throw new Error("Value exceeds safe integer limit");i+=s}return r+=e,i}(e);for(var t=0,i=0;i<e;i+=1)t<<=8,t|=255&n.getUint8(r+i);return r+=e,t>>>0},moreData:function(){return r<n.byteLength}}}Ni.__dashjs_factory_name="EBMLParser";var Fi=c.Z.getClassFactory(Ni);function Yi(){var e,t,n,r,i,s,o,l,u,c,d=this.context;function f(e){var t=new p.Z;return t.setInfo(e),t}return e={setConfig:function(n){if(!(n.baseURLController&&n.dashMetrics&&n.mediaPlayerModel&&n.errHandler))throw new Error(a.Z.MISSING_CONFIG_ERROR);c=n.baseURLController,s=n.dashMetrics,o=n.mediaPlayerModel,r=n.errHandler,u=n.errors,t=n.debug.getLogger(e),i=n.requestModifier},initialize:function(){l=Tt(d).create({errHandler:r,dashMetrics:s,mediaPlayerModel:o,requestModifier:i,errors:u})},loadInitialization:function(e,n){return new Promise(function(r){var i=null,a=e?c.resolve(e.path):null,s=e?e.range.split("-"):null,o={range:{start:s?parseFloat(s[0]):null,end:s?parseFloat(s[1]):null},request:i,url:a?a.url:void 0,init:!0,mediaType:n};t.info("Start loading initialization."),i=f(o),l.load({request:i,success:function(){r(e)},error:function(){r(e)}}),t.debug("Perform init load: "+o.url)})},loadSegments:function(e,r,i){return new Promise(function(a){var s=null,o=e?c.resolve(e.path):null,h=o?o.url:void 0;s=f({bytesLoaded:0,bytesToLoad:8192,range:{start:0,end:8192},request:s,url:h,init:!1,mediaType:r}),t.debug("Parsing ebml header"),l.load({request:s,success:function(r){!function(e,r,i,a){if(e&&0!==e.byteLength){var s,o,u,c,h=Fi(d).create({data:e}),m=i?i.split("-"):null,p=null,g={url:r,range:{start:m?parseFloat(m[0]):null,end:m?parseFloat(m[1]):null},request:p};for(t.debug("Parse EBML header: "+g.url),h.skipOverElement(n.EBML),h.consumeTag(n.Segment),u=h.getMatroskaCodedNum(),u+=h.getPos(),c=h.getPos();h.moreData()&&!h.consumeTagAndSize(n.Segment.Info,!0);)if(!(h.skipOverElement(n.Segment.SeekHead,!0)||h.skipOverElement(n.Segment.Tracks,!0)||h.skipOverElement(n.Segment.Cues,!0)||h.skipOverElement(n.Void,!0)))throw new Error("no valid top level element found");for(;void 0===s;){var y=h.getMatroskaCodedNum(!0),_=h.getMatroskaCodedNum();y===n.Segment.Info.Duration.tag?s=h[n.Segment.Info.Duration.parse](_):h.setPos(h.getPos()+_)}p=f(g),l.load({request:p,success:function(e){o=function(e,r,i,a){var s,o,l,u,c,f,h,m;for(l=[],c=0,f=(o=function(e){var t,r,i=[],a=Fi(d).create({data:e});for(a.consumeTagAndSize(n.Segment.Cues);a.moreData()&&a.consumeTagAndSize(n.Segment.Cues.CuePoint,!0);){for((t={}).CueTime=a.parseTag(n.Segment.Cues.CuePoint.CueTime),t.CueTracks=[];a.moreData()&&a.consumeTag(n.Segment.Cues.CuePoint.CueTrackPositions,!0);){var s=a.getMatroskaCodedNum(),o=a.getPos();if((r={}).Track=a.parseTag(n.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===r.Track)throw new Error("Cue track cannot be 0");r.ClusterPosition=a.parseTag(n.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),t.CueTracks.push(r),a.setPos(o+s)}if(0===t.CueTracks.length)throw new Error("Mandatory cuetrack not found");i.push(t)}if(0===i.length)throw new Error("mandatory cuepoint not found");return i}(e)).length;c<f;c+=1)u=new Pi.Z,s=c<o.length-1?o[c+1].CueTime-o[c].CueTime:a-o[c].CueTime,u.duration=s,u.startTime=o[c].CueTime,u.timescale=1e3,h=o[c].CueTracks[0].ClusterPosition+r,m=c<o.length-1?o[c+1].CueTracks[0].ClusterPosition+r-1:i-1,u.mediaRange=h+"-"+m,l.push(u);return t.debug("Parsed cues: "+l.length+" cues."),l}(e,c,u,s),a(o)},error:function(){t.error("Download Error: Cues "+g.url),a(null)}}),t.debug("Perform cues load: "+g.url+" bytes="+g.range.start+"-"+g.range.end)}else a(null)}(r,h,i,function(t){a({segments:t,representation:e,error:t?void 0:new T.Z(u.SEGMENT_BASE_LOADER_ERROR_CODE,u.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})})},error:function(){a({representation:e,error:new T.Z(u.SEGMENT_BASE_LOADER_ERROR_CODE,u.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}})})},reset:function(){l&&(l.abort(),l=null)}},n={EBML:{tag:440786851,required:!0},Segment:{tag:408125543,required:!0,SeekHead:{tag:290298740,required:!0},Info:{tag:357149030,required:!0,TimecodeScale:{tag:2807729,required:!0,parse:"getMatroskaUint"},Duration:{tag:17545,required:!0,parse:"getMatroskaFloat"}},Tracks:{tag:374648427,required:!0},Cues:{tag:475249515,required:!0,CuePoint:{tag:187,required:!0,CueTime:{tag:179,required:!0,parse:"getMatroskaUint"},CueTrackPositions:{tag:183,required:!0,CueTrack:{tag:247,required:!0,parse:"getMatroskaUint"},CueClusterPosition:{tag:241,required:!0,parse:"getMatroskaUint"}}}}},Void:{tag:236,required:!0}},e}Yi.__dashjs_factory_name="WebmSegmentBaseLoader";var Ui=c.Z.getSingletonFactory(Yi);function Bi(e){e=e||{};var t,n,r,i=this.context,a=e.eventBus,s=e.events,o=e.dashMetrics,l=e.mediaPlayerModel,u=e.errHandler,c=e.baseURLController,d=e.debug,f=e.boxParser,h=e.requestModifier,m=e.errors;function p(e){return"webm"===(e?e.split("/")[1]:"").toLowerCase()}return t={initialize:function(){n.initialize(),r.initialize()},getSegmentBaseInitSegment:function(e){return p(e.representation.mimeType)?r.loadInitialization(e.representation,e.mediaType):n.loadInitialization(e.representation,e.mediaType)},getSegmentList:function(e){return p(e.mimeType)?r.loadSegments(e.representation,e.mediaType,e.representation?e.representation.indexRange:null):n.loadSegments(e.representation,e.mediaType,e.representation?e.representation.indexRange:null)},reset:function(){n.reset(),r.reset()}},n=xi(i).getInstance(),r=Ui(i).getInstance(),n.setConfig({baseURLController:c,dashMetrics:o,mediaPlayerModel:l,errHandler:u,eventBus:a,events:s,errors:m,debug:d,boxParser:f,requestModifier:h}),r.setConfig({baseURLController:c,dashMetrics:o,mediaPlayerModel:l,errHandler:u,eventBus:a,events:s,errors:m,debug:d,requestModifier:h}),t}Bi.__dashjs_factory_name="SegmentBaseController";var ji=c.Z.getSingletonFactory(Bi),Hi=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.quality=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null},Gi=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.labels=null,this.lang=null,this.viewpoint=null,this.viewpointsWithSchemeIdUri=null,this.accessibility=null,this.accessibilitiesWithSchemeIdUri=null,this.audioChannelConfiguration=null,this.audioChannelConfigurationsWithSchemeIdUri=null,this.roles=null,this.rolesWithSchemeIdUri=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null,this.isFragmented=null,this.isEmbedded=null,this.selectionPriority=1,this.supplementalProperties={},this.supplementalPropertiesAsArray=[],this.essentialProperties={},this.essentialPropertiesAsArray=[],this.segmentAlignment=!1,this.subSegmentAlignment=!1},Zi=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0},$i=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dvrWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null,this.serviceDescriptions=[],this.protocol=null};function zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qi=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.valid="/"==t[0],this.path=t.split("/").filter(function(e){return 0!==e.length}).map(function(e){var t={name:e},r=e.indexOf("[");if(-1!=r){t.name=e.substring(0,r);var i=e.substring(r+1,e.length-1);n.valid=n.valid&&-1==i.indexOf("[");var a=i.indexOf("=");-1!=a?(t.attribute={name:i.substring(1,a),value:i.substring(a+1)},-1!=["'",'"'].indexOf(t.attribute.value[0])&&(t.attribute.value=t.attribute.value.substring(1,t.attribute.value.length-1))):t.position=parseInt(i,10)-1}return t})}var t;return(t=[{key:"isValid",value:function(){return this.valid}},{key:"findsElement",value:function(){return!this.findsAttribute()}},{key:"findsAttribute",value:function(){return this.path[this.path.length-1].name.startsWith("@")}},{key:"findsTextReplace",value:function(){return"text()"===this.path[this.path.length-1].name}},{key:"getMpdTarget",value:function(e,t){for(var n=null,r=e,i=1,a="MPD";i<this.path.length&&null!==r;){n=r;var s=this.path[i];if(a=s.name,i!==this.path.length-1||!a.startsWith("@")&&"text()"!==a){var o=n[a+"_asArray"]||[];0===o.length&&n[a]&&o.push(n[a]),s.position?r=o[s.position]||null:s.attribute?function(){var e=s.attribute;r=o.filter(function(t){return t[e.name]==e.value})[0]||null}():r=o[0]||null}i++}return null===r?null:a.startsWith("@")?{name:a.substring(1),leaf:r,target:r}:"text()"===a?{name:"__text",leaf:r,target:r}:{name:a,leaf:r,target:t?n:r}}}])&&zi(e.prototype,t),e}();function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Vi=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=t,this.xpath=n,this.value=r,this.position=null}var t;return(t=[{key:"getMpdTarget",value:function(e){var t="remove"===this.action||"replace"===this.action||"before"===this.position||"after"===this.position;return this.xpath.getMpdTarget(e,t)}}])&&Wi(e.prototype,t),e}();function Ki(){var e,t,n=this.context;return e={getIsPatch:function(e){return e&&e.hasOwnProperty(s.Z.ORIGINAL_MPD_ID)||!1},getPublishTime:function(e){return e&&e.hasOwnProperty(s.Z.PUBLISH_TIME)?new Date(e[s.Z.PUBLISH_TIME]):null},getOriginalPublishTime:function(e){return e&&e.hasOwnProperty(s.Z.ORIGINAL_PUBLISH_TIME)?new Date(e[s.Z.ORIGINAL_PUBLISH_TIME]):null},getMpdId:function(e){return e&&e[s.Z.ORIGINAL_MPD_ID]||null},getPatchOperations:function(e){return e?(e.__children||[]).map(function(e){var n=Object.keys(e)[0];if("add"!==n&&"remove"!==n&&"replace"!==n)return t.warn("Ignoring node of invalid action: ".concat(n)),null;var r=e[n],i=r.sel;if("add"===n&&r.type){if(!r.type.startsWith("@"))return t.warn("Ignoring add action for prefixed namespace declaration: ".concat(r.type,"=").concat(r.__text)),null;i="".concat(i,"/").concat(r.type)}var a=new qi(i);
2if(!a.isValid())return t.warn("Ignoring action with invalid selector: ".concat(n," - ").concat(i)),null;var s=null;a.findsAttribute()||a.findsTextReplace()?s=r.__text||"":"remove"!==n&&(s=r.__children.reduce(function(e,t){var n=Object.keys(t)[0];return"#text"!==n&&(e[n]=e[n]||[],e[n].push(t[n])),e},{}));var o=new Vi(n,a,s);return"add"===n&&(o.position=r.pos),o}).filter(function(e){return!!e}):[]}},t=(0,d.Z)(n).getInstance().getLogger(e),e}Ki.__dashjs_factory_name="PatchManifestModel";var Xi=c.Z.getSingletonFactory(Ki);function Qi(){var e,t,n,r,i,a,o,l=this.context;function u(e,n,a){var o,l=t.getAdaptationsForType(r[0].mpd.manifest,e,n);if(!l||0===l.length)return null;if(l.length>1&&a){var u=f(a,n);if(i[a.id]&&i[a.id][n])for(var d=0,h=l.length;d<h;d++)if(c(i[a.id][n],u[d]))return l[d];for(var m=0,p=l.length;m<p;m++)if(o=l[m],t.getRolesForAdaptation(o).filter(function(e){return e.value===s.Z.MAIN})[0])return l[m]}return l[0]}function c(e,t){if(!e||!t)return!1;var n=e.id===t.id,r=e.codec===t.codec,i=e.viewpoint===t.viewpoint,a=JSON.stringify(e.viewpointsWithSchemeIdUri)===JSON.stringify(t.viewpointsWithSchemeIdUri),s=e.lang===t.lang,o=e.roles.toString()===t.roles.toString(),l=JSON.stringify(e.rolesWithSchemeIdUri)===JSON.stringify(t.rolesWithSchemeIdUri),u=e.accessibility.toString()===t.accessibility.toString(),c=JSON.stringify(e.accessibilitiesWithSchemeIdUri)===JSON.stringify(t.accessibilitiesWithSchemeIdUri),d=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString(),f=JSON.stringify(e.audioChannelConfigurationsWithSchemeIdUri)===JSON.stringify(t.audioChannelConfigurationsWithSchemeIdUri);return n&&r&&i&&a&&s&&o&&l&&u&&c&&d&&f}function d(e,n,r,i,s,o){var l,u,c,d,f,h,m=[];if(!i||0===i.length)return[];var p=t.getAdaptationsForPeriod(n);for(d=0,h=i.length;d<h;d++)if(l=i[d],u=v(p[c=t.getIndexForAdaptation(l,e,r.index)]),o){var g=u.accessibility.length;for(f=0;f<g;f++)if(u){var y=u.accessibility[f];if(0===y.indexOf("cea-608:")){var _=y.substring(8).split(";");if("CC"===_[0].substring(0,2))for(f=0;f<_.length;f++)u||(u=v.call(this,p[c])),E(u,_[f].substring(0,3),_[f].substring(4)),m.push(u),u=null;else for(f=0;f<_.length;f++)u||(u=v.call(this,p[c])),E(u,"CC"+(f+1),_[f]),m.push(u),u=null}else 0===y.indexOf("cea-608")&&(E(u,a.CC1,"eng"),m.push(u),u=null)}}else s===a.IMAGE?(u.type=a.IMAGE,m.push(u),u=null):u&&m.push(u);return m}function f(e,n,i){var s=r,o=i,l=[];if(o)T(),s=h(o);else{if(!(r.length>0))return l;o=r[0].mpd.manifest}var u=_(e,s),c=t.getAdaptationsForType(o,e?e.index:null,n);return l=d(o,u,e,c,n),n===a.TEXT&&(c=t.getAdaptationsForType(o,e?e.index:null,a.VIDEO),l=l.concat(d(o,u,e,c,n,!0))),l}function h(e){var n=m(e);return t.getRegularPeriods(n)}function m(e){var n=g(e);return t.getMpd(n)}function p(){r=[],i={}}function g(e){return e||(r.length>0?r[0].mpd.manifest:null)}function y(e){try{var n=_(e.streamInfo,r),i=t.getAdaptationsForPeriod(n);return e&&e.streamInfo&&void 0!==e.streamInfo.id&&i?i[e.index]:null}catch(e){return null}}function _(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r];if(e&&e.id===i.id)return i}return null}function v(e){if(!e)return null;var n,r,i,a,s,l=new Gi,u=e.period.mpd.manifest.Period_asArray[e.period.index].AdaptationSet_asArray[e.index];if(l.id=e.id,l.index=e.index,l.type=e.type,l.streamInfo=b(e.period),l.representationCount=t.getRepresentationCount(u),l.labels=t.getLabelsForAdaptation(u),l.lang=t.getLanguageForAdaptation(u),l.segmentAlignment=t.getSegmentAlignment(u),l.subSegmentAlignment=t.getSubSegmentAlignment(u),n=t.getViewpointForAdaptation(u),l.viewpoint=n.length?n[0].value:void 0,l.viewpointsWithSchemeIdUri=n,s=t.getAccessibilityForAdaptation(u),l.accessibility=s.map(function(e){var t=e.value,n=t;return e.schemeIdUri&&e.schemeIdUri.search("cea-608")>=0&&void 0!==o&&(n=t?"cea-608:"+t:"cea-608",l.embeddedCaptions=!0),n}),l.accessibilitiesWithSchemeIdUri=s,r=t.getAudioChannelConfigurationForAdaptation(u),l.audioChannelConfiguration=r.map(function(e){return e.value}),l.audioChannelConfigurationsWithSchemeIdUri=r,0===l.audioChannelConfiguration.length&&Array.isArray(u.Representation_asArray)&&u.Representation_asArray.length>0&&(i=t.getAudioChannelConfigurationForRepresentation(u.Representation_asArray[0]),l.audioChannelConfiguration=i.map(function(e){return e.value}),l.audioChannelConfigurationsWithSchemeIdUri=i),a=t.getRolesForAdaptation(u),l.roles=a.map(function(e){return e.value}),l.rolesWithSchemeIdUri=a,l.codec=t.getCodec(u),l.mimeType=t.getMimeType(u),l.contentProtection=t.getContentProtectionData(u),l.bitrateList=t.getBitrateListForAdaptation(u),l.selectionPriority=t.getSelectionPriority(u),l.contentProtection){var c=l.contentProtection.map(function(e){return t.getKID(e)}).filter(function(e){return null!==e});if(c.length){var d=c[0];l.contentProtection.forEach(function(e){e.keyId=d})}}if(l.isText=t.getIsText(u),l.supplementalProperties=t.getSupplementalPropertiesForAdaptation(u),(!l.supplementalProperties||0===Object.keys(l.supplementalProperties).length)&&Array.isArray(u.Representation_asArray)&&u.Representation_asArray.length>0){var f=u.Representation_asArray.map(function(e){return t.getSupplementalPropertiesForRepresentation(e)});f.every(function(e){return JSON.stringify(e)===JSON.stringify(f[0])})&&(l.supplementalProperties=f[0])}if(l.supplementalPropertiesAsArray=t.getSupplementalPropertiesAsArrayForAdaptation(u),(!l.supplementalPropertiesAsArray||0===l.supplementalPropertiesAsArray.length)&&Array.isArray(u.Representation_asArray)&&u.Representation_asArray.length>0){var h=u.Representation_asArray.map(function(e){return t.getSupplementalPropertiesAsArrayForRepresentation(e)});h.every(function(e){return JSON.stringify(e)===JSON.stringify(h[0])})&&(l.supplementalPropertiesAsArray=h[0])}return l.essentialProperties=t.getEssentialPropertiesForAdaptation(u),l.essentialPropertiesAsArray=t.getEssentialPropertiesAsArrayForAdaptation(u),l.isFragmented=t.getIsFragmented(u),l.isEmbedded=!1,l}
vendor: 19,671 bytes, line 2
2function E(e,t,n){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type=a.TEXT,e.codec="cea-608-in-SEI",e.isEmbedded=!0,e.isFragmented=!1;var r=En()(n);e.lang=r||n,e.roles=["caption"],e.rolesWithSchemeIdUri=[{schemeIdUri:"urn:mpeg:dash:role:2011",value:"caption"}]}function b(e){var n,r,i=new Zi;return i.id=e.id,i.index=e.index,i.start=e.start,i.duration=e.duration,i.manifestInfo=(n=e.mpd,(r=new $i).dvrWindowSize=n.timeShiftBufferDepth,r.loadedTime=n.manifest.loadedTime,r.availableFrom=n.availabilityStartTime,r.minBufferTime=n.manifest.minBufferTime,r.maxFragmentDuration=n.maxSegmentDuration,r.duration=t.getDuration(n.manifest),r.isDynamic=t.getIsDynamic(n.manifest),r.serviceDescriptions=t.getServiceDescriptions(n.manifest),r.protocol=n.manifest.protocol,r),i.isLast=1===e.mpd.manifest.Period_asArray.length||Math.abs(i.start+i.duration-i.manifestInfo.duration)<1,i}function T(){if(!a)throw new Error("setConfig function has to be called previously")}function S(e){return r.length>0?r[0].mpd.manifest.Period_asArray[e]:null}function w(e,t,n){var r,i,a,s,o;if(e)for(r=e.AdaptationSet_asArray,s=0;s<r.length;s+=1)for(a=r[s].Representation_asArray,o=0;o<a.length;o+=1)if(t===(i=a[o]).id)return n?o:i;return null}return e={getBandwidthForRepresentation:function(e,t){var n;return(n=w(S(t),e))?n.bandwidth:null},getIndexForRepresentation:function(e,t){return function(e,t){var n=w(e,t,!0);return null!==n?n:-1}(S(t),e)},getMaxIndexForBufferType:function(e,n){return function(e,n){var r,i,a,s;if(!e||!n)return-1;for(i=e.AdaptationSet_asArray,s=0;s<i.length;s+=1)if(a=(r=i[s]).Representation_asArray,t.getIsTypeOf(r,n))return a.length;return-1}(S(n),e)},convertRepresentationToRepresentationInfo:function(e){if(e){var n=new Hi,r=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],i=t.getRepresentationFor(e.index,r);return n.id=e.id,n.quality=e.index,n.bandwidth=t.getBandwidth(i),n.fragmentDuration=e.segmentDuration||(e.segments&&e.segments.length>0?e.segments[0].duration:NaN),n.MSETimeOffset=e.MSETimeOffset,n.mediaInfo=v(e.adaptation),n}return null},getStreamsInfo:function(e,t){var n=[],i=r;if(e&&(T(),i=h(e)),i.length>0){(!t||t>i.length)&&(t=i.length);for(var a=0;a<t;a++)n.push(b(i[a]))}return n},getMediaInfoForType:function(e,n){if(0===r.length||!e)return null;var i=_(e,r);if(!i)return null;var a=t.getAdaptationsForPeriod(i),s=u(e.index,n,e);return s?v(a[t.getIndexForAdaptation(s,r[0].mpd.manifest,e.index)]):null},getAllMediaInfoForType:f,getAdaptationForType:u,getRealAdaptation:function(e,n){var i,a,s=_(e,r);return i=n?n.id:null,r.length>0&&s&&(a=i?t.getAdaptationForId(i,r[0].mpd.manifest,s.index):t.getAdaptationForIndex(n?n.index:null,r[0].mpd.manifest,s.index)),a},getProducerReferenceTimes:function(e,n){var i,a,s=_(e,r);return i=n?n.id:null,r.length>0&&s&&(a=i?t.getAdaptationForId(i,r[0].mpd.manifest,s.index):t.getAdaptationForIndex(n?n.index:null,r[0].mpd.manifest,s.index)),a?t.getProducerReferenceTimesForAdaptation(a):[]},getRealPeriodByIndex:function(e){return t.getRealPeriodForIndex(e,r[0].mpd.manifest)},getEssentialPropertiesForRepresentation:function(e){try{return t.getEssentialPropertiesForRepresentation(e)}catch(e){return[]}},getVoRepresentations:function(e){var n=y(e);return t.getRepresentationsForAdaptation(n)},getEventsFor:function(e,n,i){var a=[];if(r.length>0){var s=r[0].mpd.manifest;if(e instanceof Zi){var o=_(e,r);a=t.getEventsForPeriod(o)}else if(e instanceof Gi){var l=_(i,r);a=t.getEventStreamForAdaptationSet(s,y(e),l)}else if(e instanceof Hi){var u=_(i,r);a=t.getEventStreamForRepresentation(s,n,u)}}return a},getEvent:function(e,t,n,r){try{if(!e||!t||isNaN(n)||!r)return null;var i=e.scheme_id_uri,a=e.value;if(!t[i+"/"+a])return null;var s,o=new Ee,l=e.timescale||1,u=r.adaptation.period.start,c=t[i+"/"+a],d=isNaN(r.presentationTimeOffset)?isNaN(c.presentationTimeOffset)?0:c.presentationTimeOffset:r.presentationTimeOffset,f=e.presentation_time_delta/l;s=0===e.version?u+n-d+f:u-d+f;var h=e.event_duration/l,m=e.id,p=e.message_data;return o.eventStream=c,o.eventStream.value=a,o.eventStream.timescale=l,o.duration=h,o.id=m,o.calculatedPresentationTime=s,o.messageData=p,o.presentationTimeDelta=f,o}catch(e){return null}},getMpd:m,setConfig:function(e){e&&(e.constants&&(a=e.constants),e.cea608parser&&(o=e.cea608parser),e.errHandler&&t.setConfig({errHandler:e.errHandler}),e.BASE64&&t.setConfig({BASE64:e.BASE64}))},updatePeriods:function(e){if(!e)return null;T(),r=h(e)},getIsTextTrack:function(e){return t.getIsText(e)},getUTCTimingSources:function(){var e=g();return t.getUTCTimingSources(e)},getSuggestedPresentationDelay:function(){var e=r.length>0?r[0].mpd:null;return t.getSuggestedPresentationDelay(e)},getAvailabilityStartTime:function(e){var n=m(e);return t.getAvailabilityStartTime(n)},getIsTypeOf:function(e,n){return t.getIsTypeOf(e,n)},getIsDynamic:function(e){var n=g(e);return t.getIsDynamic(n)},getDuration:function(e){var n=g(e);return t.getDuration(n)},getRegularPeriods:h,getContentSteering:function(e){return t.getContentSteering(e)},getLocation:function(e){return t.getLocation(e)},getPatchLocation:function(e){var n=t.getPatchLocation(e),r=t.getPublishTime(e);return n&&0!==n.length&&r?n.filter(function(e){return isNaN(e.ttl)||r.getTime()+e.ttl>(new Date).getTime()}):[]},getManifestUpdatePeriod:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.getManifestUpdatePeriod(e,n)},getPublishTime:function(e){return t.getPublishTime(e)},getIsDVB:function(e){return t.hasProfile(e,"urn:dvb:dash:profile:dvb-dash:2014")},getIsPatch:function(e){return n.getIsPatch(e)},getBaseURLsFromElement:function(e){return t.getBaseURLsFromElement(e)},getRepresentationSortFunction:function(){return t.getRepresentationSortFunction()},getCodec:function(e,n,r){return t.getCodec(e,n,r)},getPeriodById:function(e){if(!e||0===r.length)return null;var t=r.filter(function(t){return t.id===e});return t&&t.length>0?t[0]:null},setCurrentMediaInfo:function(e,t,n){i[e]=i[e]||{},i[e][t]=i[e][t]||{},i[e][t]=n},isPatchValid:function(e,r){var i=t.getId(e),a=n.getMpdId(r),s=t.getPublishTime(e),o=n.getPublishTime(r),l=n.getOriginalPublishTime(r);return!!(i&&a&&i==a&&s&&l&&s.getTime()==l.getTime()&&o&&s.getTime()<o.getTime())},applyPatchToManifest:function(e,t){n.getPatchOperations(t).forEach(function(t){var n=t.getMpdTarget(e);if(null!==n){var r=n.name,i=n.target,a=n.leaf;if(t.xpath.findsAttribute()||"__text"===r)switch(t.action){case"add":case"replace":i[r]=t.value;break;case"remove":delete i[r]}else{var s=(i[r+"_asArray"]||[]).indexOf(a),o="prepend"===t.position||"before"===t.position;if(("remove"===t.action||"replace"===t.action)&&(delete i[r],-1!=s)){var l=i[r+"_asArray"];l.splice(s,1),l.length>1?i[r]=l:1==l.length?i[r]=l[0]:delete i[r+"_asArray"]}"add"!==t.action&&"replace"!==t.action||Object.keys(t.value).forEach(function(e){var n=t.value[e],a=i[e+"_asArray"]||[];if(0===a.length&&i[e]&&a.push(i[e]),0===a.length)a=n;else{var l=a.length;l=e==r&&-1!=s?s+(o?0:1)+("replace"==t.action?-1:0):o?0:a.length,a.splice.apply(a,[l,0].concat(n))}i[e+"_asArray"]=a,i[e]=1==a.length?a[0]:a})}}})},areMediaInfosEqual:c,reset:p},t=He(l).getInstance(),n=Xi(l).getInstance(),p(),e}Qi.__dashjs_factory_name="DashAdapter";var Ji=c.Z.getSingletonFactory(Qi);function ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ta=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"round10",value:function(e,t){return function(e,t,n){return void 0===n||0==+n?Math[e](t):(n=+n,null===(t=+t)||isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))}("round",e,t)}}],t&&ea(e,t),e}(),na=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]},ra=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.mt=null,this.to=null,this.lto=null},ia=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.level=null},aa=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.target=null,this.state=o.Z.BUFFER_EMPTY},sa=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.time=null,this.range=null,this.manifestInfo=null},oa=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.time=null,this.droppedFrames=null};function la(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ua=function e(){la(this,e),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.representationInfo=[]},ca=function e(){la(this,e),this.id=null,this.index=null,this.start=null,this.duration=null},da=function e(){la(this,e),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null},fa=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null},ha=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadingRequests=[],this.executedRequests=[]};function ma(e){var t,n,r=(e=e||{}).settings,i=this.context,s=(0,l.Z)(i).getInstance();function c(){s.trigger(u.Z.METRICS_CHANGED)}function d(e){s.trigger(u.Z.METRIC_CHANGED,{mediaType:e}),c()}function f(e,t,n){s.trigger(u.Z.METRIC_UPDATED,{mediaType:e,metric:t,value:n}),d(e)}function h(e,t,n){s.trigger(u.Z.METRIC_ADDED,{mediaType:e,metric:t,value:n}),d(e)}function m(e,t){var r=null;return e?(n.hasOwnProperty(e)?r=n[e]:t||(r=new na,n[e]=r),r):r}function p(e,t,n){var i=m(e);null!==i&&(i[t].push(n),i[t].length>r.get().streaming.metrics.maxListDepth&&i[t].shift())}function g(e,t,n){p(e,t,n),h(e,t,n)}return t={clearCurrentMetricsForType:function(e){delete n[e],d(e)},clearAllCurrentMetrics:function(){n={},c()},getMetricsFor:m,addHttpRequest:function e(t,n,r,i,a,s,l,u,c,d,f,h,m,p,y,_,v){var E=new k.w;null!=s&&s!==i&&(e(t,null,r,i,a,null,null,u,c,null,null,null,m,null,null,_,v),E.actualurl=s),E.tcpid=n,E.type=r,E.url=i,E.range=u,E.trequest=c,E.tresponse=d,E.responsecode=h,E.cmsd=v,E._tfinish=f,E._stream=t,E._mediaduration=m,E._quality=a,E._responseHeaders=p,E._serviceLocation=l,E._fileLoaderType=_,y?y.forEach(function(e){!function(e,t,n,r){var i=new k.O;i.s=t,i.d=n,i.b=r,e.trace.push(i),e.interval||(e.interval=0),e.interval+=n}(E,e.s,e.d,e.b)}):(delete E.interval,delete E.trace),g(t,o.Z.HTTP_REQUEST,E)},addRepresentationSwitch:function(e,t,n,r,i){var a=new ra;a.t=t,a.mt=n,a.to=r,i?a.lto=i:delete a.lto,g(e,o.Z.TRACK_SWITCH,a)},addBufferLevel:function(e,t,n){var r=new ia;r.t=t,r.level=n,g(e,o.Z.BUFFER_LEVEL,r)},addBufferState:function(e,t,n){var r=new aa;r.target=n,r.state=t,g(e,o.Z.BUFFER_STATE,r)},addDVRInfo:function(e,t,n,r){var i=new sa;i.time=t,i.range=r,i.manifestInfo=n,g(e,o.Z.DVR_INFO,i)},addDroppedFrames:function(e,t){var n=new oa,r=m(e).DroppedFrames;t&&(n.time=t.creationTime,n.droppedFrames=t.droppedVideoFrames,r.length>0&&r[r.length-1]==n||g(e,o.Z.DROPPED_FRAMES,n))},addSchedulingInfo:function(e,t,n,r,i,a,s,l,u){var c=new fa;c.mediaType=e,c.t=t,c.type=n,c.startTime=r,c.availabilityStartTime=i,c.duration=a,c.quality=s,c.range=l,c.state=u,g(e,o.Z.SCHEDULING_INFO,c)},addRequestsQueue:function(e,t,n){var r=new ha;r.loadingRequests=t,r.executedRequests=n,m(e).RequestsQueue=r,h(e,o.Z.REQUESTS_QUEUE,r)},addManifestUpdate:function(e,t,n,r,i,s,l,u,c,d){var f=new ua;f.mediaType=e,f.type=t,f.requestTime=n,f.fetchTime=r,f.availabilityStartTime=i,f.presentationStartTime=s,f.clientTimeOffset=l,f.currentTime=u,f.buffered=c,f.latency=d,p(a.Z.STREAM,o.Z.MANIFEST_UPDATE,f),h(e,o.Z.MANIFEST_UPDATE,f)},updateManifestUpdateInfo:function(e,t){if(e){for(var n in t)e[n]=t[n];f(e.mediaType,o.Z.MANIFEST_UPDATE,e)}},addManifestUpdateStreamInfo:function(e,t,n,r,i){if(e){var a=new ca;a.id=t,a.index=n,a.start=r,a.duration=i,e.streamInfo.push(a),f(e.mediaType,o.Z.MANIFEST_UPDATE_STREAM_INFO,e)}},addManifestUpdateRepresentationInfo:function(e,t,n,r,i,a,s,l){if(e&&e.representationInfo){var u=new da;u.id=t,u.index=n,u.streamIndex=r,u.mediaType=i,u.startNumber=s,u.fragmentInfoType=l,u.presentationTimeOffset=a,e.representationInfo.push(u),f(e.mediaType,o.Z.MANIFEST_UPDATE_TRACK_INFO,e)}},addPlayList:function(e){e.trace&&Array.isArray(e.trace)?e.trace.forEach(function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel}):delete e.trace,g(a.Z.STREAM,o.Z.PLAY_LIST,e)},addDVBErrors:function(e){g(a.Z.STREAM,o.Z.DVB_ERRORS,e)}},n={},t}ma.__dashjs_factory_name="MetricsModel";var pa=c.Z.getSingletonFactory(ma);function ga(e){e=e||{};var t,n,r,i,s=this.context,l=e.metricsModel;function u(e){var t=l.getMetricsFor(e,!0);if(!t)return null;var n,r=t.HttpList,i=null;if(!r||r.length<=0)return null;for(n=r.length-1;n>=0;){if(r[n].responsecode){i=r[n];break}n--}return i}function c(e){var t=l.getMetricsFor(e,!0);return t&&t.HttpList?t.HttpList:[]}function d(e,t){if(!e)return null;var n=e[t];return n&&0!==n.length?n[n.length-1]:null}return t={getCurrentRepresentationSwitch:function(e){return d(l.getMetricsFor(e,!0),o.Z.TRACK_SWITCH)},getCurrentBufferState:function(e){return d(l.getMetricsFor(e,!0),o.Z.BUFFER_STATE)},getCurrentBufferLevel:function(e){var t=d(l.getMetricsFor(e,!0),o.Z.BUFFER_LEVEL);return t?ta.round10(t.level/1e3,-3):0},getCurrentHttpRequest:u,getHttpRequests:c,getCurrentDroppedFrames:function(){return d(l.getMetricsFor(a.Z.VIDEO,!0),o.Z.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(e){return d(l.getMetricsFor(e,!0),o.Z.SCHEDULING_INFO)},getCurrentDVRInfo:function(e){return d(e?l.getMetricsFor(e,!0):l.getMetricsFor(a.Z.VIDEO,!0)||l.getMetricsFor(a.Z.AUDIO,!0),o.Z.DVR_INFO)},getCurrentManifestUpdate:function(){return d(l.getMetricsFor(a.Z.STREAM),o.Z.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(e,t){if(!t)return null;var n={},r=u(e);r&&(n=Ge.Z.parseHttpHeaders(r._responseHeaders));var i=n[t.toLowerCase()];return void 0===i?null:i},getLatestMPDRequestHeaderValueByID:function(e){if(!e)return null;var t,n,r,i={};for(r=(t=c(a.Z.STREAM)).length-1;r>=0;r--)if((n=t[r]).type===k.w.MPD_TYPE){i=Ge.Z.parseHttpHeaders(n._responseHeaders);break}var s=i[e.toLowerCase()];return void 0===s?null:s},addRepresentationSwitch:function(e,t,n,r,i){l.addRepresentationSwitch(e,t,n,r,i)},addDVRInfo:function(e,t,n,r){l.addDVRInfo(e,t,n,r)},updateManifestUpdateInfo:function(e){var t=this.getCurrentManifestUpdate();l.updateManifestUpdateInfo(t,e)},addManifestUpdateStreamInfo:function(e){if(e){var t=this.getCurrentManifestUpdate();l.addManifestUpdateStreamInfo(t,e.id,e.index,e.start,e.duration)}},addManifestUpdateRepresentationInfo:function(e,t){if(e){var n=this.getCurrentManifestUpdate();l.addManifestUpdateRepresentationInfo(n,e.id,e.index,e.streamIndex,t,e.presentationTimeOffset,e.startNumber,e.fragmentInfoType)}},addManifestUpdate:function(e){l.addManifestUpdate(a.Z.STREAM,e.type,e.requestStartDate,e.requestEndDate)},addHttpRequest:function(e,t,n,r,i,a){l.addHttpRequest(e.mediaType,null,e.type,e.url,e.quality,t,e.serviceLocation||null,e.range||null,e.requestStartDate,e.firstByteDate,e.requestEndDate,n,e.duration,r,i,e.fileLoaderType,a)},addSchedulingInfo:function(e,t){l.addSchedulingInfo(e.mediaType,new Date,e.type,e.startTime,e.availabilityStartTime,e.duration,e.quality,e.range,t)},addRequestsQueue:function(e,t,n){l.addRequestsQueue(e,t,n)},addBufferLevel:function(e,t,n){l.addBufferLevel(e,t,n)},addBufferState:function(e,t,n){l.addBufferState(e,t,n)},addDroppedFrames:function(e){l.addDroppedFrames(a.Z.VIDEO,e)},addPlayList:function(){i&&(l.addPlayList(i),i=null)},addDVBErrors:function(e){l.addDVBErrors(e)},createPlaylistMetrics:function(e,t){(i=new J).start=new Date,i.mstart=e,i.starttype=t},createPlaylistTraceMetrics:function(e,t,i){!0===n&&(n=!1,(r=new ee).representationid=e,r.start=new Date,r.mstart=t,r.playbackspeed=null!==i?i.toString():null)},updatePlayListTraceMetrics:function(e){if(r)for(var t in r)r[t]=e[t]},pushPlayListTraceMetrics:function(e,t){if(!1===n&&i&&r&&r.start){var a=r.start,s=e.getTime()-a.getTime();r.duration=s,r.stopreason=t,i.trace.push(r),n=!0}},clearAllCurrentMetrics:function(){l.clearAllCurrentMetrics()}},l=l||pa(s).getInstance({settings:e.settings}),n=!0,r=null,i=null,t}ga.__dashjs_factory_name="DashMetrics";var ya=c.Z.getSingletonFactory(ga);function _a(){var e,t,n,r,i=this.context,o=(0,l.Z)(i).getInstance(),c=(0,D.Z)(i).getInstance();function d(e){r=e}function h(e,t,n,r){var i,a=t.adaptation.period.mpd,s=a.availabilityStartTime;if(r)i=n&&a.timeShiftBufferDepth!==Number.POSITIVE_INFINITY?new Date(s.getTime()+1e3*(e+a.timeShiftBufferDepth)):a.availabilityEndTime;else if(n){var o=t.availabilityTimeOffset;i=new Date(s.getTime()+1e3*(e-o))}else i=s;return i}function m(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*r)/1e3}function p(e,t){return e+(t.adaptation.period.start-t.presentationTimeOffset)}function g(e){var n={start:NaN,end:NaN},r=e[0].getAdapter().getRegularPeriods()[0],i=m(new Date,r);if(!e||0===e.length)return{range:n,now:i};e.forEach(function(e){var r=e.getAdapter(),o=r.getMediaInfoForType(e.getStreamInfo(),a.Z.VIDEO)||r.getMediaInfoForType(e.getStreamInfo(),a.Z.AUDIO),l=r.getVoRepresentations(o)[0],u={start:NaN,end:NaN};if(l)if(l.segmentInfoType===s.Z.SEGMENT_TIMELINE)u=function(e){var n,r,i,a,s=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],o=t.getRepresentationFor(e.index,s),l=o.SegmentTemplate||o.SegmentList,u=l.SegmentTimeline,c=l.timescale,d=u.S_asArray,f={start:0,end:0},h=d[0].t,m=!isNaN(h),g=m?h:0,y=0;for(m&&(f.start=p(g/c,e)),i=0,a=d.length;i<a;i++)r=0,(n=d[i]).hasOwnProperty("r")&&(r=n.r),y+=n.d*(1+r);return f.end=p((g+y)/c,e),f}(l);else{var c=l.adaptation.period;u.start=c.start,u.end=Math.max(i,c.start+c.duration)}!isNaN(u.start)&&(isNaN(n.start)||n.start>u.start)&&(n.start=u.start),!isNaN(u.end)&&(isNaN(n.end)||n.end<u.end)&&(n.end=u.end)}),n.end=Math.min(i,n.end);var o=_(e,n.end,!0);return n.end=isNaN(o)?n.end:o,n.start=r&&r.mpd&&r.mpd.timeShiftBufferDepth&&!isNaN(r.mpd.timeShiftBufferDepth)&&!isNaN(n.end)?Math.max(n.end-r.mpd.timeShiftBufferDepth,n.start):n.start,n.start=_(e,n.start),{range:n,now:i}}function y(e,t){n=e-t.end}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{for(var r=0,i=!1,a=NaN;!i&&r<e.length;){var s=e[r].getStreamInfo();s.start<=t&&(!isFinite(s.duration)||s.start+s.duration>=t)?(a=t,i=!0):!n&&s.start>t&&(isNaN(a)||s.start<a)?a=s.start:n&&s.start+s.duration<t&&(isNaN(a)||s.start+s.duration>
vendor: 5,427 bytes, line 2
2a)&&(a=s.start+s.duration),r+=1}return a}catch(e){return t}}function v(e){void 0===e.offset||isNaN(e.offset)||d(e.offset/1e3)}function E(){r=0,n=0}function b(){o.off(u.Z.UPDATE_TIME_SYNC_OFFSET,v,this),E()}return e={initialize:function(){E(),o.on(u.Z.UPDATE_TIME_SYNC_OFFSET,v,this)},getClientTimeOffset:function(){return r},setClientTimeOffset:d,getClientReferenceTime:function(){return Date.now()-1e3*n+1e3*r},calcAvailabilityStartTimeFromPresentationTime:function(e,t,n){return h(e,t,n)},calcAvailabilityEndTimeFromPresentationTime:function(e,t,n){return h(e,t,n,!0)},calcPresentationTimeFromWallTime:m,calcPresentationTimeFromMediaTime:p,calcPeriodRelativeTimeFromMpdRelativeTime:function(e,t){return t-e.adaptation.period.start},calcMediaTimeFromPresentationTime:function(e,t){return e-t.adaptation.period.start+t.presentationTimeOffset},calcWallTimeForSegment:function(e,t){var n,r,i;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,i=new Date(e.availabilityStartTime.getTime()+1e3*r)),i},calcTimeShiftBufferWindow:function(e,t){if(!t)return function(e){var t={start:NaN,end:NaN},n=0,r=NaN;return e.forEach(function(e){var t=e.getStreamInfo();n+=t.duration,(isNaN(r)||t.start<r)&&(r=t.start)}),t.start=r,t.end=r+n,t}(e);if(c.get().streaming.timeShiftBuffer.calcFromSegmentTimeline){var n=g(e);return y(n.now,n.range),n.range}return function(e){var t={start:NaN,end:NaN};if(!e||0===e.length)return t;var n=e[0].getAdapter().getRegularPeriods()[0],r=m(new Date,n),i=n.mpd.timeShiftBufferDepth,a=isNaN(i)?0:r-i;if(t.start=_(e,a),t.end=!isNaN(t.start)&&r<t.start?r:_(e,r,!0),!isNaN(i)&&t.end<r-i&&(t.end=NaN),c.get().streaming.timeShiftBuffer.fallbackToSegmentTimeline){var s=g(e);if(s.range.end<t.start)return o.trigger(f.Z.CONFORMANCE_VIOLATION,{level:sn.LEVELS.WARNING,event:sn.EVENTS.INVALID_DVR_WINDOW}),y(s.now,s.range),s.range}return t}(e)},reset:b},t=He(i).getInstance(),b(),e}_a.__dashjs_factory_name="TimelineConverter";var va=c.Z.getSingletonFactory(_a),Ea=n(4593),ba=n(6934);function Ta(e){return Ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(e)}function Sa(e,t){return Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sa(e,t)}function wa(e,t){return!t||"object"!==Ta(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},La(e)}var Aa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sa(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=La(t);if(n){var i=La(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return wa(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=r.call(this)).captionData=null,e.label=null,e.defaultTrack=!1,e.kind=null,e.isFragmented=!1,e.isEmbedded=!1,e.isTTML=null,e}return i}(Gi),Ma=n(2295);function Da(){var e=0;function t(e){for(var t="",n=0;n<e.length;++n)t+=e[n].uchar;return t.length-t.replace(/^\s+/,"").length}function n(e){return"left: "+3.125*e.x+"%; top: "+6.66*e.y1+"%; width: "+(100-3.125*e.x)+"%; height: "+6.66*Math.max(e.y2-1-e.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;"}function r(e){return"red"===e?"rgb(255, 0, 0)":"green"===e?"rgb(0, 255, 0)":"blue"===e?"rgb(0, 0, 255)":"cyan"===e?"rgb(0, 255, 255)":"magenta"===e?"rgb(255, 0, 255)":"yellow"===e?"rgb(255, 255, 0)":"white"===e?"rgb(255, 255, 255)":"black"===e?"rgb(0, 0, 0)":e}function i(e,t){var n=e.videoHeight/15;return t?"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(t.foreground?r(t.foreground):"rgb(255, 255, 255)")+"; font-style: "+(t.italics?"italic":"normal")+"; text-decoration: "+(t.underline?"underline":"none")+"; white-space: pre; background-color: "+(t.background?r(t.background):"transparent")+";":"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}function a(e){return e.replace(/^\s+/g,"")}function s(e){return e.replace(/\s+$/g,"")}return{createHTMLCaptionsFromScreen:function(r,o,l,u){var c,d,f=null,h=!1,m=-1,p={start:o,end:l,spans:[]},g="style_cea608_white_black",y={},_={},v=[];for(c=0;c<15;++c){var E=u.rows[c],b="",T=null;if(!1===E.isEmpty()){var S=t(E.chars);null===f&&(f={x:S,y1:c,y2:c+1,p:[]}),S!==m&&h&&(f.p.push(p),p={start:o,end:l,spans:[]},f.y2=c,f.name="region_"+f.x+"_"+f.y1+"_"+f.y2,!1===y.hasOwnProperty(f.name)?(v.push(f),y[f.name]=f):y[f.n
vendor: 22,113 bytes, line 2
2ame].p.contat(f.p),f={x:S,y1:c,y2:c+1,p:[]});for(var w=0;w<E.chars.length;++w){var L=E.chars[w],A=L.penState;if(null===T||!A.equals(T)){b.trim().length>0&&(p.spans.push({name:g,line:b,row:c}),b="");var M="style_cea608_"+A.foreground+"_"+A.background;A.underline&&(M+="_underline"),A.italics&&(M+="_italics"),_.hasOwnProperty(M)||(_[M]=JSON.parse(JSON.stringify(A))),T=A,g=M}b+=L.uchar}b.trim().length>0&&p.spans.push({name:g,line:b,row:c}),h=!0,m=S}else h=!1,m=-1,f&&(f.p.push(p),p={start:o,end:l,spans:[]},f.y2=c,f.name="region_"+f.x+"_"+f.y1+"_"+f.y2,!1===y.hasOwnProperty(f.name)?(v.push(f),y[f.name]=f):y[f.name].p.contat(f.p),f=null)}f&&(f.p.push(p),f.y2=c+1,f.name="region_"+f.x+"_"+f.y1+"_"+f.y2,!1===y.hasOwnProperty(f.name)?(v.push(f),y[f.name]=f):y[f.name].p.contat(f.p),f=null);var D=[];for(c=0;c<v.length;++c){var k=v[c],I="sub_cea608_"+e++,R=document.createElement("div");R.id=I;var C=n(k);R.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+C;var P=document.createElement("div");P.className="paragraph bodyStyle",P.style.cssText=i(r);var O=document.createElement("div");O.className="cueUniWrapper",O.style.cssText="unicode-bidi: normal; direction: ltr;";for(var x=0;x<k.p.length;++x){var N=k.p[x],F=0;for(d=0;d<N.spans.length;++d){var Y=N.spans[d];if(Y.line.length>0){if(0!==d&&F!=Y.row){var U=document.createElement("br");U.className="lineBreak",O.appendChild(U)}var B=!1;F===Y.row&&(B=!0),F=Y.row;var j=_[Y.name],H=document.createElement("span");H.className="spanPadding "+Y.name+" customSpanColor",H.style.cssText=i(r,j),0!==d&&B?d===N.spans.length-1?H.textContent=s(Y.line):H.textContent=Y.line:N.spans.length>1&&d<N.spans.length-1&&Y.row===N.spans[d+1].row?H.textContent=a(Y.line):H.textContent=Y.line.trim(),O.appendChild(H)}}}P.appendChild(O),R.appendChild(P);var G={bodyStyle:["%",90]};for(var Z in _)_.hasOwnProperty(Z)&&(G[Z]=["%",90]);D.push({type:"html",start:o,end:l,cueHTMLElement:R,cueID:I,cellResolution:[32,15],isFromCEA608:!0,fontSize:G,lineHeight:{},linePadding:{}})}return D}}}Da.__dashjs_factory_name="EmbeddedTextHtmlRender";var ka=c.Z.getSingletonFactory(Da);function Ia(e){var t,n,r,s,o,c,f,h,m,p,g,y,_,v,E,b,S,w=e.errHandler,L=e.manifestModel,A=e.mediaController,D=e.videoModel,I=e.textTracks,R=e.vttParser,C=e.vttCustomRenderingParser,P=e.ttmlParser,O=e.streamInfo,x=e.settings,N=this.context,F=(0,l.Z)(N).getInstance(),Y=!1;function U(){c=null,h=NaN,m=[],p=null,f=!1,o=[],s=null}function B(e){var t=new Aa;for(var n in e)t[n]=e[n];t.labels=e.labels,t.defaultTrack=function(e){var t=!1;return y.length>1&&e.isEmbedded?t=e.id&&e.id===a.Z.CC1:1===y.length?e.id&&"string"==typeof e.id&&"CC"===e.id.substring(0,2)&&(t=!0):0===y.length&&(t=e.index===o[0].index),t}(e),t.isFragmented=e.isFragmented,t.isEmbedded=!!e.isEmbedded,t.isTTML=function(e){return e.codec&&e.codec.search(a.Z.STPP)>=0||e.mimeType&&e.mimeType.search(a.Z.TTML)>=0}(e),t.kind=function(e,t){var n=e.roles&&e.roles.length>0?t[e.roles[0]]:t.caption;return n===t.caption||n===t.subtitle?n:t.caption}(e,{subtitle:"subtitles",caption:"captions"}),I.addTextTrack(t)}function j(e){var t=e.chunk;t.mediaInfo.embeddedCaptions&&G(t.bytes,t)}function H(e){g=e}function G(e,o){var l=o.mediaInfo,u=l.type,d=l.mimeType,m=l.codec||d;m?-1!==l.codec.indexOf("application/mp4")?function(e,i,o){var l;if("InitializationSegment"===i.segmentType)f=!0,h=r.getMediaTimescaleFromMoov(e);else{if(!f)return;(l=r.getSamplesInfo(e).sampleList).length>0&&(p=l[0].cts-i.start*h),o.search(a.Z.STPP)>=0?function(e,r,i){var o,l;for(s=null!==s?s:z(i),o=0;o<r.length;o++){var u=r[o],d=u.cts,f=$(),m=f+d/h,p=m+u.duration/h;t.buffered.add(m,p);var y=new DataView(e,u.offset,u.subSizes[0]),_=ba.Utils.dataViewToString(y,a.Z.UTF8),v=[],E=u.offset+u.subSizes[0];for(l=1;l<u.subSizes.length;l++){var b=new Uint8Array(e,E,u.subSizes[l]),T=String.fromCharCode.apply(null,b);v.push(T),E+=u.subSizes[l]}try{var S=L.getValue().ttmlTimeIsRelative?d/h:0,w=s.parse(_,S,d/h,(d+u.duration)/h,v);I.addCaptions(g,f,w)}catch(e){c.removeExecutedRequestsBeforeTime(),this.remove(),n.error("TTML parser error: "+e.message)}}}(e,l,o):function(e,r){var i,a,s,o=[];for(i=0;i<r.length;i++){var l=r[i];l.cts-=p;var u=$()+l.cts/h,c=u+l.duration/h;t.buffered.add(u,c);var d=e.slice(l.offset,l.offset+l.size),f=ba.parseBuffer(d);for(a=0;a<f.boxes.length;a++){var m=f.boxes[a];if(n.debug("VTT box1: "+m.type),"vtte"!==m.type&&"vttc"===m.type){n.debug("VTT vttc boxes.length = "+m.boxes.length);var y={styles:{}};for(s=0;s<m.boxes.length;s++){var _=m.boxes[s];if(n.debug("VTT box2: "+_.type),"payl"===_.type)y.start=l.cts/h,y.end=(l.cts+l.duration)/h,y.data=_.cue_text;else if("sttg"===_.type&&_.settings&&""!==_.settings)try{var v=_.settings.split(" ");y.styles=R.getCaptionStyles(v)}catch(e){}}y&&y.data&&(o.push(y),n.debug("VTT ".concat(y.start," - ").concat(y.end," : ").concat(y.data)))}}}o.length>0&&I.addCaptions(g,0,o)}(e,l)}}(e,o,m):u===a.Z.VIDEO?function(e,t){var a,s;if(t.segmentType===k.w.INIT_SEGMENT_TYPE)0===_&&(_=r.getMediaTimescaleFromMoov(e));else if(t.segmentType===k.w.MEDIA_SEGMENT_TYPE){if(0===_)return void n.warn("CEA-608: No timescale for embeddedTextTrack yet");var o=(s=r.getSamplesInfo(e)).lastSequenceNumber,l=Math.trunc(t.start),u=Math.trunc(t.end);if(b[0]||b[1]||function(){for(var e,t=0;t<y.length;t++){if(-1===(e=I.getTrackIdxForId(y[t].id)))return void n.warn("CEA-608: data before track is ready.");var r=Z(e);b[t]=new(i().Cea608Parser)(t+1,{newCue:r},null)}}(),_){if(function(e,t,n,r,i){return null!==e&&null!==t&&null!==r&&null!==i&&(t===e?r!==i:t!==e+n)}(v,o,s.numSequences,E,l))for(a=0;a<b.length;a++)b[a]&&b[a].reset();for(var c=function(e,t){if(0===t.length)return null;for(var n={splits:[],fields:[[],[]]},r=new DataView(e),a=0;a<t.length;a++)for(var s=t[a],o=i().findCea608Nalus(r,s.offset,s.size),l=null,u=0,c=0;c<o.length;c++)for(var d=i().extractCea608DataFromRange(r,o[c]),f=0;f<2;f++)if(d[f].length>0){s.cts!==l?u=0:u+=1;var h=$();n.fields[f].push([s.cts+h*_,d[f],u]),l=s.cts}return n.fields.forEach(function(e){e.sort(function(e,t){return e[0]===t[0]?e[2]-t[2]:e[0]-t[0]})}),n}(e,s.sampleList),d=0;d<b.length;d++){var f=c.fields[d],h=b[d];if(h)for(a=0;a<f.length;a++)h.addData(f[a][0]/_,f[a][1])}v=o,E=u}}}(e,o):function(e,n,r){var i,s,o=new DataView(e,0,e.byteLength);s=ba.Utils.dataViewToString(o,a.Z.UTF8);try{i=z(r).parse(s,0),I.addCaptions(I.getCurrentTrackIdx(),0,i),t.buffered&&t.buffered.add(n.start,n.end)}catch(e){w.error(new T.Z(M.TIMED_TEXT_ERROR_ID_PARSE_CODE,M.TIMED_TEXT_ERROR_MESSAGE_PARSE+e.message,s))}}(e,o,m):n.error("No text type defined")}function Z(e){return function(t,n,r){var i;(i=D.getTTMLRenderingDiv()?S.createHTMLCaptionsFromScreen(D.getElement(),t,n,r):[{start:t,end:n,data:r.getDisplayText(),styles:{}}])&&I.addCaptions(e,0,i)}}function $(){return isNaN(t.timestampOffset)?0:t.timestampOffset}function z(e){var t;return e.search(a.Z.VTT)>=0?t=x.get().streaming.text.webvtt.customRenderingEnabled&&C?C:R:(e.search(a.Z.TTML)>=0||e.search(a.Z.STPP)>=0)&&(t=P),t}function q(e){y.forEach(function(t){var n=I.getTrackIdxForId(t.id);n>=0&&I.deleteCuesFromTrackIdx(n,e.from,e.to)})}return t={initialize:function(){Y||(y=[],g=null,_=0,b=[],v=null,E=null,Y=!0,S=ka(N).getInstance(),F.on(u.Z.VIDEO_CHUNK_RECEIVED,j,t),F.on(u.Z.BUFFER_CLEARED,q,t))},addMediaInfos:function(e,n,r){if(o=o.concat(n),e===a.Z.TEXT&&n[0].isFragmented&&!n[0].isEmbedded){c=r,t.buffered=(0,Ma.Z)(N).create(),m=A.getTracksFor(a.Z.TEXT,O.id).filter(function(e){return e.isFragmented});for(var i=A.getCurrentTrackFor(a.Z.TEXT,O.id),s=0;s<m.length;s++)if(m[s]===i){H(s);break}}for(var l=0;l<n.length;l++)B(n[l])},resetMediaInfos:function(){o=[]},getStreamId:function(){return O.id},append:G,abort:function(){},addEmbeddedTrack:function(e){if(Y&&e)if(e.id===a.Z.CC1||e.id===a.Z.CC3){for(var t=0;t<y.length;t++)if(y[t].id===e.id)return;y.push(e)}else n.warn("Embedded track "+e.id+" not supported!")},resetEmbedded:function(){F.off(u.Z.VIDEO_CHUNK_RECEIVED,j,t),F.off(u.Z.BUFFER_CLEARED,q,t),I&&I.deleteAllTextTracks(),Y=!1,y=[],b=[null,null],v=null,E=null},getConfig:function(){return{fragmentModel:c,fragmentedTracks:m,videoModel:D}},setCurrentFragmentedTrackIdx:H,remove:function(e,n){void 0===e&&e===n&&(e=t.buffered.start(0),n=t.buffered.end(t.buffered.length-1)),t.buffered.remove(e,n),I.deleteCuesFromTrackIdx(g,e,n)},reset:function(){U(),o=[],r=null}},n=(0,d.Z)(N).getInstance().getLogger(t),r=(0,Yt.Z)(N).getInstance(),U(),t}Ia.__dashjs_factory_name="TextSourceBuffer";var Ra=c.Z.getClassFactory(Ia),Ca=n(4403);function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oa=["text","align","fontSize","id","isd","line","lineAlign","lineHeight","linePadding","position","positionAlign","region","size","snapToLines","vertical"];function xa(e){var t,n,r,i,s,o,c,h,m,p,g,y,_,v,E,b,T,S,w,L,A=this.context,M=(0,l.Z)(A).getInstance(),D=e.videoModel,k=e.streamInfo,I=e.settings;function R(e,t,n,r,i,a){var s=0,o=0;e/t>n/r?s=(o=t)/r*n:o=(s=e)/n*r;var l,u,c=0,d=0;return s/o>i?(d=o,c=o*i):(c=s,d=s/i),l=(e-c)/2,u=(t-d)/2,a?{x:l+.1*c,y:u+.1*d,w:.8*c,h:.8*d}:{x:l,y:u,w:c,h:d}}function C(e,t){var n=D.getClientWidth(),r=D.getClientHeight(),i=D.getVideoWidth(),a=D.getVideoHeight(),s=D.getVideoRelativeOffsetTop(),o=D.getVideoRelativeOffsetLeft();if(0!==i&&0!==a){var l=i/a,u=!1;e.isFromCEA608&&(l=3.5/3,u=!0);var d=R.call(this,n,r,i,a,l,u),y=d.w,_=d.h,b=d.x,S=d.y;if(y!=m||_!=p||b!=c||S!=h||t){if(c=b+o,h=S+s,m=y,p=_,g){var w=g.style;w&&(w.left=c+"px",w.top=h+"px",w.width=m+"px",w.height=p+"px",w.zIndex=v&&document[v]||E?T:null,M.trigger(f.Z.CAPTION_CONTAINER_RESIZE))}var L=e.activeCues;if(L)for(var A=L.length,k=0;k<A;++k){var I=L[k];I.scaleCue(I)}}}}function P(e){var t,n,r,i,a,s=m,o=p;if(e.cellResolution){var l=[s/e.cellResolution[0],o/e.cellResolution[1]];if(e.linePadding)for(t in e.linePadding)if(e.linePadding.hasOwnProperty(t)){n=(e.linePadding[t]*l[0]).toString();for(var u=document.getElementsByClassName("spanPadding"),c=0;c<u.length;c++)u[c].style.cssText=u[c].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n),u[c].style.cssText=u[c].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}if(e.fontSize){for(t in e.fontSize)if(e.fontSize.hasOwnProperty(t)){"%"===e.fontSize[t][0]?r=e.fontSize[t][1]/100:"c"===e.fontSize[t][0]&&(r=e.fontSize[t][1]),n=(r*l[1]).toString(),a="defaultFontSize"!==t?document.getElementsByClassName(t):document.getElementsByClassName("paragraph");for(var d=0;d<a.length;d++)a[d].style.cssText=a[d].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}if(e.lineHeight)for(t in e.lineHeight)if(e.lineHeight.hasOwnProperty(t)){"%"===e.lineHeight[t][0]?i=e.lineHeight[t][1]/100:"c"===e.fontSize[t][0]&&(i=e.lineHeight[t][1]),n=(i*l[1]).toString(),a=document.getElementsByClassName(t);for(var f=0;f<a.length;f++)a[f].style.cssText=a[f].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}}}if(e.isd){var h=document.getElementById(e.cueID);h&&g.removeChild(h),x(e)}}function O(e,t){var n=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/,r=/^#(.*)$/;if(n.test(t)){var i=n.exec(t),a=parseInt(i[4],10)-1;return"data:image/png;base64,"+btoa(e.images[a])}if(r.test(t)){var s=r.exec(t)[1];return"data:image/png;base64,"+e.embeddedImages[s]}return t}function x(e){if(g){ie.call(this);var t=document.createElement("div");g.appendChild(t),b=(0,Ca.renderHTML)(e.isd,t,function(t){return O(e,t)},g.clientHeight,g.clientWidth,I.get().streaming.text.imsc.displayForcedOnlyMode,function(e){n.info("renderCaption :",e)},b,I.get().streaming.text.imsc.enableRollUp),t.id=e.cueID,M.trigger(f.Z.CAPTION_RENDERED,{captionDiv:t,currentTrackIdx:o})}}function N(e,t){return!!t&&t.endTime>=e.startTime}function F(e,t){return!!I.get().streaming.text.extendSegmentedCues&&!!function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];if(JSON.stringify(e[i])!==JSON.stringify(t[i]))return!1}return!0}(t,e,Oa)&&(t.endTime=Math.max(t.endTime,e.endTime),!0)}function Y(e,t){t&&t.forEach(function(t){t.kind&&"image"===t.kind&&(t.src=O(e,t.src)),Y(e,t.contents)})}function U(e,t,r){var i=V(e),s=I.get().streaming.text.dispatchForManualRendering;if(i&&Array.isArray(r)&&0!==r.length)for(var o=0;o<r.length;o++){var l=null,u=r[o];i.cellResolution=u.cellResolution,i.isFromCEA608=u.isFromCEA608,isNaN(u.start)||isNaN(u.end)||(s?l=B(u,t):$(u)&&g?l=G(u,t,i):u.data&&(l=Z(u,t,i)));try{if(l){if(!Q(i,l))if(I.get().streaming.text.webvtt.customRenderingEnabled)i.manualCueList||(i.manualCueList=[]),i.manualCueList.push(l);else{var c=void 0;i.cues&&0!==i.cues.length&&(c=i.cues[i.cues.length-1]),N(l,c)?F(l,c)||(c.isd&&(c.onexit=function(){}),i.mode!==a.Z.TEXT_DISABLED&&i.addCue(l)):i.mode!==a.Z.TEXT_DISABLED&&i.addCue(l)}var d=I.get().streaming.buffer.bufferToKeep;ee(i,0,D.getTime()-d)}else n.error("Impossible to display subtitles. You might have missed setting a TTML rendering div via player.attachTTMLRenderingDiv(TTMLRenderingDiv)")}catch(e){throw te(i),i.addCue(l),e}}}function B(e,t){var n=z(e,t);return n.onenter=function(){$(e)&&L&&L.cueID!==n.cueID&&H(L),delete n.type,L=n,j(n)},n.onexit=function(){H(n),L=null},n}function j(e){M.trigger(f.Z.CUE_ENTER,e)}function H(e){M.trigger(f.Z.CUE_EXIT,{cueID:e.cueID})}function G(e,t,r){var i=this,s=z(e,t);return g.style.left=c+"px",g.style.top=h+"px",g.style.width=m+"px",g.style.height=p+"px",s.onenter=function(){var e=this;r.mode===a.Z.TEXT_SHOWING&&(this.isd?(w?requestAnimationFrame(function(){return x(e)}):x(this),n.debug("Cue enter id:"+this.cueID)):(g.appendChild(this.cueHTMLElement),P.call(i,this),M.trigger(f.Z.CAPTION_RENDERED,{captionDiv:this.cueHTMLElement,currentTrackIdx:o})))},s.onexit=function(){if(g)for(var e=g.childNodes,t=0;t<e.length;++t)e[t].id===this.cueID&&(n.debug("Cue exit id:"+e[t].id),g.removeChild(e[t]),--t)},s}function Z(e,t,r){var i=z(e,t);if(i.isActive=!1,e.styles)try{void 0!==e.styles.align&&"align"in i&&(i.align=e.styles.align),void 0!==e.styles.line&&"line"in i&&(i.line=e.styles.line),void 0!==e.styles.snapToLines&&"snapToLines"in i&&(i.snapToLines=e.styles.snapToLines),void 0!==e.styles.position&&"position"in i&&(i.position=e.styles.position),void 0!==e.styles.size&&"size"in i&&(i.size=e.styles.size)}catch(e){n.error(e)}return i.onenter=function(){r.mode===a.Z.TEXT_SHOWING&&M.trigger(f.Z.CAPTION_RENDERED,{currentTrackIdx:o})},i}function $(e){return"html"===e.type}function z(e,t){return $(e)?function(e,t){var n=new r(e.start+t,e.end+t,"");return n.cueHTMLElement=e.cueHTMLElement,n.isd=e.isd,n.images=e.images,n.embeddedImages=e.embeddedImages,n.cueID=e.cueID,n.scaleCue=P.bind(self),n.cellResolution=e.cellResolution,n.lineHeight=e.lineHeight,n.linePadding=e.linePadding,n.fontSize=e.fontSize,n.isd&&Y(n,n.isd.contents),n}(e,t):function(e,t){var n=new r(e.start-t,e.end-t,e.data);return n.cueID="".concat(n.startTime,"_").concat(n.endTime),n}(e,t)}function q(e){if(y)for(var t=y.childNodes,n=0;n<t.length;++n)t[n].id===e.cueID&&(y.removeChild(t[n]),--n)}function W(){var e,t=[],n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(D.getTextTracks());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.manualMode===a.Z.TEXT_SHOWING&&t.push(r)}}catch(e){n.e(e)}finally{n.f()}return t}function V(e){return e>=0&&i[e]?D.getTextTrack(i[e].kind,i[e].id,i[e].lang,i[e].isTTML,i[e].isEmbedded):null}function K(e){var t=this;if(e!==o){var n=V(o=e);X.call(this,n),_&&(clearInterval(_),_=null),n&&"html"===n.renderingType&&(C.call(this,n,!0),window.ResizeObserver?(S=new window.ResizeObserver(function(){C.call(t,n,!0)})).observe(D.getElement()):_=setInterval(C.bind(this,n),500))}}function X(e){ie.call(this),e&&"html"===e.renderingType?ne.call(this):re.call(this)}function Q(e,t){if(!e.cues)return!1;for(var n=0;n<e.cues.length;n++)if(e.cues[n].startTime===t.startTime&&e.cues[n].endTime===t.endTime)return!0;return!1}function J(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!e&&(isNaN(t)||(r?e.startTime:e.endTime)>=t)&&(isNaN(n)||(r?e.endTime:e.startTime)<=n)}function ee(e,t,n){var r,i;if(!(n<t)&&e&&(e.cues||e.manualCueList)){var a=e.cues&&e.cues.length>0?"native":"custom",s="native"===a?e.cues:e.manualCueList;if(!s||0===s.length)return;for(var o=s.length-1;o>=0;o--)!J(s[o],t,n,!0)||(r=s[o],i=D.getTime(),r.startTime>=i&&r.endTime<=i)||("native"===a?e.removeCue(s[o]):(q(s[o]),delete e.manualCueList[o]))}}function te(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e&&(e.cues||e.manualCueList)){var i=e.cues&&e.cues.length>0?"native":"custom",a="native"===i?e.cues:e.manualCueList;if(!a||0===a.length)return;for(var s=a.length-1;s>=0;s--)J(a[s],t,n,r)&&("native"===i?(a[s].onexit&&a[s].onexit(),e.removeCue(a[s])):(q(a[s]),delete e.manualCueList[s]))}}function ne(){var e=document.getElementById("native-cue-style");if(!e){(e=document.createElement("style")).id="native-cue-style",document.head.appendChild(e);var t=e.sheet,r=D.getElement();try{r&&(r.id?t.insertRule("#"+r.id+"::cue {background: transparent}",0):0!==r.classList.length?t.insertRule("."+r.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0))}catch(e){n.info(""+e.message)}}}function re(){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}function ie(){if(g)for(;g.firstChild;)g.removeChild(g.firstChild)}return t={initialize:function(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(r=window.VTTCue||window.TextTrackCue,i=[],s=[],o=-1,c=0,h=0,m=0,p=0,g=null,y=null,_=null,E=!1,T=2147483647,b=null,w="requestAnimationFrame"in window,void 0!==document.fullscreenElement?v="fullscreenElement":void 0!==document.webkitIsFullScreen?v="webkitIsFullScreen":document.msFullscreenElement?v="msFullscreenElement":document.mozFullScreen&&(v="mozFullScreen"))},getStreamId:function(){return k.id},addTextTrack:function(e){i.push(e)},addCaptions:U,createTracks:function(){var e=I.get().streaming.text.dispatchForManualRendering;i.sort(function(e,t){return e.index-t.index}),g=D.getTTMLRenderingDiv(),y=D.getVttRenderingDiv();for(var t,n,r,l,c,d,h=-1,m=0;m<i.length;m++){var p=(n=(t=i[m]).kind,r=void 0!==t.id?t.id:t.lang,l=t.lang,c=t.isTTML,d=t.isEmbedded,D.addTextTrack(n,r,l,c,d));s.push(p),i[m].defaultTrack&&(p.default=!0,h=m);var _=V(m);_&&(_.mode=a.Z.TEXT_SHOWING,g&&(i[m].isTTML||i[m].isEmbedded)?_.renderingType="html":_.renderingType="default"),U(m,0,i[m].captionData),M.trigger(f.Z.TEXT_TRACK_ADDED)}if(K.call(this,h),h>=0){M.on(f.Z.PLAYBACK_METADATA_LOADED,function e(){var t=V(h);t&&"html"===t.renderingType&&C.call(this,t,!0),M.off(f.Z.PLAYBACK_METADATA_LOADED,e,this)},this);for(var v=0;v<i.length;v++){var E=V(v);E&&(E.mode=v!==h||e?a.Z.TEXT_HIDDEN:a.Z.TEXT_SHOWING,E.manualMode=v===h?a.Z.TEXT_SHOWING:a.Z.TEXT_HIDDEN)}}M.trigger(u.Z.TEXT_TRACKS_QUEUE_INITIALIZED,{index:o,tracks:i,streamId:k.id})},getCurrentTrackIdx:function(){return o},setCurrentTrackIdx:K,getTrackIdxForId:function(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].id===e){t=n;break}return t},getCurrentTrackInfo:function(){return i[o]},setModeForTrackIdx:function(e,t){var n=V(e);n&&n.mode!==t&&(n.mode=t),n&&n.manualMode!==t&&(n.manualMode=t)},deleteCuesFromTrackIdx:function(e,t,n){var r=V(e);r&&te(r,t,n)},deleteAllTextTracks:function(){for(var e=s?s.length:0,t=0;t<e;t++){var n=V(t);n&&te.call(this,n,k.start,k.start+k.duration,!1)}s=[],i=[],_&&(clearInterval(_),_=null),S&&D&&(S.unobserve(D.getElement()),S=null),o=-1,ie.call(this)},manualCueProcessing:function(e){var t=W();if(t&&t.length>0){var n=t[0].manualCueList;n&&n.length>0&&n.forEach(function(t){t.startTime<=e&&t.endTime>=e&&!t.isActive?(t.isActive=!0,I.get().streaming.text.dispatchForManualRendering?j(t):WebVTT.processCues(window,[t],y,t.cueID)):t.isActive&&(t.startTime>e||t.endTime<e)&&(t.isActive=!1,I.get().streaming.text.dispatchForManualRendering?H(t):q(t))})}},disableManualTracks:function(){var e=W();if(e&&e.length>0){var t=e[0].manualCueList;t&&t.length>0&&t.forEach(function(e){if(e.isActive)if(e.isActive=!1,I.get().streaming.text.dispatchForManualRendering)H(e);else if(y)for(var t=y.childNodes,n=0;n<t.length;++n)t[n].id===e.cueID&&(y.removeChild(t[n]),--n)})}}},n=(0,d.Z)(A).getInstance().getLogger(t),t}xa.__dashjs_factory_name="TextTracks";var Na=c.Z.getClassFactory(xa);function Fa(){var e,t,n,r,i,a,s=this.context;function o(e){var t=e.split(":"),n=t.length-1;return e=60*parseInt(t[n-1],10)+parseFloat(t[n]),2===n&&(e+=3600*parseInt(t[0],10)),e}function l(e){var t=e.split(r),n=t[1].split(a);return n.shift(),t[1]=n[0],n.shift(),{cuePoints:t,styles:u(n)}}function u(e){var t={};return e.forEach(function(e){if(e.split(/:/).length>1){var n=e.split(/:/)[1],r=!1;n&&-1!=n.search(/%/)&&(r=!0,n=parseInt(n.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(t.align=n),(e.match(/line/)||e.match(/L/))&&(t.line="auto"===n?n:parseInt(n,10),r&&(t.snapToLines=!1)),(e.match(/position/)||e.match(/P/))&&(t.position=n),(e.match(/size/)||e.match(/S/))&&(t.size=n)}}),t}function c(e,t){for(var n,i=t,a="",s="";""!==e[i]&&i<e.length;)i++;if((n=i-t)>1)for(var o=0;o<n;o++){if((s=e[t+o]).match(r)){a="";break}a+=s,o!==n-1&&(a+="\n")}else(s=e[t]).match(r)||(a=s);return a}return e={parse:function(e){var a,s,u=[];
2if(!e)return u;a=(e=e.split(n)).length,s=-1;for(var d=0;d<a;d++){var f=e[d];if(f.length>0&&"WEBVTT"!==f&&f.match(r)){var h=l(f),m=h.cuePoints,p=h.styles,g=c(e,d+1),y=o(m[0].replace(i,"")),_=o(m[1].replace(i,""));!isNaN(y)&&!isNaN(_)&&y>=s&&_>y?""!==g?(s=y,u.push({start:y,end:_,data:g,styles:p})):t.error("Skipping cue due to empty/malformed cue text"):t.error("Skipping cue due to incorrect cue timing")}}return u},getCaptionStyles:u},t=(0,d.Z)(s).getInstance().getLogger(e),n=/(?:\r\n|\r|\n)/gm,r=/-->/,i=/(^[\s]+|[\s]+$)/g,a=/\s\b/g,e}Fa.__dashjs_factory_name="VTTParser";var Ya=c.Z.getSingletonFactory(Fa);function Ua(){var e,t;return e={parse:function(e){var n=[];return t.oncue=function(e){e.start=e.startTime,e.end=e.endTime,e.data=e.text,e.styles={align:e.align,line:e.line,position:e.position,size:e.size},n.push(e)},t.parse(e),n}},function(){try{window&&window.WebVTT&&window.WebVTT.Parser&&(t=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()))}catch(e){}}(),e}Ua.__dashjs_factory_name="VttCustomRenderingParser";var Ba=c.Z.getSingletonFactory(Ua);function ja(){var e,t,n=this.context,r=(0,l.Z)(n).getInstance(),i=0;return e={parse:function(e,n,a,s,o){var l,c,d,h="",m=[],p={},g={},y="",_="",v={onOpenTag:function(e,n,i){if(i[" imagetype"]&&!i[" imageType"]&&(r.trigger(f.Z.CONFORMANCE_VIOLATION,{level:sn.LEVELS.ERROR,event:sn.EVENTS.NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE}),i[" imageType"]=i[" imagetype"]),"image"===n&&("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===e||"http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"===e)){if(!i[" imageType"]||"PNG"!==i[" imageType"].value)return void t.warn("smpte-tt imageType != PNG. Discarded");y=i["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){y&&(g[y]=_.trim()),_="",y=""},onText:function(e){y&&(_+=e)}};if(!e)throw h="no ttml data to parse",new Error(h);p.data=e,r.trigger(u.Z.TTML_TO_PARSE,p);var E=(0,Ca.fromXML)(p.data,function(e){h=e},v);r.trigger(u.Z.TTML_PARSED,{ttmlString:p.data,ttmlDoc:E});var b,T=E.getMediaTimeEvents();for(d=0;d<T.length;d++){var S=(0,Ca.generateISD)(E,T[d],function(e){h=e});S.contents.some(function(e){return e.contents.length})&&(l=T[d]+n)<(c=T[d+1]+n)&&m.push({start:l,end:c,type:"html",cueID:(b="cue_TTML_"+i,i++,b),isd:S,images:o,embeddedImages:g})}if(""!==h)throw t.error(h),new Error(h);return m}},t=(0,d.Z)(n).getInstance().getLogger(e),e}ja.__dashjs_factory_name="TTMLParser";var Ha=c.Z.getSingletonFactory(ja);function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach(function(t){$a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qa(e){var t,n,r,i=this.context,s=(0,l.Z)(i).getInstance(),o=(0,X.Z)(i).getInstance(),u=e.adapter,c=e.baseURLController;function h(e,t){var n,i,s=!1;if(c.resolve()){var l=u.getVoRepresentations(e);l&&l.length>0&&(n=c.resolve(l[0].path).url)}var d=e.essentialPropertiesAsArray.filter(function(e){return e.schemeIdUri&&e.schemeIdUri===a.Z.FONT_DOWNLOAD_DVB_SCHEME}),f=e.supplementalPropertiesAsArray.filter(function(e){return e.schemeIdUri&&e.schemeIdUri===a.Z.FONT_DOWNLOAD_DVB_SCHEME});d.length>0?(s=!0,i=d):i=f,i.forEach(function(i){if(function(e){return!(!(e.value&&"1"===e.value&&e.dvbUrl&&e.dvbUrl.length>0&&e.dvbFontFamily&&e.dvbFontFamily.length>0&&e.dvbMimeType)||e.dvbMimeType!==a.Z.OFF_MIMETYPE&&e.dvbMimeType!==a.Z.WOFF_MIMETYPE)}(i)){var l=(u=i.dvbUrl,c=n,o.isPathAbsolute(u)?u:o.isRelative(u)?c?o.resolve(u,c):o.resolve(u):u);r.push({fontFamily:i.dvbFontFamily,url:l,mimeType:i.dvbMimeType,trackId:e.id,streamId:t,isEssential:s,status:"unloaded",fontFace:new FontFace(i.dvbFontFamily,"url(".concat(l,")"),{display:"swap"})})}var u,c})}function m(e,t){var n=r[e];r[e]=Za(Za({},n),{},{status:t})}function p(){r=[]}return t={addFontsFromTracks:function(e,t){if(e&&Array.isArray(e)&&t)for(var n=0;n<e.length;n++)h(e[n],t)},downloadFonts:function(){for(var e=function(e){var t=r[e];document.fonts.add(t.fontFace),s.trigger(f.Z.DVB_FONT_DOWNLOAD_ADDED,t),t.fontFace.load().then(function(){m(e,"loaded"),s.trigger(f.Z.DVB_FONT_DOWNLOAD_COMPLETE,t)},function(r){m(e,"error"),n.debug("Font download error: ",r),s.trigger(f.Z.DVB_FONT_DOWNLOAD_FAILED,t)})},t=0;t<r.length;t++)e(t)},getFonts:function(){return r},getFontsForTrackId:function(e){return r.filter(function(t){return t.trackId&&t.trackId===e})},reset:function(){!function(){var e,t=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?za(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
vendor: 1,956 bytes, line 2
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(r);try{for(t.s();!(e=t.n()).done;){var i=e.value,a=document.fonts.delete(i.fontFace);n.debug("Removal of fontFamily: ".concat(i.fontFamily," was ").concat(a?"successful":"unsuccessful"))}}catch(e){t.e(e)}finally{t.f()}}(),p()}},n=(0,d.Z)(i).getInstance().getLogger(t),p(),t}qa.__dashjs_factory_name="DVBFonts";var Wa=c.Z.getClassFactory(qa);function Va(e){var t,n,r,i,s,o,c,h,m,p,g,y,_,v,E=this.context,b=e.adapter,T=e.errHandler,S=e.manifestModel,w=e.mediaController,L=e.baseURLController,A=e.videoModel,M=e.settings;function D(e){if(v.error("Could not download ".concat(e.isEssential?"an essential":"a"," font - fontFamily: ").concat(e.fontFamily,", url: ").concat(e.url)),e.isEssential){var t=i[e.streamId].getTrackIdxForId(e.trackId);i[e.streamId].setModeForTrackIdx(t,a.Z.TEXT_DISABLED)}}function k(e){if(v.debug("Successfully downloaded ".concat(e.isEssential?"an essential":"a"," font - fontFamily: ").concat(e.fontFamily,", url: ").concat(e.url)),e.isEssential){var t=i[e.streamId].getTrackIdxForId(e.trackId);t===i[e.streamId].getCurrentTrackIdx()?i[e.streamId].setModeForTrackIdx(t,a.Z.TEXT_SHOWING):i[e.streamId].setModeForTrackIdx(t,a.Z.TEXT_HIDDEN)}}function I(e){var t=e.tracks,r=e.index,s=e.streamId;if(!1===M.get().streaming.text.defaultEnabled&&!P()||y)O(s,-1);else{var o=w.getCurrentTrackFor(a.Z.TEXT,s);if(o){var l={lang:o.lang,role:o.roles[0],index:o.index,codec:o.codec,accessibility:o.accessibility[0]};t.some(function(e,t){if(w.matchSettings(l,e))return O(s,t),r=t,!0})}m=!1}n[s].lastEnabledIndex=r,h.trigger(f.Z.TEXT_TRACKS_ADDED,{enabled:P(),index:r,tracks:t,streamId:s}
vendor: 20,457 bytes, line 2
2),g=!0,_.addFontsFromTracks(t,s),_.getFonts().forEach(function(e){if(e.isEssential){var t=i[e.streamId].getTrackIdxForId(e.trackId);i[e.streamId].setModeForTrackIdx(t,a.Z.TEXT_DISABLED)}}),_.downloadFonts()}function R(e){try{var t=e.streamId;if(!i[t]||isNaN(e.time))return;i[t].manualCueProcessing(e.time)}catch(e){}}function C(e){try{var t=e.streamId;if(!i[t])return;i[t].disableManualTracks()}catch(e){}}function P(){var e=!0;return m&&!p&&(e=!1),e}function O(e,t){(m=-1===t)&&w&&w.saveTextSettingsDisabled();var n=x(e);if(n!==t&&i[e]){i[e].disableManualTracks();var s=i[e].getCurrentTrackInfo(),o=s?A.getTextTrack(s.kind,s.id,s.lang,s.isTTML,s.isEmbedded):null;o&&o.mode!==a.Z.TEXT_DISABLED&&i[e].setModeForTrackIdx(n,a.Z.TEXT_HIDDEN),i[e].setCurrentTrackIdx(t),s=i[e].getCurrentTrackInfo();var l=M.get().streaming.text.dispatchForManualRendering;s&&!l&&s.mode!==a.Z.TEXT_DISABLED&&i[e].setModeForTrackIdx(t,a.Z.TEXT_SHOWING),s&&s.isFragmented&&!s.isEmbedded?function(e,t,n){if(r[e])for(var s=r[e].getConfig().fragmentedTracks,o=0;o<s.length;o++){var l=s[o];if(t.lang===l.lang&&(l.id?t.id===l.id:t.index===l.index)){var c=w.getCurrentTrackFor(a.Z.TEXT,e);(l.id?c.id!==l.id:c.index!==l.index)?(i[e].deleteCuesFromTrackIdx(n),r[e].setCurrentFragmentedTrackIdx(o)):-1===n&&h.trigger(u.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,{},{streamId:e,mediaType:a.Z.TEXT})}}}(e,s,n):s&&!s.isFragmented&&function(e,t){h.trigger(u.Z.SET_NON_FRAGMENTED_TEXT,{currentTrackInfo:t},{streamId:e,mediaType:a.Z.TEXT})}(e,s),w.setTrack(s)}}function x(e){return i[e].getCurrentTrackIdx()}function N(){r={},i={},n={},m=!0,g=!1,y=!1}return t={deactivateStream:function(e){if(e){var t=e.id;r[t]&&r[t].resetMediaInfos(),i[t]&&i[t].deleteAllTextTracks()}},initialize:function(){_=Wa(E).create({adapter:b,baseURLController:L}),h.on(u.Z.TEXT_TRACKS_QUEUE_INITIALIZED,I,t),h.on(u.Z.DVB_FONT_DOWNLOAD_FAILED,D,t),h.on(u.Z.DVB_FONT_DOWNLOAD_COMPLETE,k,t),M.get().streaming.text.webvtt.customRenderingEnabled&&(h.on(u.Z.PLAYBACK_TIME_UPDATED,R,t),h.on(u.Z.PLAYBACK_SEEKING,C,t))},initializeForStream:function(e){var t=e.id,a=Na(E).create({videoModel:A,settings:M,streamInfo:e});a.initialize(),i[t]=a;var l=Ra(E).create({errHandler:T,adapter:b,dvbFonts:_,manifestModel:S,mediaController:w,videoModel:A,textTracks:a,vttParser:s,vttCustomRenderingParser:o,ttmlParser:c,streamInfo:e,settings:M});l.initialize(),r[t]=l,n[t]={},n[t].lastEnabledIndex=-1},createTracks:function(e){var t=e.id;i[t]&&i[t].createTracks()},getTextSourceBuffer:function(e){var t=e.id;if(r&&r[t])return r[t]},getAllTracksAreDisabled:function(){return m},addEmbeddedTrack:function(e,t){var n=e.id;r[n]&&r[n].addEmbeddedTrack(t)},enableText:function(e,t){return(0,W.PS)(t,"boolean"),P()!==t&&(t&&O(e,n[e].lastEnabledIndex),t||(n[e].lastEnabledIndex=x(e),g?O(e,-1):y=!0)),!0},isTextEnabled:P,setTextTrack:O,getCurrentTrackIdx:x,enableForcedTextStreaming:function(e){return(0,W.PS)(e,"boolean"),p=e,!0},addMediaInfosToBuffer:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=e.id;r[a]&&r[a].addMediaInfos(t,n,i)},reset:function(){_.reset(),N(),h.off(u.Z.TEXT_TRACKS_QUEUE_INITIALIZED,I,t),h.off(u.Z.DVB_FONT_DOWNLOAD_FAILED,D,t),h.off(u.Z.DVB_FONT_DOWNLOAD_COMPLETE,k,t),M.get().streaming.text.webvtt.customRenderingEnabled&&(h.off(u.Z.PLAYBACK_TIME_UPDATED,R,t),h.off(u.Z.PLAYBACK_SEEKING,C,t)),Object.keys(r).forEach(function(e){r[e].resetEmbedded(),r[e].reset()})}},p=!1,g=!1,y=!1,s=Ya(E).getInstance(),o=Ba(E).getInstance(),c=Ha(E).getInstance(),h=(0,l.Z)(E).getInstance(),v=(0,d.Z)(E).getInstance().getLogger(t),N(),t}Va.__dashjs_factory_name="TextController";var Ka=c.Z.getClassFactory(Va);function Xa(){var e,t,n,r,h,p,g,y,_,v,E,b,S,w,L,A,I,R,C,P,O,x,N,F,Y,U,B,j,H,G,Z,$,z,q,V,Q,J,ee,te,ne="You must first call initialize() and set a source before calling this method",re="You must first call initialize() and set a valid source and view before calling this method",ie="You must first call attachView() to set the video element before calling this method",ae="You must first call attachSource() with a valid source before calling this method",se="MediaPlayer not initialized!",oe=this.context,le=(0,l.Z)(oe).getInstance(),ue=(0,D.Z)(oe).getInstance(),ce=(0,d.Z)(oe).getInstance({settings:ue});function de(){Le(null),Se(null),r=null,w&&(w.reset(),w=null),L&&(L.reset(),L=null),P&&P.reset(),ue.reset(),I&&(I.reset(),I=null)}function fe(){return!!n&&!!Q.getElement()}function he(){return(0,Ci.e)()}function me(){if(!g)throw re;return j.isPaused()}function pe(){if(!g)throw re;return j.getIsDynamic()}function ge(e){var t=Y&&Y.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO,n=$.getCurrentDVRInfo(t);if(!n)return 0;var r=j.getOriginalLiveDelay(),i=n.range.start+e;return i>n.range.end-r&&(i=n.range.end-r),i}function ye(e){if(!g)throw re;var t=Te().currentTime;if(void 0!==e)t=Y.getTimeRelativeToStreamId(t,e);else if(j.getIsDynamic()){var n=Y&&Y.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO,r=$.getCurrentDVRInfo(n);t=null===r||0===t?0:Math.max(0,t-r.range.start)}return t}function _e(){if(!g)throw re;var e=Te().duration;if(j.getIsDynamic()){var t=Y&&Y.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO,n=$.getCurrentDVRInfo(t);e=n?n.range.end-n.range.start:0}return e}function ve(e){(0,W.PS)(e,"boolean"),y=e}function Ee(){P.restoreDefaultUTCTimingSources()}function be(){return $}function Te(){if(!Q.getElement())throw ie;return Q.getElement()}function Se(e){if(!h)throw se;Q.setElement(e),e&&(Ie(),function(){if(!L){var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(oe).create();L=t.createMetricsReporting({debug:ce,eventBus:le,mediaElement:Te(),adapter:R,dashMetrics:$,mediaPlayerModel:C,events:u.Z,constants:a.Z,metricsConstants:o.Z})}}}(),function(){if(!A){var e=dashjs.MssHandler;"function"==typeof e&&(M.extend(e.errors),A=e(oe).create({eventBus:le,mediaPlayerModel:C,dashMetrics:$,manifestModel:z,playbackController:j,streamController:Y,protectionController:w,baseURLController:x,errHandler:O,events:u.Z,constants:a.Z,debug:ce,initSegmentType:k.w.INIT_SEGMENT_TYPE,BASE64:Ea,ISOBoxer:ba,settings:ue}))}}(),Y&&Y.switchToVideoElement(_)),g&&Me(),Pe(_)}function we(e){if(!p)throw ne;var t=Y.getActiveStreamInfo();return t?S.getTracksFor(e,t.id):[]}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;if(!h)throw se;"string"==typeof e&&J.initialize(e),null==t&&(t=NaN),isNaN(t)||(t=Math.max(0,t)),_=t,n=e,(p||g)&&Me(),fe()&&Pe(_)}function Ae(){if(!p)throw ne;var e=Y.getActiveStreamInfo();return e?Y.getStreamById(e.id):null}function Me(){g=!1,p=!1,R.reset(),Y.reset(),B.reset(),Z.reset(),j.reset(),H.reset(),G.reset(),v.reset(),S.reset(),te.reset(),w&&(ue.get().streaming.protection.keepProtectionMediaKeys?w.stop():(w.reset(),w=null,Ie())),U.reset(),q.reset(),V.reset()}function De(){var e=ke();Y||(Y=un(oe).getInstance()),U||(U=Ka(oe).create({errHandler:O,manifestModel:z,adapter:R,mediaController:S,baseURLController:x,videoModel:Q,settings:ue})),F.setConfig({capabilities:N,customParametersModel:P,adapter:R,settings:ue,manifestModel:z,errHandler:O}),Y.setConfig({capabilities:N,capabilitiesFilter:F,manifestLoader:e,manifestModel:z,mediaPlayerModel:C,customParametersModel:P,protectionController:w,textController:U,adapter:R,dashMetrics:$,errHandler:O,timelineConverter:b,videoModel:Q,playbackController:j,serviceDescriptionController:H,contentSteeringController:G,abrController:v,mediaController:S,settings:ue,baseURLController:x,uriFragmentModel:J,segmentBaseController:te}),B.setConfig({settings:ue,playbackController:j,streamController:Y,videoModel:Q,timelineConverter:b,adapter:R}),j.setConfig({streamController:Y,serviceDescriptionController:H,dashMetrics:$,adapter:R,videoModel:Q,timelineConverter:b,settings:ue}),Z.setConfig({streamController:Y,playbackController:j,mediaPlayerModel:C,videoModel:Q,settings:ue}),v.setConfig({streamController:Y,domStorage:ee,mediaPlayerModel:C,customParametersModel:P,cmsdModel:V,dashMetrics:$,adapter:R,videoModel:Q,settings:ue}),q.setConfig({abrController:v,dashMetrics:$,playbackController:j}),V.setConfig({}),v.initialize(),Y.initialize(y,r),U.initialize(),B.initialize(),Z.initialize(),q.initialize(),V.initialize(),G.initialize(),te.initialize()}function ke(){return Wr(oe).create({debug:ce,errHandler:O,dashMetrics:$,mediaPlayerModel:C,requestModifier:(0,K.Z)(oe).getInstance(),mssHandler:A,settings:ue})}function Ie(){if(w)return w;var e=dashjs.Protection;if("function"==typeof e){var t=e(oe).create();return u.Z.extend(e.events),f.Z.extend(e.events,{publicOnly:!0}),M.extend(e.errors),N||(N=(0,Xr.Z)(oe).getInstance()),w=t.createProtectionSystem({debug:ce,errHandler:O,videoModel:Q,customParametersModel:P,capabilities:N,eventBus:le,events:u.Z,BASE64:Ea,constants:a.Z,cmcdModel:q,settings:ue})}return null}function Re(){if(!h)throw se;if(I)return I;var e=dashjs.OfflineController;if("function"==typeof e){u.Z.extend(e.events),f.Z.extend(e.events,{publicOnly:!0}),M.extend(e.errors);var t=ke(),n=Xt(oe).create();return n.setConfig({manifestModel:z,adapter:R,manifestLoader:t,errHandler:O,contentSteeringController:G}),I=e(oe).create({debug:ce,manifestUpdater:n,baseURLController:x,manifestLoader:t,manifestModel:z,mediaPlayerModel:C,abrController:v,playbackController:j,adapter:R,errHandler:O,dashMetrics:$,timelineConverter:b,segmentBaseController:te,schemeLoaderFactory:E,eventBus:le,events:u.Z,errors:M,constants:a.Z,settings:ue,dashConstants:s.Z,urlUtils:(0,X.Z)(oe).getInstance()})}return null}function Ce(e){var t=Y&&Y.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO,n=$.getCurrentDVRInfo(t);return n?e+(n.manifestInfo.availableFrom.getTime()/1e3+n.range.start):0}function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN;I&&I.resetRecords(),!p&&n&&(p=!0,t.info("Streaming Initialized"),De(),"string"==typeof n?Y.load(n,e):Y.loadWithManifest(n,e)),!g&&fe()&&(g=!0,t.info("Playback Initialized"))}return e={initialize:function(e,n,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:NaN;N||(N=(0,Xr.Z)(oe).getInstance()).setConfig({settings:ue}),O||(O=Kr(oe).getInstance()),N.supportsMediaSource()?(h||(h=!0,b=va(oe).getInstance(),v||(v=Ei(oe).getInstance()).setConfig({settings:ue}),E||(E=Et(oe).getInstance()),j||(j=m(oe).getInstance()),S||(S=wn(oe).getInstance()),Y||(Y=un(oe).getInstance()),B||(B=dn(oe).getInstance()),Z||(Z=hn(oe).getInstance()),H||(H=_n(oe).getInstance()),G||(G=qt(oe).getInstance()),F||(F=Jr(oe).getInstance()),R=Ji(oe).getInstance(),z=ii(oe).getInstance(),q=qe(oe).getInstance(),V=ft(oe).getInstance(),$=ya(oe).getInstance({settings:ue}),ee=Ri(oe).getInstance({settings:ue}),R.setConfig({constants:a.Z,cea608parser:i(),errHandler:O,BASE64:Ea}),x||(x=Yn(oe).create()),x.setConfig({adapter:R,contentSteeringController:G}),H.setConfig({adapter:R}),te||(te=ji(oe).getInstance({dashMetrics:$,mediaPlayerModel:C,errHandler:O,baseURLController:x,events:u.Z,eventBus:le,debug:ce,boxParser:(0,Yt.Z)(oe).getInstance(),requestModifier:(0,K.Z)(oe).getInstance(),errors:M})),S.setConfig({domStorage:ee,settings:ue,customParametersModel:P}),C.setConfig({playbackController:j,serviceDescriptionController:H}),G.setConfig({adapter:R,errHandler:O,dashMetrics:$,mediaPlayerModel:C,manifestModel:z,serviceDescriptionController:H,eventBus:le,requestModifier:(0,K.Z)(oe).getInstance()}),Ee(),ve(void 0===r||r),Re()),e&&Se(e),n&&Le(n,s),t.info("[dash.js "+he()+"] MediaPlayer has been initialized")):O.error(new T.Z(M.CAPABILITY_MEDIASOURCE_ERROR_CODE,M.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE))},setConfig:function(e){e&&(e.capabilities&&(N=e.capabilities),e.capabilitiesFilter&&(F=e.capabilitiesFilter),e.streamController&&(Y=e.streamController),e.textController&&(U=e.textController),e.gapController&&(B=e.gapController),e.playbackController&&(j=e.playbackController),e.serviceDescriptionController&&(H=e.serviceDescriptionController),e.contentSteeringController&&(G=e.contentSteeringController),e.catchupController&&(Z=e.catchupController),e.mediaPlayerModel&&(C=e.mediaPlayerModel),e.customParametersModel&&(P=e.customParametersModel),e.abrController&&(v=e.abrController),e.schemeLoaderFactory&&(E=e.schemeLoaderFactory),e.mediaController&&(S=e.mediaController),e.settings&&(ue=e.settings))},on:function(e,t,n,r){le.on(e,t,n,r)},off:function(e,t,n){le.off(e,t,n)},extend:function(e,t,n){c.Z.extend(e,t,n,oe)},attachView:Se,attachSource:Le,refreshManifest:function(e){if(!h)throw se;if(!fe())return e(null,ae);var t=this;"function"==typeof e&&le.on(u.Z.INTERNAL_MANIFEST_LOADED,function n(r){le.off(u.Z.INTERNAL_MANIFEST_LOADED,n,t),r.error?e(null,r.error):e(r.manifest)},t),Y.refreshManifest()},isReady:fe,preload:function(){if(!Q.getElement()&&!p){if(!n)throw ae;Pe(_)}},play:function(){if(!g)throw re;(!y||me()&&g)&&j.play(!0)},isPaused:me,pause:function(){if(!g)throw re;j.pause()},isSeeking:function(){if(!g)throw re;return j.isSeeking()},isDynamic:pe,getLowLatencyModeEnabled:function(){if(!g)throw re;return j.getLowLatencyModeEnabled()},seek:function(e){if(!g)throw re;if((0,W.PS)(e,"number"),isNaN(e))throw a.Z.BAD_ARGUMENT_ERROR;e<0&&(e=0);var t=j.getIsDynamic()?ge(e):e,n=Te();!j.getIsDynamic()&&n.duration&&(t=Math.min(n.duration,t)),j.seek(t,!1,!1,!0)},seekToOriginalLive:function(){g&&pe()&&j.seekToOriginalLive()},setPlaybackRate:function(e){Te().playbackRate=e},getPlaybackRate:function(){return Te().playbackRate},setMute:function(e){(0,W.PS)(e,"boolean"),Te().muted=e},isMuted:function(){return Te().muted},setVolume:function(e){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw a.Z.BAD_ARGUMENT_ERROR;Te().volume=e},getVolume:function(){return Te().volume},time:ye,duration:_e,timeAsUTC:function(){if(!g)throw re;return ye()<0?NaN:Ce(ye())},durationAsUTC:function(){if(!g)throw re;return Ce(_e())},getActiveStream:Ae,getDVRWindowSize:function(){var e=Y&&Y.hasVideoTrack()?a.Z.VIDEO:a.Z.AUDIO,t=$.getCurrentDVRInfo(e);return t?t.manifestInfo.dvrWindowSize:0},getDVRSeekOffset:ge,getAvailableBaseUrls:function(){var e=z.getValue();return e?x.getBaseUrls(e):[]},getAvailableLocations:function(){var e=z.getValue();if(!e)return[];var t=R.getLocation(e),n=G.getSynthesizedLocationElements(t);return t.concat(n)},getTargetLiveDelay:function(){if(!g)throw re;return j.getOriginalLiveDelay()},convertToTimeCode:function(e){e=Math.max(e,0);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return(0===t?"":t<10?"0"+t.toString()+":":t.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())},formatUTC:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Date(1e3*e),a=i.toLocaleDateString(t),s=i.toLocaleTimeString(t,{hour12:n});return r?s+" "+a:s},getVersion:he,getDebug:function(){return ce},getBufferLength:function(e){var n=[a.Z.VIDEO,a.Z.AUDIO,a.Z.TEXT];if(e)return-1!==n.indexOf(e)?be().getCurrentBufferLevel(e)||NaN:(t.warn("getBufferLength requested for invalid type"),NaN);var r=n.map(function(e){return we(e).length>0?be().getCurrentBufferLevel(e):Number.MAX_VALUE}).reduce(function(e,t){return Math.min(e,t)});return r===Number.MAX_VALUE?NaN:r},getTTMLRenderingDiv:function(){return Q?Q.getTTMLRenderingDiv():null},getVideoElement:Te,getSource:function(){if(!n)throw ae;return n},updateSource:function(e){n=e,Y.load(n)},getCurrentLiveLatency:function(){if(!h)throw se;return g?j.getCurrentLiveLatency():NaN},getTopBitrateInfoFor:function(e){if(!p)throw ne;return v.getTopBitrateInfoFor(e)},setAutoPlay:ve,getAutoPlay:function(){return y},getDashMetrics:be,getQualityFor:function(e){if(!p)throw ne;if(e===a.Z.IMAGE){var t=Ae();if(!t)return-1;var n=t.getThumbnailController();return n?n.getCurrentTrackIndex():-1}return v.getQualityFor(e)},setQualityFor:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!p)throw ne;if(e===a.Z.IMAGE){var r=Ae();if(!r)return;var i=r.getThumbnailController();i&&i.setTrackByIndex(t)}v.setPlaybackQuality(e,Y.getActiveStreamInfo(),t,{forceReplace:n})},updatePortalSize:function(){v.setElementSize(),v.setWindowResizeEventCalled(!0)},enableText:function(e){var t=Y.getActiveStreamInfo();return!(!t||!U)&&U.enableText(t.id,e)},enableForcedTextStreaming:function(e){return!(!Y.getActiveStreamInfo()||!U)&&U.enableForcedTextStreaming(e)},isTextEnabled:function(){var e=Y.getActiveStreamInfo();return!(!e||!U)&&U.isTextEnabled(e)},setTextTrack:function(e){if(!g)throw re;var t=Y.getActiveStreamInfo();t&&U&&U.setTextTrack(t.id,e)},getBitrateInfoListFor:function(e){if(!p)throw ne;var t=Ae();return t?t.getBitrateListFor(e):[]},getStreamsFromManifest:function(e){if(!p)throw ne;return R.getStreamsInfo(e)},getTracksFor:we,getTracksForTypeFromManifest:function(e,t,n){if(!p)throw ne;return(n=n||R.getStreamsInfo(t,1)[0])?R.getAllMediaInfoForType(n,e,t):[]},getCurrentTrackFor:function(e){if(!p)throw ne;var t=Y.getActiveStreamInfo();return S.getCurrentTrackFor(e,t.id)},setInitialMediaSettingsFor:function(e,t){if(!h)throw se;S.setInitialSettings(e,t)},getInitialMediaSettingsFor:function(e){if(!h)throw se;return S.getInitialSettings(e)},setCurrentTrack:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!p)throw ne;S.setTrack(e,t)},addABRCustomRule:function(e,t,n){P.addAbrCustomRule(e,t,n)},removeABRCustomRule:function(e){P.removeAbrCustomRule(e)},removeAllABRCustomRule:function(){P.removeAllAbrCustomRule()},getABRCustomRules:function(){return P.getAbrCustomRules()},getAverageThroughput:function(e){var t=v.getThroughputHistory(),n=j.getIsDynamic();return t?t.getAverageThroughput(e,n):0},retrieveManifest:function(e,t){var n=ke(),r=this;le.on(u.Z.INTERNAL_MANIFEST_LOADED,function e(i){i.error?t(null,i.error):t(i.manifest),le.off(u.Z.INTERNAL_MANIFEST_LOADED,e,r),n.reset()},r),J.initialize(e),n.load(e)},addUTCTimingSource:function(e,t){P.addUTCTimingSource(e,t)},removeUTCTimingSource:function(e,t){P.removeUTCTimingSource(e,t)},clearDefaultUTCTimingSources:function(){P.clearDefaultUTCTimingSources()},restoreDefaultUTCTimingSources:Ee,setXHRWithCredentialsForType:function(e,t){P.setXHRWithCredentialsForType(e,t)},getXHRWithCredentialsForType:function(e){return P.getXHRWithCredentialsForType(e)},getProtectionController:function(){return Ie()},attachProtectionController:function(e){w=e},setProtectionData:function(e){r=e,Y&&Y.setProtectionData(r)},registerLicenseRequestFilter:function(e){P.registerLicenseRequestFilter(e)},registerLicenseResponseFilter:function(e){P.registerLicenseResponseFilter(e)},unregisterLicenseRequestFilter:function(e){P.unregisterLicenseRequestFilter(e)},unregisterLicenseResponseFilter:function(e){P.unregisterLicenseResponseFilter(e)},registerCustomCapabilitiesFilter:function(e){P.registerCustomCapabilitiesFilter(e)},unregisterCustomCapabilitiesFilter:function(e){P.unregisterCustomCapabilitiesFilter(e)},setCustomInitialTrackSelectionFunction:function(e){P.setCustomInitialTrackSelectionFunction(e)},resetCustomInitialTrackSelectionFunction:function(){P.resetCustomInitialTrackSelectionFunction(null)},attachTTMLRenderingDiv:function(e){if(!Q.getElement())throw ie;Q.setTTMLRenderingDiv(e)},attachVttRenderingDiv:function(e){if(!Q.getElement())throw ie;Q.setVttRenderingDiv(e)},getCurrentTextTrackIndex:function(){var e=Y.getActiveStreamInfo();if(e&&U)return U.getCurrentTrackIdx(e.id)},provideThumbnail:function(e,t){if("function"==typeof t)if(e<0)t(null);else{var n=j.getIsDynamic()?ge(e):e,r=Y.getStreamForTime(n);if(null!==r){var i=r.getThumbnailController();if(i)return i.provide(n,t);t(null)}else t(null)}},getDashAdapter:function(){return R},getOfflineController:function(){return Re()},triggerSteeringRequest:function(){if(G)return G.loadSteeringData()},getCurrentSteeringResponseData:function(){if(G)return G.getCurrentSteeringResponseData()},getSettings:function(){return ue.get()},updateSettings:function(e){ue.update(e)},resetSettings:function(){ue.reset()},reset:de,destroy:function(){de(),c.Z.deleteSingletonInstances(oe)}},t=ce.getLogger(e),h=!1,g=!1,p=!1,y=!0,_=NaN,w=null,I=null,r=null,R=null,te=null,u.Z.extend(f.Z),C=oi(oe).getInstance(),P=(0,pt.Z)(oe).getInstance(),Q=Si(oe).getInstance(),J=ni(oe).getInstance(),e}Xa.__dashjs_factory_name="MediaPlayer";var Qa=c.Z.getClassFactory(Xa);Qa.events=f.Z,Qa.errors=M,c.Z.updateClassFactory(Xa.__dashjs_factory_name,Qa);var Ja=Qa},8825:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var o=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(t);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return a(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this)).AST_IN_FUTURE="astInFuture",e.BASE_URLS_UPDATED="baseUrlsUpdated",e.BUFFER_EMPTY="bufferStalled",e.BUFFER_LOADED="bufferLoaded",e.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",e.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",e.DVB_FONT_DOWNLOAD_ADDED="dvbFontDownloadAdded",e.DVB_FONT_DOWNLOAD_COMPLETE="dvbFontDownloadComplete",e.DVB_FONT_DOWNLOAD_FAILED="dvbFontDownloadFailed",e.DYNAMIC_TO_STATIC="dynamicToStatic",e.ERROR="error",e.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",e.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",e.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",e.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",e.LOG="log",e.MANIFEST_LOADING_STARTED="manifestLoadingStarted",e.MANIFEST_LOADING_FINISHED="manifestLoadingFinished",e.MANIFEST_LOADED="manifestLoaded",e.METRICS_CHANGED="metricsChanged",e.METRIC_CHANGED="metricChanged",e.METRIC_ADDED="metricAdded",e.METRIC_UPDATED="metricUpdated",e.PERIOD_SWITCH_STARTED="periodSwitchStarted",e.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",e.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",e.QUALITY_CHANGE_RENDERED="qualityChangeRendered",e.TRACK_CHANGE_RENDERED="trackChangeRendered",e.STREAM_INITIALIZING="streamInitializing",e.STREAM_UPDATED="streamUpdated",e.STREAM_ACTIVATED="streamActivated",e.STREAM_DEACTIVATED="streamDeactivated",e.STREAM_INITIALIZED="streamInitialized",e.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",e.TEXT_TRACKS_ADDED="allTextTracksAdded",e.TEXT_TRACK_ADDED="textTrackAdded",e.CUE_ENTER="cueEnter",e.CUE_EXIT="cueExit",e.THROUGHPUT_MEASUREMENT_STORED="throughputMeasurementStored",e.TTML_PARSED="ttmlParsed",e.TTML_TO_PARSE="ttmlToParse",e.CAPTION_RENDERED="captionRendered",e.CAPTION_CONTAINER_RESIZE="captionContainerResize",e.CAN_PLAY="canPlay",e.CAN_PLAY_THROUGH="canPlayThrough",e.PLAYBACK_ENDED="playbackEnded",e.PLAYBACK_ERROR="playbackError",e.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",e.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",e.PLAYBACK_LOADED_DATA="playbackLoadedData",e.PLAYBACK_PAUSED="playbackPaused",e.PLAYBACK_PLAYING="playbackPlaying",e.PLAYBACK_PROGRESS="playbackProgress",e.PLAYBACK_RATE_CHANGED="playbackRateChanged",e.PLAYBACK_SEEKED="playbackSeeked",e.PLAYBACK_SEEKING="playbackSeeking",e.PLAYBACK_STALLED="playbackStalled",e.PLAYBACK_STARTED="playbackStarted",e.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",e.PLAYBACK_VOLUME_CHANGED="playbackVolumeChanged",e.PLAYBACK_WAITING="playbackWaiting",e.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",e.EVENT_MODE_ON_START="eventModeOnStart",e.EVENT_MODE_ON_RECEIVE="eventModeOnReceive",e.CONFORMANCE_VIOLATION="conformanceViolation",e.REPRESENTATION_SWITCH="representationSwitch",e.ADAPTATION_SET_REMOVED_NO_CAPABILITIES="adaptationSetRemovedNoCapabilities",e.CONTENT_STEERING_REQUEST_COMPLETED="contentSteeringRequestCompleted",e.INBAND_PRFT="inbandPrft",e.MANAGED_MEDIA_SOURCE_START_STREAMING="managedMediaSourceStartStreaming",e.MANAGED_MEDIA_SOURCE_END_STREAMING="managedMediaSourceEndStreaming",e}return o}(n(8342).Z));t.Z=o},3393:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.CONTENT_STEERING="contentSteering",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_L2A="abrL2A",this.ABR_STRATEGY_LoLP="abrLoLP",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA="abrFetchThroughputCalculationDownloadedData",this.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING="abrFetchThroughputCalculationMoofParsing",this.ABR_FETCH_THROUGHPUT_CALCULATION_AAST="abrFetchThroughputCalculationAAST",this.LIVE_CATCHUP_MODE_DEFAULT="liveCatchupModeDefault",this.LIVE_CATCHUP_MODE_LOLP="liveCatchupModeLoLP",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.TRACK_SWITCH_MODE_ALWAYS_REPLACE="alwaysReplace",this.TRACK_SWITCH_MODE_NEVER_REPLACE="neverReplace",this.TRACK_SELECTION_MODE_FIRST_TRACK="firstTrack",this.TRACK_SELECTION_MODE_HIGHEST_BITRATE="highestBitrate",this.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY="highestEfficiency",this.TRACK_SELECTION_MODE_WIDEST_RANGE="widestRange",this.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY="highestSelectionPriority",this.CMCD_MODE_QUERY="query",this.CMCD_MODE_HEADER="header",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.TEXT_DISABLED="disabled",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.SERVICE_DESCRIPTION_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:scope:2019",this.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:critical:2019",this.FONT_DOWNLOAD_DVB_SCHEME="urn:dvb:dash:fontdownload:2014",this.XML="XML",this.ARRAY_BUFFER="ArrayBuffer",this.DVB_REPORTING_URL="dvb:reportingUrl",this.DVB_PROBABILITY="dvb:probability",this.OFF_MIMETYPE="application/font-sfnt",this.WOFF_MIMETYPE="application/font-woff",this.VIDEO_ELEMENT_READY_STATES={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4},this.FILE_LOADER_TYPES={FETCH:"fetch_loader",XHR:"xhr_loader"}}}])&&n(e.prototype,t),e}());t.Z=r},3860:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_LOADED="bufferLoaded",this.ABANDON_LOAD="abandonload",this.ALLOW_LOAD="allowload",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors",this.HTTP_REQUEST_DVB_REPORTING_TYPE="DVBReporting"}}])&&n(e.prototype,t),e}());t.Z=r},8080:function(e,t,n){"use strict";n.d(t,{default:function(){return z}});var r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null};r.SSL_CONNECTION_FAILED_PREFIX="SSL",r.DNS_RESOLUTION_FAILED="C00",r.HOST_UNREACHABLE="C01",r.CONNECTION_REFUSED="C02",r.CONNECTION_ERROR="C03",r.CORRUPT_MEDIA_ISOBMFF="M00",r.CORRUPT_MEDIA_OTHER="M01",r.BASE_URL_CHANGED="F00",r.BECAME_REPORTER="S00";var i=r,a=n(1180);
vendor: 8,006 bytes, line 2
2function s(e){var t,n,r=(e=e||{}).eventBus,s=e.dashMetrics,o=e.metricsConstants,l=e.events;function u(e){var t=new i;if(n){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.mpdurl||(t.mpdurl=n.originalUrl||n.url),t.terror||(t.terror=new Date),s.addDVBErrors(t)}}function c(e){e.error||(n=e.manifest)}function d(e){u({errorcode:i.BASE_URL_CHANGED,servicelocation:e.entry})}function f(){u({errorcode:i.BECAME_REPORTER})}function h(e){var t;e.metric===o.HTTP_REQUEST&&(0===(t=e.value).responsecode||null==t.responsecode||t.responsecode>=400||t.responsecode<100||t.responsecode>=600)&&u({errorcode:t.responsecode||i.CONNECTION_ERROR,url:t.url,terror:t.tresponse,servicelocation:t._serviceLocation})}function m(e){var t;switch(e.error?e.error.code:0){case MediaError.MEDIA_ERR_NETWORK:t=i.CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:t=i.CORRUPT_MEDIA_OTHER;break;default:return}u({errorcode:t})}return t={initialize:function(){r.on(l.MANIFEST_UPDATED,c,t),r.on(l.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,d,t),r.on(l.METRIC_ADDED,h,t),r.on(l.METRIC_UPDATED,h,t),r.on(l.PLAYBACK_ERROR,m,t),r.on(a.Z.BECAME_REPORTING_PLAYER,f,t)},reset:function(){r.off(l.MANIFEST_UPDATED,c,t),r.off(l.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,d,t),r.off(l.METRIC_ADDED,h,t),r.off(l.METRIC_UPDATED,h,t),r.off(l.PLAYBACK_ERROR,m,t),r.off(a.Z.BECAME_REPORTING_PLAYER,f,t)}}}s.__dashjs_factory_name="DVBErrorsTranslator";var o=dashjs.FactoryMaker.getSingletonFactory(s),l=n(2295);function u(e){e=e||{};var t,n,r=!1,i=this.context,a=e.mediaElement;return t={initialize:function(e){e&&e.length&&(e.forEach(function(e){var t=e.starttime,r=t+e.duration;n.add(t,r)}),r=!!e[0]._useWallClockTime)},reset:function(){n.clear()},isEnabled:function(){var e,t=n.length;if(!t)return!0;e=r?(new Date).getTime()/1e3:a.currentTime;for(var i=0;i<t;i+=1){var s=n.start(i),o=n.end(i);if(s<=e&&e<o)return!0}return!1}},n=(0,l.Z)(i).create(),t}u.__dashjs_factory_name="RangeController";var c=dashjs.FactoryMaker.getClassFactory(u);function d(){return{serialise:function e(t){var n,r,i=[],a=[];for(n in t)if(t.hasOwnProperty(n)&&0!==n.indexOf("_")){if(null==(r=t[n])&&(r=""),Array.isArray(r)){if(!r.length)continue;a=[],r.forEach(function(t){var n="Object"!==Object.prototype.toString.call(t).slice(8,-1);a.push(n?t:e(t))}),r=a.map(encodeURIComponent).join(",")}else"string"==typeof r?r=encodeURIComponent(r):r instanceof Date?r=r.toISOString():"number"==typeof r&&(r=Math.round(r));i.push(n+"="+r)}return i.join("&")}}}d.__dashjs_factory_name="MetricSerialiser";var f=dashjs.FactoryMaker.getSingletonFactory(d);function h(){var e,t,n,r=window.crypto||window.msCrypto,i=Uint32Array,a=Math.pow(2,8*i.BYTES_PER_ELEMENT)-1;function s(){r&&(e||(e=new i(10)),r.getRandomValues(e),t=0)}return n={random:function(n,i){var o;return n||(n=0),i||(i=1),r?(t===e.length&&s(),o=e[t]/a,t+=1):o=Math.random(),o*(i-n)+n}},s(),n}h.__dashjs_factory_name="RNG";var m=dashjs.FactoryMaker.getSingletonFactory(h),p=n(5717);function g(e){var t;e=e||{};var n,r,i,a,s,o,l,u=this.context,c=[],d=e.metricsConstants;function h(){a=!1,s=!1,o=null,l=null}return t={report:function(e,t){Array.isArray(t)||(t=[t]),s&&l.isEnabled()&&t.forEach(function(t){var i=n.serialise(t);e!==d.DVB_ERRORS&&(i="metricname=".concat(e,"&").concat(i)),function(e,t,n){var i=new XMLHttpRequest;i.withCredentials=r.getXHRWithCredentialsForType(d.HTTP_REQUEST_DVB_REPORTING_TYPE);var a=function(){var e=c.indexOf(i);-1!==e&&(c.splice(e,1),!(i.status>=200&&i.status<300)&&n&&n())};c.push(i);try{i.open("GET",e),i.onloadend=a,i.onerror=a,i.send()}catch(e){i.onerror()}}(i="".concat(o,"?").concat(i),0,function(){s=!1})})},initialize:function(e,t){var n;if(l=t,!(o=e.dvbReportingUrl))throw new Error("required parameter missing (dvb:reportingUrl)");a||((n=e.dvbProbability)&&(1e3===n||n/1e3>=i.random())&&(s=!0),a=!0)},reset:function(){h()}},n=f(u).getInstance(),i=m(u).getInstance(),r=(0,p.Z)(u).getInstance(),h(),t}g.__dashjs_factory_name="DVBReporting";var y=dashjs.FactoryMaker.getClassFactory(g);function _(e){e=e||{};var t,n={"urn:dvb:dash:reporting:2014":y},r=this.context,i=e.debug?e.debug.getLogger(t):{},a=e.metricsConstants,s=e.mediaPlayerModel||{};return{create:function(e,t){var o;try{(o=n[e.schemeIdUri](r).create({metricsConstants:a,mediaPlayerModel:s})).initialize(e,t)}catch(t){o=null,i.error("ReportingFactory: could not create Reporting with schemeIdUri ".concat(e.schemeIdUri," (").concat(t.message,")"))}return o},register:function(e,t){n[e]=t},unregister:function(e){delete n[e]}}}_.__dashjs_factory_name="ReportingFactory";var v=dashjs.FactoryMaker.getSingletonFactory(_);function E(e){var t=[],n=v(this.context).getInstance(e);return{initialize:function(e,r){e.some(function(e){var i=n.create(e,r);if(i)return t.push(i),!0})},reset:function(){t.forEach(function(e){return e.reset()}),t=[]},report:function(e,n){t.forEach(function(t){return t.report(e,n)})}}}E.__dashjs_factory_name="ReportingController";var b=dashjs.FactoryMaker.getClassFactory(E);function T(){return{reconstructFullMetricName:function(e,t,n){var r=e;return t&&(r+="("+t,n&&n.length&&(r+=","+n),r+=")"),r},validateN:function(e){if(!e)throw new Error("missing n");if(isNaN(e))throw new Error("n is NaN");if(e<0)throw new Error("n must be positive");return e}}}T.__dashjs_factory_name="HandlerHelpers";var S=dashjs.FactoryMaker.getSingletonFactory(T);function w(e){var t,n,r,i,a;e=e||{};var s=this.context,o=S(s).getInstance(),l=[],u=e.metricsConstants;function c(){var e=function(){try{return Object.keys(l).map(function(e){return l[e]}).reduce(function(e,t){return e.level<t.level?e:t})}catch(e){return}}();e&&a!==e.t&&(a=e.t,t.report(r,e))}return{initialize:function(e,a,s){a&&(n=o.validateN(s),t=a,r=o.reconstructFullMetricName(e,s),i=setInterval(c,n))},reset:function(){clearInterval(i),i=null,n=0,t=null,a=null},handleNewMetric:function(e,t,n){e===u.BUFFER_LEVEL&&(l[n]=t)}}}w.__dashjs_factory_name="BufferLevelHandler";var L=dashjs.FactoryMaker.getClassFactory(w),A=dashjs.FactoryMaker.getClassFactory(function(e){var t,n=(e=e||{}).eventBus,r=e.metricsConstants;function i(){n.off(a.Z.METRICS_INITIALISATION_COMPLETE,i,this),n.trigger(a.Z.BECAME_REPORTING_PLAYER)}return{initialize:function(e,r){r&&(t=r,n.on(a.Z.METRICS_INITIALISATION_COMPLETE,i,this))},reset:function(){t=null},handleNewMetric:function(e,n){e===r.DVB_ERRORS&&t&&t.report(e,n)}}});function M(e){var t,n,r,i,a;e=e||{};var s=[],o=S(this.context).getInstance(),l=e.metricsConstants;function u(){var e=s;e.length&&t&&t.report(i,e),s=[]}return{initialize:function(e,s,l,c){s&&(n=o.validateN(l),t=s,c&&c.length&&(r=c),i=o.reconstructFullMetricName(e,l,c),a=setInterval(u,n))},reset:function(){clearInterval(a),a=null,n=null,r=null,s=[],t=null},handleNewMetric:function(e,t){e===l.HTTP_REQUEST&&(r&&r!==t.type||s.push(t))}}}M.__dashjs_factory_name="HttpListHandler";var D=dashjs.FactoryMaker.getClassFactory(M);function k(){var e,t;return{initialize:function(n,r){e=n,t=r},reset:function(){t=null,e=void 0},handleNewMetric:function(n,r){n===e&&t&&t.report(e,r)}}}k.__dashjs_factory_name="GenericMetricHandler";var I=dashjs.FactoryMaker.getClassFactory(k);function R(e){var t,n=(e=e||{}).debug?e.debug.getLogger(t):{},r=/([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/,i=this.context,a={BufferLevel:L,DVBErrors:A,HttpList:D,PlayList:I,RepSwitchList:I,TcpList:I};return{create:function(t,s){var o,l=t.match(r);if(l){try{(o=a[l[1]](i).create({eventBus:e.eventBus,metricsConstants:e.metricsConstants})).initialize(l[1],s,l[3],l[5])}catch(e){o=null,n.error("MetricsHandlerFactory: Could not create handler for type ".concat(l[1]," with args ").concat(l[3],", ").concat(l[5]," (").concat(e.message,")"))}return o}},register:function(e,t){a[e]=t},unregister:function(e){delete a[e]}}}R.__dashjs_factory_name="MetricsHandlerFactory";var C=dashjs.FactoryMaker.getSingletonFactory(R);function P(e){e=e||{};var t,n=[],r=this.context,i=e.eventBus,a=e.events,s=C(r).getInstance({debug:e.debug,eventBus:e.eventBus,metricsConstants:e.metricsConstants});
2function o(e){n.forEach(function(t){t.handleNewMetric(e.metric,e.value,e.mediaType)})}return t={initialize:function(e,r){e.split(",").forEach(function(e,t,i){var a;if(-1!==e.indexOf("(")&&-1===e.indexOf(")")){var o=i[t+1];o&&-1===o.indexOf("(")&&-1!==o.indexOf(")")&&(e+=","+o,delete i[t+1])}(a=s.create(e,r))&&n.push(a)}),i.on(a.METRIC_ADDED,o,t),i.on(a.METRIC_UPDATED,o,t)},reset:function(){i.off(a.METRIC_ADDED,o,t),i.off(a.METRIC_UPDATED,o,t),n.forEach(function(e){return e.reset()}),n=[]}}}P.__dashjs_factory_name="MetricsHandlersController";var O=dashjs.FactoryMaker.getClassFactory(P);function x(e){var t,n,r;e=e||{};var i=this.context;function a(){t&&t.reset(),n&&n.reset(),r&&r.reset()}return{initialize:function(s){try{(r=c(i).create({mediaElement:e.mediaElement})).initialize(s.Range),(n=b(i).create({debug:e.debug,metricsConstants:e.metricsConstants,mediaPlayerModel:e.mediaPlayerModel})).initialize(s.Reporting,r),(t=O(i).create({debug:e.debug,eventBus:e.eventBus,metricsConstants:e.metricsConstants,events:e.events})).initialize(s.metrics,n)}catch(e){throw a(),e}},reset:a}}x.__dashjs_factory_name="MetricsController";var N=dashjs.FactoryMaker.getClassFactory(x),F=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metrics="",this.Range=[],this.Reporting=[]},Y=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.starttime=0,this.duration=1/0,this._useWallClockTime=!1},U=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value="",this.dvbReportingUrl="",this.dvbProbability=1e3};function B(e){var t=(e=e||{}).adapter,n=e.constants;return{getMetrics:function(e){var r=[];return e&&e.Metrics_asArray&&e.Metrics_asArray.forEach(function(i){var a=new F,s=t.getIsDynamic(e);i.hasOwnProperty("metrics")&&(a.metrics=i.metrics,i.Range_asArray&&i.Range_asArray.forEach(function(r){var i=new Y;i.starttime=function(e,r,i){var a,s,o=0;return r?o=t.getAvailabilityStartTime(e)/1e3:(a=t.getRegularPeriods(e)).length&&(o=a[0].start),s=o,i&&i.hasOwnProperty(n.START_TIME)&&(s+=i.starttime),s}(e,s,r),r.hasOwnProperty("duration")?i.duration=r.duration:i.duration=t.getDuration(e),i._useWallClockTime=s,a.Range.push(i)}),i.Reporting_asArray&&(i.Reporting_asArray.forEach(function(e){var t=new U;e.hasOwnProperty(n.SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty("value")&&(t.value=e.value),e.hasOwnProperty(n.DVB_REPORTING_URL)&&(t.dvbReportingUrl=e[n.DVB_REPORTING_URL]),e.hasOwnProperty(n.DVB_PROBABILITY)&&(t.dvbProbability=e[n.DVB_PROBABILITY]),a.Reporting.push(t))}),r.push(a)))}),r}}}B.__dashjs_factory_name="ManifestParsing";var j=dashjs.FactoryMaker.getSingletonFactory(B);function H(e){var t;e=e||{};var n={},r=this.context,i=e.eventBus,s=e.events;function o(t){if(!t.error){var s=Object.keys(n);j(r).getInstance({adapter:e.adapter,constants:e.constants}).getMetrics(t.manifest).forEach(function(t){var i=JSON.stringify(t);if(n.hasOwnProperty(i))s.splice(i,1);else try{var a=N(r).create(e);a.initialize(t),n[i]=a}catch(e){}}),s.forEach(function(e){n[e].reset(),delete n[e]}),i.trigger(a.Z.METRICS_INITIALISATION_COMPLETE)}}function l(){Object.keys(n).forEach(function(e){n[e].reset()}),n={}}return t={reset:function(){i.off(s.MANIFEST_UPDATED,o,t),i.off(s.STREAM_TEARDOWN_COMPLETE,l,t)}},i.on(s.MANIFEST_UPDATED,o,t),i.on(s.STREAM_TEARDOWN_COMPLETE,l,t),t}H.__dashjs_factory_name="MetricsCollectionController";var G=dashjs.FactoryMaker.getClassFactory(H);function Z(){var e=this.context;return{createMetricsReporting:function(t){return o(e).getInstance({eventBus:t.eventBus,dashMetrics:t.dashMetrics,metricsConstants:t.metricsConstants,events:t.events}).initialize(),G(e).create(t)},getReportingFactory:function(){return v(e).getInstance()},getMetricsHandlerFactory:function(){return C(e).getInstance()}}}Z.__dashjs_factory_name="MetricsReporting";var $=dashjs.FactoryMaker.getClassFactory(Z);$.events=a.Z,dashjs.FactoryMaker.updateClassFactory(Z.__dashjs_factory_name,$);var z=$},1180:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
vendor: 8,141 bytes, line 2
2function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var o=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=s(t);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return a(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this)).METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",e.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer",e.CMCD_DATA_GENERATED="cmcdDataGenerated",e}return o}(n(8342).Z));t.Z=o},5717:function(e,t,n){"use strict";var r=n(2610),i=n(5448),a=n(1264),s=n(3106),o=n(1767),l=n(3393);function u(){var e,t,n,i,u,c,d,f,h=this.context,m=(0,a.Z)(h).getInstance();function p(){i=[],u=[],c=[],f=[],d=null,t=[]}function g(e,t){var n=-1;e.some(function(e,r){if(e===t)return n=r,!0}),n<0||e.splice(n,1)}function y(e){var t;for(t=0;t<f.length;t++)if(f[t].rulename===e)return t;return-1}function _(e,n){v(e,n);var i=new r.Z;i.schemeIdUri=e,i.value=n,t.push(i)}function v(e,n){(0,s.PS)(e,"string"),(0,s.PS)(n,"string"),t.forEach(function(r,i){r.schemeIdUri===e&&r.value===n&&t.splice(i,1)})}return e={getCustomInitialTrackSelectionFunction:function(){return d},setCustomInitialTrackSelectionFunction:function(e){d=e},resetCustomInitialTrackSelectionFunction:function(){d=null},getLicenseResponseFilters:function(){return u},getLicenseRequestFilters:function(){return i},getCustomCapabilitiesFilters:function(){return c},registerCustomCapabilitiesFilter:function(e){c.push(e)},registerLicenseResponseFilter:function(e){u.push(e)},registerLicenseRequestFilter:function(e){i.push(e)},unregisterCustomCapabilitiesFilter:function(e){g(c,e)},unregisterLicenseResponseFilter:function(e){g(u,e)},unregisterLicenseRequestFilter:function(e){g(i,e)},addAbrCustomRule:function(e,t,n){if("string"!=typeof e||e!==o.Z.ABANDON_FRAGMENT_RULES&&e!==o.Z.QUALITY_SWITCH_RULES||"string"!=typeof t)throw l.Z.BAD_ARGUMENT_ERROR;var r=y(t);-1===r?f.push({type:e,rulename:t,rule:n}):(f[r].type=e,f[r].rule=n)},removeAllAbrCustomRule:function(){f=[]},removeAbrCustomRule:function(e){if(e){var t=y(e);-1!==t&&f.splice(t,1)}else f=[]},getAbrCustomRules:function(){return f},addUTCTimingSource:_,removeUTCTimingSource:v,getUTCTimingSources:function(){return t},clearDefaultUTCTimingSources:function(){t=[]},restoreDefaultUTCTimingSources:function(){var e=m.get().streaming.utcSynchronization.defaultTimingSource;_(e.scheme,e.value)},setXHRWithCredentialsForType:function e(t,r){t?n[t]=!!r:Object.keys(n).forEach(function(t){e(t,r)})},getXHRWithCredentialsForType:function(e){var t=n[e];return void 0===t?n.default:t},setConfig:function(){},reset:function(){p()}},n={default:!1},p(),e}u.__dashjs_factory_name="CustomParametersModel",t.Z=i.Z.getSingletonFactory(u)},9032:function(e,t,n){"use strict";var r=n(5448),i=n(7473);function a(e){var t=(e=e||{}).requestModifier;function n(e){var n=new Date,r=e.request,i=new XMLHttpRequest;if(i.open(e.method,e.url,!0),r.responseType&&(i.responseType=r.responseType),r.range&&i.setRequestHeader("Range","bytes="+r.range),r.requestStartDate||(r.requestStartDate=n),t&&t.modifyRequestHeader&&(i=t.modifyRequestHeader(i,{url:e.url})),e.headers)for(var a in e.headers){var s=e.headers[a];s&&i.setRequestHeader(a,s)}i.withCredentials=e.withCredentials,i.onload=e.onload,i.onloadend=e.onend,i.onerror=e.onerror,i.onprogress=e.progress,i.onabort=e.onabort,i.ontimeout=e.ontimeout,i.timeout=e.timeout,i.send(),e.response=i}return{load:function(e){t&&t.modifyRequest?(0,i.k)(e,t).then(function(){return n(e)}):n(e)},abort:function(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}}}a.__dashjs_factory_name="XHRLoader";var s=r.Z.getClassFactory(a);t.Z=s},1737:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{default:function(){return Se}});var i={attributes:["Laurl","laurl"],prefixes:["clearkey","dashif"]},a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"findCencContentProtection",value:function(e){for(var t=null,n=0;n<e.length;++n){var r=e[n];"urn:mpeg:dash:mp4protection:2011"!==r.schemeIdUri.toLowerCase()||"cenc"!==r.value.toLowerCase()&&"cbcs"!==r.value.toLowerCase()||(t=r)}return t}},{key:"getPSSHData",value:function(e){var t=8,n=new DataView(e),r=n.getUint8(t);return t+=20,r>0&&(t+=4+16*n.getUint32(t)),t+=4,e.slice(t)}},{key:"getPSSHForKeySystem",value:function(t,n){var r=e.parsePSSHList(n);return t&&r.hasOwnProperty(t.uuid.toLowerCase())?r[t.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(e,t){return"pssh"in e?(e.pssh.__text=e.pssh.__text.replace(/\r?\n|\r/g,"").replace(/\s+/g,""),t.decodeArray(e.pssh.__text).buffer):null}},{key:"parsePSSHList",value:function(e){if(null==e)return[];for(var t=new DataView(e.buffer||e),n={},r=0;;){var i,a,s=void 0,o=r;if(r>=t.buffer.byteLength)break;if(i=r+t.getUint32(r),r+=4,1886614376===t.getUint32(r))if(r+=4,0===(a=t.getUint8(r))||1===a){r++,r+=3,s="";var l=void 0,u=void 0;for(l=0;l<4;l++)s+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=4,s+="-",l=0;l<2;l++)s+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=2,s+="-",l=0;l<2;l++)s+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=2,s+="-",l=0;l<2;l++)s+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=2,s+="-",l=0;l<6;l++)s+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;r+=6,r+=4,n[s=s.toLowerCase()]=t.buffer.slice(o,i),r=i}else r=i;else r=i}return n}},{key:"getLicenseServerUrlFromMediaInfo",value:function(e,t){try{if(!e||0===e.length)return null;for(var n=0,r=null;n<e.length&&!r;){var a=e[n];if(a&&a.contentProtection&&a.contentProtection.length>0){var s=a.contentProtection.filter(function(e){return e.schemeIdUri&&e.schemeIdUri===t});if(s&&s.length>0)for(var o=0;o<s.length&&!r;){for(var l=s[o],u=0;u<i.attributes.length&&!r;){for(var c=0,d=i.attributes[u];c<i.prefixes.length&&!r;){var f=i.prefixes[c];l[d]&&l[d].__prefix&&l[d].__prefix===f&&l[d].__text&&(r=l[d].__text),c+=1}u+=1}o+=1}}n+=1}return r}catch(e){return null}}}],t&&r(e,t),e}(),s=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.contentType=t,this.robustness=n},o=function e(t,n,r,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initDataTypes=["cenc"],t&&t.length&&(this.audioCapabilities=t),n&&n.length&&(this.videoCapabilities=n),this.distinctiveIdentifier=r,this.persistentState=i,this.sessionTypes=a};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=d(t);if(n){var i=d(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return c(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=r.call(this)).MEDIA_KEYERR_CODE=100,e.MEDIA_KEYERR_UNKNOWN_CODE=101,e.MEDIA_KEYERR_CLIENT_CODE=102,e.MEDIA_KEYERR_SERVICE_CODE=103,e.MEDIA_KEYERR_OUTPUT_CODE=104,e.MEDIA_KEYERR_HARDWARECHANGE_CODE=105,e.MEDIA_KEYERR_DOMAIN_CODE=106,e.MEDIA_KEY_MESSAGE_ERROR_CODE=107,e.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE=108,e.SERVER_CERTIFICATE_UPDATED_ERROR_CODE=109,e.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE=110,e.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE=111,e.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE=112,e.KEY_SESSION_CREATED_ERROR_CODE=113,e.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE=114,e.MEDIA_KEYERR_UNKNOWN_MESSAGE="An unspecified error occurred. This value is used for errors that don't match any of the other codes.",e.MEDIA_KEYERR_CLIENT_MESSAGE="The Key System could not be installed or updated.",e.MEDIA_KEYERR_SERVICE_MESSAGE="The message passed into update indicated an error from the license service.",e.MEDIA_KEYERR_OUTPUT_MESSAGE="There is no available output device with the required characteristics for the content protection system.",e.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE="A hardware configuration change caused a content protection error.",e.MEDIA_KEYERR_DOMAIN_MESSAGE="An error occurred in a multi-device domain licensing configuration. The most common error is a failure to join the domain.",e.MEDIA_KEY_MESSAGE_ERROR_MESSAGE="Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!",e.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE="DRM: Empty key message from CDM",e.SERVER_CERTIFICATE_UPDATED_ERROR_MESSAGE="Error updating server certificate -- ",e.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE="DRM: KeyStatusChange error! -- License has expired",e.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE="DRM: No license server URL specified!",e.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE="DRM: KeySystem Access Denied! -- ",e.KEY_SESSION_CREATED_ERROR_MESSAGE="DRM: unable to create session! --",e.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE="DRM: licenser error! --",e}return i}(n(2230).Z)),h=n(5459),m=function e(t,n,r,i,a,s,o,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t,this.method=n,this.responseType=r,this.headers=i,this.withCredentials=a,this.messageType=s,this.sessionId=o,this.data=l},p=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t,this.headers=n,this.data=r},g=n(7855),y=n(703),_=n(3393),v=n(5448);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function b(e){var t,n,r,i,l,u,c,d,v,b,T,S=(e=e||{}).protectionKeyController,w=e.protectionModel,L=e.eventBus,A=e.events,M=e.debug,D=e.BASE64,k=e.constants,I=[],R=e.cmcdModel,C=e.settings,P=e.customParametersModel;function O(){if(!(L&&L.hasOwnProperty("on")&&S&&S.hasOwnProperty("getSupportedKeySystemsFromContentProtection")))throw new Error("Missing config parameter(s)")}function x(e,t){d||v?d&&N():function(e,t){if(!v){v=!0;var r,i=[];e=e.sort(function(t,n){return(l&&l[t.ks.systemString]&&l[t.ks.systemString].priority>=0?l[t.ks.systemString].priority:e.length)-(l&&l[n.ks.systemString]&&l[n.ks.systemString].priority>=0?l[n.ks.systemString].priority:e.length)});for(var a=0;a<e.length;a++){var s=G(e[a]);i.push({ks:e[a].ks,configs:[s],protData:e[a].protData})}w.requestKeySystemAccess(i).then(function(e){var t=(r=e.data).mksa&&r.mksa.selectedSystemString?r.mksa.selectedSystemString:r.keySystem.systemString;return n.info("DRM: KeySystem Access Granted for system string ("+t+")! Selecting key system..."),w.selectKeySystem(r)}).then(function(e){if(d=e,v=!1,w){L.trigger(A.KEY_SYSTEM_SELECTED,{data:r});var t=B(d);t&&t.serverCertificate&&t.serverCertificate.length>0&&w.setServerCertificate(D.decodeArray(t.serverCertificate).buffer),N()}}).catch(function(e){d=null,v=!1,t||L.trigger(A.KEY_SYSTEM_SELECTED,{data:null,error:new h.Z(f.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE,f.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE+"Error selecting key system! -- "+e.error)})})}}(e,t)}function N(){for(var e,t=0;t<r.length;t++)for(e=0;e<r[t].length;e++)if(d===r[t][e].ks){F(r[t][e]);break}r=[]}function F(e){if(S.isClearKey(d)&&e.protData&&e.protData.hasOwnProperty("clearkeys")&&0!==Object.keys(e.protData.clearkeys).length){var t={kids:Object.keys(e.protData.clearkeys)};e.initData=(new TextEncoder).encode(JSON.stringify(t))}e.sessionId?Y(e):null!==e.initData&&U(e)}function Y(e){O(),w.loadKeySession(e)}function U(e){var t=a.getPSSHForKeySystem(d,e?e.initData:null);if(t){if(function(e){if(!e)return!1;try{for(var t=w.getSessions(),n=0;n<t.length;n++)if(t[n].getKeyId()===e)return!0;return!1}catch(e){return!1}}(e.keyId))return;if(j(t))return;try{e.initData=t,w.createKeySession(e)}catch(e){L.trigger(A.KEY_SESSION_CREATED,{data:null,error:new h.Z(f.KEY_SESSION_CREATED_ERROR_CODE,f.KEY_SESSION_CREATED_ERROR_MESSAGE+e.message)})}}else e&&e.initData?w.createKeySession(e):L.trigger(A.KEY_SESSION_CREATED,{data:null,error:new h.Z(f.KEY_SESSION_CREATED_ERROR_CODE,f.KEY_SESSION_CREATED_ERROR_MESSAGE+"Selected key system is "+(d?d.systemString:null)+". needkey/encrypted event contains
2no initData corresponding to that key system!")})}function B(e){if(e){var t=e.systemString;if(l)return t in l?l[t]:null}return null}function j(e){if(!e)return!1;try{for(var t=w.getAllInitData(),r=0;r<t.length;r++)if(S.initDataEquals(e,t[r]))return n.debug("DRM: Ignoring initData because we have already seen it!"),!0;return!1}catch(e){return!1}}function H(e){O(),e?(w.setMediaElement(e),L.on(A.NEED_KEY,Q,t)):null===e&&(w.setMediaElement(e),L.off(A.NEED_KEY,Q,t))}function G(e){var t=e.protData,n=[],r=[],a=t&&t.audioRobustness&&t.audioRobustness.length>0?t.audioRobustness:c,l=t&&t.videoRobustness&&t.videoRobustness.length>0?t.videoRobustness:c,u=e.sessionType,d=t&&t.distinctiveIdentifier?t.distinctiveIdentifier:"optional",f=t&&t.persistentState?t.persistentState:"temporary"===u?"optional":"required";return i.forEach(function(e){e.type===k.AUDIO?n.push(new s(e.codec,a)):e.type===k.VIDEO&&r.push(new s(e.codec,l))}),new o(n,r,d,f,[u])}function Z(e){e.error?L.trigger(A.KEY_STATUSES_CHANGED,{data:null,error:e.error}):n.debug("DRM: key status = "+e.status)}function $(e){n.debug("DRM: onKeyMessage");var t=e.data;L.trigger(A.KEY_MESSAGE,{data:t});var r=t.messageType?t.messageType:"license-request",s=t.message,o=t.sessionToken,l=B(d),u=S.getLicenseServerModelInstance(d,l,r),c={sessionToken:o,messageType:r};if(s&&0!==s.byteLength){if(!u)return n.debug("DRM: License server request not required for this message (type = "+e.data.messageType+"). Session ID = "+o.getSessionId()),void z(c);
vendor: 25,347 bytes, line 2
2if(S.isClearKey(d)){var _=S.processClearKeyLicenseRequest(d,l,s);if(_&&_.keyPairs&&_.keyPairs.length>0)return n.debug("DRM: ClearKey license request handled by application!"),z(c),void w.updateKeySession(o,_)}!function(e,t,n){var r=e.sessionToken,s=e.messageType?e.messageType:"license-request",o={sessionToken:r,messageType:s},l=d?d.systemString:null,u=function(e,t,n,r,s){var o=null,l=r.message;if(e&&e.serverURL){var u=e.serverURL;"string"==typeof u&&""!==u?o=u:"object"===E(u)&&u.hasOwnProperty(t)&&(o=u[t])}else if(e&&e.laURL&&""!==e.laURL)o=e.laURL;else if(!(o=a.getLicenseServerUrlFromMediaInfo(i,d.schemeIdURI))&&!S.isClearKey(d)){var c=a.getPSSHData(n.initData);(o=d.getLicenseServerURLFromInitData(c))||(o=r.laURL)}return s.getServerURLFromMessage(o,l,t)}(n,s,r,e,t);if(u){var c={},_=!1;n&&V(c,n.httpRequestHeaders);var v=e.message;V(c,d.getRequestHeadersFromMessage(v)),Object.keys(c).forEach(function(e){"authorization"===e.toLowerCase()&&(_=!0)}),n&&"boolean"==typeof n.withCredentials&&(_=n.withCredentials);var b=function(e){if(w)if(e.status>=200&&e.status<=299){var n=y.Z.parseHttpHeaders(e.getAllResponseHeaders?e.getAllResponseHeaders():null),i=new p(e.responseURL,n,e.response);X(P.getLicenseResponseFilters(),i).then(function(){var n=t.getLicenseMessage(i.data,l,s);null!==n?(z(o),w.updateKeySession(r,n)):K(e,o,l,s,t)})}else K(e,o,l,s,t)},T=function(e){z(o,new h.Z(f.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,f.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+l+' update, XHR aborted. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState))},L=function(e){z(o,new h.Z(f.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,f.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+l+' update, XHR error. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState))},A=d.getLicenseRequestFromMessage(v),M=t.getHTTPMethod(s),D=t.getResponseType(l,s),k=n&&!isNaN(n.httpTimeout)?n.httpTimeout:8e3,I=r.getSessionId()||null,R=new m(u,M,D,c,_,s,I,A),O=isNaN(C.get().streaming.retryAttempts[g.w.LICENSE])?3:C.get().streaming.retryAttempts[g.w.LICENSE];X(P.getLicenseRequestFilters(),R).then(function(){q(R,O,k,b,T,L)})}else z(o,new h.Z(f.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE,f.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE))}(t,u,l)}else z(c,new h.Z(f.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE,f.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE))}function z(e,t){L.trigger(A.LICENSE_REQUEST_COMPLETE,{data:e,error:t})}function q(e,t,r,i,a,s){var o=new XMLHttpRequest;if(C.get().streaming.cmcd&&C.get().streaming.cmcd.enabled&&C.get().streaming.cmcd.mode===_.Z.CMCD_MODE_QUERY){var l=R.getQueryParameter({url:e.url,type:g.w.LICENSE});l&&(e.url=y.Z.addAditionalQueryParameterToUrl(e.url,[l]))}for(var u in o.open(e.method,e.url,!0),o.responseType=e.responseType,o.withCredentials=e.withCredentials,r>0&&(o.timeout=r),e.headers)o.setRequestHeader(u,e.headers[u]);if(C.get().streaming.cmcd&&C.get().streaming.cmcd.enabled&&C.get().streaming.cmcd.mode===_.Z.CMCD_MODE_HEADER){var c=R.getHeaderParameters({url:e.url,type:g.w.LICENSE});if(c)for(var d in c){var f=c[d];f&&o.setRequestHeader(d,f)}}var h=function(){t--;var n=isNaN(C.get().streaming.retryIntervals[g.w.LICENSE])?1e3:C.get().streaming.retryIntervals[g.w.LICENSE];T=setTimeout(function(){q(e,t,r,i,a,s)},n)};o.onload=function(){b=null,this.status>=200&&this.status<=299||t<=0?i(this):(n.warn("License request failed ("+this.status+"). Retrying it... Pending retries: "+t),h())},o.ontimeout=o.onerror=function(){b=null,t<=0?s(this):(n.warn("License request network request failed . Retrying it... Pending retries: "+t),h())},o.onabort=function(){a(this)},L.trigger(A.LICENSE_REQUEST_SENDING,{url:e.url,headers:e.headers,payload:e.data,sessionId:e.sessionId}),b=o,o.send(e.data)}function W(){b&&(b.onloadend=b.onerror=b.onprogress=void 0,b.abort(),b=null),T&&(clearTimeout(T),T=null)}function V(e,t){if(t)for(var n in t)e[n]=t[n]}function K(e,t,n,r,i){var a="NONE",s=null;e.response&&(a=i.getErrorResponse(e.response,n,r),s={serverResponse:e.response||null,responseCode:e.status||null,responseText:e.statusText||null}),z(t,new h.Z(f.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,f.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+n+' update, XHR complete. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState+". Response is "+a,s))}function X(e,t){return e?e.reduce(function(e,n){return e.then(function(){return n(t)})},Promise.resolve()):Promise.resolve()}function Q(e,t){if(!C.get().streaming.protection.ignoreEmeEncryptedEvent){if(n.debug("DRM: onNeedKey"),"cenc"!==e.key.initDataType)return void n.warn("DRM: Only 'cenc' initData is supported! Ignoring initData of type: "+e.key.initDataType);if(0===i.length&&(n.warn("DRM: onNeedKey called before initializeForMedia, wait until initialized"),(t=void 0===t?1:t+1)<5))return void I.push(setTimeout(function(){Q(e,t)},500));var s=e.key.initData;if(ArrayBuffer.isView(s)&&(s=s.buffer),d){var o=a.getPSSHForKeySystem(d,s);if(o&&j(o))return}n.debug("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(s)));var c=S.getSupportedKeySystemsFromSegmentPssh(s,l,u);if(0===c.length)return void n.debug("DRM: Received needkey event with initData, but we don't support any of the key systems!");!function(e){r.push(e),x(e,!1)}(c)}}return t={initializeForMedia:function(e){if(!e)throw new Error("mediaInfo can not be null or undefined");O(),i.push(e)},clearMediaInfoArray:function(){i=[]},handleKeySystemFromManifest:function(){if(i&&0!==i.length){var e=[];i.forEach(function(t){var n=S.getSupportedKeySystemsFromContentProtection(t.contentProtection,l,u);n.length>0&&(0===e.length&&(e=n),r.push(n))}),e&&e.length>0&&x(e,!0)}},createKeySession:U,loadKeySession:Y,removeKeySession:function(e){O(),w.removeKeySession(e)},closeKeySession:function(e){O(),w.closeKeySession(e)},setServerCertificate:function(e){O(),w.setServerCertificate(e)},setMediaElement:H,setSessionType:function(e){u=e},setRobustnessLevel:function(e){c=e},setProtectionData:function(e){l=e,S.setProtectionData(e)},getSupportedKeySystemsFromContentProtection:function(e){return O(),S.getSupportedKeySystemsFromContentProtection(e,l,u)},getKeySystems:function(){return S?S.getKeySystems():[]},setKeySystems:function(e){S&&S.setKeySystems(e)},stop:function(){W(),w&&w.stop()},reset:function(){L.off(A.INTERNAL_KEY_MESSAGE,$,t),L.off(A.INTERNAL_KEY_STATUS_CHANGED,Z,t),O(),W(),H(null),d=null,v=!1,w&&(w.reset(),w=null),I.forEach(function(e){return clearTimeout(e)}),I=[],i=[],r=[]}},n=M.getLogger(t),r=[],i=[],u="temporary",c="",b=null,T=null,L.on(A.INTERNAL_KEY_MESSAGE,$,t),L.on(A.INTERNAL_KEY_STATUS_CHANGED,Z,t),t}b.__dashjs_factory_name="ProtectionController";var T=v.Z.getClassFactory(b),S=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.keyID=t,this.key=n};function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var L=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n&&"persistent"!==n&&"temporary"!==n)throw new Error("Invalid ClearKey key set type! Must be one of 'persistent' or 'temporary'");this.keyPairs=t,this.type=n}var t;return(t=[{key:"toJWK",value:function(){var e,t=this.keyPairs.length,n={keys:[]};for(e=0;e<t;e++){var r={kty:"oct",alg:"A128KW",kid:this.keyPairs[e].keyID,k:this.keyPairs[e].key};n.keys.push(r)}this.type&&(n.type=this.type);var i=JSON.stringify(n),a=i.length,s=new ArrayBuffer(a),o=new Uint8Array(s);for(e=0;e<a;e++)o[e]=i.charCodeAt(e);return s}}])&&w(e.prototype,t),e}();function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var M=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.CLEARKEY_KEYSTEM_STRING="org.w3.clearkey",this.WIDEVINE_KEYSTEM_STRING="com.widevine.alpha",this.PLAYREADY_KEYSTEM_STRING="com.microsoft.playready",this.PLAYREADY_RECOMMENDATION_KEYSTEM_STRING="com.microsoft.playready.recommendation",this.INITIALIZATION_DATA_TYPE_CENC="cenc",this.INITIALIZATION_DATA_TYPE_KEYIDS="keyids",this.INITIALIZATION_DATA_TYPE_WEBM="webm"}}])&&A(e.prototype,t),e}()),D="e2719d58-a985-b3c9-781a-b030af78d30e",k=M.CLEARKEY_KEYSTEM_STRING,I="urn:uuid:"+D;function R(e){var t=(e=e||{}).BASE64;return{uuid:D,schemeIdURI:I,systemString:k,getInitData:function(e,n){try{var r=a.parseInitDataFromContentProtection(e,t);if(!r&&n){var i={kids:[function(e){try{var t=e.replace(/-/g,"");return(t=btoa(t.match(/\w{2}/g).map(function(e){return String.fromCharCode(parseInt(e,16))}).join(""))).replace(/=/g,"").replace(/\//g,"_").replace(/\+/g,"-")}catch(e){return null}}(n["cenc:default_KID"])]};r=(new TextEncoder).encode(JSON.stringify(i))}return r}catch(e){return null}},getRequestHeadersFromMessage:function(){return{"Content-Type":"application/json"}},getLicenseRequestFromMessage:function(e){return JSON.stringify(JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e))))},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getClearKeysFromProtectionData:function(e,t){var n=null;if(e){for(var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))),i=[],a=0;a<r.kids.length;a++){var s=r.kids[a],o=e.clearkeys&&e.clearkeys.hasOwnProperty(s)?e.clearkeys[s]:null;if(!o)throw new Error("DRM: ClearKey keyID ("+s+") is not known!");i.push(new S(s,o))}n=new L(i)}return n}}}R.__dashjs_factory_name="KeySystemClearKey";var C=dashjs.FactoryMaker.getSingletonFactory(R),P="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",O=M.CLEARKEY_KEYSTEM_STRING,x="urn:uuid:"+P;function N(e){var t,n=e.BASE64,r=e.debug.getLogger(t);return{uuid:P,schemeIdURI:x,systemString:O,getInitData:function(e){return a.parseInitDataFromContentProtection(e,n)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(e){return new Uint8Array(e)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getClearKeysFromProtectionData:function(e,t){var n=null;if(e){for(var i=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))),a=[],s=0;s<i.kids.length;s++){var o=i.kids[s],l=e.clearkeys&&e.clearkeys.hasOwnProperty(o)?e.clearkeys[o]:null;if(!l)throw new Error("DRM: ClearKey keyID ("+o+") is not known!");a.push(new S(o,l))}n=new L(a),r.warn("ClearKey schemeIdURI is using W3C Common PSSH systemID (1077efec-c0b2-4d02-ace3-3c1e52e2fb4b) in Content Protection. See DASH-IF IOP v4.1 section 7.6.2.4")}return n}}}N.__dashjs_factory_name="KeySystemW3CClearKey";var F=dashjs.FactoryMaker.getSingletonFactory(N),Y="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",U=M.WIDEVINE_KEYSTEM_STRING,B="urn:uuid:"+Y;function j(e){var t=(e=e||{}).BASE64;return{uuid:Y,schemeIdURI:B,systemString:U,getInitData:function(e){return a.parseInitDataFromContentProtection(e,t)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(e){return new Uint8Array(e)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null}}}j.__dashjs_factory_name="KeySystemWidevine";var H=dashjs.FactoryMaker.getSingletonFactory(j),G="9a04f079-9840-4286-ab92-e65be0885f95",Z=M.PLAYREADY_KEYSTEM_STRING,$="urn:uuid:"+G;function z(e){var t="utf-16",n=(e=e||{}).BASE64,r=e.settings;function i(){if(!n||!n.hasOwnProperty("decodeArray")||!n.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}return{uuid:G,schemeIdURI:$,systemString:Z,getInitData:function(e){var t,r,s,o,l,u=new Uint8Array([112,115,115,104,0,0,0,0]),c=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),d=0,f=null;if(i(),!e)return null;if("pssh"in e)return a.parseInitDataFromContentProtection(e,n);if("pro"in e)f=n.decodeArray(e.pro.__text);else{if(!("prheader"in e))return null;f=n.decodeArray(e.prheader.__text)}return t=f.length,r=4+u.length+c.length+4+t,s=new ArrayBuffer(r),o=new Uint8Array(s),(l=new DataView(s)).setUint32(d,r),d+=4,o.set(u,d),d+=u.length,o.set(c,d),d+=c.length,l.setUint32(d,t),d+=4,o.set(f,d),d+=t,o.buffer},getRequestHeadersFromMessage:function(e){var n,i,a={},s=new DOMParser;if(r&&r.get().streaming.protection.detectPlayreadyMessageFormat&&"utf-16"===t&&e&&e.byteLength%2==1)return a["Content-Type"]="text/xml; charset=utf-8",a;var o="utf-16"===t?new Uint16Array(e):new Uint8Array(e);n=String.fromCharCode.apply(null,o);for(var l=(i=s.parseFromString(n,"application/xml")).getElementsByTagName("name"),u=i.getElementsByTagName("value"),c=0;c<l.length;c++)a[l[c].childNodes[0].nodeValue]=u[c].childNodes[0].nodeValue;return a.hasOwnProperty("Content")&&(a["Content-Type"]=a.Content,delete a.Content),a.hasOwnProperty("Content-Type")||(a["Content-Type"]="text/xml; charset=utf-8"),a},getLicenseRequestFromMessage:function(e){var a=null,s=new DOMParser;if(r&&r.get().streaming.protection.detectPlayreadyMessageFormat&&"utf-16"===t&&e&&e.byteLength%2==1)return e;var o="utf-16"===t?new Uint16Array(e):new Uint8Array(e);i();var l=String.fromCharCode.apply(null,o),u=s.parseFromString(l,"application/xml");if(!u.getElementsByTagName("PlayReadyKeyMessage")[0])return e;var c=u.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;return c&&(a=n.decode(c)),a},getLicenseServerURLFromInitData:function(e){if(e)for(var t=new DataView(e),n=t.getUint16(4,!0),r=6,i=new DOMParser,a=0;a<n;a++){var s=t.getUint16(r,!0);r+=2;var o=t.getUint16(r,!0);if(r+=2,1===s){var l=e.slice(r,r+o),u=String.fromCharCode.apply(null,new Uint16Array(l)),c=i.parseFromString(u,"application/xml");if(c.getElementsByTagName("LA_URL")[0]){var d=c.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(d)return d}if(c.getElementsByTagName("LUI_URL")[0]){var f=c.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(f)return f}}else r+=o}return null},getCDMData:function(e){var t,r,a,s;if(i(),!e)return null;for(t=[],s=0;s<e.length;++s)t.push(e.charCodeAt(s)),t.push(0);for(t=String.fromCharCode.apply(null,t),t=n.encode(t),r='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="false"><CustomData encoding="base64encoded">%CUSTOMDATA%</CustomData></LicenseAcquisition></PlayReadyCDMData>'.replace("%CUSTOMDATA%",t),a=[],s=0;s<r.length;++s)a.push(r.charCodeAt(s)),a.push(0);return new Uint8Array(a).buffer},setPlayReadyMessageFormat:function(e){if("utf-8"!==e&&"utf-16"!==e)throw new Error('Specified message format is not one of "utf-8" or "utf-16"');t=e}}}z.__dashjs_factory_name="KeySystemPlayReady";var q=dashjs.FactoryMaker.getSingletonFactory(z);function W(e){var t=(e=e||{}).BASE64,n={};return n[M.WIDEVINE_KEYSTEM_STRING]={responseType:"json",getLicenseMessage:function(e){return t.decodeArray(e.license)},getErrorResponse:function(e){return e}},n[M.PLAYREADY_KEYSTEM_STRING]={responseType:"arraybuffer",getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}},{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(e){return n[e].responseType},getLicenseMessage:function(e,r){return function(){if(!t||!t.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}(),n[r].getLicenseMessage(e)},getErrorResponse:function(e,t){return n[t].getErrorResponse(e)}}}W.__dashjs_factory_name="DRMToday";var V=dashjs.FactoryMaker.getSingletonFactory(W);function K(){var e="http://schemas.xmlsoap.org/soap/envelope/";function t(e){var t=String.fromCharCode.apply(null,new Uint8Array(e));return decodeURIComponent(escape(t))}function n(n){if(window.DOMParser){var r=t(n),i=(new window.DOMParser).parseFromString(r,"text/xml"),a=i?i.getElementsByTagNameNS(e,"Envelope")[0]:null,s=a?a.getElementsByTagNameNS(e,"Body")[0]:null;if(s&&s.getElementsByTagNameNS(e,"Fault")[0])return null}return n}function r(n){var r="",i="",a="",s=-1,o=-1;if(window.DOMParser){var l=t(n),u=(new window.DOMParser).parseFromString(l,"text/xml"),c=u?u.getElementsByTagNameNS(e,"Envelope")[0]:null,d=c?c.getElementsByTagNameNS(e,"Body")[0]:null,f=d?d.getElementsByTagNameNS(e,"Fault")[0]:null,h=f?f.getElementsByTagName("detail")[0]:null,m=h?h.getElementsByTagName("Exception")[0]:null,p=null;if(null===f)return l;r=(p=f.getElementsByTagName("faultstring")[0].firstChild)?p.nodeValue:null,null!==m&&(i=(p=m.getElementsByTagName("StatusCode")[0])?p.firstChild.nodeValue:null,s=(a=(p=m.getElementsByTagName("Message")[0])?p.firstChild.nodeValue:null)?a.lastIndexOf("[")+1:-1,o=a?a.indexOf("]"):-1,a=a?a.substring(s,o):"")}var g="code: ".concat(i,", name: ").concat(r);return a&&(g+=", message: ".concat(a)),g}return{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(e){return n.call(this,e)},getErrorResponse:function(e){return r.call(this,e)}}}K.__dashjs_factory_name="PlayReady";var X=v.Z.getSingletonFactory(K);function Q(){return{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}}Q.__dashjs_factory_name="Widevine";var J=dashjs.FactoryMaker.getSingletonFactory(Q);function ee(){return{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"json"},getLicenseMessage:function(e){if(!e.hasOwnProperty("keys"))return null;for(var t=[],n=0;n<e.keys.length;n++){var r=e.keys[n],i=r.kid.replace(/=/g,""),a=r.k.replace(/=/g,"");t.push(new S(i,a))}return new L(t)},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}}ee.__dashjs_factory_name="ClearKey";var te=dashjs.FactoryMaker.getSingletonFactory(ee);function ne(){var e,t,n,r,i,s,o,l,u=this.context;function c(e,t){return t&&e in t?t[e]:null}function d(e,t){return e&&e.sessionId?e.sessionId:t&&t.sessionId?t.sessionId:null}function f(e,t){return e&&e.sessionType?e.sessionType:t}return e={initialize:function(){var e;r=[],e=q(u).getInstance({BASE64:i,settings:s}),r.push(e),e=H(u).getInstance({BASE64:i}),r.push(e),e=C(u).getInstance({BASE64:i}),r.push(e),o=e,e=F(u).getInstance({BASE64:i,debug:t}),r.push(e),l=e},setProtectionData:function(e){for(var t,n,i=0;i<r.length;i++){var a=r[i];a.hasOwnProperty("init")&&a.init((t=a.systemString,n=void 0,n=null,e&&(n=t in e?e[t]:null),n))}},isClearKey:function(e){return e===o||e===l},initDataEquals:function(e,t){if(e.byteLength===t.byteLength){for(var n=new Uint8Array(e),r=new Uint8Array(t),i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}return!1},getKeySystems:function(){return r},setKeySystems:function(e){r=e},getKeySystemBySystemString:function(e){for(var t=0;t<r.length;t++)if(r[t].systemString===e)return r[t];return null},getSupportedKeySystemsFromContentProtection:function(e,t,n){var i,s,o,l,u=[];if(e){var h=a.findCencContentProtection(e);for(o=0;o<r.length;++o){var m=c((s=r[o]).systemString,t);for(l=0;l<e.length;++l)if((i=e[l]).schemeIdUri.toLowerCase()===s.schemeIdURI){var p=s.getInitData(i,h);u.push({ks:r[o],keyId:i.keyId,initData:p,protData:m,cdmData:s.getCDMData(m?m.cdmData:null),sessionId:d(m,i),sessionType:f(m,n)})}}}return u},getSupportedKeySystemsFromSegmentPssh:function(e,t,n){for(var i,s=[],o=a.parsePSSHList(e),l=0;l<r.length;++l){var u=c((i=r[l]).systemString,t);i.uuid in o&&s.push({ks:i,initData:o[i.uuid],protData:u,cdmData:i.getCDMData(u?u.cdmData:null),sessionId:d(u),sessionType:f(u,n)})}return s},getLicenseServerModelInstance:function(e,t,n){if("license-release"===n||"individualization-request"===n)return null;var r=null;return t&&t.hasOwnProperty("drmtoday")?r=V(u).getInstance({BASE64:i}):e.systemString===M.WIDEVINE_KEYSTEM_STRING?r=J(u).getInstance():e.systemString===M.PLAYREADY_KEYSTEM_STRING?r=X(u).getInstance():e.systemString===M.CLEARKEY_KEYSTEM_STRING&&(r=te(u).getInstance()),r},processClearKeyLicenseRequest:function(e,t,r){try{return e.getClearKeysFromProtectionData(t,r)}catch(e){return n.error("Failed to retrieve clearkeys from ProtectionData"),null}},setConfig:function(r){r&&(r.debug&&(t=r.debug,n=t.getLogger(e)),r.BASE64&&(i=r.BASE64),r.settings&&(s=r.settings))}},e}ne.__dashjs_factory_name="ProtectionKeyController";var re=dashjs.FactoryMaker.getSingletonFactory(ne);function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function ae(e,t){return ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ae(e,t)}function se(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var le=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=oe(t);if(n){var i=oe(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return se(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=r.call(this)).INTERNAL_KEY_MESSAGE="internalKeyMessage",e.INTERNAL_KEY_STATUS_CHANGED="internalkeyStatusChanged",e.KEY_ADDED="public_keyAdded",e.KEY_ERROR="public_keyError",e.KEY_MESSAGE="public_keyMessage",e.KEY_SESSION_CLOSED="public_keySessionClosed",e.KEY_SESSION_CREATED="public_keySessionCreated",e.KEY_SESSION_REMOVED="public_keySessionRemoved",e.KEY_STATUSES_CHANGED="public_keyStatusesChanged",e.KEY_SYSTEM_ACCESS_COMPLETE="public_keySystemAccessComplete",e.KEY_SYSTEM_SELECTED="public_keySystemSelected",e.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",e.LICENSE_REQUEST_SENDING="public_licenseRequestSending",e.NEED_KEY="needkey",e.PROTECTION_CREATED="public_protectioncreated",e.PROTECTION_DESTROYED="public_protectiondestroyed",e.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",e.TEARDOWN_COMPLETE="protectionTeardownComplete",e.VIDEO_ELEMENT_SELECTED="videoElementSelected",e.KEY_SESSION_UPDATED="public_keySessionUpdated",e}return i}(n(8342).Z)),ue=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initData=t,this.initDataType=n},ce=function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sessionToken=t,this.message=n,this.defaultURL=r,this.messageType=i||"license-request"},de=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.keySystem=t,this.ksConfiguration=n},fe={};function he(e){e=e||{};var t,n,r,i,a,s,o,l,u=this.context,c=e.eventBus,d=e.events,m=e.debug;function p(e,t,n,r){if(void 0===navigator.requestMediaKeySystemAccess||"function"!=typeof navigator.requestMediaKeySystemAccess){var i="Insecure origins are not allowed";return c.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{error:i}),void r({error:i})}var a=e[t].protData&&e[t].protData.systemStringPriority?e[t].protData.systemStringPriority:null,s=e[t].configs,o=e[t].ks,l=o.systemString;(function(e,t){return new Promise(function(n,r){g(e,t,0,n,r)})})(a||(fe[l]?fe[l]:[l]),s).then(function(e){var t="function"==typeof e.getConfiguration?e.getConfiguration():null,r=new de(o,t);r.mksa=e,c.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{data:r}),n({data:r})}).catch(function(i){if(t+1<e.length)p(e,t+1,n,r);else{var a="Key system access denied! ";c.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{error:a+i.message}),r({error:a+i.message})}})}function g(e,t,r,i,a){var s=e[r];n.debug("Requesting key system access for system string ".concat(s)),navigator.requestMediaKeySystemAccess(s,t).then(function(e){e.selectedSystemString=s,i(e)}).catch(function(n){r+1<e.length?g(e,t,r+1,i,a):a(n)})}function y(e){if(!e||!e.session)return Promise.resolve;var t=e.session;return t.removeEventListener("keystatuseschange",e),t.removeEventListener("message",e),t.close()}function _(e){for(var t=0;t<s.length;t++)if(s[t]===e){s.splice(t,1);break}}function v(e){var t,n;return e&&e.length>0&&(e[0]&&("string"==typeof e[0]?t=e[0]:n=e[0]),e[1]&&("string"==typeof e[1]?t=e[1]:n=e[1])),{status:t,keyId:n}}function E(e,t){var r={session:e,keyId:t.keyId,initData:t.initData,sessionId:t.sessionId,sessionType:t.sessionType,handleEvent:function(e){switch(e.type){case"keystatuseschange":c.trigger(d.KEY_STATUSES_CHANGED,{data:this}
vendor: 4,740 bytes, line 2
2),e.target.keyStatuses.forEach(function(){var e=v(arguments);"expired"===e.status?c.trigger(d.INTERNAL_KEY_STATUS_CHANGED,{error:new h.Z(f.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE,f.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE)}):c.trigger(d.INTERNAL_KEY_STATUS_CHANGED,e)});break;case"message":var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;c.trigger(d.INTERNAL_KEY_MESSAGE,{data:new ce(this,t,void 0,e.messageType)})}},getKeyId:function(){return this.keyId},getSessionId:function(){return e.sessionId},getSessionType:function(){return this.sessionType},getExpirationTime:function(){return e.expiration},getKeyStatuses:function(){return e.keyStatuses},getUsable:function(){var t=!1;return e.keyStatuses.forEach(function(){"usable"===v(arguments).status&&(t=!0)}),t}};return e.addEventListener("keystatuseschange",r),e.addEventListener("message",r),e.closed.then(function(){_(r),n.debug("DRM: Session closed. SessionID = "+r.getSessionId()),c.trigger(d.KEY_SESSION_CLOSED,{data:r.getSessionId()})}),s.push(r),r}return t={getAllInitData:function(){for(var e=[],t=0;t<s.length;t++)s[t].initData&&e.push(s[t].initData);return e},getSessions:function(){return s},requestKeySystemAccess:function(e){return new Promise(function(t,n){p(e,0,t,n)})},selectKeySystem:function(e){return new Promise(function(t,n){e.mksa.createMediaKeys().then(function(t){return r=e.keySystem,a=t,i?i.setMediaKeys(a):Promise.resolve()}).then(function(){t(r)}).catch(function(){n({error:"Error selecting keys system ("+e.keySystem.systemString+")! Could not create MediaKeys -- TODO"})})})},setMediaElement:function(e){i!==e&&(i&&(i.removeEventListener("encrypted",o),i.setMediaKeys&&i.setMediaKeys(null)),(i=e)&&(i.addEventListener("encrypted",o),i.setMediaKeys&&a&&i.setMediaKeys(a)))},setServerCertificate:function(e){if(!r||!a)throw new Error("Can not set server certificate until you have selected a key system");a.setServerCertificate(e).then(function(){n.info("DRM: License server certificate successfully updated."),c.trigger(d.SERVER_CERTIFICATE_UPDATED)}).catch(function(e){c.trigger(d.SERVER_CERTIFICATE_UPDATED,{error:new h.Z(f.SERVER_CERTIFICATE_UPDATED_ERROR_CODE,f.SERVER_CERTIFICATE_UPDATED_ERROR_MESSAGE+e.name)})})},createKeySession:function(e){if(!r||!a)throw new Error("Can not create sessions until you have selected a key system");var t=a.createSession(e.sessionType),i=E(t,e),s=r.systemString===M.CLEARKEY_KEYSTEM_STRING&&(e.initData||e.protData&&e.protData.clearkeys)?M.INITIALIZATION_DATA_TYPE_KEYIDS:M.INITIALIZATION_DATA_TYPE_CENC;t.generateRequest(s,e.initData).then(function(){n.debug("DRM: Session created. SessionID = "+i.getSessionId()),c.trigger(d.KEY_SESSION_CREATED,{data:i})}).catch(function(e){_(i),c.trigger(d.KEY_SESSION_CREATED,{data:null,error:new h.Z(f.KEY_SESSION_CREATED_ERROR_CODE,f.KEY_SESSION_CREATED_ERROR_MESSAGE+"Error generating key request -- "+e.name)})})},updateKeySession:function(e,t){var n=e.session;l.isClearKey(r)&&(t=t.toJWK()),n.update(t).then(function(){c.trigger(d.KEY_SESSION_UPDATED)}).catch(function(t){c.trigger(d.KEY_ERROR,{error:new h.Z(f.MEDIA_KEYERR_CODE,"Error sending update() message! "+t.name,e)})})},loadKeySession:function(e){if(!r||!a)throw new Error("Can not load sessions until you have selected a key system");for(var t=e.sessionId,i=0;i<s.length;i++)if(t===s[i].sessionId)return void n.warn("DRM: Ignoring session ID because we have already seen it!");var o=a.createSession(e.sessionType),l=E(o,e);o.load(t).then(function(e){e?(n.debug("DRM: Session loaded. SessionID = "+l.getSessionId()),c.trigger(d.KEY_SESSION_CREATED,{data:l})):(_(l),c.trigger(d.KEY_SESSION_CREATED,{data:null,error:new h.Z(f.KEY_SESSION_CREATED_ERROR_CODE,f.KEY_SESSION_CREATED_ERROR_MESSAGE+"Could not load session! Invalid Session ID ("+t+")")}))}).catch(function(e){_(l),c.trigger(d.KEY_SESSION_CREATED,{data:null,error:new h.Z(f.KEY_SESSION_CREATED_ERROR_CODE,f.KEY_SESSION_CREATED_ERROR_MESSAGE+"Could not load session ("+t+")! "+e.name)})})},removeKeySession:function(e){e.session.remove().then(function(){n.debug("DRM: Session removed. SessionID = "+e.getSessionId()),c.trigger(d.KEY_SESSION_REMOVED,{data:e.getSessionId()})},function(t){c.trigger(d.KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+e.getSessionId()+"). "+t.name})})},closeKeySession:function(e){y(e).catch(function(t){_(e),c.trigger(d.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+e.getSessionId()+") "+t.name})})},stop:function(){for(var e,t=0;t<s.length;t++)(e=s[t]).getUsable()||(y(e),_(e))},reset:function(){var e,t=s.length;0!==t?function(){for(var n=function(e){_(e),0===s.length&&(i?(i.removeEventListener("encrypted",o),i.setMediaKeys(null).then(function(){c.trigger(d.TEARDOWN_COMPLETE)}
vendor: 6,247 bytes, line 2
2)):c.trigger(d.TEARDOWN_COMPLETE))},r=0;r<t;r++)!function(t){y(e),n(t)}(e=s[r])}():c.trigger(d.TEARDOWN_COMPLETE)}},n=m.getLogger(t),r=null,i=null,a=null,s=[],l=re(u).getInstance(),o={handleEvent:function(e){if("encrypted"===e.type&&e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;c.trigger(d.NEED_KEY,{key:new ue(t,e.initDataType)})}}},t}fe[M.PLAYREADY_KEYSTEM_STRING]=[M.PLAYREADY_KEYSTEM_STRING,M.PLAYREADY_RECOMMENDATION_KEYSTEM_STRING],fe[M.WIDEVINE_KEYSTEM_STRING]=[M.WIDEVINE_KEYSTEM_STRING],fe[M.CLEARKEY_KEYSTEM_STRING]=[M.CLEARKEY_KEYSTEM_STRING],he.__dashjs_factory_name="ProtectionModel_21Jan2015";var me=dashjs.FactoryMaker.getClassFactory(he);function pe(e){e=e||{};var t,n,r,i,a,s,l,u,c,d=this.context,m=e.eventBus,p=e.events,g=e.debug,y=e.api;function _(){try{for(var e=0;e<l.length;e++)v(l[e]);r&&r.removeEventListener(y.needkey,u),m.trigger(p.TEARDOWN_COMPLETE)}catch(e){m.trigger(p.TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+e.message})}}function v(e){var t=e.session;t.removeEventListener(y.error,e),t.removeEventListener(y.message,e),t.removeEventListener(y.ready,e),t.removeEventListener(y.close,e);for(var n=0;n<l.length;n++)if(l[n]===e){l.splice(n,1);break}t[y.release]()}function E(){var e=null,t=function(){r.removeEventListener("loadedmetadata",e),r[y.setMediaKeys](a),m.trigger(p.VIDEO_ELEMENT_SELECTED)};r.readyState>=1?t():(e=t.bind(this),r.addEventListener("loadedmetadata",e))}return t={getAllInitData:function(){for(var e=[],t=0;t<l.length;t++)e.push(l[t].initData);return e},getSessions:function(){return l},requestKeySystemAccess:function(e){return new Promise(function(t,n){for(var r=!1,i=0;i<e.length;i++)for(var a=e[i].ks.systemString,s=e[i].configs,l=null,u=null,d=0;d<s.length;d++){var f=s[d].audioCapabilities,h=s[d].videoCapabilities;if(f&&0!==f.length){l=[];for(var g=0;g<f.length;g++)window[y.MediaKeys].isTypeSupported(a,f[g].contentType)&&l.push(f[g])}if(h&&0!==h.length){u=[];for(var _=0;_<h.length;_++)window[y.MediaKeys].isTypeSupported(a,h[_].contentType)&&u.push(h[_])}if(!(!l&&!u||l&&0===l.length||u&&0===u.length)){r=!0;var v=new o(l,u),E=c.getKeySystemBySystemString(a),b=new de(E,v);m.trigger(p.KEY_SYSTEM_ACCESS_COMPLETE,{data:b}),t({data:b});break}}if(!r){var T="Key system access denied! -- No valid audio/video content configurations detected!";m.trigger(p.KEY_SYSTEM_ACCESS_COMPLETE,{error:T}),n({error:T})}})},selectKeySystem:function(e){return new Promise(function(t,n){try{a=e.mediaKeys=new window[y.MediaKeys](e.keySystem.systemString),i=e.keySystem,s=e,r&&E(),t(i)}catch(e){n({error:"Error selecting keys system ("+i.systemString+")! Could not create MediaKeys -- TODO"})}})},setMediaElement:function(e){r!==e&&(r&&r.removeEventListener(y.needkey,u),(r=e)&&(r.addEventListener(y.needkey,u),a&&E()))},createKeySession:function(e){if(!i||!a||!s)throw new Error("Can not create sessions until you have selected a key system");var t=null;if(s.ksConfiguration.videoCapabilities&&s.ksConfiguration.videoCapabilities.length>0&&(t=s.ksConfiguration.videoCapabilities[0]),null===t&&s.ksConfiguration.audioCapabilities&&s.ksConfiguration.audioCapabilities.length>0&&(t=s.ksConfiguration.audioCapabilities[0]),null===t)throw new Error("Can not create sessions for unknown content types.");var r=t.contentType,o=a.createSession(r,new Uint8Array(e.initData),e.cdmData?new Uint8Array(e.cdmData):null),u=function(e,t){return{session:e,keyId:t.keyId,initData:t.initData,getKeyId:function(){return this.keyId},getSessionId:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(e){switch(e.type){case y.error:m.trigger(p.KEY_ERROR,{error:new h.Z(f.MEDIA_KEYERR_CODE,"KeyError",this)});break;case y.message:var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;m.trigger(p.INTERNAL_KEY_MESSAGE,{data:new ce(this,t,e.destinationURL)});break;case y.ready:n.debug("DRM: Key added."),m.trigger(p.KEY_ADDED);break;case y.close:n.debug("DRM: Session closed. SessionID = "+this.getSessionId()),m.trigger(p.KEY_SESSION_CLOSED,{data:this.getSessionId()})}}}}(o,e);o.addEventListener(y.error,u),o.addEventListener(y.message,u),o.addEventListener(y.ready,u),o.addEventListener(y.close,u),l.push(u),n.debug("DRM: Session created. SessionID = "+u.getSessionId()),m.trigger(p.KEY_SESSION_CREATED,{data:u})},updateKeySession:function(e,t){var n=e.session;c.isClearKey(i)?n.update(new Uint8Array(t.toJWK())):n.update(new Uint8Array(t)),m.trigger(p.KEY_SESSION_UPDATED)},closeKeySession:v,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},stop:_,reset:_},n=g.getLogger(t),r=null,i=null,a=null,s=null,l=[],c=re(d).getInstance(),u={handleEvent:function(e){if(e.type===y.needkey&&e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;m.trigger(p.NEED_KEY,{key:new ue(t,"cenc")})}}},t}pe.__dashjs_factory_name="ProtectionModel_3Feb2014";var ge=dashjs.FactoryMaker.getClassFactory(pe);function ye(e){e=e||{};var t,n,r,i,a,s,l,u,c,d=this.context,m=e.eventBus,p=e.events,g=e.debug,y=e.api,_=e.errHandler;function v(){r&&T();for(var e=0;e<l.length;e++)E(l[e]);m.trigger(p.TEARDOWN_COMPLETE)}function E(e){try{r[y.cancelKeyRequest](i.systemString,e.sessionId)}catch(t){m.trigger(p.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+e.sessionId+") "+t.message})}}function b(e,t){if(t&&e){for(var n=e.length,r=0;r<n;r++)if(e[r].sessionId==t)return e[r];return null}return null}function T(){r.removeEventListener(y.keyerror,c),r.removeEventListener(y.needkey,c),r.removeEventListener(y.keymessage,c),r.removeEventListener(y.keyadded,c)}return t={getAllInitData:function(){for(var e=[],t=0;t<s.length;t++)e.push(s[t].initData);for(var n=0;n<l.length;n++)e.push(l[n].initData);return e},getSessions:function(){return l.concat(s)},requestKeySystemAccess:function(e){return new Promise(function(t,n){var i=r;i||(i=document.createElement("video"));for(var s=!1,l=0;l<e.length;l++)for(var u=e[l].ks.systemString,c=e[l].configs,d=null,f=0;f<c.length;f++){var h=c[f].videoCapabilities;if(h&&0!==h.length){d=[];for(var g=0;g<h.length;g++)""!==i.canPlayType(h[g].contentType,u)&&d.push(h[g])}
vendor: 32,476 bytes, line 2
2if(d&&(!d||0!==d.length)){s=!0;var y=new o(null,d),_=a.getKeySystemBySystemString(u),v=new de(_,y);m.trigger(p.KEY_SYSTEM_ACCESS_COMPLETE,{data:v}),t({data:v});break}}if(!s){var E="Key system access denied! -- No valid audio/video content configurations detected!";m.trigger(p.KEY_SYSTEM_ACCESS_COMPLETE,{error:E}),n({error:E})}})},selectKeySystem:function(e){return i=e.keySystem,Promise.resolve(i)},setMediaElement:function(e){if(r!==e){if(r){T();for(var t=0;t<l.length;t++)E(l[t]);l=[]}(r=e)&&(r.addEventListener(y.keyerror,c),r.addEventListener(y.needkey,c),r.addEventListener(y.keymessage,c),r.addEventListener(y.keyadded,c),m.trigger(p.VIDEO_ELEMENT_SELECTED))}},createKeySession:function(e){if(!i)throw new Error("Can not create sessions until you have selected a key system");if(u||0===l.length){var t={sessionId:null,keyId:e.keyId,initData:e.initData,getKeyId:function(){return this.keyId},getSessionId:function(){return this.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"}};return s.push(t),r[y.generateKeyRequest](i.systemString,new Uint8Array(e.initData)),t}throw new Error("Multiple sessions not allowed!")},updateKeySession:function(e,t){var n=e.sessionId;if(a.isClearKey(i))for(var s=0;s<t.keyPairs.length;s++)r[y.addKey](i.systemString,t.keyPairs[s].key,t.keyPairs[s].keyID,n);else r[y.addKey](i.systemString,new Uint8Array(t),new Uint8Array(e.initData),n);m.trigger(p.KEY_SESSION_UPDATED)},closeKeySession:E,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},stop:v,reset:v},n=g.getLogger(t),r=null,i=null,s=[],l=[],a=re(d).getInstance(),c={handleEvent:function(e){var t=null;switch(e.type){case y.needkey:var r=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;m.trigger(p.NEED_KEY,{key:new ue(r,"cenc")});break;case y.keyerror:if((t=b(l,e.sessionId))||(t=b(s,e.sessionId)),t){var i=f.MEDIA_KEYERR_CODE,a="";switch(e.errorCode.code){case 1:i=f.MEDIA_KEYERR_UNKNOWN_CODE,a+="MEDIA_KEYERR_UNKNOWN - "+f.MEDIA_KEYERR_UNKNOWN_MESSAGE;break;case 2:i=f.MEDIA_KEYERR_CLIENT_CODE,a+="MEDIA_KEYERR_CLIENT - "+f.MEDIA_KEYERR_CLIENT_MESSAGE;break;case 3:i=f.MEDIA_KEYERR_SERVICE_CODE,a+="MEDIA_KEYERR_SERVICE - "+f.MEDIA_KEYERR_SERVICE_MESSAGE;break;case 4:i=f.MEDIA_KEYERR_OUTPUT_CODE,a+="MEDIA_KEYERR_OUTPUT - "+f.MEDIA_KEYERR_OUTPUT_MESSAGE;break;case 5:i=f.MEDIA_KEYERR_HARDWARECHANGE_CODE,a+="MEDIA_KEYERR_HARDWARECHANGE - "+f.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE;break;case 6:i=f.MEDIA_KEYERR_DOMAIN_CODE,a+="MEDIA_KEYERR_DOMAIN - "+f.MEDIA_KEYERR_DOMAIN_MESSAGE}a+=" System Code = "+e.systemCode,m.trigger(p.KEY_ERROR,{error:new h.Z(i,a,t)})}else n.error("No session token found for key error");break;case y.keyadded:(t=b(l,e.sessionId))||(t=b(s,e.sessionId)),t?(n.debug("DRM: Key added."),m.trigger(p.KEY_ADDED,{data:t})):n.debug("No session token found for key added");break;case y.keymessage:if((u=null!==e.sessionId&&void 0!==e.sessionId)?!(t=b(l,e.sessionId))&&s.length>0&&(t=s.shift(),l.push(t),t.sessionId=e.sessionId,m.trigger(p.KEY_SESSION_CREATED,{data:t})):s.length>0&&(t=s.shift(),l.push(t),0!==s.length&&_.error(new h.Z(f.MEDIA_KEY_MESSAGE_ERROR_CODE,f.MEDIA_KEY_MESSAGE_ERROR_MESSAGE))),t){var o=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;t.keyMessage=o,m.trigger(p.INTERNAL_KEY_MESSAGE,{data:new ce(t,o,e.defaultURL)})}else n.warn("No session token found for key message")}}},t}ye.__dashjs_factory_name="ProtectionModel_01b";var _e=dashjs.FactoryMaker.getClassFactory(ye),ve=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],Ee=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];function be(){var e,t=this.context;function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("function"==typeof e[r[Object.keys(r)[0]]])return r}return null}return e={createProtectionSystem:function(r){var i=null,a=re(t).getInstance();a.setConfig({debug:r.debug,BASE64:r.BASE64,settings:r.settings}),a.initialize();var s=function(r){var i=r.debug,a=i.getLogger(e),s=r.eventBus,o=r.errHandler,l=r.videoModel?r.videoModel.getElement():null;return l&&void 0===l.onencrypted||l&&void 0===l.mediaKeys?n(l,Ee)?(a.info("EME detected on this user agent! (ProtectionModel_3Feb2014)"),ge(t).create({debug:i,eventBus:s,events:r.events,api:n(l,Ee)})):n(l,ve)?(a.info("EME detected on this user agent! (ProtectionModel_01b)"),_e(t).create({debug:i,eventBus:s,errHandler:o,events:r.events,api:n(l,ve)})):(a.warn("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null):(a.info("EME detected on this user agent! (ProtectionModel_21Jan2015)"),me(t).create({debug:i,eventBus:s,events:r.events}))}(r);return!i&&s&&(i=T(t).create({protectionModel:s,protectionKeyController:a,eventBus:r.eventBus,debug:r.debug,events:r.events,BASE64:r.BASE64,constants:r.constants,cmcdModel:r.cmcdModel,customParametersModel:r.customParametersModel,settings:r.settings}),r.capabilities.setEncryptedMediaSupported(!0)),i}}}be.__dashjs_factory_name="Protection";var Te=dashjs.FactoryMaker.getClassFactory(be);Te.events=le,Te.errors=f,dashjs.FactoryMaker.updateClassFactory(be.__dashjs_factory_name,Te);var Se=Te},2068:function(e,t,n){"use strict";var r=n(5448),i={DEFAULT:.5,STRONG:1,WEAK:0};function a(e,t,n){var r,a;return r=void 0===e?-1:e,a=function(e){var t=i.DEFAULT;return e!==i.DEFAULT&&e!==i.STRONG&&e!==i.WEAK||(t=e),t}(n),{quality:r,reason:void 0===t?null:t,priority:a}}a.__dashjs_factory_name="SwitchRequest";var s=r.Z.getClassFactory(a);s.NO_CHANGE=-1,s.PRIORITY=i,r.Z.updateClassFactory(a.__dashjs_factory_name,s),t.Z=s},1767:function(e,t,n){"use strict";var r=n(5628),i=n(6535),a=n(7423),s=n(895),o=n(6070),l=n(3112),u=n(1914),c=n(5435),d=n(5448),f=n(2068),h=n(3393),m="qualitySwitchRules",p="abandonFragmentRules";function g(e){e=e||{};var t,n,d=this.context,g=e.mediaPlayerModel,y=e.customParametersModel,_=e.dashMetrics,v=e.settings;function E(e){return e.filter(function(e){return e.quality>f.Z.NO_CHANGE})}function b(e){var t,n,r,i,a,s={},o=null;if(0!==e.length){for(s[f.Z.PRIORITY.STRONG]={quality:f.Z.NO_CHANGE,reason:null},s[f.Z.PRIORITY.WEAK]={quality:f.Z.NO_CHANGE,reason:null},s[f.Z.PRIORITY.DEFAULT]={quality:f.Z.NO_CHANGE,reason:null},t=0,n=e.length;t<n;t+=1)(r=e[t]).quality!==f.Z.NO_CHANGE&&(s[r.priority].quality===f.Z.NO_CHANGE||s[r.priority].quality>r.quality)&&(s[r.priority].quality=r.quality,s[r.priority].reason=r.reason||null);return s[f.Z.PRIORITY.WEAK].quality!==f.Z.NO_CHANGE&&(o=s[f.Z.PRIORITY.WEAK]),s[f.Z.PRIORITY.DEFAULT].quality!==f.Z.NO_CHANGE&&(o=s[f.Z.PRIORITY.DEFAULT]),s[f.Z.PRIORITY.STRONG].quality!==f.Z.NO_CHANGE&&(o=s[f.Z.PRIORITY.STRONG]),o&&(i=o.quality,a=o.reason),(0,f.Z)(d).create(i,a)}}return{initialize:function(){t=[],n=[],v.get().streaming.abr.useDefaultABRRules&&(v.get().streaming.abr.ABRStrategy===h.Z.ABR_STRATEGY_L2A?t.push((0,u.Z)(d).create({dashMetrics:_,settings:v})):v.get().streaming.abr.ABRStrategy===h.Z.ABR_STRATEGY_LoLP?t.push((0,c.Z)(d).create({dashMetrics:_})):(t.push((0,l.Z)(d).create({dashMetrics:_,mediaPlayerModel:g,settings:v})),t.push((0,r.Z)(d).create({dashMetrics:_})),v.get().streaming.abr.additionalAbrRules.insufficientBufferRule&&t.push((0,i.Z)(d).create({dashMetrics:_,settings:v})),v.get().streaming.abr.additionalAbrRules.switchHistoryRule&&t.push((0,o.Z)(d).create()),v.get().streaming.abr.additionalAbrRules.droppedFramesRule&&t.push((0,s.Z)(d).create()),v.get().streaming.abr.additionalAbrRules.abandonRequestsRule&&n.push((0,a.Z)(d).create({dashMetrics:_,mediaPlayerModel:g,settings:v})))),y.getAbrCustomRules().forEach(function(e){e.type===m&&t.push(e.rule(d).create()),e.type===p&&n.push(e.rule(d).create())})},reset:function(){[t,n].forEach(function(e){e&&e.length&&e.forEach(function(e){return e.reset&&e.reset()})}),t=[],n=[]},getMaxQuality:function(e){return b(E(t.map(function(t){return t.getMaxIndex(e)})))||(0,f.Z)(d).create()},getMinSwitchRequest:b,shouldAbandonFragment:function(e,t){var r=b(E(n.map(function(n){return n.shouldAbandon(e,t)})));return r&&(r.reason.forceAbandon=!0),r||(0,f.Z)(d).create()},getQualitySwitchRules:function(){return t}}}g.__dashjs_factory_name="ABRRulesCollection";var y=d.Z.getClassFactory(g);y.QUALITY_SWITCH_RULES=m,y.ABANDON_FRAGMENT_RULES=p,d.Z.updateSingletonFactory(g.__dashjs_factory_name,y),t.Z=y},7423:function(e,t,n){"use strict";var r=n(2068),i=n(5448),a=n(6398);function s(e){e=e||{};var t,n,i,o,l,u=this.context,c=e.mediaPlayerModel,d=e.dashMetrics,f=e.settings;function h(){i={},o={},l=[]}return t={shouldAbandon:function(e){var t=(0,r.Z)(u).create(r.Z.NO_CHANGE,{name:s.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var a,h,m=e.getMediaInfo(),p=e.getMediaType(),g=e.getStreamInfo(),y=g?g.id:null,_=e.getCurrentRequest();if(!isNaN(_.index)){a=p,h=_.index,i[a]=i[a]||{},i[a][h]=i[a][h]||{};var v=c.getStableBufferTime();if(d.getCurrentBufferLevel(p)>v)return t;var E=i[p][_.index];if(null===E||null===_.firstByteDate||o.hasOwnProperty(E.id))return t;if(void 0===E.firstByteTime&&(l[p]=[],E.firstByteTime=_.firstByteDate.getTime(),E.segmentDuration=_.duration,E.bytesTotal=_.bytesTotal,E.id=_.index),E.bytesLoaded=_.bytesLoaded,E.elapsedTime=(new Date).getTime()-E.firstByteTime,E.bytesLoaded>0&&E.elapsedTime>0&&function(e,t){l[e]=l[e]||[],l[e].push(t)}(p,Math.round(8*E.bytesLoaded/E.elapsedTime)),l[p].length>=f.get().streaming.abr.abrRulesParameters.abandonRequestsRule.minLengthToAverage&&E.elapsedTime>f.get().streaming.abr.abrRulesParameters.abandonRequestsRule.graceTimeThreshold&&E.bytesLoaded<E.bytesTotal){var b=l[p].reduce(function(e,t){return e+t},0);if(E.measuredBandwidthInKbps=Math.round(b/l[p].length),E.estimatedTimeOfDownload=+(8*E.bytesTotal/E.measuredBandwidthInKbps/1e3).toFixed(2),E.estimatedTimeOfDownload<E.segmentDuration*f.get().streaming.abr.abrRulesParameters.abandonRequestsRule.abandonMultiplier||0===e.getRepresentationInfo().quality)return t;if(!o.hasOwnProperty(E.id)){var T=e.getAbrController(),S=E.bytesTotal-E.bytesLoaded,w=T.getBitrateList(m),L=T.getQualityForBitrate(m,E.measuredBandwidthInKbps*f.get().streaming.abr.bandwidthSafetyFactor,y),A=T.getMinAllowedIndexFor(p,y),M=void 0!==A?Math.max(A,L):L;S>E.bytesTotal*w[M].bitrate/w[T.getQualityFor(p,y)].bitrate&&(t.quality=M,t.reason.throughput=E.measuredBandwidthInKbps,t.reason.fragmentID=E.id,t.reason.rule=this.getClassName(),o[E.id]=E,n.debug("["+p+"] frag id",E.id," is asking to abandon and switch to quality to ",M," measured bandwidth was",E.measuredBandwidthInKbps),delete i[p][E.id])}}else E.bytesLoaded===E.bytesTotal&&delete i[p][E.id]}return t},reset:h},n=(0,a.Z)(u).getInstance().getLogger(t),h(),t}s.__dashjs_factory_name="AbandonRequestsRule",t.Z=i.Z.getClassFactory(s)},3112:function(e,t,n){"use strict";var r=n(3860),i=n(2068),a=n(5448),s=n(7855),o=n(5595),l=n(8512),u=n(6398),c=n(8825),d=n(3393),f=10;function h(e){e=e||{};var t,n,a,h=this.context,m=e.dashMetrics,p=e.mediaPlayerModel,g=(0,o.Z)(h).getInstance();function y(e,t,n){var r=n.reduce(function(e,t,r){return t>n[e]?r:e},0);if(0===r)return null;var i=Math.max(e,f+2*t.length),a=(n[r]-1)/(i/f-1);return{gp:a,Vp:f/a}}function _(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function v(e,t){var n=p.getStableBufferTime();if(e.stableBufferTime!==n){var r=y(n,e.bitrates,e.utilities);if(r.Vp!==e.Vp||r.gp!==e.gp){var i=m.getCurrentBufferLevel(t),a=i+e.placeholderBuffer;a-=f,a*=r.Vp/e.Vp,a+=f,e.stableBufferTime=n,e.Vp=r.Vp,e.gp=r.gp,e.placeholderBuffer=Math.max(0,a-i)}}}function E(e,t){return e.Vp*(e.utilities[t]+e.gp)}function b(e,t){for(var n=e.bitrates[t],r=e.utilities[t],i=0,a=t-1;a>=0;--a)if(e.utilities[a]<e.utilities[t]){var s=e.bitrates[a],o=e.utilities[a],l=e.Vp*(e.gp+(n*o-s*r)/(n-s));i=Math.max(i,l)}return i}function T(e){var t=e.mediaType===d.Z.AUDIO?[d.Z.AUDIO]:a;for(var n in t)a.hasOwnProperty(n)&&2===a[n].state&&(a[n].placeholderBuffer=0)}function S(){for(var e in a)if(a.hasOwnProperty(e)){var t=a[e];0!==t.state&&(t.state=1,_(t))}}function w(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=a[e.chunk.mediaInfo.type];if(t&&0!==t.state){var n=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||n>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=n,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=n,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,A(t,e.chunk.mediaInfo.type)}}}function L(e){if(e&&e.metric===r.Z.HTTP_REQUEST&&e.value&&e.value.type===s.w.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=a[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),A(t,e.mediaType))}}function A(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=.99,!isNaN(e.lastSegmentFinishTimeMs)){var n=m.getCurrentBufferLevel(t)+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),r=E(e,e.lastQuality),i=Math.max(0,r-n);e.placeholderBuffer=Math.min(i,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function M(e){if(e){var t=a[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function D(e){if(e){var t=a[e.mediaType];if(t&&0!==t.state){var n,r=m.getCurrentBufferLevel(e.mediaType);n=t.abrQuality>0?b(t,t.abrQuality):f;var i=Math.max(0,n-r);t.placeholderBuffer=Math.min(t.placeholderBuffer,i)}}}function k(){a={}}return t={getMaxIndex:function(e){var t=(0,i.Z)(h).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useBufferOccupancyABR")))return t;var r=e.getMediaInfo(),s=e.getMediaType(),o=e.getScheduleController(),l=e.getStreamInfo(),u=e.getAbrController(),c=u.getThroughputHistory(),d=l?l.id:null,f=l&&l.manifestInfo&&l.manifestInfo.isDynamic,g=e.useBufferOccupancyABR();if(t.reason=t.reason||{},!g)return t;o.setTimeToLoadDelay(0);var T=function(e){var t=e.getMediaType(),n=a[t];return n?0!==n.state&&v(n,t):(n=function(e){var t={},n=e.getMediaInfo().bitrateList.map(function(e){return e.bandwidth}),r=function(e){return e.map(function(e){return Math.log(e)})}(n);r=r.map(function(e){return e-r[0]+1});var i=p.getStableBufferTime(),a=y(i,n,r);return a?(t.state=1,t.bitrates=n,t.utilities=r,t.stableBufferTime=i,t.Vp=a.Vp,t.gp=a.gp,t.lastQuality=0,_(t)):t.state=0,t}(e),a[t]=n),n}(e);if(0===T.state)return t;var S,w=m.getCurrentBufferLevel(s),L=c.getAverageThroughput(s,f),A=c.getSafeAverageThroughput(s,f),M=c.getAverageLatency(s);if(t.reason.state=T.state,t.reason.throughput=L,t.reason.latency=M,isNaN(L))return t;switch(T.state){case 1:S=u.getQualityForBitrate(r,A,d,M),t.quality=S,t.reason.throughput=A,T.placeholderBuffer=Math.max(0,b(T,S)-w),T.lastQuality=S,!isNaN(T.lastSegmentDurationS)&&w>=T.lastSegmentDurationS&&(T.state=2);break;case 2:!function(e,t){var n=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){var r=.001*(n-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,r)}}else{var i=.001*(n-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,i)}e.lastCallTimeMs=n,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,v(e,t)}(T,s),S=function(e,t){for(var n=e.bitrates.length,r=NaN,i=NaN,a=0;a<n;++a){var s=(e.Vp*(e.utilities[a]+e.gp)-t)/e.bitrates[a];(isNaN(i)||s>=i)&&(i=s,r=a)}return r}(T,w+T.placeholderBuffer);var D=u.getQualityForBitrate(r,A,d,M);S>T.lastQuality&&S>D&&(S=Math.max(D,T.lastQuality));var k=Math.max(0,w+T.placeholderBuffer-E(T,S));k<=T.placeholderBuffer?(T.placeholderBuffer-=k,k=0):(k-=T.placeholderBuffer,T.placeholderBuffer=0,S<u.getMaxAllowedIndexFor(s,d)?o.setTimeToLoadDelay(1e3*k):k=0),t.quality=S,t.reason.throughput=L,t.reason.latency=M,t.reason.bufferLevel=w,t.reason.placeholderBuffer=T.placeholderBuffer,t.reason.delay=k,T.lastQuality=S;break;default:n.debug("BOLA ABR rule invoked in bad state."),t.quality=u.getQualityForBitrate(r,A,d,M),t.reason.state=T.state,t.reason.throughput=A,t.reason.latency=M,T.state=1,_(T)}return t},reset:function(){k(),g.off(c.Z.BUFFER_EMPTY,T,t),g.off(c.Z.PLAYBACK_SEEKING,S,t),g.off(c.Z.METRIC_ADDED,L,t),g.off(c.Z.QUALITY_CHANGE_REQUESTED,M,t),g.off(c.Z.FRAGMENT_LOADING_ABANDONED,D,t),g.off(l.Z.MEDIA_FRAGMENT_LOADED,w,t)}},n=(0,u.Z)(h).getInstance().getLogger(t),k(),g.on(c.Z.BUFFER_EMPTY,T,t),g.on(c.Z.PLAYBACK_SEEKING,S,t),g.on(c.Z.METRIC_ADDED,L,t),g.on(c.Z.QUALITY_CHANGE_REQUESTED,M,t),g.on(c.Z.FRAGMENT_LOADING_ABANDONED,D,t),g.on(l.Z.MEDIA_FRAGMENT_LOADED,w,t),t}h.__dashjs_factory_name="BolaRule",t.Z=a.Z.getClassFactory(h)},895:function(e,t,n){"use strict";var r=n(5448),i=n(2068),a=n(6398);function s(){var e,t,n=this.context;return e={getMaxIndex:function(e){var r=(0,i.Z)(n).create();if(!e||!e.hasOwnProperty("getDroppedFramesHistory"))return r;var a=e.getDroppedFramesHistory(),s=e.getStreamInfo().id;if(a){var o=a.getFrameHistory(s);if(!o||0===o.length)return r;for(var l=0,u=0,c=i.Z.NO_CHANGE,d=1;d<o.length;d++)if(o[d]&&(l=o[d].droppedVideoFrames,(u=o[d].totalVideoFrames)>375&&l/u>.15)){c=d-1,t.debug("index: "+c+" Dropped Frames: "+l+" Total Frames: "+u);break}return(0,i.Z)(n).create(c,{droppedFrames:l})}return r}},t=(0,a.Z)(n).getInstance().getLogger(e),e}s.__dashjs_factory_name="DroppedFramesRule",t.Z=r.Z.getClassFactory(s)},6535:function(e,t,n){"use strict";var r=n(5595),i=n(8512),a=n(5448),s=n(6398),o=n(2068),l=n(3393),u=n(3860),c=n(8825);function d(e){e=e||{};var t,n,a,d=this.context,f=(0,r.Z)(d).getInstance(),h=e.dashMetrics;function m(){(a={})[l.Z.VIDEO]={ignoreCount:2},a[l.Z.AUDIO]={ignoreCount:2}}function p(){m()}function g(e){isNaN(e.startTime)||e.mediaType!==l.Z.AUDIO&&e.mediaType!==l.Z.VIDEO||a[e.mediaType].ignoreCount>0&&a[e.mediaType].ignoreCount--}return t={getMaxIndex:function(e){var t=(0,o.Z)(d).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;!function(){if(!h||!h.hasOwnProperty("getCurrentBufferLevel")||!h.hasOwnProperty("getCurrentBufferState"))throw new Error(l.Z.MISSING_CONFIG_ERROR)}();var r=e.getMediaType(),i=h.getCurrentBufferState(r),s=e.getRepresentationInfo().fragmentDuration,c=e.getStreamInfo(),f=c?c.id:null,m=e.getScheduleController(),p=c&&c.manifestInfo&&c.manifestInfo.isDynamic;if(function(e,t){return!e&&a[t].ignoreCount>0}(m.getPlaybackController().getLowLatencyModeEnabled(),r)||!s)return t;if(i&&i.state===u.Z.BUFFER_EMPTY)n.debug("["+r+"] Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var g=e.getMediaInfo(),y=e.getAbrController(),_=y.getThroughputHistory(),v=h.getCurrentBufferLevel(r),E=_.getAverageThroughput(r,p),b=_.getAverageLatency(r),T=E*(v/s)*.5;t.quality=y.getQualityForBitrate(g,T,f,b),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t},reset:function(){m(),f.off(c.Z.PLAYBACK_SEEKING,p,t),f.off(i.Z.BYTES_APPENDED_END_FRAGMENT,g,t)}},n=(0,s.Z)(d).getInstance().getLogger(t),m(),f.on(c.Z.PLAYBACK_SEEKING,p,t),f.on(i.Z.BYTES_APPENDED_END_FRAGMENT,g,t),t}d.__dashjs_factory_name="InsufficientBufferRule",t.Z=a.Z.getClassFactory(d)},1914:function(e,t,n){"use strict";var r=n(3860),i=n(2068),a=n(5448),s=n(7855),o=n(5595),l=n(8512),u=n(6398),c=n(3393);function d(e){e=e||{};var t,n,a,d,f=this.context,h=e.dashMetrics,m=(0,o.Z)(f).getInstance();function p(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,e.lastSegmentUrl=""}function g(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];0!==t.state&&(t.state=1,p(t))}}function y(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=n[e.chunk.mediaInfo.type],r=a[e.chunk.mediaInfo.type];if(t&&0!==t.state){var i=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||i>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=i,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=i,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,v(t,r)}}}function _(e){if(e&&e.metric===r.Z.HTTP_REQUEST&&e.value&&e.value.type===s.w.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=n[e.mediaType],i=a[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),v(t,i))}}function v(e,t){isNaN(e.lastSegmentStart)||isNaN(e.lastSegmentRequestTimeMs)||(t.segment_request_start_s=.001*e.lastSegmentRequestTimeMs,t.segment_download_finish_s=.001*e.lastSegmentFinishTimeMs,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN)}function E(e){if(e&&e.mediaType){var t=n[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function b(e,t){if(e.length!==t.length)return-1;for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function T(){n={},a={}}return t={getMaxIndex:function(e){var t,r=(0,i.Z)(f).create(),o=Math.pow(4,.99),l=Math.max(Math.pow(4,1),o*Math.sqrt(4)),u=e.getMediaInfo(),m=e.getMediaType(),g=u.bitrateList.map(function(e){return e.bandwidth}),y=g.length,_=e.getScheduleController(),v=e.getStreamInfo(),E=e.getAbrController(),T=E.getThroughputHistory(),S=v&&v.manifestInfo&&v.manifestInfo.isDynamic,w=e.useL2AABR(),L=h.getCurrentBufferLevel(m,!0),A=T.getSafeAverageThroughput(m,S),M=T.getAverageThroughput(m,S),D=T.getAverageLatency(m),k=e.getVideoModel().getPlaybackRate();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useL2AABR")))return r;if(r.reason=r.reason||{},!w||m===c.Z.AUDIO)return r;_.setTimeToLoadDelay(0);var I=function(e){var t=e.getMediaType(),r=n[t];return r||(r=function(e){var t={},n=e.getMediaInfo(),r=n.bitrateList.map(function(e){return e.bandwidth/1e3});return t.state=1,t.bitrates=r,t.lastQuality=0,function(e){e&&e.type&&(a[e.type]={},a[e.type].w=[],a[e.type].prev_w=[],a[e.type].Q=0,a[e.type].segment_request_start_s=0,a[e.type].segment_download_finish_s=0,a[e.type].B_target=1.5)}(n),p(t),t}(e),n[t]=r),r}(e);if(0===I.state)return r;var R=a[m];if(!R)return r;if(r.reason.state=I.state,r.reason.throughput=M,r.reason.latency=D,isNaN(M))return r;switch(I.state){case 1:if(t=E.getQualityForBitrate(u,A,v.id,D),r.quality=t,r.reason.throughput=A,I.lastQuality=t,!isNaN(I.lastSegmentDurationS)&&L>=R.B_target){I.state=2,R.Q=o;for(var C=0;C<y;++C)C===I.lastQuality?R.prev_w[C]=1:R.prev_w[C]=0}break;case 2:var P=[],O=h.getCurrentHttpRequest(m).trace.reduce(function(e,t){return e+t.d},0),x=h.getCurrentHttpRequest(m).trace.reduce(function(e,t){return e+t.b[0]},0),N=Math.round(8*x/O),F=h.getCurrentHttpRequest(m);if(N<1&&(N=1),F.url===I.lastSegmentUrl||F.type===s.w.INIT_SEGMENT_TYPE)t=I.lastQuality;else{for(var Y=I.lastSegmentDurationS,U=1,B=0;B<y;++B)g[B]=g[B]/1e3,k*g[B]>N&&(U=-1),R.w[B]=R.prev_w[B]+U*(Y/(2*l))*((R.Q+o)*(k*g[B]/N));R.w=function(e){for(var t=e.length,n=!1,r=[],i=0;i<t;++i)r[i]=e[i];for(var a=e.sort(function(e,t){return t-e}),s=0,o=0,l=[],u=0;u<t-1;++u)if((o=((s+=a[u])-1)/(u+1))>=a[u+1]){n=!0;break}n||(o=(s+a[t-1]-1)/t);for(var c=0;c<t;++c)l[c]=Math.max(r[c]-o,0);return l}(R.w);for(var j=0;j<y;++j)P[j]=R.w[j]-R.prev_w[j],R.prev_w[j]=R.w[j];R.Q=Math.max(0,R.Q-Y+Y*k*((b(g,R.prev_w)+b(g,P))/N));for(var H=[],G=0;G<y;++G)H[G]=Math.abs(g[G]-b(R.w,g));(t=H.indexOf(Math.min.apply(Math,H)))>I.lastQuality&&g[I.lastQuality+1]<=N&&(t=I.lastQuality+1),g[t]>=N&&(R.Q=2*Math.max(o,R.Q)),I.lastSegmentUrl=F.url}r.quality=t,r.reason.throughput=M,r.reason.latency=D,r.reason.bufferLevel=L,I.lastQuality=r.quality;break;default:d.debug("L2A ABR rule invoked in bad state."),r.quality=E.getQualityForBitrate(u,A,v.id,D),r.reason.state=I.state,r.reason.throughput=A,r.reason.latency=D,I.state=1,p(I)}return r},reset:function(){T(),m.off(l.Z.PLAYBACK_SEEKING,g,t),m.off(l.Z.MEDIA_FRAGMENT_LOADED,y,t),m.off(l.Z.METRIC_ADDED,_,t),m.off(l.Z.QUALITY_CHANGE_REQUESTED,E,t)}},d=(0,u.Z)(f).getInstance().getLogger(t),T(),m.on(l.Z.PLAYBACK_SEEKING,g,t),m.on(l.Z.MEDIA_FRAGMENT_LOADED,y,t),m.on(l.Z.METRIC_ADDED,_,t),m.on(l.Z.QUALITY_CHANGE_REQUESTED,E,t),t}d.__dashjs_factory_name="L2ARule",t.Z=a.Z.getClassFactory(d)},6070:function(e,t,n){"use strict";var r=n(5448),i=n(6398),a=n(2068);function s(){var e,t,n=this.context;return e={getMaxIndex:function(e){for(var r=e?e.getSwitchHistory():null,i=r?r.getSwitchRequests():[],s=0,o=0,l=0,u=(0,a.Z)(n).create(),c=0;c<i.length;c++)if(void 0!==i[c]&&(s+=i[c].drops,o+=i[c].noDrops,l+=i[c].dropSize,s+o>=6&&s/o>.075)){u.quality=c>0&&i[c].drops>0?c-1:c,u.reason={index:u.quality,drops:s,noDrops:o,dropSize:l},t.debug("Switch history rule index: "+u.quality+" samples: "+(s+o)+" drops: "+s);break}return u}},t=(0,i.Z)(n).getInstance().getLogger(e),e}s.__dashjs_factory_name="SwitchHistoryRule",t.Z=r.Z.getClassFactory(s)},5628:function(e,t,n){"use strict";var r=n(5448),i=n(2068),a=n(3393),s=n(3860);function o(e){e=e||{};var t=this.context,n=e.dashMetrics;return{getMaxIndex:function(e){var r=(0,i.Z)(t).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getScheduleController")))return r;!function(){if(!n||!n.hasOwnProperty("getCurrentBufferState"))throw new Error(a.Z.MISSING_CONFIG_ERROR)}();var o=e.getMediaInfo(),l=e.getMediaType(),u=n.getCurrentBufferState(l),c=e.getScheduleController(),d=e.getAbrController(),f=e.getStreamInfo(),h=f?f.id:null,m=f&&f.manifestInfo?f.manifestInfo.isDynamic:null,p=d.getThroughputHistory(),g=p.getSafeAverageThroughput(l,m),y=p.getAverageLatency(l),_=e.useBufferOccupancyABR();return isNaN(g)||!u||_||d.getAbandonmentStateFor(h,l)!==s.Z.ABANDON_LOAD&&(u.state===s.Z.BUFFER_LOADED||m)&&(r.quality=d.getQualityForBitrate(o,g,h,y),c.setTimeToLoadDelay(0),r.reason={throughput:g,latency:y}),r},reset:function(){}}}o.__dashjs_factory_name="ThroughputRule",t.Z=r.Z.getClassFactory(o)},4722:function(e,t,n){"use strict";var r=n(5448),i=n(6398);function a(){var e,t,n,r,a,s,o,l,u,c=this.context;function d(){n=null,r=1,a=100,s=0,o=null,l=null,u="dynamic_weight_selection"}function f(){var e=0;if(n)for(var t=0;t<n.length;t++){var r=n[t];r.state.throughput>e&&(e=r.state.throughput)}return e}function h(e,t,n){var r=e.map(function(e,r){return n[r]*Math.pow(e-t[r],2)}).reduce(function(e,t){return e+t});return(r<0?-1:1)*Math.sqrt(Math.abs(r))}function m(e,t){return h([e.state.throughput,e.state.latency,e.state.rebuffer,e.state.switch],[t.state.throughput,t.state.latency,t.state.rebuffer,t.state.switch],[1,1,1,1])}function p(e,t,n){for(var r=0;r<t.length;r++){var i=t[r],a=m(i,e);g(i,n,Math.exp(-1*Math.pow(a,2)/(2*Math.pow(.1,2))))}}function g(e,t,n){var r=e.state,i=[.01,.01,.01,.01];r.throughput=r.throughput+(t[0]-r.throughput)*i[0]*n,r.latency=r.latency+(t[1]-r.latency)*i[1]*n,r.rebuffer=r.rebuffer+(t[2]-r.rebuffer)*i[2]*n,r.switch=r.switch+(t[3]-r.switch)*i[3]*n}return e={getNextQuality:function(e,i,c,d,m,g,y){var _=c,v=d,E=i,b=function(e){if(!n){n=[];var t=e.bitrateList,i=[];s=t[0].bandwidth,t.forEach(function(e){i.push(e.bandwidth),e.bandwidth<s&&(s=e.bandwidth)}),u=i.map(function(e){return Math.pow(e,2)}).reduce(function(e,t){return e+t}),r=Math.sqrt(u);for(var a=0;a<t.length;a++){var o={qualityIndex:a,bitrate:t[a].bandwidth,state:{throughput:t[a].bandwidth/r,latency:0,rebuffer:0,switch:0}};n.push(o)}l=function(e){var t=[],n=function(e){for(var t=[],n=0;n<e;n++){var r=[Math.random()*f(),Math.random(),Math.random(),Math.random()];t.push(r)}return t}(Math.pow(e.length,2));t.push(n[0]);for(var r=[1,1,1,1],i=1;i<e.length;i++){for(var a=null,s=null,o=0;o<n.length;o++){for(var l=n[o],u=null,c=0;c<t.length;c++){var d=h(l,t[c],r);(null===u||d<u)&&(u=d)}(null===s||u>s)&&(a=l,s=u)}t.push(a)}for(var m=null,p=null,g=0;g<t.length;g++){for(var y=0,_=0;_<t.length;_++)g!==_&&(y+=h(t[g],t[_],r));(null===m||y>m)&&(m=y,p=g)}var v=[];for(v.push(t[p]),t.splice(p,1);t.length>0;){for(var E=null,b=null,T=0;T<t.length;T++){var S=h(v[0],t[T],r);(null===E||S<E)&&(E=S,b=T)}v.push(t[b]),t.splice(b,1)}return v}(n)}var u;return n}(e),T=i/r;T>1&&(T=f()),c/=a,t.debug("getNextQuality called throughput:".concat(T," latency:").concat(c," bufferSize:").concat(d," currentQualityIndex:").concat(g," playbackRate:").concat(m));var S=b[g],w=S.bitrate*y.getSegmentDuration()/E,L=Math.max(0,w-v);if(v-w<y.getMinBuffer())return t.debug("Buffer is low for bitrate= ".concat(S.bitrate," downloadTime=").concat(w," currentBuffer=").concat(v," rebuffer=").concat(L)),function(e,t){var r=0,i=e;if(n)for(var a=0;a<n.length;a++){var s=n[a];s.bitrate<e.bitrate&&s.bitrate>r&&t>s.bitrate&&(r=s.bitrate,i=s)}return i}(S,E).qualityIndex;switch(u){case"manual_weight_selection":o=[.4,.4,.4,.4];break;case"random_weight_selection":!function(e){o=function(e){for(var t=[],n=Math.sqrt(2/e),r=0;r<4;r++)t.push(Math.random()*n);return o=t}(e.length)}(b);break;default:!function(e,t,n,r,i,a,s){o||(o=l[l.length-1]);var u=e.findWeightVector(t,n,r,i,a,s);null!==u&&-1!==u&&(o=u)}(y,b,_,v,L,E,m)}for(var A=null,M=null,D=null,k=0;k<b.length;k++){var I=b[k],R=I.state,C=[R.throughput,R.latency,R.rebuffer,R.switch],P=o.slice(),O=y.getNextBufferWithBitrate(I.bitrate,v,E),x=O<y.getMinBuffer();x&&t.debug("Buffer is low for bitrate=".concat(I.bitrate," downloadTime=").concat(w," currentBuffer=").concat(v," nextBuffer=").concat(O)),(I.bitrate>i-1e4||x)&&I.bitrate!==s&&(P[0]=100);var N=h(C,[T,0,0,0],P);(null===A||N<A)&&(A=N,M=I.qualityIndex,D=I)}var F=Math.abs(S.bitrate-D.bitrate)/r;return p(S,b,[T,c,L,F]),p(D,b,[T,0,0,F]),M},reset:function(){d()}},t=(0,i.Z)(c).getInstance().getLogger(e),d(),e}a.__dashjs_factory_name="LearningAbrController",t.Z=r.Z.getClassFactory(a)},5317:function(e,t,n){"use strict";var r=n(5448),i=n(2298);function a(){var e,t,n,r,a;function s(){t=null,n=null,r=null,a=null}function o(e,t,n,r){var a=new i.Z;return a.type=e,a.weights.bitrateReward=t||1,a.weights.bitrateSwitchPenalty=1,a.weights.rebufferPenalty=n||1e3,a.weights.latencyPenalty=[],a.weights.latencyPenalty.push({threshold:1.1,penalty:.05*r}),a.weights.latencyPenalty.push({threshold:1e8,penalty:.1*n}),a.weights.playbackSpeedPenalty=r||200,a}function l(e,t,n,r,i){i.bitrateWSum+=i.weights.bitrateReward*e,i.lastBitrate&&(i.bitrateSwitchWSum+=i.weights.bitrateSwitchPenalty*Math.abs(e-i.lastBitrate)),i.lastBitrate=e,i.rebufferWSum+=i.weights.rebufferPenalty*t;for(var a=0;a<i.weights.latencyPenalty.length;a++){var s=i.weights.latencyPenalty[a];if(n<=s.threshold){i.latencyWSum+=s.penalty*n;break}}i.playbackSpeedWSum+=i.weights.playbackSpeedPenalty*Math.abs(1-r),i.totalQoe=i.bitrateWSum-i.bitrateSwitchWSum-i.rebufferWSum-i.latencyWSum-i.playbackSpeedWSum}return e={setupPerSegmentQoe:function(e,i,s){t=o("segment",e,i,s),n=e,r=i,a=s},logSegmentMetrics:function(e,n,r,i){t&&l(e,n,r,i,t)},getPerSegmentQoe:function(){return t},calculateSingleUseQoe:function(e,t,i,s){var u=null;return n&&r&&a&&(u=o("segment",n,r,a)),u?(l(e,t,i,s,u),u.totalQoe):0},reset:function(){s()}},s(),e}a.__dashjs_factory_name="LoLpQoeEvaluator",t.Z=r.Z.getClassFactory(a)},5435:function(e,t,n){"use strict";var r=n(6398),i=n(5448),a=n(4722),s=n(5317),o=n(2068),l=n(3860),u=n(6523),c=n(3393);function d(e){var t,n,i,d,f=(e=e||{}).dashMetrics,h=this.context;return n={getMaxIndex:function(e){try{var n=(0,o.Z)(h).create(),r=e.getMediaInfo().type,a=e.getAbrController(),s=e.getStreamInfo(),m=a.getQualityFor(r,
2s.id),p=e.getMediaInfo(),g=f.getCurrentBufferState(r),y=e.getScheduleController(),_=f.getCurrentBufferLevel(r,!0),v=s&&s.manifestInfo?s.manifestInfo.isDynamic:null,E=y.getPlaybackController(),b=E.getCurrentLiveLatency();if(!e.useLoLPABR()||r===c.Z.AUDIO)return n;b||(b=0);var T=E.getPlaybackRate(),S=a.getThroughputHistory().getSafeAverageThroughput(r,v);if(t.debug("Throughput ".concat(Math.round(S)," kbps")),isNaN(S)||!g)return n;if(a.getAbandonmentStateFor(s.id,r)===l.Z.ABANDON_LOAD)return n;for(var w=p.bitrateList,L=e.getRepresentationInfo().fragmentDuration,A=w[0].bandwidth/1e3,M=w[w.length-1].bandwidth/1e3,D=0;D<w.length;D++){var k=w[D].bandwidth/1e3;k>M?M=k:k<A&&(A=k)}var I=w[m].bandwidth/1e3,R=f.getCurrentHttpRequest(r,!0),C=(R.tresponse.getTime()-R.trequest.getTime())/1e3,P=C>L?C-L:0;d.setupPerSegmentQoe(L,M,A),d.logSegmentMetrics(I,P,b,T);var O=(0,u.Z)(h).create({targetLatency:1.5,bufferMin:.3,segmentDuration:L,qoeEvaluator:d});return n.quality=i.getNextQuality(p,1e3*S,b,_,T,m,O),n.reason={throughput:S,latency:b},n.priority=o.Z.PRIORITY.STRONG,y.setTimeToLoadDelay(0),n.quality!==m&&t.debug("[TgcLearningRule]["+r+"] requesting switch to index: ",n.quality,"Average throughput",Math.round(S),"kbps"),n}catch(e){throw e}},reset:function(){i.reset(),d.reset()}},t=(0,r.Z)(h).getInstance().getLogger(n),i=(0,a.Z)(h).create(),d=(0,s.Z)(h).create(),n}d.__dashjs_factory_name="LoLPRule",t.Z=i.Z.getClassFactory(d)},6523:function(e,t,n){"use strict";var r=n(5448);function i(e){var t,n,r,i,a=e.targetLatency,s=e.bufferMin,o=e.segmentDuration,l=e.qoeEvaluator;function u(){return o}function c(e,t){var n=u();return t>n?e-n:e+n-t}return t={getMinBuffer:function(){return s},getSegmentDuration:u,getNextBufferWithBitrate:function(e,t,n){return c(t,e*o/n)},getNextBuffer:c,findWeightVector:function(e,t,i,u,d,f){var h=null,m=null,p=null,g=Math.abs(t-r);return e.forEach(function(e){n.forEach(function(n){n[0];var r=n[1],u=n[2],y=(n[3],e.bitrate*o/d),_=c(i,y),v=(0===u?10:1/u)*Math.max(1e-5,y-_),E=(0===r?10:1/r)*e.state.latency,b=l.calculateSingleUseQoe(e.bitrate,v,E,f);(null===h||b>h)&&function(e,t,n){return!(e>a+n)&&t>=s}(t,_,g)&&(h=b,m=n,p=e.bitrate)})}),null===m&&null===p&&(m=-1),r=t,m}},n=function e(t,n,r){if(r===n)return t;for(var a=t.length,s=0;s<a;s++)for(var o=t.shift(),l=0;l<i.length;l++)t.push(o.concat(i[l]));return e(t,n,r+1)}((i=[.2,.4,.6,.8,1]).map(function(e){return[e]}),4,1),r=0,t}i.__dashjs_factory_name="LoLpWeightSelector",t.Z=r.Z.getClassFactory(i)},2298:function(e,t){"use strict";t.Z=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=null,this.lastBitrate=null,this.weights={},this.weights.bitrateReward=null,this.weights.bitrateSwitchPenalty=null,this.weights.rebufferPenalty=null,this.weights.latencyPenalty=null,this.weights.playbackSpeedPenalty=null,this.bitrateWSum=0,this.bitrateSwitchWSum=0,this.rebufferWSum=0,this.latencyWSum=0,this.playbackSpeedWSum=0,this.totalQoe=0}},7803:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r=n(3393),i=n(1553),a=n(5448),s=n(2128),o=n(2594),l=n(7387),u=n(7417),c=n(9032),d=n(9326),f=n(7802),h=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];function m(e){var t,n,a,m,p,g,y,_,v=this.context,E=e.adapter,b=e.baseURLController,T=e.streamInfo,S=e.timelineConverter,w=e.debug,L=e.eventBus,A=e.events,M=e.dashConstants,D=(0,o.Z)(v).getInstance();function k(e,t){var r=new s.Z;r.id=e.id,r.bitrate=e.bandwidth,r.width=e.width,r.height=e.height,r.tilesHor=1,r.tilesVert=1,e.essentialProperties&&e.essentialProperties.forEach(function(e){if(h.indexOf(e.schemeIdUri)>=0&&e.value){var t=e.value.split("x");2!==t.length||isNaN(t[0])||isNaN(t[1])||(r.tilesHor=parseInt(t[0],10),r.tilesVert=parseInt(t[1],10))}}),t?g.updateSegmentData(e).then(function(t){!function(e,t,n){var r=[],i=function(e,t){var n,r,i,a,s=[],o=0;for(n=0,r=e.segments.length;n<r;n++)i=e.segments[n],(a=(0,l.TJ)(S,E.getIsDynamic(),t,i.startTime,i.duration,i.timescale,i.media,i.mediaRange,o))&&(s.push(a),a=null,o++);return s}(n,t);t.segments=i,e.segmentDuration=t.segments[0].duration,e.readThumbnail=function(e,n){var i=null;r.some(function(t){if(t.start<=e&&t.end>e)return i=t.url,!0}),i?n(i):t.segments.some(function(i){if(i.mediaStartTime<=e&&i.mediaStartTime+i.duration>e){var a=b.resolve(t.path);return y.load({method:"get",url:a.url,request:{range:i.mediaRange,responseType:"arraybuffer"},onload:function(e){var t=_.getSamplesInfo(e.target.response),a=new Blob([e.target.response.slice(t.sampleList[0].offset,t.sampleList[0].offset+t.sampleList[0].size)],{type:"image/jpeg"}),s=window.URL.createObjectURL(a);r.push({start:i.mediaStartTime,end:i.mediaStartTime+i.duration,url:s}),n&&n(s)}}),!0}})}}(r,e,t)}):(r.startNumber=e.startNumber,r.segmentDuration=e.segmentDuration,r.timescale=e.timescale,r.templateUrl=function(e){var t=D.isRelative(e.media)?D.resolve(e.media,b.resolve(e.path).url):e.media;return t?(0,l.Aj)(t,e.id):""}(e)),r.tilesHor>0&&r.tilesVert>0&&(r.widthPerTile=r.width/r.tilesHor,r.heightPerTile=r.height/r.tilesVert,n.push(r))}function I(){n=[],m=-1,p=null}return t={getTracks:function(){return n},addTracks:function(){if(T&&E&&(p=E.getMediaInfoForType(T,r.Z.IMAGE))){var e=E.getVoRepresentations(p);e&&e.length>0&&e.forEach(function(e){(e.segmentInfoType===i.Z.SEGMENT_TEMPLATE&&e.segmentDuration>0&&e.media||e.segmentInfoType===i.Z.SEGMENT_TIMELINE)&&k(e),e.segmentInfoType===i.Z.SEGMENT_BASE&&k(e,!0)}),n.length>0&&n.sort(function(e,t){return e.bitrate-t.bitrate})}},reset:I,setTrackByIndex:function(e){n&&0!==n.length&&(e>=n.length&&(e=n.length-1),m=e)},getCurrentTrack:function(){return m<0?null:n[m]},getCurrentTrackIndex:function(){return m},getThumbnailRequestForTime:function(e){for(var t,r=E.getVoRepresentations(p),i=0;i<r.length;i++)if(n[m].id===r[i].id){t=r[i];break}return a.getSegmentRequestForTime(p,t,e)}},I(),y=(0,c.Z)(v).create({}),_=(0,u.Z)(v).getInstance(),g=(0,f.Z)(v).create({events:A,eventBus:L,streamInfo:T,timelineConverter:S,dashConstants:M,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController,type:r.Z.IMAGE}),(a=(0,d.Z)(v).create({streamInfo:T,type:r.Z.IMAGE,timelineConverter:S,segmentsController:g,baseURLController:b,debug:w,eventBus:L,events:A,dashConstants:M,urlUtils:D})).initialize(!!E&&E.getIsDynamic()),t}
vendor: 24,561 bytes, line 2
2m.__dashjs_factory_name="ThumbnailTracks",t.Z=a.Z.getClassFactory(m)},7417:function(e,t,n){"use strict";var r=n(6398),i=n(8260),a=n(5448),s=n(6934),o=n(9597);function l(){var e,t,n=this.context;function a(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=s.parseBuffer(e),r=(0,i.Z)(n).create();return r.setData(t),r}function l(e,t){return e[t+3]>>>0|e[t+2]<<8>>>0|e[t+1]<<16>>>0|e[t]<<24>>>0}function u(e,t){return String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t])}return t={parse:a,findLastTopIsoBoxCompleted:function(e,t,n){if(void 0===n&&(n=0),!t||n+8>=t.byteLength)return new o.Z(0,!1);for(var r,i=t instanceof ArrayBuffer?new Uint8Array(t):t,a=0;n<i.byteLength;){var s=l(i,n),c=u(i,n+4);if(0===s)break;n+s<=i.byteLength&&(e.indexOf(c)>=0?r=new o.Z(n,!0,s):a=n+s),n+=s}return r||new o.Z(a,!1)},getMediaTimescaleFromMoov:function(e){var t=a(e),n=t?t.getBox("mdhd"):void 0;return n?n.timescale:NaN},getSamplesInfo:function(e){if(!e||0===e.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t,n,r,i,s,o,l,u,c,d,f,h,m,p,g,y,_=a(e),v=_.getBoxes("moof"),E=_.getBoxes("mfhd");g=_.getBoxes("moof").length,p=E[E.length-1].sequence_number,n=0,s=[];var b=-1,T=-1;for(d=0;d<v.length;d++){var S=v[d],w=S.getChildBoxes("traf");for(u=0;u<w.length;u++){var L=w[u],A=L.getChildBox("tfhd"),M=L.getChildBox("tfdt");i=M.baseMediaDecodeTime;var D=L.getChildBoxes("trun"),k=L.getChildBoxes("subs");for(c=0;c<D.length;c++){var I=D[c];for(n=I.sample_count,m=(A.base_data_offset||0)+(I.data_offset||0),l=0;l<n;l++){t=void 0!==(o=I.samples[l]).sample_duration?o.sample_duration:A.default_sample_duration,r=void 0!==o.sample_size?o.sample_size:A.default_sample_size;var R={dts:i,cts:i+(void 0!==o.sample_composition_time_offset?o.sample_composition_time_offset:0),duration:t,offset:S.offset+m,size:r,subSizes:[r]};if(k)for(f=0;f<k.length;f++){var C=k[f];if(b<C.entry_count-1&&l>T&&(b++,T+=C.entries[b].sample_delta),l==T){R.subSizes=[];var P=C.entries[b];for(h=0;h<P.subsample_count;h++)R.subSizes.push(P.subsamples[h].subsample_size)}}s.push(R),m+=r,i+=t}}y=i-M.baseMediaDecodeTime}}return{sampleList:s,lastSequenceNumber:p,totalDuration:y,numSequences:g}},findInitRange:function(t){var n=null,r=a(t);if(!r)return n;var i=r.getBox("ftyp"),s=r.getBox("moov");return e.debug("Searching for initialization."),s&&s.isComplete&&(n=(i?i.offset:s.offset)+"-"+(s.offset+s.size-1),e.debug("Found the initialization. Range: "+n)),n},parsePayload:function(e,t,n){if(void 0===n&&(n=0),!t||n+8>=t.byteLength)return new o.Z(0,!1);for(var r,i=t instanceof ArrayBuffer?new Uint8Array(t):t,a=0;n<i.byteLength;){var s=l(i,n),c=u(i,n+4);if(0===s)break;n+s<=i.byteLength&&(e.indexOf(c)>=0?r=new o.Z(n,!0,s,c):a=n+s),n+=s}return r||new o.Z(a,!1)}},e=(0,r.Z)(n).getInstance().getLogger(t),t}l.__dashjs_factory_name="BoxParser",t.Z=a.Z.getSingletonFactory(l)},1715:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(5448),i=n(7803),a=n(3393),s=[{codec:"avc1",compatibleCodecs:["avc3"]},{codec:"avc3",compatibleCodecs:["avc1"]}];function o(){var e="ManagedMediaSource"in window,t="WebKitMediaSource"in window,n="MediaSource"in window;return e||t||n}function l(){var e,t,n;return e={setConfig:function(e){e&&e.settings&&(t=e.settings)},supportsMediaSource:o,supportsEncryptedMedia:function(){return n},supportsCodec:function(e,n){return n!==a.Z.AUDIO&&n!==a.Z.VIDEO?Promise.resolve(!0):function(e,n){return t.get().streaming.capabilities.useMediaCapabilitiesApi&&navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo&&(e.codec&&n===a.Z.AUDIO||n===a.Z.VIDEO&&e.codec&&e.width&&e.height&&e.bitrate&&e.framerate)}(e,n)?function(e,t){return new Promise(function(n){if(e&&e.codec){var r={type:"media-source"};r[t]={},r[t].contentType=e.codec,r[t].width=e.width,r[t].height=e.height,r[t].bitrate=parseInt(e.bitrate),r[t].framerate=parseFloat(e.framerate),navigator.mediaCapabilities.decodingInfo(r).then(function(e){n(e.supported)}).catch(function(){n(!1)})}else n(!1)})}(e,n):function(e){return new Promise(function(t){if(e&&e.codec){var n=e.codec;e.width&&e.height&&(n+=';width="'+e.width+'";height="'+e.height+'"'),"ManagedMediaSource"in window&&ManagedMediaSource.isTypeSupported(n)||"MediaSource"in window&&MediaSource.isTypeSupported(n)||"WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(n)?t(!0):t(!1)}else t(!1)})}(e)},setEncryptedMediaSupported:function(e){n=e},supportsEssentialProperty:function(e){try{return-1!==i.Y.indexOf(e.schemeIdUri)||a.Z.FONT_DOWNLOAD_DVB_SCHEME===e.schemeIdUri}catch(e){return!0}},codecRootCompatibleWithCodec:function(e,t){for(var n,r=e.split(".")[0],i=0===t.indexOf(r),a=0;a<s.length;a++)if(s[a].codec===r){n=s[a];break}return n?i||n.compatibleCodecs.some(function(e){return 0===t.indexOf(e)}):i}},n=!1,e}l.__dashjs_factory_name="Capabilities",t.Z=r.Z.getSingletonFactory(l)},2295:function(e,t,n){"use strict";var r=n(5448),i=n(3106);function a(){return{customTimeRangeArray:[],length:0,add:function(e,t){var n;for(n=0;n<this.customTimeRangeArray.length&&e>this.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:e,end:t}),n=0;n<this.customTimeRangeArray.length-1;n++)this.mergeRanges(n,n+1)&&n--;this.length=this.customTimeRangeArray.length},clear:function(){this.customTimeRangeArray=[],this.length=0},remove:function(e,t){for(var n=0;n<this.customTimeRangeArray.length;n++)if(e<=this.customTimeRangeArray[n].start&&t>=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(e>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end){this.customTimeRangeArray.splice(n+1,0,{start:t,end:this.customTimeRangeArray[n].end}),this.customTimeRangeArray[n].end=e;break}e>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end?this.customTimeRangeArray[n].end=e:t>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end&&(this.customTimeRangeArray[n].start=t)}this.length=this.customTimeRangeArray.length},mergeRanges:function(e,t){var n=this.customTimeRangeArray[e],r=this.customTimeRangeArray[t];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(this.customTimeRangeArray.splice(e,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(this.customTimeRangeArray.splice(t,1),!0)},start:function(e){return(0,i.SE)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].start},end:function(e){return(0,i.SE)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].end}}}a.__dashjs_factory_name="CustomTimeRanges",t.Z=r.Z.getClassFactory(a)},5:function(e,t,n){"use strict";var r=n(5448);function i(){var e,t=/^[a-z][a-z0-9+\-_.]*:/i,n=/^https?:\/\//i,r=/^https:\/\//i,i=/^([a-z][a-z0-9+\-_.]*:\/\/[^\/]+)\/?/i,a=function(e,t){try{return new window.URL(e,t).toString()}catch(t){return e}},s=function(e,t){var n=o;if(!t)return e;if(!c(e))return e;d(e)&&(n=l),f(e)&&(n=u);var r=n(t),i="/"!==r.charAt(r.length-1)&&"/"!==e.charAt(0)?"/":"";return[r,e].join(i)};function o(e){var t=e.indexOf("/"),n=e.lastIndexOf("/");return-1!==t?n===t+1?e:(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,n+1)):""}function l(e){var t=e.match(i);return t?t[1]:""}function u(e){var n=e.match(t);return n?n[0]:""}function c(e){return!t.test(e)}function d(e){return c(e)&&"/"===e.charAt(0)}function f(e){return 0===e.indexOf("//")}return function(){try{new window.URL("x","http://y"),e=a}catch(e){}finally{e=e||s}}(),{parseBaseUrl:o,parseOrigin:l,parseScheme:u,isRelative:c,isPathAbsolute:d,isSchemeRelative:f,isHTTPURL:function(e){return n.test(e)},isHTTPS:function(e){return r.test(e)},removeHostname:function(e){return/^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(e)[2].substring(1)},resolve:function(t,n){return e(t,n)}}}i.__dashjs_factory_name="DefaultURLUtils",t.Z=r.Z.getSingletonFactory(i)},8260:function(e,t,n){"use strict";var r=n(2839),i=n(5448);function a(){var e;function t(t){var r=[];if(!t||!e||"function"!=typeof e.fetchAll)return r;for(var i,a=e.fetchAll(t),s=0,o=a.length;s<o;s++)(i=n(a[s]))&&r.push(i);return r}function n(e){if(!e)return null;var t=new r.Z(e);return e.hasOwnProperty("_incomplete")&&(t.isComplete=!e._incomplete),t}return{getBox:function(t){return t&&e&&e.boxes&&0!==e.boxes.length&&"function"==typeof e.fetch?n(e.fetch(t)):null},getBoxes:t,setData:function(t){e=t},getLastBox:function(){if(!e||!e.boxes||!e.boxes.length)return null;var n=t(e.boxes[e.boxes.length-1].type);return n.length>0?n[n.length-1]:null}}}a.__dashjs_factory_name="IsoFile",t.Z=i.Z.getClassFactory(a)},7473:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(5448);function i(e,t){var n={url:e.url,method:e.method,headers:Object.assign({},e.headers),credentials:e.withCredentials?"include":void 0,range:e.request.range};return Promise.resolve(t.modifyRequest(n)).then(function(){return Object.assign(e,n,{withCredentials:"include"===n.credentials})})}function a(){return{modifyRequest:null,modifyRequestURL:function(e){return e},modifyRequestHeader:function(e,t){return t.url,e}}}a.__dashjs_factory_name="RequestModifier",t.Z=r.Z.getSingletonFactory(a)},3106:function(e,t,n){"use strict";n.d(t,{PS:function(){return a},SE:function(){return s}});var r=n(3393);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(i(e)!==t)throw r.Z.BAD_ARGUMENT_ERROR}function s(e){if(null===e||isNaN(e)||e%1!=0)throw r.Z.BAD_ARGUMENT_ERROR+" : argument is not an integer"}},2594:function(e,t,n){"use strict";var r=n(5448),i=n(5);function a(){var e,t=[],n=this.context;function r(n,r,i){var a=function(n){var r;for(r=0;r<t.length;r++)if(t[r].regex.test(n))return t[r].utils;return e}(i||r);return a&&"function"==typeof a[n]?a[n](r,i):e[n](r,i)}return e=(0,i.Z)(n).getInstance(),{registerUrlRegex:function(e,n){t.push({regex:e,utils:n})},parseBaseUrl:function(e){return r("parseBaseUrl",e)},parseOrigin:function(e){return r("parseOrigin",e)},parseScheme:function(e){return r("parseScheme",e)},isRelative:function(e){return r("isRelative",e)},isPathAbsolute:function(e){return r("isPathAbsolute",e)},isSchemeRelative:function(e){return r("isSchemeRelative",e)},isHTTPURL:function(e){return r("isHTTPURL",e)},isHTTPS:function(e){return r("isHTTPS",e)},removeHostname:function(e){return r("removeHostname",e)},resolve:function(e,t){return r("resolve",e,t)}}}a.__dashjs_factory_name="URLUtils";var s=r.Z.getSingletonFactory(a);t.Z=s},5459:function(e,t){"use strict";t.Z=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=n||null,this.data=r||null}},3186:function(e,t,n){"use strict";var r=n(7855);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=e.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaStartTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=t||null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}var t;return(t=[{key:"isInitializationRequest",value:function(){return this.type&&this.type===r.w.INIT_SEGMENT_TYPE}},{key:"setInfo",value:function(e){this.type=e&&e.init?r.w.INIT_SEGMENT_TYPE:r.w.MEDIA_SEGMENT_TYPE,this.url=e&&e.url?e.url:null,this.range=e&&e.range?e.range.start+"-"+e.range.end:null,this.mediaType=e&&e.mediaType?e.mediaType:null}}])&&i(e.prototype,t),e}();a.ACTION_DOWNLOAD="download",a.ACTION_COMPLETE="complete",t.Z=a},2839:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t._offset,this.type=t.type,this.size=t.size,this.boxes=[],t.boxes)for(var n=0;n<t.boxes.length;n++)this.boxes.push(new e(t.boxes[n]));switch(this.isComplete=!0,t.type){case"sidx":if(this.timescale=t.timescale,this.earliest_presentation_time=t.earliest_presentation_time,this.first_offset=t.first_offset,this.references=t.references,t.references){this.references=[];for(var r=0;r<t.references.length;r++){var i={reference_type:t.references[r].reference_type,referenced_size:t.references[r].referenced_size,subsegment_duration:t.references[r].subsegment_duration};this.references.push(i)}}break;case"emsg":this.id=t.id,this.version=1===t.version?1:0,this.value=t.value,this.timescale=t.timescale,this.scheme_id_uri=t.scheme_id_uri,this.presentation_time_delta=1===t.version?t.presentation_time:t.presentation_time_delta,this.event_duration=t.event_duration,this.message_data=t.message_data;break;case"mdhd":this.timescale=t.timescale;break;case"mfhd":this.sequence_number=t.sequence_number;break;case"subs":this.entry_count=t.entry_count,this.entries=t.entries;break;case"tfhd":this.base_data_offset=t.base_data_offset,this.sample_description_index=t.sample_description_index,this.default_sample_duration=t.default_sample_duration,this.default_sample_size=t.default_sample_size,this.default_sample_flags=t.default_sample_flags,this.flags=t.flags;break;case"tfdt":this.version=t.version,this.baseMediaDecodeTime=t.baseMediaDecodeTime,this.flags=t.flags;break;case"trun":if(this.sample_count=t.sample_count,this.first_sample_flags=t.first_sample_flags,this.data_offset=t.data_offset,this.flags=t.flags,this.samples=t.samples,t.samples){this.samples=[];for(var a=0,s=t.samples.length;a<s;a++){var o={sample_size:t.samples[a].sample_size,sample_duration:t.samples[a].sample_duration,sample_composition_time_offset:t.samples[a].sample_composition_time_offset};this.samples.push(o)}}break;case"prft":this.version=t.version,this.reference_track_ID=t.reference_track_ID,this.ntp_timestamp_sec=t.ntp_timestamp_sec,this.ntp_timestamp_frac=t.ntp_timestamp_frac,this.media_time=t.media_time,this.flags=t.flags}}var t;return(t=[{key:"getChildBox",value:function(e){for(var t=0;t<this.boxes.length;t++)if(this.boxes[t].type===e)return this.boxes[t]}},{key:"getChildBoxes",value:function(e){for(var t=[],n=0;n<this.boxes.length;n++)this.boxes[n].type===e&&t.push(this.boxes[n]);return t}}])&&n(e.prototype,t),e}();t.Z=r},9597:function(e,t){"use strict";t.Z=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastCompletedOffset=t,this.found=n,this.size=r}},2128:function(e,t){"use strict";t.Z=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""}},7855:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{O:function(){return a},w:function(){return i}});var i=function e(){r(this,e),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this.cmsd=null,this._stream=null,this._tfinish=null,this._mediaduration=null,this._quality=null,this._responseHeaders=null,this._serviceLocation=null,this._fileLoaderType=null},a=function e(){r(this,e),this.s=null,this.d=null,this.b=[]};i.GET="GET",i.HEAD="HEAD",i.MPD_TYPE="MPD",i.XLINK_EXPANSION_TYPE="XLinkExpansion",i.INIT_SEGMENT_TYPE="InitializationSegment",i.INDEX_SEGMENT_TYPE="IndexSegment",i.MEDIA_SEGMENT_TYPE="MediaSegment",i.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",i.MSS_FRAGMENT_INFO_SEGMENT_TYPE="FragmentInfoSegment",i.DVB_REPORTING_TYPE="DVBReporting",i.LICENSE="license",i.CONTENT_STEERING_TYPE="ContentSteering",i.OTHER_TYPE="other"},3039:function(e,t){"use strict";function n(e,t){return function(n,i){for(var a,s,o,l=r(n,"tag"),u=r(i??"*","range"),c=[],d=-1;++d<u.length;)if(a=u[d].toLowerCase(),t||"*"!==a){for(s=-1,o=[];++s<l.length;)if(e(l[s].toLowerCase(),a)){if(!t)return l[s];c.push(l[s])}else o.push(l[s]);l=o}return t?c:void 0}}function r(e,t){var n=e&&"string"==typeof e?[e]:e;if(!n||"object"!=typeof n||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}t.basicFilter=n(function(e,t){return"*"===t||e===t||e.indexOf(t+"-")>-1},!0),t.extendedFilter=n(function(e,t){var n=e.split("-"),r=t.split("-"),i=0,a=0;if("*"!==r[a]&&n[i]!==r[a])return!1;for(i++,a++;a<r.length;)if("*"!==r[a]){if(!n[i])return!1;if(n[i]!==r[a]){if(1===n[i].length)return!1;i++}else i++,a++}else a++;return!0},!0),t.lookup=n(function(e,t){for(var n,r=t;;){if("*"===r||e===r)return!0;if((n=r.lastIndexOf("-"))<0)return!1;"-"===r.charAt(n-2)&&(n-=2),r=r.slice(0,n)}})},3973:function(e,t,n){"use strict";e.exports=n(3854)},3854:function(e,t,n){"use strict";var r=n(2415),i=n(3039),a=n(7778),s=n(5813),o=n(3165),l=n(9460);e.exports=function(e,t){var n,c=t||{},g=r.parse(String(e||"").toLowerCase(),c),y=r.stringify(g),_=-1;if(!y)return y;for(;++_<a.length;)i.extendedFilter(y,a[_].from).length&&(f(g,a[_].from,a[_].to),y=r.stringify(g));for(_=-1;++_<s.length;)h(g,s[_].from.field,s[_].from.value)&&m(g,s[_].to.field,s[_].to.value);for(y=r.stringify(Object.assign({},g,d)),_=-1;++_<o.length;)y===o[_]&&(f(g,o[_],o[_].split("-").slice(0,-1).join("-")),y=r.stringify(Object.assign({},g,d)));if(g.extensions.sort(p),c.warning)for(n in l)u.call(l[n],g[n])&&c.warning("Deprecated "+n+" `"+g[n]+"`, expected one of `"+l[n][g[n]].join("`, `")+"`",null,7);return g.script&&(g.script=g.script.charAt(0).toUpperCase()+g.script.slice(1)),g.region&&(g.region=g.region.toUpperCase()),r.stringify(g)};var u={}.hasOwnProperty,c=new Intl.Collator,d={variants:[],extensions:[],privateuse:[],irregular:null,regular:null};function f(e,t,n){var i,a=r.parse(t),s=r.parse(n),o=[];for(i in a)a[i]&&a[i].length&&h(e,i,a[i])&&o.push(i);for(i in s)s[i]&&s[i].length&&(o.indexOf(i)>-1||!e[i]||!e[i].length)&&m(e,i,s[i])}function h(e,t,n){var r,i,a,s,o=!1;if(n){if(i=r=e[t],r&&"object"==typeof r)for(i=[],a=-1;++a<r.length;)s=r[a],n.indexOf(s)<0?i.push(s):o=!0;else r===n&&(i=null,o=!0);e[t]=i}return o}function m(e,t,n){var r,i,a,s=e[t];if(s&&"object"==typeof s)for(r=[].concat(n),i=-1;++i<r.length;)a=r[i],s.indexOf(a)<0&&s.push(a);else e[t]=n}function p(e,t){return c.compare(e.singleton,t.singleton)}},2415:function(e,t,n){"use strict";t.parse=n(6903),t.stringify=n(6713)},6903:function(e,t,n){"use strict";var r=n(2219),i=n(3516),a=n(395),s=n(858),o=n(8589);e.exports=function e(t,n){var u,c,d,f=n||{},h={language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null},m=String(t),p=m.toLowerCase(),g=0;if(null==t)throw new Error("Expected string, got `"+t+"`");if(l.call(o,p))return(null==f.normalize||f.normalize)&&o[p]?e(o[p]):(h[-1===s.indexOf(p)?"irregular":"regular"]=m,h);for(;i(p.charCodeAt(g))&&g<9;)g++;if(g>1&&g<9){if(h.language=m.slice(0,g),g<4)for(c=0;45===p.charCodeAt(g)&&i(p.charCodeAt(g+1))&&i(p.charCodeAt(g+2))&&i(p.charCodeAt(g+3))&&!i(p.charCodeAt(g+4));){if(c>2)return y(g,3,"Too many extended language subtags, expected at most 3 subtags");h.extendedLanguageSubtags.push(m.slice(g+1,g+4)),g+=4,c++}for(45===p.charCodeAt(g)&&i(p.charCodeAt(g+1))&&i(p.charCodeAt(g+2))&&i(p.charCodeAt(g+3))&&i(p.charCodeAt(g+4))&&!i(p.charCodeAt(g+5))&&(h.script=m.slice(g+1,g+5),g+=5),45===p.charCodeAt(g)&&(i(p.charCodeAt(g+1))&&i(p.charCodeAt(g+2))&&!i(p.charCodeAt(g+3))?(h.region=m.slice(g+1,g+3),g+=3):a(p.charCodeAt(g+1))&&a(p.charCodeAt(g+2))&&a(p.charCodeAt(g+3))&&!a(p.charCodeAt(g+4))&&(h.region=m.slice(g+1,g+4),g+=4));45===p.charCodeAt(g);){for(d=u=g+1;r(p.charCodeAt(d));){if(d-u>7)return y(d,1,"Too long variant, expected at most 8 characters");d++}if(!(d-u>4||d-u>3&&a(p.charCodeAt(u))))break;h.variants.push(m.slice(u,d)),g=d}for(;45===p.charCodeAt(g)&&120!==p.charCodeAt(g+1)&&r(p.charCodeAt(g+1))&&45===p.charCodeAt(g+2)&&r(p.charCodeAt(g+3));){for(d=g+2,c=0;45===p.charCodeAt(d)&&r(p.charCodeAt(d+1))&&r(p.charCodeAt(d+2));)for(d=(u=d+1)+2,c++;r(p.charCodeAt(d));){if(d-u>7)return y(d,2,"Too long extension, expected at most 8 characters");d++}if(!c)return y(d,4,"Empty extension, extensions must have at least 2 characters of content");h.extensions.push({singleton:m.charAt(g+1),extensions:m.slice(g+3,d).split("-")}),g=d}}else g=0;if(0===g&&120===p.charCodeAt(g)||45===p.charCodeAt(g)&&120===p.charCodeAt(g+1))for(d=g=g?g+2:1;45===p.charCodeAt(d)&&r(p.charCodeAt(d+1));){for(d=u=g+1;r(p.charCodeAt(d));){if(d-u>7)return y(d,5,"Too long private-use area, expected at most 8 characters");d++}h.privateuse.push(m.slice(g+1,d)),g=d}return g!==m.length?y(g,6,"Found superfluous content after tag"):h;function y(e,t,n){return f.warning&&f.warning(n,t,e),f.forgiving?h:{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}};var l={}.hasOwnProperty},6713:function(e){"use strict";e.exports=function(e){var t,n,r,i=e||{},a=[];if(i.irregular||i.regular)return i.irregular||i.regular;if(i.language)for(a=a.concat(i.language,i.extendedLanguageSubtags||[],i.script||[],i.region||[],i.variants||[]),t=i.extensions||[],n=-1;++n<t.length;)(r=t[n]).singleton&&r.extensions&&r.extensions.length&&(a=a.concat(r.singleton,r.extensions));return i.privateuse&&i.privateuse.length&&(a=a.concat("x",i.privateuse)),a.join("-")}},1549:function(e,t,n){"use strict";var r=n(6693),i=n(2165),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;var s=2147483647;function o(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var i=function(e){if(l.isBuffer(e)){var t=0|m(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||H(e.length)?o(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');
vendor: 7,440 bytes, line 2
2if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),o(e<0?0:0|m(e))}function f(e){for(var t=e.length<0?0:0|m(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return r?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,s=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=n;a<o;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var d=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){d=!1;break}if(d)return a}return-1}function E(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var s=0;s<r;++s){var o=parseInt(t.substr(2*s,2),16);if(H(o))return s;e[n+s]=o}return s}function b(e,t,n,r){return B(Y(t,e.length-n),e,n,r)}function T(e,t,n,r){return B(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return B(U(t),e,n,r)}function w(e,t,n,r){return B(function(e,t){for(var n,r,i,a=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,s,o,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}(r)}t.kMaxLength=s,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(j(a,Uint8Array))i+a.length>r.length?l.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else{if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)}
vendor: 9,895 bytes, line 2
2,l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),u=this.slice(r,i),c=e.slice(t,n),d=0;d<o;++d)if(u[d]!==c[d]){a=u[d],s=c[d];break}return a<s?-1:s<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":case"latin1":case"binary":return T(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=G[e[a]];return i}function R(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function x(e,t,n,r,a){return t=+t,n>>>=0,a||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,a){return t=+t,n>>>=0,a||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return x(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return x(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=l.isBuffer(e)?e:l.from(e,r),o=s.length;
vendor: 5,448 bytes, line 2
2if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=s[a%o]}return this};var F=/[^+/0-9A-Za-z-_]/g;function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}var G=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},6693:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=l(e),s=a[0],o=a[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,o)),c=0,d=o>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===o&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=16383,o=0,l=r-i;o<l;o+=s)a.push(u(e,o,o+s>l?l:o+s));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,a,s=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2165:function(e,t){t.read=function(e,t,n,r,i){var a,s,o=8*i-r-1,l=(1<<o)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=f,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=r;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),a-=u}return(h?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var s,o,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*l-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&o,h+=m,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[n+h]=255&s,h+=m,s/=256,u-=8);e[n+h-m]|=128*p}},6934:function(e,t){var n={parseBuffer:function(e){return new r(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(i.prototype._boxProcessors[e]=t)},createFile:function(){return new r},createBox:function(e,t,n){var r=i.create(e);return t&&t.append(r,n),r},createFullBox:function(e,t,r){var i=n.createBox(e,t,r);return i.version=0,i.flags=0,i},Utils:{}};n.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],i=0;if("utf-8"===n)for(;i<e.byteLength;){var a=e.getUint8(i++);a<128||(a<224?(a=(31&a)<<6,a|=63&e.getUint8(i++)):a<240?(a=(15&a)<<12,a|=(63&e.getUint8(i++))<<6,a|=63&e.getUint8(i++)):(a=(7&a)<<18,a|=(63&e.getUint8(i++))<<12,a|=(63&e.getUint8(i++))<<6,a|=63&e.getUint8(i++))),r.push(String.fromCharCode(a))}else for(;i<e.byteLength;)r.push(String.fromCharCode(e.getUint8(i++)));return r.join("")},n.Utils.utf8ToByteArray=function(e){var t,n;if("undefined"!=typeof TextEncoder)t=(new TextEncoder).encode(e);else for(t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?(t.push(192|r>>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},n.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==n)if(null!=n){var r,i=-1;if("number"==typeof n)i=n;else{if("string"==typeof n)r=n;else{if("object"!=typeof n||!n.type)return void e.boxes.push(t);r=n.type}for(var a=0;a<e.boxes.length;a++)if(r===e.boxes[a].type){i=a+1;break}}e.boxes.splice(i,0,t)}else e.boxes.push(t)},t.parseBuffer=n.parseBuffer,t.addBoxProcessor=n.addBoxProcessor,t.createFile=n.createFile,t.createBox=n.
vendor: 10,377 bytes, line 2
2createBox,t.createFullBox=n.createFullBox,t.Utils=n.Utils,n.Cursor=function(e){this.offset=void 0===e?0:e};var r=function(e){this._cursor=new n.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};r.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},r.prototype.fetchAll=function(e,t){var n=[];return r._sweep.call(this,e,n,t),n},r.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=i.parse(this);if(void 0===e.type)break;this.boxes.push(e)}return this},r._sweep=function(e,t,n){for(var i in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&n)return;r._sweep.call(this.boxes[i],e,t,n)}},r.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var n=new Uint8Array(t);for(this._rawo=new DataView(n.buffer),this.bytes=n,this._cursor.offset=0,e=0;e<this.boxes.length;e++)this.boxes[e].write();return n.buffer},r.prototype.append=function(e,t){n.Utils.appendBox(this,e,t)};var i=function(){this._cursor=new n.Cursor};i.parse=function(e){var t=new i;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},i.create=function(e){var t=new i;return t.type=e,t.boxes=[],t},i.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],i.prototype._boxProcessors={},i.prototype._procField=function(e,t,n){this._parsing?this[e]=this._readField(t,n):this._writeField(t,n,this[e])},i.prototype._procFieldArray=function(e,t,n,r){var i;if(this._parsing)for(this[e]=[],i=0;i<t;i++)this[e][i]=this._readField(n,r);else for(i=0;i<this[e].length;i++)this._writeField(n,r,this[e][i])},i.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},i.prototype._procEntries=function(e,t,n){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push({}),n.call(this,this[e][r]);else for(r=0;r<t;r++)n.call(this,this[e][r])},i.prototype._procSubEntries=function(e,t,n,r){var i;if(this._parsing)for(e[t]=[],i=0;i<n;i++)e[t].push({}),r.call(this,e[t][i]);else for(i=0;i<n;i++)r.call(this,e[t][i])},i.prototype._procEntryField=function(e,t,n,r){this._parsing?e[t]=this._readField(n,r):this._writeField(n,r,e[t])},i.prototype._procSubBoxes=function(e,t){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push(i.parse(this));else for(n=0;n<t;n++)this._rawo?this[e][n].write():this.size+=this[e][n].getLength()},i.prototype._readField=function(e,t){switch(e){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return-1===t?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}},i.prototype._readInt=function(e){var t=null,n=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(n);break;case 16:t=this._raw.getInt16(n);break;case 32:t=this._raw.getInt32(n);break;case 64:var r=this._raw.getInt32(n),i=this._raw.getInt32(n+4);t=r*Math.pow(2,32)+i}return this._cursor.offset+=e>>3,t},i.prototype._readUint=function(e){var t,n,r=null,i=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(i);break;case 16:r=this._raw.getUint16(i);break;case 24:r=((t=this._raw.getUint16(i))<<8)+(n=this._raw.getUint8(i+2));break;case 32:r=this._raw.getUint32(i);break;case 64:t=this._raw.getUint32(i),n=this._raw.getUint32(i+4),r=t*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,r},i.prototype._readString=function(e){for(var t="",n=0;n<e;n++){var r=this._readUint(8);t+=String.fromCharCode(r)}return t},i.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/Math.pow(2,e/2)},i.prototype._readTerminatedString=function(){for(var e="";this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(0===t)break;e+=String.fromCharCode(t)}return e},i.prototype._readData=function(e){var t=e>0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},i.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return e>0&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?n.Utils.dataViewToString(t):t},i.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},i.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},i.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(i.parse(this))},i.prototype.append=function(e,t){n.Utils.appendBox(this,e,t)},i.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},i.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},i.prototype._writeInt=function(e,t){if(this._rawo){var n=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(n,t);break;case 16:this._rawo.setInt16(n,t);break;case 32:this._rawo.setInt32(n,t);break;case 64:var r=Math.floor(t/Math.pow(2,32)),i=t-r*Math.pow(2,32);this._rawo.setUint32(n,r),this._rawo.setUint32(n+4,i)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeUint=function(e,t){if(this._rawo){var n,r,i=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(i,n),this._rawo.setUint8(i+2,r);break;case 32:this._rawo.setUint32(i,t);break;case 64:r=t-(n=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(i,n),this._rawo.setUint32(i+4,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeString=function(e,t){for(var n=0;n<e;n++)this._writeUint(8,t.charCodeAt(n))},i.prototype._writeTerminatedString=function(e){if(0!==e.length){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},i.prototype._writeTemplate=function(e,t){var n=Math.floor(t),r=(t-n)*Math.pow(2,e/2);this._writeUint(e/2,n),this._writeUint(e/2,r)},i.prototype._writeData=function(e){if(e)if(this._rawo){if(e instanceof Array){for(var t=this._cursor.offset-this._rawo.byteOffset,n=0;n<e.length;n++)this._rawo.setInt8(t+n,e[n]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},i.prototype._writeUTF8String=function(e){var t=n.Utils.utf8ToByteArray(e);if(this._rawo)for(var r=new DataView(this._rawo.buffer,this._cursor.offset,t.length),i=0;i<t.length;i++)r.setUint8(i,t[i]);else this.size+=t.length},i.prototype._writeField=function(e,t,n){switch(e){case"uint":this._writeUint(t,n);break;case"int":this._writeInt(t,n);break;case"template":this._writeTemplate(t,n);break;case"string":-1==t?this._writeTerminatedString(n):this._writeString(t,n);break;case"data":this._writeData(n);break;case"utf8":this._writeUTF8String(n)}},i.prototype._boxProcessors.avc1=i.prototype._boxProcessors.avc2=i.prototype._boxProcessors.avc3=i.prototype._boxProcessors.avc4=i.prototype._boxProcessors.hvc1=i.prototype._boxProcessors.hev1=i.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},i.prototype._boxProcessors.ctts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entr
2ies",this.entry_count,function(e){this._procEntryField(e,"sample_count","uint",32),this._procEntryField(e,"sample_offset",1===this.version?"int":"uint",32)})},i.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},i.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"segment_duration","uint",1===this.version?64:32),this._procEntryField(e,"media_time","int",1===this.version?64:32),this._procEntryField(e,"media_rate_integer","int",16),this._procEntryField(e,"media_rate_fraction","int",16)})},i.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},i.prototype._boxProcessors.free=i.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},i.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},i.prototype._boxProcessors.ftyp=i.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",e,"string",4)},i.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},i.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},i.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},i.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},i.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},i.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},i.prototype._boxProcessors.mp4a=i.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},i.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},i.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},i.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField("reference_track_ID","uint",32),this._procField("ntp_timestamp_sec","uint",32),this._procField("ntp_timestamp_frac","uint",32),this._procField("media_time","uint",1==this.version?64:32)},i.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},i.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},i.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},i.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)})},i.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},i.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)})})},i.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entr
2ies",this.entry_count)},i.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},i.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"sample_count","uint",32),this._procEntryField(e,"sample_delta","uint",32)})},i.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)})})},i.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},i.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},i.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},i.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))})},i.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},i.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},i.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)})},i.prototype._boxProcessors["url "]=i.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},i.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},i.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},i.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},i.prototype._boxProcessors.vtte=function(){}},5530:function(e,t,n){"use strict";
vendor: 4,832 bytes, line 2
2e.exports=n(6146).polyfill()},6146:function(e,t,n){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,a=void 0,s=void 0,o=function(e,t){m[i]=e,m[i+1]=t,2===(i+=2)&&(s?s(p):E())},l="undefined"!=typeof window?window:void 0,u=l||{},c=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(p,1)}}var m=new Array(1e3);function p(){for(var e=0;e<i;e+=2)(0,m[e])(m[e+1]),m[e]=void 0,m[e+1]=void 0;i=0}var g,y,_,v,E=void 0;function b(e,t){var n=this,r=new this.constructor(w);void 0===r[S]&&x(r);var i=n._state;if(i){var a=arguments[i-1];o(function(){return P(i,r,a,n._result)})}else R(n,r,e,t);return r}function T(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(w);return M(t,e),t}E=d?function(){return r.nextTick(p)}:c?(y=0,_=new c(p),v=document.createTextNode(""),_.observe(v,{characterData:!0}),function(){v.data=y=++y%2}):f?((g=new MessageChannel).port1.onmessage=p,function(){return g.port2.postMessage(0)}):void 0===l?function(){try{var e=Function("return this")().require("vertx");return void 0!==(a=e.runOnLoop||e.runOnContext)?function(){a(p)}:h()}catch(e){return h()}}():h();var S=Math.random().toString(36).substring(2);function w(){}var L=void 0;function A(t,n,r){n.constructor===t.constructor&&r===b&&n.constructor.resolve===T?function(e,t){1===t._state?k(e,t._result):2===t._state?I(e,t._result):R(t,void 0,function(t){return M(e,t)},function(t){return I(e,t)})}(t,n):void 0===r?k(t,n):e(r)?function(e,t,n){o(function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?M(e,n):k(e,n))},function(t){r||(r=!0,I(e,t))},e._label);!r&&i&&(r=!0,I(e,i))},e)}(t,n,r):k(t,n)}function M(e,t){if(e===t)I(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)k(e,t);else{var n=void 0;try{n=t.then}catch(t){return void I(e,t)}A(e,t,n)}var r,i}function D(e){e._onerror&&e._onerror(e._result),C(e)}function k(e,t){e._state===L&&(e._result=t,e._state=1,0!==e._subscribers.length&&o(C,e))}function I(e,t){e._state===L&&(e._state=2,e._result=t,o(D,e))}function R(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=r,0===a&&e._state&&o(C,e)}function C(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,a=e._result,s=0;s<t.length;s+=3)r=t[s],i=t[s+n],r?P(n,r,i,a):i(a);e._subscribers.length=0}}function P(t,n,r,i){var a=e(r),s=void 0,o=void 0,l=!0;if(a){try{s=r(i)}catch(e){l=!1,o=e}if(n===s)return void I(n,new TypeError("A promises callback cannot return that same promise."))}else s=i;n._state!==L||(a&&l?M(n,s):!1===l?I(n,o):1===t?k(n,s):2===t&&I(n,s))}var O=0;function x(e){e[S]=O++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(w),this.promise[S]||x(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&k(this.promise,this._result))):I(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===L&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===T){var i=void 0,a=void 0,s=!1;try{i=e.then}catch(e){s=!0,a=e}if(i===b&&e._state!==L)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===F){var o=new n(w);s?I(o,a):A(o,e,i),this._willSettleAt(o,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===L&&(this._remaining--,2===e?I(r,n):this._result[t]=n),0===this._remaining&&k(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,function(e){return n._settledAt(1,t,e)},function(e){return n._settledAt(2,t,e)})},e}(),F=function(){function t(e){this[S]=O++,this._result=this._state=void 0,this._subscribers=[],w!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){M(e,t)},function(t){I(e,t)})}catch(t){I(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
2onstructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return F.prototype.then=b,F.all=function(e){return new N(this,e).promise},F.race=function(e){var n=this;return t(e)?new n(function(t,r){for(var i=e.length,a=0;a<i;a++)n.resolve(e[a]).then(t,r)}):new n(function(e,t){return t(new TypeError("You must pass an array to race."))})},F.resolve=T,F.reject=function(e){var t=new this(w);return I(t,e),t},F._setScheduler=function(e){s=e},F._setAsap=function(e){o=e},F._asap=o,F.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=F},F.Promise=F,F}()},1159:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}p(e,t,a,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&p(e,"error",t,{once:!0})}(e,i)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,a,s,u;if(o(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=m(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},a.prototype.addListener=function(e,t){return u(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return u(this,e,t,!0)},a.prototype.once=function(e,t){return o(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,s;if(o(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
vendor: 10,977 bytes, line 2
2("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3101:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty;e.exports=function e(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,o,l,u=t(i),c=t(a);if(u&&c){if((o=i.length)!=a.length)return!1;for(s=o;0!=s--;)if(!e(i[s],a[s]))return!1;return!0}if(u!=c)return!1;var d=i instanceof Date,f=a instanceof Date;if(d!=f)return!1;if(d&&f)return i.getTime()==a.getTime();var h=i instanceof RegExp,m=a instanceof RegExp;if(h!=m)return!1;if(h&&m)return i.toString()==a.toString();var p=n(i);if((o=p.length)!==n(a).length)return!1;for(s=o;0!=s--;)if(!r.call(a,p[s]))return!1;for(s=o;0!=s--;)if(!e(i[l=p[s]],a[l]))return!1;return!0}return i!=i&&a!=a}},3362:function(e,t,n){!function(e,t,n,r,i){function a(e){if("contents"in e)for(var t=("styleAttrs"in e?e.styleAttrs[r.byName.ruby.qname]:null),n="span"===e.kind&&("container"===t||"textContainer"===t||"baseContainer"===t),i=e.contents.length-1;i>=0;i--)!n||"styleAttrs"in e.contents[i]&&r.byName.ruby.qname in e.contents[i].styleAttrs?a(e.contents[i]):delete e.contents[i]}function s(e,t,n,r){var i=r&&"seq"===r.timeContainer,a=0;r&&(a=i&&n?n.end:r.begin),t.begin=t.explicit_begin?t.explicit_begin+a:a;var o=t.begin,l=null;if("sets"in t)for(var u=0;u<t.sets.length;u++)s(e,t.sets[u],l,t),o="seq"===t.timeContainer?t.sets[u].end:Math.max(o,t.sets[u].end),l=t.sets[u];if("contents"in t){if("contents"in t)for(var c=0;c<t.contents.length;c++)s(e,t.contents[c],l,t),o="seq"===t.timeContainer?t.contents[c].end:Math.max(o,t.contents[c].end),l=t.contents[c]}else o=i?t.begin:Number.POSITIVE_INFINITY;null!==t.explicit_end&&null!==t.explicit_dur?t.end=Math.min(t.begin+t.explicit_dur,a+t.explicit_end):null===t.explicit_end&&null!==t.explicit_dur?t.end=t.begin+t.explicit_dur:null!==t.explicit_end&&null===t.explicit_dur?t.end=a+t.explicit_end:t.end=o,delete t.explicit_begin,delete t.explicit_dur,delete t.explicit_end,e._registerEvent(t)}function o(e){this.node=e}function l(){this.events=[],this.head=new u,this.body=null}function u(){this.styling=new c,this.layout=new h}function c(){this.styles={},this.initials={}}function d(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function f(){this.styleAttrs=null}function h(){this.regions={}}function m(e,t){p.call(this,"image"),this.src=e,this.type=t}function p(e){this.kind=e}function g(e){this.id=e}function y(e){this.regionID=e}function _(e){this.styleAttrs=e}function v(e){this.sets=e}function E(e){this.contents=e}function b(e,t,n){this.explicit_begin=e,this.explicit_end=t,this.explicit_dur=n}function T(){p.call(this,"body")}function S(){p.call(this,"div")}function w(){p.call(this,"p")}function L(){p.call(this,"span")}function A(){p.call(this,"span")}function M(){p.call(this,"br")}function D(){}function k(){}function I(e){return e&&"xml:id"in e.attributes&&e.attributes["xml:id"].value||null}function R(e){return e&&"style"in e.attributes?e.attributes.style.value.split(" "):[]}function C(e,t){var n={};if(null!==e)for(var i in e.attributes){var a=e.attributes[i].uri+" "+e.attributes[i].local,s=r.byQName[a];if(void 0!==s){var o=s.parse(e.attributes[i].value);null!==o?(n[a]=o,s===r.byName.zIndex&&Y(t,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):U(t,"Cannot parse styling attribute "+a+" --\x3e "+e.attributes[i].value)}}return n}function P(e,t,n){for(var r in e.attributes)if(e.attributes[r].uri===t&&e.attributes[r].local===n)return e.attributes[r].value;return null}function O(e,t,n){var r,i=null;return null!==(r=/^(\d+(?:\.\d+)?)f$/.exec(n))?null!==t&&(i=parseFloat(r[1])/t):null!==(r=/^(\d+(?:\.\d+)?)t$/.exec(n))?null!==e&&(i=parseFloat(r[1])/e):null!==(r=/^(\d+(?:\.\d+)?)ms$/.exec(n))?i=parseFloat(r[1])/1e3:null!==(r=/^(\d+(?:\.\d+)?)s$/.exec(n))?i=parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)h$/.exec(n))?i=3600*parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)m$/.exec(n))?i=60*parseFloat(r[1]):null!==(r=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/.exec(n))?i=3600*parseInt(r[1])+60*parseInt(r[2])+parseFloat(r[3]):null!==(r=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/.exec(n))&&null!==t&&(i=3600*parseInt(r[1])+60*parseInt(r[2])+parseInt(r[3])+(null===r[4]?0:parseInt(r[4])/t)),i}function x(e,t,n){for(;t.styleRefs.length>0;){var r=t.styleRefs.pop();r in e.styles?(x(e,e.styles[r],n),F(e.styles[r].styleAttrs,t.styleAttrs)):U(n,"Non-existant style id referenced")}}function N(e,t,n,r){for(var i=t.length-1;i>=0;i--){var a=t[i];a in e.styles?F(e.styles[a].styleAttrs,n):U(r,"Non-existant style id referenced")}}function F(e,t){for(var n in e)e.hasOwnProperty(n)&&(n in t||(t[n]=e[n]))}function Y(e,t){if(e&&e.warn&&e.warn(t))throw t}function U(e,t){if(e&&e.error&&e.error(t))throw t}function B(e,t){throw e&&e.fatal&&e.fatal(t),t}function j(e,t){for(var n,r=0,i=e.length-1;r<=i;){var a=e[n=Math.floor((r+i)/2)];if(a<t)r=n+1;else{if(!(a>t))return{found:!0,index:n};i=n-1}}return{found:!1,index:r}}e.fromXML=function(e,i,p){var g=t.parser(!0,{xmlns:!0}),y=[],_=[],v=[],E=0,b=null;g.onclosetag=function(e){if(y[0]instanceof D)null!==b.head&&null!==b.head.styling&&N(b.head.styling,y[0].styleRefs,y[0].styleAttrs,i),delete y[0].styleRefs;else if(y[0]instanceof c)for(var t in y[0].styles)y[0].styles.hasOwnProperty(t)&&x(y[0],y[0].styles[t],i);else if(y[0]instanceof w||y[0]instanceof L){if(y[0].contents.length>1){var r,a=[y[0].contents[0]];for(r=1;r<y[0].contents.length;r++)y[0].contents[r]instanceof A&&a[a.length-1]instanceof A?a[a.length-1].text+=y[0].contents[r].text:a.push(y[0].contents[r]);y[0].contents=a}y[0]instanceof L&&1===y[0].contents.length&&y[0].contents[0]instanceof A&&(y[0].text=y[0].contents[0].text,delete y[0].contents)}else y[0]instanceof o&&(y[0].node.uri===n.ns_tt&&"metadata"===y[0].node.local?E--:E>0&&p&&"onCloseTag"in p&&p.onCloseTag());v.shift(),_.shift(),y.shift()},g.ontext=function(e){if(void 0===y[0]);else if(y[0]instanceof L||y[0]instanceof w){if(y[0]instanceof L){var t=y[0].styleAttrs[r.byName.ruby.qname];if("container"===t||"textContainer"===t||"baseContainer"===t)return}var n=new A;n.initFromText(b,y[0],e,_[0],v[0],i),y[0].contents.push(n)}else y[0]instanceof o&&E>0&&p&&"onText"in p&&p.onText(e)},g.onopentag=function(e){var t=e.attributes["xml:space"];t?v.unshift(t.value):0===v.length?v.unshift("default"):v.unshift(v[0]);var a=e.attributes["xml:lang"];if(a?_.unshift(a.value):0===_.length?_.unshift(""):_.unshift(_[0]),e.uri===n.ns_tt)if("tt"===e.local)null!==b&&B(i,"Two <tt> elements at ("+this.line+","+this.column+")"),(b=new l).initFromNode(e,_[0],i),y.unshift(b);else if("head"===e.local)y[0]instanceof l||B(i,"Parent of <head> element is not <tt> at ("+this.line+","+this.column+")"),y.unshift(b.head);else if("styling"===e.local)y[0]instanceof u||B(i,"Parent of <styling> element is not <head> at ("+this.line+","+this.column+")"),y.unshift(b.head.styling);else if("style"===e.local){var s;y[0]instanceof c?((s=new d).initFromNode(e,i),s.id?b.head.styling.styles[s.id]=s:U(i,"<style> element missing @id attribute"),y.unshift(s)):y[0]instanceof D?((s=new d).initFromNode(e,i),F(s.styleAttrs,y[0].styleAttrs),y.unshift(s)):B(i,"Parent of <style> element is not <styling> or <region> at ("+this.line+","+this.column+")")}else if("initial"===e.local){var g;if(y[0]instanceof c){for(var A in(g=new f).initFromNode(e,i),g.styleAttrs)g.styleAttrs.hasOwnProperty(A)&&(b.head.styling.initials[A]=g.styleAttrs[A]);y.unshift(g)}else B(i,"Parent of <initial> element is not <styling> at ("+this.line+","+this.column+")")}else if("layout"===e.local)y[0]instanceof u||B(i,"Parent of <layout> element is not <head> at "+this.line+","+this.column+")"),y.unshift(b.head.layout);else if("region"===e.local){y[0]instanceof h||B(i,"Parent of <region> element is not <layout> at "+this.line+","+this.column+")");var I=new D;I.initFromNode(b,e,_[0],i),!I.id||I.id in b.head.layout.regions?U(i,"Ignoring <region> with duplicate or missing @id at "+this.line+","+this.column+")"):b.head.layout.regions[I.id]=I,y.unshift(I)}else if("body"===e.local){y[0]instanceof l||B(i,"Parent of <body> element is not <tt> at "+this.line+","+this.column+")"),null!==b.body&&B(i,"Second <body> element at "+this.line+","+this.column+")");var R=new T;R.initFromNode(b,e,_[0],i),b.body=R,y.unshift(R)}else if("div"===e.local){y[0]instanceof S||y[0]instanceof T||B(i,"Parent of <div> element is not <body> or <div> at "+this.line+","+this.column+")");var C=new S;C.initFromNode(b,y[0],e,_[0],i);var P=C.styleAttrs[r.byName.backgroundImage.qname];P&&(C.contents.push(new m(P)),delete C.styleAttrs[r.byName.backgroundImage.qname]),y[0].contents.push(C),y.unshift(C)}else if("image"===e.local){y[0]instanceof S||B(i,"Parent of <image> element is not <div> at "+this.line+","+this.column+")");var O=new m;O.initFromNode(b,y[0],e,_[0],i),y[0].contents.push(O),y.unshift(O)}else if("p"===e.local){y[0]instanceof S||B(i,"Parent of <p> element is not <div> at "+this.line+","+this.column+")");var x=new w;x.initFromNode(b,y[0],e,_[0],i),y[0].contents.push(x),y.unshift(x)}else if("span"===e.local){y[0]instanceof L||y[0]instanceof w||B(i,"Parent of <span> element is not <span> or <p> at "+this.line+","+this.column+")");var N=new L;N.initFromNode(b,y[0],e,_[0],v[0],i),y[0].contents.push(N),y.unshift(N)}else if("br"===e.local){y[0]instanceof L||y[0]instanceof w||B(i,"Parent of <br> element is not <span> or <p> at "+this.line+","+this.column+")");var Y=new M;Y.initFromNode(b,y[0],e,_[0],i),y[0].contents.push(Y),y.unshift(Y)}else if("set"===e.local){y[0]instanceof L||y[0]instanceof w||y[0]instanceof S||y[0]instanceof T||y[0]instanceof D||y[0]instanceof M||B(i,"Parent of <set>
2 element is not a content element or a region at "+this.line+","+this.column+")");var j=new k;j.initFromNode(b,y[0],e,i),y[0].sets.push(j),y.unshift(j)}else y.unshift(new o(e));else y.unshift(new o(e));if(y[0]instanceof o)if(e.uri===n.ns_tt&&"metadata"===e.local)E++;else if(E>0&&p&&"onOpenTag"in p){var H=[];for(var G in e.attributes)H[e.attributes[G].uri+" "+e.attributes[G].local]={uri:e.attributes[G].uri,local:e.attributes[G].local,value:e.attributes[G].value};p.onOpenTag(e.uri,e.local,H)}},g.write(e).close(),delete b.head.styling.styles;var I=!1;for(var R in b.head.layout.regions)if(b.head.layout.regions.hasOwnProperty(R)){I=!0;break}if(!I){var C=D.prototype.createDefaultRegion(b.lang);b.head.layout.regions[C.id]=C}for(var P in b.head.layout.regions)b.head.layout.regions.hasOwnProperty(P)&&s(b,b.head.layout.regions[P],null,null);return b.body&&s(b,b.body,null,null),b.body&&a(b.body),b},l.prototype.initFromNode=function(e,t,r){var a=function(e,t){var r=P(e,n.ns_ttp,"cellResolution"),i=15,a=32;if(null!==r){var s=/(\d+) (\d+)/.exec(r);null!==s?(a=parseInt(s[1]),i=parseInt(s[2])):Y(t,"Malformed cellResolution value (using initial value instead)")}return{w:a,h:i}}(e,r);this.cellLength={h:new i.ComputedLength(0,1/a.h),w:new i.ComputedLength(1/a.w,0)};var s=function(e,t){var r,i=P(e,n.ns_ttp,"frameRate"),a=30;null!==i&&(null!==(r=/(\d+)/.exec(i))?a=parseInt(r[1]):Y(t,"Malformed frame rate attribute (using initial value instead)"));var s=P(e,n.ns_ttp,"frameRateMultiplier"),o=1;null!==s&&(null!==(r=/(\d+) (\d+)/.exec(s))?o=parseInt(r[1])/parseInt(r[2]):Y(t,"Malformed frame rate multiplier attribute (using initial value instead)"));var l=o*a,u=1,c=P(e,n.ns_ttp,"tickRate");return null===c?null!==i&&(u=l):null!==(r=/(\d+)/.exec(c))?u=parseInt(r[1]):Y(t,"Malformed tick rate attribute (using initial value instead)"),{effectiveFrameRate:l,tickRate:u}}(e,r);this.effectiveFrameRate=s.effectiveFrameRate,this.tickRate=s.tickRate,this.aspectRatio=function(e,t){var r=P(e,n.ns_ittp,"aspectRatio");null===r&&(r=P(e,n.ns_ttp,"displayAspectRatio"));var i=null;if(null!==r){var a=/(\d+)\s+(\d+)/.exec(r);if(null!==a){var s=parseInt(a[1]),o=parseInt(a[2]);0!==s&&0!==o?i=s/o:U(t,"Illegal aspectRatio values (ignoring)")}else U(t,"Malformed aspectRatio attribute (ignoring)")}return i}(e,r);var o=P(e,n.ns_ttp,"timeBase");null!==o&&"media"!==o&&B(r,"Unsupported time base");var l=function(e,t){var r=P(e,n.ns_tts,"extent");if(null===r)return null;var a=r.split(" ");if(2!==a.length)return Y(t,"Malformed extent (ignoring)"),null;var s=i.parseLength(a[0]),o=i.parseLength(a[1]);return o&&s?{h:o,w:s}:(Y(t,"Malformed extent values (ignoring)"),null)}(e,r);null===l?this.pxLength={h:null,w:null}:("px"===l.h.unit&&"px"===l.w.unit||B(r,"Extent on TT must be in px or absent"),this.pxLength={h:new i.ComputedLength(0,1/l.h.value),w:new i.ComputedLength(1/l.w.value,0)}),this.dimensions={h:new i.ComputedLength(0,1),w:new i.ComputedLength(1,0)},this.lang=t},l.prototype._registerEvent=function(e){if(!(e.end<=e.begin)){var t=j(this.events,e.begin);if(t.found||this.events.splice(t.index,0,e.begin),e.end!==Number.POSITIVE_INFINITY){var n=j(this.events,e.end);n.found||this.events.splice(n.index,0,e.end)}}},l.prototype.getMediaTimeRange=function(){return[this.events[0],this.events[this.events.length-1]]},l.prototype.getMediaTimeEvents=function(){return this.events},d.prototype.initFromNode=function(e,t){this.id=I(e),this.styleAttrs=C(e,t),this.styleRefs=R(e)},f.prototype.initFromNode=function(e,t){for(var r in this.styleAttrs={},e.attributes)if(e.attributes[r].uri===n.ns_itts||e.attributes[r].uri===n.ns_ebutts||e.attributes[r].uri===n.ns_tts){var i=e.attributes[r].uri+" "+e.attributes[r].local;this.styleAttrs[i]=e.attributes[r].value}},m.prototype.initFromNode=function(e,t,n,r,i){this.src="src"in n.attributes?n.attributes.src.value:null,this.src||U(i,"Invalid image@src attribute"),this.type="type"in n.attributes?n.attributes.type.value:null,this.type||U(i,"Invalid image@type attribute"),_.prototype.initFromNode.call(this,e,t,n,i),b.prototype.initFromNode.call(this,e,t,n,i),v.prototype.initFromNode.call(this,e,t,n,i),y.prototype.initFromNode.call(this,e,t,n,i),this.lang=r},g.prototype.initFromNode=function(e,t,n,r){this.id=I(n)},y.prototype.initFromNode=function(e,t,n,r){this.regionID=function(e){return e&&"region"in e.attributes?e.attributes.region.value:""}(n)},_.prototype.initFromNode=function(e,t,n,r){this.styleAttrs=C(n,r),null!==e.head&&null!==e.head.styling&&N(e.head.styling,R(n),this.styleAttrs,r)},v.prototype.initFromNode=function(e,t,n,r){this.sets=[]},E.prototype.initFromNode=function(e,t,n,r){this.contents=[]},b.prototype.initFromNode=function(e,t,n,r){var i=function(e,t,n,r){var i=null;n&&"begin"in n.attributes&&null===(i=O(e.tickRate,e.effectiveFrameRate,n.attributes.begin.value))&&Y(r,"Malformed begin value "+n.attributes.begin.value+" (using 0)");var a=null;n&&"dur"in n.attributes&&null===(a=O(e.tickRate,e.effectiveFrameRate,n.attributes.dur.value))&&Y(r,"Malformed dur value "+n.attributes.dur.value+" (ignoring)");var s=null;return n&&"end"in n.attributes&&null===(s=O(e.tickRate,e.effectiveFrameRate,n.attributes.end.value))&&Y(r,"Malformed end value (ignoring)"),{explicit_begin:i,explicit_end:s,explicit_dur:a}}(e,0,n,r);this.explicit_begin=i.explicit_begin,this.explicit_end=i.explicit_end,this.explicit_dur=i.explicit_dur,this.timeContainer=function(e,t){var n=e&&"timeContainer"in e.attributes?e.attributes.timeContainer.value:null;return n&&"par"!==n?"seq"===n?"seq":(U(t,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}(n,r)},T.prototype.initFromNode=function(e,t,n,r){_.prototype.initFromNode.call(this,e,null,t,r),b.prototype.initFromNode.call(this,e,null,t,r),v.prototype.initFromNode.call(this,e,null,t,r),y.prototype.initFromNode.call(this,e,null,t,r),E.prototype.initFromNode.call(this,e,null,t,r),this.lang=n},S.prototype.initFromNode=function(e,t,n,r,i){_.prototype.initFromNode.call(this,e,t,n,i),b.prototype.initFromNode.call(this,e,t,n,i),v.prototype.initFromNode.call(this,e,t,n,i),y.prototype.initFromNode.call(this,e,t,n,i),E.prototype.initFromNode.call(this,e,t,n,i),this.lang=r},w.prototype.initFromNode=function(e,t,n,r,i){_.prototype.initFromNode.call(this,e,t,n,i),b.prototype.initFromNode.call(this,e,t,n,i),v.prototype.initFromNode.call(this,e,t,n,i),y.prototype.initFromNode.call(this,e,t,n,i),E.prototype.initFromNode.call(this,e,t,n,i),this.lang=r},L.prototype.initFromNode=function(e,t,n,r,i,a){_.prototype.initFromNode.call(this,e,t,n,a),b.prototype.initFromNode.call(this,e,t,n,a),v.prototype.initFromNode.call(this,e,t,n,a),y.prototype.initFromNode.call(this,e,t,n,a),E.prototype.initFromNode.call(this,e,t,n,a),this.space=i,this.lang=r},A.prototype.initFromText=function(e,t,n,r,i,a){b.prototype.initFromNode.call(this,e,t,null,a),this.text=n,this.space=i,this.lang=r},M.prototype.initFromNode=function(e,t,n,r,i){y.prototype.initFromNode.call(this,e,t,n,i),b.prototype.initFromNode.call(this,e,t,n,i),this.lang=r},D.prototype.createDefaultRegion=function(e){var t=new D;return g.call(t,""),_.call(t,{}),v.call(t,[]),b.call(t,0,Number.POSITIVE_INFINITY,null),this.lang=e,t},D.prototype.initFromNode=function(e,t,n,r){g.prototype.initFromNode.call(this,e,null,t,r),b.prototype.initFromNode.call(this,e,null,t,r),v.prototype.initFromNode.call(this,e,null,t,r),this.styleAttrs=C(t,r),this.styleRefs=R(t),this.lang=n},k.prototype.initFromNode=function(e,t,n,r){b.prototype.initFromNode.call(this,e,t,n,r);var i=C(n,r);for(var a in this.qname=null,this.value=null,i)if(i.hasOwnProperty(a)){if(this.qname){U(r,"More than one style specified on set");break}this.qname=a,this.value=i[a]}}}(t,"undefined"==typeof sax?n(5378):sax,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscStyles?n(6811):imscStyles,"undefined"==typeof imscUtils?n(5926):imscUtils)}
vendor: 6,201 bytes, line 2
2,506:function(e,t,n){var r=/firefox/i.test(navigator.userAgent);!function(e,t,n){function i(e,t,d,h){var m;if("region"===d.kind)(m=document.createElement("div")).style.position="absolute";else if("body"===d.kind)m=document.createElement("div");else if("div"===d.kind)m=document.createElement("div");else if("image"===d.kind){if(m=document.createElement("img"),null!==e.imgResolver&&null!==d.src){var y=e.imgResolver(d.src,m);y&&(m.src=y),m.height=e.regionH,m.width=e.regionW}}else if("p"===d.kind)m=document.createElement("p");else if("span"===d.kind)if("container"===d.styleAttrs[n.byName.ruby.qname])m=document.createElement("ruby"),e.ruby=!0;else if("base"===d.styleAttrs[n.byName.ruby.qname])m=document.createElement("span");else if("text"===d.styleAttrs[n.byName.ruby.qname])m=document.createElement("rt");else if("baseContainer"===d.styleAttrs[n.byName.ruby.qname])m=document.createElement("rbc");else if("textContainer"===d.styleAttrs[n.byName.ruby.qname])m=document.createElement("rtc");else{if("delimiter"===d.styleAttrs[n.byName.ruby.qname])return;m=document.createElement("span")}else"br"===d.kind&&(m=document.createElement("br"));if(m){if(d.lang&&("region"!==d.kind&&d.lang===h.lang||(m.lang=d.lang)),t.appendChild(m),m.style.margin="0","region"===d.kind){var E=d.styleAttrs[n.byName.writingMode.qname];"lrtb"===E||"lr"===E?(e.ipd="lr",e.bpd="tb"):"rltb"===E||"rl"===E?(e.ipd="rl",e.bpd="tb"):"tblr"===E?(e.ipd="tb",e.bpd="lr"):"tbrl"!==E&&"tb"!==E||(e.ipd="tb",e.bpd="rl")}else if("p"===d.kind&&"tb"===e.bpd){var b=d.styleAttrs[n.byName.direction.qname];e.ipd="ltr"===b?"lr":"rl"}for(var T=0;T<f.length;T++){var S=f[T],w=d.styleAttrs[S.qname];void 0!==w&&null!==S.map&&S.map(e,m,d,w)}var L=m,A=d.styleAttrs[n.byName.linePadding.qname];if(A&&!A.isZero()){var M=A.toUsedLength(e.w,e.h);if(M>0){var D=Math.ceil(M)+"px";"tb"===e.bpd?(L.style.paddingLeft=D,L.style.paddingRight=D):(L.style.paddingTop=D,L.style.paddingBottom=D),e.lp=A}}var k=d.styleAttrs[n.byName.multiRowAlign.qname];if(k&&"auto"!==k){var I=document.createElement("span");I.style.display="inline-block",I.style.textAlign=k,m.appendChild(I),L=I,e.mra=k}var R=d.styleAttrs[n.byName.rubyReserve.qname];if(R&&"none"!==R[0]&&(e.rubyReserve=R),d.styleAttrs[n.byName.fillLineGap.qname]&&(e.flg=!0),"span"===d.kind&&d.text){var C=d.styleAttrs[n.byName.textEmphasis.qname];if(C&&"none"!==C.style&&(e.textEmphasis=!0),n.byName.textCombine.qname in d.styleAttrs&&"all"===d.styleAttrs[n.byName.textCombine.qname])m.textContent=d.text,m._isd_element=d,C&&c(e,m,0,C);else for(var P="",O=0;O<d.text.length;O++){P+=d.text.charAt(O);var x=d.text.charCodeAt(O);if(x<55296||x>56319||O===d.text.length-1){var N=document.createElement("span");N.textContent=P,C&&c(e,N,0,C),m.appendChild(N),P="",N._isd_element=d}}}if("contents"in d)for(var F=0;F<d.contents.length;F++)i(e,L,d.contents[F],d);var Y=[];if("p"===d.kind&&(u(e,L,Y,null),e.rubyReserve&&(function(e,t){for(var n=0;n<e.length;n++){var r,i,a=document.createElement("ruby"),s=document.createElement("span");s.textContent="â",a.appendChild(s);var o,l=t.rubyReserve[1].toUsedLength(t.w,t.h)+"px";"both"===t.rubyReserve[0]||"outside"===t.rubyReserve[0]&&1==e.length?((r=document.createElement("rtc")).style[g]=p?"after":"under",r.textContent="â",r.style.fontSize=l,(i=document.createElement("rtc")).style[g]=p?"before":"over",i.textContent="â",i.style.fontSize=l,a.appendChild(r),a.appendChild(i)):((r=document.createElement("rtc")).textContent="â",r.style.fontSize=l,o="after"===t.rubyReserve[0]||"outside"===t.rubyReserve[0]&&n>0?p?"after":"tb"===t.bpd||"rl"===t.bpd?"under":"over":p?"before":"tb"===t.bpd||"rl"===t.bpd?"over":"under",r.style[g]=o,a.appendChild(r));for(var u=null,c=0;c<e[n].rbc.length;c++)if("ruby"===e[n].rbc[c].localName){u=e[n].rbc[c];for(var d=0;d<u.style.length;d++)a.style.setProperty(u.style.item(d),u.style.getPropertyValue(u.style.item(d)));break}(u=u||e[n].elements[0].node).parentElement.insertBefore(a,u)}}(Y,e),e.rubyReserve=null),(e.ruby||e.rubyReserve)&&(function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<e[n].rbc.length;r++){var i;e[n].rbc[r].style[g]||(i=p?0===n?"before":"after":"tb"===t.bpd||"rl"===t.bpd?0===n?"over":"under":0===n?"under":"over",e[n].rbc[r].style[g]=i)}}(Y,e),e.ruby=null),e.textEmphasis&&(function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<e[n].te.length;r++){var i;e[n].te[r].style[_]&&"none"!==e[n].te[r].style[_]||(i="tb"===t.bpd?0===n?"left over":"left under":"rl"===t.bpd?0===n?"right under":"left under":0===n?"left under":"right under",e[n].te[r].style[_]=i)}}(Y,e),e.textEmphasis=null),e.mra&&(function(e){for(var t=0;t<e.length-1;t++){var n=e[t].elements.length;if(0!==n&&!1===e[t].br){var r=document.createElement("br"),i=e[t].elements[n-1].node;i.parentElement.insertBefore(r,i.nextSibling)}}}(Y),e.mra=null),e.lp&&(function(e,t,n){if(null!==e)for(var i=0;i<e.length;i++){var a=e[i].elements.length,s=Math.ceil(t)+"px",o="-"+Math.ceil(t)+"px";if(0!==a){var l=e[i].elements[e[i].start_elem],u=e[i].elements[e[i].end_elem];if(l===u){var c=l.node.getBoundingClientRect();if(0==c.width||0==c.height)continue}"lr"===n.ipd?(l.node.style.marginLeft=o,l.node.style.paddingLeft=s):"rl"===n.ipd?(l.node.style.paddingRight=s,l.node.style.marginRight=o):"tb"===n.ipd&&(l.node.style.paddingTop=s,l.node.style.marginTop=o),"lr"===n.ipd?(r||(u.node.style.marginRight=o),u.node.style.paddingRight=s):"rl"===n.ipd?(u.node.style.paddingLeft=s,r||(u.node.style.marginLeft=o)):"tb"===n.ipd&&(u.node.style.paddingBottom=s,u.node.style.marginBottom=o)}}}(Y,e.lp.toUsedLength(e.w,e.h),e),e.lp=null),function(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=1;i<r.elements.length;){var o=r.elements[i-1],l=r.elements[i];s(o.node,l.node,t)?r.elements.splice(i,1):i++}for(var u,c,d=[],f=0;f<e.length;f++)for(var h=0;h<e[f].elements.length;h++)(c=a(u=e[f].elements[h].node,d,!1))&&(u.style.backgroundColor=c);for(var m=0;m<d.length;m++)d[m].style.backgroundColor=""}(Y,e),e.flg)){var U=l(L.getBoundingClientRect(),e);!function(e,t,n,r){for(var i=Math.sign(n-t),a=0;a<=e.length;a++){var s,o,l,u;if(s=0===a?Math.round(t):a===e.length?Math.round(n):Math.round((e[a-1].after+e[a].before)/2),a>0&&e[a-1])for(l=0;l<e[a-1].elements.length;
vendor: 4,930 bytes, line 2
2l++)o=i*(s-(u=e[a-1].elements[l]).after)+"px","lr"===r.bpd?u.node.style.paddingRight=o:"rl"===r.bpd?u.node.style.paddingLeft=o:"tb"===r.bpd&&(u.node.style.paddingBottom=o);if(a<e.length)for(l=0;l<e[a].elements.length;l++)o=i*((u=e[a].elements[l]).before-s)+"px","lr"===r.bpd?u.node.style.paddingLeft=o:"rl"===r.bpd?u.node.style.paddingRight=o:"tb"===r.bpd&&(u.node.style.paddingTop=o)}}(Y,U.before,U.after,e),e.flg=null}if("region"===d.kind&&"tb"===e.bpd&&e.enableRollUp&&d.contents.length>0&&"after"===d.styleAttrs[n.byName.displayAlign.qname]){u(e,L,Y,null);var B=new o(""===d.id?"_":d.id,Y);if(e.currentISDState[B.id]=B,e.previousISDState&&B.id in e.previousISDState&&e.previousISDState[B.id].plist.length>0&&B.plist.length>1&&B.plist[B.plist.length-2].text===e.previousISDState[B.id].plist[e.previousISDState[B.id].plist.length-1].text){var j=m.firstElementChild,H=B.plist[B.plist.length-1].after-B.plist[B.plist.length-1].before;j.style.bottom="-"+H+"px",j.style.transition="transform 0.4s",j.style.position="relative",j.style.transform="translateY(-"+H+"px)"}}}else v(e.errorHandler,"Error processing ISD element kind: "+d.kind)}function a(e,t,n){return e.style.backgroundColor?(n&&!t.includes(e)&&t.push(e),e.style.backgroundColor):"SPAN"===e.parentElement.nodeName||"RUBY"===e.parentElement.nodeName||"RBC"===e.parentElement.nodeName||"RTC"===e.parentElement.nodeName||"RT"===e.parentElement.nodeName?a(e.parentElement,t,!0):void 0}function s(e,t,n){if("SPAN"===e.tagName&&"SPAN"===t.tagName&&e._isd_element===t._isd_element){if(!e._isd_element)return v(n.errorHandler,"Internal error: HTML span is not linked to a source element; cannot merge spans."),!1;e.textContent+=t.textContent;for(var r=0;r<t.style.length;r++){var i=t.style[r];(i.indexOf("border")>=0||i.indexOf("padding")>=0||i.indexOf("margin")>=0)&&(e.style[i]=t.style[i])}return t.parentElement.removeChild(t),!0}return!1}function o(e,t){this.id=e,this.plist=t}function l(e,t){var n={before:null,after:null,start:null,end:null};return"tb"===t.bpd?(n.before=e.top,n.after=e.bottom,"lr"===t.ipd?(n.start=e.left,n.end=e.right):(n.start=e.right,n.end=e.left)):"lr"===t.bpd?(n.before=e.left,n.after=e.right,n.start=e.top,n.end=e.bottom):"rl"===t.bpd&&(n.before=e.right,n.after=e.left,n.start=e.top,n.end=e.bottom),n}function u(e,t,n,r){if("rt"!==t.localName&&"rtc"!==t.localName){var i,a,s,o,c=t.style.backgroundColor||r;if(0===t.childElementCount)if("span"===t.localName||"rb"===t.localName){var d=l(t.getBoundingClientRect(),e);if(0!==n.length&&(i=d.before,a=d.after,s=n[n.length-1].before,a<(o=n[n.length-1].after)&&i>s||o<=a&&s>=i)){var f=Math.sign(d.after-d.before),h=Math.sign(d.end-d.start);f*(d.before-n[n.length-1].before)<0&&(n[n.length-1].before=d.before),f*(d.after-n[n.length-1].after)>0&&(n[n.length-1].after=d.after),h*(d.start-n[n.length-1].start)<0&&(n[n.length-1].start=d.start,n[n.length-1].start_elem=n[n.length-1].elements.length),h*(d.end-n[n.length-1].end)>0&&(n[n.length-1].end=d.end,n[n.length-1].end_elem=n[n.length-1].elements.length)}else n.push({before:d.before,after:d.after,start:d.start,end:d.end,start_elem:0,end_elem:0,elements:[],rbc:[],te:[],text:"",br:!1});n[n.length-1].text+=t.textContent,n[n.length-1].elements.push({node:t,bgcolor:c,before:d.before,after:d.after})}else"br"===t.localName&&0!==n.length&&(n[n.length-1].br=!0);else for(var m=t.firstChild;m;)m.nodeType===Node.ELEMENT_NODE&&(u(e,m,n,c),"ruby"===m.localName||"rtc"===m.localName?n.length>0&&n[n.length-1].rbc.push(m):"span"===m.localName&&m.style[y]&&"none"!==m.style[y]&&n.length>0&&n[n.length-1].te.push(m)),m=m.nextSibling}}function c(e,t,n,r){var i;"none"!==r.style&&("auto"===r.style?t.style[y]="filled":t.style[y]=r.style+" "+r.symbol,("before"===r.position||"after"===r.position)&&(i="tb"===e.bpd?"before"===r.position?"left over":"left under":"rl"===e.bpd?"before"===r.position?"right under":"left under":"before"===r.position?"left under":"right under",t.style[_]=i))}function d(e,t){this.qname=e,this.map=t}e.render=function(e,t,n,r,a,s,o,l,u){var c=r||t.clientHeight,d=a||t.clientWidth;if(null!==e.aspectRatio){var f=c*e.aspectRatio;f>d?c=Math.round(d/e.aspectRatio):d=f}var h=document.createElement("div");h.style.position="relative",h.style.width=d+"px",h.style.height=c+"px",h.style.margin="auto",h.style.top=0,h.style.bottom=0,h.style.left=0,h.style.right=0,h.style.zIndex=0;var m={h:c,w:d,regionH:null,regionW:null,imgResolver:n,displayForcedOnlyMode:s||!1,isd:e,errorHandler:o,previousISDState:l,enableRollUp:u||!1,currentISDState:{},flg:null,lp:null,mra:null,ipd:null,bpd:null,ruby:null,textEmphasis:null,rubyReserve:null};if(t.appendChild(h),"contents"in e)for(var p=0;p<e.contents.length;p++)i(m,h,e.contents[p],e);return m.currentISDState};for(var f=[new d("http://www.w3.org/ns/ttml#styling backgroundColor",function(e,t,n,r){0!==r[3]&&(t.style.backgroundColor="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255
2).toString()+")")}),new d("http://www.w3.org/ns/ttml#styling color",function(e,t,n,r){t.style.color="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new d("http://www.w3.org/ns/ttml#styling direction",function(e,t,n,r){t.style.direction=r}),new d("http://www.w3.org/ns/ttml#styling display",function(e,t,n,r){}),new d("http://www.w3.org/ns/ttml#styling displayAlign",function(e,t,n,r){t.style.display="flex",t.style.flexDirection="column","before"===r?t.style.justifyContent="flex-start":"center"===r?t.style.justifyContent="center":"after"===r&&(t.style.justifyContent="flex-end")}),new d("http://www.w3.org/ns/ttml#styling extent",function(e,t,n,r){e.regionH=r.h.toUsedLength(e.w,e.h),e.regionW=r.w.toUsedLength(e.w,e.h);var i=0,a=0,s=n.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];s&&(i=s[0].toUsedLength(e.w,e.h)+s[2].toUsedLength(e.w,e.h),a=s[1].toUsedLength(e.w,e.h)+s[3].toUsedLength(e.w,e.h)),t.style.height=e.regionH-i+"px",t.style.width=e.regionW-a+"px"}),new d("http://www.w3.org/ns/ttml#styling fontFamily",function(e,t,n,r){for(var i=[],a=0;a<r.length;a++)r[a]=r[a].trim(),"monospaceSerif"===r[a]?(i.push("Courier New"),i.push('"Liberation Mono"'),i.push("Courier"),i.push("monospace")):"proportionalSansSerif"===r[a]?(i.push("Arial"),i.push("Helvetica"),i.push('"Liberation Sans"'),i.push("sans-serif")):"monospace"===r[a]?i.push("monospace"):"sansSerif"===r[a]?i.push("sans-serif"):"serif"===r[a]?i.push("serif"):"monospaceSansSerif"===r[a]?(i.push("Consolas"),i.push("monospace")):"proportionalSerif"===r[a]?i.push("serif"):i.push(r[a]);if(i.length>0){for(var s=[i[0]],o=1;o<i.length;o++)-1==s.indexOf(i[o])&&s.push(i[o]);i=s}t.style.fontFamily=i.join(",")}),new d("http://www.w3.org/ns/ttml#styling shear",function(e,t,n,r){if(0!==r){var i=-.9*r;"tb"===e.bpd?t.style.transform="skewX("+i+"deg)":t.style.transform="skewY("+i+"deg)"}}),new d("http://www.w3.org/ns/ttml#styling fontSize",function(e,t,n,r){t.style.fontSize=r.toUsedLength(e.w,e.h)+"px"}),new d("http://www.w3.org/ns/ttml#styling fontStyle",function(e,t,n,r){t.style.fontStyle=r}),new d("http://www.w3.org/ns/ttml#styling fontWeight",function(e,t,n,r){t.style.fontWeight=r}),new d("http://www.w3.org/ns/ttml#styling lineHeight",function(e,t,n,r){t.style.lineHeight="normal"===r?"normal":r.toUsedLength(e.w,e.h)+"px"}),new d("http://www.w3.org/ns/ttml#styling opacity",function(e,t,n,r){t.style.opacity=r}),new d("http://www.w3.org/ns/ttml#styling origin",function(e,t,n,r){t.style.top=r.h.toUsedLength(e.w,e.h)+"px",t.style.left=r.w.toUsedLength(e.w,e.h)+"px"}),new d("http://www.w3.org/ns/ttml#styling overflow",function(e,t,n,r){t.style.overflow=r}),new d("http://www.w3.org/ns/ttml#styling padding",function(e,t,n,r){var i=[];i[0]=r[0].toUsedLength(e.w,e.h)+"px",i[1]=r[3].toUsedLength(e.w,e.h)+"px",i[2]=r[2].toUsedLength(e.w,e.h)+"px",i[3]=r[1].toUsedLength(e.w,e.h)+"px",t.style.padding=i.join(" ")}),new d("http://www.w3.org/ns/ttml#styling position",function(e,t,n,r){t.style.top=r.h.toUsedLength(e.w,e.h)+"px",t.style.left=r.w.toUsedLength(e.w,e.h)+"px"}),new d("http://www.w3.org/ns/ttml#styling rubyAlign",function(e,t,n,r){t.style.rubyAlign="spaceAround"===r?"space-around":"center"}),new d("http://www.w3.org/ns/ttml#styling rubyPosition",function(e,t,n,r){var i;"before"!==r&&"after"!==r||(i=p?r:"tb"===e.bpd||"rl"===e.bpd?"before"===r?"over":"under":"before"===r?"under":"over",t.parentElement.style[g]=i)}),new d("http://www.w3.org/ns/ttml#styling showBackground",null),new d("http://www.w3.org/ns/ttml#styling textAlign",function(e,t,n,r){var i;i="start"===r?"rl"===e.ipd?"right":"left":"end"===r?"rl"===e.ipd?"left":"right":r,t.style.textAlign=i}),new d("http://www.w3.org/ns/ttml#styling textDecoration",function(e,t,n,r){t.style.textDecoration=r.join(" ").replace("lineThrough","line-through")}),new d("http://www.w3.org/ns/ttml#styling textOutline",function(e,t,n,r){}),new d("http://www.w3.org/ns/ttml#styling textShadow",function(e,t,r,i){var a=r.styleAttrs[n.byName.textOutline.qname];if("none"===i&&"none"===a)t.style.textShadow="";else{var s=[];if("none"!==a){var o="rgba("+a.color[0].toString()+","+a.color[1].toString()+","+a.color[2].toString()+","+(a.color[3]/255
2).toString()+")";s.push("1px 1px 1px "+o),s.push("-1px 1px 1px "+o),s.push("1px -1px 1px "+o),s.push("-1px -1px 1px "+o)}if("none"!==i)for(var l=0;l<i.length;l++)s.push(i[l].x_off.toUsedLength(e.w,e.h)+"px "+i[l].y_off.toUsedLength(e.w,e.h)+"px "+i[l].b_radius.toUsedLength(e.w,e.h)+"px rgba("+i[l].color[0].toString()+","+i[l].color[1].toString()+","+i[l].color[2].toString()+","+(i[l].color[3]/255).toString()+")");t.style.textShadow=s.join(",")}}),new d("http://www.w3.org/ns/ttml#styling textCombine",function(e,t,n,r){t.style.textCombineUpright=r}),new d("http://www.w3.org/ns/ttml#styling textEmphasis",function(e,t,n,r){}),new d("http://www.w3.org/ns/ttml#styling unicodeBidi",function(e,t,n,r){var i;i="bidiOverride"===r?"bidi-override":r,t.style.unicodeBidi=i}),new d("http://www.w3.org/ns/ttml#styling visibility",function(e,t,n,r){t.style.visibility=r}),new d("http://www.w3.org/ns/ttml#styling wrapOption",function(e,t,n,r){"wrap"===r?"preserve"===n.space?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="normal":"preserve"===n.space?t.style.whiteSpace="pre":t.style.whiteSpace="noWrap"}),new d("http://www.w3.org/ns/ttml#styling writingMode",function(e,t,n,r){"lrtb"===r||"lr"===r||"rltb"===r||"rl"===r?t.style.writingMode="horizontal-tb":"tblr"===r?t.style.writingMode="vertical-lr":"tbrl"!==r&&"tb"!==r||(t.style.writingMode="vertical-rl")}),new d("http://www.w3.org/ns/ttml#styling zIndex",function(e,t,n,r){t.style.zIndex=r}),new d("http://www.w3.org/ns/ttml/profile/imsc1#styling forcedDisplay",function(e,t,n,r){e.displayForcedOnlyMode&&!1===r&&(t.style.visibility="hidden")})],h={},m=0;m<f.length;m++)h[f[m].qname]=f[m];var p="webkitRubyPosition"in window.getComputedStyle(document.documentElement),g=p?"webkitRubyPosition":"rubyPosition",y="webkitTextEmphasisStyle"in window.getComputedStyle(document.documentElement)?"webkitTextEmphasisStyle":"textEmphasisStyle",_="webkitTextEmphasisPosition"in window.getComputedStyle(document.documentElement)?"webkitTextEmphasisPosition":"textEmphasisPosition";function v(e,t){if(e&&e.error&&e.error(t))throw t}}(t,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscStyles?n(6811):imscStyles,"undefined"==typeof imscUtils?n(5926):imscUtils)},4080:function(e,t,n){!function(e,t,n,r){e.generateISD=function(e,t,r){var i,s=new l(e),o={},u={},c=e.head.styling.initials[n.byName.showBackground.qname],d=e.head.styling.initials[n.byName.backgroundColor.qname];for(var f in e.head.layout.regions)if(e.head.layout.regions.hasOwnProperty(f)){var h=e.head.layout.regions[f],m=h.styleAttrs[n.byName.showBackground.qname]||c,p=h.styleAttrs[n.byName.backgroundColor.qname]||d;
vendor: 5,008 bytes, line 2
2u[h.id]=("always"===m||void 0===m)&&void 0!==p&&!(t<h.begin||t>=h.end)}for(var g in e.body&&e.body.regionID&&(u[e.body.regionID]=!0),i=null!==e.body?function e(t,n){if(n.contents){var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.contents=[],n.contents.filter(function(e){return!(t<e.begin||t>=e.end)}).forEach(function(n){var i=e(t,n);i.regionID&&(u[i.regionID]=!0),null!==i&&r.contents.push(i)}),r}return n}(t,e.body):null,void 0!==u[""]&&(u[""]=!0),u)if(u[g]){var y=a(e,t,e.head.layout.regions[g],i,null,"",e.head.layout.regions[g],r,o);null!==y&&s.contents.push(y.element)}return s};var i=[n.byName.color.qname,n.byName.textCombine.qname,n.byName.textDecoration.qname,n.byName.textEmphasis.qname,n.byName.textOutline.qname,n.byName.textShadow.qname];function a(e,t,l,d,f,h,m,p,g){if(t<m.begin||t>=m.end)return null;var y="regionID"in m&&""!==m.regionID?m.regionID:h;if(null!==f&&y!==l.id&&(!("contents"in m)||"contents"in m&&0===m.contents.length||""!==y))return null;var _=new u(m);if("sets"in m)for(var v=0;v<m.sets.length;v++)t<m.sets[v].begin||t>=m.sets[v].end||(_.styleAttrs[m.sets[v].qname]=m.sets[v].value);var E={};for(var b in _.styleAttrs)if(_.styleAttrs.hasOwnProperty(b)&&(E[b]=!0,"region"===_.kind&&b===n.byName.writingMode.qname&&!(n.byName.direction.qname in _.styleAttrs))){var T=_.styleAttrs[b];"lrtb"===T||"lr"===T?_.styleAttrs[n.byName.direction.qname]="ltr":"rltb"!==T&&"rl"!==T||(_.styleAttrs[n.byName.direction.qname]="rtl")}if(null!==f)for(var S=0;S<n.all.length;S++){var w=n.all[S];if(w.qname===n.byName.textDecoration.qname){var L=f.styleAttrs[w.qname],A=_.styleAttrs[w.qname],M=[];void 0===A?M=L:-1===A.indexOf("none")?((-1===A.indexOf("noUnderline")&&-1!==L.indexOf("underline")||-1!==A.indexOf("underline"))&&M.push("underline"),(-1===A.indexOf("noLineThrough")&&-1!==L.indexOf("lineThrough")||-1!==A.indexOf("lineThrough"))&&M.push("lineThrough"),(-1===A.indexOf("noOverline")&&-1!==L.indexOf("overline")||-1!==A.indexOf("overline"))&&M.push("overline")):M.push("none"),_.styleAttrs[w.qname]=M}else if(w.qname!==n.byName.fontSize.qname||w.qname in _.styleAttrs||"span"!==_.kind||"textContainer"!==_.styleAttrs[n.byName.ruby.qname])if(w.qname!==n.byName.fontSize.qname||w.qname in _.styleAttrs||"span"!==_.kind||"text"!==_.styleAttrs[n.byName.ruby.qname])w.inherit&&w.qname in f.styleAttrs&&!(w.qname in _.styleAttrs)&&(_.styleAttrs[w.qname]=f.styleAttrs[w.qname]);else{var D=f.styleAttrs[n.byName.fontSize.qname];"textContainer"===f.styleAttrs[n.byName.ruby.qname]?_.styleAttrs[w.qname]=D:_.styleAttrs[w.qname]=new r.ComputedLength(.5*D.rw,.5*D.rh)}else{var k=f.styleAttrs[n.byName.fontSize.qname];_.styleAttrs[w.qname]=new r.ComputedLength(.5*k.rw,.5*k.rh)}}for(var I=0;I<n.all.length;I++){var R=n.all[I];if(!(R.qname in _.styleAttrs)&&!(R.qname===n.byName.position.qname&&n.byName.origin.qname in _.styleAttrs||R.qname===n.byName.origin.qname&&n.byName.position.qname in _.styleAttrs)){var C=e.head.styling.initials[R.qname]||R.initial;if(null!==C&&("region"===_.kind||!1===R.inherit&&null!==C)){var P=R.parse(C);null!==P?(_.styleAttrs[R.qname]=P,E[R.qname]=!0):c(p,"Invalid initial value for '"+R.qname+"' on element '"+_.kind)}}}for(var O=0;O<n.all.length;O++){var x=n.all[O];if(x.qname in E&&null!==x.compute){var N=x.compute(e,f,_,_.styleAttrs[x.qname],g);null!==N?_.styleAttrs[x.qname]=N:(_.styleAttrs[x.qname]=x.compute(e,f,_,x.parse(x.initial),g),c(p,"Style '"+x.qname+"' on element '"+_.kind+"' cannot be computed"))}}if("none"===_.styleAttrs[n.byName.display.qname])return null;var F=null;null===f?F=null===d?[]:[d]:"contents"in m&&(F=m.contents);for(var Y=0;null!==F&&Y<F.length;Y++){var U=a(e,t,l,d,_,y,F[Y],p,g);null!==U&&_.contents.push(U.element)}for(var B in _.styleAttrs)if(_.styleAttrs.hasOwnProperty(B)){var j=!1;if("span"===_.kind){var H=_.styleAttrs[n.byName.ruby.qname];(j=("container"===H||"textContainer"===H||"baseContainer"===H)&&-1!==i.indexOf(B))||(j="container"!==H&&B===n.byName.rubyAlign.qname),j||(j=!("textContainer"===H||"text"===H)&&B===n.byName.rubyPosition.qname)}if(!j){var G=n.byQName[B];"applies"in G&&(j=-1===G.applies.indexOf(_.kind))}j&&delete _.styleAttrs[B]}var Z=_.styleAttrs[n.byName.ruby.qname];if("p"===_.kind||"span"===_.kind&&("textContainer"===Z||"text"===Z)){var $=[];s(_,$),function(e){for(var t,n=0;n<e.length;)if("br"!==(t=e[n]).kind&&"preserve"!==t.space){var r=t.text.replace(/[\t\r\n ]+/g," ");/^[ ]/.test(r)&&(0===n||"br"===(i=e[n-1]).kind||/[\r\n\t ]$/.test(i.text))&&(r=r.substring(1)),t.text=r,0===r.length?e.splice(n,1):n++}else n++;var i,a;for(n=0;n<e.length;n++)"br"!==(t=e[n]).kind&&"preserve"!==t.space?/[ ]$/.test(t.text)&&(n===e.length-1||"br"===(a=e[n+1]).kind||"preserve"===a.space&&/^[\r\n]/.test(a.text))&&(t.text=t.text.slice(0,-1)):n++}($),o(_)}return"div"===_.kind&&n.byName.backgroundImage.qname in _.styleAttrs||"br"===_.kind||"image"===_.kind||"contents"in _&&_.contents.length>0||"span"===_.kind&&null!==_.text||"region"===_.kind&&"always"===_.styleAttrs[n.byName.showBackgroun
vendor: 4,083 bytes, line 2
2d.qname]?{region_id:y,element:_}:null}function s(e,t){if("contents"in e)for(var r=0;r<e.contents.length;r++){var i=e.contents[r],a=i.styleAttrs[n.byName.ruby.qname];("span"!==i.kind||"textContainer"!==a&&"text"!==a)&&("contents"in i?s(i,t):("span"===i.kind&&0!==i.text.length||"br"===i.kind)&&t.push(i))}}function o(e){if("br"===e.kind)return!1;if("text"in e)return 0===e.text.length;if("contents"in e){for(var t=e.contents.length;t--;)o(e.contents[t])&&e.contents.splice(t,1);return 0===e.contents.length}}function l(e){this.contents=[],this.aspectRatio=e.aspectRatio,this.lang=e.lang}function u(e){for(var t in this.kind=e.kind||"region",this.lang=e.lang,e.id&&(this.id=e.id),this.styleAttrs={},e.styleAttrs)e.styleAttrs.hasOwnProperty(t)&&(this.styleAttrs[t]=e.styleAttrs[t]);"src"in e&&(this.src=e.src),"type"in e&&(this.type=e.type),"text"in e?this.text=e.text:("region"===this.kind||"contents"in e)&&(this.contents=[]),"space"in e&&(this.space=e.space)}function c(e,t){if(e&&e.error&&e.error(t))throw t}}(t,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscStyles?n(6811):imscStyles,"undefined"==typeof imscUtils?n(5926):imscUtils)},4403:function(e,t,n){t.generateISD=n(4080).generateISD,t.fromXML=n(3362).fromXML,t.renderHTML=n(506).render},210:function(e,t){!function(e){e.ns_tt="http://www.w3.org/ns/ttml",e.ns_tts="http://www.w3.org/ns/ttml#styling",e.ns_ttp="http://www.w3.org/ns/ttml#parameter",e.ns_xml="http://www.w3.org/XML/1998/namespace",e.ns_itts="http://www.w3.org/ns/ttml/profile/imsc1#styling",e.ns_ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter",e.ns_smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt",e.ns_ebutts="urn:ebu:tt:style"}(t)},6811:function(e,t,n){!function(e,t,n){function r(e,t,n,r,i,a,s,o){this.name=t,this.ns=e,this.qname=e+" "+t,this.inherit=i,this.animatable=a,this.initial=n,this.applies=r,this.parse=s,this.compute=o}for(var i in e.all=[new r(t.ns_tts,"backgroundColor","transparent",["body","div","p","region","span"],!1,!0,n.parseColor,null),new r(t.ns_tts,"color","white",["span"],!0,!0,n.parseColor,null),new r(t.ns_tts,"direction","ltr",["p","span"],!0,!0,function(e){return e},null),new r(t.ns_tts,"display","auto",["body","div","p","region","span"],!1,!0,function(e){return e},null),new r(t.ns_tts,"displayAlign","before",["region"],!1,!0,function(e){return e},null),new r(t.ns_tts,"extent","auto",["tt","region"],!1,!0,function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var r=n.parseLength(t[0]),i=n.parseLength(t[1]);return i&&r?{h:i,w:r}:null},function(e,t,r,i,a){var s,o;if("auto"===i)s=new n.ComputedLength(0,1);else if(null===(s=n.toComputedLength(i.h.value,i.h.unit,null,e.dimensions.h,null,e.pxLength.h)))return null;if("auto"===i)o=new n.ComputedLength(1,0);else if(null===(o=n.toComputedLength(i.w.value,i.w.unit,null,e.dimensions.w,null,e.pxLength.w)))return null;return{h:s,w:o}}),new r(t.ns_tts,"fontFamily","default",["span","p"],!0,!0,function(e){for(var t=e.split(","),n=[],r=0;r<t.length;r++)t[r]=t[r].trim(),"'"!==t[r].charAt(0)&&'"'!==t[r].charAt(0)&&"default"===t[r]?n.push("monospaceSerif"):n.push(t[r]);return n},null),new r(t.ns_tts,"shear","0%",["p"],!0,!0,n.parseLength,function(e,t,n,r){return"%"!==r.unit?null:Math.abs(r.value)>100?100*Math.sign(r.value):r.value}),new r(t.ns_tts,"fontSize","1c",["span","p"],!0,!0,n.parseLength,function(t,r,i,a,s){return n.toComputedLength(a.value,a.unit,null!==r?r.styleAttrs[e.byName.fontSize.qname]:t.cellLength.h,null!==r?r.styleAttrs[e.byName.fontSize.qname]:t.cellLength.h,t.cellLength.h,t.pxLength.h)}),new r(t.ns_tts,"fontStyle","normal",["span","p"],!0,!0,function(e){return e},null),new r(t.ns_tts,"fontWeight","normal",["span","p"],!0,!0,function(e){return e},null),new r(t.ns_tts,"lineHeight","normal",["p"],!0,!0,function(e){return"normal"===e?e:n.parseLength(e)},function(t,r,i,a,s){var o;if("normal"===a)o=a;else if(null===(o=n.toComputedLength(a.value,a.unit,i.styleAttrs[e.byName.fontSize.qname],i.styleAttrs[e.byName.fontSize.qname],t.cellLength.h,t.pxLength.h)))return null;return o}
2),new r(t.ns_tts,"opacity",1,["region"],!1,!0,parseFloat,null),new r(t.ns_tts,"origin","auto",["region"],!1,!0,function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var r=n.parseLength(t[0]),i=n.parseLength(t[1]);return i&&r?{h:i,w:r}:null},function(e,t,r,i,a){var s,o;if("auto"===i)s=new n.ComputedLength(0,0);else if(null===(s=n.toComputedLength(i.h.value,i.h.unit,null,e.dimensions.h,null,e.pxLength.h)))return null;if("auto"===i)o=new n.ComputedLength(0,0);else if(null===(o=n.toComputedLength(i.w.value,i.w.unit,null,e.dimensions.w,null,e.pxLength.w)))return null;return{h:s,w:o}}),new r(t.ns_tts,"overflow","hidden",["region"],!1,!0,function(e){return e},null),new r(t.ns_tts,"padding","0px",["region"],!1,!0,function(e){var t=e.split(" ");if(t.length>4)return null;for(var r=[],i=0;i<t.length;i++){var a=n.parseLength(t[i]);if(!a)return null;r.push(a)}return r},function(t,r,i,a,s){var o;if(1===a.length)o=[a[0],a[0],a[0],a[0]];else if(2===a.length)o=[a[0],a[1],a[0],a[1]];else if(3===a.length)o=[a[0],a[1],a[2],a[1]];else{if(4!==a.length)return null;o=[a[0],a[1],a[2],a[3]]}var l=i.styleAttrs[e.byName.writingMode.qname];if("lrtb"===l||"lr"===l)o=[o[0],o[3],o[2],o[1]];else if("rltb"===l||"rl"===l)o=[o[0],o[1],o[2],o[3]];else if("tblr"===l)o=[o[3],o[0],o[1],o[2]];else{if("tbrl"!==l&&"tb"!==l)return null;o=[o[3],o[2],o[1],o[0]]}for(var u=[],c=0;c<o.length;c++)if(0===o[c].value)u[c]=new n.ComputedLength(0,0);else if(u[c]=n.toComputedLength(o[c].value,o[c].unit,i.styleAttrs[e.byName.fontSize.qname],0===c||2===c?i.styleAttrs[e.byName.extent.qname].h:i.styleAttrs[e.byName.extent.qname].w,0===c||2===c?t.cellLength.h:t.cellLength.w,0===c||2===c?t.pxLength.h:t.pxLength.w),null===u[c])return null;return u}),new r(t.ns_tts,"position","top left",["region"],!1,!0,function(e){return n.parsePosition(e)},function(t,r,i,a){var s,o;return null===(s=n.toComputedLength(a.v.offset.value,a.v.offset.unit,null,new n.ComputedLength(-i.styleAttrs[e.byName.extent.qname].h.rw,t.dimensions.h.rh-i.styleAttrs[e.byName.extent.qname].h.rh),null,t.pxLength.h))?null:("bottom"===a.v.edge&&(s=new n.ComputedLength(-s.rw-i.styleAttrs[e.byName.extent.qname].h.rw,t.dimensions.h.rh-s.rh-i.styleAttrs[e.byName.extent.qname].h.rh)),o=n.toComputedLength(a.h.offset.value,a.h.offset.unit,null,new n.ComputedLength(t.dimensions.w.rw-i.styleAttrs[e.byName.extent.qname].w.rw,-i.styleAttrs[e.byName.extent.qname].w.rh),null,t.pxLength.w),null===s?null:("right"===a.h.edge&&(o=new n.ComputedLength(t.dimensions.w.rw-o.rw-i.styleAttrs[e.byName.extent.qname].w.rw,-o.rh-i.styleAttrs[e.byName.extent.qname].w.rh)),{h:s,w:o}))}),new r(t.ns_tts,"ruby","none",["span"],!1,!0,function(e){return e},null),new r(t.ns_tts,"rubyAlign","center",["span"],!0,!0,function(e){return"center"!==e&&"spaceAround"!==e?null:e},null),new r(t.ns_tts,"rubyPosition","outside",["span"],!0,!0,function(e){return e},null),new r(t.ns_tts,"rubyReserve","none",["p"],!0,!0,function(e){var t=e.split(" "),r=[null,null];if(0===t.length||t.length>2)return null;if("none"!==t[0]&&"both"!==t[0]&&"after"!==t[0]&&"before"!==t[0]&&"outside"!==t[0])return null;if(r[0]=t[0],2===t.length&&"none"!==t[0]){var i=n.parseLength(t[1]);if(!i)return null;r[1]=i}return r},function(t,r,i,a,s){return"none"===a[0]?a:null===(o=null===a[1]?new n.ComputedLength(.5*i.styleAttrs[e.byName.fontSize.qname].rw,.5*i.styleAttrs[e.byName.fontSize.qname].rh):n.toComputedLength(a[1].value,a[1].unit,i.styleAttrs[e.byName.fontSize.qname],i.styleAttrs[e.byName.fontSize.qname],t.cellLength.h,t.pxLength.h))?null:[a[0],o];var o}),new r(t.ns_tts,"showBackground","always",["region"],!1,!0,function(e){return e},null),new r(t.ns_tts,"textAlign","start",["p"],!0,!0,function(e){return e},function(e,t,n,r,i){return"left"===r?"start":"right"===r?"end":r}),new r(t.ns_tts,"textCombine","none",["span"],!0,!0,function(e){return"none"===e||"all"===e?e:null},null),new r(t.ns_tts,"textDecoration","none",["span"],!0,!0,function(e){return e.split(" ")},null),new r(t.ns_tts,"textEmphasis","none",["span"],!0,!0,function(e){for(var t=e.split(" "),r={style:null,symbol:null,color:null,position:null},i=0;i<t.length;i++)if("none"===t[i]||"auto"===t[i])r.style=t[i];else if("filled"===t[i]||"open"===t[i])r.style=t[i];else if("circle"===t[i]||"dot"===t[i]||"sesame"===t[i])r.symbol=t[i];else if("current"===t[i])r.color=t[i];else if("outside"===t[i]||"before"===t[i]||"after"===t[i])r.position=t[i];else if(r.color=n.parseColor(t[i]),null===r.color)return null;return null==r.style&&null==r.symbol?r.style="auto":(r.symbol=r.symbol||"circle",r.style=r.style||"filled"),r.position=r.position||"outside",r.color=r.color||"current",r},null),new r(t.ns_tts,"textOutline","none",["span"],!0,!0,function(e){if("none"===e)return e;var t={},r=e.split(" ");if(0===r.length||r.length>2)return null;var i=n.parseColor(r[0]);if(t.color=i,null!==i&&r.shift(),1!==r.length)return null;var a=n.parseLength(r[0]);return a?(t.thickness=a,t):null}
vendor: 6,470 bytes, line 2
2,function(t,r,i,a,s){if("none"===a)return a;var o={};return null===a.color?o.color=i.styleAttrs[e.byName.color.qname]:o.color=a.color,o.thickness=n.toComputedLength(a.thickness.value,a.thickness.unit,i.styleAttrs[e.byName.fontSize.qname],i.styleAttrs[e.byName.fontSize.qname],t.cellLength.h,t.pxLength.h),null===o.thickness?null:o}),new r(t.ns_tts,"textShadow","none",["span"],!0,!0,n.parseTextShadow,function(t,r,i,a){if("none"===a)return a;for(var s=[],o=0;o<a.length;o++){var l={};if(l.x_off=n.toComputedLength(a[o][0].value,a[o][0].unit,null,i.styleAttrs[e.byName.fontSize.qname],null,t.pxLength.w),null===l.x_off)return null;if(l.y_off=n.toComputedLength(a[o][1].value,a[o][1].unit,null,i.styleAttrs[e.byName.fontSize.qname],null,t.pxLength.h),null===l.y_off)return null;if(null===a[o][2])l.b_radius=0;else if(l.b_radius=n.toComputedLength(a[o][2].value,a[o][2].unit,null,i.styleAttrs[e.byName.fontSize.qname],null,t.pxLength.h),null===l.b_radius)return null;null===a[o][3]?l.color=i.styleAttrs[e.byName.color.qname]:l.color=a[o][3],s.push(l)}return s}),new r(t.ns_tts,"unicodeBidi","normal",["span","p"],!1,!0,function(e){return e},null),new r(t.ns_tts,"visibility","visible",["body","div","p","region","span"],!0,!0,function(e){return e},null),new r(t.ns_tts,"wrapOption","wrap",["span"],!0,!0,function(e){return e},null),new r(t.ns_tts,"writingMode","lrtb",["region"],!1,!0,function(e){return e},null),new r(t.ns_tts,"zIndex","auto",["region"],!1,!0,function(e){var t;return"auto"===e?t=e:(t=parseInt(e),isNaN(t)&&(t=null)),t},null),new r(t.ns_ebutts,"linePadding","0c",["p"],!0,!1,n.parseLength,function(e,t,r,i,a){return n.toComputedLength(i.value,i.unit,null,null,e.cellLength.w,null)}),new r(t.ns_ebutts,"multiRowAlign","auto",["p"],!0,!1,function(e){return e},null),new r(t.ns_smpte,"backgroundImage",null,["div"],!1,!1,function(e){return e},null),new r(t.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],!0,!0,function(e){return"true"===e},null),new r(t.ns_itts,"fillLineGap","false",["p"],!0,!0,function(e){return"true"===e},null)],e.byQName={},e.all)e.byQName[e.all[i].qname]=e.all[i];for(var a in e.byName={},e.all)e.byName[e.all[a].name]=e.all[a]}(t,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscUtils?n(5926):imscUtils)},5926:function(e,t){!function(e){var t=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/,n=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,r=/rgba\(\s*(\d+),\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,i={transparent:[0,0,0,0],black:[0,0,0,255],silver:[192,192,192,255],gray:[128,128,128,255],white:[255,255,255,255],maroon:[128,0,0,255],red:[255,0,0,255],purple:[128,0,128,255],fuchsia:[255,0,255,255],magenta:[255,0,255,255],green:[0,128,0,255],lime:[0,255,0,255],olive:[128,128,0,255],yellow:[255,255,0,255],navy:[0,0,128,255],blue:[0,0,255,255],teal:[0,128,128,255],aqua:[0,255,255,255],cyan:[0,255,255,255]};e.parseColor=function(e){var a,s=null,o=i[e.toLowerCase()];return void 0!==o?s=o:null!==(a=t.exec(e))?s=[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),void 0!==a[4]?parseInt(a[4],16):255]:null!==(a=n.exec(e))?s=[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),255]:null!==(a=r.exec(e))&&(s=[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),parseInt(a[4])]),s};var a=/^((?:\+|\-)?\d*(?:\.\d+)?)(px|em|c|%|rh|rw)$/;e.parseLength=function(e){var t,n=null;return null!==(t=a.exec(e))&&(n={value:parseFloat(t[1]),unit:t[2]}),n},e.parseTextShadow=function(t){for(var n=t.match(/([^\(,\)]|\([^\)]+\))+/g),r=[],i=0;i<n.length;i++){var a=n[i].split(" ");if(1===a.length&&"none"===a[0])return"none";if(a.length>1&&a.length<5){var s=[null,null,null,null],o=e.parseLength(a.shift());if(null===o)return null;if(s[0]=o,null===(o=e.parseLength(a.shift())))return null;if(s[1]=o,0===a.length){r.push(s);continue}if(null!==(o=e.parseLength(a[0]))&&(s[2]=o,a.shift()),0===a.length){r.push(s);continue}var l=e.parseColor(a[0]);if(null===l)return null;s[3]=l,r.push(s)}}return r},e.parsePosition=function(t){var n=t.split(" "),r=function(e){return"center"===e||"left"===e||"top"===e||"bottom"===e||"right"===e};if(n.length>4)return null;for(var i=0;i<n.length;i++)if(!r(n[i])){var a=e.parseLength(n[i]);if(null===a)return null;n[i]=a}for(var s={h:{edge:"left",offset:{value:50,unit:"%"}},v:{edge:"top",offset:{value:50,unit:"%"}}},o=0;o<n.length;){var l=n[o++];if(r(l)){var u={value:0,unit:"%"};2!==n.length&&o<n.length&&!r(n[o])&&(u=n[o++]),"right"===l?(s.h.edge=l,s.h.offset=u):"bottom"===l?(s.v.edge=l,s.v.offset=u):"left"===l?s.h.offset=u:"top"===l&&(s.v.offset=u)}else{if(1!==n.length&&2!==n.length)return null;1===o?s.h.offset=l:s.v.offset=l}}return s},e.ComputedLength=function(e,t){this.rw=e,this.rh=t},e.ComputedLength.prototype.toUsedLength=function(e,t){return e*this.rw+t*this.rh},e.ComputedLength.prototype.isZero=function(){return 0===this.rw&&0===this.rh},e.toComputedLength=function(t,n,r,i,a,s){return"%"===n&&i?new e.ComputedLength(i.rw*t/100,i.rh*t/100):"em"===n&&r?new e.ComputedLength(r.rw*t,r.rh*t):"c"===n&&a?new e.ComputedLength(t*a.rw,t*a.rh):"px"===n&&s?new e.ComputedLength(t*s.rw,t*s.rh):"rh"===n?new e.ComputedLength(0,t/100):"rw"===n?new e.ComputedLength(t/100,0):null}}(t)},3516:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},2219:function(e,t,n){"use strict";var r=n(3516),i=n(395);e.exports=function(e){return r(e)||i(e)}},395:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},3875:function(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,a=-1,s=0,o=0;o<=e.length;++o){if(o<e.length)n=e.charCodeAt(o);else{if(47===n)break;n=47}if(47===n){if(a===o-1||1===s);else if(a!==o-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=o,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=o,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),i=o-a-1;a=o,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var i={resolve:function(){for(var e,i="",a=!1,s=arguments.length-1;s>=-1&&!a;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=r.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,a=47===o.charCo
vendor: 6,421 bytes, line 2
2deAt(0))}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var a=e.length,s=a-r,o=1;o<n.length&&47===n.charCodeAt(o);++o);for(var l=n.length-o,u=s<l?s:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===n.charCodeAt(o+d))return n.slice(o+d+1);if(0===d)return n.slice(o+d)}else s>u&&(47===e.charCodeAt(r+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(r+d);if(f!==n.charCodeAt(o+d))break;47===f&&(c=d)}var h="";for(d=r+c+1;d<=a;++d)d!==a&&47!==e.charCodeAt(d)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(o+c):(o+=c,47===n.charCodeAt(o)&&++o,n.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,a=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var o=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!s){i=r+1;break}}else-1===l&&(s=!1,l=r+1),o>=0&&(u===n.charCodeAt(o)?-1==--o&&(a=r):(o=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===a&&(s=!1,a=r+1);return-1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===i&&(a=!1,i=o+1),46===l?-1===n?n=o:1!==s&&(s=1):-1!==n&&(s=-1);else if(!a){r=o+1;break}}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var s=-1,o=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){o=c+1;break}return-1===s||-1===l||0===d||1===d&&s===l-1&&s===o+1?-1!==l&&(n.base=n.name=0===o&&a?e.slice(1,l):e.slice(o,l)):(0===o&&a?(n.name=e.slice(1,s),n.base=e.slice(1,l)):(n.name=e.slice(o,s),n.base=e.slice(o,l)),n.ext=e.slice(s,l)),o>0?n.dir=e.slice(0,o-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},8387:function(e,t,n){var r=n(1549),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),a(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},5378:function(e,t,n){!function(e){e.parser=function(e,t){return new a(e,t)},e.SAXParser=a,e.SAXStream=o,e.createStream=function(e,t){return new o(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(t,n){if(!(this instanceof a))return new a(t,n);var i=this;!function(e){for(var t=0,n=r.length;t<n;t++)e[r[t]]=""}(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=n||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=A.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(p)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),D(i,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),a.prototype={end:function(){P(this)},write:function(t){var n=this;if(this.error)throw this.error;if(n.closed)return C(n,"Cannot write after close. Assign an onready handler.");if(null===t)return P(n);"object"==typeof t&&(t=t.toString());for(var i=0,a="";a=H(t,i++),n.c=a,a;)switch(n.trackPosition&&(n.position++,"\n"===a?(n.line++,n.column=0):n.column++),n.state){case A.BEGIN:if(n.state=A.BEGIN_WHITESPACE,"\ufeff"===a)continue;j(n,a);continue;case A.BEGIN_WHITESPACE:j(n,a);continue;case A.TEXT:if(n.sawRoot&&!n.closedRoot){for(var s=i-1;a&&"<"!==a&&"&"!==a;)(a=H(t,i++))&&n.trackPosition&&(n.position++,"\n"===a?(n.line++,n.column=0):n.column++);n.textNode+=t.substring(s,i-1)}"<"!==a||n.sawRoot&&n.closedRoot&&!n.strict?(!T(l,a)||n.sawRoot&&!n.closedRoot||O(n,"Text data outside of root node."),"&"===a?n.state=A.TEXT_ENTITY:n.textNode+=a):(n.state=A.OPEN_WAKA,n.startTagPosition=n.position);continue;case A.SCRIPT:"<"===a?n.state=A.SCRIPT_ENDING:n.script+=a;continue;case A.SCRIPT_ENDING:"/"===a?n.state=A.CLOSE_TAG:(n.script+="<"+
vendor: 13,972 bytes, line 2
2a,n.state=A.SCRIPT);continue;case A.OPEN_WAKA:if("!"===a)n.state=A.SGML_DECL,n.sgmlDecl="";else if(b(l,a));else if(b(g,a))n.state=A.OPEN_TAG,n.tagName=a;else if("/"===a)n.state=A.CLOSE_TAG,n.tagName="";else if("?"===a)n.state=A.PROC_INST,n.procInstName=n.procInstBody="";else{if(O(n,"Unencoded <"),n.startTagPosition+1<n.position){var o=n.position-n.startTagPosition;a=new Array(o).join(" ")+a}n.textNode+="<"+a,n.state=A.TEXT}continue;case A.SGML_DECL:"[CDATA["===(n.sgmlDecl+a).toUpperCase()?(k(n,"onopencdata"),n.state=A.CDATA,n.sgmlDecl="",n.cdata=""):n.sgmlDecl+a==="--"?(n.state=A.COMMENT,n.comment="",n.sgmlDecl=""):"DOCTYPE"===(n.sgmlDecl+a).toUpperCase()?(n.state=A.DOCTYPE,(n.doctype||n.sawRoot)&&O(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):">"===a?(k(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=A.TEXT):b(d,a)?(n.state=A.SGML_DECL_QUOTED,n.sgmlDecl+=a):n.sgmlDecl+=a;continue;case A.SGML_DECL_QUOTED:a===n.q&&(n.state=A.SGML_DECL,n.q=""),n.sgmlDecl+=a;continue;case A.DOCTYPE:">"===a?(n.state=A.TEXT,k(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=a,"["===a?n.state=A.DOCTYPE_DTD:b(d,a)&&(n.state=A.DOCTYPE_QUOTED,n.q=a));continue;case A.DOCTYPE_QUOTED:n.doctype+=a,a===n.q&&(n.q="",n.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:n.doctype+=a,"]"===a?n.state=A.DOCTYPE:b(d,a)&&(n.state=A.DOCTYPE_DTD_QUOTED,n.q=a);continue;case A.DOCTYPE_DTD_QUOTED:n.doctype+=a,a===n.q&&(n.state=A.DOCTYPE_DTD,n.q="");continue;case A.COMMENT:"-"===a?n.state=A.COMMENT_ENDING:n.comment+=a;continue;case A.COMMENT_ENDING:"-"===a?(n.state=A.COMMENT_ENDED,n.comment=R(n.opt,n.comment),n.comment&&k(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+a,n.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==a?(O(n,"Malformed comment"),n.comment+="--"+a,n.state=A.COMMENT):n.state=A.TEXT;continue;case A.CDATA:"]"===a?n.state=A.CDATA_ENDING:n.cdata+=a;continue;case A.CDATA_ENDING:"]"===a?n.state=A.CDATA_ENDING_2:(n.cdata+="]"+a,n.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===a?(n.cdata&&k(n,"oncdata",n.cdata),k(n,"onclosecdata"),n.cdata="",n.state=A.TEXT):"]"===a?n.cdata+="]":(n.cdata+="]]"+a,n.state=A.CDATA);continue;case A.PROC_INST:"?"===a?n.state=A.PROC_INST_ENDING:b(l,a)?n.state=A.PROC_INST_BODY:n.procInstName+=a;continue;case A.PROC_INST_BODY:if(!n.procInstBody&&b(l,a))continue;"?"===a?n.state=A.PROC_INST_ENDING:n.procInstBody+=a;continue;case A.PROC_INST_ENDING:">"===a?(k(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=A.TEXT):(n.procInstBody+="?"+a,n.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:b(y,a)?n.tagName+=a:(x(n),">"===a?Y(n):"/"===a?n.state=A.OPEN_TAG_SLASH:(T(l,a)&&O(n,"Invalid character in tag name"),n.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===a?(Y(n,!0),U(n)):(O(n,"Forward-slash in opening tag not followed by >"),n.state=A.ATTRIB);continue;case A.ATTRIB:if(b(l,a))continue;">"===a?Y(n):"/"===a?n.state=A.OPEN_TAG_SLASH:b(g,a)?(n.attribName=a,n.attribValue="",n.state=A.ATTRIB_NAME):O(n,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===a?n.state=A.ATTRIB_VALUE:">"===a?(O(n,"Attribute without value"),n.attribValue=n.attribName,F(n),Y(n)):b(l,a)?n.state=A.ATTRIB_NAME_SAW_WHITE:b(y,a)?n.attribName+=a:O(n,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===a)n.state=A.ATTRIB_VALUE;else{if(b(l,a))continue;O(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",k(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===a?Y(n):b(g,a)?(n.attribName=a,n.state=A.ATTRIB_NAME):(O(n,"Invalid attribute name"),n.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(b(l,a))continue;b(d,a)?(n.q=a,n.state=A.ATTRIB_VALUE_QUOTED):(O(n,"Unquoted attribute value"),n.state=A.ATTRIB_VALUE_UNQUOTED,n.attribValue=a);continue;case A.ATTRIB_VALUE_QUOTED:if(a!==n.q){"&"===a?n.state=A.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=a;continue}F(n),n.q="",n.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:b(l,a)?n.state=A.ATTRIB:">"===a?Y(n):"/"===a?n.state=A.OPEN_TAG_SLASH:b(g,a)?(O(n,"No whitespace between attributes"),n.attribName=a,n.attribValue="",n.state=A.ATTRIB_NAME):O(n,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(T(f,a)){"&"===a?n.state=A.ATTRIB_VALUE_ENTITY_U:n.attribValue+=a;continue}F(n),">"===a?Y(n):n.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(n.tagName)">"===a?U(n):b(y,a)?n.tagName+=a:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=A.SCRIPT):(T(l,a)&&O(n,"Invalid tagname in closing tag"),n.state=A.CLOSE_TAG_SAW_WHITE);else{if(b(l,a))continue;T(g,a)?n.script?(n.script+="</"+a,n.state=A.SCRIPT):O(n,"Invalid tagname in closing tag."):n.tagName=a}continue;case A.CLOSE_TAG_SAW_WHITE:if(b(l,a))continue;">"===a?U(n):O(n,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var u,c;switch(n.state){case A.TEXT_ENTITY:u=A.TEXT,c="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:u=A.ATTRIB_VALUE_QUOTED,c="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:u=A.ATTRIB_VALUE_UNQUOTED,c="attribValue"}";"===a?(n[c]+=B(n),n.entity="",n.state=u):b(n.entity.length?v:_,a)?n.entity+=a:(O(n,"Invalid character in entity name"),n[c]+="&"+n.entity+a,n.entity="",n.state=u);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&function(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,a=0,s=r.length;a<s;a++){var o=t[r[a]].length;if(o>n)switch(r[a]){case"textNode":I(t);break;case"cdata":k(t,"oncdata",t.cdata),t.cdata="";break;case"script":k(t,"onscript",t.script),t.script="";break;default:C(t,"Max buffer length exceeded: "+r[a])}i=Math.max(i,o)}var l=e.MAX_BUFFER_LENGTH-i;t.bufferCheckPosition=l+t.position}(n),n},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;I(e=this),""!==e.cdata&&(k(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(k(e,"onscript",e.script),e.script="")}};try{t=n(182).Stream}catch(e){t=function(){}}var s=e.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function o(e,n){if(!(this instanceof o))return new o(e,n);t.apply(this),this._parser=new a(e,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,s.forEach(function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}o.prototype=Object.create(t.prototype,{constructor:{value:o}}),o.prototype.write=function(e){if("function"==typeof i&&"function"==typeof i.isBuffer&&i.isBuffer(e)){if(!this._decoder){var t=n(7503).s;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(e,n){var r=this;return r._parser["on"+e]||-1===s.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),t.prototype.on.call(r,e,n)};var l="\r\n\t ",u="0124356789",c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",d="'\"",f=l+">",h="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",p={xml:h,xmlns:m};l=E(l),u=E(u),c=E(c);var g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function E(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function b(e,t){return function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e)?!!t.match(e):e[t]}function T(e,t){return!b(e,t)}d=E(d),f=E(f);var S,w,L,A=0;for(var M in e.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],r="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r}),e.STATE)e.STATE[e.STATE[M]]=M;function D(e,t,n){e[t]&&e[t](n)}function k(e,t,n){e.textNode&&I(e),D(e,t,n)}function I(e){e.textNode=R(e.opt,e.textNode),e.textNode&&D(e,"ontext",e.textNode),e.textNode=""}function R(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function C(e,t){return I(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,D(e,"onerror",t),e}function P(e){return e.sawRoot&&!e.closedRoot&&O(e,"Unclosed root tag"),e.state!==A.BEGIN&&e.state!==A.BEGIN_WHITESPACE&&e.state!==A.TEXT&&C(e,"Unexpected end"),I(e),e.c="",e.closed=!0,D(e,"onend"),a.call(e,e.strict,e.opt),e}function O(e,t){if("object"!=typeof e||!(e instanceof a))throw new Error("bad call to strictFail");e.strict&&C(e,t)}function x(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,k(e,"onopentagstart",n)}function N(e,t){var n=e.indexOf(":")<0?["",e]:e.split(":"),r=n[0],i=n[1];return t&&"xmlns"===e&&(r="xmlns",i=""),{prefix:r,local:i}}function F(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=N(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==h)O(e,"xml: prefix must be bound to "+h+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==m)O(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,k(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function Y(e,t){if(e.opt.xmlns){var n=e.tag,r=N(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(O(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;
vendor: 4,791 bytes, line 2
2n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){k(e,"onopennamespace",{prefix:t,uri:n.ns[t]})});for(var a=0,s=e.attribList.length;a<s;a++){var o=e.attribList[a],l=o[0],u=o[1],c=N(l,!0),d=c.prefix,f=c.local,h=""===d?"":n.ns[d]||"",m={name:l,value:u,prefix:d,local:f,uri:h};d&&"xmlns"!==d&&!h&&(O(e,"Unbound namespace prefix: "+JSON.stringify(d)),m.uri=d),e.tag.attributes[l]=m,k(e,"onattribute",m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),k(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=A.TEXT:e.state=A.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function U(e){if(!e.tagName)return O(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=A.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=A.SCRIPT);k(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--&&e.tags[t].name!==r;)O(e,"Unexpected close tag");if(t<0)return O(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=A.TEXT);e.tagName=n;for(var i=e.tags.length;i-- >t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,k(e,"onclosetag",e.tagName);var s={};for(var o in a.ns)s[o]=a.ns[o];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==l.ns&&Object.keys(a.ns).forEach(function(t){var n=a.ns[t];k(e,"onclosenamespace",{prefix:t,uri:n})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=A.TEXT}function B(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(t=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(t=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),i.toLowerCase()!==n?(O(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function j(e,t){"<"===t?(e.state=A.OPEN_WAKA,e.startTagPosition=e.position):T(l,t)&&(O(e,"Non-whitespace before first tag."),e.textNode=t,e.state=A.TEXT)}function H(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}A=e.STATE,String.fromCodePoint||(S=String.fromCharCode,w=Math.floor,L=function(){var e,t,n=16384,r=[],i=-1,a=arguments.length;if(!a)return"";for(var s="";++i<a;){var o=Number(arguments[i]);if(!isFinite(o)||o<0||o>1114111||w(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?r.push(o):(e=55296+((o-=65536)>>10),t=o%1024+56320,r.push(e,t)),(i+1===a||r.length>n)&&(s+=S.apply(null,r),r.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:L,configurable:!0,writable:!0}):String.fromCodePoint=L)}(t)},182:function(e,t,n){e.exports=i;var r=n(1159).EventEmitter;function i(){r.call(this)}n(1765)(i,r),i.Readable=n(2846),i.Writable=n(8318),i.Duplex=n(6138),i.Transform=n(9798),i.PassThrough=n(5472),i.finished=n(8800),i.pipeline=n(7295),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",o),n.on("close",l));var s=!1;function o(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",o),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},1765:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},3690:function(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
2d for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var i,a,s,o,l;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var u=("number"!=typeof l&&(l=0),l+1>(o=e).length||-1===o.indexOf(".",l)?"argument":"property");s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(r(t,"type"))}return s+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6138:function(e,t,n){"use strict";var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(2846),s=n(8318);n(1765)(c,a);for(var o=i(s.prototype),l=0;l<o.length;l++){var u=o[l];c.prototype[u]||(c.prototype[u]=s.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},5472:function(e,t,n){"use strict";e.exports=i;var r=n(9798);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(1765)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},2846:function(e,t,n){"use strict";var i;e.exports=L,L.ReadableState=w,n(1159).EventEmitter;var a,s=function(e,t){return e.listeners(t).length},o=n(9299),l=n(1549).Buffer,u=n.g.Uint8Array||function(){},c=n(964);a=c&&c.debuglog?c.debuglog("stream"):function(){};var d,f,h,m=n(8393),p=n(6163),g=n(7269).getHighWaterMark,y=n(3690).q,_=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,E=y.ERR_METHOD_NOT_IMPLEMENTED,b=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1765)(L,o);var T=p.errorOrDestroy,S=["error","close","destroy","pause","resume"];function w(e,t,r){i=i||n(6138),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(7503).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function L(e){if(i=i||n(6138),!(this instanceof L))return new L(e);var t=this instanceof i;this._readableState=new w(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function A(e,t,n,r,i){a("readableAddChunk",t);var s,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}}(e,o);else if(i||(s=function(e,t){var n,r;return r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new _("chunk",["string","Buffer","Uint8Array"],t)),n}(o,t)),s)T(e,s);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r)o.endEmitted?T(e,new b):M(e,o,t,!0);else if(o.ended)T(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?M(e,o,t,!1):C(e,o)):M(e,o,t,!1)}else r||(o.reading=!1,C(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function M(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&I(e)),C(e,t)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),L.prototype.destroy=p.destroy,L.prototype._undestroy=p.undestroy,L.prototype._destroy=function(e,t){t(e)},L.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},L.prototype.unshift=function(e){return A(this,e,null,!0,!1)},L.prototype.isPaused=function(){return!1===this._readableState.flowing},L.prototype.setEncoding=function(e){d||(d=n(7503).s);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 9,256 bytes, line 2
2for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var D=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(R,e))}function R(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function C(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function O(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function x(e){a("readable nexttick read 0"),e.read(0)}function N(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function Y(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function j(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}L.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):I(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?Y(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},L.prototype._read=function(e){T(this,new E("_read()"))},L.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===r.stdout||e===r.stderr?p:l;function l(){a("onend"),e.end()}i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",function t(r,s){a("onunpipe"),r===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,a("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",l),n.removeListener("end",p),n.removeListener("data",d),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())});var u=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",u);var c=!1;function d(t){a("ondata");var r=e.write(t);a("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==j(i.pipes,e))&&!c&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function f(t){a("onerror",t),p(),e.removeListener("error",f),0===s(e,"error")&&T(e,t)}function h(){e.removeListener("finish",m),p()}function m(){a("onfinish"),e.removeListener("close",h),p()}function p(){a("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(a("pipe resume"),n.resume()),e},L.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=j(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},L.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?I(this):i.reading||r.nextTick(x,this))),n},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(O,this),n},L.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(O,this),t},L.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},L.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},L.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<S.length;s++)e.on(S[s],this.emit.bind(this,S[s]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(L.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(7299)),f(this)}),Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),L._fromList=Y,Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(L.from=function(e,t){return void 0===h&&(h=n(6233)),h(L,e,t)})},9798:function(e,t,n){"use strict";e.exports=c;var r=n(3690).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,s=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(6138);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(t,n){f(e,t,n)})}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new o;
vendor: 9,638 bytes, line 2
2if(e._transformState.transforming)throw new s;return e.push(null)}n(1765)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},8318:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var a;e.exports=L,L.WritableState=w;var s,o={deprecate:n(7839)},l=n(9299),u=n(1549).Buffer,c=n.g.Uint8Array||function(){},d=n(6163),f=n(7269).getHighWaterMark,h=n(3690).q,m=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,_=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,E=h.ERR_STREAM_WRITE_AFTER_END,b=h.ERR_UNKNOWN_ENCODING,T=d.errorOrDestroy;function S(){}function w(e,t,s){a=a||n(6138),e=e||{},"boolean"!=typeof s&&(s=t instanceof a),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,a=n.writecb;if("function"!=typeof a)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,a){--t.pendingcb,n?(r.nextTick(a,i),r.nextTick(R,e,t),e._writableState.errorEmitted=!0,T(e,i)):(a(i),e._writableState.errorEmitted=!0,T(e,i),R(e,t))}(e,n,i,t,a);else{var s=k(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||D(e,n),i?r.nextTick(M,e,n,s,a):M(e,n,s,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function L(e){var t=this instanceof(a=a||n(6138));if(!t&&!s.call(L,this))return new L(e);this._writableState=new w(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function A(e,t,n,r,i,a,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function M(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),R(e,t)}function D(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var o=0,l=!0;n;)a[o]=n,n.isBuf||(l=!1),n=n.next,o+=1;a.allBuffers=l,A(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(A(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(n){t.pendingcb--,n&&T(e,n),t.prefinished=!0,e.emit("prefinish"),R(e,t)})}function R(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(I,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(1765)(L,l),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===L&&e&&e._writableState instanceof w}})):s=function(e){return e instanceof this},L.prototype.pipe=function(){T(this,new y)},L.prototype.write=function(e,t,n){var i,a=this._writableState,s=!1,o=!a.objectMode&&(i=e,u.isBuffer(i)||i instanceof c);return o&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=S),a.ending?function(e,t){var n=new E;T(e,n),r.nextTick(t,n)}(this,n):(o||function(e,t,n,i){var a;return null===n?a=new v:"string"==typeof n||t.objectMode||(a=new m("chunk",["string","Buffer"],n)),!a||(T(e,a),r.nextTick(i,a),!1)}(this,a,e,n))&&(a.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var o=t.objectMode?1:r.length;t.length+=o;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,o,r,i,a);return l}(this,a,o,e,t,n)),s},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||D(this,e))},L.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),L.prototype._write=function(e,t,n){n(new p("_write()"))},L.prototype._writev=null,L.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),L.prototype.destroy=d.destroy,L.prototype._undestroy=d.undestroy,L.prototype._destroy=function(e,t){t(e)}},7299:function(e,t,n){"use strict";var i;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(8800),o=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function m(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var n=e[h].read();null!==n&&(e[d]=null,e[o]=null,e[l]=null,t(m(n,!1)))}}function g(e){r.nextTick(p,e)}var y=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((a(i={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(m(void 0,!0));if(this[h].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[u]?n(e[u]):t(m(void 0,!0))})});var n,i=this[d];if(i)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[c]?n(m(void 0,!0)):t[f](n,r)},r)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(m(a,!1));n=new Promise(this[f])}return this[d]=n,n}},Symbol.asyncIterator,function(){return this}),a(i,"return",function(){var e=this;return new Promise(function(t,n){e[h].destroy(null,function(e){e?n(e):t(m(void 0,!0))})})}),i),y);e.exports=function(e){var t,n=Object.create(_,(a(t={},h,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var r=n[h].read();r?(n[d]=null,n[o]=null,n[l]=null,e(m(r,!1))):(n[o]=e,n[l]=t)},writable:!0}),t));
vendor: 5,682 bytes, line 2
2return n[d]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[l];return null!==t&&(n[d]=null,n[o]=null,n[l]=null,t(e)),void(n[u]=e)}var r=n[o];null!==r&&(n[d]=null,n[o]=null,n[l]=null,r(m(void 0,!0))),n[c]=!0}),e.on("readable",g.bind(null,n)),n}},8393:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=n(1549).Buffer,o=n(9862).inspect,l=o&&o.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t;return t=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r,i=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,s.prototype.copy.call(t,n,r),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return o(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],t&&a(e.prototype,t),e}()},6163:function(e){"use strict";function t(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var s=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(a?a(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!a&&e?s._writableState?s._writableState.errorEmitted?r.nextTick(n,s):(s._writableState.errorEmitted=!0,r.nextTick(t,s,e)):r.nextTick(t,s,e):a?(r.nextTick(n,s),a(e)):r.nextTick(n,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},8800:function(e,t,n){"use strict";var r=n(3690).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var s=n.readable||!1!==n.readable&&t.readable,o=n.writable||!1!==n.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){o=!1,u=!0,s||a.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){s=!1,d=!0,o||a.call(t)},h=function(e){a.call(t,e)},m=function(){var e;return s&&!d?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):o&&!u?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},p=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",m),t.req?p():t.on("request",p)):o&&
vendor: 5,656 bytes, line 2
2!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",f),t.on("finish",c),!1!==n.error&&t.on("error",h),t.on("close",m),function(){t.removeListener("complete",c),t.removeListener("abort",m),t.removeListener("request",p),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",m)}}},6233:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},7295:function(e,t,n){"use strict";var r,i=n(3690).q,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function o(e){if(e)throw e}function l(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var o=!1;e.on("close",function(){o=!0}),void 0===r&&(r=n(8800)),r(e,{readable:t,writable:i},function(e){if(e)return a(e);o=!0,a()});var l=!1;return function(t){if(!o&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new s("pipe"))}}function u(e){e()}function c(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?o:e.pop():o}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=d(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var s=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){r||(r=e),e&&s.forEach(u),a||(s.forEach(u),i(r))})});return t.reduce(c)}},7269:function(e,t,n){"use strict";var r=n(3690).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},9299:function(e,t,n){e.exports=n(1159).EventEmitter},7503:function(e,t,n){"use strict";var r=n(8387).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},1067:function(e,t,n){var r;!function(i,a){"use strict";var s="function",o="undefined",l="object",u="string",c="major",d="model",f="name",h="type",m="vendor",p="version",g
vendor: 4,130 bytes, line 2
2="architecture",y="console",_="mobile",v="tablet",E="smarttv",b="wearable",T="embedded",S="Amazon",w="Apple",L="ASUS",A="BlackBerry",M="Browser",D="Chrome",k="Firefox",I="Google",R="Huawei",C="LG",P="Microsoft",O="Motorola",x="Opera",N="Samsung",F="Sharp",Y="Sony",U="Xiaomi",B="Zebra",j="Facebook",H="Chromium OS",G="Mac OS",Z=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},$=function(e,t){return typeof e===u&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},W=function(e,t){for(var n,r,i,o,u,c,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(i=0;i<h.length;i++)c=u[++r],typeof(o=h[i])===l&&o.length>0?2===o.length?typeof o[1]==s?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:3===o.length?typeof o[1]!==s||o[1].exec&&o[1].test?this[o[0]]=c?c.replace(o[1],o[2]):a:this[o[0]]=c?o[1].call(this,c,o[2]):a:4===o.length&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):a):this[o]=c||a;d+=2}},V=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if($(t[n][r],e))return"?"===n?a:n}else if($(t[n],e))return"?"===n?a:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,p],[/opios[\/ ]+([\w\.]+)/i],[p,[f,x+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[f,x]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[f,"UC"+M]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[f,"Smart Lenovo "+M]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+M],p],[/\bfocus\/([\w\.]+)/i],[p,[f,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[f,x+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[f,x+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[f,"MIUI "+M]],[/fxios\/([-\w\.]+)/i],[p,[f,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+M]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+M],p],[/samsungbrowser\/([\w\.]+)/i],[p,[f,N+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,j],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[f,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,D+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[f,"Android "+M]],[/(chrome|omniweb|arora|[t
vendor: 5,058 bytes, line 2
2izenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[p,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[f,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,p],[/(cobalt)\/([\w\.]+)/i],[f,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,z]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,N],[h,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,N],[h,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[m,w],[h,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,w],[h,v]],[/(macintosh);/i],[d,[m,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,F],[h,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,R],[h,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,R],[h,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[m,U],[h,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[m,U],[h,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,"OPPO"],[h,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,"Vivo"],[h,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[m,"Realme"],[h,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,O],[h,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,O],[h,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,C],[h,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,C],[h,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,"Lenovo"],[h,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[m,"Nokia"],[h,_]],[/(pixel c)\b/i],[d,[m,I],[h,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,I],[h,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,Y],[h,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[m,Y],[h,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,"OnePlus"],[h,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,S],[h,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[m,S],[h,_]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[h,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,A],[h,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,L],[h,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,L],[h,_]],[/(nexus 9)/i],[d,[m,"HTC"],[h,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g," "],[h,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,"Acer"],[h,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,"Meizu"],[h,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[m,"Ulefone"],[h,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 4,603 bytes, line 2
2s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[h,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[h,v]],[/(surface duo)/i],[d,[m,P],[h,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,"Fairphone"],[h,_]],[/(u304aa)/i],[d,[m,"AT&T"],[h,_]],[/\bsie-(\w*)/i],[d,[m,"Siemens"],[h,_]],[/\b(rct\w+) b/i],[d,[m,"RCA"],[h,v]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,"Dell"],[h,v]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,"Verizon"],[h,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,"Barnes & Noble"],[h,v]],[/\b(tm\d{3}\w+) b/i],[d,[m,"NuVision"],[h,v]],[/\b(k88) b/i],[d,[m,"ZTE"],[h,v]],[/\b(nx\d{3}j) b/i],[d,[m,"ZTE"],[h,_]],[/\b(gen\d{3}) b.+49h/i],[d,[m,"Swiss"],[h,_]],[/\b(zur\d{3}) b/i],[d,[m,"Swiss"],[h,v]],[/\b((zeki)?tb.*\b) b/i],[d,[m,"Zeki"],[h,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],d,[h,v]],[/\b(ns-?\w{0,9}) b/i],[d,[m,"Insignia"],[h,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,"NextBook"],[h,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],d,[h,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],d,[h,_]],[/\b(ph-1) /i],[d,[m,"Essential"],[h,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,"Envizen"],[h,v]],[/\b(trio[-\w\. ]+) b/i],[d,[m,"MachSpeed"],[h,v]],[/\btu_(1491) b/i],[d,[m,"Rotor"],[h,v]],[/(shield[\w ]+) b/i],[d,[m,"Nvidia"],[h,v]],[/(sprint) (\w+)/i],[m,d,[h,_]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[m,P],[h,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,B],[h,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,B],[h,_]],[/smart-tv.+(samsung)/i],[m,[h,E]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[m,N],[h,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,C],[h,E]],[/(apple) ?tv/i],[m,[d,w+" TV"],[h,E]],[/crkey/i],[[d,D+"cast"],[m,I],[h,E]],[/droid.+aft(\w+)( bui|\))/i],[d,[m,S],[h,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,F],[h,E]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,Y],[h,E]],[/(mitv-\w{5}) bui/i],[d,[m,U],[h,E]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[h,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,q],[d,q],[h,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[h,y]],[/droid.+; (shield) bui/i],[d,[m,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[d,[m,Y],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,P],[h,y]],[/((pebble))app/i],[m,d,[h,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,w],[h,b]],[/droid.+; (glass) \d/i],[d,[m,I],[h,b]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,B],[h,b]],[/(quest( 2| pro)?)/i],[d,[m,j],[h,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,T]],[/(aeobc)\b/i],[d,[m,S],[h,T]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,_]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[p,V,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,V,K],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,G],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,p],[/\(bb(10);/i],[p,[f,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
vendor: 3,997 bytes, line 2
2 rv:.+ gecko\/([\w\.]+)/i],[p,[f,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[f,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,H],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,p],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,p]]},Q=function(e,t){if(typeof e===l&&(t=e,e=a),!(this instanceof Q))return new Q(e,t).getResult();var n=typeof i!==o&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:a,E=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,t):X,b=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=a,t[p]=a,W.call(t,r,E.browser),t[c]=typeof(e=t[p])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:a,b&&n&&n.brave&&typeof n.brave.isBrave==s&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[g]=a,W.call(e,r,E.cpu),e},this.getDevice=function(){var e={};return e[m]=a,e[d]=a,e[h]=a,W.call(e,r,E.device),b&&!e[h]&&y&&y.mobile&&(e[h]=_),b&&"Macintosh"==e[d]&&n&&typeof n.standalone!==o&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=v),e},this.getEngine=function(){var e={};return e[f]=a,e[p]=a,W.call(e,r,E.engine),e},this.getOS=function(){var e={};return e[f]=a,e[p]=a,W.call(e,r,E.os),b&&!e[f]&&y&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,H).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?q(e,500):e,this},this.setUA(r),this};Q.VERSION="1.0.37",Q.BROWSER=Z([f,p,c]),Q.CPU=Z([g]),Q.DEVICE=Z([d,m,h,y,_,E,v,b,T]),Q.ENGINE=Q.OS=Z([f,p]),typeof t!==o?(e.exports&&(t=e.exports=Q),t.UAParser=Q):n.amdO?(r=function(){return Q}.call(t,n,t,e))===a||(e.exports=r):typeof i!==o&&(i.UAParser=Q);var J=typeof i!==o&&(i.jQuery||i.Zepto);if(J&&!J.ua){var ee=new Q;J.ua=ee.getResult(),J.ua.get=function(){return ee.getUA()},J.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)J.ua[n]=t[n]}}}("object"==typeof window?window:this)},7839:function(e,t,n){function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},9862:function(){},964:function(){},3165:function(e){"use strict";e.exports=JSON.parse('["mni-beng-in","mni-mtei-in","sat-deva-in","sat-olck-in","shi-latn-ma","shi-tfng-ma","vai-latn-lr","vai-vaii-lr","yue-hans-cn","yue-hant-hk","az-arab-ir","az-cyrl-az","az-latn-az","bm-nkoo-ml","bs-cyrl-ba","bs-latn-ba","en-dsrt-us","ff-adlm-gn","ff-latn-sn","ha-arab-ng","hi-latn-in","iu-latn-ca","ks-arab-in","ks-deva-in","mn-mong-cn","ms-arab-my","pa-arab-pk","pa-guru-in","sd-arab-pk","sd-deva-in","sr-cyrl-rs","sr-latn-rs","su-latn-id","uz-arab-af","uz
2-cyrl-uz","uz-latn-uz","zh-hans-cn","zh-hant-tw","mni-beng","sat-olck","shi-tfng","vai-vaii","yue-hant","az-latn","bs-latn","ff-latn","jbo-001","ks-arab","pa-guru","prg-001","sd-arab","sr-cyrl","su-latn","uz-latn","zh-hans","agq-cm","ar-001","arn-cl","asa-tz","ast-es","bas-cm","bem-zm","bez-tz","bgn-pk","blt-vn","brx-in","bss-cm","byn-er","cad-us","cch-ng","ccp-bd","ceb-ph","cgg-ug","chr-us","cic-us","ckb-iq","dav-ke","dje-ne","doi-in","dsb-de","dua-cm","dyo-sn","ebu-ke","eo-001","ewo-cm","fil-ph","fur-it","gaa-gh","gez-et","gsw-ch","guz-ke","haw-us","hsb-de","ia-001","ife-tg","io-001","jgo-cm","jmc-tz","kab-dz","kaj-ng","kam-ke","kcg-ng","kde-tz","kea-cv","ken-cm","khq-ml","kkj-cm","kln-ke","kok-in","kpe-lr","ksb-tz","ksf-cm","ksh-de","lag-tz","lkt-us","lrc-ir","luo-ke","luy-ke","mai-in","mas-ke","mer-ke","mfe-mu","mgh-mz","mgo-cm","moh-ca","mua-cm","mus-us","myv-ru","mzn-ir","naq-na","nds-de","nmg-cm","nnh-cm","nqo-gn","nso-za","nus-ss","nyn-ug","osa-us","pcm-ng","quc-gt","rof-tz","rwk-tz","sah-ru","saq-ke","sbp-tz","scn-it","sdh-ir","seh-mz","ses-ml","sid-et","sma-se","smj-se","smn-fi","sms-fi","ssy-er","syr-iq","szl-pl","teo-ug","tig-er","trv-tw","trw-pk","twq-ne","tzm-ma","vo-001","vun-tz","wae-ch","wal-et","wbp-au","xog-ug","yav-cm","yi-001","zgh-ma","aa-et","af-za","ak-gh","am-et","an-es","as-in","ba-ru","be-by","bg-bg","bm-ml","bn-bd","bo-cn","br-fr","ca-es","ce-ru","co-fr","cs-cz","cu-ru","cv-ru","cy-gb","da-dk","de-de","dv-mv","dz-bt","ee-gh","el-gr","en-us","es-es","et-ee","eu-es","fa-ir","fi-fi","fo-fo","fr-fr","fy-nl","ga-ie","gd-gb","gl-es","gn-py","gu-in","gv-im","ha-ng","he-il","hi-in","hr-hr","hu-hu","hy-am","id-id","ig-ng","ii-cn","is-is","it-it","iu-ca","ja-jp","jv-id","ka-ge","ki-ke","kk-kz","kl-gl","km-kh","kn-in","ko-kr","ku-tr","kw-gb","ky-kg","lb-lu","lg-ug","ln-cd","lo-la","lt-lt","lu-cd","lv-lv","mg-mg","mi-nz","mk-mk","ml-in","mn-mn","mr-in","ms-my","mt-mt","my-mm","nb-no","nd-zw","ne-np","nl-nl","nn-no","nr-za","nv-us","ny-mw","oc-fr","om-et","or-in","os-ge","pl-pl","ps-af","pt-br","qu-pe","rm-ch","rn-bi","ro-ro","ru-ru","rw-rw","sa-in","sc-it","se-no","sg-cf","si-lk","sk-sk","sl-si","sn-zw","so-so","sq-al","ss-za","st-za","sv-se","sw-tz","ta-in","te-in","tg-tj","th-th","ti-et","tk-tm","tn-za","to-to","tr-tr","ts-za","tt-ru","ug-cn","uk-ua","ur-pk","ve-za","vi-vn","wa-be","wo-sn","xh-za","yo-ng","zu-za"]')},5813:function(e){"use strict";e.exports=JSON.parse('[{"from":{"field":"script","value":"qaai"},"to":{"field":"script","value":"zinh"}},{"from":{"field":"region","value":"bu"},"to":{"field":"region","value":"mm"}},{"from":{"field":"region","value":"ct"},"to":{"field":"region","value":"ki"}},{"from":{"field":"region","value":"dd"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"dy"},"to":{"field":"region","value":"bj"}},{"from":{"field":"region","value":"fx"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"hv"},"to":{"field":"region","value":"bf"}},{"from":{"field":"region","value":"jt"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"mi"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"nh"},"to":{"field":"region","value":"vu"}},{"from":{"field":"region","value":"nq"},"to":{"field":"region","value":"aq"}},{"from":{"field":"region","value":"pu"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"pz"},"to":{"field":"region","value":"pa"}},{"from":{"field":"region","value":"qu"},"to":{"field":"region","value":"eu"}},{"from":{"field":"region","value":"rh"},"to":{"field":"region","value":"zw"}},{"from":{"field":"region","value":"tp"},"to":{"field":"region","value":"tl"}},{"from":{"field":"region","value":"uk"},"to":{"field":"region","value":"gb"}},{"from":{"field":"region","value":"vd"},"to":{"field":"region","value":"vn"}},{"from":{"field":"region","value":"wk"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"yd"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"zr"},"to":{"field":"region","value":"cd"}},{"from":{"field":"region","value":"230"},"to":{"field":"region","value":"et"}},{"from":{"field":"region","value":"280"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"736"},"to":{"field":"region","value":"sd"}},{"from":{"field":"region","value":"886"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"958"},"to":{"field":"region","value":"aa"}},{"from":{"field":"region","value":"020"},"to":{"field":"region","value":"ad"}},{"from":{"field":"region","value":"784"},"to":{"field":"region","value":"ae"}},{"from":{"field":"region","value":"004"},"to":{"field":"region","value":"af"}},{"from":{"field":"region","value":"028"},"to":{"field":"region","value":"ag"}},{"from":{"field":"region","value":"660"},"to":{"field":"region","value":"ai"}},{"from":{"field":"region","value":"008"},"to":{"field":"region","value":"al"}},{"from":{"field":"region","value":"051"},"to":{"field":"region","value":"am"}},{"from":{"field":"region","value":"024"},"to":{"field":"region","value":"ao"}},{"from":{"field":"region","value":"010"},"to":{"field":"region","value":"aq"}},{"from":{"field":"region","value":"032"},"to":{"field":"region","value":"ar"}},{"from":{"field":"region","value":"016"},"to":{"field":"region","value":"as"}},{"from":{"field":"region","value":"040"},"to":{"field":"region","value":"at"}},{"from":{"field":"region","value":"036"},"to":{"field":"region","value":"au"}},{"from":{"field":"region","value":"533"},"to":{"field":"region","value":"aw"}},{"from":{"field":"region","value":"248"},"to":{"field":"region","value":"ax"}},{"from":{"field":"region","value":"031"},"to":{"field":"region","value":"az"}},{"from":{"field":"region","value":"070"},"to":{"field":"region","value":"ba"}},{"from":{"field":"region","value":"052"},"to":{"field":"region","value":"bb"}},{"from":{"field":"region","value":"050"},"to":{"field":"region","value":"bd"}},{"from":{"field":"region","value":"056"},"to":{"field":"region","value":"be"}},{"from":{"field":"region","value":"854"},"to":{"field":"region","value":"bf"}},{"from":{"field":"region","value":"100"},"to":{"field":"region","value":"bg"}},{"from":{"field":"region","value":"048"},"to":{"field":"region","value":"bh"}},{"from":{"field":"region","value":"108"},"to":{"field":"region","value":"bi"}},{"from":{"field":"region","value":"204"},"to":{"field":"region","value":"bj"}},{"from":{"field":"region","value":"652"},"to":{"field":"region","value":"bl"}},{"from":{"field":"region","value":"060"},"to":{"field":"region","value":"bm"}},{"from":{"field":"region","value":"096"},"to":{"field":"region","value":"bn"}},{"from":{"field":"region","value":"068"},"to":{"field":"region","value":"bo"}},{"from":{"field":"region","value":"535"},"to":{"field":"region","value":"bq"}},{"from":{"field":"region","value":"076"},"to":{"field":"region","value":"br"}},{"from":{"field":"region","value":"044"},"to":{"field":"region","value":"bs"}},{"from":{"field":"region","value":"064"},"to":{"field":"region","value":"bt"}},{"from":{"field":"region","value":"104"},"to":{"field":"region","value":"mm"}},{"from":{"field":"region","value":"074"},"to":{"field":"region","value":"bv"}},{"from":{"field":"region","value":"072"},"to":{"field":"region","value":"bw"}},{"from":{"field":"region","value":"112"},"to":{"field":"region","value":"by"}},{"from":{"field":"region","value":"084"},"to":{"field":"region","value":"bz"}},{"from":{"field":"region","value":"124"},"to":{"field":"region","value":"ca"}},{"from":{"field":"region","value":"166"},"to":{"field":"region","value":"cc"}},{"from":{"field":"region","value":"180"},"to":{"field":"region","value":"cd"}},{"from":{"field":"region","value":"140"},"to":{"field":"region","value":"cf"}},{"from":{"field":"region","value":"178"},"to":{"field":"region","value":"cg"}},{"from":{"field":"region","value":"756"},"to":{"field":"region","value":"ch"}},{"from":{"field":"region","value":"384"},"to":{"field":"region","value":"ci"}},{"from":{"field":"region","value":"184"},"to":{"field":"region","value":"ck"}},{"from":{"field":"region","value":"152"},"to":{"field":"region","value":"cl"}},{"from":{"field":"region","value":"120"},"to":{"field":"region","value":"cm"}},{"from":{"field":"region","value":"156"},"to":{"field":"region","value":"cn"}},{"from":{"field":"region","value":"170"},"to":{"field":"region","value":"co"}},{"from":{"field":"region","value":"188"},"to":{"field":"region","value":"cr"}},{"from":{"field":"region","value":"192"},"to":{"field":"region","value":"cu"}},{"from":{"field":"region","value":"132"},"to":{"field":"region","value":"cv"}},{"from":{"field":"region","value":"531"},"to":{"field":"region","value":"cw"}},{"from":{"field":"region","value":"162"},"to":{"field":"region","value":"cx"}},{"from":{"field":"region","value":"196"},"to":{"field":"region","value":"cy"}},{"from":{"field":"region","value":"203"},"to":{"field":"region","value":"cz"}},{"from":{"field":"region","value":"278"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"276"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"262"},"to":{"field":"region","value":"dj"}},{"from":{"field":"region","value":"208"},"to":{"field":"region","value":"dk"}},{"from":{"field":"region","value":"212"},"to":{"field":"region","value":"dm"}},{"from":{"field":"region","value":"214"},"to":{"field":"region","value":"do"}},{"from":{"field":"region","value":"012"},"to":{"field":"region","value":"dz"}},{"from":{"field":"region","value":"218"},"to":{"field":"region","value":"ec"}},{"from":{"field":"region","value":"233"},"to":{"field":"region","value":"ee"}},{"from":{"field":"region","value":"818"},"to":{"field":"region","value":"eg"}},{"from":{"field":"region","value":"732"},"to":{"field":"region","value":"eh"}},{"from":{"field":"region","value":"232"},"to":{"field":"region","value":"er"}},{"from":{"field":"region","value":"724"},"to":{"field":"region","value":"es"}},{"from":{"field":"region","value":"231"},"to":{"field":"region","value":"et"}},{"from":{"field":"region","value":"246"},"to":{"field":"region","value":"fi"}},{"from":{"field":"region","value":"242"},"to":{"field":"region","value":"fj"}},{"from":{"field":"region","value":"238"},"to":{"field":"region","value":"fk"}},{"from":{"field":"region","value":"583"},"to":{"field":"region","value":"fm"}},{"from":{"field":"region","value":"234"},"to":{"field":"region","value":"fo"}},{"from":{"field":"region","value":"250"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"249"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"266"},"to":{"field":"region","value":"ga"}},{"from":{"field":"region","value":"826"},"to":{"field":"region","value":"gb"}},{"from":{"field":"region","value":"308"},"to":{"field":"region","value":"gd"}},{"from":{"field":"region","value":"268"},"to":{"field":"region","value":"ge"}},{"from":{"field":"region","value":"254"},"to":{"field":"region","value":"gf"}},{"from":{"field":"region","value":"831"},"to":{"field":"region","value":"gg"}},{"from":{"field":"region","value":"288"},"to":{"field":"region","value":"gh"}},{"from":{"field":"region","value":"292"},"to":{"field":"region","value":"gi"}},{"from":{"field":"region","value":"304"},"to":{"field":"region","value":"gl"}},{"from":{"field":"region","value":"270"},"to":{"field":"region","value":"gm"}},{"from":{"field":"region","value":"324"},"to":{"field":"region","value":"gn"}},{"from":{"field":"region","value":"312"},"to":{"field":"region","value":"gp"}},{"from":{"field":"region","value":"226"},"to":{"field":"region","value":"gq"}},{"from":{"field":"region","value":"300"},"to":{"field":"region","value":"gr"}},{"from":{"field":"region","value":"239"},"to":{"field":"region","value":"gs"}},{"from":{"field":"region","value":"320"},"to":{"field":"region","value":"gt"}},{"from":{"field":"region","value":"316"},"to":{"field":"region","value":"gu"}},{"from":{"field":"region","value":"624"},"to":{"field":"region","value":"gw"}},{"from":{"field":"region","value":"328"},"to":{"field":"region","value":"gy"}},{"from":{"field":"region","value":"344"},"to":{"field":"region","value":"hk"}},{"from":{"field":"region","value":"334"},"to":{"field":"region","value":"hm"}},{"from":{"field":"region","value":"340"},"to":{"field":"region","value":"hn"}},{"from":{"field":"region","value":"191"},"to":{"field":"region","value":"hr"}},{"from":{"field":"region","value":"332"},"to":{"field":"region","value":"ht"}},{"from":{"field":"region","value":"348"},"to":{"field":"region","value":"hu"}},{"from":{"field":"region","value":"360"},"to":{"field":"region","value":"id"}},{"from":{"field":"region","value":"372"},"to":{"field":"region","value":"ie"}},{"from":{"field":"region","value":"376"},"to":{"field":"region","value":"il"}},{"from":{"field":"region","value":"833"},"to":{"field":"region","value":"im"}},{"from":{"field":"region","value":"356"},"to":{"field":"region","value":"in"}},{"from":{"field":"region","value":"086"},"to":{"field":"region","value":"io"}},{"from":{"field":"region","value":"368"},"to":{"field":"region","value":"iq"}},{"from":{"field":"region","value":"364"},"to":{"field":"region","value":"ir"}},{"from":{"field":"region","value":"352"},"to":{"field":"region","value":"is"}},{"from":{"field":"region","value":"380"},"to":{"field":"region","value":"it"}},{"from":{"field":"region","value":"832"},"to":{"field":"region","value":"je"}},{"from":{"field":"region","value":"388"},"to":{"field":"region","value":"jm"}},{"from":{"field":"region","value":"400"},"to":{"field":"region","value":"jo"}},{"from":{"field":"region","value":"392"},"to":{"field":"region","value":"jp"}},{"from":{"field":"region","value":"404"},"to":{"field":"region","value":"ke"}},{"from":{"field":"region","value":"417"},"to":{"field":"region","value":"kg"}},{"from":{"field":"region","value":"116"},"to":{"field":"region","value":"kh"}},{"from":{"field":"region","value":"296"},"to":{"field":"region","value":"ki"}},{"from":{"field":"region","value":"174"},"to":{"field":"region","value":"km"}},{"from":{"field":"region","value":"659"},"to":{"field":"region","value":"kn"}},{"from":{"field":"region","value":"408"},"to":{"field":"region","value":"kp"}},{"from":{"field":"region","value":"410"},"to":{"field":"region","value":"kr"}},{"from":{"field":"region","value":"414"},"to":{"field":"region","value":"kw"}},{"from":{"field":"region","value":"136"},"to":{"field":"region","value":"ky"}},{"from":{"field":"region","value":"398"},"to":{"field":"region","value":"kz"}},{"from":{"field":"region","value":"418"},"to":{"field":"region","value":"la"}},{"from":{"field":"region","value":"422"},"to":{"field":"region","value":"lb"}},{"from":{"field":"region","value":"662"},"to":{"field":"region","value":"lc"}},{"from":{"field":"region","value":"438"},"to":{"field":"region","value":"li"}},{"from":{"field":"region","value":"144"},"to":{"field":"region","value":"lk"}},{"from":{"field":"region","value":"430"},"to":{"field":"region","value":"lr"}},{"from":{"field":"region","value":"426"},"to":{"field":"region","value":"ls"}},{"from":{"field":"region","value":"440"},"to":{"field":"region","value":"lt"}},{"from":{"field":"region","value":"442"},"to":{"field":"region","value":"lu"}},{"from":{"field":"region","value":"428"},"to":{"field":"region","value":"lv"}},{"from":{"field":"region","value":"434"},"to":{"field":"region","value":"ly"}},{"from":{"field":"region","value":"504"},"to":{"field":"region","value":"ma"}},{"from":{"field":"region","value":"492"},"to":{"field":"region","value":"mc"}},{"from":{"field":"region","value":"498"},"to":{"field":"region","value":"md"}},{"from":{"field":"region","value":"499"},"to":{"field":"region","value":"me"}},{"from":{"field":"region","value":"663"},"to":{"field":"region","value":"mf"}},{"from":{"field":"region","value":"450"},"to":{"field":"region","value":"mg"}},{"from":{"field":"region","value":"584"},"to":{"field":"region","value":"mh"}},{"from":{"field":"region","value":"807"},"to":{"field":"region","value":"mk"}},{"from":{"field":"region","value":"466"},"to":{"field":"region","value":"ml"}},{"from":{"field":"region","value":"496"},"to":{"field":"region","value":"mn"}},{"from":{"field":"region","value":"446"},"to":{"field":"region","value":"mo"}},{"from":{"field":"region","value":"580"},"to":{"field":"region","va
2lue":"mp"}},{"from":{"field":"region","value":"474"},"to":{"field":"region","value":"mq"}},{"from":{"field":"region","value":"478"},"to":{"field":"region","value":"mr"}},{"from":{"field":"region","value":"500"},"to":{"field":"region","value":"ms"}},{"from":{"field":"region","value":"470"},"to":{"field":"region","value":"mt"}},{"from":{"field":"region","value":"480"},"to":{"field":"region","value":"mu"}},{"from":{"field":"region","value":"462"},"to":{"field":"region","value":"mv"}},{"from":{"field":"region","value":"454"},"to":{"field":"region","value":"mw"}},{"from":{"field":"region","value":"484"},"to":{"field":"region","value":"mx"}},{"from":{"field":"region","value":"458"},"to":{"field":"region","value":"my"}},{"from":{"field":"region","value":"508"},"to":{"field":"region","value":"mz"}},{"from":{"field":"region","value":"516"},"to":{"field":"region","value":"na"}},{"from":{"field":"region","value":"540"},"to":{"field":"region","value":"nc"}},{"from":{"field":"region","value":"562"},"to":{"field":"region","value":"ne"}},{"from":{"field":"region","value":"574"},"to":{"field":"region","value":"nf"}},{"from":{"field":"region","value":"566"},"to":{"field":"region","value":"ng"}},{"from":{"field":"region","value":"558"},"to":{"field":"region","value":"ni"}},{"from":{"field":"region","value":"528"},"to":{"field":"region","value":"nl"}},{"from":{"field":"region","value":"578"},"to":{"field":"region","value":"no"}},{"from":{"field":"region","value":"524"},"to":{"field":"region","value":"np"}},{"from":{"field":"region","value":"520"},"to":{"field":"region","value":"nr"}},{"from":{"field":"region","value":"570"},"to":{"field":"region","value":"nu"}},{"from":{"field":"region","value":"554"},"to":{"field":"region","value":"nz"}},{"from":{"field":"region","value":"512"},"to":{"field":"region","value":"om"}},{"from":{"field":"region","value":"591"},"to":{"field":"region","value":"pa"}},{"from":{"field":"region","value":"604"},"to":{"field":"region","value":"pe"}},{"from":{"field":"region","value":"258"},"to":{"field":"region","value":"pf"}},{"from":{"field":"region","value":"598"},"to":{"field":"region","value":"pg"}},{"from":{"field":"region","value":"608"},"to":{"field":"region","value":"ph"}},{"from":{"field":"region","value":"586"},"to":{"field":"region","value":"pk"}},{"from":{"field":"region","value":"616"},"to":{"field":"region","value":"pl"}},{"from":{"field":"region","value":"666"},"to":{"field":"region","value":"pm"}},{"from":{"field":"region","value":"612"},"to":{"field":"region","value":"pn"}},{"from":{"field":"region","value":"630"},"to":{"field":"region","value":"pr"}},{"from":{"field":"region","value":"275"},"to":{"field":"region","value":"ps"}},{"from":{"field":"region","value":"620"},"to":{"field":"region","value":"pt"}},{"from":{"field":"region","value":"585"},"to":{"field":"region","value":"pw"}},{"from":{"field":"region","value":"600"},"to":{"field":"region","value":"py"}},{"from":{"field":"region","value":"634"},"to":{"field":"region","value":"qa"}},{"from":{"field":"region","value":"959"},"to":{"field":"region","value":"qm"}},{"from":{"field":"region","value":"960"},"to":{"field":"region","value":"qn"}},{"from":{"field":"region","value":"962"},"to":{"field":"region","value":"qp"}},{"from":{"field":"region","value":"963"},"to":{"field":"region","value":"qq"}},{"from":{"field":"region","value":"964"},"to":{"field":"region","value":"qr"}},{"from":{"field":"region","value":"965"},"to":{"field":"region","value":"qs"}},{"from":{"field":"region","value":"966"},"to":{"field":"region","value":"qt"}},{"from":{"field":"region","value":"967"},"to":{"field":"region","value":"eu"}},{"from":{"field":"region","value":"968"},"to":{"field":"region","value":"qv"}},{"from":{"field":"region","value":"969"},"to":{"field":"region","value":"qw"}},{"from":{"field":"region","value":"970"},"to":{"field":"region","value":"qx"}},{"from":{"field":"region","value":"971"},"to":{"field":"region","value":"qy"}},{"from":{"field":"region","value":"972"},"to":{"field":"region","value":"qz"}},{"from":{"field":"region","value":"638"},"to":{"field":"region","value":"re"}},{"from":{"field":"region","value":"642"},"to":{"field":"region","value":"ro"}},{"from":{"field":"region","value":"688"},"to":{"field":"region","value":"rs"}},{"from":{"field":"region","value":"643"},"to":{"field":"region","value":"ru"}},{"from":{"field":"region","value":"646"}
2,"to":{"field":"region","value":"rw"}},{"from":{"field":"region","value":"682"},"to":{"field":"region","value":"sa"}},{"from":{"field":"region","value":"090"},"to":{"field":"region","value":"sb"}},{"from":{"field":"region","value":"690"},"to":{"field":"region","value":"sc"}},{"from":{"field":"region","value":"729"},"to":{"field":"region","value":"sd"}},{"from":{"field":"region","value":"752"},"to":{"field":"region","value":"se"}},{"from":{"field":"region","value":"702"},"to":{"field":"region","value":"sg"}},{"from":{"field":"region","value":"654"},"to":{"field":"region","value":"sh"}},{"from":{"field":"region","value":"705"},"to":{"field":"region","value":"si"}},{"from":{"field":"region","value":"744"},"to":{"field":"region","value":"sj"}},{"from":{"field":"region","value":"703"},"to":{"field":"region","value":"sk"}},{"from":{"field":"region","value":"694"},"to":{"field":"region","value":"sl"}},{"from":{"field":"region","value":"674"},"to":{"field":"region","value":"sm"}},{"from":{"field":"region","value":"686"},"to":{"field":"region","value":"sn"}},{"from":{"field":"region","value":"706"},"to":{"field":"region","value":"so"}},{"from":{"field":"region","value":"740"},"to":{"field":"region","value":"sr"}},{"from":{"field":"region","value":"728"},"to":{"field":"region","value":"ss"}},{"from":{"field":"region","value":"678"},"to":{"field":"region","value":"st"}},{"from":{"field":"region","value":"222"},"to":{"field":"region","value":"sv"}},{"from":{"field":"region","value":"534"},"to":{"field":"region","value":"sx"}},{"from":{"field":"region","value":"760"},"to":{"field":"region","value":"sy"}},{"from":{"field":"region","value":"748"},"to":{"field":"region","value":"sz"}},{"from":{"field":"region","value":"796"},"to":{"field":"region","value":"tc"}},{"from":{"field":"region","value":"148"},"to":{"field":"region","value":"td"}},{"from":{"field":"region","value":"260"},"to":{"field":"region","value":"tf"}},{"from":{"field":"region","value":"768"},"to":{"field":"region","value":"tg"}},{"from":{"field":"region","value":"764"},"to":{"field":"region","value":"th"}},{"from":{"field":"region","value":"762"},"to":{"field":"region","value":"tj"}},{"from":{"field":"region","value":"772"},"to":{"field":"region","value":"tk"}},{"from":{"field":"region","value":"626"},"to":{"field":"region","value":"tl"}},{"from":{"field":"region","value":"795"},"to":{"field":"region","value":"tm"}},{"from":{"field":"region","value":"788"},"to":{"field":"region","value":"tn"}},{"from":{"field":"region","value":"776"},"to":{"field":"region","value":"to"}},{"from":{"field":"region","value":"792"},"to":{"field":"region","value":"tr"}},{"from":{"field":"region","value":"780"},"to":{"field":"region","value":"tt"}},{"from":{"field":"region","value":"798"},"to":{"field":"region","value":"tv"}},{"from":{"field":"region","value":"158"},"to":{"field":"region","value":"tw"}},{"from":{"field":"region","value":"834"},"to":{"field":"region","value":"tz"}},{"from":{"field":"region","value":"804"},"to":{"field":"region","value":"ua"}},{"from":{"field":"region","value":"800"},"to":{"field":"region","value":"ug"}},{"from":{"field":"region","value":"581"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"840"},"to":{"field":"region","value":"us"}},{"from":{"field":"region","value":"858"},"to":{"field":"region","value":"uy"}},{"from":{"field":"region","value":"860"},"to":{"field":"region","value":"uz"}},{"from":{"field":"region","value":"336"},"to":{"field":"region","value":"va"}},{"from":{"field":"region","value":"670"},"to":{"field":"region","value":"vc"}},{"from":{"field":"region","value":"862"},"to":{"field":"region","value":"ve"}},{"from":{"field":"region","value":"092"},"to":{"field":"region","value":"vg"}},{"from":{"field":"region","value":"850"},"to":{"field":"region","value":"vi"}},{"from":{"field":"region","value":"704"},"to":{"field":"region","value":"vn"}},{"from":{"field":"region","value":"548"},"to":{"field":"region","value":"vu"}},{"from":{"field":"region","value":"876"},"to":{"field":"region","value":"wf"}},{"from":{"field":"region","value":"882"},"to":{"field":"region","value":"ws"}},{"from":{"field":"region","value":"973"},"to":{"field":"region","value":"xa"}},{"from":{"field":"region","value":"974"},"to":{"field":"region","value":"xb"}},{"from":{"field":"region","value":"975"},"to":{"field":"region","value":"xc"}},{"from":{"field":"region","value":"976"},"to":{"field":"region","value":"xd"}},{"from":{"field":"region","value":"977"},"to":{"field":"region","value":"xe"}},{"from":{"field":"region","value":"978"},"to":{"field":"region","value":"xf"}},{"from":{"field":"region","value":"979"},"to":{"field":"region","value":"xg"}},{"from":{"field":"region","value":"980"},"to":{"field":"region","value":"xh"}},{"from":{"field":"region","value":"981"},"to":{"field":"region","value":"xi"}},{"from":{"field":"region","value":"982"},"to":{"field":"region","value":"xj"}},{"from":{"field":"region","value":"983"},"to":{"field":"region","value":"xk"}},{"from":{"field":"region","value":"984"},"to":{"field":"region","value":"xl"}},{"from":{"field":"region","value":"985"},"to":{"field":"region","value":"xm"}},{"from":{"field":"region","value":"986"},"to":{"field":"region","value":"xn"}},{"from":{"field":"region","value":"987"},"to":{"field":"region","value":"xo"}},{"from":{"field":"region","value":"988"},"to":{"field":"region","value":"xp"}},{"from":{"field":"region","value":"989"},"to":{"field":"region","value":"xq"}},{"from":{"field":"region","value":"990"},"to":{"field":"region","value":"xr"}},{"from":{"field":"region","value":"991"},"to":{"field":"region","value":"xs"}},{"from":{"field":"region","value":"992"},"to":{"field":"region","value":"xt"}},{"from":{"field":"region","value":"993"},"to":{"field":"region","value":"xu"}},{"from":{"field":"region","value":"994"},"to":{"field":"region","value":"xv"}},{"from":{"field":"region","value":"995"},"to":{"field":"region","value":"xw"}},{"from":{"field":"region","value":"996"},"to":{"field":"region","value":"xx"}},{"from":{"field":"region","value":"997"},"to":{"field":"region","value":"xy"}},{"from":{"field":"region","value":"998"},"to":{"field":"region","value":"xz"}},{"from":{"field":"region","value":"720"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"887"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"175"},"to":{"field":"region","value":"yt"}},{"from":{"field":"region","value":"710"},"to":{"field":"region","value":"za"}},{"from":{"field":"region","value":"894"},"to":{"field":"region","value":"zm"}},{"from":{"field":"region","value":"716"},"to":{"field":"region","value":"zw"}},{"from":{"field":"region","value":"999"},"to":{"field":"region","value":"zz"}},{"from":{"field":"variants","value":"aaland"},"to":{"field":"region","value":"ax"}},{"from":{"field":"variants","value":"polytoni"},"to":{"field":"variants","value":"polyton"}},{"from":{"field":"variants","value":"heploc"},"to":{"field":"variants","value":"alalc97"}},{"from":{"field":"variants","value":"arevela"},"to":{"field":"language","value":"hy"}},{"from":{"field":"variants","value":"arevmda"},"to":{"field":"language","value":"hyw"}}]')},9460:function(e){"use strict";e.exports=JSON.parse('{"region":{"172":["ru","am","az","by","ge","kg","kz","md","tj","tm","ua","uz"],"200":["cz","sk"],"530":["cw","sx","bq"],"532":["cw","sx","bq"],"536":["sa","iq"],"582":["fm","mh","mp","pw"],"810":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"830":["je","gg"],"890":["rs","me","si","hr","mk","ba"],"891":["rs","me"],"an":["cw","sx","bq"],"cs":["rs","me"],"fq":["aq","tf"],"nt":["s
2a","iq"],"pc":["fm","mh","mp","pw"],"su":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"yu":["rs","me"],"062":["034","143"],"ant":["cw","sx","bq"],"scg":["rs","me"],"ntz":["sa","iq"],"sun":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"yug":["rs","me"]}}')},7778:function(e){"use strict";e.exports=JSON.parse('[{"from":"in","to":"id"},{"from":"iw","to":"he"},{"from":"ji","to":"yi"},{"from":"jw","to":"jv"},{"from":"mo","to":"ro"},{"from":"scc","to":"sr"},{"from":"scr","to":"hr"},{"from":"aam","to":"aas"},{"from":"adp","to":"dz"},{"from":"aue","to":"ktz"},{"from":"ayx","to":"nun"},{"from":"bgm","to":"bcg"},{"from":"bjd","to":"drl"},{"from":"ccq","to":"rki"},{"from":"cjr","to":"mom"},{"from":"cka","to":"cmr"},{"from":"cmk","to":"xch"},{"from":"coy","to":"pij"},{"from":"cqu","to":"quh"},{"from":"drh","to":"mn"},{"from":"drw","to":"fa-af"},{"from":"gav","to":"dev"},{"from":"gfx","to":"vaj"},{"from":"ggn","to":"gvr"},{"from":"gti","to":"nyc"},{"from":"guv","to":"duz"},{"from":"hrr","to":"jal"},{"from":"ibi","to":"opa"},{"from":"ilw","to":"gal"},{"from":"jeg","to":"oyb"},{"from":"kgc","to":"tdf"},{"from":"kgh","to":"kml"},{"from":"koj","to":"kwv"},{"from":"krm","to":"bmf"},{"from":"ktr","to":"dtp"},{"from":"kvs","to":"gdj"},{"from":"kwq","to":"yam"},{"from":"kxe","to":"tvd"},{"from":"kzj","to":"dtp"},{"from":"kzt","to":"dtp"},{"from":"lii","to":"raq"},{"from":"lmm","to":"rmx"},{"from":"meg","to":"cir"},{"from":"mst","to":"mry"},{"from":"mwj","to":"vaj"},{"from":"myt","to":"mry"},{"from":"nad","to":"xny"},{"from":"ncp","to":"kdz"},{"from":"nnx","to":"ngv"},{"from":"nts","to":"pij"},{"from":"oun","to":"vaj"},{"from":"pcr","to":"adx"},{"from":"pmc","to":"huw"},{"from":"pmu","to":"phr"},{"from":"ppa","to":"bfy"},{"from":"ppr","to":"lcq"},{"from":"pry","to":"prt"},{"from":"puz","to":"pub"},{"from":"sca","to":"hle"},{"from":"skk","to":"oyb"},{"from":"tdu","to":"dtp"},{"from":"thc","to":"tpo"},{"from":"thx","to":"oyb"},{"from":"tie","to":"ras"},{"from":"tkk","to":"twm"},{"from":"tlw","to":"weo"},{"from":"tmp","to":"tyj"},{"from":"tne","to":"kak"},{"from":"tnf","to":"fa-af"},{"from":"tsf","to":"taj"},{"from":"uok","to":"ema"},{"from":"xba","to":"cax"},{"from":"xia","to":"acn"},{"from":"xkh","to":"waw"},{"from":"xsj","to":"suj"},{"from":"ybd","to":"rki"},{"from":"yma","to":"lrr"},{"from":"ymt","to":"mtm"},{"from":"yos","to":"zom"},{"from":"yuu","to":"yug"},{"from":"asd","to":"snz"},{"from":"dit","to":"dif"},{"from":"llo","to":"ngt"},{"from":"myd","to":"aog"},{"from":"nns","to":"nbr"},{"from":"sgn-br","to":"bzs"},{"from":"sgn-co","to":"csn"},{"from":"sgn-de","to":"gsg"},{"from":"sgn-dk","to":"dsl"},{"from":"sgn-fr","to":"fsl"},{"from":"sgn-gb","to":"bfi"},{"from":"sgn-gr","to":"gss"},{"from":"sgn-ie","to":"isg"},{"from":"sgn-it","to":"ise"},{"from":"sgn-jp","to":"jsl"},{"from":"sgn-mx","to":"mfs"},{"from":"sgn-ni","to":"ncs"},{"from":"sgn-nl","to":"dse"},{"from":"sgn-no","to":"nsi"},{"from":"sgn-pt","to":"psr"},{"from":"sgn-se","to":"swl"},{"from":"sgn-us","to":"ase"},{"from":"sgn-za","to":"sfs"},{"from":"no-bokmal","to":"nb"},{"from":"no-nynorsk","to":"nn"},{"from":"aa-saaho","to":"ssy"},{"from":"sh","to":"sr-latn"},{"from":"cnr","to":"sr-me"},{"from":"no","to":"nb"},{"from":"tl","to":"fil"},{"from":"az-az","to":"az-latn-az"},{"from":"bs-ba","to":"bs-latn-ba"},{"from":"ha-latn-gh","to":"ha-gh"},{"from":"ha-latn-ne","to":"ha-ne"},{"from":"ha-latn-ng","to":"ha-ng"},{"from":"kk-cyrl-kz","to":"kk-kz"},{"from":"ky-cyrl-kg","to":"ky-kg"},{"from":"ks-arab-in","to":"ks-in"},{"from":"mn-cyrl-mn","to":"mn-mn"},{"from":"ms-latn-bn","to":"ms-bn"},{"from":"ms-latn-my","to":"ms-my"},{"from":"ms-latn-sg","to":"ms-sg"},{"from":"pa-in","to":"pa-guru-in"},{"from":"pa-pk","to":"pa-arab-pk"},{"from":"shi-ma","to":"shi-tfng-ma"},{"from":"sr-ba","to":"sr-cyrl-ba"},{"from":"sr-me","to":"sr-latn-me"},{"from":"sr-rs","to":"sr-cyrl-rs"},{"from":"sr-xk","to":"sr-cyrl-xk"},{"from":"tzm-latn-ma","to":"tzm-ma"},{"from":"ug-arab-cn","to":"ug-cn"},{"from":"uz-af","to":"uz-arab-af"},{"from":"uz-uz","to":"uz-latn-uz"},{"from":"vai-lr","to":"vai-vaii-lr"},{"from":"yue-cn","to":"yue-hans-cn"},{"from":"yue-hk","to":"yue-hant-hk"},{"from":"zh-cn","to":"zh-hans-cn"},{"from":"zh-hk","to":"zh-hant-hk"},{"from":"zh-mo","to":"zh-hant-mo"},{"from":"zh-sg","to":"zh-hans-sg"},{"from":"zh-tw","to":"zh-hant-tw"},{"from":"aju","to":"jrb"},{"from":"als","to":"sq"},{"from":"arb","to":"ar"},{"from":"ayr","to":"ay"},{"from":"azj","to":"az"},{"from":"bcc","to":"bal"},{"from":"bcl","to":"bik"},{"from":"bxk","to":"luy"},{"from":"bxr","to":"bua"},{"from":"cld","to":"syr"},{"from":"cmn","to":"zh"},{"from":"cwd","to":"cr"},{"from":"dgo","to":"doi"},{"from":"dhd","to":"mwr"},{"from":"dik","to":"din"},{"from":"diq","to":"zza"},{"from":"lbk","to":"bnc"},{"from":"ekk","to":"et"},{"from":"emk","to":"man"},{"from":"esk","to":"ik"},{"from":"fat","to":"ak"},{"from":"fuc","to":"ff"},{"from":"gaz","to":"om"},{"from":"gbo","to":"grb"},{"from":"gno","to":"gon"},{"from":"gug","to":"gn"},{"from":"gya","to":"gba"},{"from":"hdn","to":"hai"},{"from":"hea","to":"hmn"},{"from":"ike","to":"iu"},{"from":"kmr","to":"ku"},{"from":"knc","to":"kr"},{"from":"kng","to":"kg"},{"from":"knn","to":"kok"},{"from":"kpv","to":"kv"},{"from":"lvs","to":"lv"},{"from":"mhr","to":"chm"},{"from":"mup","to":"raj"},{"from":"khk","to":"mn"},{"from":"npi","to":"ne"},{"from":"ojg","to":"oj"},{"from":"ory","to":"or"},{"from":"pbu","to":"ps"},{"from":"pes","to":"fa"},{"from":"plt","to":"mg"},{"from":"pnb","to":"lah"},{"from":"quz","to":"qu"},{"from":"rmy","to":"rom"},{"from":"spy","to":"kln"},{"from":"src","to":"sc"},{"from":"swh","to":"sw"},{"from":"ttq","to":"tmh"},{"from":"tw","to":"ak"},{"from":"umu","to":"del"},{"from":"uzn","to":"uz"},{"from":"xpe","to":"kpe"},{"from":"xsl","to":"den"},{"from":"ydd","to":"yi"},{"from":"zai","to":"zap"},{"from":"zsm","to":"ms"},{"from":"zyb","to":"za"},{"from":"him","to":"srx"},{"from":"mnk","to":"man"},{"from":"bh","to":"bho"},{"from":"prs","to":"fa-af"},{"from":"swc","to":"sw-cd"},{"from":"aar","to":"aa"},{"from":"abk","to":"ab"},{"from":"ave","to":"ae"},{"from":"afr","to":"af"},{"from":"aka","to":"ak"},{"from":"amh","to":"am"},{"from":"arg","to":"an"},{"from":"ara","to":"ar"},{"from":"asm","to":"as"},{"from":"ava","to":"av"},{"from":"aym","to":"ay"},{"from":"aze","to":"az"},{"from":"bak","to":"ba"},{"from":"bel","to":"be"},{"from":"bul","to":"bg"},{"from":"bih","to":"bho"},{"from":"bis","to":"bi"},{"from":"bam","to":"bm"},{"from":"ben","to":"bn"},{"from":"bod","to":"bo"},{"from":"bre","to":"br"},{"from":"bos","to":"bs"},{"from":"cat","to":"ca"},{"from":"che","to":"ce"},{"from":"cha","to":"ch"},{"from":"cos","to":"co"},{"from":"cre","to":"cr"},{"from":"ces","to":"cs"},{"from":"chu","to":"cu"},{"from":"chv","to":"cv"},{"from":"cym","to":"cy"},{"from":"dan","to":"da"},{"from":"deu","to":"de"},{"from":"div","to":"dv"},{"from":"dzo","to":"dz"},{"from":"ewe","to":"ee"},{"from":"ell","to":"el"},{"from":"eng","to":"en"},{"from":"epo","to":"eo"},{"from":"spa","to":"es"},{"from":"est","to":"et"},{"from":"eus","to":"eu"},{"from":"fas","to":"fa"},{"from":"ful","to":"ff"},{"from":"fin","to":"fi"},{"from":"fij","to":"fj"},{"from":"fao","to":"fo"},{"from":"fra","to":"fr"},{"from":"fry","to":"fy"},{"from":"gle","to":"ga"},{"from":"gla","to":"gd"},{"from":"glg","to":"gl"},{"from":"grn","to":"gn"},{"from":"guj","to":"gu"},{"from":"glv","to":"gv"},{"from":"hau","to":"ha"},{"from":"heb","to":"he"},{"from":"hin","to":"hi"},{"from":"hmo","to":"ho"},{"from":"hrv","to":"hr"},{"from":"hat","to":"ht"},{"from":"hun","to":"hu"},{"from":"hye","to":"hy"},{"from":"her","to":"hz"},{"from":"ina","to":"ia"},{"from":"ind","to":"id"},{"from":"ile","to":"ie"},{"from":"ibo","to":"ig"},{"from":"iii","to":"ii"},{"from":"ipk","to":"ik"},{"from":"ido","to":"io"},{"from":"isl","to":"is"},{"from":"ita","to":"it"},{"from":"iku","to":"iu"},{"from":"jpn","to":"ja"},{"from":"jav","to":"jv"},{"from":"kat","to":"ka"},{"from":"kon","to":"kg"},{"from":"kik","to":"ki"},{"from":"kua","to":"kj"},{"from":"kaz","to":"kk"},{"from":"kal","to":"kl"},{"from":"khm","to":"km"},{"from":"kan","to":"kn"},{"from":"kor","to":"ko"},{"from":"kau","to":"kr"},{"from":"kas","to":"ks"},{"from":"kur","to":"ku"},{"from":"kom","to":"kv"},{"from":"cor","to":"kw"},{"from":"kir","to":"ky"},{"from":"lat","to":"la"},{"from":"ltz","to":"lb"},{"from":"lug","to":"lg"},{"from":"lim","to":"li"},{"from":"lin","to":"ln"},{"from":"lao","to":"lo"},{"from":"lit","to":"lt"},{"from":"lub","to":"lu"},{"from":"lav","to":"lv"},{"from":"mlg","to":"mg"},{"from":"mah","to":"mh"},{"from":"mri","to":"mi"},{"from":"mkd","to":"mk"},{"from":"mal","to":"ml"},{"from":"mon","to":"mn"},{"from":"mol","to":"ro"},{"from":"mar","to":"mr"},{"from":"msa","to":"ms"},{"from":"mlt","to":"mt"},{"from":"mya","to":"my"},{"from":"nau","to":"na"},{"from":"nob","to":"nb"},{"from":"nde","to":"nd"},{"from":"nep","to":"ne"},{"from":"ndo","to":"ng"},{"from":"nld","to":"nl"},{"from":"nno","to":"nn"},{"from":"nor","to":"nb"},{"from":"nbl","to":"nr"},{"from":"nav","to":"nv"},{"from":"nya","to":"ny"},{"from":"oci","to":"oc"},{"from":"oji","to":"oj"},{"from":"orm","to":"om"},{"from":"ori","to":"or"},{"from":"oss","to":"os"},{"from":"pan","to":"pa"},{"from":"pli","to":"pi"},{"from":"pol","to":"pl"},{"from":"pus","to":"ps"},{"from":"por","to":"pt"},{"from":"que","to":"qu"},{"from":"roh","to":"rm"},{"from":"run","to":"rn"},{"from":"ron","to":"ro"},{"from":"rus","to":"ru"},{"from":"kin","to":"rw"},{"from":"san","to":"sa"},{"from":"srd","to":"sc"},{"from":"snd","to":"sd"},{"from":"sme","to":"se"},{"from":"sag","to":"sg"},{"from":"hbs","to":"sr-latn"},{"from":"sin","to":"si"},{"from":"slk","to":"sk"},{"from":"slv","to":"sl"},{"from":"smo","to":"sm"},{"from":"sna","to":"sn"},{"from":"som","to":"so"},{"from":"sqi","to":"sq"},{"from":"srp","to":"sr"},{"from":"ssw","to":"ss"},{"from":"sot","to":"st"},{"from":"sun","to":"su"},{"from":"swe","to":"sv"},{"from":"swa","to":"sw"},{"from":"tam","to":"ta"},{"from":"tel","to":"te"},{"from":"tgk","to":"tg"},{"from":"tha","to":"th"},{"from":"tir","to":"ti"},{"from":"tuk","to":"tk"},{"from":"tgl","to":"fil"},{"from":"tsn","to":"tn"},{"from":"ton","to":"to"},{"from":"tur","to":"tr"},{"from":"tso","to":"ts"},{"from":"tat","to":"tt"},{"from":"twi","to":"ak"},{"from":"tah","to":"ty"},{"from":"uig","to":"ug"},{"from":"ukr","to":"uk"},{"from":"urd","to":"ur"},{"from":"uzb","to":"uz"},{"from":"ven","to":"ve"},{"from":"vie","to":"vi"},{"from":"vol","to":"vo"},{"from":"wln","to":"wa"},{"from":"wol","to":"wo"},{"from":"xho","to":"xh"},{"from":"yid","to":"yi"},{"from":"yor","to":"yo"},{"from":"zha","to":"za"},{"from":"zho","to":"zh"},{"from":"zul","to":"zu"},{"from":"alb","to":"sq"},{"from":"arm","to":"hy"},{"from":"baq","to":"eu"},{"from":"bur","to":"my"},{"from":"chi","to":"zh"},{"from":"cze","to":"cs"},{"from":"dut","to":"nl"},{"from":"fre","to":"fr"},{"from":"geo","to":"ka"},{"from":"ger","to":"de"},{"from":"gre","to":"el"},{"from":"ice","to":"is"},{"from":"mac","to":"mk"},{"from":"mao","to":"mi"},{"from":"may","to":"ms"},{"from":"per","to":"fa"},{"from":"rum","to":"ro"},{"from":"slo","to":"sk"},{"from":"tib","to":"bo"},{"from":"wel","to":"cy"}]')},8589:function(e){"use strict";e.exports=JSON.parse('{"en-gb-oed":"en-GB-oxendict","i-ami":"ami","i-bnn":"bnn","i-default":null,"i-enochian":null,"i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":null,"i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","sgn-be-fr":"sfb","sgn-be-nl":"vgt","sgn-ch-de":"sgg","art-lojban":"jbo","cel-gaulish":null,"no-bok":"nb","no-nyn":"nn","zh-guoyu":"cmn","zh-hakka":"hak","zh-min":null,"zh-min-nan":"nan","zh-xiang":"hsn"}')},858:function(e){"use strict";e.exports=JSON.parse('["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"]')}},t={};function n(r){var i=t[r];
2if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o={};return function(){"use strict";n.d(o,{default:function(){return c}}),n(8416);var e,t=n(1715),r=n(8080),i=n(1737),a=n(1139),s=function(){var e,t="application/dash+xml";function n(n,r,i){if(!n||!/^VIDEO$/i.test(n.nodeName))return null;if(n._dashjs_player)return n._dashjs_player;var s,o=n.id||n.name||"video element";if(!(r=r||[].slice.call(n.querySelectorAll("source")).filter(function(e){return e.type==t})[0])&&n.src)(r=document.createElement("source")).src=n.src;else if(!r&&!n.src)return null;return i=i||{},(s=(0,a.Z)(i).create()).initialize(n,r.src,n.autoplay),e||(e=s.getDebug().getLogger()),e.debug("Converted "+o+" to dash.js player and added content: "+r.src),n._dashjs_player=s,s}function r(e){return/^VIDEO$/i.test(e.nodeName)?e:r(e.parentNode)}return{create:n,createAll:function(e,i){var a=[];e=e||"[data-dashjs-player]";for(var s=(i=i||document).querySelectorAll(e),o=0;o<s.length;o++){var l=n(s[o],null);a.push(l)}for(var u=i.querySelectorAll('source[type="'+t+'"]'),c=0;c<u.length;c++){var d=n(r(u[c]),null);a.push(d)}return a}}}();!("undefined"!=typeof window&&window&&window.dashjs&&window.dashjs.skipAutoCreate)&&"undefined"!=typeof window&&window&&window.addEventListener&&("complete"===window.document.readyState?window.dashjs?s.createAll():e=window.setInterval(function(){window.dashjs&&(window.clearInterval(e),s.createAll())},500):window.addEventListener("load",function e(){window.removeEventListener("load",e),s.createAll()}));var l=s,u=n(6398);dashjs.Protection=i.default,dashjs.MetricsReporting=r.default,dashjs.MediaPlayerFactory=l,dashjs.Debug=u.Z,dashjs.supportsMediaSource=t.B;var c=dashjs}(),o.default}()},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=o(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=o(e),s=a[0],l=a[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,l)),c=0,d=l>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=16383,o=0,l=r-i;o<l;o+=s)a.push(u(e,o,o+s>l?l:o+s));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(l(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනà·à·à¶»à·_à¶´à·à¶¶à¶»à·à·à¶»à·_මà·à¶»à·à¶à·_à¶
à¶´à·âà¶»à·à¶½à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶
à¶à·à·à·à¶à·_à·à·à¶´à·à¶à·à¶¸à·à¶¶à¶»à·_à¶à¶à·à¶à·à¶¶à¶»à·_à¶±à·à·à·à¶¸à·à¶¶à¶»à·_දà·à·à·à¶¸à·à¶¶à¶»à·".split("_"),monthsShort:"ජන_à¶´à·à¶¶_මà·à¶»à·_à¶
à¶´à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶
à¶à·_à·à·à¶´à·_à¶à¶à·_à¶±à·à·à·_දà·à·à·".
vendor: 4,590 bytes, line 2
2split("_"),weekdays:"à¶à¶»à·à¶¯à·_à·à¶³à·à¶¯à·_à¶
à¶à·à¶»à·à·à·à¶¯à·_බදà·à¶¯à·_à¶¶à·âà¶»à·à·à·à¶´à¶à·à¶±à·à¶¯à·_à·à·à¶à·à¶»à·à¶¯à·_à·à·à¶±à·à·à¶»à·à¶¯à·".split("_"),weekdaysShort:"à¶à¶»à·_à·à¶³à·_à¶
à¶_බදà·_à¶¶à·âà¶»à·_à·à·à¶à·_à·à·à¶±".split("_"),weekdaysMin:"à¶_à·_à¶
_à¶¶_à¶¶à·âà¶»_à·à·_à·à·".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [à·à·à¶±à·] dddd, a h:mm:ss"},calendar:{sameDay:"[à¶
ද] LT[à¶§]",nextDay:"[à·à·à¶§] LT[à¶§]",nextWeek:"dddd LT[à¶§]",lastDay:"[à¶à¶ºà·] LT[à¶§]",lastWeek:"[à¶´à·à·à¶à·à¶º] dddd LT[à¶§]",sameElse:"L"},relativeTime:{future:"%sà¶à·à¶±à·",past:"%sà¶à¶§ à¶´à·à¶»",s:"à¶à¶à·à¶´à¶» à¶à·à·à·à¶´à¶º",ss:"à¶à¶à·à¶´à¶» %d",m:"මà·à¶±à·à¶à·à¶à·à·",mm:"මà·à¶±à·à¶à·à¶à· %d",h:"à¶´à·à¶º",hh:"à¶´à·à¶º %d",d:"දà·à¶±à¶º",dd:"දà·à¶± %d",M:"මà·à·à¶º",MM:"මà·à· %d",y:"à·à·à¶»",yy:"à·à·à¶» %d"},dayOfMonthOrdinalParse:/\d{1,2} à·à·à¶±à·/,ordinal:function(e){return e+" à·à·à¶±à·"},meridiemParse:/à¶´à·à¶» à·à¶»à·|à¶´à·à· à·à¶»à·|à¶´à·.à·|à¶´.à·./,isPM:function(e){return"à¶´.à·."===e||"à¶´à·à· à·à¶»à·"===e},meridiem:function(e,t,n){return e>11?n?"à¶´.à·.":"à¶´à·à· à·à¶»à·":n?"à¶´à·.à·.":"à¶´à·à¶» à·à¶»à·"}})}(n(5093))},7609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ".split("_"),monthsShort:"Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"ЯкÑанба_ÐÑÑанба_СеÑанба_ЧоÑÑанба_ÐайÑанба_ÐÑма_Шанба".split("_"),weekdaysShort:"ЯкÑ_ÐÑÑ_СеÑ_ЧоÑ_Ðай_ÐÑм_Шан".split("_"),weekdaysMin:"Як_ÐÑ_Се_Чо_Ðа_ÐÑ_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[ÐÑгÑн ÑоаÑ] LT [да]",nextDay:"[ÐÑÑага] LT [да]",nextWeek:"dddd [кÑни ÑоаÑ] LT [да]",lastDay:"[ÐеÑа ÑоаÑ] LT [да]",lastWeek:"[УÑган] dddd [кÑни ÑоаÑ] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s иÑида",past:"ÐÐ¸Ñ Ð½ÐµÑа %s олдин",s:"ÑÑÑÑаÑ",ss:"%d ÑÑÑÑаÑ",m:"Ð±Ð¸Ñ Ð´Ð°ÐºÐ¸ÐºÐ°",mm:"%d дакика",h:"Ð±Ð¸Ñ ÑоаÑ",hh:"%d ÑоаÑ",d:"Ð±Ð¸Ñ ÐºÑн",dd:"%d кÑн",M:"Ð±Ð¸Ñ Ð¾Ð¹",MM:"%d ой",y:"Ð±Ð¸Ñ Ð¹Ð¸Ð»",yy:"%d йил"},week:{dow:1,doy:7}})}(n(5093))},7650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
2d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},7711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuá¸",mm:"%d minuá¸",h:"saÉa",hh:"%d tassaÉin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(5093))},7730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},7777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"ÑнÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_май_Ñни_Ñли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи".split("_"),monthsShort:"ÑнÑ_Ñев_маÑ_апÑ_май_Ñни_Ñли_авг_Ñеп_окÑ_ное_дек".split("_"),weekdays:"неделÑ_понеделник_вÑоÑник_ÑÑÑда_ÑеÑвÑÑÑÑк_пеÑÑк_ÑÑбоÑа".split("_"),weekdaysShort:"нед_пон_вÑо_ÑÑÑ_ÑеÑ_пеÑ_ÑÑб".split("_"),weekdaysMin:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[ÐÐ½ÐµÑ Ð²] LT",nextDay:"[УÑÑе в] LT",nextWeek:"dddd [в] LT",lastDay:"[ÐÑеÑа в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[ÐиналаÑа] dddd [в] LT";case 1:case 2:case 4:case 5:return"[ÐиналиÑ] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"Ñлед %s",past:"пÑеди %s",s:"нÑколко ÑекÑнди",ss:"%d ÑекÑнди",m:"минÑÑа",mm:"%d минÑÑи",h:"ÑаÑ",hh:"%
2d ÑаÑа",d:"ден",dd:"%d дена",w:"ÑедмиÑа",ww:"%d ÑедмиÑи",M:"меÑеÑ",MM:"%d меÑеÑа",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-Ñи":1===t?e+"-ви":2===t?e+"-Ñи":7===t||8===t?e+"-ми":e+"-Ñи"},week:{dow:1,doy:7}})}(n(5093))},7853:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},7956:function(e,t,n){e.exports=function(e){"use strict";const t=/[^.]*(?=\..*)\.|.*/,n=/\..*/,r=/::\d+$/,i={};let a=1;
2const s={mouseenter:"mouseover",mouseleave:"mouseout"},o=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function l(e,t){return t&&`${t}::${a++}`||e.uidEvent||a++}function u(e){const t=l(e);return e.uidEvent=t,i[t]=i[t]||{},i[t]}function c(e,t){return function n(r){return v(r,{delegateTarget:e}),n.oneOff&&_.off(e,r.type,t),t.apply(e,[r])}}function d(e,t,n){return function r(i){const a=e.querySelectorAll(t);for(let{target:s}=i;s&&s!==this;s=s.parentNode)for(const o of a)if(o===s)return v(i,{delegateTarget:s}),r.oneOff&&_.off(e,i.type,t,n),n.apply(s,[i])}}function f(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function h(e,t,n){const r="string"==typeof t,i=r?n:t||n;let a=y(e);return o.has(a)||(a=e),[r,i,a]}function m(e,n,r,i,a){if("string"!=typeof n||!e)return;let[o,m,p]=h(n,r,i);if(n in s){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};m=e(m)}const g=u(e),y=g[p]||(g[p]={}),_=f(y,m,o?r:null);if(_)return void(_.oneOff=_.oneOff&&a);const v=l(m,n.replace(t,"")),E=o?d(e,r,m):c(e,m);E.delegationSelector=o?r:null,E.callable=m,E.oneOff=a,E.uidEvent=v,y[v]=E,e.addEventListener(p,E,o)}function p(e,t,n,r,i){const a=f(t[n],r,i);a&&(e.removeEventListener(n,a,Boolean(i)),delete t[n][a.uidEvent])}function g(e,t,n,r){const i=t[n]||{};for(const[a,s]of Object.entries(i))a.includes(r)&&p(e,t,n,s.callable,s.delegationSelector)}function y(e){return e=e.replace(n,""),s[e]||e}const _={on(e,t,n,r){m(e,t,n,r,!1)},one(e,t,n,r){m(e,t,n,r,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[a,s,o]=h(t,n,i),l=o!==t,c=u(e),d=c[o]||{},f=t.startsWith(".");if(void 0===s){if(f)for(const n of Object.keys(c))g(e,c,n,t.slice(1));for(const[n,i]of Object.entries(d)){const a=n.replace(r,"");l&&!t.includes(a)||p(e,c,o,i.callable,i.delegationSelector)}}else{if(!Object.keys(d).length)return;p(e,c,o,s,a?n:null)}},trigger(t,n,r){if("string"!=typeof n||!t)return null;const i=e.getjQuery();let a=null,s=!0,o=!0,l=!1;n!==y(n)&&i&&(a=i.Event(n,r),i(t).trigger(a),s=!a.isPropagationStopped(),o=!a.isImmediatePropagationStopped(),l=a.isDefaultPrevented());const u=v(new Event(n,{bubbles:s,cancelable:!0}),r);return l&&u.preventDefault(),o&&t.dispatchEvent(u),u.defaultPrevented&&a&&a.preventDefault(),u}};function v(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>r})}return e}return _}(n(4035))},8076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄe u] LT",lastWeek:function(){return["[proÅ¡le] [nedjelje] [u] LT","[proÅ¡log] [ponedjeljka] [u] LT","[proÅ¡log] [utorka] [u] LT","[proÅ¡le] [srijede] [u] LT","[proÅ¡log] [Äetvrtka] [u] LT","[proÅ¡log] [petka] [u] LT","[proÅ¡le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},8174:function(e,t,n){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},n={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},r=["کاÙÙÙÛ Ø¯ÙÙÛÙ
","Ø´ÙØ¨Ø§Øª","ئازار","ÙÛØ³Ø§Ù","Ø¦Ø§ÛØ§Ø±","ØÙزÛÛØ±Ø§Ù","تÛÙ
Ù
ÙØ²","ئاب","ئÛÛÙÙÙÙ","تشرÛÙÛ ÛÛÙÛÙ
","تشرÛÙÛ Ø¯ÙÙÛÙ
","ÙØ§ÙÙÙÛ ÛÛÚ©ÛÙ
"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"ÛÙâÙØ´ÙâÙ
Ù
Ùâ_دÙÙØ´ÙâÙ
Ù
Ùâ_Ø³ÛØ´ÙâÙ
Ù
Ùâ_ÚÙØ§Ø±Ø´ÙâÙ
Ù
Ùâ_Ù¾ÛÙØ¬Ø´ÙâÙ
Ù
Ùâ_ÙÙâÛÙÛ_Ø´ÙâÙ
Ù
Ùâ".split("_"),weekdaysShort:"ÛÙâÙØ´ÙâÙ
_دÙÙØ´ÙâÙ
_Ø³ÛØ´ÙâÙ
_ÚÙØ§Ø±Ø´ÙâÙ
_Ù¾ÛÙØ¬Ø´ÙâÙ
_ÙÙâÛÙÛ_Ø´ÙâÙ
Ù
Ùâ".split("_"),weekdaysMin:"Û_د_س_Ú_Ù¾_Ù_Ø´".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئÛÙØ§Ø±Ùâ|بÙâÛØ§ÙÛ/,isPM:function(e){return/ئÛÙØ§Ø±Ùâ/.test(e)},meridiem:function(e,t,n){return e<12?"بÙâÛØ§ÙÛ":"ئÛÙØ§Ø±Ùâ"},calendar:{sameDay:"[ئÙâÙ
Ø±Û ÙØ§ØªÚÙ
ÛØ±] LT",nextDay:"[بÙâÛØ§ÙÛ ÙØ§ØªÚÙ
ÛØ±] LT",nextWeek:"dddd [ÙØ§ØªÚÙ
ÛØ±] LT",lastDay:"[دÙÛÙÛ ÙØ§ØªÚÙ
ÛØ±] LT",lastWeek:"dddd [ÙØ§ØªÚÙ
ÛØ±] LT",sameElse:"L"},relativeTime:{future:"ÙÙâ %s",past:"%s",s:"ÚÙâÙØ¯ ÚØ±ÙÙâÛÙâÙ",ss:"ÚØ±ÙÙâ %d",m:"ÛÙâÙ Ø®ÙÙÙâÙ",mm:"%d Ø®ÙÙÙâÙ",h:"ÛÙâÙ ÙØ§ØªÚÙ
ÛØ±",hh:"%
2d ÙØ§ØªÚÙ
ÛØ±",d:"ÛÙâÙ ÚÛÚ",dd:"%d ÚÛÚ",M:"ÛÙâÙ Ù
اÙÚ¯",MM:"%d Ù
اÙÚ¯",y:"ÛÙâ٠ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"Ø")},week:{dow:6,doy:12}})}(n(5093))},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"à¤à¤¨à¤µà¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤°à¥_मारà¥à¤_à¤
पà¥à¤°à¤¿à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤·à¥à¤_सà¥à¤ªà¥à¤à¥à¤®à¥à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नà¥à¤à¥à¤®à¥à¤¬à¤°_डिसà¥à¤®à¥à¤¬à¤°".split("_"),monthsShort:"à¤à¤¨._फà¥à¤¬à¥à¤°à¥._मारà¥à¤_à¤
पà¥à¤°à¤¿._मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤._à¤
à¤._सà¥à¤ªà¥à¤._à¤
à¤à¥à¤à¥._नà¥à¤à¥._डिसà¥.".split("_"),monthsParseExact:!0,weekdays:"à¤à¤à¤¤à¤¬à¤¾à¤°_सà¥à¤®à¤¬à¤¾à¤°_मà¤à¥à¤à¤²à¤¬à¤¾à¤°_बà¥à¤§à¤¬à¤¾à¤°_बिहिबार_शà¥à¤à¥à¤°à¤¬à¤¾à¤°_शनिबार".split("_"),weekdaysShort:"à¤à¤à¤¤._सà¥à¤®._मà¤à¥à¤à¤²._बà¥à¤§._बिहि._शà¥à¤à¥à¤°._शनि.".split("_"),weekdaysMin:"à¤._सà¥._मà¤._बà¥._बि._शà¥._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aà¤à¥ h:mm बà¤à¥",LTS:"Aà¤à¥ h:mm:ss बà¤à¥",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aà¤à¥ h:mm बà¤à¥",LLLL:"dddd, D MMMM YYYY, Aà¤à¥ h:mm बà¤à¥"},preparse:function(e){return e.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिà¤à¤à¤¸à¥|साà¤à¤/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिà¤à¤à¤¸à¥"===t?e>=10?e:e+12:"साà¤à¤"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिà¤à¤à¤¸à¥":e<20?"साà¤à¤":"राति"},calendar:{sameDay:"[à¤à¤] LT",nextDay:"[à¤à¥à¤²à¤¿] LT",nextWeek:"[à¤à¤à¤à¤¦à¥] dddd[,] LT",lastDay:"[हिà¤à¥] LT",lastWeek:"[à¤à¤à¤à¥] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s à¤
à¤à¤¾à¤¡à¤¿",s:"à¤à¥à¤¹à¥ à¤à¥à¤·à¤£",ss:"%d सà¥à¤à¥à¤£à¥à¤¡",m:"à¤à¤ मिनà¥à¤",mm:"%d मिनà¥à¤",h:"à¤à¤ à¤à¤£à¥à¤à¤¾",hh:"%d à¤à¤£à¥à¤à¤¾",d:"à¤à¤ दिन",dd:"%d दिन",M:"à¤à¤ महिना",MM:"%d महिना",y:"à¤à¤ बरà¥à¤·",yy:"%d बरà¥à¤·"},week:{dow:0,doy:6}})}(n(5093))},8248:function(e,t,n){!function(e,t,n,r){"use strict";const i=(e,i="hide")=>{const a=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;t.on(document,a,`[data-bs-dismiss="${s}"]`,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),r.isDisabled(this))return;const a=n.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(a)[i]()})};e.enableDismissTrigger=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t,n(7956),n(5411),n(4035))},8287:(e,t,n)=>{"use strict";var r=n(7526),i=n(251),a=n(4634);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(t,n);e=o(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=o(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?o(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=o(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 4,599 bytes, line 2
2(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function p(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var a,s=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=n;a<o;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var d=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){d=!1;break}if(d)return a}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var s=0;s<r;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[n+s]=o}return s}function E(e,t,n,r){return G(j(t,e.length-n),e,n,r)}function b(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return b(e,t,n,r)}function S(e,t,n,r){return G(H(t),e,n,r)}function w(e,t,n,r){return G(function(e,t){for(var n,r,i,a=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,s,o,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}(r)}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)}
vendor: 4,087 bytes, line 2
2,l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):p.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),u=this.slice(r,i),c=e.slice(t,n),d=0;d<o;++d)if(u[d]!==c[d]){a=u[d],s=c[d];break}return a<s?-1:s<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=B(e[a]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}
vendor: 7,679 bytes, line 2
2function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function N(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,a){return a||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function Y(e,t,n,r,a){return a||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return Y(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return Y(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=l.isBuffer(e)?e:j(new l(e,r).toString()),o=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%o]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>
2-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},8298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},8303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [à s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [à s] HH:mm"},calendar:{sameDay:"[Hoje à s] LT",nextDay:"[Amanhã à s] LT",nextWeek:"dddd [à s] LT",lastDay:"[Ontem à s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Ãltimo] dddd [à s] LT":"[Ãltima] dddd [à s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(5093))},8383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
2d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},8414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_Ù
ارت_ئاپرÛÙ_Ù
اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر".split("_"),monthsShort:"ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_Ù
ارت_ئاپرÛÙ_Ù
اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر".split("_"),weekdays:"ÙÛÙØ´ÛÙØ¨Û_Ø¯ÛØ´ÛÙØ¨Û_سÛÙØ´ÛÙØ¨Û_ÚØ§Ø±Ø´ÛÙØ¨Û_Ù¾ÛÙØ´ÛÙØ¨Û_جÛÙ
Û_Ø´ÛÙØ¨Û".split("_"),weekdaysShort:"ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û".split("_"),weekdaysMin:"ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙ",LLL:"YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm",LLLL:"ddddØ YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm"},meridiemParse:/ÙÛØ±ÙÙ
ÙÛÚÛ|سÛÚ¾ÛØ±|ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ|ÚÛØ´|ÚÛØ´ØªÙÙ ÙÛÙÙÙ|ÙÛÚ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ÙÛØ±ÙÙ
ÙÛÚÛ"===t||"سÛÚ¾ÛØ±"===t||"ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ"===t?e:"ÚÛØ´ØªÙÙ ÙÛÙÙÙ"===t||"ÙÛÚ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"ÙÛØ±ÙÙ
ÙÛÚÛ":r<900?"سÛÚ¾ÛØ±":r<1130?"ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ":r<1230?"ÚÛØ´":r<1800?"ÚÛØ´ØªÙÙ ÙÛÙÙÙ":"ÙÛÚ"},calendar:{sameDay:"[بÛÚ¯ÛÙ Ø³Ø§Ø¦ÛØª] LT",nextDay:"[Ø¦ÛØªÛ Ø³Ø§Ø¦ÛØª] LT",nextWeek:"[ÙÛÙÛØ±ÙÙ] dddd [Ø³Ø§Ø¦ÛØª] LT",lastDay:"[تÛÙÛÚ¯ÛÙ] LT",lastWeek:"[Ø¦Ø§ÙØ¯ÙÙÙÙ] dddd [Ø³Ø§Ø¦ÛØª] LT",sameElse:"L"},relativeTime:{future:"%s ÙÛÙÙÙ",past:"%s Ø¨ÛØ±ÛÙ",s:"ÙÛÚÚÛ Ø³ÛÙÙÙØª",ss:"%d سÛÙÙÙØª",m:"Ø¨ÙØ± Ù
ÙÙÛØª",mm:"%d Ù
ÙÙÛØª",h:"Ø¨ÙØ± Ø³Ø§Ø¦ÛØª",hh:"%d Ø³Ø§Ø¦ÛØª",d:"Ø¨ÙØ± ÙÛÙ",dd:"%d ÙÛÙ",M:"Ø¨ÙØ± ئاÙ",MM:"%d ئاÙ",y:"Ø¨ÙØ± ÙÙÙ",yy:"%d ÙÙÙ"},dayOfMonthOrdinalParse:/\d{1,2}(-ÙÛÙÙ|-ئاÙ|-Ú¾ÛپتÛ)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-ÙÛÙÙ";case"w":case"W":return e+"-Ú¾ÛپتÛ";default:return e}},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:1,doy:7}})}(n(5093))},8451:function(e,t,n){e.exports=function(e,t,n,r,i,a,s,o){"use strict";const l="offcanvas",u=".bs.offcanvas",c=".data-api",d=`load${u}${c}`,f="Escape",h="show",m="showing",p="hiding",g="offcanvas-backdrop",y=".offcanvas.show",_=`show${u}`,v=`shown${u}`,E=`hide${u}`,b=`hidePrevented${u}`,T=`hidden${u}`,S=`resize${u}`,w=`click${u}${c}`,L=`keydown.dismiss${u}`,A='[data-bs-toggle="offcanvas"]',M={backdrop:!0,keyboard:!0,scroll:!1},D={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class k extends e{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return M}static get DefaultType(){return D}static get NAME(){return l}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(t.trigger(this._element,_,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new o).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(m);const n=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(h),this._element.classList.remove(m),t.trigger(this._element,v,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown)return;if(t.trigger(this._element,E).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(p),this._backdrop.hide();const e=()=>{this._element.classList.remove(h,p),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new o).reset(),t.trigger(this._element,T)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{"static"!==this._config.backdrop?this.hide():t.trigger(this._element,b)},n=Boolean(this._config.backdrop);return new r({className:g,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new a({trapElement:this._element})}_addEventListeners(){t.on(this._element,L,e=>{e.key===f&&(this._config.keyboard?this.hide():t.trigger(this._element,b))})}static jQueryInterface(e){return this.each(function(){const t=k.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
2amed "${e}"`);t[e](this)}})}}return t.on(document,w,A,function(e){const r=n.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),s.isDisabled(this))return;t.one(r,T,()=>{s.isVisible(this)&&this.focus()});const i=n.findOne(y);i&&i!==r&&k.getInstance(i).hide(),k.getOrCreateInstance(r).toggle(this)}),t.on(window,d,()=>{for(const e of n.find(y))k.getOrCreateInstance(e).show()}),t.on(window,S,()=>{for(const e of n.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&k.getOrCreateInstance(e).hide()}),i.enableDismissTrigger(k),s.defineJQueryPlugin(k),k}(n(9011),n(7956),n(5411),n(1877),n(8248),n(2936),n(4035),n(3673))},8474:function(e,t,n){!function(e){"use strict";var t={0:"-ÑÒ¯",1:"-Ñи",2:"-Ñи",3:"-ÑÒ¯",4:"-ÑÒ¯",5:"-Ñи",6:"-ÑÑ",7:"-Ñи",8:"-Ñи",9:"-ÑÑ",10:"-ÑÑ",20:"-ÑÑ",30:"-ÑÑ",40:"-ÑÑ",50:"-ÑÒ¯",60:"-ÑÑ",70:"-Ñи",80:"-Ñи",90:"-ÑÑ",100:"-ÑÒ¯"};e.defineLocale("ky",{months:"ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),monthsShort:"Ñнв_Ñев_маÑÑ_апÑ_май_иÑнÑ_иÑлÑ_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"ÐекÑемби_ÐүйÑөмбү_ШейÑемби_ШаÑÑемби_ÐейÑемби_ÐÑма_ÐÑемби".split("_"),weekdaysShort:"Ðек_Ðүй_Шей_ШаÑ_Ðей_ÐÑм_ÐÑе".split("_"),weekdaysMin:"Ðк_Ðй_Шй_ШÑ_Ðй_Ðм_ÐÑ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ðүгүн ÑааÑ] LT",nextDay:"[ÐÑÑең ÑааÑ] LT",nextWeek:"dddd [ÑааÑ] LT",lastDay:"[ÐеÑÑÑ ÑааÑ] LT",lastWeek:"[Ó¨Ñкөн апÑанÑн] dddd [күнү] [ÑааÑ] LT",sameElse:"L"},relativeTime:{future:"%s иÑинде",past:"%s мÑÑÑн",s:"биÑнеÑе ÑекÑнд",ss:"%d ÑекÑнд",m:"Ð±Ð¸Ñ Ð¼Ò¯Ð½Ó©Ñ",mm:"%d мүнөÑ",h:"Ð±Ð¸Ñ ÑааÑ",hh:"%
2d ÑааÑ",d:"Ð±Ð¸Ñ ÐºÒ¯Ð½",dd:"%d күн",M:"Ð±Ð¸Ñ Ð°Ð¹",MM:"%d ай",y:"Ð±Ð¸Ñ Ð¶Ñл",yy:"%d жÑл"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñи|ÑÑ|ÑÒ¯|ÑÑ)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(5093))},8647:function(e,t,n){e.exports=function(e,t,n,r){"use strict";const i="collapse",a=".bs.collapse",s=`show${a}`,o=`shown${a}`,l=`hide${a}`,u=`hidden${a}`,c=`click${a}.data-api`,d="show",f="collapse",h="collapsing",m="collapsed",p=`:scope .${f} .${f}`,g="collapse-horizontal",y="width",_="height",v=".collapse.show, .collapse.collapsing",E='[data-bs-toggle="collapse"]',b={parent:null,toggle:!0},T={parent:"(null|element)",toggle:"boolean"};class S extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=n.find(E);for(const e of r){const t=n.getSelectorFromElement(e),r=n.find(t).filter(e=>e===this._element);null!==t&&r.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return b}static get DefaultType(){return T}static get NAME(){return i}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];
2if(this._config.parent&&(e=this._getFirstLevelChildren(v).filter(e=>e!==this._element).map(e=>S.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,s).defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(f),this._element.classList.add(h),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(h),this._element.classList.add(f,d),this._element.style[n]="",t.trigger(this._element,o)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,l).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,r.reflow(this._element),this._element.classList.add(h),this._element.classList.remove(f,d);for(const e of this._triggerArray){const t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(h),this._element.classList.add(f),t.trigger(this._element,u)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains(d)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=r.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(g)?y:_}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(E);for(const t of e){const e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=n.find(p,this._config.parent);return n.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle(m,!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=S.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}return t.on(document,c,E,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of n.getMultipleElementsFromSelector(this))S.getOrCreateInstance(e,{toggle:!1}).toggle()}),r.defineJQueryPlugin(S),S}(n(9011),n(7956),n(5411),n(4035))},8676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),monthsShort:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥ØªÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø§ØØ¯_اتÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:0,doy:12}})}(n(5093))},8861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},8959:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"Ñ
вÑлÑна":"Ñ
вÑлÑнÑ":"h"===r?n?"гадзÑна":"гадзÑнÑ":e+" "+t
2({ss:n?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:n?"Ñ
вÑлÑна_Ñ
вÑлÑнÑ_Ñ
вÑлÑн":"Ñ
вÑлÑнÑ_Ñ
вÑлÑнÑ_Ñ
вÑлÑн",hh:n?"гадзÑна_гадзÑнÑ_гадзÑн":"гадзÑнÑ_гадзÑнÑ_гадзÑн",dd:"дзенÑ_днÑ_дзÑн",MM:"меÑÑÑ_меÑÑÑÑ_меÑÑÑаÑ",yy:"год_гадÑ_гадоÑ"}[r],+e)}e.defineLocale("be",{months:{format:"ÑÑÑдзенÑ_лÑÑага_ÑакавÑка_кÑаÑавÑка_ÑÑаÑнÑ_ÑÑÑвенÑ_лÑпенÑ_жнÑÑнÑ_веÑаÑнÑ_каÑÑÑÑÑнÑка_лÑÑÑапада_ÑнежнÑ".split("_"),standalone:"ÑÑÑдзенÑ_лÑÑÑ_ÑакавÑк_кÑаÑавÑк_ÑÑавенÑ_ÑÑÑвенÑ_лÑпенÑ_жнÑвенÑ_веÑаÑенÑ_каÑÑÑÑÑнÑк_лÑÑÑапад_ÑнежанÑ".split("_")},monthsShort:"ÑÑÑд_лÑÑ_Ñак_кÑаÑ_ÑÑав_ÑÑÑв_лÑп_жнÑв_веÑ_каÑÑ_лÑÑÑ_Ñнеж".split("_"),weekdays:{format:"нÑдзелÑ_панÑдзелак_аÑÑоÑак_ÑеÑадÑ_ÑаÑвеÑ_пÑÑнÑÑÑ_ÑÑбоÑÑ".split("_"),standalone:"нÑдзелÑ_панÑдзелак_аÑÑоÑак_ÑеÑада_ÑаÑвеÑ_пÑÑнÑÑа_ÑÑбоÑа".split("_"),isFormat:/\[ ?[УÑÑ] ?(?:мÑнÑлÑÑ|наÑÑÑпнÑÑ)? ?\] ?dddd/},weekdaysShort:"нд_пн_аÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"нд_пн_аÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[СÑÐ½Ð½Ñ Ñ] LT",nextDay:"[ÐаÑÑÑа Ñ] LT",lastDay:"[УÑоÑа Ñ] LT",nextWeek:function(){return"[У] dddd [Ñ] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мÑнÑлÑÑ] dddd [Ñ] LT";case 1:case 2:case 4:return"[У мÑнÑлÑ] dddd [Ñ] LT"}},sameElse:"L"},relativeTime:{future:"пÑаз %s",past:"%s ÑамÑ",s:"некалÑÐºÑ ÑекÑнд",m:n,mm:n,h:n,hh:n,d:"дзенÑ",dd:n,M:"меÑÑÑ",MM:n,y:"год",yy:n},meridiemParse:/ноÑÑ|ÑанÑÑÑ|днÑ|веÑаÑа/,isPM:function(e){return/^(днÑ|веÑаÑа)$/.test(e)},meridiem:function(e,t,n){return e<4?"ноÑÑ":e<12?"ÑанÑÑÑ":e<17?"днÑ":"веÑаÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñ|Ñ|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-Ñ":e+"-Ñ";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(5093))},9011:function(e,t,n){e.exports=function(e,t,n,r){"use strict";const i="5.3.8";class a extends n{constructor(t,n){super(),(t=r.getElement(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),t.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){r.executeAfterTransition(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(t){return e.get(r.getElement(t),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return i}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}return a}(n(7269),n(7956),n(2105),n(4035))},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(5093))},9053:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"Ñ
ÑдÑ
Ñн ÑекÑнд":"Ñ
ÑдÑ
Ñн ÑекÑндÑн";case"ss":return e+(t?" ÑекÑнд":" ÑекÑндÑн");case"m":case"mm":return e+(t?" минÑÑ":" минÑÑÑн");case"h":case"hh":return e+(t?" Ñаг":" Ñагийн");case"d":case"dd":return e+(t?" өдөÑ":" өдÑийн");case"M":case"MM":return e+(t?" ÑаÑ":" ÑаÑÑн");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"ÐÑгдүгÑÑÑ ÑаÑ_ХоÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÓ©ÑөвдүгÑÑÑ ÑаÑ_ТавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑгадÑÐ³Ð°Ð°Ñ ÑаÑ_ÐолдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐаймдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑдүгÑÑÑ ÑаÑ_ÐÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑван нÑгдүгÑÑÑ ÑаÑ_ÐÑван Ñ
оÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ".split("_"),monthsShort:"1 ÑаÑ_2 ÑаÑ_3 ÑаÑ_4 ÑаÑ_5 ÑаÑ_6 ÑаÑ_7 ÑаÑ_8 ÑаÑ_9 ÑаÑ_10 ÑаÑ_11 ÑаÑ_12 ÑаÑ".split("_"),monthsParseExact:!0,weekdays:"ÐÑм_Ðаваа_ÐÑгмаÑ_ÐÑ
агва_ÐÒ¯ÑÑв_ÐааÑан_ÐÑмба".split("_"),weekdaysShort:"ÐÑм_Ðав_ÐÑг_ÐÑ
а_ÐÒ¯Ñ_Ðаа_ÐÑм".split("_"),weekdaysMin:"ÐÑ_Ðа_ÐÑ_ÐÑ
_ÐÒ¯_Ðа_ÐÑ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY Ð¾Ð½Ñ MMMMÑн D",LLL:"YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm",LLLL:"dddd, YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm"},meridiemParse:/Ò®Ó¨|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"Ò®Ó¨":"ҮХ"},calendar:{sameDay:"[ӨнөөдөÑ] LT",nextDay:"[ÐаÑгааÑ
2] LT",nextWeek:"[ÐÑÑÑ
] dddd LT",lastDay:"[Ó¨ÑигдөÑ] LT",lastWeek:"[ӨнгөÑÑөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s даÑаа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөÑ/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөÑ";default:return e}}})}(n(5093))},9231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},9330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquà %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},9374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";
vendor: 4,377 bytes, line 2
2case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mÃnúta":"mÃnútu";case"mm":return t(e)?a+(n||i?"mÃnútur":"mÃnútum"):n?a+"mÃnúta":a+"mÃnútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_aprÃl_maÃ_júnÃ_júlÃ_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maÃ_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Ãr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[à dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[à gær kl.] LT",lastWeek:"[sÃðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s sÃðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},9527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ãanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ãan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"ÃekÅenbe_DuÅenbe_SiÅenbe_ÃarÅenbe_PenÅenbe_Anna_Åenbe".split("_"),weekdaysShort:"Ãek_DuÅ_SiÅ_Ãar_Pen_Ann_Åen".split("_"),weekdaysMin:"Ãk_DÅ_SÅ_Ãr_Pn_An_Ån".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soÅ",past:"%s öÅ",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}})}(n(5093))},9532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundÄm_sekunde_sekundes".split("_"),m:"minÅ«tes_minÅ«tÄm_minÅ«te_minÅ«tes".split("_"),mm:"minÅ«tes_minÅ«tÄm_minÅ«te_minÅ«tes".split("_"),h:"stundas_stundÄm_stunda_stundas".split("_"),hh:"stundas_stundÄm_stunda_stundas".split("_"),d:"dienas_die
2nÄm_diena_dienas".split("_"),dd:"dienas_dienÄm_diena_dienas".split("_"),M:"mÄneÅ¡a_mÄneÅ¡iem_mÄnesis_mÄneÅ¡i".split("_"),MM:"mÄneÅ¡a_mÄneÅ¡iem_mÄnesis_mÄneÅ¡i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}function a(e,t){return t?"dažas sekundes":"dažÄm sekundÄm"}e.defineLocale("lv",{months:"janvÄris_februÄris_marts_aprÄ«lis_maijs_jÅ«nijs_jÅ«lijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jÅ«n_jÅ«l_aug_sep_okt_nov_dec".split("_"),weekdays:"svÄtdiena_pirmdiena_otrdiena_treÅ¡diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Å odien pulksten] LT",nextDay:"[RÄ«t pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[PagÄjuÅ¡Ä] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pÄc %s",past:"pirms %s",s:a,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9635:function(e,t,n){e.exports=function(e,t,n,r,i,a,s,o){"use strict";const l="modal",u=".bs.modal",c="Escape",d=`hide${u}`,f=`hidePrevented${u}`,h=`hidden${u}`,m=`show${u}`,p=`shown${u}`,g=`resize${u}`,y=`click.dismiss${u}`,_=`mousedown.dismiss${u}`,v=`keydown.dismiss${u}`,E=`click${u}.data-api`,b="modal-open",T="fade",S="show",w="modal-static",L=".modal.show",A=".modal-dialog",M=".modal-body",D='[data-bs-toggle="modal"]',k={backdrop:!0,focus:!0,keyboard:!0},I={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class R extends e{constructor(e,t){super(e,t),this._dialog=n.findOne(A,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new o,this._addEventListeners()}static get Default(){return k}static get DefaultType(){return I}static get NAME(){return l}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||t.trigger(this._element,m,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(b),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(t.trigger(this._element,d).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(S),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){t.off(window,u),t.off(this._dialog,u),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new r({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new a({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=n.findOne(M,this._dialog);r&&(r.scrollTop=0),s.reflow(this._element),this._element.classList.add(S);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,t.trigger(this._element,p,{relatedTarget:e})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){t.on(this._element,v,e=>{e.key===c&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),t.on(window,g,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),t.on(this._element,_,e=>{t.one(this._element,y,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(b),this._resetAdjustments(),this._scrollBar.reset(),t.trigger(this._element,h)})}_isAnimated(){return this._element.classList.contains(T)}_triggerBackdropTransition(){if(t.trigger(this._element,f).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;"hidden"===n||this._element.classList.contains(w)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(w),this._queueCallback(()=>{this._element.classList.remove(w),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;
2if(n&&!e){const e=s.isRTL()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=s.isRTL()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=R.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}return t.on(document,E,D,function(e){const r=n.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),t.one(r,m,e=>{e.defaultPrevented||t.one(r,h,()=>{s.isVisible(this)&&this.focus()})});const i=n.findOne(L);i&&R.getInstance(i).hide(),R.getOrCreateInstance(r).toggle(this)}),i.enableDismissTrigger(R),s.defineJQueryPlugin(R),R}(n(9011),n(7956),n(5411),n(1877),n(8248),n(2936),n(4035),n(3673))},9680:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return i(e)}return i(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(5093))},9756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جاÙÙÙ_ÙÙÙØ±Ù_Ù
ارس_Ø£ÙØ±ÙÙ_Ù
اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),monthsShort:"جاÙÙÙ_ÙÙÙØ±Ù_Ù
ارس_Ø£ÙØ±ÙÙ_Ù
اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:1,doy:4}})}(n(5093))},9834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje à s] LT",nextDay:"[Amanhã à s] LT",nextWeek:"dddd [à s] LT",lastDay:"[Ontem à s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Ãltimo] dddd [à s] LT":"[Ãltima] dddd [à s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
2d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},9837:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"SẹÌrẹÌ_EÌreÌleÌ_ẸrẹÌnaÌ_IÌgbeÌ_EÌbibi_OÌkuÌdu_Agẹmo_OÌguÌn_Owewe_á»ÌwaÌraÌ_BeÌluÌ_á»ÌpẹÌÌ".split("_"),monthsShort:"SẹÌr_EÌrl_Ẹrn_IÌgb_EÌbi_OÌkuÌ_Agẹ_OÌguÌ_Owe_á»ÌwaÌ_BeÌl_á»ÌpẹÌÌ".split("_"),weekdays:"AÌiÌkuÌ_AjeÌ_IÌsẹÌgun_á»já»ÌruÌ_á»já»Ìbá»_ẸtiÌ_AÌbaÌmẹÌta".split("_"),weekdaysShort:"AÌiÌk_AjeÌ_IÌsẹÌ_á»jr_á»jb_ẸtiÌ_AÌbaÌ".split("_"),weekdaysMin:"AÌiÌ_Aj_IÌs_á»r_á»b_Ẹt_AÌb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[OÌniÌ ni] LT",nextDay:"[á»Ìla ni] LT",nextWeek:"dddd [á»sáº¹Ì toÌn'bá»] [ni] LT",lastDay:"[AÌna ni] LT",lastWeek:"dddd [á»sáº¹Ì toÌlá»Ì] [ni] LT",sameElse:"L"},relativeTime:{future:"niÌ %s",past:"%s ká»jaÌ",s:"iÌsẹjuÌ aayaÌ die",ss:"aayaÌ %d",m:"iÌsẹjuÌ kan",mm:"iÌsẹjuÌ %d",h:"waÌkati kan",hh:"waÌkati %d",d:"á»já»Ì kan",dd:"á»já»Ì %d",M:"osuÌ kan",MM:"osuÌ %d",y:"á»duÌn kan",yy:"á»duÌn %d"},dayOfMonthOrdinalParse:/á»já»Ì\s\d{1,2}/,ordinal:"á»já»Ì %d",week:{dow:1,doy:4}})}(n(5093))},9846:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n mÃut","'iens mÃut"],mm:[e+" mÃuts",e+" mÃuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à ] LT",nextDay:"[demà à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[ieiri à ] LT",lastWeek:"[sür el] dddd [lasteu à ] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9849:function(e,t,n){!function(e){"use strict";var t={1:"à©§",2:"੨",3:"à©©",4:"੪",5:"à©«",6:"੬",7:"à©",8:"à©®",9:"੯",0:"੦"},n={"à©§":"1","੨":"2","à©©":"3","੪":"4","à©«":"5","੬":"6","à©":"7","à©®":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"à¨à¨¨à¨µà¨°à©_ਫ਼ਰਵਰà©_ਮਾਰà¨_ਠਪà©à¨°à©à¨²_ਮà¨_à¨à©à¨¨_à¨à©à¨²à¨¾à¨_ਠà¨à¨¸à¨¤_ਸਤੰਬਰ_ਠà¨à¨¤à©à¨¬à¨°_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"à¨à¨¨à¨µà¨°à©_ਫ਼ਰਵਰà©_ਮਾਰà¨_ਠਪà©à¨°à©à¨²_ਮà¨_à¨à©à¨¨_à¨à©à¨²à¨¾à¨_ਠà¨à¨¸à¨¤_ਸਤੰਬਰ_ਠà¨à¨¤à©à¨¬à¨°_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"à¨à¨¤à¨µà¨¾à¨°_ਸà©à¨®à¨µà¨¾à¨°_ਮੰà¨à¨²à¨µà¨¾à¨°_ਬà©à¨§à¨µà¨¾à¨°_ਵà©à¨°à¨µà¨¾à¨°_ਸ਼à©à©±à¨à¨°à¨µà¨¾à¨°_ਸ਼ਨà©à¨à¨°à¨µà¨¾à¨°".split("_"),weekdaysShort:"à¨à¨¤_ਸà©à¨®_ਮੰà¨à¨²_ਬà©à¨§_ਵà©à¨°_ਸ਼à©à¨à¨°_ਸ਼ਨà©".split("_"),weekdaysMin:"à¨à¨¤_ਸà©à¨®_ਮੰà¨à¨²_ਬà©à¨§_ਵà©à¨°_ਸ਼à©à¨à¨°_ਸ਼ਨà©".split("_"),longDateFormat:{LT:"A h:mm ਵà¨à©",LTS:"A h:mm:ss ਵà¨à©",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵà¨à©",LLLL:"dddd, D MMMM YYYY, A h:mm ਵà¨à©"},calendar:{sameDay:"[ਠà¨] LT",nextDay:"[à¨à¨²] LT",nextWeek:"[ਠà¨à¨²à¨¾] dddd, LT",lastDay:"[à¨à¨²] LT",lastWeek:"[ਪਿà¨à¨²à©] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱà¨",past:"%s ਪਿà¨à¨²à©",s:"à¨à©à¨ ਸà¨à¨¿à©°à¨",ss:"%d ਸà¨à¨¿à©°à¨",m:"à¨à¨ ਮਿੰà¨",mm:"%d ਮਿੰà¨",h:"à¨à©±à¨ à¨à©°à¨à¨¾",hh:"%d à¨à©°à¨à©",d:"à¨à©±à¨ ਦਿਨ",dd:"%d ਦਿਨ",M:"à¨à©±à¨ ਮਹà©à¨¨à¨¾",MM:"%d ਮਹà©à¨¨à©",y:"à¨à©±à¨ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬à©à©®à©¯à©¦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵà©à¨°|ਦà©à¨ªà¨¹à¨¿à¨°|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵà©à¨°"===t?e:"ਦà©à¨ªà¨¹à¨¿à¨°"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵà©à¨°":e<17?"ਦà©à¨ªà¨¹à¨¿à¨°":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(5093))}},e=>{e.O(0,[375],()=>{return t=770,e(e.s=t);var t});e.O()}]); 3//# sourceMappingURL=front-app.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.