customer-eq7kiuol0tk9chox.cloudflarestream.com
Open in
urlscan Pro
2606:4700::6810:6072
Public Scan
Submitted URL: http://customer-eq7kiuol0tk9chox.cloudflarestream.com/embed/sdk-iframe-integration.fla9.latest.js?video=9f13614af79e47799590be4be2251343
Effective URL: https://customer-eq7kiuol0tk9chox.cloudflarestream.com/embed/sdk-iframe-integration.fla9.latest.js
Submission: On May 28 via manual from US — Scanned from DE
Effective URL: https://customer-eq7kiuol0tk9chox.cloudflarestream.com/embed/sdk-iframe-integration.fla9.latest.js
Submission: On May 28 via manual from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! For license information please see sdk-iframe-integration.fla9.3b8bfec.js.LICENSE.txt */ (()=>{var e,t,n,r,i={1952:(e,t,n)=>{"use strict";n.d(t,{OR:()=>s,WJ:()=>d});var r=n(5152);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){return"object"===i(e)&&null!==e&&"current"in e}function o(e){return"object"===i(e)&&null!==e&&"addEventListener"in e&&"removeEventListener"in e}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.target,s=void 0===i?window:i,u=n.passive,l=void 0!==u&&u,c=n.capture,d=void 0!==c&&c,f=(0,r.useMemo)((function(){return{target:s,passive:l,capture:d}}),[s,l,d]),h=(0,r.useRef)(t);(0,r.useEffect)((function(){h.current=t}),[t]),(0,r.useEffect)((function(){a(s)&&(s=s.current)})),(0,r.useEffect)((function(){var t=function(e){return h.current(e)};return o(s)&&s.addEventListener(e,t,f),function(){o(s)&&s.removeEventListener(e,t,f)}}),[e,s,f])}const u=s;function l(e){return""===e?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))}var c=/Mac/.test(navigator.platform);function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.keyName,a=e.shiftKey,o=void 0!==a&&a,s=e.altKey,d=void 0!==s&&s,f=e.modKey,h=void 0!==f&&f,p=e.ctrlKey,g=void 0!==p&&p,m=e.metaKey,v=void 0!==m&&m;h&&(g=!c,v=c);var y=n.event,b=void 0===y?"keydown":y,w=n.target,x=n.passive,E=n.capture,T=(0,r.useCallback)((function(e){e instanceof KeyboardEvent&&i.toLowerCase()===e.key.toLowerCase()&&o===e.shiftKey&&d===e.altKey&&g===e.ctrlKey&&v===e.metaKey&&(x||e.preventDefault(),t(e))}),[t,x,i,o,d,g,v]),S=(0,r.useMemo)((function(){return c?[g&&"⌃",d&&"⌥",o&&"⇧",v&&"⌘",l(i)].filter(Boolean).join(""):[g&&"Ctrl",d&&"Alt",o&&"Shift",v&&"⊞",i.toUpperCase()].filter(Boolean).join(" + ")}),[i,o,d,g,v]);return u(b,T,{target:w,passive:x,capture:E}),S}},2686:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(a).concat([i]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"===typeof a&&(r[a]=!0)}for(i=0;i<e.length;i++){var o=e[i];"number"===typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},3661:(e,t,n)=>{"use strict";n.d(t,{iv:()=>P,hi:()=>M,F4:()=>R});n(3475);var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,a?0:i.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();const i=function(e){function t(e,r,u,l,f){for(var h,p,g,m,w,E=0,T=0,S=0,k=0,A=0,P=0,N=g=h=0,L=0,j=0,U=0,F=0,B=u.length,z=B-1,V="",H="",q="",K="";L<B;){if(p=u.charCodeAt(L),L===z&&0!==T+k+S+E&&(0!==T&&(p=47===T?10:47),k=S=E=0,B++,z++),0===T+k+S+E){if(L===z&&(0<j&&(V=V.replace(d,"")),0<V.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:V+=u.charAt(L)}p=59}switch(p){case 123:for(h=(V=V.trim()).charCodeAt(0),g=1,F=++L;L<B;){switch(p=u.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(p=u.charCodeAt(L+1)){case 42:case 47:e:{for(N=L+1;N<z;++N)switch(u.charCodeAt(N)){case 47:if(42===p&&42===u.charCodeAt(N-1)&&L+2!==N){L=N+1;break e}break;case 10:if(47===p){L=N+1;break e}}L=N}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<z&&u.charCodeAt(L)!==p;);}if(0===g)break;L++}if(g=u.substring(F,L),0===h&&(h=(V=V.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<j&&(V=V.replace(d,"")),p=V.charCodeAt(1)){case 100:case 109:case 115:case 45:j=r;break;default:j=R}if(F=(g=t(r,j,g,p,f+1)).length,0<D&&(w=s(3,g,j=n(R,V,U),r,I,C,F,p,f,l),V=j.join(""),void 0!==w&&0===(F=(g=w.trim()).length)&&(p=0,g="")),0<F)switch(p){case 115:V=V.replace(x,o);case 100:case 109:case 45:g=V+"{"+g+"}";break;case 107:g=(V=V.replace(v,"$1 $2"))+"{"+g+"}",g=1===M||2===M&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=V+g,112===l&&(H+=g,g="")}else g=""}else g=t(r,n(r,V,U),g,l,f+1);q+=g,g=U=j=N=h=0,V="",p=u.charCodeAt(++L);break;case 125:case 59:if(1<(F=(V=(0<j?V.replace(d,""):V).trim()).length))switch(0===N&&(h=V.charCodeAt(0),45===h||96<h&&123>h)&&(F=(V=V.replace(" ",":")).length),0<D&&void 0!==(w=s(1,V,r,e,I,C,H.length,l,f,l))&&0===(F=(V=w.trim()).length)&&(V="\0\0"),h=V.charCodeAt(0),p=V.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){K+=V+u.charAt(L);break}default:58!==V.charCodeAt(F-1)&&(H+=i(V,h,p,V.charCodeAt(2)))}U=j=N=h=0,V="",p=u.charCodeAt(++L)}}switch(p){case 13:case 10:47===T?T=0:0===1+h&&107!==l&&0<V.length&&(j=1,V+="\0"),0<D*O&&s(0,V,r,e,I,C,H.length,l,f,l),C=1,I++;break;case 59:case 125:if(0===T+k+S+E){C++;break}default:switch(C++,m=u.charAt(L),p){case 9:case 32:if(0===k+E+T)switch(A){case 44:case 58:case 9:case 32:m="";break;default:32!==p&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===k+T+E&&(j=U=1,m="\f"+m);break;case 108:if(0===k+T+E+_&&0<N)switch(L-N){case 2:112===A&&58===u.charCodeAt(L-3)&&(_=A);case 8:111===P&&(_=P)}break;case 58:0===k+T+E&&(N=L);break;case 44:0===T+S+k+E&&(j=1,m+="\r");break;case 34:case 39:0===T&&(k=k===p?0:0===k?p:k);break;case 91:0===k+T+S&&E++;break;case 93:0===k+T+S&&E--;break;case 41:0===k+T+E&&S--;break;case 40:if(0===k+T+E){if(0===h)if(2*A+3*P===533);else h=1;S++}break;case 64:0===T+S+k+E+N+g&&(g=1);break;case 42:case 47:if(!(0<k+E+S))switch(T){case 0:switch(2*p+3*u.charCodeAt(L+1)){case 235:T=47;break;case 220:F=L,T=42}break;case 42:47===p&&42===A&&F+2!==L&&(33===u.charCodeAt(F+2)&&(H+=u.substring(F,L+1)),m="",T=0)}}0===T&&(V+=m)}P=A,A=p,L++}if(0<(F=H.length)){if(j=r,0<D&&(void 0!==(w=s(2,H,j,e,I,C,F,l,f,l))&&0===(H=w).length))return K+H+q;if(H=j.join(",")+"{"+H+"}",0!==M*_){switch(2!==M||a(H,2)||(_=0),_){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}_=0}}return K+H+q}function n(e,t,n){var i=t.trim().split(g);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var l=0;l<o;++l)t[u++]=r(e[l]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var u=o.substring(e,o.length-1).trim();return u=o.substring(0,e).trim()+u+";",1===M||2===M&&a(u,1)?"-webkit-"+u+u:u}if(0===M||2===M&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(A,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(u=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+u+o;case 1005:return h.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(u=o.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=o.replace(w,"tb");break;case 232:u=o.replace(w,"tb-rl");break;case 220:u=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+u+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(u=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(u,"-webkit-"+u)+";"+o.replace(u,"-ms-"+u+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return u=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+u+"-ms-flex-"+u+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(T,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(T,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(u,"-webkit-"+u)+o.replace(u,"-moz-"+u.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(S,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,a,o,s,u,c){for(var d,f=0,h=t;f<D;++f)switch(d=P[f].call(l,e,h,n,r,i,a,o,s,u,c)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!==typeof e?M=1:(M=2,N=e):M=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=s(-1,n,r,r,I,C,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var a=t(R,r,n,0,0);return 0<D&&(void 0!==(i=s(-2,a,r,r,I,C,a.length,0,0,0))&&(a=i)),"",_=0,C=I=1,a}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,T=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,C=1,I=1,_=0,M=1,R=[],P=[],D=0,N=null,O=0;return l.use=function e(t){switch(t){case void 0:case null:D=P.length=0;break;default:if("function"===typeof t)P[D++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else O=0|!!t}return e},l.set=u,void 0!==e&&u(e),l};n(8206);var a="/*|*/";function o(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,n,r,i,u,l,c,d,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+a;break;case 3:switch(c){case 102:case 112:return s.current.insert(n[0]+t),"";default:return t+(0===f?a:"")}case-2:t.split("/*|*/}").forEach(o)}};const l=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var a=new i(t);var o,l={};o=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),a.use(e.stylisPlugins)(u),c=function(e,t,n,r){var i=t.name;s.current=n,a(e,t.styles),r&&(f.inserted[i]=!0)};var f={key:n,sheet:new r({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:c};return f};const c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const f=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var h=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g=function(e){return 45===e.charCodeAt(1)},m=function(e){return null!=e&&"boolean"!==typeof e},v=f((function(e){return g(e)?e:e.replace(h,"-$&").toLowerCase()})),y=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(p,(function(e,t,n){return w={name:t,styles:n,next:w},t}))}return 1===d[e]||g(e)||"number"!==typeof t||0===t?t:t+"px"};function b(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return w={name:n.name,styles:n.styles,next:w},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)w={name:i.name,styles:i.styles,next:w},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=b(e,t,n[i],!1);else for(var a in n){var o=n[a];if("object"!==typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":m(o)&&(r+=v(a)+":"+y(a,o)+";");else if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=b(e,t,o,!1);switch(a){case"animation":case"animationName":r+=v(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<o.length;u++)m(o[u])&&(r+=v(a)+":"+y(a,o[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=w,o=n(e);return w=a,b(e,t,o,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var w,x=/label:\s*([^\s;\n{]+)\s*;/g;var E=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";w=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=b(n,t,a,!1)):i+=a[0];for(var o=1;o<e.length;o++)i+=b(n,t,e[o],46===i.charCodeAt(i.length-1)),r&&(i+=a[o]);x.lastIndex=0;for(var s,u="";null!==(s=x.exec(i));)u+="-"+s[1];return{name:c(i)+u,styles:i,next:w}};function T(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var S=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};function k(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function A(e,t,n){var r=[],i=T(e,r,n);return r.length<2?n:i+t(r)}var C=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var o in a="",i)i[o]&&o&&(a&&(a+=" "),a+=o);break;default:a=i}a&&(n&&(n+=" "),n+=a)}}return n};const I=function(e){var t=l(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=E(n,t.registered,void 0);return S(t,i,!1),t.key+"-"+i.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return A(t.registered,n,C(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=E(n,t.registered);k(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=E(n,t.registered),a="animation-"+i.name;return k(t,{name:i.name,styles:"@keyframes "+a+"{"+i.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:T.bind(null,t.registered),merge:A.bind(null,t.registered,n)}};var _=I(),M=(_.flush,_.hydrate,_.cx,_.merge,_.getRegisteredStyles,_.injectGlobal),R=_.keyframes,P=_.css;_.sheet,_.cache},5261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},i=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],a=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],o=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],s="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},u="fullscreenEnabled"in s&&Object.keys(r)||i[0]in s&&i||a[0]in s&&a||o[0]in s&&o||[];const l={requestFullscreen:function(e){return e[u[r.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[u[r.requestFullscreen]]},get exitFullscreen(){return s[u[r.exitFullscreen]].bind(s)},get fullscreenPseudoClass(){return":"+u[r.fullscreen]},addEventListener:function(e,t,n){return s.addEventListener(u[r[e]],t,n)},removeEventListener:function(e,t,n){return s.removeEventListener(u[r[e]],t,n)},get fullscreenEnabled(){return Boolean(s[u[r.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return s[u[r.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return s[("on"+u[r.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return s[("on"+u[r.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return s[("on"+u[r.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return s[("on"+u[r.fullscreenerror]).toLowerCase()]=e}}},6319:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,s,u=i(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(u[c]=o[c]);if(t){s=t(o);for(var d=0;d<s.length;d++)r.call(o,s[d])&&(u[s[d]]=o[s[d]])}}return u}},318:e=>{function t(e){this.name="RavenConfigError",this.message=e}t.prototype=new Error,t.prototype.constructor=t,e.exports=t},9116:e=>{e.exports={wrapMethod:function(e,t,n){var r=e[t],i=e;if(t in e){var a="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),o=""+e.join(" "),s={level:a,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(o="Assertion failed: "+(e.slice(1).join(" ")||"console.assert"),s.extra.arguments=e.slice(1),n&&n(o,s)):n&&n(o,s),r&&Function.prototype.apply.call(r,i,e)}}}}},5005:(e,t,n)=>{var r=n(5994),i=n(4575),a=n(318),o=n(9463),s=o.isError,u=o.isObject,l=o.isErrorEvent,c=o.isUndefined,d=o.isFunction,f=o.isString,h=o.isArray,p=o.isEmptyObject,g=o.each,m=o.objectMerge,v=o.truncate,y=o.objectFrozen,b=o.hasKey,w=o.joinRegExp,x=o.urlencode,E=o.uuid4,T=o.htmlTreeAsString,S=o.isSameException,k=o.isSameStacktrace,A=o.parseUrl,C=o.fill,I=o.supportsFetch,_=n(9116).wrapMethod,M="source protocol user pass host port path".split(" "),R=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function P(){return+new Date}var D="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},N=D.document,O=D.navigator;function L(e,t){return d(t)?function(n){return t(n,e)}:t}function j(){for(var e in this._hasJSON=!("object"!==typeof JSON||!JSON.stringify),this._hasDocument=!c(N),this._hasNavigator=!c(O),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=D.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=P(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=D.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}j.prototype={VERSION:"3.21.0",debug:!1,TraceKit:r,config:function(e,t){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return n;var i=n._globalOptions;t&&g(t,(function(e,t){"tags"===e||"extra"===e||"user"===e?n._globalContext[e]=t:i[e]=t})),n.setDSN(e),i.ignoreErrors.push(/^Script error\.?$/),i.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),i.ignoreErrors=w(i.ignoreErrors),i.ignoreUrls=!!i.ignoreUrls.length&&w(i.ignoreUrls),i.whitelistUrls=!!i.whitelistUrls.length&&w(i.whitelistUrls),i.includePaths=w(i.includePaths),i.maxBreadcrumbs=Math.max(0,Math.min(i.maxBreadcrumbs||100,100));var a={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=i.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=m(a,o):!1!==o&&(o=a),i.autoBreadcrumbs=o;var s={tryCatch:!0},u=i.instrument;return"[object Object]"==={}.toString.call(u)?u=m(s,u):!1!==u&&(u=s),i.instrument=u,r.collectWindowErrors=!!i.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(r.report.subscribe((function(){e._handleOnErrorStackInfo.apply(e,arguments)})),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this,n=t._parseDSN(e),r=n.path.lastIndexOf("/"),i=n.path.substr(1,r);t._dsn=e,t._globalKey=n.user,t._globalSecret=n.pass&&n.pass.substr(1),t._globalProject=n.path.substr(r+1),t._globalServer=t._getGlobalServer(n),t._globalEndpoint=t._globalServer+"/"+i+"api/"+t._globalProject+"/store/",this._resetBackoff()},context:function(e,t,n){return d(e)&&(n=t||[],t=e,e=void 0),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){var r=this;if(c(t)&&!d(e))return e;if(d(e)&&(t=e,e=void 0),!d(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],a=arguments.length,o=!e||e&&!1!==e.deep;for(n&&d(n)&&n.apply(this,arguments);a--;)i[a]=o?r.wrap(e,arguments[a]):arguments[a];try{return t.apply(this,i)}catch(t){throw r._ignoreNextOnError(),r.captureException(t,e),t}}for(var a in t)b(t,a)&&(i[a]=t[a]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return r.report.uninstall(),this._unpatchFunctionToString(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(e,t){var n=!s(e),i=!l(e),a=l(e)&&!e.error;if(n&&i||a)return this.captureMessage(e,m({trimHeadFrames:1,stacktrace:!0},t));l(e)&&(e=e.error),this._lastCapturedException=e;try{var o=r.computeStackTrace(e);this._handleStackInfo(o,t)}catch(t){if(e!==t)throw t}return this},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var n,i=m({message:e+""},t=t||{});try{throw new Error(e)}catch(e){n=e}n.name=null;var a=r.computeStackTrace(n),o=h(a.stack)&&a.stack[1],s=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(s))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(s))){if(this._globalOptions.stacktrace||t&&t.stacktrace){t=m({fingerprint:e,trimHeadFrames:(t.trimHeadFrames||0)+1},t);var u=this._prepareFrames(a,t);i.stacktrace={frames:u.reverse()}}return this._send(i),this}}},captureBreadcrumb:function(e){var t=m({timestamp:P()/1e3},e);if(d(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(u(n)&&!p(n))t=n;else if(!1===n)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(i(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=L(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=L(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=L(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=D.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(N){var t=(e=e||{}).eventId||this.lastEventId();if(!t)throw new a("Missing eventId");var n=e.dsn||this._dsn;if(!n)throw new a("Missing DSN");var r=encodeURIComponent,i="";i+="?eventId="+r(t),i+="&dsn="+r(n);var o=e.user||this._globalContext.user;o&&(o.name&&(i+="&name="+r(o.name)),o.email&&(i+="&email="+r(o.email)));var s=this._getGlobalServer(this._parseDSN(n)),u=N.createElement("script");u.async=!0,u.src=s+"/api/embed/error-page/"+i,(N.head||N.body).appendChild(u)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),N.createEvent?(n=N.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=N.createEventObject()).eventType=e,t)b(t,r)&&(n[r]=t[r]);if(N.createEvent)N.dispatchEvent(n);else try{N.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n){var r;t._lastCapturedEvent=n;try{r=T(n.target)}catch(e){r="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this;return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),1e3)}}},_captureUrlChange:function(e,t){var n=A(this._location.href),r=A(t),i=A(e);this._lastHref=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"===typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function n(t){return function(n,r){for(var i=new Array(arguments.length),a=0;a<i.length;++a)i[a]=arguments[a];var o=i[0];return d(o)&&(i[0]=e.wrap(o)),t.apply?t.apply(this,i):t(i[0],i[1])}}var r=this._globalOptions.autoBreadcrumbs;function i(n){var i=D[n]&&D[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(C(i,"addEventListener",(function(t){return function(i,a,o,s){try{a&&a.handleEvent&&(a.handleEvent=e.wrap(a.handleEvent))}catch(e){}var u,l,c;return r&&r.dom&&("EventTarget"===n||"Node"===n)&&(l=e._breadcrumbEventHandler("click"),c=e._keypressEventHandler(),u=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?l(e):"keypress"===t?c(e):void 0}}),t.call(this,i,e.wrap(a,void 0,u),o,s)}}),t),C(i,"removeEventListener",(function(e){return function(t,n,r,i){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(e){}return e.call(this,t,n,r,i)}}),t))}C(D,"setTimeout",n,t),C(D,"setInterval",n,t),D.requestAnimationFrame&&C(D,"requestAnimationFrame",(function(t){return function(n){return t(e.wrap(n))}}),t);for(var a=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],o=0;o<a.length;o++)i(a[o])},_instrumentBreadcrumbs:function(){var e=this,t=this._globalOptions.autoBreadcrumbs,n=e._wrappedBuiltIns;function r(t,n){t in n&&d(n[t])&&C(n,t,(function(t){return e.wrap(t)}))}if(t.xhr&&"XMLHttpRequest"in D){var i=XMLHttpRequest.prototype;C(i,"open",(function(t){return function(n,r){return f(r)&&-1===r.indexOf(e._globalKey)&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}}),n),C(i,"send",(function(t){return function(){var n=this;function i(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var a=["onload","onerror","onprogress"],o=0;o<a.length;o++)r(a[o],n);return"onreadystatechange"in n&&d(n.onreadystatechange)?C(n,"onreadystatechange",(function(t){return e.wrap(t,void 0,i)})):n.onreadystatechange=i,t.apply(this,arguments)}}),n)}t.xhr&&I()&&C(D,"fetch",(function(t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;++r)n[r]=arguments[r];var i,a=n[0],o="GET";if("string"===typeof a?i=a:"Request"in D&&a instanceof D.Request?(i=a.url,a.method&&(o=a.method)):i=""+a,-1!==i.indexOf(e._globalKey))return t.apply(this,n);n[1]&&n[1].method&&(o=n[1].method);var s={method:o,url:i,status_code:null};return e.captureBreadcrumb({type:"http",category:"fetch",data:s}),t.apply(this,n).then((function(e){return s.status_code=e.status,e}))}}),n),t.dom&&this._hasDocument&&(N.addEventListener?(N.addEventListener("click",e._breadcrumbEventHandler("click"),!1),N.addEventListener("keypress",e._keypressEventHandler(),!1)):(N.attachEvent("onclick",e._breadcrumbEventHandler("click")),N.attachEvent("onkeypress",e._keypressEventHandler())));var a=D.chrome,o=!(a&&a.app&&a.app.runtime)&&D.history&&history.pushState&&history.replaceState;if(t.location&&o){var s=D.onpopstate;D.onpopstate=function(){var t=e._location.href;if(e._captureUrlChange(e._lastHref,t),s)return s.apply(this,arguments)};var u=function(t){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}};C(history,"pushState",u,n),C(history,"replaceState",u,n)}if(t.console&&"console"in D&&console.log){var l=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};g(["debug","info","warn","error","log"],(function(e,t){_(console,t,l)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],n=e[1],r=e[2];t[n]=r}},_drainPlugins:function(){var e=this;g(this._plugins,(function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))}))},_parseDSN:function(e){var t=R.exec(e),n={},r=7;try{for(;r--;)n[M[r]]=t[r]||""}catch(t){throw new a("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(g(e.stack,(function(t,i){var a=n._normalizeFrame(i,e.url);a&&r.push(a)})),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e,t){var n={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return e.url||(n.filename=t),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(e,t,n,r,i,a){var o,s=(e?e+": ":"")+(t||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)&&!this._globalOptions.ignoreErrors.test(s))&&(i&&i.length?(n=i[0].filename||n,i.reverse(),o={frames:i}):n&&(o={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var u=m({exception:{values:[{type:e,value:t,stacktrace:o}]},culprit:n},a);this._send(u)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=v(e.message,t)),e.exception){var n=e.exception.values[0];n.value=v(n.value,t)}var r=e.request;return r&&(r.url&&(r.url=v(r.url,this._globalOptions.maxUrlLength)),r.Referer&&(r.Referer=v(r.Referer,this._globalOptions.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values&&this._trimBreadcrumbs(e.breadcrumbs),e},_trimBreadcrumbs:function(e){for(var t,n,r,i=["to","from","url"],a=0;a<e.values.length;++a)if((n=e.values[a]).hasOwnProperty("data")&&u(n.data)&&!y(n.data)){r=m({},n.data);for(var o=0;o<i.length;++o)t=i[o],r.hasOwnProperty(t)&&r[t]&&(r[t]=v(r[t],this._globalOptions.maxUrlLength));e.values[a].data=r}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return this._hasNavigator&&O.userAgent&&(e.headers={"User-Agent":navigator.userAgent}),this._hasDocument&&(N.location&&N.location.href&&(e.url=N.location.href),N.referrer&&(e.headers||(e.headers={}),e.headers.Referer=N.referrer)),e}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&P()-this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var t=this._lastData;return!(!t||e.message!==t.message||e.culprit!==t.culprit)&&(e.stacktrace||t.stacktrace?k(e.stacktrace,t.stacktrace):!e.exception&&!t.exception||S(e.exception,t.exception))},_setBackoffState:function(e){if(!this._shouldBackoff()){var t=e.status;if(400===t||401===t||429===t){var n;try{n=I()?e.headers.get("Retry-After"):e.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(e){}this._backoffDuration=n||(2*this._backoffDuration||1e3),this._backoffStart=P()}}},_send:function(e){var t=this._globalOptions,n={project:this._globalProject,logger:t.logger,platform:"javascript"},r=this._getHttpData();r&&(n.request=r),e.trimHeadFrames&&delete e.trimHeadFrames,(e=m(n,e)).tags=m(m({},this._globalContext.tags),e.tags),e.extra=m(m({},this._globalContext.extra),e.extra),e.extra["session:duration"]=P()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),p(e.tags)&&delete e.tags,this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),d(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!p(e)&&(d(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"===typeof t.sampleRate?Math.random()<t.sampleRate&&this._sendProcessedPayload(e):this._sendProcessedPayload(e)))},_getUuid:function(){return E()},_sendProcessedPayload:function(e,t){var n=this,r=this._globalOptions;if(this.isSetup())if(e=this._trimPacket(e),this._globalOptions.allowDuplicates||!this._isRepeatData(e)){this._lastEventId=e.event_id||(e.event_id=this._getUuid()),this._lastData=e,this._logDebug("debug","Raven about to send:",e);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var a=e.exception&&e.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:a?(a.type?a.type+": ":"")+a.value:e.message,event_id:e.event_id,level:e.level||"error"});var o=this._globalEndpoint;(r.transport||this._makeRequest).call(this,{url:o,auth:i,data:e,options:r,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:e,src:o}),t&&t()},onError:function(r){n._logDebug("error","Raven transport failed to send: ",r),r.request&&n._setBackoffState(r.request),n._triggerEvent("failure",{data:e,src:o}),r=r||new Error("Raven send failed (no additional details provided)"),t&&t(r)}})}else this._logDebug("warn","Raven dropped repeat event: ",e)},_makeRequest:function(e){var t=e.url+"?"+x(e.auth),n=null;if(e.options.headers&&(n=this._evaluateHeaders(e.options.headers)),I()){var r={method:"POST",body:i(e.data)};return n&&(r.headers=n),D.fetch(t,r).then((function(t){if(t.ok)e.onSuccess&&e.onSuccess();else{var n=new Error("Sentry error code: "+t.status);n.request=t,e.onError&&e.onError(n)}})).catch((function(){e.onError&&e.onError(new Error("Sentry error code: network unavailable"))}))}var a=D.XMLHttpRequest&&new D.XMLHttpRequest;a&&(("withCredentials"in a||"undefined"!==typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)e.onSuccess&&e.onSuccess();else if(e.onError){var t=new Error("Sentry error code: "+a.status);t.request=a,e.onError(t)}}:(a=new XDomainRequest,t=t.replace(/^https?:/,""),e.onSuccess&&(a.onload=e.onSuccess),e.onError&&(a.onerror=function(){var t=new Error("Sentry error code: XDomainRequest");t.request=a,e.onError(t)})),a.open("POST",t),n&&g(n,(function(e,t){a.setRequestHeader(e,t)})),a.send(i(e.data))))},_evaluateHeaders:function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]="function"===typeof r?r():r}return t},_logDebug:function(e){this._originalConsoleMethods[e]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){c(t)?delete this._globalContext[e]:this._globalContext[e]=m(this._globalContext[e]||{},t)}},j.prototype.setUser=j.prototype.setUserContext,j.prototype.setReleaseContext=j.prototype.setRelease,e.exports=j},8851:(e,t,n)=>{var r=n(5005),i="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},a=i.Raven,o=new r;o.noConflict=function(){return i.Raven=a,o},o.afterLoad(),e.exports=o},9463:(e,t,n)=>{var r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function i(e){return void 0===e}function a(e){return"[object String]"===Object.prototype.toString.call(e)}function o(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function s(e,t){var n,r;if(i(e.length))for(n in e)u(e,n)&&t.call(null,n,e[n]);else if(r=e.length)for(n=0;n<r;n++)t.call(null,n,e[n])}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){var t,n,r,i,o,s=[];if(!e||!e.tagName)return"";if(s.push(e.tagName.toLowerCase()),e.id&&s.push("#"+e.id),(t=e.className)&&a(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var u=["type","name","title","alt"];for(o=0;o<u.length;o++)r=u[o],(i=e.getAttribute(r))&&s.push("["+r+'="'+i+'"]');return s.join("")}function c(e,t){return!!(!!e^!!t)}function d(e,t){if(c(e,t))return!1;var n,r,i=e.frames,a=t.frames;if(i.length!==a.length)return!1;for(var o=0;o<i.length;o++)if(n=i[o],r=a[o],n.filename!==r.filename||n.lineno!==r.lineno||n.colno!==r.colno||n.function!==r.function)return!1;return!0}e.exports={isObject:function(e){return"object"===typeof e&&null!==e},isError:function(e){switch({}.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},isErrorEvent:function(e){return o()&&"[object ErrorEvent]"==={}.toString.call(e)},isUndefined:i,isFunction:function(e){return"function"===typeof e},isString:a,isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},supportsErrorEvent:o,supportsFetch:function(){if(!("fetch"in r))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}},wrappedCallback:function(e){return function(t,n){var r=e(t)||t;return n&&n(r)||r}},each:s,objectMerge:function(e,t){return t?(s(t,(function(t,n){e[t]=n})),e):e},truncate:function(e,t){return!t||e.length<=t?e:e.substr(0,t)+"…"},objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:u,joinRegExp:function(e){for(var t,n=[],r=0,i=e.length;r<i;r++)a(t=e[r])?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")},urlencode:function(e){var t=[];return s(e,(function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})),t.join("&")},uuid4:function(){var e=r.crypto||r.msCrypto;if(!i(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},htmlTreeAsString:function(e){for(var t,n=[],r=0,i=0,a=" > ".length;e&&r++<5&&!("html"===(t=l(e))||r>1&&i+n.length*a+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:l,isSameException:function(e,t){return!c(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(n=e.stacktrace,r=t.stacktrace,(!i(n)||!i(r))&&d(e.stacktrace,t.stacktrace)));var n,r},isSameStacktrace:d,parseUrl:function(e){var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){var i=e[t];e[t]=n(i),e[t].__raven__=!0,e[t].__orig__=i,r&&r.push([e,t,i])}}},5994:(e,t,n)=>{var r=n(9463),i={collectWindowErrors:!0,debug:!1},a="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},o=[].slice,s="?",u=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function l(){return"undefined"===typeof document||null==document.location?"":document.location.href}i.report=function(){var e,t,n=[],c=null,d=null,f=null;function h(e,t){var r=null;if(!t||i.collectWindowErrors){for(var a in n)if(n.hasOwnProperty(a))try{n[a].apply(null,[e].concat(o.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function p(t,n,a,o,c){var d=r.isErrorEvent(c)?c.error:c,p=r.isErrorEvent(t)?t.message:t;if(f)i.computeStackTrace.augmentStackTraceWithInitialElement(f,n,a,p),g();else if(d&&r.isError(d))h(i.computeStackTrace(d),!0);else{var m,v={url:n,line:a,column:o},y=void 0;if("[object String]"==={}.toString.call(p))(m=p.match(u))&&(y=m[1],p=m[2]);v.func=s,h({name:y,message:p,url:l(),stack:[v]},!0)}return!!e&&e.apply(this,arguments)}function g(){var e=f,t=c;c=null,f=null,d=null,h.apply(null,[e,!1].concat(t))}function m(e,t){var n=o.call(arguments,1);if(f){if(d===e)return;g()}var r=i.computeStackTrace(e);if(f=r,d=e,c=n,setTimeout((function(){d===e&&g()}),r.incomplete?2e3:0),!1!==t)throw e}return m.subscribe=function(r){!function(){if(t)return;e=a.onerror,a.onerror=p,t=!0}(),n.push(r)},m.unsubscribe=function(e){for(var t=n.length-1;t>=0;--t)n[t]===e&&n.splice(t,1)},m.uninstall=function(){!function(){if(!t)return;a.onerror=e,t=!1,e=void 0}(),n=[]},m}(),i.computeStackTrace=function(){function e(e){if("undefined"!==typeof e.stack&&e.stack){for(var t,n,r,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,d=e.stack.split("\n"),f=[],h=(/^(.*) is undefined$/.exec(e.message),0),p=d.length;h<p;++h){if(n=i.exec(d[h])){var g=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=c.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:g?null:n[2],func:n[1]||s,args:g?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=o.exec(d[h]))r={url:n[2],func:n[1]||s,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(d[h])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=u.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==h||n[5]||"undefined"===typeof e.columnNumber||(f[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||s,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=s),f.push(r)}return f.length?{name:e.name,message:e.message,url:l(),stack:f}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=s),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,a){for(var o,u,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,d=[],f={},h=!1,p=n.caller;p&&!h;p=p.caller)if(p!==r&&p!==i.report){if(u={url:null,func:s,line:null,column:null},p.name?u.func=p.name:(o=c.exec(p.toString()))&&(u.func=o[1]),"undefined"===typeof u.func)try{u.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}f[""+p]?h=!0:f[""+p]=!0,d.push(u)}a&&d.splice(0,a);var g={name:e.name,message:e.message,url:l(),stack:d};return t(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),g}function r(t,r){var a=null;r=null==r?0:+r;try{if(a=e(t))return a}catch(e){if(i.debug)throw e}try{if(a=n(t,r+1))return a}catch(e){if(i.debug)throw e}return{name:t.name,message:t.message,url:l()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}(),e.exports=i},4575:(e,t)=>{function n(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}function r(e,t){var r=[],i=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n(r,t)).join(".")+"]"}),function(a,o){if(r.length>0){var s=n(r,this);~s?r.splice(s+1):r.push(this),~s?i.splice(s,1/0,a):i.push(a),~n(r,o)&&(o=t.call(this,a,o))}else r.push(o);return null==e?o instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(o):o:e.call(this,a,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r},4761:(e,t,n)=>{"use strict";n(8206),n(72),n(9137),n(1957),n(6306),n(103),n(4592),n(8276),n(5082),n(2813),n(8222),n(8563),n(336),n(7512),n(3561),n(2049),n(8921),n(6248),n(3599),n(1477),n(4362),n(5389),n(401),n(5164),n(1238),n(4837),n(7485),n(465),n(6651),n(1437),n(5285),n(9865);var r=n(5152),i=n(6319),a=n(9176);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));function s(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var u=!1,l=null,c=!1,d=null,f={onError:function(e){u=!0,l=e}};function h(e,t,n,r,i,a,o,c,d){u=!1,l=null,s.apply(f,arguments)}var p=null,g=null,m=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,a,s,f,p){if(h.apply(this,arguments),u){if(!u)throw Error(o(198));var g=l;u=!1,l=null,c||(c=!0,d=g)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(o(96,e));if(!E[n]){if(!t.extractEvents)throw Error(o(97,e));for(var r in E[n]=t,n=t.eventTypes){var i=void 0,a=n[r],s=t,u=r;if(T.hasOwnProperty(u))throw Error(o(99,u));T[u]=a;var l=a.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&x(l[i],s,u);i=!0}else a.registrationName?(x(a.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(o(98,r,e))}}}}function x(e,t,n){if(S[e])throw Error(o(100,e));S[e]=t,k[e]=t.eventTypes[n].dependencies}var E=[],T={},S={},k={};function A(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(o(102,t));b[t]=r,n=!0}}n&&w()}var C=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),I=null,_=null,M=null;function R(e){if(e=g(e)){if("function"!==typeof I)throw Error(o(280));var t=e.stateNode;t&&(t=p(t),I(e.stateNode,e.type,t))}}function P(e){_?M?M.push(e):M=[e]:_=e}function D(){if(_){var e=_,t=M;if(M=_=null,R(e),t)for(e=0;e<t.length;e++)R(t[e])}}function N(e,t){return e(t)}function O(e,t,n,r,i){return e(t,n,r,i)}function L(){}var j=N,U=!1,F=!1;function B(){null===_&&null===M||(L(),D())}function z(e,t,n){if(F)return e(t,n);F=!0;try{return j(e,t,n)}finally{F=!1,B()}}var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,q={},K={};function W(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new W(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new W(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new W(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new W(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new W(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new W(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new W(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new W(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new W(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,X);G[t]=new W(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,X);G[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,X);G[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new W(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new W(e,1,!1,e.toLowerCase(),null,!0)}));var Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,n,r){var i=G.hasOwnProperty(t)?G[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!H.call(K,e)||!H.call(q,e)&&(V.test(e)?K[e]=!0:(q[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ie=Z?Symbol.for("react.profiler"):60114,ae=Z?Symbol.for("react.provider"):60109,oe=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,ue=Z?Symbol.for("react.forward_ref"):60112,le=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,de=Z?Symbol.for("react.memo"):60115,fe=Z?Symbol.for("react.lazy"):60116,he=Z?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ae:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return me(e.type);case he:return me(e.render);case fe:if(e=1===e._status?e._result:null)return me(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,a=me(e.type);n=null,r&&(n=me(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Q(e,"checked",t,!1)}function ke(e,t){Se(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ae(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function _e(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Me(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Pe(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ne="http://www.w3.org/1999/xhtml",Oe="http://www.w3.org/2000/svg";function Le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ue,Fe,Be=(Fe=function(e,t){if(e.namespaceURI!==Oe||"innerHTML"in e)e.innerHTML=t;else{for((Ue=Ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Fe(e,t)}))}:Fe);function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},qe={},Ke={};function We(e){if(qe[e])return qe[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ke)return qe[e]=n[t];return e}C&&(Ke=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ge=We("animationend"),$e=We("animationiteration"),Xe=We("animationstart"),Ye=We("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"===typeof WeakMap?WeakMap:Map);function Ze(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(o(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return nt(i),e;if(a===r)return nt(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function at(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(ot=it(ot,e)),e=ot,ot=null,e){if(at(e,st),ot)throw Error(o(95));if(c)throw e=d,c=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var dt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>dt.length&&dt.push(e)}function ht(e,t,n,r){if(dt.length){var i=dt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Rn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,o=e.eventSystemFlags;0===n&&(o|=64);for(var s=null,u=0;u<E.length;u++){var l=E[u];l&&(l=l.extractEvents(r,t,a,i,o))&&(s=it(s,l))}ut(s)}}function gt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Xt(t,"scroll",!0);break;case"focus":case"blur":Xt(t,"focus",!0),Xt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Xt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&$t(e,t)}n.set(e,null)}}var mt,vt,yt,bt=!1,wt=[],xt=null,Et=null,Tt=null,St=new Map,kt=new Map,At=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),It="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function _t(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Mt(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Rt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=_t(t,n,r,i,a),null!==t&&(null!==(t=Pn(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Rn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){Dt(e)&&n.delete(t)}function Ot(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==xt&&Dt(xt)&&(xt=null),null!==Et&&Dt(Et)&&(Et=null),null!==Tt&&Dt(Tt)&&(Tt=null),St.forEach(Nt),kt.forEach(Nt)}function Lt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ot)))}function jt(e){function t(t){return Lt(t,e)}if(0<wt.length){Lt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&Lt(xt,e),null!==Et&&Lt(Et,e),null!==Tt&&Lt(Tt,e),St.forEach(t),kt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Pt(n),null===n.blockedOn&&At.shift()}var Ut={},Ft=new Map,Bt=new Map,zt=["abort","abort",Ge,"animationEnd",$e,"animationIteration",Xe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],a="on"+(i[0].toUpperCase()+i.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Ft.set(r,a),Ut[i]=a}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(zt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qt=0;qt<Ht.length;qt++)Bt.set(Ht[qt],0);var Kt=a.unstable_UserBlockingPriority,Wt=a.unstable_runWithPriority,Gt=!0;function $t(e,t){Xt(t,e,!1)}function Xt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){U||L();var i=Jt,a=U;U=!0;try{O(i,e,t,n,r)}finally{(U=a)||B()}}function Qt(e,t,n,r){Wt(Kt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if(Gt)if(0<wt.length&&-1<Ct.indexOf(e))e=_t(null,e,t,n,r),wt.push(e);else{var i=Zt(e,t,n,r);if(null===i)Mt(e,r);else if(-1<Ct.indexOf(e))e=_t(i,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return xt=Rt(xt,e,t,n,r,i),!0;case"dragenter":return Et=Rt(Et,e,t,n,r,i),!0;case"mouseover":return Tt=Rt(Tt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return St.set(a,Rt(St.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,kt.set(a,Rt(kt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Mt(e,r),e=ht(e,r,null,t);try{z(pt,e)}finally{ft(e)}}}}function Zt(e,t,n,r){if(null!==(n=Rn(n=lt(r)))){var i=et(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=tt(i)))return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ht(e,r,n,t);try{z(pt,e)}finally{ft(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var an=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(an[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Ne;function ln(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++)gt(t[r],e,n)}function cn(){}function dn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gn(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn="$?",yn="$!",bn=null,wn=null;function xn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function En(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Tn="function"===typeof setTimeout?setTimeout:void 0,Sn="function"===typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function An(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===yn||n===vn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),In="__reactInternalInstance$"+Cn,_n="__reactEventHandlers$"+Cn,Mn="__reactContainere$"+Cn;function Rn(e){var t=e[In];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mn]||n[In]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=An(e);null!==e;){if(n=e[In])return n;e=An(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[In]||e[Mn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Dn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Nn(e){return e[_n]||null}function On(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ln(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}function jn(e,t,n){(t=Ln(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Un(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=On(t);for(t=n.length;0<t--;)jn(n[t],"captured",e);for(t=0;t<n.length;t++)jn(n[t],"bubbled",e)}}function Fn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ln(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&Fn(e._targetInst,null,e)}function zn(e){at(e,Un)}var Vn=null,Hn=null,qn=null;function Kn(){if(qn)return qn;var e,t,n=Hn,r=n.length,i="value"in Vn?Vn.value:Vn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return qn=i.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function Gn(){return!1}function $n(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:Gn,this.isPropagationStopped=Gn,this}function Xn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Yn(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Qn(e){e.eventPool=[],e.getPooled=Xn,e.release=Yn}i($n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:Gn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Gn,this._dispatchInstances=this._dispatchListeners=null}}),$n.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},$n.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Qn(n),n},Qn($n);var Jn=$n.extend({data:null}),Zn=$n.extend({data:null}),er=[9,13,27,32],tr=C&&"CompositionEvent"in window,nr=null;C&&"documentMode"in document&&(nr=document.documentMode);var rr=C&&"TextEvent"in window&&!nr,ir=C&&(!tr||nr&&8<nr&&11>=nr),ar=String.fromCharCode(32),or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sr=!1;function ur(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function lr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1;var dr={eventTypes:or,extractEvents:function(e,t,n,r){var i;if(tr)e:{switch(e){case"compositionstart":var a=or.compositionStart;break e;case"compositionend":a=or.compositionEnd;break e;case"compositionupdate":a=or.compositionUpdate;break e}a=void 0}else cr?ur(e,n)&&(a=or.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=or.compositionStart);return a?(ir&&"ko"!==n.locale&&(cr||a!==or.compositionStart?a===or.compositionEnd&&cr&&(i=Kn()):(Hn="value"in(Vn=r)?Vn.value:Vn.textContent,cr=!0)),a=Jn.getPooled(a,t,n,r),i?a.data=i:null!==(i=lr(n))&&(a.data=i),zn(a),i=a):i=null,(e=rr?function(e,t){switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(sr=!0,ar);case"textInput":return(e=t.data)===ar&&sr?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!tr&&ur(e,t)?(e=Kn(),qn=Hn=Vn=null,cr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ir&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Zn.getPooled(or.beforeInput,t,n,r)).data=e,zn(t)):t=null,null===i?t:null===t?i:[i,t]}},fr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!fr[e.type]:"textarea"===t}var pr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function gr(e,t,n){return(e=$n.getPooled(pr.change,e,t,n)).type="change",P(n),zn(e),e}var mr=null,vr=null;function yr(e){ut(e)}function br(e){if(xe(Dn(e)))return e}function wr(e,t){if("change"===e)return t}var xr=!1;function Er(){mr&&(mr.detachEvent("onpropertychange",Tr),vr=mr=null)}function Tr(e){if("value"===e.propertyName&&br(vr))if(e=gr(vr,e,lt(e)),U)ut(e);else{U=!0;try{N(yr,e)}finally{U=!1,B()}}}function Sr(e,t,n){"focus"===e?(Er(),vr=n,(mr=t).attachEvent("onpropertychange",Tr)):"blur"===e&&Er()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return br(vr)}function Ar(e,t){if("click"===e)return br(t)}function Cr(e,t){if("input"===e||"change"===e)return br(t)}C&&(xr=ct("input")&&(!document.documentMode||9<document.documentMode));var Ir={eventTypes:pr,_isInputEventSupported:xr,extractEvents:function(e,t,n,r){var i=t?Dn(t):window,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type)var o=wr;else if(hr(i))if(xr)o=Cr;else{o=kr;var s=Sr}else(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Ar);if(o&&(o=o(e,t)))return gr(o,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ce(i,"number",i.value)}},_r=$n.extend({view:null,detail:null}),Mr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mr[e])&&!!t[e]}function Pr(){return Rr}var Dr=0,Nr=0,Or=!1,Lr=!1,jr=_r.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Dr;return Dr=e.screenX,Or?"mousemove"===e.type?e.screenX-t:0:(Or=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nr;return Nr=e.screenY,Lr?"mousemove"===e.type?e.screenY-t:0:(Lr=!0,0)}}),Ur=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Fr,extractEvents:function(e,t,n,r,i){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o)?(o=t,null!==(t=(t=n.relatedTarget||n.toElement)?Rn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null;if(o===t)return null;if("mouseout"===e||"mouseover"===e)var s=jr,u=Fr.mouseLeave,l=Fr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Ur,u=Fr.pointerLeave,l=Fr.pointerEnter,c="pointer");if(e=null==o?a:Dn(o),a=null==t?a:Dn(t),(u=s.getPooled(u,o,n,r)).type=c+"leave",u.target=e,u.relatedTarget=a,(n=s.getPooled(l,t,n,r)).type=c+"enter",n.target=a,n.relatedTarget=e,c=t,(r=o)&&c)e:{for(l=c,o=0,e=s=r;e;e=On(e))o++;for(e=0,t=l;t;t=On(t))e++;for(;0<o-e;)s=On(s),o--;for(;0<e-o;)l=On(l),e--;for(;o--;){if(s===l||s===l.alternate)break e;s=On(s),l=On(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(o=r.alternate)||o!==l);)s.push(r),r=On(r);for(r=[];c&&c!==l&&(null===(o=c.alternate)||o!==l);)r.push(c),c=On(c);for(c=0;c<s.length;c++)Fn(s[c],"bubbled",u);for(c=r.length;0<c--;)Fn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var zr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Vr=Object.prototype.hasOwnProperty;function Hr(e,t){if(zr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Vr.call(t,n[r])||!zr(e[n[r]],t[n[r]]))return!1;return!0}var qr=C&&"documentMode"in document&&11>=document.documentMode,Kr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,Gr=null,$r=null,Xr=!1;function Yr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==Wr||Wr!==dn(n)?null:("selectionStart"in(n=Wr)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},$r&&Hr($r,n)?null:($r=n,(e=$n.getPooled(Kr.select,Gr,e,t)).type="select",e.target=Wr,zn(e),e))}var Qr={eventTypes:Kr,extractEvents:function(e,t,n,r,i,a){if(!(a=!(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),a=k.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break e}i=!0}a=!i}if(a)return null;switch(i=t?Dn(t):window,e){case"focus":(hr(i)||"true"===i.contentEditable)&&(Wr=i,Gr=t,$r=null);break;case"blur":$r=Gr=Wr=null;break;case"mousedown":Xr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xr=!1,Yr(n,r);case"selectionchange":if(qr)break;case"keydown":case"keyup":return Yr(n,r)}return null}},Jr=$n.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zr=$n.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ei=_r.extend({relatedTarget:null});function ti(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ri={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ii=_r.extend({key:function(e){if(e.key){var t=ni[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ti(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ri[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pr,charCode:function(e){return"keypress"===e.type?ti(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ti(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ai=jr.extend({dataTransfer:null}),oi=_r.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pr}),si=$n.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=jr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),li={eventTypes:Ut,extractEvents:function(e,t,n,r){var i=Ft.get(e);if(!i)return null;switch(e){case"keypress":if(0===ti(n))return null;case"keydown":case"keyup":e=ii;break;case"blur":case"focus":e=ei;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ai;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oi;break;case Ge:case $e:case Xe:e=Jr;break;case Ye:e=si;break;case"scroll":e=_r;break;case"wheel":e=ui;break;case"copy":case"cut":case"paste":e=Zr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ur;break;default:e=$n}return zn(t=e.getPooled(i,t,n,r)),t}};if(y)throw Error(o(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=Nn,g=Pn,m=Dn,A({SimpleEventPlugin:li,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Ir,SelectEventPlugin:Qr,BeforeInputEventPlugin:dr});var ci=[],di=-1;function fi(e){0>di||(e.current=ci[di],ci[di]=null,di--)}function hi(e,t){di++,ci[di]=e.current,e.current=t}var pi={},gi={current:pi},mi={current:!1},vi=pi;function yi(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function bi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function wi(){fi(mi),fi(gi)}function xi(e,t,n){if(gi.current!==pi)throw Error(o(168));hi(gi,t),hi(mi,n)}function Ei(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,me(t)||"Unknown",a));return i({},n,{},r)}function Ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,vi=gi.current,hi(gi,e),hi(mi,mi.current),!0}function Si(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ei(e,t,vi),r.__reactInternalMemoizedMergedChildContext=e,fi(mi),fi(gi),hi(gi,e)):fi(mi),hi(mi,n)}var ki=a.unstable_runWithPriority,Ai=a.unstable_scheduleCallback,Ci=a.unstable_cancelCallback,Ii=a.unstable_requestPaint,_i=a.unstable_now,Mi=a.unstable_getCurrentPriorityLevel,Ri=a.unstable_ImmediatePriority,Pi=a.unstable_UserBlockingPriority,Di=a.unstable_NormalPriority,Ni=a.unstable_LowPriority,Oi=a.unstable_IdlePriority,Li={},ji=a.unstable_shouldYield,Ui=void 0!==Ii?Ii:function(){},Fi=null,Bi=null,zi=!1,Vi=_i(),Hi=1e4>Vi?_i:function(){return _i()-Vi};function qi(){switch(Mi()){case Ri:return 99;case Pi:return 98;case Di:return 97;case Ni:return 96;case Oi:return 95;default:throw Error(o(332))}}function Ki(e){switch(e){case 99:return Ri;case 98:return Pi;case 97:return Di;case 96:return Ni;case 95:return Oi;default:throw Error(o(332))}}function Wi(e,t){return e=Ki(e),ki(e,t)}function Gi(e,t,n){return e=Ki(e),Ai(e,t,n)}function $i(e){return null===Fi?(Fi=[e],Bi=Ai(Ri,Yi)):Fi.push(e),Li}function Xi(){if(null!==Bi){var e=Bi;Bi=null,Ci(e)}Yi()}function Yi(){if(!zi&&null!==Fi){zi=!0;var e=0;try{var t=Fi;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fi=null}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ai(Ri,Xi),t}finally{zi=!1}}}function Qi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ji(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zi={current:null},ea=null,ta=null,na=null;function ra(){na=ta=ea=null}function ia(e){var t=Zi.current;fi(Zi),e.type._context._currentValue=t}function aa(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oa(e,t){ea=e,na=ta=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(No=!0),e.firstContext=null)}function sa(e,t){if(na!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(na=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ta){if(null===ea)throw Error(o(308));ta=t,ea.dependencies={expirationTime:0,firstContext:t,responders:null}}else ta=ta.next=t;return e._currentValue}var ua=!1;function la(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ca(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function da(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function fa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ha(e,t){var n=e.alternate;null!==n&&ca(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pa(e,t,n,r){var a=e.updateQueue;ua=!1;var o=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==o){var u=o.next;o.next=s.next,s.next=u}o=s,a.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==o){u=o.next;var l=a.baseState,c=0,d=null,f=null,h=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var g={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===h?(f=h=g,d=l):h=h.next=g,s>c&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),hu(s,p.suspenseConfig);e:{var m=e,v=p;switch(s=t,g=n,v.tag){case 1:if("function"===typeof(m=v.payload)){l=m.call(g,l,s);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null===(s="function"===typeof(m=v.payload)?m.call(g,l,s):m)||void 0===s)break e;l=i({},l,s);break e;case 2:ua=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=a.effects)?a.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=a.shared.pending))break;p=o.next=s.next,s.next=u,a.baseQueue=o=s,a.shared.pending=null}}null===h?d=l:h.next=f,a.baseState=d,a.baseQueue=h,pu(c),e.expirationTime=c,e.memoizedState=l}}function ga(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(o(191,r));r.call(i)}}}var ma=Y.ReactCurrentBatchConfig,va=(new r.Component).refs;function ya(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var ba={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),i=ma.suspense;(i=da(r=tu(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),fa(e,i),nu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),i=ma.suspense;(i=da(r=tu(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fa(e,i),nu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=eu(),r=ma.suspense;(r=da(n=tu(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),fa(e,r),nu(e,n)}};function wa(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Hr(n,r)||!Hr(i,a))}function xa(e,t,n){var r=!1,i=pi,a=t.contextType;return"object"===typeof a&&null!==a?a=sa(a):(i=bi(t)?vi:gi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?yi(e,i):pi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ba,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ea(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ba.enqueueReplaceState(t,t.state,null)}function Ta(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=va,la(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=sa(a):(a=bi(t)?vi:gi.current,i.context=yi(e,a)),pa(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ya(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ba.enqueueReplaceState(i,i.state,null),pa(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var Sa=Array.isArray;function ka(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===va&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Aa(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ca(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ka(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=ka(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Uu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=ka(e,null,t),n.return=e,n;case te:return(t=Uu(t,e.mode,n)).return=e,t}if(Sa(t)||ge(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Aa(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(Sa(n)||ge(n))return null!==i?null:d(e,t,n,r,null);Aa(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Sa(r)||ge(r))return d(t,e=e.get(n)||null,r,i,null);Aa(t,r)}return null}function g(i,o,s,u){for(var l=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(i,d,s[g],u);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,g),null===c?l=v:c.sibling=v,c=v,d=m}if(g===s.length)return n(i,d),l;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],u))&&(o=a(d,o,g),null===c?l=d:c.sibling=d,c=d);return l}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],u))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?l=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),l}function m(i,s,u,l){var c=ge(u);if("function"!==typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var d=c=null,g=s,m=s=0,v=null,y=u.next();null!==g&&!y.done;m++,y=u.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(i,g,y.value,l);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(i,g),c;if(null===g){for(;!y.done;m++,y=u.next())null!==(y=f(i,y.value,l))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(i,g);!y.done;m++,y=u.next())null!==(y=p(g,i,m,y.value,l))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"===typeof a&&null!==a&&a.type===ne&&null===a.key;l&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case ee:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===ne){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=ka(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===ne?((r=Lu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ou(a.type,a.key,a.props,null,e.mode,u)).ref=ka(e,r,a),u.return=e,e=u)}return s(e);case te:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Uu(a,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=ju(a,e.mode,u)).return=e,e=r),s(e);if(Sa(a))return g(e,r,a,u);if(ge(a))return m(e,r,a,u);if(c&&Aa(e,a),"undefined"===typeof a&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ia=Ca(!0),_a=Ca(!1),Ma={},Ra={current:Ma},Pa={current:Ma},Da={current:Ma};function Na(e){if(e===Ma)throw Error(o(174));return e}function Oa(e,t){switch(hi(Da,t),hi(Pa,e),hi(Ra,Ma),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}fi(Ra),hi(Ra,t)}function La(){fi(Ra),fi(Pa),fi(Da)}function ja(e){Na(Da.current);var t=Na(Ra.current),n=je(t,e.type);t!==n&&(hi(Pa,e),hi(Ra,n))}function Ua(e){Pa.current===e&&(fi(Ra),fi(Pa))}var Fa={current:0};function Ba(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===vn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function za(e,t){return{responder:e,props:t}}var Va=Y.ReactCurrentDispatcher,Ha=Y.ReactCurrentBatchConfig,qa=0,Ka=null,Wa=null,Ga=null,$a=!1;function Xa(){throw Error(o(321))}function Ya(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Qa(e,t,n,r,i,a){if(qa=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Va.current=null===e||null===e.memoizedState?xo:Eo,e=n(r,i),t.expirationTime===qa){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(o(301));a+=1,Ga=Wa=null,t.updateQueue=null,Va.current=To,e=n(r,i)}while(t.expirationTime===qa)}if(Va.current=wo,t=null!==Wa&&null!==Wa.next,qa=0,Ga=Wa=Ka=null,$a=!1,t)throw Error(o(300));return e}function Ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ga?Ka.memoizedState=Ga=e:Ga=Ga.next=e,Ga}function Za(){if(null===Wa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Wa.next;var t=null===Ga?Ka.memoizedState:Ga.next;if(null!==t)Ga=t,Wa=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Wa=e).memoizedState,baseState:Wa.baseState,baseQueue:Wa.baseQueue,queue:Wa.queue,next:null},null===Ga?Ka.memoizedState=Ga=e:Ga=Ga.next=e}return Ga}function eo(e,t){return"function"===typeof t?t(e):t}function to(e){var t=Za(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Wa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,l=i;do{var c=l.expirationTime;if(c<qa){var d={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=d,a=r):u=u.next=d,c>Ka.expirationTime&&(Ka.expirationTime=c,pu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),hu(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=s,zr(r,t.memoizedState)||(No=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function no(e){var t=Za(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);zr(a,t.memoizedState)||(No=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ro(e){var t=Ja();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=bo.bind(null,Ka,e),[t.memoizedState,e]}function io(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ao(){return Za().memoizedState}function oo(e,t,n,r){var i=Ja();Ka.effectTag|=e,i.memoizedState=io(1|t,n,void 0,void 0===r?null:r)}function so(e,t,n,r){var i=Za();r=void 0===r?null:r;var a=void 0;if(null!==Wa){var o=Wa.memoizedState;if(a=o.destroy,null!==r&&Ya(r,o.deps))return void io(t,n,a,r)}Ka.effectTag|=e,i.memoizedState=io(1|t,n,a,r)}function uo(e,t){return oo(516,4,e,t)}function lo(e,t){return so(516,4,e,t)}function co(e,t){return so(4,2,e,t)}function fo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ho(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,so(4,2,fo.bind(null,t,e),n)}function po(){}function go(e,t){return Ja().memoizedState=[e,void 0===t?null:t],e}function mo(e,t){var n=Za();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vo(e,t){var n=Za();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ya(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yo(e,t,n){var r=qi();Wi(98>r?98:r,(function(){e(!0)})),Wi(97<r?97:r,(function(){var r=Ha.suspense;Ha.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ha.suspense=r}}))}function bo(e,t,n){var r=eu(),i=ma.suspense;i={expirationTime:r=tu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Ka||null!==a&&a===Ka)$a=!0,i.expirationTime=qa,Ka.expirationTime=qa;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.eagerReducer=a,i.eagerState=s,zr(s,o))return}catch(e){}nu(e,r)}}var wo={readContext:sa,useCallback:Xa,useContext:Xa,useEffect:Xa,useImperativeHandle:Xa,useLayoutEffect:Xa,useMemo:Xa,useReducer:Xa,useRef:Xa,useState:Xa,useDebugValue:Xa,useResponder:Xa,useDeferredValue:Xa,useTransition:Xa},xo={readContext:sa,useCallback:go,useContext:sa,useEffect:uo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,oo(4,2,fo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=Ja();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ja();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=bo.bind(null,Ka,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ja().memoizedState=e},useState:ro,useDebugValue:po,useResponder:za,useDeferredValue:function(e,t){var n=ro(e),r=n[0],i=n[1];return uo((function(){var n=Ha.suspense;Ha.suspense=void 0===t?null:t;try{i(e)}finally{Ha.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ro(!1),n=t[0];return t=t[1],[go(yo.bind(null,t,e),[t,e]),n]}},Eo={readContext:sa,useCallback:mo,useContext:sa,useEffect:lo,useImperativeHandle:ho,useLayoutEffect:co,useMemo:vo,useReducer:to,useRef:ao,useState:function(){return to(eo)},useDebugValue:po,useResponder:za,useDeferredValue:function(e,t){var n=to(eo),r=n[0],i=n[1];return lo((function(){var n=Ha.suspense;Ha.suspense=void 0===t?null:t;try{i(e)}finally{Ha.suspense=n}}),[e,t]),r},useTransition:function(e){var t=to(eo),n=t[0];return t=t[1],[mo(yo.bind(null,t,e),[t,e]),n]}},To={readContext:sa,useCallback:mo,useContext:sa,useEffect:lo,useImperativeHandle:ho,useLayoutEffect:co,useMemo:vo,useReducer:no,useRef:ao,useState:function(){return no(eo)},useDebugValue:po,useResponder:za,useDeferredValue:function(e,t){var n=no(eo),r=n[0],i=n[1];return lo((function(){var n=Ha.suspense;Ha.suspense=void 0===t?null:t;try{i(e)}finally{Ha.suspense=n}}),[e,t]),r},useTransition:function(e){var t=no(eo),n=t[0];return t=t[1],[mo(yo.bind(null,t,e),[t,e]),n]}},So=null,ko=null,Ao=!1;function Co(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function _o(e){if(Ao){var t=ko;if(t){var n=t;if(!Io(e,t)){if(!(t=kn(n.nextSibling))||!Io(e,t))return e.effectTag=-1025&e.effectTag|2,Ao=!1,void(So=e);Co(So,n)}So=e,ko=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ao=!1,So=e}}function Mo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;So=e}function Ro(e){if(e!==So)return!1;if(!Ao)return Mo(e),Ao=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!En(t,e.memoizedProps))for(t=ko;t;)Co(e,t),t=kn(t.nextSibling);if(Mo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ko=kn(e.nextSibling);break e}t--}else"$"!==n&&n!==yn&&n!==vn||t++}e=e.nextSibling}ko=null}}else ko=So?kn(e.stateNode.nextSibling):null;return!0}function Po(){ko=So=null,Ao=!1}var Do=Y.ReactCurrentOwner,No=!1;function Oo(e,t,n,r){t.child=null===e?_a(t,null,n,r):Ia(t,e.child,n,r)}function Lo(e,t,n,r,i){n=n.render;var a=t.ref;return oa(t,i),r=Qa(e,t,n,r,a,i),null===e||No?(t.effectTag|=1,Oo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Jo(e,t,i))}function jo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Du(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Uo(e,t,o,r,i,a))}return o=e.child,i<a&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:Hr)(i,r)&&e.ref===t.ref)?Jo(e,t,a):(t.effectTag|=1,(e=Nu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Uo(e,t,n,r,i,a){return null!==e&&Hr(e.memoizedProps,r)&&e.ref===t.ref&&(No=!1,i<a)?(t.expirationTime=e.expirationTime,Jo(e,t,a)):Bo(e,t,n,r,a)}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Bo(e,t,n,r,i){var a=bi(n)?vi:gi.current;return a=yi(t,a),oa(t,i),n=Qa(e,t,n,r,a,i),null===e||No?(t.effectTag|=1,Oo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Jo(e,t,i))}function zo(e,t,n,r,i){if(bi(n)){var a=!0;Ti(t)}else a=!1;if(oa(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),xa(t,n,r),Ta(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;"object"===typeof l&&null!==l?l=sa(l):l=yi(t,l=bi(n)?vi:gi.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==l)&&Ea(t,o,r,l),ua=!1;var f=t.memoizedState;o.state=f,pa(t,r,o,i),u=t.memoizedState,s!==r||f!==u||mi.current||ua?("function"===typeof c&&(ya(t,n,c,r),u=t.memoizedState),(s=ua||wa(t,n,s,r,f,u,l))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.effectTag|=4)):("function"===typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"===typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,ca(e,t),s=t.memoizedProps,o.props=t.type===t.elementType?s:Ji(t.type,s),u=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=sa(l):l=yi(t,l=bi(n)?vi:gi.current),(d="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==l)&&Ea(t,o,r,l),ua=!1,u=t.memoizedState,o.state=u,pa(t,r,o,i),f=t.memoizedState,s!==r||u!==f||mi.current||ua?("function"===typeof c&&(ya(t,n,c,r),f=t.memoizedState),(c=ua||wa(t,n,s,r,u,f,l))?(d||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof o.componentDidUpdate&&(t.effectTag|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Vo(e,t,n,r,a,i)}function Vo(e,t,n,r,i,a){Fo(e,t);var o=0!==(64&t.effectTag);if(!r&&!o)return i&&Si(t,n,!1),Jo(e,t,a);r=t.stateNode,Do.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=Ia(t,e.child,null,a),t.child=Ia(t,null,s,a)):Oo(e,t,s,a),t.memoizedState=r.state,i&&Si(t,n,!0),t.child}function Ho(e){var t=e.stateNode;t.pendingContext?xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xi(0,t.context,!1),Oa(e,t.containerInfo)}var qo,Ko,Wo,Go={dehydrated:null,retryTime:0};function $o(e,t,n){var r,i=t.mode,a=t.pendingProps,o=Fa.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&o)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),hi(Fa,1&o),null===e){if(void 0!==a.fallback&&_o(t),s){if(s=a.fallback,(a=Lu(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Lu(s,i,n,null)).return=t,a.sibling=n,t.memoizedState=Go,t.child=a,n}return i=a.children,t.memoizedState=null,t.child=_a(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(a=a.fallback,(n=Nu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Nu(i,a)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Go,t.child=n,i}return n=Ia(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=a.fallback,(a=Lu(null,i,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Lu(s,i,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=Go,t.child=a,n}return t.memoizedState=null,t.child=Ia(t,e,a.children,n)}function Xo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),aa(e.return,t)}function Yo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=a)}function Qo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Oo(e,t,r.children,n),0!==(2&(r=Fa.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,n);else if(19===e.tag)Xo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(hi(Fa,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ba(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Yo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ba(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Yo(t,!0,n,null,a,t.lastEffect);break;case"together":Yo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Jo(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&pu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zo(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function es(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return bi(t.type)&&wi(),null;case 3:return La(),fi(mi),fi(gi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ro(t)||(t.effectTag|=4),null;case 5:Ua(t),n=Na(Da.current);var a=t.type;if(null!==e&&null!=t.stateNode)Ko(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Na(Ra.current),Ro(t)){r=t.stateNode,a=t.type;var s=t.memoizedProps;switch(r[In]=t,r[_n]=s,a){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)$t(Qe[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":Te(r,s),$t("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$t("invalid",r),ln(n,"onChange");break;case"textarea":Re(r,s),$t("invalid",r),ln(n,"onChange")}for(var u in on(a,s),e=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(a){case"input":we(r),Ae(r,s,!0);break;case"textarea":we(r),De(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Le(a)),e===un?"script"===a?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(a,{is:r.is}):(e=u.createElement(a),"select"===a&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,a),e[In]=t,e[_n]=r,qo(e,t),t.stateNode=e,u=sn(a,r),a){case"iframe":case"object":case"embed":$t("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qe.length;l++)$t(Qe[l],e);l=r;break;case"source":$t("error",e),l=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),l=r;break;case"form":$t("reset",e),$t("submit",e),l=r;break;case"details":$t("toggle",e),l=r;break;case"input":Te(e,r),l=Ee(e,r),$t("invalid",e),ln(n,"onChange");break;case"option":l=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),$t("invalid",e),ln(n,"onChange");break;case"textarea":Re(e,r),l=Me(e,r),$t("invalid",e),ln(n,"onChange");break;default:l=r}on(a,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?rn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Be(e,d):"children"===s?"string"===typeof d?("textarea"!==a||""!==d)&&ze(e,d):"number"===typeof d&&ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=d&&ln(n,s):null!=d&&Q(e,s,d,u))}switch(a){case"input":we(e),Ae(e,r,!1);break;case"textarea":we(e),De(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?_e(e,!!r.multiple,n,!1):null!=r.defaultValue&&_e(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=cn)}xn(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Wo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Na(Da.current),Na(Ra.current),Ro(t)?(n=t.stateNode,r=t.memoizedProps,n[In]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[In]=t,t.stateNode=n)}return null;case 13:return fi(Fa),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ro(t):(r=null!==(a=e.memoizedState),n||null===a||null!==(a=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=a,a.nextEffect=s):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Fa.current)?Os===Is&&(Os=_s):(Os!==Is&&Os!==_s||(Os=Ms),0!==Bs&&null!==Ps&&(zu(Ps,Ns),Vu(Ps,Bs)))),(n||r)&&(t.effectTag|=4),null);case 4:return La(),null;case 10:return ia(t),null;case 19:if(fi(Fa),null===(r=t.memoizedState))return null;if(a=0!==(64&t.effectTag),null===(s=r.rendering)){if(a)Zo(r,!1);else if(Os!==Is||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Ba(s))){for(t.effectTag|=64,Zo(r,!1),null!==(a=e.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(e=a.alternate)?(a.childExpirationTime=0,a.expirationTime=s,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,s=e.dependencies,a.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return hi(Fa,1&Fa.current|2),t.child}s=s.sibling}}else{if(!a)if(null!==(e=Ba(s))){if(t.effectTag|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Zo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Hi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Zo(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Hi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Hi(),n.sibling=null,t=Fa.current,hi(Fa,a?1&t|2:1&t),n):null}throw Error(o(156,t.tag))}function ts(e){switch(e.tag){case 1:bi(e.type)&&wi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(La(),fi(mi),fi(gi),0!==(64&(t=e.effectTag)))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return Ua(e),null;case 13:return fi(Fa),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return fi(Fa),null;case 4:return La(),null;case 10:return ia(e),null;default:return null}}function ns(e,t){return{value:e,source:t,stack:ve(t)}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ko=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var s,u,l=t.stateNode;switch(Na(Ra.current),e=null,n){case"input":o=Ee(l,o),r=Ee(l,r),e=[];break;case"option":o=Ie(l,o),r=Ie(l,r),e=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":o=Me(l,o),r=Me(l,r),e=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(l.onclick=cn)}for(s in on(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s)for(u in l=o[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=c&&ln(a,s),e||l===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},Wo=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var rs="function"===typeof WeakSet?WeakSet:Set;function is(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function as(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(t){Au(e,t)}else t.current=null}function os(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ji(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(o(163))}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void us(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ji(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&ga(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ga(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&xn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&jt(n)))))}throw Error(o(163))}function cs(e,t,n){switch("function"===typeof Mu&&Mu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Wi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Au(i,e)}}e=e.next}while(e!==r)}))}break;case 1:as(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Au(e,t)}}(t,n);break;case 5:as(t);break;case 4:ms(e,t,n)}}function ds(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ds(t)}function fs(e){return 5===e.tag||3===e.tag||4===e.tag}function hs(e){e:{for(var t=e.return;null!==t;){if(fs(t)){var n=t;break e}t=t.return}throw Error(o(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||fs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ps(e,n,t):gs(e,n,t)}function ps(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=cn));else if(4!==r&&null!==(e=e.child))for(ps(e,t,n),e=e.sibling;null!==e;)ps(e,t,n),e=e.sibling}function gs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function ms(e,t,n){for(var r,i,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(o(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var u=e,l=a,c=n,d=l;;)if(cs(u,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===l)break e;for(;null===d.sibling;){if(null===d.return||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(u=r,l=a.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(cs(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function vs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ss(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[_n]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),sn(e,i),t=sn(e,r),i=0;i<a.length;i+=2){var s=a[i],u=a[i+1];"style"===s?rn(n,u):"dangerouslySetInnerHTML"===s?Be(n,u):"children"===s?ze(n,u):Q(n,s,u,t)}switch(e){case"input":ke(n,r);break;case"textarea":Pe(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?_e(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?_e(n,!!r.multiple,r.defaultValue,!0):_e(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,jt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Vs=Hi()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"===typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,a.style.display=nn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ys(t);case 19:return void ys(t)}throw Error(o(163))}function ys(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new rs),t.forEach((function(t){var r=Iu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var bs="function"===typeof WeakMap?WeakMap:Map;function ws(e,t,n){(n=da(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Ks=r),is(e,t)},n}function xs(e,t,n){(n=da(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return is(e,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ws?Ws=new Set([this]):Ws.add(this),is(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Es,Ts=Math.ceil,Ss=Y.ReactCurrentDispatcher,ks=Y.ReactCurrentOwner,As=16,Cs=32,Is=0,_s=3,Ms=4,Rs=0,Ps=null,Ds=null,Ns=0,Os=Is,Ls=null,js=1073741823,Us=1073741823,Fs=null,Bs=0,zs=!1,Vs=0,Hs=null,qs=!1,Ks=null,Ws=null,Gs=!1,$s=null,Xs=90,Ys=null,Qs=0,Js=null,Zs=0;function eu(){return 0!==(48&Rs)?1073741821-(Hi()/10|0):0!==Zs?Zs:Zs=1073741821-(Hi()/10|0)}function tu(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=qi();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(Rs&As))return Ns;if(null!==n)e=Qi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qi(e,150,100);break;case 97:case 96:e=Qi(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Ps&&e===Ns&&--e,e}function nu(e,t){if(50<Qs)throw Qs=0,Js=null,Error(o(185));if(null!==(e=ru(e,t))){var n=qi();1073741823===t?0!==(8&Rs)&&0===(48&Rs)?su(e):(au(e),0===Rs&&Xi()):au(e),0===(4&Rs)||98!==n&&99!==n||(null===Ys?Ys=new Map([[e,t]]):(void 0===(n=Ys.get(e))||n>t)&&Ys.set(e,t))}}function ru(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ps===i&&(pu(t),Os===Ms&&zu(i,Ns)),Vu(i,t)),i}function iu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Bu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function au(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$i(su.bind(null,e));else{var t=iu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=eu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Li&&Ci(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?$i(su.bind(null,e)):Gi(r,ou.bind(null,e),{timeout:10*(1073741821-t)-Hi()}),e.callbackNode=t}}}function ou(e,t){if(Zs=0,t)return Hu(e,t=eu()),au(e),null;var n=iu(e);if(0!==n){if(t=e.callbackNode,0!==(48&Rs))throw Error(o(327));if(Tu(),e===Ps&&n===Ns||cu(e,n),null!==Ds){var r=Rs;Rs|=As;for(var i=fu();;)try{mu();break}catch(t){du(e,t)}if(ra(),Rs=r,Ss.current=i,1===Os)throw t=Ls,cu(e,n),zu(e,n),au(e),t;if(null===Ds)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Os,Ps=null,r){case Is:case 1:throw Error(o(345));case 2:Hu(e,2<n?2:n);break;case _s:if(zu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(i)),1073741823===js&&10<(i=Vs+500-Hi())){if(zs){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,cu(e,n);break}}if(0!==(a=iu(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Tn(wu.bind(null,e),i);break}wu(e);break;case Ms:if(zu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(i)),zs&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,cu(e,n);break}if(0!==(i=iu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Us?r=10*(1073741821-Us)-Hi():1073741823===js?r=0:(r=10*(1073741821-js)-5e3,0>(r=(i=Hi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ts(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Tn(wu.bind(null,e),r);break}wu(e);break;case 5:if(1073741823!==js&&null!==Fs){a=js;var s=Fs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(a=Hi()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)))<=i?0:i+r-a),10<r){zu(e,n),e.timeoutHandle=Tn(wu.bind(null,e),r);break}}wu(e);break;default:throw Error(o(329))}if(au(e),e.callbackNode===t)return ou.bind(null,e)}}return null}function su(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Rs))throw Error(o(327));if(Tu(),e===Ps&&t===Ns||cu(e,t),null!==Ds){var n=Rs;Rs|=As;for(var r=fu();;)try{gu();break}catch(t){du(e,t)}if(ra(),Rs=n,Ss.current=r,1===Os)throw n=Ls,cu(e,t),zu(e,t),au(e),n;if(null!==Ds)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ps=null,wu(e),au(e)}return null}function uu(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&Xi()}}function lu(e,t){var n=Rs;Rs&=-2,Rs|=8;try{return e(t)}finally{0===(Rs=n)&&Xi()}}function cu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sn(n)),null!==Ds)for(n=Ds.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&wi();break;case 3:La(),fi(mi),fi(gi);break;case 5:Ua(r);break;case 4:La();break;case 13:case 19:fi(Fa);break;case 10:ia(r)}n=n.return}Ps=e,Ds=Nu(e.current,null),Ns=t,Os=Is,Ls=null,Us=js=1073741823,Fs=null,Bs=0,zs=!1}function du(e,t){for(;;){try{if(ra(),Va.current=wo,$a)for(var n=Ka.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(qa=0,Ga=Wa=Ka=null,$a=!1,null===Ds||null===Ds.return)return Os=1,Ls=t,Ds=null;e:{var i=e,a=Ds.return,o=Ds,s=t;if(t=Ns,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&o.mode)){var l=o.alternate;l?(o.updateQueue=l.updateQueue,o.memoizedState=l.memoizedState,o.expirationTime=l.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var c=0!==(1&Fa.current),d=a;do{var f;if(f=13===d.tag){var h=d.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var p=d.memoizedProps;f=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(f){var g=d.updateQueue;if(null===g){var m=new Set;m.add(u),d.updateQueue=m}else g.add(u);if(0===(2&d.mode)){if(d.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var v=da(1073741823,null);v.tag=2,fa(o,v)}o.expirationTime=1073741823;break e}s=void 0,o=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new bs,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(o)){s.add(o);var b=Cu.bind(null,i,u,o);u.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((me(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(o))}5!==Os&&(Os=2),s=ns(s,o),d=a;do{switch(d.tag){case 3:u=s,d.effectTag|=4096,d.expirationTime=t,ha(d,ws(d,u,t));break e;case 1:u=s;var w=d.type,x=d.stateNode;if(0===(64&d.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Ws||!Ws.has(x)))){d.effectTag|=4096,d.expirationTime=t,ha(d,xs(d,u,t));break e}}d=d.return}while(null!==d)}Ds=yu(Ds)}catch(e){t=e;continue}break}}function fu(){var e=Ss.current;return Ss.current=wo,null===e?wo:e}function hu(e,t){e<js&&2<e&&(js=e),null!==t&&e<Us&&2<e&&(Us=e,Fs=t)}function pu(e){e>Bs&&(Bs=e)}function gu(){for(;null!==Ds;)Ds=vu(Ds)}function mu(){for(;null!==Ds&&!ji();)Ds=vu(Ds)}function vu(e){var t=Es(e.alternate,e,Ns);return e.memoizedProps=e.pendingProps,null===t&&(t=yu(e)),ks.current=null,t}function yu(e){Ds=e;do{var t=Ds.alternate;if(e=Ds.return,0===(2048&Ds.effectTag)){if(t=es(t,Ds,Ns),1===Ns||1!==Ds.childExpirationTime){for(var n=0,r=Ds.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}Ds.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ds.firstEffect),null!==Ds.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ds.firstEffect),e.lastEffect=Ds.lastEffect),1<Ds.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ds:e.firstEffect=Ds,e.lastEffect=Ds))}else{if(null!==(t=ts(Ds)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ds.sibling))return t;Ds=e}while(null!==Ds);return Os===Is&&(Os=5),null}function bu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function wu(e){var t=qi();return Wi(99,xu.bind(null,e,t)),null}function xu(e,t){do{Tu()}while(null!==$s);if(0!==(48&Rs))throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=bu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ps&&(Ds=Ps=null,Ns=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var a=Rs;Rs|=Cs,ks.current=null,bn=Gt;var s=gn();if(mn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{u.nodeType,d.nodeType}catch(e){u=null;break e}var f=0,h=-1,p=-1,g=0,m=0,v=s,y=null;t:for(;;){for(var b;v!==u||0!==c&&3!==v.nodeType||(h=f+c),v!==d||0!==l&&3!==v.nodeType||(p=f+l),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===u&&++g===c&&(h=f),y===d&&++m===l&&(p=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}u=-1===h||-1===p?null:{start:h,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;wn={activeElementDetached:null,focusedElem:s,selectionRange:u},Gt=!1,Hs=i;do{try{Eu()}catch(e){if(null===Hs)throw Error(o(330));Au(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);Hs=i;do{try{for(s=e,u=t;null!==Hs;){var w=Hs.effectTag;if(16&w&&ze(Hs.stateNode,""),128&w){var x=Hs.alternate;if(null!==x){var E=x.ref;null!==E&&("function"===typeof E?E(null):E.current=null)}}switch(1038&w){case 2:hs(Hs),Hs.effectTag&=-3;break;case 6:hs(Hs),Hs.effectTag&=-3,vs(Hs.alternate,Hs);break;case 1024:Hs.effectTag&=-1025;break;case 1028:Hs.effectTag&=-1025,vs(Hs.alternate,Hs);break;case 4:vs(Hs.alternate,Hs);break;case 8:ms(s,c=Hs,u),ds(c)}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));Au(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);if(E=wn,x=gn(),w=E.focusedElem,u=E.selectionRange,x!==w&&w&&w.ownerDocument&&pn(w.ownerDocument.documentElement,w)){null!==u&&mn(w)&&(x=u.start,void 0===(E=u.end)&&(E=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(E,w.value.length)):(E=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(E=E.getSelection(),c=w.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!E.extend&&s>u&&(c=u,u=s,s=c),c=hn(w,s),d=hn(w,u),c&&d&&(1!==E.rangeCount||E.anchorNode!==c.node||E.anchorOffset!==c.offset||E.focusNode!==d.node||E.focusOffset!==d.offset)&&((x=x.createRange()).setStart(c.node,c.offset),E.removeAllRanges(),s>u?(E.addRange(x),E.extend(d.node,d.offset)):(x.setEnd(d.node,d.offset),E.addRange(x))))),x=[];for(E=w;E=E.parentNode;)1===E.nodeType&&x.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<x.length;w++)(E=x[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Gt=!!bn,wn=bn=null,e.current=n,Hs=i;do{try{for(w=e;null!==Hs;){var T=Hs.effectTag;if(36&T&&ls(w,Hs.alternate,Hs),128&T){x=void 0;var S=Hs.ref;if(null!==S){var k=Hs.stateNode;Hs.tag,x=k,"function"===typeof S?S(x):S.current=x}}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));Au(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Ui(),Rs=a}else e.current=n;if(Gs)Gs=!1,$s=e,Xs=t;else for(Hs=i;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,Hs=t;if(0===(t=e.firstPendingTime)&&(Ws=null),1073741823===t?e===Js?Qs++:(Qs=0,Js=e):Qs=0,"function"===typeof _u&&_u(n.stateNode,r),au(e),qs)throw qs=!1,e=Ks,Ks=null,e;return 0!==(8&Rs)||Xi(),null}function Eu(){for(;null!==Hs;){var e=Hs.effectTag;0!==(256&e)&&os(Hs.alternate,Hs),0===(512&e)||Gs||(Gs=!0,Gi(97,(function(){return Tu(),null}))),Hs=Hs.nextEffect}}function Tu(){if(90!==Xs){var e=97<Xs?97:Xs;return Xs=90,Wi(e,Su)}}function Su(){if(null===$s)return!1;var e=$s;if($s=null,0!==(48&Rs))throw Error(o(331));var t=Rs;for(Rs|=Cs,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ss(5,n),us(5,n)}}catch(t){if(null===e)throw Error(o(330));Au(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Rs=t,Xi(),!0}function ku(e,t,n){fa(e,t=ws(e,t=ns(n,t),1073741823)),null!==(e=ru(e,1073741823))&&au(e)}function Au(e,t){if(3===e.tag)ku(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ku(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ws||!Ws.has(r))){fa(n,e=xs(n,e=ns(t,e),1073741823)),null!==(n=ru(n,1073741823))&&au(n);break}}n=n.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ps===e&&Ns===n?Os===Ms||Os===_s&&1073741823===js&&Hi()-Vs<500?cu(e,Ns):zs=!0:Bu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,au(e)))}function Iu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=tu(t=eu(),e,null)),null!==(e=ru(e,t))&&au(e)}Es=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||mi.current)No=!0;else{if(r<n){switch(No=!1,t.tag){case 3:Ho(t),Po();break;case 5:if(ja(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:bi(t.type)&&Ti(t);break;case 4:Oa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,hi(Zi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?$o(e,t,n):(hi(Fa,1&Fa.current),null!==(t=Jo(e,t,n))?t.sibling:null);hi(Fa,1&Fa.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Qo(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),hi(Fa,Fa.current),!r)return null}return Jo(e,t,n)}No=!1}}else No=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=yi(t,gi.current),oa(t,n),i=Qa(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)){var a=!0;Ti(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,la(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&ya(t,r,s,e),i.updater=ba,t.stateNode=i,i._reactInternalFiber=t,Ta(t,r,e,n),t=Vo(null,t,r,!0,a,n)}else t.tag=0,Oo(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=function(e){if("function"===typeof e)return Du(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===de)return 14}return 2}(i),e=Ji(i,e),a){case 0:t=Bo(null,t,i,e,n);break e;case 1:t=zo(null,t,i,e,n);break e;case 11:t=Lo(null,t,i,e,n);break e;case 14:t=jo(null,t,i,Ji(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 1:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 3:if(Ho(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ca(e,t),pa(t,r,null,n),(r=t.memoizedState.element)===i)Po(),t=Jo(e,t,n);else{if((i=t.stateNode.hydrate)&&(ko=kn(t.stateNode.containerInfo.firstChild),So=t,i=Ao=!0),i)for(n=_a(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Oo(e,t,r,n),Po();t=t.child}return t;case 5:return ja(t),null===e&&_o(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,En(r,i)?s=null:null!==a&&En(r,a)&&(t.effectTag|=16),Fo(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Oo(e,t,s,n),t=t.child),t;case 6:return null===e&&_o(t),null;case 13:return $o(e,t,n);case 4:return Oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ia(t,null,r,n):Oo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Lo(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 7:return Oo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Oo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(hi(Zi,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,0===(a=zr(u,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(s.children===i.children&&!mi.current){t=Jo(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===u.tag&&((c=da(n,null)).tag=2,fa(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),aa(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Oo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,oa(t,n),r=r(i=sa(i,a.unstable_observedBits)),t.effectTag|=1,Oo(e,t,r,n),t.child;case 14:return a=Ji(i=t.type,t.pendingProps),jo(e,t,i,a=Ji(i.type,a),r,n);case 15:return Uo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ji(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,bi(r)?(e=!0,Ti(t)):e=!1,oa(t,n),xa(t,r,i),Ta(t,r,i,n),Vo(null,t,r,!0,e,n);case 19:return Qo(e,t,n)}throw Error(o(156,t.tag))};var _u=null,Mu=null;function Ru(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Pu(e,t,n,r){return new Ru(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Du(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return Lu(n.children,i,a,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Pu(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=a,e;case le:return(e=Pu(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=a,e;case ce:return(e=Pu(19,n,t,i)).elementType=ce,e.expirationTime=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ae:s=10;break e;case oe:s=9;break e;case ue:s=11;break e;case de:s=14;break e;case fe:s=16,r=null;break e;case he:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=a,t}function Lu(e,t,n,r){return(e=Pu(7,e,r,t)).expirationTime=n,e}function ju(e,t,n){return(e=Pu(6,e,null,t)).expirationTime=n,e}function Uu(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Bu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function zu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Vu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function qu(e,t,n,r){var i=t.current,a=eu(),s=ma.suspense;a=tu(a,i,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(bi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(bi(l)){n=Ei(n,l,u);break e}}n=u}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=da(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fa(i,t),nu(i,a),a}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Gu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}function $u(e,t,n){var r=new Fu(e,t,n=null!=n&&!0===n.hydrate),i=Pu(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,la(i),e[Mn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Ct.forEach((function(e){gt(e,t,n)})),It.forEach((function(e){gt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Ku(o);s.call(e)}}qu(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new $u(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var u=i;i=function(){var e=Ku(o);u.call(e)}}lu((function(){qu(t,o,e,i)}))}return Ku(o)}function Qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ju(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(o(200));return Qu(e,t,null,n)}$u.prototype.render=function(e){qu(e,this._internalRoot,null,null)},$u.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qu(null,e,null,(function(){t[Mn]=null}))},mt=function(e){if(13===e.tag){var t=Qi(eu(),150,100);nu(e,t),Gu(e,t)}},vt=function(e){13===e.tag&&(nu(e,3),Gu(e,3))},yt=function(e){if(13===e.tag){var t=eu();nu(e,t=tu(t,e,null)),Gu(e,t)}},I=function(e,t,n){switch(t){case"input":if(ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Nn(r);if(!i)throw Error(o(90));xe(r),ke(r,i)}}}break;case"textarea":Pe(e,n);break;case"select":null!=(t=n.value)&&_e(e,!!n.multiple,t,!1)}},N=uu,O=function(e,t,n,r,i){var a=Rs;Rs|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Rs=a)&&Xi()}},L=function(){0===(49&Rs)&&(function(){if(null!==Ys){var e=Ys;Ys=null,e.forEach((function(e,t){Hu(t,e),au(t)})),Xi()}}(),Tu())},j=function(e,t){var n=Rs;Rs|=2;try{return e(t)}finally{0===(Rs=n)&&Xi()}};var Zu={Events:[Pn,Dn,Nn,A,T,zn,function(e){at(e,Bn)},P,D,Jt,ut,Tu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);_u=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(e){}},Mu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Rn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=Ju,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Rs))throw Error(o(187));var n=Rs;Rs|=1;try{return Wi(99,e.bind(null,t))}finally{Rs=n,Xi()}},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Yu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Yu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(lu((function(){Yu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Mn]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_createPortal=function(e,t){return Ju(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return Yu(e,t,n,!1,r)},t.version="16.13.1"},3890:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4761)},9227:(e,t,n)=>{"use strict";var r=n(6319),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var T=E.prototype=new x;T.constructor=E,r(T,w.prototype),T.isPureReactComponent=!0;var S={current:null},k=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&!A.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:S.current}}function I(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var _=/\/+/g,M=[];function R(e,t,n,r){if(M.length){var i=M.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function D(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(r,e,""===t?"."+O(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var l=t+O(i=e[u],u);s+=D(i,l,n,r)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=m&&e[m]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),u=0;!(i=e.next()).done;)s+=D(i=i.value,l=t+O(i,u++),n,r);else if("object"===i)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function N(e,t,n){return null==e?0:D(e,"",t,n)}function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(_,"$&/")+"/")+n)),r.push(e))}function U(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(_,"$&/")+"/"),N(e,j,t=R(t,a,r,i)),P(t)}var F={current:null};function B(){var e=F.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return U(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,L,t=R(null,null,t,n)),P(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return U(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=l,t.PureComponent=E,t.StrictMode=u,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(v(267,e));var i=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!A.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:a,type:e.type,key:o,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},5152:(e,t,n)=>{"use strict";e.exports=n(9227)},2601:(e,t)=>{"use strict";var n,r,i,a,o;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,u=null,l=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(l,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(l,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},a=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var m=f.now();t.unstable_now=function(){return f.now()-m}}var v=!1,y=null,b=-1,w=5,x=0;a=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,T=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?T.postMessage(null):(v=!1,y=null)}catch(e){throw T.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,T.postMessage(null))},r=function(e,n){b=h((function(){e(t.unstable_now())}),n)},i=function(){p(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>C(o,n))void 0!==u&&0>C(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],_=[],M=1,R=null,P=3,D=!1,N=!1,O=!1;function L(e){for(var t=k(_);null!==t;){if(null===t.callback)A(_);else{if(!(t.startTime<=e))break;A(_),t.sortIndex=t.expirationTime,S(I,t)}t=k(_)}}function j(e){if(O=!1,L(e),!N)if(null!==k(I))N=!0,n(U);else{var t=k(_);null!==t&&r(j,t.startTime-e)}}function U(e,n){N=!1,O&&(O=!1,i()),D=!0;var o=P;try{for(L(n),R=k(I);null!==R&&(!(R.expirationTime>n)||e&&!a());){var s=R.callback;if(null!==s){R.callback=null,P=R.priorityLevel;var u=s(R.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?R.callback=u:R===k(I)&&A(I),L(n)}else A(I);R=k(I)}if(null!==R)var l=!0;else{var c=k(_);null!==c&&r(j,c.startTime-n),l=!1}return l}finally{R=null,P=o,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||D||(N=!0,n(U))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return k(I)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();if("object"===typeof o&&null!==o){var u=o.delay;u="number"===typeof u&&0<u?s+u:s,o="number"===typeof o.timeout?o.timeout:F(e)}else o=F(e),u=s;return e={id:M++,callback:a,priorityLevel:e,startTime:u,expirationTime:o=u+o,sortIndex:-1},u>s?(e.sortIndex=u,S(_,e),null===k(I)&&e===k(_)&&(O?i():O=!0,r(j,u-s))):(e.sortIndex=o,S(I,e),N||D||(N=!0,n(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=k(I);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},9176:(e,t,n)=>{"use strict";e.exports=n(2601)},8047:(e,t,n)=>{n(8206),n(72),n(9137),n(1957),n(6306),n(103),n(4592),n(8276),n(5082),n(2813),n(8222),n(8563),n(336),n(7512),n(8921),n(6248),n(3599),n(1477),n(4362),n(5389),n(401),n(5164),n(1238),n(4837),n(7485),n(465),n(6651),n(1437),n(5285),n(9865),n(3475),function(){var e="undefined"!=typeof window?window:n.g,r={};for(var i in function(e,t,n){var r;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var o=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var r=0;r<n.length;++r){var i=n[r];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{var n=o;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];if(!(i in n))break e;n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a(n,e,{configurable:!0,writable:!0,value:t})}}function u(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function l(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}function c(e){if(!(e instanceof Array)){e=l(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",(function(e){function t(e,t){this.g=e,a(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(i||"")+"_"+r++,i)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=o[t[n]];"function"===typeof r&&"function"!=typeof r.prototype[e]&&a(r.prototype,e,{configurable:!0,writable:!0,value:function(){return u(i(this))}})}return e}));var d,f="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)d=Object.setPrototypeOf;else{var h;e:{var p={};try{p.__proto__={a:!0},h=p.a;break e}catch(e){}h=!1}d=h?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var g=d;function m(e,t){if(e.prototype=f(t.prototype),e.prototype.constructor=e,g)g(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.xh=t.prototype}function v(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.u=this.i=null}function y(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}function b(e,t){e.i={Ee:t,Le:!0},e.g=e.m||e.j}function w(e,t,n){return e.g=n,{value:t}}function x(e){e.g=0}function E(e,t,n){e.m=t,void 0!=n&&(e.j=n)}function T(e){e.m=0,e.j=2}function S(e,t){e.g=t,e.m=0}function k(e){e.m=0;var t=e.i.Ee;return e.i=null,t}function A(e){e.u=[e.i],e.m=0,e.j=0}function C(e,t){var n=e.u.splice(0)[0];(n=e.i=e.i||n)?n.Le?e.g=e.m||e.j:void 0!=n.A&&e.j<n.A?(e.g=n.A,e.i=null):e.g=e.j:e.g=t}function I(e){this.g=new v,this.h=e}function _(e,t,n,r){try{var i=t.call(e.g.l,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return e.g.o=!1,i;var a=i.value}catch(t){return e.g.l=null,b(e.g,t),M(e)}return e.g.l=null,r.call(e.g,a),M(e)}function M(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,b(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Le)throw t.Ee;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function R(e){this.next=function(t){return y(e.g),e.g.l?t=_(e,e.g.l.next,t,e.g.s):(e.g.s(t),t=M(e)),t},this.throw=function(t){return y(e.g),e.g.l?t=_(e,e.g.l.throw,t,e.g.s):(b(e.g,t),t=M(e)),t},this.return=function(t){return function(e,t){y(e.g);var n=e.g.l;return n?_(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),M(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function P(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise((function(r,i){!function e(a){a.done?r(a.value):Promise.resolve(a.value).then(t,n).then(e,i)}(e.next())}))}(new R(new I(e)))}function D(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e,t,n){e instanceof String&&(e=String(e));for(var r=e.length,i=0;i<r;i++){var a=e[i];if(t.call(n,a,i,e))return{Je:i,v:a}}return{Je:-1,v:void 0}}function L(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}function j(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}v.prototype.s=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.A=function(e){this.g=e},s("Promise",(function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i((function(){t.l()}))}this.g.push(e)};var i=o.setTimeout;n.prototype.i=function(e){i(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i((function(){throw e}))},t.prototype.j=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.F),reject:e(this.l)}},t.prototype.F=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.H(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.D(e):this.m(e)}},t.prototype.D=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.J(t,e):this.m(e)},t.prototype.l=function(e){this.s(2,e)},t.prototype.m=function(e){this.s(1,e)},t.prototype.s=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.G(),this.u()},t.prototype.G=function(){var e=this;i((function(){if(e.B()){var t=o.console;"undefined"!==typeof t&&t.error(e.i)}}),1)},t.prototype.B=function(){if(this.o)return!1;var e=o.CustomEvent,t=o.Event,n=o.dispatchEvent;return"undefined"===typeof n||("function"===typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"===typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=o.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.u=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)a.h(this.g[e]);this.g=null}};var a=new n;return t.prototype.H=function(e){var t=this.j();e.Lc(t.resolve,t.reject)},t.prototype.J=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){a(e)}}:t}var i,a,o=new t((function(e,t){i=e,a=t}));return this.Lc(r(e,i),r(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Lc=function(e,t){function n(){switch(r.h){case 1:e(r.i);break;case 2:t(r.i);break;default:throw Error("Unexpected state: "+r.h)}}var r=this;null==this.g?a.h(n):this.g.push(n),this.o=!0},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=l(e),a=i.next();!a.done;a=i.next())r(a.value).Lc(t,n)}))},t.all=function(e){var n=l(e),i=n.next();return i.done?r([]):new t((function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do{o.push(void 0),s++,r(i.value).Lc(a(o.length-1),t),i=n.next()}while(!i.done)}))},t})),s("WeakMap",(function(e){function t(e){if(this.g=(u+=Math.random()+1).toString(),e){e=l(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function r(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function i(e){if(!N(e,s)){var t=new n;a(e,s,{value:t})}}function o(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&i(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),r=new e([[t,2],[n,3]]);return 2==r.get(t)&&3==r.get(n)&&(r.delete(t),r.set(n,4),!r.has(t)&&4==r.get(n))}catch(e){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();o("freeze"),o("preventExtensions"),o("seal");var u=0;return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(i(e),!N(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return r(e)&&N(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return r(e)&&N(e,s)&&N(e[s],this.g)},t.prototype.delete=function(e){return!!(r(e)&&N(e,s)&&N(e[s],this.g))&&delete e[s][this.g]},t})),s("Map",(function(e){function t(){var e={};return e.Qa=e.next=e.head=e}function n(e,t){var n=e.g;return u((function(){if(n){for(;n.head!=e.g;)n=n.Qa;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}}))}function r(e,t){var n=t&&typeof t;"object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t;var r=e.h[n];if(r&&N(e.h,n))for(e=0;e<r.length;e++){var i=r[e];if(t!==t&&i.key!==i.key||t===i.key)return{id:n,list:r,index:e,ga:i}}return{id:n,list:r,index:-1,ga:void 0}}function i(e){if(this.h={},this.g=t(),this.size=0,e){e=l(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(l([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&"s"==i.value[1]&&!((i=r.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!r.next().done)}catch(e){return!1}}())return e;var a=new WeakMap;i.prototype.set=function(e,t){var n=r(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.ga?n.ga.value=t:(n.ga={next:this.g,Qa:this.g.Qa,head:this.g,key:e,value:t},n.list.push(n.ga),this.g.Qa.next=n.ga,this.g.Qa=n.ga,this.size++),this},i.prototype.delete=function(e){return!(!(e=r(this,e)).ga||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.ga.Qa.next=e.ga.next,e.ga.next.Qa=e.ga.Qa,e.ga.head=null,this.size--,!0)},i.prototype.clear=function(){this.h={},this.g=this.g.Qa=t(),this.size=0},i.prototype.has=function(e){return!!r(this,e).ga},i.prototype.get=function(e){return(e=r(this,e).ga)&&e.value},i.prototype.entries=function(){return n(this,(function(e){return[e.key,e.value]}))},i.prototype.keys=function(){return n(this,(function(e){return e.key}))},i.prototype.values=function(){return n(this,(function(e){return e.value}))},i.prototype.forEach=function(e,t){for(var n,r=this.entries();!(n=r.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},i.prototype[Symbol.iterator]=i.prototype.entries;var o=0;return i})),s("Set",(function(e){function t(e){if(this.g=new Map,e){e=l(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(l([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&i.value[1]==t&&(!(i=r.next()).done&&i.value[0]!=t&&4==i.value[0].x&&i.value[1]==i.value[0]&&r.next().done)}catch(e){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach((function(r){return e.call(t,r,r,n)}))},t)})),s("Array.prototype.findIndex",(function(e){return e||function(e,t){return O(this,e,t).Je}})),s("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}})),s("Array.prototype.includes",(function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var r=n.length;for(0>(t=t||0)&&(t=Math.max(t+r,0));t<r;t++){var i=n[t];if(i===e||Object.is(i,e))return!0}return!1}})),s("String.prototype.includes",(function(e){return e||function(e,t){return-1!==L(this,e,"includes").indexOf(e,t||0)}})),s("Array.prototype.find",(function(e){return e||function(e,t){return O(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){var n=L(this,e,"startsWith"),r=n.length,i=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var a=0;a<i&&t<r;)if(n[t++]!=e[a++])return!1;return a>=i}})),s("Array.prototype.keys",(function(e){return e||function(){return j(this,(function(e){return e}))}}));var U="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)N(r,i)&&(e[i]=r[i])}return e};s("Object.assign",(function(e){return e||U})),s("Array.from",(function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var r=[],i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof i){e=i.call(e);for(var a=0;!(i=e.next()).done;)r.push(t.call(n,i.value,a++))}else for(i=e.length,a=0;a<i;a++)r.push(t.call(n,e[a],a));return r}})),s("Array.prototype.values",(function(e){return e||function(){return j(this,(function(e,t){return t}))}})),s("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),s("Array.prototype.entries",(function(e){return e||function(){return j(this,(function(e,t){return[e,t]}))}})),s("String.prototype.repeat",(function(e){return e||function(e){var t=L(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"===typeof e&&isNaN(e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)N(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)N(e,t)&&n.push([t,e[t]]);return n}}));var F=this||self;function B(e,t){e=e.split(".");var n,r=F;e[0]in r||"undefined"==typeof r.execScript||r.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function z(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function V(e){return e.h/(1-Math.pow(e.g,e.i))}function H(){this.h=new z(2),this.j=new z(5),this.g=0,this.i=128e3,this.l=16e3}function q(){}function K(){}function W(){}function G(e){var t=D.apply(1,arguments);X.has(e)||(X.add(e),W.apply(q,c(t)))}function $(){}z.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)},H.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},H.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},H.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(V(this.h),V(this.j))};var X=new Set;if(e.console&&e.console.log.bind){var Y={},Q=(Y[1]=console.error.bind(console),Y[2]=console.warn.bind(console),Y[3]=console.info.bind(console),Y[4]=console.log.bind(console),Y[5]=console.debug.bind(console),Y[6]=console.debug.bind(console),Y);W=Q[2],K=Q[1]}function J(e){if(Z.has(e))return Z.get(e);var t=MediaSource.isTypeSupported(e);return Z.set(e,t),t}var Z=new Map;function ee(e,t){return!("number"!==typeof e||"number"!==typeof t||!isNaN(e)||!isNaN(t))||e===t}function te(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function ne(e,t,n){if(n||(n=ee),e.length!=t.length)return!1;t=t.slice();for(var r={},i=(e=l(e)).next();!i.done;r={md:r.md},i=e.next()){if(r.md=i.value,-1==(i=t.findIndex(function(e){return function(t){return n(e.md,t)}}(r))))return!1;t[i]=t[t.length-1],t.pop()}return 0==t.length}function re(e,t,n){if(n||(n=ee),e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function ie(e,t,n){this.startTime=e,this.direction=de,this.endTime=t,this.payload=n,this.region=new xe,this.position=null,this.positionAlign=oe,this.size=0,this.textAlign=se,this.writingMode=fe,this.lineInterpretation=he,this.line=null,this.lineHeight="",this.lineAlign=pe,this.displayAlign=le,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=ye,this.fontStyle=be,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function ae(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!re(e.nestedCues,t.nestedCues,ae))return!1}else if("region"==n||"cellResolution"==n){for(var r in e[n])if(e[n][r]!=t[n][r])return!1}else if(Array.isArray(e[n])){if(!re(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}ie.prototype.clone=function(){var e,t=new ie(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},B("shaka.text.Cue",ie);var oe="auto";ie.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:oe};var se="center",ue={LEFT:"left",RIGHT:"right",CENTER:se,START:"start",END:"end"};ie.textAlign=ue;var le="after",ce={BEFORE:"before",CENTER:"center",AFTER:le};ie.displayAlign=ce;var de="ltr";ie.direction={HORIZONTAL_LEFT_TO_RIGHT:de,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var fe="horizontal-tb";ie.writingMode={HORIZONTAL_TOP_TO_BOTTOM:fe,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var he=0;ie.lineInterpretation={LINE_NUMBER:he,PERCENTAGE:1};var pe="start",ge={CENTER:"center",START:pe,END:"end"};ie.lineAlign=ge;var me={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};ie.defaultTextColor=me;var ve={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};ie.defaultTextBackgroundColor=ve;var ye=400;ie.fontWeight={NORMAL:ye,BOLD:700};var be="normal",we={NORMAL:be,ITALIC:"italic",OBLIQUE:"oblique"};function xe(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ee,this.scroll=Te}ie.fontStyle=we,ie.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},B("shaka.text.CueRegion",xe);var Ee=1;xe.units={PX:0,PERCENTAGE:Ee,LINES:2};var Te="";function Se(){}function ke(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(Ae(e)==Ae(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=Ie(e);t=Ie(t);for(var r=0;r<e.byteLength;r++)if(n[r]!=t[r])return!1;return!0}function Ae(e){return e instanceof ArrayBuffer?e:e.buffer}function Ce(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Ie(e,t,n){return Me(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function _e(e,t,n){return Me(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Me(e,t,n,r){var i=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,i)),new r(Ae(e),t,Math.min(t+Math.max(n,0),i)-t)}function Re(e,t,n){var r=D.apply(3,arguments);this.severity=e,this.category=t,this.code=n,this.data=r,this.handled=!1}xe.scrollMode={NONE:Te,UP:"up"},B("shaka.util.BufferUtils",Se),Se.toDataView=_e,Se.toUint8=Ie,Se.toArrayBuffer=Ce,Se.equal=ke,Re.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},B("shaka.util.Error",Re),Re.Severity={RECOVERABLE:1,CRITICAL:2},Re.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},Re.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};var Pe=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function De(e){var t;e instanceof De?(Ne(this,e.Ea),this.pb=e.pb,this.Ha=e.Ha,Oe(this,e.Kb),this.qa=e.qa,Le(this,e.g.clone()),this.fb=e.fb):e&&(t=String(e).match(Pe))?(Ne(this,t[1]||"",!0),this.pb=je(t[2]||""),this.Ha=je(t[3]||"",!0),Oe(this,t[4]),this.qa=je(t[5]||"",!0),Le(this,t[6]||"",!0),this.fb=je(t[7]||"")):this.g=new Ke(null)}function Ne(e,t,n){e.Ea=n?je(t,!0):t,e.Ea&&(e.Ea=e.Ea.replace(/:$/,""))}function Oe(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Kb=t}else e.Kb=null}function Le(e,t,n){t instanceof Ke?e.g=t:(n||(t=Ue(t,He)),e.g=new Ke(t))}function je(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Ue(e,t,n){return null!=e?(e=encodeURI(e).replace(t,Fe),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Fe(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(r=De.prototype).Ea="",r.pb="",r.Ha="",r.Kb=null,r.qa="",r.fb="",r.toString=function(){var e=[],t=this.Ea;if(t&&e.push(Ue(t,Be,!0),":"),t=this.Ha){e.push("//");var n=this.pb;n&&e.push(Ue(n,Be,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Kb)&&e.push(":",String(t))}return(t=this.qa)&&(this.Ha&&"/"!=t.charAt(0)&&e.push("/"),e.push(Ue(t,"/"==t.charAt(0)?Ve:ze,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.fb)&&e.push("#",Ue(t,qe)),e.join("")},r.resolve=function(e){var t=this.clone();"data"===t.Ea&&(t=new De);var n=!!e.Ea;n?Ne(t,e.Ea):n=!!e.pb,n?t.pb=e.pb:n=!!e.Ha,n?t.Ha=e.Ha:n=null!=e.Kb;var r=e.qa;if(n)Oe(t,e.Kb);else if(n=!!e.qa){if("/"!=r.charAt(0))if(this.Ha&&!this.qa)r="/"+r;else{var i=t.qa.lastIndexOf("/");-1!=i&&(r=t.qa.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var a=[],o=0;o<r.length;){var s=r[o++];"."==s?i&&o==r.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),i&&o==r.length&&a.push("")):(a.push(s),i=!0)}r=a.join("/")}}return n?t.qa=r:n=""!==e.g.toString(),n?Le(t,e.g.clone()):n=!!e.fb,n&&(t.fb=e.fb),t},r.clone=function(){return new De(this)};var Be=/[#\/\?@]/g,ze=/[#\?:]/g,Ve=/[#\?]/g,He=/[#\?@]/g,qe=/#/g;function Ke(e){this.g=e||null}function We(e){if(!e.la&&(e.la={},e.Oc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var a=t[n].substring(0,r);i=t[n].substring(r+1)}else a=t[n];a=decodeURIComponent(a.replace(/\+/g," ")),i=i||"",e.add(a,decodeURIComponent(i.replace(/\+/g," ")))}}function Ge(e,t){return e.concat(t)}function $e(){}function Xe(e){return null!=e}function Ye(e,t){if(0==t.length)return e;var n=t.map((function(e){return new De(e)}));return e.map((function(e){return new De(e)})).map((function(e){return n.map((function(t){return e.resolve(t)}))})).reduce(Ge,[]).map((function(e){return e.toString()}))}function Qe(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function Je(e,t){if(1==t.length)return t[0];if(null!=(e=Ze(e,t)))return e;throw new Re(2,4,4025,t)}function Ze(e,t){for(var n=l(nt[e]),r=n.next();!r.done;r=n.next()){r=r.value;for(var i=l(t),a=i.next();!a.done;a=i.next())if(a=a.value,r.test(a.trim()))return a.trim()}return e==et?"":null}(r=Ke.prototype).la=null,r.Oc=null,r.add=function(e,t){We(this),this.g=null;var n=this.la.hasOwnProperty(e)?this.la[e]:null;return n||(this.la[e]=n=[]),n.push(t),this.Oc++,this},r.set=function(e,t){return We(this),this.g=null,this.la.hasOwnProperty(e)?this.la[e]=[t]:this.add(e,t),this},r.toString=function(){if(this.g)return this.g;if(!this.la)return"";var e,t=[];for(e in this.la)for(var n=encodeURIComponent(e),r=this.la[e],i=0;i<r.length;i++){var a=n;""!==r[i]&&(a+="="+encodeURIComponent(r[i])),t.push(a)}return this.g=t.join("&")},r.clone=function(){var e=new Ke;if(e.g=this.g,this.la){var t,n={};for(t in this.la)n[t]=this.la[t].concat();e.la=n,e.Oc=this.Oc}return e};var et="text",tt={va:"video",Hc:"audio",X:et,Wb:"image",Gg:"application"},nt={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cx]$/,/^[du]dts$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function rt(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function it(e){this.h=e,this.g=void 0}function at(e){this.h=e,this.g=null}function ot(e){this.h=e,this.g=null}function st(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function ut(e){return""!=vt().canPlayType(e)}function lt(){return!!navigator.userAgent.match(/Edge?\//)}function ct(){return mt("Xbox One")}function dt(){return mt("Tizen")}function ft(){return mt("Web0S")&&mt("Chrome/38.0.2125.122 Safari/537.36")}function ht(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!dt()&&!mt("PC=EOS")&&!mt("VirginMedia")&&!pt()&&!mt("AFT")}function pt(){return mt("PlayStation 4")}function gt(){if(!ht())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function mt(e){return(navigator.userAgent||"").includes(e)}function vt(){return bt||(yt||(yt=new ot((function(){bt=null}))),(bt=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(bt=document.createElement("video")),yt.N(1),bt)}rt.prototype.resolve=function(){},rt.prototype.reject=function(){},it.prototype.value=function(){return void 0==this.g&&(this.g=this.h()),this.g},at.prototype.N=function(t){var n=this;this.stop();var r=!0,i=null;return this.g=function(){e.clearTimeout(i),r=!1},i=e.setTimeout((function(){r&&n.h()}),1e3*t),this},at.prototype.stop=function(){this.g&&(this.g(),this.g=null)},ot.prototype.Mb=function(){return this.stop(),this.h(),this},ot.prototype.N=function(e){var t=this;return this.stop(),this.g=new at((function(){t.h()})).N(e),this},ot.prototype.Ca=function(e){var t=this;return this.stop(),this.g=new at((function(){t.g.N(e),t.h()})).N(e),this},ot.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},B("shaka.util.Timer",ot),ot.prototype.stop=ot.prototype.stop,ot.prototype.tickEvery=ot.prototype.Ca,ot.prototype.tickAfter=ot.prototype.N,ot.prototype.tickNow=ot.prototype.Mb;var yt=null,bt=null;function wt(){}function xt(t){if(!t)return"";if(239==(t=Ie(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!pt())return(t=(new TextDecoder).decode(t)).includes("�")&&K('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),t;for(var n="",r=0;r<t.length;++r){var i=65533;if(0==(128&t[r])?i=t[r]:t.length>=r+2&&192==(224&t[r])&&128==(192&t[r+1])?(i=(31&t[r])<<6|63&t[r+1],r+=1):t.length>=r+3&&224==(240&t[r])&&128==(192&t[r+1])&&128==(192&t[r+2])?(i=(15&t[r])<<12|(63&t[r+1])<<6|63&t[r+2],r+=2):t.length>=r+4&&240==(241&t[r])&&128==(192&t[r+1])&&128==(192&t[r+2])&&128==(192&t[r+3])&&(i=(7&t[r])<<18|(63&t[r+1])<<12|(63&t[r+2])<<6|63&t[r+3],r+=3),65535>=i)n+=String.fromCharCode(i);else{var a=1023&(i-=65536);n+=String.fromCharCode(55296+(i>>10)),n+=String.fromCharCode(56320+a)}}return n}function Et(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new Re(2,2,2004);n=Math.floor(e.byteLength/2);var r=new Uint16Array(n);e=_e(e);for(var i=0;i<n;i++)r[i]=e.getUint16(2*i,t);return At.value()(r)}function Tt(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=Ie(e);if(239==n[0]&&187==n[1]&&191==n[2])return xt(n);if(254==n[0]&&255==n[1])return Et(n.subarray(2),!1);if(255==n[0]&&254==n[1])return Et(n.subarray(2),!0);if(0==n[0]&&0==n[2])return Et(e,!1);if(0==n[1]&&0==n[3])return Et(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return xt(e);throw new Re(2,2,2003)}function St(t){if(e.TextEncoder&&!pt()){var n=new TextEncoder;return Ce(n.encode(t))}t=encodeURIComponent(t),t=unescape(t),n=new Uint8Array(t.length);for(var r=0;r<t.length;r++)n[r]=t[r].charCodeAt(0);return Ce(n)}function kt(e,t){for(var n=new ArrayBuffer(2*e.length),r=new DataView(n),i=0;i<e.length;++i)r.setUint16(2*i,e.charCodeAt(i),t);return n}B("shaka.util.StringUtils",wt),wt.resetFromCharCode=function(){At.g=void 0},wt.toUTF16=kt,wt.toUTF8=St,wt.fromBytesAutoDetect=Tt,wt.fromUTF16=Et,wt.fromUTF8=xt;var At=new it((function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}for(var t={Ua:65536};0<t.Ua;(t={Ua:t.Ua}).Ua/=2)if(e(t.Ua))return function(e){return function(t){for(var n="",r=0;r<t.length;r+=e.Ua)n+=String.fromCharCode.apply(null,t.subarray(r,r+e.Ua));return n}}(t);return null}));function Ct(){}function It(e){return e=Ie(e),e=At.value()(e),btoa(e)}function _t(e,t){return t=void 0==t||t,e=It(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function Mt(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),r=0;r<t.length;++r)n[r]=t.charCodeAt(r);return n}function Rt(t){for(var n=t.length/2,r=new Uint8Array(n),i=0;i<n;i++)r[i]=e.parseInt(t.substr(2*i,2),16);return r}function Pt(e){var t=Ie(e);e="";for(var n=(t=l(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function Dt(){for(var e=D.apply(0,arguments),t=0,n=l(e),r=n.next();!r.done;r=n.next())t+=r.value.byteLength;for(t=new Uint8Array(t),n=0,r=(e=l(e)).next();!r.done;r=e.next())r=r.value,t.set(Ie(r),n),n+=r.byteLength;return t}function Nt(){}B("shaka.util.Uint8ArrayUtils",Ct),Ct.concat=Dt,Ct.toHex=Pt,Ct.fromHex=Rt,Ct.fromBase64=Mt,Ct.toBase64=_t,Ct.toStandardBase64=It,B("shaka.dependencies",Nt),Nt.has=function(e){return Lt.has(e)},Nt.add=function(e,t){if(!Ot[e])throw Error(e+" is not supported");Lt.set(e,(function(){return t}))};var Ot={muxjs:"muxjs"};Nt.Allowed=Ot;var Lt=new Map([["muxjs",function(){return e.muxjs}]]);function jt(e){var t=this;this.o=e,this.m=Lt.get("muxjs")(),this.h=this.g=null,this.l=[],this.i=[],this.j=!1,this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",(function(e){t.i=e.captions,t.l.push(Dt(e.initSegment,e.data))})),this.g.on("done",(function(){var e={data:Dt.apply(Ct,c(t.l)),captions:t.i};t.h.resolve(e),t.j=!1})))}function Ut(e,t){var n=Ft(e),r="audio/aac"==e.toLowerCase().split(";")[0];return!(!Lt.get("muxjs")()||!n&&!r)&&(r?J('audio/mp4; codecs="mp4a.40.2"'):t?J(zt(t,e)):(t=zt("audio",e),e=zt("video",e),J(t)||J(e)))}function Ft(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function Bt(e,t){return"audio/aac"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':Ft(t)?zt(e,t):t}function zt(e,t){if(t=t.replace(/mp2t/i,"mp4"),"audio"==e&&(t=t.replace("video","audio")),e=/avc1\.(66|77|100)\.(\d+)/.exec(t)){var n="avc1.",r=e[1],i=Number(e[2]);n=("66"==r?n+"4200":"77"==r?n+"4d00":n+"6400")+(i>>4).toString(16),n+=(15&i).toString(16),t=t.replace(e[0],n)}return t}function Vt(){}function Ht(e,t){return t&&(e+='; codecs="'+t+'"'),e}function qt(e,t,n){return Ut(t=Ht(e,t),n)?Bt(n,t):"video/mp2t"!=e&&"audio"==n?t.replace("video","audio"):t}function Kt(e){var t=Gt(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"dvh1"===e:case"dvhe"===e:return"dovi"}return e}function Wt(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function Gt(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}function $t(e){this.j=null,this.i=e,this.u=!1,this.l=this.s=0,this.m=1/0,this.h=this.g=null,this.B="",this.o=new Map}function Xt(e){return!(!Zt[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function Yt(e,t,n){if(e.B=t,t=e.o.get(t))for(var r=l(t.keys()),i=r.next();!i.done;i=r.next())(i=t.get(i.value).filter((function(e){return e.endTime<=n})))&&e.i.append(i)}function Qt(e,t,n){t.startTime+=n,t.endTime+=n;for(var r=(t=l(t.nestedCues)).next();!r.done;r=t.next())Qt(e,r.value,n)}function Jt(e,t,n,r,i){for(var a=n+" "+r,o=new Map,s=(t=l(t)).next();!s.done;s=t.next()){var u=s.value;s=u.stream,u=u.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),Qt(e,u,i),u.startTime>=e.l&&u.startTime<e.m&&(o.get(s).get(a).push(u),s==e.B&&e.i.append([u]))}for(a=(i=l(o.keys())).next();!a.done;a=i.next())for(a=a.value,e.o.has(a)||e.o.set(a,new Map),s=(t=l(o.get(a).keys())).next();!s.done;s=t.next())s=s.value,u=o.get(a).get(s),e.o.get(a).set(s,u);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(r,e.m))}jt.prototype.destroy=function(){return this.g&&this.g.dispose(),this.g=null,Promise.resolve()},B("shaka.util.MimeUtils",Vt),Vt.getFullType=Ht,(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),$t.prototype.destroy=function(){return this.i=this.j=null,this.o.clear(),Promise.resolve()},$t.prototype.remove=function(e,t){var n=this;return P((function(r){if(1==r.g)return w(r,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),x(r)}))},B("shaka.text.TextEngine",$t),$t.prototype.destroy=$t.prototype.destroy,$t.findParser=function(e){return Zt[e]},$t.unregisterParser=function(e){delete Zt[e]},$t.registerParser=function(e,t){Zt[e]=t};var Zt={};function en(){}function tn(e,t){return e=an(e),t=an(t),e.split("-")[0]==t.split("-")[0]}function nn(e,t){return e=an(e),t=an(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function rn(e,t){return e=an(e),t=an(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function an(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=cn.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function on(e,t){return e=an(e),(t=an(t))==e?4:nn(t,e)?3:rn(t,e)?2:nn(e,t)?1:0}function sn(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),cn.get(e)||e}function un(e){return e.language?an(e.language):e.audio&&e.audio.language?an(e.audio.language):e.video&&e.video.language?an(e.video.language):"und"}function ln(e,t){e=an(e);var n=new Set,r=l(t);for(t=r.next();!t.done;t=r.next())n.add(an(t.value));for(t=(r=l(n)).next();!t.done;t=r.next())if((t=t.value)==e)return t;for(t=(r=l(n)).next();!t.done;t=r.next())if(nn(t=t.value,e))return t;for(t=(r=l(n)).next();!t.done;t=r.next())if(rn(t=t.value,e))return t;for(t=(n=l(n)).next();!t.done;t=n.next())if(nn(e,t=t.value))return t;return null}B("shaka.util.LanguageUtils",en),en.findClosestLocale=ln,en.getLocaleForVariant=un,en.getLocaleForText=function(e){return an(e.language||"und")},en.getBase=sn,en.relatedness=on,en.areSiblings=function(e,t){var n=sn(e),r=sn(t);return e!=n&&t!=r&&n==r},en.normalize=an,en.isSiblingOf=rn,en.isParentOf=nn,en.areLanguageCompatible=tn,en.areLocaleCompatible=function(e,t){return(e=an(e))==(t=an(t))};var cn=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function dn(){this.g={}}function fn(e,t,n,r,i){var a=e.variants;(t.length||n.length)&&(a=function(e,t,n){for(var r={},i=(t=l(t)).next();!i.done;r={xd:r.xd},i=t.next())if(r.xd=i.value,i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.xd)}}(r)),i.length){e=i;break}for(r={},n=l(n),t=n.next();!t.done;r={jd:r.jd},t=n.next())if(r.jd=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.jd)}}(r)),t.length){e=t;break}return e}(a,t,n)),t=function(e){for(var t=new dn,n=(e=l(e)).next();!n.done;n=e.next()){var r=pn(n=n.value);t.push(r,n)}return t}(a=Dn(a,r)),t=function(e){var t=0,n=new Map,r=e.size();return e.forEach((function(e,i){for(var a=(i=l(i)).next();!a.done;a=i.next()){var o=(a=a.value).video;if(o&&o.width&&o.height){o=o.width*o.height*(o.frameRate||1),n.has(o)||n.set(o,new dn);var s=n.get(o);s.push(e,a),s.size()===r&&(t=Math.max(t,o))}}})),t?n.get(t):e}(t);var o=function(e,t){for(var n=(t=l(t)).next();!n.done;n=t.next())if((n=n.value)==Fn||n==Bn){if(1==(e=hn(e,n)).size())return e.keys()[0]}else if(n==zn)break;return function(e){var t="",n=1/0;return e.forEach((function(e,r){for(var i=0,a=0,o=(r=l(r)).next();!o.done;o=r.next())i+=o.value.bandwidth||0,++a;(i/=a)<n&&(t=e,n=i)})),t}(e)}(t,i);e.variants=e.variants.filter((function(e){return pn(e)==o}))}function hn(e,t){var n=0,r=new dn;return e.forEach((function(e,i){for(var a=0,o=0,s=l(i),u=s.next();!u.done;u=s.next())(u=u.value).decodingInfos.length&&(a+=u.decodingInfos[0][t]?1:0,o++);(a/=o)>n?(r.g={},r.push(e,i),n=a):a==n&&r.push(e,i)})),r}function pn(e){var t="";e.video&&(t=Kt(e.video.codecs));var n="";return e.audio&&(n=Kt(e.audio.codecs)),t+"-"+n}function gn(e,t,n){function r(e,t,n){return e>=t&&e<=n}var i=e.video;if(0!=e.disabledUntilTime){if(e.disabledUntilTime>Date.now()/1e3)return!1;e.disabledUntilTime=0}return!(i&&i.width&&i.height&&(!r(i.width,t.minWidth,Math.min(t.maxWidth,n.width))||!r(i.height,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function mn(e,t,n){for(var r=!1,i=(e=l(e)).next();!i.done;i=e.next()){var a=(i=i.value).allowedByApplication;i.allowedByApplication=gn(i,t,n),a!=i.allowedByApplication&&(r=!0)}return r}function vn(e,t){return P((function(n){return 1==n.g?w(n,yn(t,0<t.offlineSessionIds.length),2):(Tn(e,t),function(e){e.textStreams=e.textStreams.filter((function(e){return Xt(Ht(e.mimeType,e.codecs))}))}(t),w(n,function(e){var t,n,r,i,a,o,s;return P((function(u){switch(u.g){case 1:t=[],n=l(e.imageStreams),r=n.next();case 2:if(r.done){u.A(4);break}if(i=r.value,a=i.mimeType,Vn.has(a)){u.A(5);break}if(!(o=Hn.get(a))){Vn.set(a,!1),u.A(5);break}return w(u,function(e){return new Promise((function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then((function(){t(!0)})).catch((function(){t(!1)})):n.onload=n.onerror=function(){t(2===n.height)}}))}(o),7);case 7:s=u.h,Vn.set(a,s);case 5:Vn.get(a)&&t.push(i),r=n.next(),u.A(2);break;case 4:e.imageStreams=t,x(u)}}))}(t),0))}))}function yn(e,t){return P((function(n){if(1==n.g)return w(n,bn(e.variants,t,!1),2);e.variants=e.variants.filter((function(e){var t=e.video;if(t){var n=En(t.codecs);if(t.codecs.includes(",")){var r=t.codecs.split(",");n=En(n=Je("video",r)),r=xn(r=Je("audio",r));var i=qt(t.mimeType,r,"audio");if(!J(i))return!1;n=[n,r].join()}if(!J(r=qt(t.mimeType,n,"video")))return!1;t.codecs=n}if(n=e.audio){if(r=xn(n.codecs),!J(i=qt(n.mimeType,r,"audio")))return!1;n.codecs=r}return ct()&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&(t.codecs.includes("avc1.")||t.codecs.includes("avc3."))?(Ln(e),!1):((t=e.decodingInfos.some((function(e){return e.supported})))||Ln(e),t)})),x(n)}))}function bn(e,t,n){var r,i,a,o,s,u,c,d,f,h;return P((function(p){if(e.some((function(e){return e.decodingInfos.length})))return p.return();for(r=navigator.mediaCapabilities,i=[],a=function(e,t){var n;return P((function(i){return 1==i.g?(E(i,2),w(i,r.decodingInfo(t),4)):2!=i.g?(n=i.h,e.decodingInfos.push(n),S(i,0)):(k(i),JSON.stringify(t),void x(i))}))},o=l(e),s=o.next();!s.done;s=o.next())for(u=s.value,c=wn(u,t,n),d=l(c),f=d.next();!f.done;f=d.next())h=f.value,i.push(a(u,h));return w(p,Promise.all(i),0)}))}function wn(e,t,n){var r=e.audio,i=e.video;if(n={type:n?"file":"media-source"},i){var a=i.codecs;if(i.codecs.includes(",")){var o=i.codecs.split(",");a=En(a=Je("video",o)),o=Je("audio",o),o=qt(i.mimeType,o,"audio"),n.audio={contentType:o,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(a=En(a),a=qt(i.mimeType,a,"video"),n.video={contentType:a,width:i.width||64,height:i.height||64,bitrate:i.bandwidth||e.bandwidth||1,framerate:i.frameRate||1},i.hdr)switch(i.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(r&&(a=xn(r.codecs),a=qt(r.mimeType,a,"audio"),n.audio={contentType:a,channels:r.channelsCount||2,bitrate:r.bandwidth||e.bandwidth||1,samplerate:r.audioSamplingRate||1,spatialRendering:r.spatialAudio}),!(o=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],a=new Map;for(var s=(o=l(o)).next();!s.done;s=o.next()){var u=s.value;a.get(u.keySystem)||a.set(u.keySystem,[]),a.get(u.keySystem).push(u)}o=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var c=(u=l(a.keys())).next();!c.done;c=u.next()){var d=c.value;c=Object.assign({},n);var f=a.get(d);for(d={keySystem:d,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},s=(f=l(f)).next();!s.done;s=f.next()){if((s=s.value).initData&&s.initData.length){for(var h=new Set,p=l(s.initData),g=p.next();!g.done;g=p.next())h.add(g.value.initDataType);d.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(d.distinctiveIdentifier="required"),s.persistentStateRequired&&(d.persistentState="required"),s.sessionType&&(d.sessionTypes=[s.sessionType]),r&&(""!=s.audioRobustness?d.audio?d.audio.robustness=d.audio.robustness||s.audioRobustness:d.audio={robustness:s.audioRobustness}:d.audio||(d.audio={})),i&&(""!=s.videoRobustness?d.video?d.video.robustness=d.video.robustness||s.videoRobustness:d.video={robustness:s.videoRobustness}:d.video||(d.video={}))}c.keySystemConfiguration=d,e.push(c)}return e}function xn(e){return dt()&&"ac-3"==e.toLowerCase()?"ec-3":e}function En(e){if(e.includes("avc1")){var t=e.split(".");if(3==t.length)return e=t.shift()+".",(e+=parseInt(t.shift(),10).toString(16))+("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if("vp9"==e)return"vp09.00.41.08";return e}function Tn(e,t){t.variants=t.variants.filter((function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!Sn(n,e.audio)||t&&e&&e.video&&!Sn(t,e.video))}))}function Sn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function kn(e){var t=e.audio,n=e.video,r=t?t.mimeType:null,i=n?n.mimeType:null,a=t?t.codecs:null,o=n?n.codecs:null,s=[];o&&s.push(o),a&&s.push(a);var u=[];n&&u.push(n.mimeType),t&&u.push(t.mimeType),u=u[0]||null;var c=[];t&&c.push(t.kind),n&&c.push(n.kind),c=c[0]||null;var d=new Set;if(t)for(var f=l(t.roles),h=f.next();!h.done;h=f.next())d.add(h.value);if(n)for(h=(f=l(n.roles)).next();!h.done;h=f.next())d.add(h.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:c,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:u,audioMimeType:r,videoMimeType:i,codecs:s.join(", "),audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(d),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles),e}function An(e){return{id:e.id,active:!1,type:et,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function Cn(e){var t=e.width||null,n=e.height||null,r=null;e.segmentIndex&&(r=e.segmentIndex.get(0));var i=e.tilesLayout;return r&&(i=r.tilesLayout||i),i&&null!=t&&(t/=Number(i.split("x")[0])),i&&null!=n&&(n/=Number(i.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:i||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function In(e){return e.__shaka_id||(e.__shaka_id=Un++),e.__shaka_id}function _n(e){var t=Rn(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Mn(e){var t=Rn(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function Rn(e){return{id:In(e),active:!1,type:"",bandwidth:0,language:an(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function Pn(e){return e.allowedByApplication&&e.allowedByKeySystem}function Dn(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),r=new Map,i=(n=l(n)).next();!i.done;i=n.next()){var a=(i=i.value).audio.channelsCount;r.has(a)||r.set(a,[]),r.get(a).push(i)}return 0==(n=Array.from(r.keys())).length?e:(e=n.filter((function(e){return e<=t}))).length?r.get(Math.max.apply(Math,c(e))):r.get(Math.min.apply(Math,c(n)))}function Nn(e,t,n,r){var i=e,a=e.filter((function(e){return e.primary}));a.length&&(i=a);var o=i.length?i[0].language:"";if(i=i.filter((function(e){return e.language==o})),t){var s=ln(an(t),e.map((function(e){return e.language})));s&&(i=e.filter((function(e){return an(e.language)==s})))}if(i=i.filter((function(e){return e.forced==r})),n){if((e=On(i,n)).length)return e}else if(e=i.filter((function(e){return 0==e.roles.length})),e.length)return e;return e=i.map((function(e){return e.roles})).reduce(Ge,[]),e.length?On(i,e[0]):i}function On(e,t){return e.filter((function(e){return e.roles.includes(t)}))}function Ln(e){var t=[];return e.audio&&t.push(jn(e.audio)),e.video&&t.push(jn(e.video)),t.join(", ")}function jn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}(r=dn.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},r.get=function(e){return(e=this.g[e])?e.slice():null},r.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter((function(e){return e!=t})),0==this.g[e].length&&delete this.g[e])},r.forEach=function(e){for(var t in this.g)e(t,this.g[t])},r.size=function(){return Object.keys(this.g).length},r.keys=function(){return Object.keys(this.g)};var Un=0,Fn="smooth",Bn="powerEfficient",zn="bandwidth",Vn=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Hn=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function qn(){var e=this;this.l=null,this.o=!1,this.i=new H,navigator.connection&&navigator.connection.addEventListener("change",(function(){if(e.g.useNetworkInformation&&e.o){e.i=new H,e.g&&e.i.configure(e.g.advanced);var t=e.chooseVariant();t&&e.l(t)}})),this.m=[],this.u=1,this.B=!1,this.h=this.j=this.g=this.s=null,this.D=new ot((function(){if(e.g.restrictToElementSize){var t=e.chooseVariant();t&&e.l(t)}}))}function Kn(e){var t=e.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.g.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function Wn(e,t,n,r){return e&&(t=t.filter((function(t){return gn(t,e,{width:r,height:n})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}(r=qn.prototype).stop=function(){this.l=null,this.o=!1,this.m=[],this.u=1,this.j=this.s=null,this.h&&(this.h.disconnect(),this.h=null),this.D.stop()},r.init=function(e){this.l=e},r.chooseVariant=function(){var t=1/0,n=1/0;this.g.restrictToScreenSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=e.screen.height*n,n*=e.screen.width),this.h&&this.g.restrictToElementSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=this.j.clientWidth*n,n*=this.j.clientHeight),t=Wn(this.g.restrictions,this.m,t,n),n=this.i.getBandwidthEstimate(Kn(this)),this.m.length&&!t.length&&(t=[(t=Wn(null,this.m,1/0,1/0))[0]]);for(var r=t[0]||null,i=0;i<t.length;i++){for(var a=t[i],o=isNaN(this.u)?1:Math.abs(this.u),s=o*a.bandwidth/this.g.bandwidthDowngradeTarget,u={bandwidth:1/0},l=i+1;l<t.length;l++)if(a.bandwidth!=t[l].bandwidth){u=t[l];break}o=o*u.bandwidth/this.g.bandwidthUpgradeTarget,n>=s&&n<=o&&r.bandwidth!=a.bandwidth&&(r=a)}return this.s=Date.now(),r},r.enable=function(){this.o=!0},r.disable=function(){this.o=!1},r.segmentDownloaded=function(e,t){if(this.i.sample(e,t),null!=this.s&&this.o)e:{if(this.B){if(Date.now()-this.s<1e3*this.g.switchInterval)break e}else{if(!((e=this.i).g>=e.i))break e;this.B=!0}e=this.chooseVariant(),this.i.getBandwidthEstimate(Kn(this)),e&&this.l(e)}},r.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Kn(this))},r.setVariants=function(e){this.m=e},r.playbackRateChanged=function(e){this.u=e},r.setMediaElement=function(t){var n=this;this.j=t,this.h&&(this.h.disconnect(),this.h=null),this.j&&"ResizeObserver"in e&&(this.h=new ResizeObserver((function(){n.D.N(Gn)})),this.h.observe(this.j))},r.configure=function(e){this.g=e,this.i&&this.g&&this.i.configure(this.g.advanced)},B("shaka.abr.SimpleAbrManager",qn),qn.prototype.configure=qn.prototype.configure,qn.prototype.setMediaElement=qn.prototype.setMediaElement,qn.prototype.playbackRateChanged=qn.prototype.playbackRateChanged,qn.prototype.setVariants=qn.prototype.setVariants,qn.prototype.getBandwidthEstimate=qn.prototype.getBandwidthEstimate,qn.prototype.segmentDownloaded=qn.prototype.segmentDownloaded,qn.prototype.disable=qn.prototype.disable,qn.prototype.enable=qn.prototype.enable,qn.prototype.chooseVariant=qn.prototype.chooseVariant,qn.prototype.init=qn.prototype.init,qn.prototype.stop=qn.prototype.stop;var Gn=1;function $n(e,t){this.g=e,this.h=t}function Xn(e,t){var n=new $n(5,0),r=Jn,i=r.g,a=n.h-i.h;(0<(n.g-i.g||a)?r.i:r.h)(r.g,n,e,t)}function Yn(e,t,n,r){W([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",r].join(" "))}function Qn(e,t,n,r){K([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",r].join(""))}$n.prototype.toString=function(){return"v"+this.g+"."+this.h};var Jn=null;function Zn(e,t){for(this.h=e,this.g=new Set([e]),t=(e=l(t=t||[])).next();!t.done;t=e.next())this.add(t.value)}function er(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var r=t.audio;n=!((!(!n.channelsCount||!r.channelsCount||2<n.channelsCount||2<r.channelsCount)||n.channelsCount==r.channelsCount)&&tr(n,r)&&nr(n.roles,r.roles))}return!n&&(n=e.video&&t.video)&&(n=!(tr(e=e.video,t=t.video)&&nr(e.roles,t.roles))),!n}function tr(e,t){if(e.mimeType!=t.mimeType)return!1;if(e=e.codecs.split(",").map((function(e){return Gt(e)[0]})),t=t.codecs.split(",").map((function(e){return Gt(e)[0]})),e.length!=t.length)return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function nr(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;for(var n=(e=l(e)).next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}function rr(e){this.g=e,this.h=new ir(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function ir(e,t,n,r){this.i=e,this.j=t,this.g=n,this.h=void 0===r?"":r}function ar(){this.g=ur,this.h=(new Map).set(ur,2).set(sr,1)}function or(e,t,n){e.h.set(ur,n).set(sr,t)}B("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),Zn.prototype.add=function(e){return!!er(this.h,e)&&(this.g.add(e),!0)},Zn.prototype.values=function(){return this.g.values()},rr.prototype.create=function(e){var t=this,n=e.filter((function(e){return er(t.g,e)}));return n.length?new Zn(n[0],n):this.h.create(e)},ir.prototype.create=function(e){var t=[];t=function(e,t){var n=ln(t=an(t),e.map((function(e){return un(e)})));return n?e.filter((function(e){return n==un(e)})):[]}(e,this.i);var n=e.filter((function(e){return e.primary}));for(e=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(t=t.length?t:n.length?n:e,this.j),e.length&&(t=e),this.g&&((e=Dn(t,this.g)).length&&(t=e)),this.h&&(e=function(e,t){return e.filter((function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(t,this.h),e.length&&(t=e)),e=new Zn(t[0]),n=(t=l(t)).next();!n.done;n=t.next())n=n.value,er(e.h,n)&&e.add(n);return e};var sr=0,ur=1;function lr(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function cr(e){var t,n;return P((function(r){if(1==r.g){if(e.g>=e.l){if(!e.i)throw new Re(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?r.return():(n=e.h*(1+(2*Math.random()-1)*e.o),w(r,new Promise((function(e){new ot(e).N(n/1e3)})),2))}e.h*=e.m,x(r)}))}function dr(e,t){this.promise=e,this.i=t,this.g=!1}function fr(e){return new dr(Promise.reject(e),(function(){return Promise.resolve()}))}function hr(){var e=Promise.reject(new Re(2,7,7001));return e.catch((function(){})),new dr(e,(function(){return Promise.resolve()}))}function pr(e){return new dr(Promise.resolve(e),(function(){return Promise.resolve()}))}function gr(e){return new dr(e,(function(){return e.catch((function(){}))}))}function mr(e){return new dr(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function vr(t,n){if(n)if(n instanceof Map)for(var r=l(n.keys()),i=r.next();!i.done;i=r.next())i=i.value,Object.defineProperty(this,i,{value:n.get(i),writable:!0,enumerable:!0});else for(r in n)Object.defineProperty(this,r,{value:n[r],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function yr(e){var t,n=new vr(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}dr.prototype.abort=function(){return this.g=!0,this.i()},dr.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},dr.prototype.Y=function(e,t){function n(n){return function(s){if(i.g&&n)a.reject(o);else{var u=n?e:t;u?r=function(e,t,n){try{var r=e(t);return r&&r.promise&&r.abort?(n.resolve(r.promise),function(){return r.abort()}):(n.resolve(r),function(){return Promise.resolve(r).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(u,s,a):(n?a.resolve:a.reject)(s)}}}function r(){return a.reject(o),i.abort()}var i=this,a=new rt,o=new Re(2,7,7001);return this.promise.then(n(!0),n(!1)),new dr(a,(function(){return r()}))},B("shaka.util.AbortableOperation",dr),dr.prototype.chain=dr.prototype.Y,dr.prototype.finally=dr.prototype.finally,dr.all=mr,dr.prototype.abort=dr.prototype.abort,dr.notAbortable=gr,dr.completed=pr,dr.aborted=hr,dr.failed=fr,vr.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},vr.prototype.stopImmediatePropagation=function(){this.g=!0},vr.prototype.stopPropagation=function(){},B("shaka.util.FakeEvent",vr);var br={Ig:"abrstatuschanged",Jg:"adaptation",Kg:"buffering",Lg:"downloadfailed",Mg:"downloadheadersreceived",Ng:"drmsessionupdate",Pg:"emsg",ah:"prft",Error:"error",Qg:"expirationupdated",Rg:"gapjumped",Tg:"loaded",Ug:"loading",Wg:"manifestparsed",Xg:"mediaqualitychanged",Metadata:"metadata",Zg:"onstatechange",$g:"onstateidle",bh:"ratechange",eh:"segmentappended",fh:"sessiondata",gh:"stalldetected",hh:"streaming",ih:"textchanged",jh:"texttrackvisibility",kh:"timelineregionadded",lh:"timelineregionenter",mh:"timelineregionexit",nh:"trackschanged",ph:"unloading",qh:"variantchanged"};function wr(){this.da=new dn,this.Wc=this}function xr(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var r=n.constructor==Array;if(n.constructor!=Object&&!r)return null;t.add(n);var i,a=r?[]:{};for(i in n)a[i]=e(n[i]);return r&&(a.length=n.length),a}}(e)}function Er(e){var t,n={};for(t in e)n[t]=e[t];return n}function Tr(){this.g=[]}function Sr(e,t){e.g.push(t.finally((function(){te(e.g,t)})))}function kr(e,t,n){wr.call(this),this.i=!1,this.m=new Tr,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.s=n||null,this.o=!1}function Ar(e,t,n,r){n=n||Pr;var i=Dr[e];(!i||n>=i.priority)&&(Dr[e]={priority:n,jg:t,kg:void 0!==r&&r})}function Cr(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function Ir(e,t,n,r,i,a,o){e.o&&(n.uris[i]=n.uris[i].replace("http://","https://"));var s=new De(n.uris[i]),u=s.Ea,l=!1;u||(Ne(s,u=(u=location.protocol).slice(0,-1)),n.uris[i]=s.toString()),u=u.toLowerCase();var c=(u=Dr[u])?u.jg:null;if(!c)return fr(new Re(2,1,1e3,s));var d,f=u.kg,h=null,p=null,g=!1,m=!1;return gr(cr(r)).Y((function(){if(e.i)return hr();d=Date.now();var r=c(n.uris[i],n,t,(function(n,r,i){h&&h.stop(),p&&p.N(s/1e3),e.l&&t==Rr&&(e.l(n,r),l=!0,o.g=i)}),(function(r){e.j&&e.j(r,n,t),m=!0}));if(!f)return r;var a=n.retryParameters.connectionTimeout;a&&(h=new ot((function(){g=!0,r.abort()}))).N(a/1e3);var s=n.retryParameters.stallTimeout;return s&&(p=new ot((function(){g=!0,r.abort()}))),r})).Y((function(r){h&&h.stop(),p&&p.stop(),void 0==r.timeMs&&(r.timeMs=Date.now()-d);var i={response:r,Yf:l};return!m&&e.j&&e.j(r.headers,n,t),i}),(function(s){if(h&&h.stop(),p&&p.stop(),e.s){var u=null,l=0;s instanceof Re&&(u=s,1001==s.code&&(l=s.data[1])),e.s(n,u,l,g)}if(e.i)return hr();if(g&&(s=new Re(1,1,1003,n.uris[i],t)),s instanceof Re){if(7001==s.code)throw s;if(1010==s.code)throw a;if(1==s.severity)return u=new vr("retry",u=(new Map).set("error",s)),e.dispatchEvent(u),i=(i+1)%n.uris.length,Ir(e,t,n,r,i,s,o)}throw s}))}function _r(){this.g=0}function Mr(e,t,n){dr.call(this,e,t),this.h=n}wr.prototype.addEventListener=function(e,t){this.da&&this.da.push(e,t)},wr.prototype.removeEventListener=function(e,t){this.da&&this.da.remove(e,t)},wr.prototype.dispatchEvent=function(e){if(!this.da)return!0;var t=this.da.get(e.type)||[],n=this.da.get("All");for(n&&(t=t.concat(n)),n=(t=l(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Wc,e.currentTarget=this.Wc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},wr.prototype.release=function(){this.da=null},Tr.prototype.destroy=function(){for(var e=[],t=l(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},m(kr,wr),(r=kr.prototype).je=function(e){this.o=e},r.lg=function(e){this.g.add(e)},r.Bg=function(e){this.g.delete(e)},r.rf=function(){this.g.clear()},r.mg=function(e){this.h.add(e)},r.Cg=function(e){this.h.delete(e)},r.tf=function(){this.h.clear()},r.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),wr.prototype.release.call(this),this.m.destroy()},r.request=function(e,t){var n=this,r=new _r;if(this.i){var i=Promise.reject(new Re(2,7,7001));return i.catch((function(){})),new Mr(i,(function(){return Promise.resolve()}),r)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?xr(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=xr(t.uris),i=function(e,t,n){for(var r=pr(void 0),i={},a=(e=l(e.g)).next();!a.done;i={sd:i.sd},a=e.next())i.sd=a.value,r=r.Y(function(e){return function(){return n.body&&(n.body=Ce(n.body)),e.sd(t,n)}}(i));return r.Y(void 0,(function(e){if(e instanceof Re&&7001==e.code)throw e;throw new Re(2,1,1006,e)}))}(this,e,t);var a=i.Y((function(){return Ir(n,e,t,new lr(t.retryParameters,!1),0,null,r)})),o=a.Y((function(t){return function(e,t,n){for(var r=pr(void 0),i={},a=(e=l(e.h)).next();!a.done;i={td:i.td},a=e.next())i.td=a.value,r=r.Y(function(e){return function(){var r=n.response;return r.data&&(r.data=Ce(r.data)),e.td(t,r)}}(i));return r.Y((function(){return n}),(function(e){var t=2;if(e instanceof Re){if(7001==e.code)throw e;t=e.severity}throw new Re(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),u=0;i.promise.then((function(){u=Date.now()-s}),(function(){}));var c=0;a.promise.then((function(){c=Date.now()}),(function(){}));var d=o.Y((function(t){var r=Date.now()-c,i=t.response;return i.timeMs+=u,i.timeMs+=r,t.Yf||!n.l||i.fromCache||e!=Rr||n.l(i.timeMs,i.data.byteLength),i}),(function(e){throw e&&(e.severity=2),e}));return i=new Mr(d.promise,(function(){return d.abort()}),r),Sr(this.m,i),i},B("shaka.net.NetworkingEngine",kr),kr.prototype.request=kr.prototype.request,kr.prototype.destroy=kr.prototype.destroy,kr.makeRequest=Cr,kr.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},kr.prototype.clearAllResponseFilters=kr.prototype.tf,kr.prototype.unregisterResponseFilter=kr.prototype.Cg,kr.prototype.registerResponseFilter=kr.prototype.mg,kr.prototype.clearAllRequestFilters=kr.prototype.rf,kr.prototype.unregisterRequestFilter=kr.prototype.Bg,kr.prototype.registerRequestFilter=kr.prototype.lg,kr.unregisterScheme=function(e){delete Dr[e]},kr.registerScheme=Ar,kr.prototype.setForceHTTPS=kr.prototype.je,kr.NumBytesRemainingClass=_r,m(Mr,dr),kr.PendingRequest=Mr;var Rr=1;kr.RequestType={MANIFEST:0,SEGMENT:Rr,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var Pr=3;kr.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Pr};var Dr={};function Nr(e){this.g=!1,this.h=new rt,this.i=e}function Or(e,t){if(e.g){if(t instanceof Re&&7003==t.code)throw t;throw new Re(2,7,7003,t)}}function Lr(){this.g=new dn}function jr(e,t,n,r){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(void 0==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Ur;if(void 0==t){t=!1;try{var n={},r={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",r),Object.defineProperty(n,"capture",r),r=function(){},e.addEventListener("test",r,n),e.removeEventListener("test",r,n)}catch(e){t=!1}Ur=t}return t||!1}(e)?t:t.capture||!1}(e,r),this.target.addEventListener(t,n,this.g)}Nr.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(r=Lr.prototype).release=function(){this.nb(),this.g=null},r.C=function(e,t,n,r){this.g&&(e=new jr(e,t,n,r),this.g.push(t,e))},r.ma=function(e,t,n,r){var i=this;this.C(e,t,(function r(a){i.zc(e,t,r),n(a)}),r)},r.zc=function(e,t,n){if(this.g)for(var r=this.g.get(t)||[],i=(r=l(r)).next();!i.done;i=r.next())(i=i.value).target!=e||n!=i.listener&&n||(i.zc(),this.g.remove(t,i))},r.nb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,c(t.g[e]));for(n=(t=l(n)).next();!n.done;n=t.next())n.value.zc();this.g.g={}}},B("shaka.util.EventManager",Lr),Lr.prototype.removeAll=Lr.prototype.nb,Lr.prototype.unlisten=Lr.prototype.zc,Lr.prototype.listenOnce=Lr.prototype.ma,Lr.prototype.listen=Lr.prototype.C,Lr.prototype.release=Lr.prototype.release,jr.prototype.zc=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Ur=void 0;function Fr(e,t){for(var n=[],r=(e=l(e)).next();!r.done;r=e.next())n.push(t(r.value));return n}function Br(e){for(var t=new Map,n=l(Object.keys(e)),r=n.next();!r.done;r=n.next())r=r.value,t.set(r,e[r]);return t}function zr(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function Vr(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=(e=l(e)).next();!n.done;n=e.next()){var r=l(n.value);if(n=r.next().value,r=r.next().value,!t.has(n))return!1;if((n=t.get(n))!=r||void 0==n)return!1}return!0}function Hr(e,t){this.S=_e(e),this.h=t==Kr,this.g=0}function qr(){return new Re(2,3,3e3)}(r=Hr.prototype).ha=function(){return this.g<this.S.byteLength},r.Z=function(){return this.g},r.Gf=function(){return this.S.byteLength},r.Ra=function(){try{var e=this.S.getUint8(this.g);return this.g+=1,e}catch(e){throw qr()}},r.$d=function(){try{var e=this.S.getUint16(this.g,this.h);return this.g+=2,e}catch(e){throw qr()}},r.K=function(){try{var e=this.S.getUint32(this.g,this.h);return this.g+=4,e}catch(e){throw qr()}},r.Pe=function(){try{var e=this.S.getInt32(this.g,this.h);return this.g+=4,e}catch(e){throw qr()}},r.$a=function(){try{if(this.h)var e=this.S.getUint32(this.g,!0),t=this.S.getUint32(this.g+4,!0);else t=this.S.getUint32(this.g,!1),e=this.S.getUint32(this.g+4,!1)}catch(e){throw qr()}if(2097151<t)throw new Re(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},r.Za=function(e){if(this.g+e>this.S.byteLength)throw qr();var t=Ie(this.S,this.g,e);return this.g+=e,t},r.skip=function(e){if(this.g+e>this.S.byteLength)throw qr();this.g+=e},r.sg=function(e){if(this.g<e)throw qr();this.g-=e},r.seek=function(e){if(0>e||e>this.S.byteLength)throw qr();this.g=e},r.sc=function(){for(var e=this.g;this.ha()&&0!=this.S.getUint8(this.g);)this.g+=1;return e=Ie(this.S,e,this.g-e),this.g+=1,xt(e)},B("shaka.util.DataViewReader",Hr),Hr.prototype.readTerminatedString=Hr.prototype.sc,Hr.prototype.seek=Hr.prototype.seek,Hr.prototype.rewind=Hr.prototype.sg,Hr.prototype.skip=Hr.prototype.skip,Hr.prototype.readBytes=Hr.prototype.Za,Hr.prototype.readUint64=Hr.prototype.$a,Hr.prototype.readInt32=Hr.prototype.Pe,Hr.prototype.readUint32=Hr.prototype.K,Hr.prototype.readUint16=Hr.prototype.$d,Hr.prototype.readUint8=Hr.prototype.Ra,Hr.prototype.getLength=Hr.prototype.Gf,Hr.prototype.getPosition=Hr.prototype.Z,Hr.prototype.hasMoreData=Hr.prototype.ha;var Kr=1;function Wr(){this.i=[],this.h=[],this.g=!1}function Gr(e){for(var t=Zr(e);e.reader.ha()&&!e.parser.g;)e.parser.qc(e.start+t,e.reader,e.partialOkay)}function $r(e){for(var t=Zr(e),n=e.reader.K(),r=0;r<n&&(e.parser.qc(e.start+t,e.reader,e.partialOkay),!e.parser.g);r++);}function Xr(e){var t=Zr(e);for(e.reader.skip(78);e.reader.ha()&&!e.parser.g;)e.parser.qc(e.start+t,e.reader,e.partialOkay)}function Yr(e){return function(t){e(t.reader.Za(t.reader.S.byteLength-t.reader.Z()))}}function Qr(e){for(var t=0,n=(e=l(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Jr(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function Zr(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}Hr.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Kr},(r=Wr.prototype).box=function(e,t){return e=Qr(e),this.i[e]=ei,this.h[e]=t,this},r.P=function(e,t){return e=Qr(e),this.i[e]=ti,this.h[e]=t,this},r.stop=function(){this.g=!0},r.parse=function(e,t,n){for(e=new Hr(e,0),this.g=!1;e.ha()&&!this.g;)this.qc(0,e,t,n)},r.qc=function(e,t,n,r){var i=t.Z();if(r&&i+8>t.S.byteLength)this.g=!0;else{var a=t.K(),o=t.K(),s=Jr(o),u=!1;switch(a){case 0:a=t.S.byteLength-i;break;case 1:if(r&&t.Z()+8>t.S.byteLength)return void(this.g=!0);a=t.$a(),u=!0}var l=this.h[o];if(l){var c=null,d=null;if(this.i[o]==ti){if(r&&t.Z()+4>t.S.byteLength)return void(this.g=!0);c=(d=t.K())>>>24,d&=16777215}o=i+a,n&&o>t.S.byteLength&&(o=t.S.byteLength),r&&o>t.S.byteLength?this.g=!0:(r=o-t.Z(),l({name:s,parser:this,partialOkay:n||!1,version:c,flags:d,reader:t=new Hr(t=0<r?t.Za(r):new Uint8Array(0),0),size:a,start:i+e,has64BitSize:u}))}else t.skip(Math.min(i+a-t.Z(),t.S.byteLength-t.Z()))}},B("shaka.util.Mp4Parser",Wr),Wr.headerSize=Zr,Wr.typeToString=Jr,Wr.allData=Yr,Wr.visualSampleEntry=Xr,Wr.sampleDescription=$r,Wr.children=Gr,Wr.prototype.parseNext=Wr.prototype.qc,Wr.prototype.parse=Wr.prototype.parse,Wr.prototype.stop=Wr.prototype.stop,Wr.prototype.fullBox=Wr.prototype.P,Wr.prototype.box=Wr.prototype.box;var ei=0,ti=1;function ni(e){var t=this;this.g=[],this.h=[],this.data=[],(new Wr).box("moov",Gr).box("moof",Gr).P("pssh",(function(e){if(!(1<e.version)){var n=Ie(e.reader.S,-12,e.size);if(t.data.push(n),t.g.push(Pt(e.reader.Za(16))),0<e.version){n=e.reader.K();for(var r=0;r<n;r++){var i=Pt(e.reader.Za(16));t.h.push(i)}}}})).parse(e)}function ri(e,t,n,r){var i=e.length,a=t.length+16+i;0<r&&(a+=4+16*n.size);var o=new Uint8Array(a),s=_e(o),u=0;if(s.setUint32(u,a),u+=4,s.setUint32(u,1886614376),u+=4,1>r?s.setUint32(u,0):s.setUint32(u,16777216),u+=4,o.set(t,u),u+=t.length,0<r)for(s.setUint32(u,n.size),u+=4,n=(t=l(n)).next();!n.done;n=t.next())n=Rt(n.value),o.set(n,u),u+=n.length;return s.setUint32(u,i),o.set(e,u+4),o}function ii(e,t){return 1!=(e=oi(e,t)).length?null:e[0]}function ai(e,t,n){return 1!=(e=si(e,t,n)).length?null:e[0]}function oi(e,t){for(var n=[],r=(e=l(e.childNodes)).next();!r.done;r=e.next())(r=r.value)instanceof Element&&r.tagName==t&&n.push(r);return n}function si(e,t,n){for(var r=[],i=(e=l(e.childNodes)).next();!i.done;i=e.next())(i=i.value)instanceof Element&&i.localName==n&&i.namespaceURI==t&&r.push(i);return r}function ui(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function li(e,t,n){for(var r=(t=l(t)).next();!r.done;r=t.next())if(r=r.value,e.hasAttributeNS(r,n))return e.getAttributeNS(r,n);return null}function ci(e){return Array.from(e.childNodes).every(di)?e.textContent.trim():null}function di(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function fi(e,t,n,r){r=void 0===r?null:r;var i=null;return null!=(e=e.getAttribute(t))&&(i=n(e)),null==i?r:i}function hi(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function pi(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function gi(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function mi(e){return 0===(e=Number(e))%1?e:null}function vi(e){return 0===(e=Number(e))%1&&0<e?e:null}function yi(e){return 0===(e=Number(e))%1&&0<=e?e:null}function bi(e){return e=Number(e),isNaN(e)?null:e}function wi(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function xi(e,t){var n=new DOMParser,r=Ti.value()(e);e=null;try{e=n.parseFromString(r,"text/xml")}catch(e){return null}if(!(n=e.documentElement)||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}function Ei(e,t){try{return xi(xt(e),t)}catch(e){return null}}var Ti=new it((function(){if("undefined"!==typeof trustedTypes){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(e){return e}});return function(t){return e.createHTML(t)}}return function(e){return e}}));function Si(e,t){var n=this;t=void 0===t?1:t,this.D=e,this.G=new Set,this.l=this.u=null,this.da=this.W=!1,this.H=0,this.g=null,this.s=new Lr,this.i=new Map,this.B=[],this.o=new rt,this.h=null,this.m=function(t){n.o.reject(t),e.onError(t)},this.ea=new Map,this.ba=new Map,this.O=new ot((function(){return function(e){var t=e.ea,n=e.ba;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),(t=Array.from(n.values())).length&&t.every((function(e){return"expired"==e}))&&e.m(new Re(2,6,6014)),e.D.cd(zr(n))}(n)})),this.L=!1,this.J=[],this.M=!1,this.ca=new ot((function(){!function(e){e.i.forEach((function(t,n){var r=t.Vd,i=n.expiration;isNaN(i)&&(i=1/0),i!=r&&(e.D.onExpirationUpdated(n.sessionId,i),t.Vd=i)}))}(n)})).Ca(t),this.o.catch((function(){})),this.j=new Nr((function(){return function(e){return P((function(t){switch(t.g){case 1:return e.s.release(),e.s=null,e.o.reject(),e.ca.stop(),e.ca=null,e.O.stop(),e.O=null,w(t,ji(e),2);case 2:if(!e.l){t.A(3);break}return E(t,4),w(t,e.l.setMediaKeys(null),6);case 6:S(t,5);break;case 4:k(t);case 5:e.l=null;case 3:e.g=null,e.G.clear(),e.u=null,e.B=[],e.h=null,e.m=function(){},e.D=null,e.V=!1,e.F=null,x(t)}}))}(n)})),this.V=!1,this.F=null}function ki(e,t,n){return e.B=n,e.L=0<n.length,Ai(e,t)}function Ai(t,n){var r,i,a,o,s,u,c,d,f,h,p,g;return P((function(m){if(1==m.g){if(r=function(t){if(0==(t=Br(t.h.clearKeys)).size)return null;var n=[],r=[];t.forEach((function(e,t){var i=t;22!=i.length&&(i=_t(Rt(t),!1)),22!=(t=e).length&&(t=_t(Rt(e),!1)),e={kty:"oct",kid:i,k:t},n.push(e),r.push(e.kid)})),t=JSON.stringify({keys:n});var i=JSON.stringify({kids:r});return i=[{initData:Ie(St(i)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:i,keyIds:new Set(r)}}(t))for(i=l(n),a=i.next();!a.done;a=i.next())(o=a.value).video&&(o.video.drmInfos=[r]),o.audio&&(o.audio.drmInfos=[r]);for((s=n.some((function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)})))||(u=Br(t.h.servers),function(e,t){var n=[];for(t.forEach((function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})})),e=l(e),t=e.next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(n,u)),c=l(n),a=c.next();!a.done;a=c.next())for(d=a.value,f=Fi(d),h=l(f),p=h.next();!p.done;p=h.next())Vi(p.value,Br(t.h.servers),Br(t.h.advanced||{}),t.h.keySystemsMapping);return w(m,bn(n,t.L,t.V),2)}return s||Object.keys(t.h.servers).length?(g=Di(t,void 0,n),m.return(s?g:g.catch((function(){})))):(t.W=!0,m.return(Promise.resolve()))}))}function Ci(e){var t;return P((function(n){switch(n.g){case 1:if(e.l.mediaKeys)return n.return();if(!e.F){n.A(2);break}return w(n,e.F,3);case 3:return Or(e.j),n.return();case 2:return E(n,4),e.F=e.l.setMediaKeys(e.u),w(n,e.F,6);case 6:S(n,5);break;case 4:t=k(n),e.m(new Re(2,6,6003,t.message));case 5:Or(e.j),x(n)}}))}function Ii(e){var t,n;return P((function(r){switch(r.g){case 1:if(!e.u||!e.g)return r.return();if(!e.g.serverCertificateUri||e.g.serverCertificate&&e.g.serverCertificate.length){r.A(2);break}return t=Cr([e.g.serverCertificateUri],e.h.retryParameters),E(r,3),w(r,e.D.kb.request(5,t).promise,5);case 5:n=r.h,e.g.serverCertificate=Ie(n.data),S(r,4);break;case 3:throw new Re(2,6,6017,k(r));case 4:if(e.j.g)return r.return();case 2:return e.g.serverCertificate&&e.g.serverCertificate.length?(E(r,6),w(r,e.u.setServerCertificate(e.g.serverCertificate),8)):r.return();case 8:S(r,0);break;case 6:throw new Re(2,6,6004,k(r).message)}}))}function _i(e){for(var t=(e.g?e.g.initData:[])||[],n=l(t),r=n.next();!r.done;r=n.next())Mi(e,(r=r.value).initDataType,r.initData);for(r=(n=l(e.B)).next();!r.done;r=n.next())Ni(e,r.value);return t.length||e.B.length||e.o.resolve(),e.o}function Mi(e,t,n){if(n.length){for(var r=e.i.values(),i=(r=l(r)).next();!i.done;i=r.next())if(ke(n,i.value.initData)&&!mt("Tizen 2"))return;0<e.i.size&&Bi(e)&&(e.o.resolve(),e.o=new rt,e.o.catch((function(){}))),function(e,t,n,r){try{var i=e.u.createSession(r)}catch(t){return void e.m(new Re(2,6,6005,t.message))}e.s.C(i,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.M?e.J.push(t):Oi(e,t)})),e.s.C(i,"keystatuseschange",(function(t){return Li(e,t)})),e.i.set(i,{initData:n,initDataType:t,loaded:!1,Vd:1/0,Ja:null,type:r});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){return t=n,n instanceof Re||(t=new Re(2,6,6016,n)),void e.m(t)}e.h.logLicenseExchange&&_t(n),i.generateRequest(t,n).catch((function(t){if(!e.j.g){e.i.delete(i);var n=t.errorCode;if(n&&n.systemCode){var r=n.systemCode;0>r&&(r+=Math.pow(2,32)),r="0x"+r.toString(16)}e.m(new Re(2,6,6006,t.message,t,r))}}))}(e,t,n,e.g.sessionType)}}function Ri(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function Pi(e){return e=Fr(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function Di(e,t,n){var r,i,a,o,s,u,c,d,f,h,p,g,m;return P((function(v){switch(v.g){case 1:if(r=new Map,n.length){i=function(e,t,n){for(var r=l(t),i=r.next();!i.done;i=r.next()){var a=l(Fi(i.value));for(i=a.next();!i.done;i=a.next())i=i.value,n.has(i.keySystem)||n.set(i.keySystem,[]),n.get(i.keySystem).push(i)}if(1==n.size&&n.has(""))throw new Re(2,6,6e3);for(r={},e=l(e.h.preferredKeySystems),i=e.next();!i.done;r={qd:r.qd},i=e.next())for(r.qd=i.value,a=l(t),i=a.next();!i.done;i=a.next())if(i=i.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.qd}}(r)))return i.keySystemAccess;for(e=l([!0,!1]),i=e.next();!i.done;i=e.next())for(r=i.value,a=l(t),i=a.next();!i.done;i=a.next()){var o=l(i.value.decodingInfos);for(i=o.next();!i.done;i=o.next()){var s=i.value;if(s.supported&&s.keySystemAccess){var u=l(i=n.get(s.keySystemAccess.keySystem));for(i=u.next();!i.done;i=u.next())if(!!i.value.licenseServerUri==r)return s.keySystemAccess}}}return null}(e,n,r),v.A(2);break}return w(v,function(e,t){var n,r,i,a,o,s,u,c,d,f,h,p,g,m,v;return P((function(y){switch(y.g){case 1:if(1==t.size&&t.has(""))throw new Re(2,6,6e3);for(r=l(t.values()),i=r.next();!i.done;i=r.next())0==(a=i.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;o=l(e.h.preferredKeySystems),s=o.next();case 2:if(s.done){y.A(4);break}if(u=s.value,!t.has(u)){y.A(3);break}return c=t.get(u),E(y,6),w(y,navigator.requestMediaKeySystemAccess(u,[c]),8);case 8:return n=y.h,y.return(n);case 6:k(y);case 7:Or(e.j);case 3:s=o.next(),y.A(2);break;case 4:d=l([!0,!1]),f=d.next();case 9:if(f.done){y.A(11);break}h=f.value,p=l(t.keys()),s=p.next();case 12:if(s.done){f=d.next(),y.A(9);break}if(g=s.value,m=t.get(g),v=m.drmInfos.some((function(e){return!!e.licenseServerUri})),v!=h){y.A(13);break}return E(y,15),w(y,navigator.requestMediaKeySystemAccess(g,[m]),17);case 17:return n=y.h,y.return(n);case 15:k(y);case 16:Or(e.j);case 13:s=p.next(),y.A(12);break;case 11:return y.return(n)}}))}(e,t),3);case 3:i=v.h;case 2:if(!(a=i))throw new Re(2,6,6001);for(Or(e.j),E(v,4),e.G.clear(),o=a.getConfiguration(),s=o.audioCapabilities||[],u=o.videoCapabilities||[],c=l(s),d=c.next();!d.done;d=c.next())f=d.value,e.G.add(f.contentType.toLowerCase());for(h=l(u),d=h.next();!d.done;d=h.next())p=d.value,e.G.add(p.contentType.toLowerCase());if(n.length){var y=a.keySystem,b=r.get(a.keySystem),x=[],T=[],A=[],C=[],I=new Set;zi(b,x,A,T,C,I);var _=e.L?"persistent-license":"temporary";for(y={keySystem:y,licenseServerUri:x[0],distinctiveIdentifierRequired:b[0].distinctiveIdentifierRequired,persistentStateRequired:b[0].persistentStateRequired,sessionType:b[0].sessionType||_,audioRobustness:b[0].audioRobustness||"",videoRobustness:b[0].videoRobustness||"",serverCertificate:A[0],serverCertificateUri:T[0],initData:C,keyIds:I},x=(b=l(b)).next();!x.done;x=b.next())(x=x.value).distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=x.distinctiveIdentifierRequired),x.persistentStateRequired&&(y.persistentStateRequired=x.persistentStateRequired);b=y}else b=a.keySystem,y=t.get(a.keySystem),x=[],T=[],A=[],C=[],I=new Set,zi(y.drmInfos,x,A,T,C,I),b={keySystem:b,licenseServerUri:x[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:A[0],serverCertificateUri:T[0],initData:C,keyIds:I};if(e.g=b,!e.g.licenseServerUri)throw new Re(2,6,6012,e.g.keySystem);return w(v,a.createMediaKeys(),6);case 6:return g=v.h,Or(e.j),e.u=g,e.W=!0,w(v,Ii(e),7);case 7:Or(e.j),S(v,0);break;case 4:if(m=k(v),Or(e.j,m),e.g=null,e.G.clear(),m instanceof Re)throw m;throw new Re(2,6,6002,m.message)}}))}function Ni(e,t){var n,r,i,a,o;return P((function(s){switch(s.g){case 1:try{n=e.u.createSession("persistent-license")}catch(t){return r=new Re(2,6,6005,t.message),e.m(r),s.return(Promise.reject(r))}return e.s.C(n,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.M?e.J.push(t):Oi(e,t)})),e.s.C(n,"keystatuseschange",(function(t){return Li(e,t)})),i={initData:null,initDataType:null,loaded:!1,Vd:1/0,Ja:null,type:"persistent-license"},e.i.set(n,i),E(s,2),w(s,n.load(t),4);case 4:return a=s.h,Or(e.j),a?(i.loaded=!0,Bi(e)&&e.o.resolve(),s.return(n)):(e.i.delete(n),e.m(new Re(2,6,6013)),s.return(Promise.resolve()));case 2:o=k(s),Or(e.j,o),e.i.delete(n),e.m(new Re(2,6,6005,o.message));case 3:return s.return(Promise.resolve())}}))}function Oi(e,t){var n,r,i,a,o,s,u,c,d,f,h,p;P((function(g){switch(g.g){case 1:return n=t.target,e.h.logLicenseExchange&&_t(t.message),r=e.i.get(n),i=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(i=a.individualizationServer),(o=Cr([i],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,o.drmInfo=e.g,r&&(o.initData=r.initData,o.initDataType=r.initDataType),Ri(e.g.keySystem)&&function(e){var t=Et(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=l((t=xi(t,"PlayReadyKeyMessage")).getElementsByTagName("HttpHeader")),r=n.next();!r.done;r=n.next())r=r.value,e.headers[r.getElementsByTagName("name")[0].textContent]=r.getElementsByTagName("value")[0].textContent;e.body=Mt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(o),s=Date.now(),E(g,2),w(g,e.D.kb.request(2,o).promise,4);case 4:u=g.h,S(g,3);break;case 2:return c=k(g),d=new Re(2,6,6007,c),e.m(d),r&&r.Ja&&r.Ja.reject(d),g.return();case 3:return e.j.g?g.return():(e.H+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&_t(u.data),E(g,5),w(g,n.update(u.data),7));case 7:S(g,6);break;case 5:return f=k(g),h=new Re(2,6,6008,f.message),e.m(h),r&&r.Ja&&r.Ja.reject(h),g.return();case 6:if(e.j.g)return g.return();p=new vr("drmsessionupdate"),e.D.onEvent(p),r&&(r.Ja&&r.Ja.resolve(),new ot((function(){r.loaded=!0,Bi(e)&&e.o.resolve()})).N(qi)),x(g)}}))}function Li(e,t){t=t.target;var n=e.i.get(t),r=!1;t.keyStatuses.forEach((function(t,i){if("string"==typeof i){var a=i;i=t,t=a}if(Ri(e.g.keySystem)&&16==i.byteLength&&(lt()||pt())){var o=(a=_e(i)).getUint32(0,!0),s=a.getUint16(4,!0),u=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,u,!1)}"status-pending"!=t&&(n.loaded=!0),"expired"==t&&(r=!0),i=Pt(i).slice(0,32),e.ea.set(i,t)}));var i=t.expiration-Date.now();(0>i||r&&1e3>i)&&n&&!n.Ja&&(e.i.delete(t),t.close().catch((function(){}))),Bi(e)&&(e.o.resolve(),e.O.N(Ki))}function ji(e){var t;return P((function(n){return t=Array.from(e.i.entries()),e.i.clear(),w(n,Promise.all(t.map((function(t){var n=(t=l(t)).next().value,r=t.next().value;return P((function(t){return 1==t.g?(E(t,2),e.da||e.B.includes(n.sessionId)||"persistent-license"!==r.type?w(t,function(e){var t;return P((function(n){return 1==n.g?(t=new Promise((function(e,t){new ot(t).N(Hi)})),E(n,2),w(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?S(n,0):(k(n),void x(n))}))}(n),5):w(t,n.remove(),5)):2!=t.g?S(t,0):(k(t),void x(t))}))}))),0)}))}function Ui(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],r=(e=l(e)).next();!r.done;r=e.next()){r=r.value;for(var i={},a=l(t),o=a.next();!o.done;i={Da:i.Da},o=a.next())if(o=o.value,r.keySystem==o.keySystem){i.Da=[],i.Da=i.Da.concat(r.initData||[]),i.Da=i.Da.concat(o.initData||[]),i.Da=i.Da.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Da.findIndex((function(e){return e.keyId===t.keyId}))}}(i)),a=r.keyIds&&o.keyIds?new Set([].concat(c(r.keyIds),c(o.keyIds))):r.keyIds||o.keyIds,n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||o.licenseServerUri,distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||o.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||o.persistentStateRequired,videoRobustness:r.videoRobustness||o.videoRobustness,audioRobustness:r.audioRobustness||o.audioRobustness,serverCertificate:r.serverCertificate||o.serverCertificate,serverCertificateUri:r.serverCertificateUri||o.serverCertificateUri,initData:i.Da,keyIds:a});break}}return n}function Fi(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function Bi(e){return function(e,t){for(var n=(e=l(e)).next();!n.done;n=e.next())if(!t(n.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function zi(e,t,n,r,i,a){for(var o={},s=(e=l(e)).next();!s.done;o={oa:o.oa},s=e.next()){if(o.oa=s.value,t.includes(o.oa.licenseServerUri)||t.push(o.oa.licenseServerUri),r.includes(o.oa.serverCertificateUri)||r.push(o.oa.serverCertificateUri),o.oa.serverCertificate&&(n.some(function(e){return function(t){return ke(t,e.oa.serverCertificate)}}(o))||n.push(o.oa.serverCertificate)),o.oa.initData){s={};for(var u=l(o.oa.initData),c=u.next();!c.done;s={Dc:s.Dc},c=u.next())s.Dc=c.value,i.some(function(e){return function(t){var n=e.Dc;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&ke(t.initData,n.initData)}}(s))||i.push(s.Dc)}if(o.oa.keyIds)for(u=(s=l(o.oa.keyIds)).next();!u.done;u=s.next())a.add(u.value)}}function Vi(t,n,r,i){var a=t.keySystem;!a||"org.w3.clearkey"==a&&t.licenseServerUri||(n.size&&(n=n.get(a)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(r=r.get(a))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=r.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=r.persistentStateRequired),t.videoRobustness||(t.videoRobustness=r.videoRobustness),t.audioRobustness||(t.audioRobustness=r.audioRobustness),t.serverCertificate||(t.serverCertificate=r.serverCertificate),r.sessionType&&(t.sessionType=r.sessionType),t.serverCertificateUri||(t.serverCertificateUri=r.serverCertificateUri)),i[a]&&(t.keySystem=i[a]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==a&&(t.keySystem="com.chromecast.playready"))}(r=Si.prototype).destroy=function(){return this.j.destroy()},r.configure=function(e){this.h=e},r.Yb=function(e){var t,n=this;return P((function(r){if(1==r.g)return n.u?(n.l=e,n.s.ma(n.l,"play",(function(){for(var e=l(n.J),t=e.next();!t.done;t=e.next())Oi(n,t.value);n.M=!0,n.J=[]})),"webkitCurrentPlaybackTargetIsWireless"in n.l&&n.s.C(n.l,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return ji(n)})),(t=n.g?n.g.initData.find((function(e){return 0<e.initData.length})):null)||"com.apple.fps"!==n.g.keySystem||n.B.length?w(r,Ci(n),2):r.A(2)):(n.s.ma(e,"encrypted",(function(){n.m(new Re(2,6,6010))})),r.return());_i(n),t||n.B.length||n.h.parseInbandPsshEnabled||n.s.C(n.l,"encrypted",(function(e){return function(e,t){return P((function(n){if(1==n.g)return w(n,Ci(e),2);Mi(e,t.initDataType,Ie(t.initData)),x(n)}))}(n,e)})),x(r)}))},r.ic=function(){for(var e=1/0,t=this.i.keys(),n=(t=l(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},r.Qc=function(){return zr(this.ba)};var Hi=1,qi=5,Ki=.5,Wi=new it((function(){return Ce(new Uint8Array([0]))}));function Gi(){}function $i(e,t,n,r){var i,a,o,s;return P((function(u){if(1==u.g)return r&&(i=Qi[r.toLowerCase()])?u.return(i):(a=Yi(e))&&(o=Ji[a])?u.return(o):r?u.A(2):w(u,Xi(e,t,n),3);if(2!=u.g&&(r=u.h)&&(s=Qi[r]))return u.return(s);throw new Re(2,4,4e3,e)}))}function Xi(e,t,n){var r,i,a;return P((function(o){return 1==o.g?((r=Cr([e],n)).method="HEAD",w(o,t.request(0,r).promise,2)):(i=o.h,a=i.headers["content-type"],o.return(a?a.toLowerCase().split(";").shift():""))}))}function Yi(e){return 1==(e=new De(e).qa.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}B("shaka.media.ManifestParser",Gi),Gi.unregisterParserByMime=function(e){delete Qi[e]},Gi.registerParserByMime=function(e,t){Qi[e]=t},Gi.registerParserByExtension=function(e,t){Ji[e]=t};var Qi={},Ji={};function Zi(e,t,n,r,i){var a=ta.value(),o=e.subarray(n.start,n.start+n.size),s=_e(o),u=new Uint8Array(n.size+a.byteLength);for(u.set(o,0),(o=_e(u)).setUint32(4,i),u.set(a,n.size),i=s.getUint32(4),o.setUint32(n.size+16,i),ea(u,0,u.byteLength),i=new Uint8Array(e.byteLength+u.byteLength),n=ct()?n.start:n.start+n.size,a=e.subarray(n),i.set(e.subarray(0,n)),i.set(u,n),i.set(a,n+u.byteLength),r=(e=l(r)).next();!r.done;r=e.next())ea(i,(r=r.value).start,r.size+u.byteLength);return u=_e(i,t.start),t=Zr(t),e=u.getUint32(t),u.setUint32(t,e+1),i}function ea(e,t,n){0!=(t=(e=_e(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var ta=new it((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function na(e,t,n,r,i){if(r>=i)return null;for(var a=-1,o=-1,s=0;s<n.length;s++)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){a=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){o=s;break}if(-1===a||-1===o)return null;for(var u=s=!1,l="white",c="black",d=ra(r,i,s,u,l,c);a<=o;a++){for(var f=n[a],h=-1,p=-1,g=0;g<f.length;g++)if(null!=f[g]&&""!==f[g].g.trim()){h=g;break}for(g=f.length-1;0<=g;g--)if(null!=f[g]&&""!==f[g].g.trim()){p=g;break}if(-1===h||-1===p)f=ia(r,i),e.nestedCues.push(f);else{for(;h<=p;h++)if(g=f[h]){var m=g.l,v=g.i,y=g.j,b=g.h;m==s&&v==u&&y==l&&b==c||(d.payload&&e.nestedCues.push(d),d=ra(r,i,m,v,y,b),s=m,u=v,l=y,c=b),d.payload+=g.g}else d.payload+=" ";d.payload&&e.nestedCues.push(d),a!==o&&(d=ia(r,i),e.nestedCues.push(d)),d=ra(r,i,s,u,l,c)}}return e.nestedCues.length?{cue:e,stream:t}:null}function ra(e,t,n,r,i,a){return e=new ie(e,t,""),n&&e.textDecoration.push("underline"),r&&(e.fontStyle="italic"),e.color=i,e.backgroundColor=a,e}function ia(e,t){return(e=new ie(e,t,"")).lineBreak=!0,e}function aa(e,t,n,r,i){this.g=e,this.l=t,this.i=n,this.h=r,this.j=i}function oa(e,t){this.i=[],this.g=1,this.h=0,this.u=e,this.s=t,this.j=this.m=!1,this.l="white",this.o="black",ua(this)}function sa(e,t,n){return na(new ie(t,n,""),"CC"+(e.u<<1|e.s+1),e.i,t,n)}function ua(e){da(e,0,15),e.g=1}function la(e,t,n){if(!(32>n||127<n)){var r="";switch(t){case fa:r=ma.has(n)?ma.get(n):String.fromCharCode(n);break;case ha:r=va.get(n);break;case pa:e.i[e.g].pop(),r=ya.get(n);break;case ga:e.i[e.g].pop(),r=ba.get(n)}r&&e.i[e.g].push(new aa(r,e.m,e.j,e.o,e.l))}}function ca(e,t,n,r){if(!(0>n||0>t))if(t>=n)for(--r;0<=r;r--)e.i[t+r]=e.i[n+r].map((function(e){return e}));else for(var i=0;i<r;i++)e.i[t+i]=e.i[n+i].map((function(e){return e}))}function da(e,t,n){for(var r=0;r<=n;r++)e.i[t+r]=[]}var fa=0,ha=1,pa=2,ga=3,ma=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"Ã"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"â–ˆ"]]),va=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"â„¢"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à "],[57,"â €"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),ya=new Map([[32,"Ã"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ãœ"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"â„ "],[45,"·"],[46,"“"],[47,"â€"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"ÃŽ"],[56,"Ã"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),ba=new Map([[32,"Ã"],[33,"ã"],[34,"Ã"],[35,"ÃŒ"],[36,"ì"],[37,"Ã’"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"Â¥"],[54,"¤"],[55,"│"],[56,"Ã…"],[57,"Ã¥"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"â”"],[62,"â””"],[63,"┘"]]);function wa(e,t){this.h=Sa,this.o=new oa(e,t),this.i=new oa(e,t),this.l=new oa(e,t),this.g=this.i,this.j=0,this.m=null}function xa(e,t,n){e.g=e.i;var r=e.g,i=null;return e.h!==Aa&&e.h!==Ca&&(i=sa(r,e.j,n),(n=e.i).g=0<n.h?n.h:0,da(n,0,15),(n=e.l).g=0<n.h?n.h:0,da(n,0,15),r.g=15),e.h=Aa,r.h=t,i}function Ea(e){e.h=ka,e.g=e.l,e.g.h=0}function Ta(e){G("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=Ca}var Sa=0,ka=1,Aa=3,Ca=4,Ia="black green blue cyan red yellow magenta black".split(" "),_a="white green blue cyan red yellow magenta white_italics".split(" ");function Ma(){this.l=!1,this.B=this.F=0,this.D=Ua,this.i=[],this.g=this.h=this.j=0,this.u=this.o=!1,this.s="white",this.m="black",Ra(this)}function Ra(e){e.i=[];for(var t=0;16>t;t++)e.i.push(Pa())}function Pa(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function Da(e,t){Na(e)&&(e.i[e.h][e.g]=new aa(t,e.u,e.o,e.m,e.s),e.g++)}function Na(e){var t=e.g<e.B&&0<=e.g;return e.h<e.F&&0<=e.h&&t}function Oa(e,t,n){var r=new ie(e.j,t,"");return r.textAlign=e.D===La?"left":e.D===ja?"right":se,(n=na(r,"svc"+n,e.i,e.j,t))&&(e.j=t),n}Ma.prototype.isVisible=function(){return this.l};var La=0,ja=1,Ua=2;function Fa(){this.i=[],this.h=null,this.g=0}function Ba(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new za(e.h)),e.h=null,e.g=0))}function za(e){this.g=0,this.h=e}function Va(e){if(!e.ha())throw new Re(2,2,3e3);return e.h[e.g++]}function Ha(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function qa(e,t,n,r){if(128<=n&&135>=n)r=7&n,e.h[r]&&(e.g=e.h[r]);else{if(136===n){n=Va(t).value,t=null;for(var i=(n=l(Ka(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=Oa(i,r,e.i)),Ra(i);return t}if(137===n)for(n=(t=l(Ka(e,t=Va(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=r),n.l=!0;else{if(138===n){for(n=Va(t).value,t=null,i=(n=l(Ka(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=Oa(i,r,e.i)),i.l=!1;return t}if(139===n){for(n=Va(t).value,t=null,i=(n=l(Ka(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()?t=Oa(i,r,e.i):i.j=r,i.l=!i.l;return t}if(140===n)return Wa(e,t=Va(t).value,r);if(143===n)return r=Wa(e,255,r),Ga(e),r;if(144===n)t.skip(1),r=Va(t).value,e.g&&(e.g.o=0<(128&r),e.g.u=0<(64&r));else if(145===n)r=Va(t).value,n=Va(t).value,t.skip(1),e.g&&(t=$a((48&n)>>4,(12&n)>>2,3&n),e.g.s=$a((48&r)>>4,(12&r)>>2,3&r),e.g.m=t);else if(146===n)r=Va(t).value,t=Va(t).value,e.g&&((e=e.g).h=15&r,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),r=Va(t).value,t.skip(1),e.g&&(e.g.D=3&r);else if(152<=n&&159>=n){if(n=(15&n)-8,!(i=null!==e.h[n])){var a=new Ma;a.j=r,e.h[n]=a}r=Va(t).value,Va(t),Va(t),a=Va(t).value;var o=Va(t).value;t=Va(t).value,i&&0===(7&t)||((t=e.h[n]).h=0,t.g=0,t.u=!1,t.o=!1,t.s="white",t.m="black"),(t=e.h[n]).l=0<(32&r),t.F=1+(15&a),t.B=1+(63&o),e.g=e.h[n]}}}return null}function Ka(e,t){for(var n=[],r=0;8>r;r++)1===(1&t)&&e.h[r]&&n.push(r),t>>=1;return n}function Wa(e,t,n){for(var r=null,i=(t=l(Ka(e,t))).next();!i.done;i=t.next()){i=i.value;var a=e.h[i];a.isVisible()&&(r=Oa(a,n,e.i)),e.h[i]=null}return r}function Ga(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function $a(e,t,n){var r={0:0,1:0,2:1,3:1};return Ya[(e=r[e])<<2|(t=r[t])<<1|(n=r[n])]}za.prototype.ha=function(){return this.g<this.h.length},za.prototype.Z=function(){return this.g},za.prototype.skip=function(e){if(this.g+e>this.h.length)throw new Re(2,2,3e3);this.g+=e};var Xa=new Map([[32," "],[33," "],[37,"…"],[42,"Å "],[44,"Å’"],[48,"â–ˆ"],[49,"‘"],[50,"’"],[51,"“"],[52,"â€"],[53,"•"],[57,"â„¢"],[58,"Å¡"],[60,"Å“"],[61,"â„ "],[63,"Ÿ"],[118,"â…›"],[119,"â…œ"],[120,"â…"],[121,"â…ž"],[122,"│"],[123,"â”"],[124,"â””"],[125,"─"],[126,"┘"],[127,"┌"]]),Ya="black blue green cyan red magenta yellow white".split(" ");function Qa(){this.h=[],this.g=[],this.i=new Fa,this.l=0,this.s=new Map([["CC1",new wa(0,0)],["CC2",new wa(0,1)],["CC3",new wa(1,0)],["CC4",new wa(1,1)]]),this.o=this.m=0,this.j=new Map,Ja(this)}function Ja(e){e.m=0,e.o=0;for(var t=(e=l(e.s.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.m=null,ua(t.i),ua(t.l),ua(t.o)}function Za(e,t){var n=t.type;if(16===(112&t.xa)){var r=t.xa>>3&1;0===n?e.m=r:e.o=r}if(n=e.s.get("CC"+(n<<1|(n?e.o:e.m)+1)),255===t.xa&&255===t.La||!t.xa&&!t.La||!to(t.xa)||!to(t.La))return 45<=++e.l&&Ja(e),null;if(e.l=0,t.xa&=127,t.La&=127,!t.xa&&!t.La)return null;if(e=null,16===(112&t.xa))e:{if(r=t.xa,e=t.La,n.m===(r<<8|e))n.m=null;else if(n.m=r<<8|e,16===(240&r)&&64===(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|e>>5&1];var i=(30&e)>>1;r="white";var a=!1;if(7>i?r=_a[i]:7===i&&(a=!0),e=1===(1&e),n.h!==Ca){if(i=n.g,n.h===Aa&&t!==i.g){var o=1+t-i.h;ca(i,o,1+i.g-i.h,i.h),da(i,0,o-1),da(i,t+1,15-t)}i.g=t,n.g.m=e,n.g.j=a,n.g.l=r,n.g.o="black"}}else if(17===(247&r)&&32===(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",la(n.g,fa,32),r=!1,"white_italics"===(t=_a[(14&e)>>1])&&(t="white",r=!0),n.g.m=1===(1&e),n.g.j=r,n.g.l=t;else if(16===(247&r)&&32===(240&e)||23===(247&r)&&45===(255&e))t="black",0===(7&r)&&(t=Ia[(14&e)>>1]),n.g.o=t;else if(17===(247&r)&&48===(240&e))la(n.g,ha,e);else if(18===(246&r)&&32===(224&e))la(n.g,1&r?ga:pa,e);else if(20===(246&r)&&32===(240&e)){switch(e=t.pts,r=null,t.La){case 32:Ea(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=xa(n,2,e);break;case 38:r=xa(n,3,e);break;case 39:r=xa(n,4,e);break;case 40:la(n.g,fa,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=e;break;case 42:ua(n.o),Ta(n);break;case 43:Ta(n);break;case 44:t=n.i,r=null,n.h!==Ca&&(r=sa(t,n.j,e)),da(t,0,15);break;case 45:t=n.g,n.h!==Aa?r=null:(r=sa(t,n.j,e),ca(t,(a=t.g-t.h+1)-1,a,t.h),da(t,0,a-1),da(t,t.g,15-t.g),n.j=e);break;case 46:da(n.l,0,15);break;case 47:t=null,n.h!==Ca&&(t=sa(n.i,n.j,e)),r=n.l,n.l=n.i,n.i=r,Ea(n),n.j=e,r=t}e=r;break e}e=null}else r=t.La,la(n.g,fa,t.xa),la(n.g,fa,r);return e}function eo(e,t){var n=[];try{for(;t.ha();){var r=Va(t).value,i=(224&r)>>5,a=31&r;if(7===i&&0!=a&&(i=63&Va(t).value),0!=i){e.j.has(i)||e.j.set(i,new Ha(i));for(var o=e.j.get(i),s=t.Z();t.Z()-s<a;){var u=Va(i=t),l=u.value,c=u.pts;if(16===l)l=l<<16|Va(i).value;if(0<=l&&31>=l){var d=c;if(o.g){var f=o.g;switch(i=null,l){case 8:!Na(f)||0>=f.g&&0>=f.h||(0>=f.g?(f.g=f.B-1,f.h--):f.g--,f.i[f.h][f.g]=null);break;case 13:if(f.isVisible()&&(i=Oa(f,d,o.i)),f.h+1>=f.F){d=f;for(var h=0,p=1;16>p;p++,h++)d.i[h]=d.i[p];for(p=0;1>p;p++,h++)d.i[h]=Pa()}else f.h++;f.g=0;break;case 14:f.isVisible()&&(i=Oa(f,d,o.i)),f.i[f.h]=Pa(),f.g=0;break;case 12:f.isVisible()&&(i=Oa(f,d,o.i)),Ra(f),(d=f).h=0,d.g=0}var g=i}else g=null}else if(128<=l&&159>=l)g=qa(o,i,l,c);else{if(4096<=l&&4127>=l)8<=(d=255&l)&&15>=d?i.skip(1):16<=d&&23>=d?i.skip(2):24<=d&&31>=d&&i.skip(3);else if(4224<=l&&4255>=l)128<=(d=255&l)&&135>=d?i.skip(4):136<=d&&143>=d&&i.skip(5);else if(32<=l&&127>=l)i=l,o.g&&Da(o.g,127===i?"♪":String.fromCharCode(i));else if(160<=l&&255>=l)o.g&&Da(o.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(i=255&l,o.g)if(Xa.has(i)){var m=Xa.get(i);Da(o.g,m)}else Da(o.g,"_")}else 4256<=l&&4351>=l&&o.g&&Da(o.g,160!=(255&l)?"_":"[CC]");g=null}(i=g)&&n.push(i)}}}}catch(e){if(!(e instanceof Re&&3e3===e.code))throw e;G("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function to(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function no(){}function ro(e,t){var n=null,r=null,i=null,a=e.K();return 1&t&&(i=e.$a()),2&t&&e.skip(4),8&t&&(n=e.K()),16&t&&(r=e.K()),{trackId:a,Ce:n,xf:r,rh:i}}function io(e,t){return{we:1==t?e.$a():e.K()}}function ao(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.K()}}function oo(e,t,n){var r=e.K(),i=[],a=null;1&n&&(a=e.K()),4&n&&e.skip(4);for(var o=0;o<r;o++){var s={ee:null,sampleSize:null,ed:null};256&n&&(s.ee=e.K()),512&n&&(s.sampleSize=e.K()),1024&n&&e.skip(4),2048&n&&(s.ed=0==t?e.K():e.Pe()),i.push(s)}return{wh:r,Re:i,wf:a}}function so(){this.j=new Map,this.i=this.h=0,this.g=uo}no.prototype.init=function(){},no.prototype.parse=function(){return[]},so.prototype.init=function(e){function t(e){(e=e.name)in fo&&(n.g=fo[e])}var n=this,r=[],i=[];if((new Wr).box("moov",Gr).box("mvex",Gr).P("trex",(function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.K(),t=t.K(),n.h=e,n.i=t})).box("trak",Gr).P("tkhd",(function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.K(),r.push(e)})).box("mdia",Gr).P("mdhd",(function(e){e=ao(e.reader,e.version),i.push(e.timescale)})).box("minf",Gr).box("stbl",Gr).P("stsd",$r).box("avc1",t).box("avc3",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("encv",Xr).box("sinf",Gr).box("frma",(function(e){(e=Jr(e=e.reader.K()))in fo&&(n.g=fo[e])})).parse(e,!0),!r.length||!i.length||r.length!=i.length)throw new Re(2,2,2010);this.g==uo&&W("Unable to determine bitstream format for CEA parsing!"),r.forEach((function(e,t){n.j.set(e,i[t])}))},so.prototype.parse=function(e){var t=this;if(this.g==uo)return[];var n=[],r=this.h,i=this.i,a=[],o=null,s=null,u=null,d=9e4;return(new Wr).box("moof",(function(e){o=e.start,Gr(e)})).box("traf",Gr).P("trun",(function(e){e=oo(e.reader,e.version,e.flags),a=e.Re,s=e.wf})).P("tfhd",(function(e){e=ro(e.reader,e.flags),r=e.Ce||t.h,i=e.xf||t.i,e=e.trackId,t.j.has(e)&&(d=t.j.get(e))})).P("tfdt",(function(e){u=io(e.reader,e.version).we})).box("mdat",(function(e){if(null===u)throw new Re(2,2,2010);e:{var f=e.reader,h=u,p=d,g=r,m=i,v=a,y=0,b=m;for(v.length&&(b=v[0].sampleSize||m),f.skip((o||0)+(s||0)-e.start-8);f.ha();){e=f.K();var w=f.Ra();switch(t.g){case lo:w=6==(w&=31);break;case co:w=39==(w=w>>1&63)||40==w;break;default:break e}if(w){w=0,v.length>y&&(w=v[y].ed||0),w=(h+w)/p;for(var x,E=[],T=f.Za(e-1),S=x=0;S<T.length;)2==x&&3==T[S]?(x=0,(T=[].concat(c(T))).splice(S,1),T=new Uint8Array(T)):0==T[S]?x++:x=0,S++;for(x=T,S=0;S<x.length;){for(T=0;255==x[S];)T+=255,S++;T+=x[S++];for(var k=0;255==x[S];)k+=255,S++;k+=x[S++],4==T&&E.push(x.subarray(S,S+k)),S+=k}for(x=(E=l(E)).next();!x.done;x=E.next())n.push({ig:x.value,pts:w})}else try{f.skip(e-1)}catch(e){break}0==(b-=e+4)&&(h=v.length>y?h+(v[y].ee||g):h+g,y++,b=v.length>y&&v[y].sampleSize||m)}}})).parse(e,!1),n};var uo=0,lo=1,co=2,fo={avc1:lo,avc3:lo,hev1:co,hvc1:co,dvh1:co,dvhe:co};function ho(e){this.h=new no,e.includes("video/mp4")&&(this.h=new so),this.g=new Qa}function po(e,t){for(var n=(t=l(t=e.h.parse(t))).next();!n.done;n=t.next()){var r=n.value,i=Ie(r.ig);if(0<i.length&&(n=e.g,r=r.pts,181===(i=new Hr(i,0)).Ra()&&49===i.$d()&&1195456820===i.K()&&3===i.Ra())){var a=i.Ra();if(0!==(64&a)){a&=31,i.skip(1);for(var o=0;o<a;o++){var s=i.Ra(),u=(4&s)>>2,d=i.Ra(),f=i.Ra();u&&(0===(s&=3)||1===s?n.h.push({pts:r,type:s,xa:d,La:f,order:n.h.length}):(n.g.push({pts:r,type:s,value:d,order:n.g.length}),n.g.push({pts:r,type:2,value:f,order:n.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var r=l(e.h),i=r.next();!i.done;i=r.next())(i=Za(e,i.value))&&n.push(i);for(i=(r=l(e.g)).next();!i.done;i=r.next())Ba(e.i,i.value);for(i=(r=l(e.i.i)).next();!i.done;i=r.next())i=eo(e,i.value),n.push.apply(n,c(i));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function go(e,t,n,r,i){this.ya=e,this.Ba=t,this.ka=n,this.Od=void 0===r?null:r,this.timescale=i}function mo(e,t,n,r,i,a,o,s,u,l,c,d,f,h,p){l=void 0===l?[]:l,h=void 0===h?vo:h,this.startTime=e,this.j=this.endTime=t,this.u=n,this.Ba=r,this.ka=i,this.h=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=u,this.i=l,this.tilesLayout=void 0===c?"":c,this.s=void 0===d?null:d,this.g=void 0===f?null:f,this.status=h,this.l=void 0===p?null:p,this.o=null,this.m=0}ho.prototype.init=function(e){this.h.init(e)},go.prototype.lc=function(){return this.Ba},go.prototype.hc=function(){return this.ka},B("shaka.media.InitSegmentReference",go),go.prototype.getEndByte=go.prototype.hc,go.prototype.getStartByte=go.prototype.lc,(r=mo.prototype).ya=function(){return this.u()},r.getStartTime=function(){return this.startTime},r.Ef=function(){return this.endTime},r.lc=function(){return this.Ba},r.hc=function(){return this.ka},r.Vf=function(){return this.tilesLayout},r.Uf=function(){return this.s},r.Eb=function(){return this.status},r.bg=function(){this.status=yo},r.Ye=function(e){this.o=e},r.Sf=function(){return this.o},r.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=l(this.i),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.j+=e},r.oe=function(e){null==this.g?K("Sync attempted without sync time!"):(e=this.g-e-this.startTime,.001<=Math.abs(e)&&this.offset(e))},B("shaka.media.SegmentReference",mo),mo.prototype.syncAgainst=mo.prototype.oe,mo.prototype.offset=mo.prototype.offset,mo.prototype.getThumbnailSprite=mo.prototype.Sf,mo.prototype.setThumbnailSprite=mo.prototype.Ye,mo.prototype.markAsUnavailable=mo.prototype.bg,mo.prototype.getStatus=mo.prototype.Eb,mo.prototype.getTileDuration=mo.prototype.Uf,mo.prototype.getTilesLayout=mo.prototype.Vf,mo.prototype.getEndByte=mo.prototype.hc,mo.prototype.getStartByte=mo.prototype.lc,mo.prototype.getEndTime=mo.prototype.Ef,mo.prototype.getStartTime=mo.prototype.getStartTime,mo.prototype.getUris=mo.prototype.ya;var vo=0,yo=1;function bo(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function wo(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function xo(e,t){return!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t>=e.start(0)}function Eo(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,r=(e=l(To(e))).next();!r.done;r=e.next()){var i=r.value;r=i.start,(i=i.end)>t&&(n+=i-Math.max(r,t))}return n}function To(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function So(){}function ko(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function Ao(e){var t={key:e.type,description:"",data:""};if("TXXX"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var r=xt(Ie(e.data,1,n));return e=xt(Ie(e.data,2+n)).replace(/\0*$/,""),t.description=r,t.data=e,t}return"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(n=e.data.subarray(1).indexOf(0))?null:(r=xt(Ie(e.data,1,n)),e=xt(Ie(e.data,2+n)).replace(/\0*$/,""),t.description=r,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(r=e.data.indexOf(0))?null:(r=xt(Ie(e.data,0,r)),e=Ce(e.data.subarray(r.length+1)),t.description=r,t.data=e,t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(e=xt(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):"W"===e.type[0]?(e=xt(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=Ce(e.data),t):null}function Co(e){for(var t=0,n=[];t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9];){var r=ko(e,t+6);for(e[t+5]>>6&1&&(t+=10),r=(t+=10)+r;t+10<r;){var i=e.subarray(t),a=ko(i,4);(a=Ao(i={type:String.fromCharCode(i[0],i[1],i[2],i[3]),size:a,data:i.subarray(10,10+a)}))&&n.push(a),t+=i.size+10}t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]&&(t+=10)}return n}function Io(){this.o=null,this.s=!1,this.l=this.m=null,this.B=[],this.g=this.h=null,this.u=[],this.j=null,this.i=[]}function _o(e){if(1!==(e[0]<<16|e[1]<<8|e[2]))return null;var t={data:new Uint8Array(0),vh:6+(e[4]<<8|e[5]),pts:null,dts:null},n=e[7];return 192&n&&(t.pts=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,t.dts=t.pts,64&n&&(t.dts=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)),t.data=e.subarray(9+e[8]),t}function Mo(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(71===e[n]&&71===e[n+188]&&71===e[n+376])return n;n++}return-1}function Ro(e,t,n){this.g=null,this.i=-1,this.j=e,this.h=t,this.l=n,"undefined"===typeof libDPIModule&&W("Could not Find LCEVC Library dependencies on this page"),"undefined"===typeof LcevcDil?W("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||W(LcevcDil.SupportObject.SupportError),"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}function Po(e,t){var n=Do;switch(t.mimeType){case"video/webm":n=No;break;case"video/mp4":n=Oo}e.g&&(e.i=t.id,e.g.setLevelSwitching(t.id,!0),e.g.setContainerFormat(n))}mo.Status={Hg:vo,oh:yo,Vg:2},B("shaka.util.Id3Utils",So),So.getID3Frames=Co,Io.prototype.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,Mo(e)),n=e.length-(e.length+t)%188,r=!1,i=t;i<n;i+=188)if(71===e[i]){var a=!!(64&e[i+1]),o=((31&e[i+1])<<8)+e[i+2];if(1<(48&e[i+3])>>4){var s=i+5+e[i+4];if(s===i+188)continue}else s=i+4;switch(o){case 0:a&&(s+=e[s]+1),this.o=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.o:a&&(s+=e[s]+1),o={audio:-1,video:-1,Ed:-1,audioCodec:"",videoCodec:""};var u=s+3+((15&(a=e)[s+1])<<8|a[s+2])-4;for(s+=12+((15&a[s+10])<<8|a[s+11]);s<u;){var l=(31&a[s+1])<<8|a[s+2];switch(a[s]){case 15:-1===o.audio&&(o.audio=l,o.audioCodec="aac");break;case 21:-1===o.Ed&&(o.Ed=l);break;case 27:-1===o.video&&(o.video=l,o.videoCodec="avc");break;case 3:case 4:-1===o.audio&&(o.audio=l,o.audioCodec="mp3");break;case 36:-1===o.video&&(o.video=l,o.videoCodec="hvc")}s+=5+((15&a[s+3])<<8|a[s+4])}a=o,null==this.l&&(this.l=a.video),null==this.g&&(this.g=a.audio),null==this.j&&(this.j=a.Ed),r&&!this.s&&(r=!1,i=t-188),this.s=!0;break;case this.l:a=e.subarray(s,i+188),null==this.m&&(s=_o(a))&&null!=s.pts&&(this.m=s.pts/9e4),this.B.push(a);break;case this.g:a=e.subarray(s,i+188),null==this.h&&(s=_o(a))&&null!=s.pts&&(this.h=s.pts/9e4),this.u.push(a);break;case this.j:this.i.push(e.subarray(s,i+188));break;default:r=!0}}return this},Io.prototype.getStartTime=function(){return{audio:this.h,video:this.m}},B("shaka.util.TsParser",Io),Ro.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},B("shaka.lcevc.Dil",Ro),Ro.prototype.release=Ro.prototype.release;var Do=0,No=1,Oo=2;function Lo(e,t,n,r){var i=this;this.j=e,this.F=null,this.m=t,this.h={},this.L={},this.O={},this.g=null,this.H=!1,this.V=n||function(){},this.D=r||null,this.i={},this.u=new Lr,this.o={},this.s=null,this.J=new rt,this.l=function(e,t){var n=new MediaSource;return e.u.ma(n,"sourceopen",(function(){URL.revokeObjectURL(e.M),t.resolve()})),e.M=Zo(n),e.j.src=e.M,n}(this,this.J),this.G=new Nr((function(){return function(e){var t,n,r,i,a,o,s;return P((function(u){if(1==u.g){for(n in t=[],e.i)for(r=e.i[n],i=r[0],e.i[n]=r.slice(0,1),i&&t.push(i.p.catch($e)),a=l(r.slice(1)),o=a.next();!o.done;o=a.next())o.value.p.reject(new Re(2,7,7003,void 0));for(s in e.g&&t.push(e.g.destroy()),e.m&&t.push(e.m.destroy()),e.o)t.push(e.o[s].destroy());return w(u,Promise.all(t),2)}e.u&&(e.u.release(),e.u=null),e.j&&(e.j.removeAttribute("src"),e.j.load(),e.j=null),e.F=null,e.l=null,e.g=null,e.m=null,e.h={},e.o={},e.s=null,e.i={},e.D=null,x(u)}))}(i)})),this.M="",this.B=!1,this.W=new rt}function jo(e,t,n){e.g||(e.g=new $t(e.m));var r=e.g;e=e.H,"application/cea-608"!=t&&"application/cea-708"!=t&&(r.j=(0,Zt[t])(),r.j.setSequenceMode?r.j.setSequenceMode(n):W('Text parsers should have a "setSequenceMode" method!'),r.u=e)}function Uo(e){return!e.l||"ended"==e.l.readyState}function Fo(e,t){return t==et?e.g.g:bo(zo(e,t))}function Bo(e,t){return t==et?e.g.h:wo(zo(e,t))}function zo(e,t){try{return e.h[t].buffered}catch(e){return null}}function Vo(e,t,n,r,i,a,o){var s,u,c,d,f,h,p,g,m,v,y,b,E,T,S,k,A,C,I,_,M,R;return a=void 0!==a&&a,o=void 0!==o&&o,P((function(D){switch(D.g){case 1:if(t!=(s=tt).X){D.A(2);break}if(!e.B){D.A(3);break}return w(D,e.W,4);case 4:u=D.h,e.g.s=u;case 3:return w(D,function(e,t,n,r){var i,a,o,s;return P((function(u){return 1==u.g?w(u,Promise.resolve(),2):e.j&&e.i?null==n||null==r?(e.j.parseInit(Ie(t)),u.return()):(i=e.u?n:e.s,a={periodStart:e.s,segmentStart:n,segmentEnd:r,vttOffset:i},o=e.j.parseMedia(Ie(t),a),s=o.filter((function(t){return t.startTime>=e.l&&t.startTime<e.m})),e.i.append(s),null==e.g&&(e.g=Math.max(n,e.l)),e.h=Math.min(r,e.m),void x(u)):u.return()}))}(e.g,n,r?r.startTime:null,r?r.endTime:null),5);case 5:return D.return();case 2:if(c=Ie(n),d=e.L[t],e.o[t]&&(d=e.o[t].o),0>Mo(c)?ts.includes(d)&&((g=Co(c)).length&&r&&(m={cueTime:r.startTime,data:c,frames:g,dts:r.startTime,pts:r.startTime},e.V([m],0,r.endTime))):(f=(new Io).parse(c),h=r.startTime-(f.getStartTime()[t]||0),p=function(e){for(var t=[],n=new Uint8Array(0),r=e.i.length-1;0<=r;r--){var i=_o(n=Dt(e.i[r],n));i&&(t.unshift({cueTime:i.pts?i.pts/9e4:null,data:i.data,frames:Co(i.data),dts:i.dts,pts:i.pts}),n=new Uint8Array(0))}return t}(f),p.length&&e.V(p,h,r?r.endTime:null)),!e.o[t]){i&&t==s.va&&(e.g||jo(e,"text/vtt",e.B),e.s||(e.s=new ho(d)),r?(v=po(e.s,n)).length&&(y=e.h[s.va].timestampOffset,Jt(e.g,v,r.startTime,r.endTime,y)):e.s.init(n)),D.A(6);break}return a&&e.o[t].g.resetCaptions(),w(D,function(e,t){return e.j=!0,e.h=new rt,e.l=[],e.i=[],t=Ie(t),e.g.push(t),e.g.flush(),e.j&&e.h.reject(new Re(2,3,3018)),e.h}(e.o[t],n),7);case 7:b=D.h,e.g||jo(e,"text/vtt",e.B),b.captions&&b.captions.length&&(E=e.h[s.va].timestampOffset,T=function(e){for(var t=[],n=(e=l(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new ie(n.startTime,n.endTime,n.text)});return t}(b.captions),Jt(e.g,T,r?r.startTime:null,r?r.endTime:null,E)),n=b.data;case 6:if(n=function(e,t,n,r){var i=e.O[r];return null==n&&i&&(dt()||ct())&&"mp4"==e.L[r].split(";")[0].split("/")[1]&&(t=function(e){function t(){i=!0}function n(e){a.push(e),Gr(e)}e=Ie(e);var r,i=!1,a=[],o=[];if((new Wr).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).P("stsd",(function(e){r=e,a.push(e),$r(e)})).P("encv",t).P("enca",t).P("hev1",(function(e){o.push({box:e,lb:1701733238})})).P("hvc1",(function(e){o.push({box:e,lb:1701733238})})).P("avc1",(function(e){o.push({box:e,lb:1701733238})})).P("avc3",(function(e){o.push({box:e,lb:1701733238})})).P("ac-3",(function(e){o.push({box:e,lb:1701733217})})).P("ec-3",(function(e){o.push({box:e,lb:1701733217})})).P("mp4a",(function(e){o.push({box:e,lb:1701733217})})).parse(e),i)return e;if(0==o.length||!r)throw Pt(e),new Re(2,3,3019);o.reverse();for(var s=l(o),u=s.next();!u.done;u=s.next())u=u.value,e=Zi(e,r,u.box,a,u.lb);return e}(t)),t}(e,n,r?r.startTime:null,t),S=e.h[t],k=es,!e.B||S.mode==k||!r){D.A(8);break}if(A=e.l.duration,!(t==s.va||!(s.va in e.h))){D.A(9);break}return C=[S.appendWindowStart,S.appendWindowEnd],S.appendWindowStart=0,S.appendWindowEnd=1/0,I=S.timestampOffset,S.timestampOffset=0,w(D,Xo(e,t,(function(){return qo(e,t,n)})),10);case 10:return w(D,Xo(e,t,(function(){return Wo(e,t)})),11);case 11:return S.timestampOffset=I,S.appendWindowStart=C[0],S.appendWindowEnd=C[1],_=bo(zo(e,t)),M=(r.startTime||0)-(_||0),e.W.resolve(M),w(D,Xo(e,t,(function(){return Ko(e,t,0,A)})),12);case 12:if(t!=s.va){D.A(9);break}return w(D,Xo(e,t,(function(){e.j.currentTime-=.001,$o(e,t)})),9);case 9:return S.mode=k,w(D,e.Aa(A),8);case 8:return r&&e.B&&t!=s.X&&(a||o)&&(R=r.startTime,Xo(e,t,(function(){return Wo(e,t)})),Xo(e,t,(function(){return Go(e,t,R)}))),w(D,Xo(e,t,(function(){qo(e,t,n)})),16);case 16:x(D)}}))}function Ho(e,t){return P((function(n){return t==tt.X?e.g?w(n,e.g.remove(0,1/0),0):n.return():w(n,Xo(e,t,(function(){return Ko(e,t,0,e.l.duration)})),0)}))}function qo(e,t,n){if("video"==t&&e.D){var r=e.D;r.g&&r.g.appendBuffer(n,"video",r.i)}e.h[t].appendBuffer(n)}function Ko(e,t,n,r){r<=n?$o(e,t):e.h[t].remove(n,r)}function Wo(e,t){var n=e.h[t].appendWindowStart,r=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=r,$o(e,t)}function Go(e,t,n){0>n&&(n+=.001),e.h[t].timestampOffset=n,$o(e,t)}function $o(e,t){var n=e.i[t][0];n&&(n.p.resolve(),Qo(e,t))}function Xo(e,t,n){return Or(e.G),n={start:n,p:new rt},e.i[t].push(n),1==e.i[t].length&&Jo(e,t),n.p}function Yo(e,t){var n,r,i,a,o;return P((function(s){switch(s.g){case 1:for(i in Or(e.G),n=[],r={},e.h)r.Ub=new rt,a={start:function(e){return function(){return e.Ub.resolve()}}(r),p:r.Ub},e.i[i].push(a),n.push(r.Ub),1==e.i[i].length&&a.start(),r={Ub:r.Ub};return E(s,2),w(s,Promise.all(n),4);case 4:S(s,3);break;case 2:throw k(s);case 3:try{t()}catch(e){throw new Re(2,3,3015,e)}finally{for(o in e.h)Qo(e,o)}x(s)}}))}function Qo(e,t){e.i[t].shift(),Jo(e,t)}function Jo(e,t){var n=e.i[t][0];if(n)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new Re(2,3,3017,t)):n.p.reject(new Re(2,3,3015,r)),Qo(e,t)}}(r=Lo.prototype).destroy=function(){return this.G.destroy()},r.init=function(e,t,n){n=void 0!==n&&n;var r,i,a,o,s,u,c,d,f=this;return P((function(h){if(1==h.g)return r=tt,w(h,f.J,2);for(f.B=n,i={},a=l(e.keys()),o=a.next();!o.done;i={na:i.na},o=a.next())i.na=o.value,s=e.get(i.na),u=Ht(s.mimeType,s.codecs),i.na==r.X?jo(f,u,n):(!t&&J(u)||!Ut(u,i.na)||(f.o[i.na]=new jt(u),u=Bt(i.na,u)),c=u+f.F.sourceBufferExtraFeatures,d=f.l.addSourceBuffer(c),f.u.C(d,"error",function(e){return function(){f.i[e.na][0].p.reject(new Re(2,3,3014,f.j.error?f.j.error.code:0))}}(i)),f.u.C(d,"updateend",function(e){return function(){return $o(f,e.na)}}(i)),f.h[i.na]=d,f.L[i.na]=u,f.i[i.na]=[],f.O[i.na]=!!s.drmInfos.length);x(h)}))},r.configure=function(e){this.F=e},r.Na=function(){var e={total:To(this.j.buffered),audio:To(zo(this,"audio")),video:To(zo(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},r.remove=function(e,t,n){var r=this;return P((function(i){return w(i,e==tt.X?r.g.remove(t,n):Xo(r,e,(function(){return Ko(r,e,t,n)})),0)}))},r.flush=function(e){var t=this;return P((function(n){return e==tt.X?n.return():w(n,Xo(t,e,(function(){t.j.currentTime-=.001,$o(t,e)})),0)}))},r.endOfStream=function(e){var t=this;return P((function(n){return w(n,Yo(t,(function(){Uo(t)||(e?t.l.endOfStream(e):t.l.endOfStream())})),0)}))},r.Aa=function(e){var t=this;return P((function(n){return w(n,Yo(t,(function(){if(e<t.l.duration)for(var n in t.h){var r={start:function(){},p:new rt};t.i[n].unshift(r)}t.l.duration=e})),0)}))},r.getDuration=function(){return this.l.duration};var Zo=e.URL.createObjectURL,es="sequence",ts=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function ns(e,t,n){this.i=e,this.m=t,this.o=this.j=1/0,this.g=1,this.h=this.l=null,this.s=0,this.u=!0,this.B=0,this.D=void 0===n||n,this.F=0,this.G=!1}function rs(e,t,n){this.l=n,this.j=e,this.s=as(e),this.g=e.g.currentTime,this.m=Date.now()/1e3,this.h=!1,this.o=0,this.u=t,this.i=function(){}}function is(e){this.g=e}function as(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=l(To(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function os(e,t,n,r,i){var a=this;this.o=i,this.g=e,this.s=t,this.D=n,this.i=new Lr,this.m=!1,this.B=e.readyState,this.u=0,this.h=r,this.l=!1,this.i.C(e,"waiting",(function(){return ss(a)})),this.j=new ot((function(){ss(a)})).Ca(.25)}function ss(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.m)return}else e.m=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.B&&(e.B=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,r=as(n),i=n.g.currentTime,a=Date.now()/1e3;t.g==i&&t.s==r||(t.m=a,t.g=i,t.s=r,t.h=!1),(r=(i=a-t.m)>=t.u&&r&&!t.h)&&(t.i(t.g,i),t.h=!0,t.g=n.g.currentTime,t.o++,t.l(new vr("stalldetected"))),t=!r}t&&(t=e.g.currentTime,r=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=To(e).findIndex((function(e,r,i){return e.start>t&&(0==r||i[r-1].end-t<=n)})))?e:null}(n=e.g.buffered,t,e.D.gapDetectionThreshold),null==r||0==r&&!e.l||((i=n.start(r))>=e.s.Oa()||.001>i-t||(0!=r&&n.end(r-1),e.g.currentTime=i,e.u++,e.o(new vr("gapjumped")))))}}}function us(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=ls.value().get(t),n.ma(e,t,r))}(r=ns.prototype).getDuration=function(){return this.j},r.Kf=function(){return this.g},r.Xe=function(e){this.i=e},r.Aa=function(e){this.j=e},r.Pf=function(){return this.i},r.Ve=function(e){this.s=e},r.yc=function(e){this.u=e},r.me=function(e){this.o=e},r.We=function(e){this.m=e},r.Df=function(){return this.m},r.Ib=function(e){if(0!=e.length){for(var t=e[0].startTime,n=e[0].endTime,r=(e=l(e)).next();!r.done;r=e.next())r=r.value,t=Math.min(t,r.startTime),n=Math.max(n,r.endTime),this.g=Math.max(this.g,r.endTime-r.startTime);this.Td(t),this.h=Math.max(this.h,n),null!=this.i&&this.D&&!this.G&&(this.i=(Date.now()+this.s)/1e3-this.h-this.g)}},r.Md=function(){this.G=!0},r.Td=function(e){this.l=null==this.l?e:Math.min(this.l,e)},r.Sd=function(e){this.g=Math.max(this.g,e)},r.offset=function(e){null!=this.l&&(this.l+=e),null!=this.h&&(this.h+=e)},r.U=function(){return 1/0==this.j&&!this.u},r.jb=function(){return 1/0!=this.j&&!this.u},r.Pa=function(){return Math.max(this.B,this.gb()-this.o)},r.Ze=function(e){this.B=e},r.gb=function(){return this.U()||this.jb()?Math.min(Math.max(0,(Date.now()+this.s)/1e3-this.g-this.i)+this.F,this.j):this.h?Math.min(this.h,this.j):this.j},r.kc=function(e){var t=Math.max(this.l,this.B);return 1/0==this.o?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.gb()-this.o+e,this.Oa()))},r.Db=function(){return this.kc(0)},r.Oa=function(){return Math.max(0,this.gb()-(this.U()||this.jb()?this.m:0))},r.df=function(){return!(null==this.i||null!=this.h&&this.D)},r.Ue=function(e){this.F=e},B("shaka.media.PresentationTimeline",ns),ns.prototype.setAvailabilityTimeOffset=ns.prototype.Ue,ns.prototype.usingPresentationStartTime=ns.prototype.df,ns.prototype.getSeekRangeEnd=ns.prototype.Oa,ns.prototype.getSeekRangeStart=ns.prototype.Db,ns.prototype.getSafeSeekRangeStart=ns.prototype.kc,ns.prototype.getSegmentAvailabilityEnd=ns.prototype.gb,ns.prototype.setUserSeekStart=ns.prototype.Ze,ns.prototype.getSegmentAvailabilityStart=ns.prototype.Pa,ns.prototype.isInProgress=ns.prototype.jb,ns.prototype.isLive=ns.prototype.U,ns.prototype.offset=ns.prototype.offset,ns.prototype.notifyMaxSegmentDuration=ns.prototype.Sd,ns.prototype.notifyMinSegmentStartTime=ns.prototype.Td,ns.prototype.lockStartTime=ns.prototype.Md,ns.prototype.notifySegments=ns.prototype.Ib,ns.prototype.getDelay=ns.prototype.Df,ns.prototype.setDelay=ns.prototype.We,ns.prototype.setSegmentAvailabilityDuration=ns.prototype.me,ns.prototype.setStatic=ns.prototype.yc,ns.prototype.setClockOffset=ns.prototype.Ve,ns.prototype.getPresentationStartTime=ns.prototype.Pf,ns.prototype.setDuration=ns.prototype.Aa,ns.prototype.setPresentationStartTime=ns.prototype.Xe,ns.prototype.getMaxSegmentDuration=ns.prototype.Kf,ns.prototype.getDuration=ns.prototype.getDuration,rs.prototype.release=function(){this.l=this.j=null,this.i=function(){}},os.prototype.release=function(){this.i&&(this.i.release(),this.i=null),null!=this.j&&(this.j.stop(),this.j=null),this.h&&(this.h.release(),this.h=null),this.g=this.s=this.o=null},os.prototype.Wd=function(){this.l=!0,ss(this)};var ls=new it((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function cs(e,t,n){var r=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new Lr,this.i=new gs(e),us(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){hs(r,r.j)}))}function ds(e){return e.m?e.g.currentTime:e.j}function fs(e,t){0<e.g.readyState?ms(e.i,t):us(e.g,HTMLMediaElement.HAVE_METADATA,e.h,(function(){hs(e,e.j)}))}function hs(e,t){.001>Math.abs(e.g.currentTime-t)?ps(e):(e.h.ma(e.g,"seeking",(function(){ps(e)})),ms(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function ps(e){e.m=!0,e.h.C(e.g,"seeking",(function(){return e.l()}))}function gs(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new ot((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function ms(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.Ca(.1)}function vs(e){this.g=e,this.j=!1,this.h=null,this.i=new Lr}function ys(e,t,n,r,i,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.B=t.minBufferTime||0,this.l=n,this.u=i,this.s=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var r=t.stallSkip;return function(e,t){e.i=t}(t=new rs(new is(e),t.stallThreshold,n),(function(){r?e.currentTime+=r:(e.pause(),e.play())})),t}(e,n,a),this.j=new os(e,t.presentationTimeline,n,this.o,a),this.h=new cs(e,(function(){var e=o.j;e.m=!0,e.l=!1;var t=ds(o.h);return e=ws(o,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!o.s||o.s<t-1)?(o.s=t,fs(o.h,e),e=void 0):(o.u(),e=void 0),e}),function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.Db():e.g.Oa():0>t&&(t=e.g.Oa()+t),bs(e,xs(e,t))}(this,r)),this.m=new ot((function(){if(0!=o.i.readyState&&!o.i.paused){var e=ds(o.h),t=o.g.Db(),n=o.g.Oa();3>n-t&&(t=n-3),e<t&&(e=ws(o,e),o.i.currentTime=e)}}))}function bs(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function ws(e,t){var n=Math.max(e.B,e.l.rebufferingGoal),r=e.l.safeSeekOffset,i=e.g.Db(),a=e.g.Oa(),o=e.g.getDuration();3>a-i&&(i=a-3);var s=e.g.kc(n),u=e.g.kc(r);return n=e.g.kc(n+r),t>=o?bs(e,t):t>a?a:t<i?xo(e.i.buffered,u)?u:n:t>=s||xo(e.i.buffered,t)?t:n}function xs(e,t){var n=e.g.Db();return t<n?n:t>(e=e.g.Oa())?e:t}function Es(e){this.g=e,this.h=null,this.i=0,this.j=!1}function Ts(e,t){for(var n=(e=l(e.g)).next();!n.done;n=e.next())t(n.value)}function Ss(e,t,n){return new Es([new mo(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function ks(e,t,n){this.i=e,this.g=t,this.h=n}function As(){Es.call(this,[]),this.l=[]}function Cs(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Tc(),this.h=new ot((function(){t.g.Me(.25*t.i)}))}function Is(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.Tc()!=t&&e.g.le(t))}catch(e){}e.h.Ca(.25),0!=e.g.Tc()&&e.g.le(0)}function _s(e){var t=this;this.h=e,this.g=new Set,this.i=new ot((function(){Ms(t,!1)})).Ca(.25)}function Ms(e,t){for(var n=l(e.g),r=n.next();!r.done;r=n.next())r.value.j(e.h.currentTime,t)}function Rs(e){wr.call(this),this.g=new Map,this.h=e}function Ps(e){wr.call(this);var t=this;this.g=new Set,this.i=e,this.h=new ot((function(){for(var e=t.i(),n=l(t.g),r=n.next();!r.done;r=n.next())(r=r.value).endTime<e.start&&(t.g.delete(r),r=new vr("regionremove",new Map([["region",r]])),t.dispatchEvent(r))})).Ca(2)}function Ds(e){wr.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{rb:null,qb:Ls,ib:function(e,n){return Ns(t,"enter",e,n)}},{rb:Os,qb:Ls,ib:function(e,n){return Ns(t,"enter",e,n)}},{rb:js,qb:Ls,ib:function(e,n){return Ns(t,"enter",e,n)}},{rb:Ls,qb:Os,ib:function(e,n){return Ns(t,"exit",e,n)}},{rb:Ls,qb:js,ib:function(e,n){return Ns(t,"exit",e,n)}},{rb:Os,qb:js,ib:function(e,n){return Ns(t,"skip",e,n)}},{rb:js,qb:Os,ib:function(e,n){return Ns(t,"skip",e,n)}}],this.h=new Lr,this.h.C(this.i,"regionremove",(function(e){t.g.delete(e.region)}))}function Ns(e,t,n,r){t=new vr(t,new Map([["region",n],["seeking",r]])),e.dispatchEvent(t)}cs.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},gs.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},(r=vs.prototype).yd=function(){var e=this;us(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==e.h||0==e.h?e.j=!0:(e.i.ma(e.g,"seeking",(function(){e.j=!0})),e.g.currentTime=Math.max(0,e.g.currentTime+e.h))}))},r.release=function(){this.i&&(this.i.release(),this.i=null),this.g=null},r.zd=function(e){this.h=this.j?this.h:e},r.Ic=function(){return(this.j?this.g.currentTime:this.h)||0},r.ue=function(){return 0},r.te=function(){return 0},r.Ne=function(){},(r=ys.prototype).yd=function(){this.m.Ca(.25)},r.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.u=function(){}},r.zd=function(e){fs(this.h,e)},r.Ic=function(){var e=ds(this.h);return 0<this.i.readyState&&!this.i.paused?xs(this,e):e},r.ue=function(){return this.o?this.o.o:0},r.te=function(){return this.j.u},r.Ne=function(){this.j.Wd()},(r=Es.prototype).release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)},r.cg=function(){this.j=!0},r.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var r=this.g[n],i=n<t?this.g[n+1].startTime:r.endTime;if(e>=r.startTime&&e<i)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},r.get=function(e){return 0==this.g.length||0>(e-=this.i)||e>=this.g.length?null:this.g[e]},r.offset=function(e){if(!this.j)for(var t=l(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},r.pc=function(e){if(!this.j&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter((function(e){return Math.round(1e3*e.startTime)/1e3<t})),this.g.push.apply(this.g,c(e))}},r.Hb=function(e,t){var n=this;e=e.filter((function(e){return e.endTime>t&&(0==n.g.length||e.endTime>n.g[0].startTime)})),this.pc(e),this.eb(t)},r.eb=function(e){if(!this.j){var t=this.g.length;this.g=this.g.filter((function(t){return t.endTime>e})),this.i+=t-this.g.length}},r.Wa=function(e,t,n){if(n=void 0!==n&&n,!this.j){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;0!=this.g.length&&(e=this.g[this.g.length-1],this.g[this.g.length-1]=new mo(e.startTime,t,e.u,e.Ba,e.ka,e.h,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.i,e.tilesLayout,e.s,e.g,e.status,e.l))}},r.fd=function(e,t){var n=this;this.j||(this.h&&this.h.stop(),this.h=new ot((function(){var e=t();e?n.g.push.apply(n.g,c(e)):(n.h.stop(),n.h=null)})),this.h.Ca(e))},Es.prototype[Symbol.iterator]=function(){return this.Cb(0)},Es.prototype.Cb=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),r=-1;if(n&&0<n.i.length)for(var i=n.i.length-1;0<=i;--i){var a=n.i[i];if(e>=a.startTime&&e<a.endTime){t++,r=i-1;break}}return new ks(this,t,r)},B("shaka.media.SegmentIndex",Es),Es.forSingleSegment=Ss,Es.prototype.getIteratorForTime=Es.prototype.Cb,Es.prototype.updateEvery=Es.prototype.fd,Es.prototype.fit=Es.prototype.Wa,Es.prototype.evict=Es.prototype.eb,Es.prototype.mergeAndEvict=Es.prototype.Hb,Es.prototype.offset=Es.prototype.offset,Es.prototype.get=Es.prototype.get,Es.prototype.find=Es.prototype.find,Es.prototype.markImmutable=Es.prototype.cg,Es.prototype.release=Es.prototype.release,ks.prototype.vf=function(){return this.g},ks.prototype.current=function(){var e=this.i.get(this.g);return e&&0<e.i.length&&e.ya().length&&this.h>=e.i.length&&(this.g++,this.h=0,e=this.i.get(this.g)),e&&0<e.i.length?e.i[this.h]:e},ks.prototype.next=function(){var e=this.i.get(this.g);return e&&0<e.i.length?(this.h++,e.ya().length&&this.h==e.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0),{value:e=this.current(),done:!e}},B("shaka.media.SegmentIterator",ks),ks.prototype.next=ks.prototype.next,ks.prototype.current=ks.prototype.current,ks.prototype.currentPosition=ks.prototype.vf,m(As,Es),(r=As.prototype).clone=function(){var e=new As;return e.l=this.l.slice(),e},r.release=function(){for(var e=l(this.l),t=e.next();!t.done;t=e.next())t.value.release();this.l=[]},r.find=function(e){for(var t=0,n=l(this.l),r=n.next();!r.done;r=n.next()){var i=(r=r.value).find(e);if(null!=i)return i+t;t+=r.i+r.g.length}return null},r.get=function(e){for(var t=0,n=l(this.l),r=n.next();!r.done;r=n.next()){var i=(r=r.value).get(e-t);if(i)return i;t+=r.i+r.g.length}return null},r.offset=function(){},r.pc=function(){},r.eb=function(){},r.Hb=function(){},r.Wa=function(){},r.fd=function(){},B("shaka.media.MetaSegmentIndex",As),As.prototype.updateEvery=As.prototype.fd,As.prototype.fit=As.prototype.Wa,As.prototype.mergeAndEvict=As.prototype.Hb,As.prototype.evict=As.prototype.eb,As.prototype.merge=As.prototype.pc,As.prototype.offset=As.prototype.offset,As.prototype.get=As.prototype.get,As.prototype.find=As.prototype.find,As.prototype.release=As.prototype.release,Cs.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Cs.prototype.set=function(e){this.i=e,Is(this)},Cs.prototype.Pc=function(){return this.g.Pc()},_s.prototype.release=function(){this.i.stop();for(var e=l(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},m(Rs,wr),Rs.prototype.release=function(){this.g.clear(),wr.prototype.release.call(this)},Rs.prototype.j=function(e){for(var t=l(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var r=(n=n.value).rc,i=r.length-1;0<=i;i--){var a=r[i];if(a.position<=e){r=a.Od;break e}}r=null}if((i=r)&&(i=!((i=n.Ae)===r||i&&r&&i.bandwidth==r.bandwidth&&i.audioSamplingRate==r.audioSamplingRate&&i.codecs==r.codecs&&i.contentType==r.contentType&&i.frameRate==r.frameRate&&i.height==r.height&&i.mimeType==r.mimeType&&i.channelsCount==r.channelsCount&&i.pixelAspectRatio==r.pixelAspectRatio&&i.width==r.width)),i)e:{if(i=e,a=r.contentType,(a=this.h()[a])&&0<a.length){var o=a[a.length-1].end;if(i>=a[0].start&&i<o){i=!0;break e}}i=!1}i&&(n.Ae=r,JSON.stringify(r),n=new vr("qualitychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},m(Ps,wr),Ps.prototype.release=function(){this.g.clear(),this.h.stop(),wr.prototype.release.call(this)},m(Ds,wr),Ds.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,wr.prototype.release.call(this)},Ds.prototype.j=function(e,t){for(var n=l(this.i.g),r=n.next();!r.done;r=n.next()){r=r.value;var i=this.g.get(r),a=e<r.startTime?Os:e>r.endTime?js:Ls;this.g.set(r,a);for(var o=l(this.l),s=o.next();!s.done;s=o.next())(s=s.value).rb==i&&s.qb==a&&s.ib(r,t)}};var Os=1,Ls=2,js=3;function Us(e,t,n,r,i){return e=Cr(e,r,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Fs(e,t){var n=this;this.g=t,this.m=e,this.i=null,this.u=1,this.o=this.l=null,this.D=!1,this.j=new Map,this.B=!1,this.F=null,this.s=!1,this.h=new Nr((function(){return function(e){var t,n,r,i;return P((function(a){if(1==a.g){for(t=[],n=l(e.j.values()),r=n.next();!r.done;r=n.next())Js(i=r.value),t.push(Zs(i));return w(a,Promise.all(t),2)}e.j.clear(),e.g=null,e.m=null,e.i=null,x(a)}))}(n)}))}function Bs(e,t){var n=e.j.get("video");if(n){var r=n.stream;r&&(t?(t=r.trickModeVideo)&&!n.ob&&(Hs(e,t,!1,0,!1),n.ob=r):(r=n.ob)&&(n.ob=null,Hs(e,r,!0,0,!1)))}}function zs(e,t,n,r,i,a){n=void 0!==n&&n,r=void 0===r?0:r,i=void 0!==i&&i,a=void 0!==a&&a,e.l=t,e.B&&(t.video&&Hs(e,t.video,n,r,i,a),t.audio&&Hs(e,t.audio,n,r,i,a))}function Vs(e,t){e.o=t,e.B&&Hs(e,t,!0,0,!1)}function Hs(e,t,n,r,i,a){var o=e.j.get(t.type);o||t.type!=et?o&&(o.ob&&(t.trickModeVideo?(o.ob=t,t=t.trickModeVideo):o.ob=null),o.stream!=t||i)&&(t.type==et&&jo(e.g.R,Ht(t.mimeType,t.codecs),e.m.sequenceMode),o.stream.closeSegmentIndex&&o.stream.closeSegmentIndex(),o.stream=t,o.aa=null,o.ve=!!a,n&&(o.ac?o.hd=!0:o.ra?(o.bb=!0,o.Nc=r,o.hd=!0):(Js(o),Ys(e,o,!0,r).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,r;return P((function(i){if(1==i.g)return t.ta?(n=t.stream,r=t.ta,n.segmentIndex?i.A(2):w(i,n.createSegmentIndex(),2)):i.return();if(t.ta!=r||t.stream!=n)return i.return();var a=e.g.Sc(),o=Bo(e.g.R,t.type),s=t.stream.segmentIndex.find(t.pa?t.pa.endTime:a),u=null==s?null:t.stream.segmentIndex.get(s);s=u&&u.ka?u.ka-u.Ba:null,u&&!s&&(s=(u.endTime-u.getStartTime())*(t.stream.bandwidth||0)/8),s?((u=u.h)&&(s+=(u.ka?u.ka-u.Ba:null)||0),a=8*s/(u=e.g.getBandwidthEstimate())<(o||0)-a-Math.max(e.m.minBufferTime||0,e.i.rebufferingGoal)||t.ta.h.g>s):a=!1,a&&t.ta.abort(),x(i)}))}(e,o).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,r,i,a;P((function(o){switch(o.g){case 1:return n=tt,E(o,2),w(o,Ho(e.g.R,n.X),4);case 4:S(o,3);break;case 2:r=k(o),e.g&&e.g.onError(r);case 3:i=Ht(t.mimeType,t.codecs),jo(e.g.R,i,e.m.sequenceMode),(e.g.R.m.isTextVisible()||e.i.alwaysStreamText)&&(a=Ks(t),e.j.set(n.X,a),Qs(e,a,0)),x(o)}}))}(e,t)}function qs(e,t){t.ac||t.bb||(t.ra?(t.bb=!0,t.Nc=0):null==Fo(e.g.R,t.type)?null==t.Ka&&Qs(e,t,0):(Js(t),Ys(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function Ks(e){return{stream:e,type:e.type,aa:null,pa:null,Zc:null,Kd:null,Jd:null,Id:null,ob:null,endOfStream:!1,ra:!1,Ka:null,bb:!1,Nc:0,hd:!1,ac:!1,vc:!0,Rd:!1,be:!1,nc:!1,ta:null}}function Ws(t,n){var r,i,a,o,s;return P((function(u){switch(u.g){case 1:if(Or(t.h),n.ra||null==n.Ka||n.ac)return u.return();if(n.Ka=null,!n.bb){u.A(2);break}return w(u,Ys(t,n,n.hd,n.Nc),3);case 3:return u.return();case 2:if(n.stream.segmentIndex){u.A(4);break}return r=n.stream,w(u,n.stream.createSegmentIndex(),5);case 5:if(r!=n.stream)return r.closeSegmentIndex&&r.closeSegmentIndex(),n.ra||n.Ka||Qs(t,n,0),u.return();case 4:E(u,6),i=function(t,n){if($s(n))return function(e,t){var n=Bo(e,"video")||0;Yt(e.g,t,n)}(t.g.R,n.stream.originalId||""),null;n.type==et&&function(e){e.g&&Yt(e.g,"",0)}(t.g.R);var r=t.g.Sc(),i=n.pa?n.pa.endTime:r,a=function(e,t,n){return t==et?null==(e=e.g).h||e.h<n?0:e.h-Math.max(n,e.g):Eo(e=zo(e,t),n)}(t.g.R,n.type,r),o=Math.max(t.m.minBufferTime||0,t.i.rebufferingGoal,t.i.bufferingGoal)*t.u,s=t.m.presentationTimeline.getDuration()-i,u=Bo(t.g.R,n.type);if(1e-6>s&&u)return n.endOfStream=!0,"video"==n.type&&(t=t.j.get(et))&&$s(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,a>=o)return t.i.updateIntervalSeconds/2;if(a=function(e,t,n,r){if(t.aa)return t.aa.current();if(t.pa||r)return n=t.pa?t.pa.endTime:r,t.Rd=!0,t.aa=t.stream.segmentIndex.Cb(n),t.aa&&t.aa.next().value;e=e.i.inaccurateManifestTolerance,r=Math.max(n-e,0);var i=null;return e&&(t.aa=t.stream.segmentIndex.Cb(r),i=t.aa&&t.aa.next().value),i||(t.aa=t.stream.segmentIndex.Cb(n),i=t.aa&&t.aa.next().value),i}(t,n,r,u),!a)return t.i.updateIntervalSeconds;for(o=1/0,s=l(s=Array.from(t.j.values())),u=s.next();!u.done;u=s.next())$s(u=u.value)||u.aa&&!u.aa.current()||(o=Math.min(o,u.pa?u.pa.endTime:r));return i>=o+t.m.presentationTimeline.g?t.i.updateIntervalSeconds:(function(t,n,r,i){var a,o,s,u,l,c,d,f,h,p,g,m,v,y;return P((function(b){switch(b.g){case 1:if(a=tt,o=n.stream,s=n.aa,n.ra=!0,E(b,2),2==i.Eb())throw new Re(1,1,1011);return w(b,function(e,t,n){var r,i,a,o,s,u,l,c;return P((function(d){return r=[],i=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,(o=n.timestampOffset)==t.Kd&&i==t.Jd&&a==t.Id||(s=function(){var n;return P((function(r){if(1==r.g)return E(r,2),t.Jd=i,t.Id=a,t.Kd=o,w(r,function(e,t,n,r,i,a){return P((function(o){return t==tt.X?(a||(e.g.s=n),function(e,t,n){e.l=t,e.m=n}(e.g,r,i),o.return()):w(o,Promise.all([Xo(e,t,(function(){return Wo(e,t)})),a?Promise.resolve():Xo(e,t,(function(){return Go(e,t,n)})),Xo(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=i,e.h[t].appendWindowStart=r,$o(e,t)}))]),0)}))}(e.g.R,t.type,o,i,a,e.m.sequenceMode),4);if(2!=r.g)return S(r,0);throw n=k(r),t.Jd=null,t.Id=null,t.Kd=null,n}))},r.push(s())),!function(e,t){return e&&t?e.lc()==t.lc()&&e.hc()==t.hc()&&re(e.ya(),t.ya()):e==t}(n.h,t.Zc)&&(t.Zc=n.h)&&(u=Xs(e,t,n.h),l=function(){var r,i,a;return P((function(o){switch(o.g){case 1:return E(o,2),w(o,u,4);case 4:return r=o.h,Or(e.h),(new Wr).box("moov",Gr).box("trak",Gr).box("mdia",Gr).P("mdhd",(function(e){e=ao(e.reader||0,e.version||0),n.h.timescale=e.timescale})).parse(r),i=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,w(o,e.g.xe(t.type,r),5);case 5:return w(o,Vo(e.g.R,t.type,r,null,i),6);case 6:S(o,0);break;case 2:throw a=k(o),t.Zc=null,a}}))},e.g.fg(n.startTime,n.h),r.push(l())),e.m.sequenceMode&&(c=t.pa?t.pa.m:null,n.m!=c||t.Rd)&&(t.Rd=!1,r.push(function(e,t,n){return P((function(r){return t==tt.X?r.return():(Xo(e,t,(function(){return Wo(e,t)})),w(r,Xo(e,t,(function(){return Go(e,t,n)})),0))}))}(e.g.R,t.type,n.startTime))),w(d,Promise.all(r),0)}))}(t,n,i),4);case 4:return Or(t.h),t.s?b.return():(u="video/mp4"==o.mimeType||"audio/mp4"==o.mimeType,l=e.ReadableStream,t.i.lowLatencyMode&&l&&u&&!i.l?(d=new Uint8Array(0),h=f=!1,p=function(e){var a,s,u;return P((function(l){return f?l.return():(h=!0,Or(t.h),t.s?l.return():(d=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(d,e),a=!1,s=0,(new Wr).box("mdat",(function(e){s=e.size+e.start,a=!0})).parse(d,!1,!0),a?(u=d.subarray(0,s),d=d.subarray(s),w(l,Gs(t,n,r,o,i,u),0)):l.A(0)))}))},w(b,Xs(t,n,i,p),11)):w(b,Xs(t,n,i),7));case 7:if(c=b.h,Or(t.h),t.s)return b.return();if(!i.l){b.A(8);break}return w(b,function(t,n,r){var i,a,o,s;return P((function(u){if(1==u.g)return(i=n.l).cryptoKey?u.A(2):w(u,i.fetchKey(),3);if(!(a=i.iv))for(a=Ie(new ArrayBuffer(16)),o=i.firstMediaSequenceNumber+r.g,s=a.byteLength-1;0<=s;s--)a[s]=255&o,o>>=8;return u.return(e.crypto.subtle.decrypt({name:"AES-CBC",iv:a},i.cryptoKey,t))}))}(c,i,s),9);case 9:c=b.h;case 8:return Or(t.h),n.bb?(n.ra=!1,Qs(t,n,0),b.return()):w(b,Gs(t,n,r,o,i,c),6);case 11:if(g=b.h,h){b.A(6);break}return f=!0,Or(t.h),t.s?b.return():n.bb?(n.ra=!1,Qs(t,n,0),b.return()):w(b,Gs(t,n,r,o,i,g),6);case 6:if(Or(t.h),t.s)return b.return();n.pa=i,s.next(),n.ra=!1,n.be=!1,m=t.g.R.Na(),v=m[n.type],JSON.stringify(v),n.bb||t.g.Wd(i.startTime,i.endTime,n.type),Qs(t,n,0),S(b,0);break;case 2:if(y=k(b),Or(t.h,y),t.s)return b.return();if(n.ra=!1,7001==y.code)n.ra=!1,Js(n),Qs(t,n,0),b.A(0);else if(n.type==a.X&&t.i.ignoreTextStreamFailures)t.j.delete(a.X),b.A(0);else{if(3017!=y.code)return n.nc=!0,y.severity=2,w(b,eu(t,y),0);(function(e,t,n){if(!Array.from(e.j.values()).some((function(e){return e!=t&&e.be}))){var r=Math.round(100*e.u);if(20<r)e.u-=.2;else{if(!(4<r))return t.nc=!0,e.s=!0,void e.g.onError(n);e.u-=.04}t.be=!0}Qs(e,t,4)})(t,n,y),b.A(0)}}}))}(t,n,r,a).catch((function(){})),null)}(t,n),null!=i&&(Qs(t,n,i),n.nc=!1),S(u,7);break;case 6:return a=k(u),w(u,eu(t,a),8);case 8:return u.return();case 7:if(o=Array.from(t.j.values()),!t.B||!o.every((function(e){return e.endOfStream}))){u.A(0);break}return w(u,t.g.R.endOfStream(),10);case 10:Or(t.h),0!=(s=t.g.R.getDuration())&&s<t.m.presentationTimeline.getDuration()&&t.m.presentationTimeline.Aa(s),x(u)}}))}function Gs(e,t,n,r,i,a){var o,s,u,l,c,d;return P((function(f){switch(f.g){case 1:return o=r.closedCaptions&&0<r.closedCaptions.size,u=null!=r.emsgSchemeIdUris&&0<r.emsgSchemeIdUris.length||e.i.dispatchAllEmsgBoxes,l=e.i.parsePrftBox&&!e.D,(u||l)&&(s=new Wr),u&&s.P("emsg",(function(t){var n=r.emsgSchemeIdUris;if(0===t.version)var a=t.reader.sc(),o=t.reader.sc(),s=t.reader.K(),u=t.reader.K(),l=t.reader.K(),c=t.reader.K(),d=i.startTime+u/s;else s=t.reader.K(),u=(d=t.reader.$a()/s+i.timestampOffset)-i.startTime,l=t.reader.K(),c=t.reader.K(),a=t.reader.sc(),o=t.reader.sc();t=t.reader.Za(t.reader.S.byteLength-t.reader.Z()),(n&&n.includes(a)||e.i.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.g.gg():"https://aomedia.org/emsg/ID3"==a?(n=Co(t)).length&&i&&e.g.hg([{cueTime:i.startTime,data:t,frames:n,dts:i.startTime,pts:i.startTime}],0,i.endTime):(n=new vr("emsg",n=(new Map).set("detail",{startTime:d,endTime:d+l/s,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:u,eventDuration:l,id:c,messageData:t})),e.g.onEvent(n)))})),l&&s.P("prft",(function(t){e:{if(!e.D&&i.h.timescale){t.reader.K();var n=t.reader.K();if(n=1e3*n+t.reader.K()/Math.pow(2,32)*1e3,0===t.version)var r=t.reader.K();else try{r=t.reader.$a()}catch(t){e.D=!0,r=void 0;break e}t=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+n).getTime(),r=new vr("prft",r=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-r/i.h.timescale*1e3)})),e.g.onEvent(r),e.D=!0}r=void 0}return r})),(u||l)&&s.parse(a),w(f,function(e,t,n){var r,i,a;return P((function(o){if(1==o.g)return r=Math.max(e.i.bufferBehind,e.m.presentationTimeline.g),null==(i=Fo(e.g.R,t.type))||.01>=(a=n-i-r)?o.return():w(o,e.g.R.remove(t.type,i,i+a),2);Or(e.h),x(o)}))}(e,t,n),2);case 2:return Or(e.h),c=t.vc,t.vc=!1,d=t.ve,t.ve=!1,w(f,e.g.xe(t.type,a),3);case 3:return w(f,Vo(e.g.R,t.type,a,i,o,c,d),4);case 4:Or(e.h),x(f)}}))}function $s(e){return e&&e.type==et&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function Xs(e,t,n,r){var i,a,o,s,u;return P((function(l){return 1==l.g?(i=Rr,a=Us(n.ya(),n.Ba,n.ka,e.i.retryParameters,r),o=t.stream,e.g.modifySegmentRequest(a,{type:o.type,init:n instanceof go,duration:n.endTime-n.startTime,mimeType:o.mimeType,codecs:o.codecs,bandwidth:o.bandwidth}),s=e.g.kb.request(i,a),t.ta=s,w(l,s.promise,2)):(u=l.h,t.ta=null,l.return(u.data))}))}function Ys(e,t,n,r){var i,a;return P((function(o){return 1==o.g?(t.bb=!1,t.hd=!1,t.Nc=0,t.ac=!0,t.pa=null,t.Zc=null,t.aa=null,r?(i=e.g.Sc(),a=e.g.R.getDuration(),w(o,e.g.R.remove(t.type,i+r,a),3)):w(o,Ho(e.g.R,t.type),4)):3!=o.g?(Or(e.h),n?w(o,e.g.R.flush(t.type),3):o.A(3)):(Or(e.h),t.ac=!1,t.endOfStream=!1,t.ra||t.Ka||Qs(e,t,0),void x(o))}))}function Qs(e,t,n){var r=t.type;(r!=et||e.j.has(r))&&(t.Ka=new at((function(){var n;return P((function(r){return 1==r.g?(E(r,2),w(r,Ws(e,t),4)):2!=r.g?S(r,0):(n=k(r),e.g&&e.g.onError(n),void x(r))}))})).N(n))}function Js(e){null!=e.Ka&&(e.Ka.stop(),e.Ka=null)}function Zs(e){return P((function(t){return e.ta?w(t,e.ta.abort(),0):t.A(0)}))}function eu(e,t){return P((function(n){if(1==n.g)return w(n,cr(e.F),2);Or(e.h),e.g.onError(t),t.handled||e.i.failureCallback(t),x(n)}))}function tu(e,t){var n=Vl(),r=this;this.j=t,this.i=e,this.l=n,this.o=null,this.m=[],this.h=this.g=null,this.u=Promise.resolve().then((function(){return function(e){return P((function(t){if(e.s.g)t=t.A(0);else{if(0==e.m.length||e.g&&!e.g.hb)var n=!1;else{e.g&&(e.g.Ia.mb(),e.g=null);var r=(n=e.m.shift()).create(e.l);r?(n.Ia.Jb(),e.g={node:r.node,payload:r.payload,hb:r.hb,Ia:n.Ia}):n.Ia.dd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return P((function(r){switch(r.g){case 1:return e.i=e.j.Mf(e.i,e.l,e.g.node,e.g.payload),E(r,2),e.h=e.j.yf(e.i,e.l,e.g.payload),w(r,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.Ia.bd(),e.g=null),S(r,0);break;case 2:return 7001==(t=k(r)).code?e.g.Ia.mb():e.g.Ia.onError(t),e.g=null,e.h=null,n=e,w(r,e.j.handleError(e.l,t),5);case 5:n.i=r.h,x(r)}}))}(e):(e.j.eg(e.i),e.o=new rt,n=e.o),t=w(t,n,1)}return t}))}(r)})),this.s=new Nr((function(){return function(e){var t,n;return P((function(r){if(1==r.g)return e.h&&e.h.abort(),ru(e),w(r,e.u,2);for(e.g&&e.g.Ia.mb(),t=l(e.m),n=t.next();!n.done;n=t.next())n.value.Ia.mb();e.g=null,e.m=[],e.j=null,x(r)}))}(r)}))}function nu(e,t){var n={Jb:function(){},bd:function(){},mb:function(){},onError:function(){},dd:function(){},uh:function(){}};return e.m.push({create:t,Ia:n}),e.h&&e.h.abort(),ru(e),n}function ru(e){e.o&&(e.o.resolve(),e.o=null)}function iu(e){var t=[],n=700<=e.fontWeight,r="italic"==e.fontStyle,i=e.textDecoration.includes("underline");return n&&t.push("b"),r&&t.push("i"),i&&t.push("u"),n=t.reduce((function(e,t){return e+"<"+t+">"}),""),t=t.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak?"\n":e.nestedCues.length?e.nestedCues.map(iu).join(""):n+e.payload+t}function au(e,t){for(var n=(e=l(e)).next();!n.done;n=e.next())if((n=n.value).isContainer)au(n.nestedCues,t);else{var r=n.clone();r.nestedCues=[],r.payload=iu(n),t.push(r)}return t}function ou(e){this.g=null;for(var t=l(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function su(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function uu(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var r=l(Array.from(e.cues)),i=r.next();!i.done;i=r.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}function lu(){}function cu(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function du(t,n){var r=this;this.j=!1,this.i=[],this.B=t,this.m=n,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.u=new ot((function(){pu(r)})).Ca(.25),this.h=new Map,this.s=new Lr,this.s.C(document,"fullscreenchange",(function(){pu(r,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){pu(r,!0)})),this.l.observe(this.g)),this.o=new Map}function fu(e,t){for(;null!=t;){if(t==e.g)return!0;t=t.parentElement}return!1}function hu(e,t,n,r,i){for(var a=!1,o=[],s=[],u=(t=l(t)).next();!u.done;u=t.next()){u=u.value,i.push(u);var c=e.h.get(u),d=u.startTime<=r&&u.endTime>r,f=c?c.ef:null;c&&(o.push(c.Bd),c.tc&&o.push(c.tc),d||(a=!0,e.h.delete(u),c=null)),d&&(s.push(u),c?fu(e,f)||(a=!0):(gu(e,u,i),f=(c=e.h.get(u)).ef,a=!0)),0<u.nestedCues.length&&f&&hu(e,u.nestedCues,f,r,i),i.pop()}if(a){for(i=(r=l(o)).next();!i.done;i=r.next())(i=i.value).parentElement&&i.parentElement.removeChild(i);for(s.sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})),u=(s=l(s)).next();!u.done;u=s.next())(r=e.h.get(u.value)).tc?(n.appendChild(r.tc),r.tc.appendChild(r.Bd)):n.appendChild(r.Bd)}}function pu(e,t){if(e.g){var n=e.B.currentTime;if(!e.j||void 0!==t&&t){for(var r=(t=l(e.o.values())).next();!r.done;r=t.next())cu(r.value);cu(e.g),e.h.clear(),e.o.clear()}if(e.j){t=new Map;for(var i=(r=l(e.h.keys())).next();!i.done;i=r.next())i=i.value,t.set(i,e.h.get(i));hu(e,e.i,e.g,n,[])}}}function gu(e,t,n){var r=1<n.length,i=r?"span":"div";t.lineBreak&&(i="br"),r=!r&&0<t.nestedCues.length;var a=document.createElement(i);if("br"!=i&&function(e,t,n,r,i){var a=t.style,o=0==n.nestedCues.length,s=1<r.length;a.whiteSpace="pre-wrap";var u=n.payload.replace(/\s+$/g,(function(e){return" ".repeat(e.length)}));if(a.webkitTextStrokeColor=n.textStrokeColor,a.webkitTextStrokeWidth=n.textStrokeWidth,a.color=n.color,a.direction=n.direction,a.opacity=n.opacity,a.paddingLeft=mu(n.linePadding,n,e.m),a.paddingRight=mu(n.linePadding,n,e.m),a.textShadow=n.textShadow,n.backgroundImage)a.backgroundImage="url('"+n.backgroundImage+"')",a.backgroundRepeat="no-repeat",a.backgroundSize="contain",a.backgroundPosition="center",a.width="100%",a.height="100%";else{if(n.nestedCues.length)var l=t;else l=document.createElement("span"),t.appendChild(l);n.border&&(l.style.border=n.border),i||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var r=t(e[n]);if(r||0===r)return r}return null}(r,(function(e){return e.backgroundColor})))?l.style.backgroundColor=t:u&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)")),u&&(l.textContent=u)}s&&!r[r.length-1].isContainer?a.display="inline":(a.display="flex",a.flexDirection="column",a.alignItems="center",a.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),o||(a.margin="0"),a.fontFamily=n.fontFamily,a.fontWeight=n.fontWeight.toString(),a.fontStyle=n.fontStyle,a.letterSpacing=n.letterSpacing,a.fontSize=mu(n.fontSize,n,e.m),null!=n.line&&1==n.lineInterpretation&&(a.position="absolute",n.writingMode==fe?(a.width="100%",n.lineAlign==pe?a.top=n.line+"%":"end"==n.lineAlign&&(a.bottom=100-n.line+"%")):"vertical-lr"==n.writingMode?(a.height="100%",n.lineAlign==pe?a.left=n.line+"%":"end"==n.lineAlign&&(a.right=100-n.line+"%")):(a.height="100%",n.lineAlign==pe?a.right=n.line+"%":"end"==n.lineAlign&&(a.left=100-n.line+"%"))),a.lineHeight=n.lineHeight,null!=n.position&&(n.writingMode==fe?a.paddingLeft=n.position:a.paddingTop=n.position),"line-left"==n.positionAlign?a.cssFloat="left":"line-right"==n.positionAlign&&(a.cssFloat="right"),a.textAlign=n.textAlign,a.textDecoration=n.textDecoration.join(" "),a.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&a.writingMode==n.writingMode||(a.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==fe?a.width=n.size+"%":a.height=n.size+"%")}(e,a,t,n,r),n=null,t.region&&t.region.id)if(i=(n=t.region).id+"_"+n.width+"x"+n.height+(n.heightUnits==Ee?"%":"px")+"-"+n.viewportAnchorX+"x"+n.viewportAnchorY+(n.viewportAnchorUnits==Ee?"%":"px"),e.o.has(i))n=e.o.get(i);else{var o=document.createElement("span"),s=n.heightUnits==Ee?"%":"px",u=n.widthUnits==Ee?"%":"px",l=n.viewportAnchorUnits==Ee?"%":"px";o.id="shaka-text-region---"+i,o.classList.add("shaka-text-region"),o.style.height=n.height+s,o.style.width=n.width+u,o.style.position="absolute",o.style.top=n.viewportAnchorY+l,o.style.left=n.viewportAnchorX+l,o.style.display="flex",o.style.flexDirection="column",o.style.alignItems="center",o.style.justifyContent="before"==t.displayAlign?"flex-start":"center"==t.displayAlign?"center":"flex-end",e.o.set(i,o),n=o}i=a,r&&((i=document.createElement("span")).classList.add("shaka-text-wrapper"),i.style.backgroundColor=t.backgroundColor,i.style.lineHeight="normal",a.appendChild(i)),e.h.set(t,{Bd:a,ef:i,tc:n})}function mu(e,t,n){var r=(r=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(r[1]),unit:r[2]}:null;if(!r)return e;var i=r.value;switch(r.unit){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return e}}function vu(e,t){this.h=e,this.g=t,this.j="",this.o=void 0,this.i=!1,this.m=!0,this.l=!1}function yu(e,t,n){try{if(e.g.enabled){var r={d:1e3*n.duration,st:e.h.U()?Ru:Mu};r.ot=function(e){var t=e.type;if(e.init)return Cu;if("video"==t)return e.codecs.includes(",")?Au:ku;if("audio"==t)return Su;if("text"==t)return"application/mp4"===e.mimeType?_u:Iu}(n);var i=r.ot===ku||r.ot===Su||r.ot===Au||r.ot===_u;i&&(r.bl=function(e,t){if(!(t=e.h.Na()[t]).length)return NaN;var n=e.h.getCurrentTime();return(e=t.find((function(e){return e.start<=n&&e.end>=n})))?1e3*(e.end-n):NaN}(e,n.type)),n.bandwidth&&(r.br=n.bandwidth/1e3),i&&r.ot!==_u&&(r.tb=function(e,t){var n=e.h.Xa();if(!n.length)return NaN;e=n[0];for(var r=(n=l(n)).next();!r.done;r=n.next())"variant"===(r=r.value).type&&r.bandwidth>e.bandwidth&&(e=r);switch(t){case ku:return e.videoBandwidth||NaN;case Su:return e.audioBandwidth||NaN;default:return e.bandwidth}}(e,r.ot)/1e3),wu(e,t,r)}}catch(e){G("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}}function bu(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.o,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function wu(e,t,n){n=void 0===n?{}:n;var r=void 0===r?e.g.useHeaders:r;if(e.g.enabled){Object.assign(n,bu(e)),n.pr=e.h.Rc();var i=n.ot===ku||n.ot===Au;if(e.l&&i&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),r)e=function(e){for(var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=(t=l(t)).next();!o.done;o=t.next())o=o.value,i[null!=a[o]?a[o]:1][o]=e[o];for(e=0;e<i.length;e++)(a=xu(i[e]))&&(n["CMCD-"+r[e]]=a);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var a=xu(n);a&&(t.uris=t.uris.map((function(e){return Eu(e,a)})))}}}function xu(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var r,i=[],a={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},o=Object.keys(e||{}).sort(),s=(o=l(o)).next();!s.done;s=o.next()){var u=e[s=s.value];if(r=u,!Number.isNaN(r)&&null!=r&&""!==r&&!1!==r&&("v"!==s||1!==u)&&("pr"!=s||1!==u)){var c=a[s];c&&(u=c(u));var d;d="string"===(c=typeof u)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(u):"boolean"===c?s:"symbol"===c?s+"="+u.description:s+"="+u,i.push(d)}}return i.join(",")}function Eu(e,t){return!t||e.includes("offline:")?e:((e=new De(e)).g.set("CMCD",t),e.toString())}(r=Fs.prototype).destroy=function(){return this.h.destroy()},r.configure=function(e){this.i=e,this.F=new lr({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)},r.start=function(){var e=this;return P((function(t){if(1==t.g)return w(t,function(e){var t,n,r,i,a,o,s,u,c,d;return P((function(f){if(1==f.g){if(t=tt,!e.l)throw new Re(2,5,5006);return n=new Map,r=new Set,e.l.audio&&(n.set(t.Hc,e.l.audio),r.add(e.l.audio)),e.l.video&&(n.set(t.va,e.l.video),r.add(e.l.video)),e.o&&(n.set(t.X,e.o),r.add(e.o)),i=e.g.R,a=e.i.forceTransmux,w(f,i.init(n,a,e.m.sequenceMode),2)}for(Or(e.h),e.updateDuration(),o=l(n.keys()),s=o.next();!s.done;s=o.next())u=s.value,c=n.get(u),e.j.has(u)||(d=Ks(c),e.j.set(u,d),Qs(e,d,0));x(f)}))}(e),2);Or(e.h),e.B=!0,x(t)}))},r.vc=function(){if(this.g)for(var e=this.g.Sc(),t=l(this.j.keys()),n=t.next();!n.done;n=t.next()){var r=n.value;(n=this.j.get(r)).aa=null;var i=this.g.R;if(r==et?i=null!=(i=i.g).g&&null!=i.h&&(e>=i.g&&e<i.h):i=xo(i=zo(i,r),e),!i){if((null!=Bo(this.g.R,r)||n.ra)&&qs(this,n),n.ta&&(n.ta.abort(),n.ta=null),r===et&&(r=this.g.R).s)for((r=r.s.g).l=0,r.h=[],r.g=[],(i=r.i).i=[],i.h=[],i.g=0,Ja(r),i=(r=l(r.j.values())).next();!i.done;i=r.next())Ga(i.value);n.vc=!0}}},r.updateDuration=function(){var e=this.m.presentationTimeline.getDuration();1/0>e?this.g.R.Aa(e):this.g.R.Aa(Math.pow(2,32))},tu.prototype.destroy=function(){return this.s.destroy()},(r=ou.prototype).remove=function(e,t){return!!this.g&&(uu(this.g,(function(n){return n.startTime<t&&n.endTime>e})),!0)},r.append=function(e){var t=au(e,[]),n=[];e=this.g.cues?Array.from(this.g.cues):[];for(var r={},i=(t=l(t)).next();!i.done;r={sb:r.sb},i=t.next())r.sb=i.value,e.some(function(e){return function(t){return t.startTime==e.sb.startTime&&t.endTime==e.sb.endTime&&t.text==e.sb.payload}}(r))||(i=su(r.sb))&&n.push(i);for(r=(e=l(e=n.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)})))).next();!r.done;r=e.next())this.g.addCue(r.value)},r.destroy=function(){return this.g&&(uu(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},r.isTextVisible=function(){return"showing"==this.g.mode},r.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},B("shaka.text.SimpleTextDisplayer",ou),ou.prototype.setTextVisibility=ou.prototype.setTextVisibility,ou.prototype.isTextVisible=ou.prototype.isTextVisible,ou.prototype.destroy=ou.prototype.destroy,ou.prototype.append=ou.prototype.append,ou.prototype.remove=ou.prototype.remove,B("shaka.util.Dom",lu),lu.removeAllChildren=cu,(r=du.prototype).append=function(e){for(var t=[].concat(c(this.i)),n={},r=(e=l(e)).next();!r.done;n={Cc:n.Cc},r=e.next())n.Cc=r.value,t.some(function(e){return function(t){return ae(t,e.Cc)}}(n))||this.i.push(n.Cc);pu(this)},r.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.u&&this.u.stop(),this.h.clear(),this.s&&(this.s.release(),this.s=null),this.l&&(this.l.disconnect(),this.l=null)},r.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime<e||n.endTime>=t})),pu(this,n>this.i.length),!0},r.isTextVisible=function(){return this.j},r.setTextVisibility=function(e){this.j=e},B("shaka.text.UITextDisplayer",du),du.prototype.setTextVisibility=du.prototype.setTextVisibility,du.prototype.isTextVisible=du.prototype.isTextVisible,du.prototype.remove=du.prototype.remove,du.prototype.destroy=du.prototype.destroy,du.prototype.append=du.prototype.append,B("shaka.text.WebVttGenerator",(function(){}));var Tu="m",Su="a",ku="v",Au="av",Cu="i",Iu="c",_u="tt",Mu="v",Ru="l";function Pu(){}function Du(e,t,n,r,i){var a,o=i in r,s=!0;for(a in t){var u=i+"."+a,l=o?r[i]:n[a];o||a in n?void 0===t[a]?void 0===l||o?delete e[a]:e[a]=xr(l):l.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=xr(l)),u=Du(e[a],t[a],l,r,u),s=s&&u):typeof t[a]!=typeof l||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=l.constructor?(K("Invalid config, wrong type for "+u),s=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&W("Unexpected number of arguments for "+u),e[a]=t[a]):(K("Invalid config, unrecognized key "+u),s=!1)}return s}function Nu(e,t){for(var n={},r=n,i=0,a=0;!(0>(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(r[a=e.substring(a,i).replace(/\\\./g,".")]={},r=r[a],a=i+1),i+=1;return r[e.substring(a).replace(/\\\./g,".")]=t,n}function Ou(e,t){return e&&t}function Lu(){}function ju(e){return new De(e=Tt(e)).Ha}function Uu(e,t,n){function r(e){_e(a).setUint32(o,e.byteLength,!0),o+=4,a.set(Ie(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new Re(2,6,6015);var i;i="string"==typeof t?kt(t,!0):t,e=kt(e=Tt(e),!0);var a=new Uint8Array(12+e.byteLength+i.byteLength+n.byteLength),o=0;return r(e),r(i),r(n),a}function Fu(){}function Bu(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(e,t,n){return"com.apple.fps.1_0"==n.keySystem&&"skd"==t&&(t=n.serverCertificate,e=Uu(e,n=ju(e),t)),e},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:ct()},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return Ou([e],e)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},r={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return Ou([e])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};(mt("Web0S")||dt()||mt("CrKey"))&&(r.stallSkip=0);var i={trackSelectionCallback:function(e){return P((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return P((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?w(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return Ou([e,t])},usePersistentLicense:!0,numberOfParallelDownloads:5},a={drm:t,manifest:n,streaming:r,mediaSource:{sourceBufferExtraFeatures:""},offline:i,abrFactory:function(){return new qn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1},autoShowText:3,preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1}};return i.trackSelectionCallback=function(e){return P((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),r=[],i=ln(t,n.map((function(e){return e.language})));i&&(r=n.filter((function(e){return an(e.language)==i}))),0==r.length&&(r=n.filter((function(e){return e.primary}))),0==r.length&&(n.map((function(e){return e.language})),r=n);var a=r.filter((function(e){return e.height&&480>=e.height}));for(a.length&&(a.sort((function(e,t){return t.height-e.height})),r=a.filter((function(e){return e.height==a[0].height}))),t=[],r.length&&(n=Math.floor(r.length/2),r.sort((function(e,t){return e.bandwidth-t.bandwidth})),t.push(r[n])),e=l(e),r=e.next();!r.done;r=e.next())(r=r.value).type!=et&&"image"!=r.type||t.push(r);return t}(e,a.preferredAudioLanguage))}))},a}function zu(e,t,n){var r={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Du(e,t,n||Bu(),r,"")}function Vu(){this.g=null,this.h=[]}function Hu(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function qu(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var r=(e=l(e.h)).next();!r.done;r=e.next())n+=(r=r.value).state==t?r.duration:0;return n}function Ku(){this.i=this.h=null,this.g=[]}function Wu(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Gu(){this.u=this.B=this.G=this.D=this.s=this.j=this.F=this.m=this.i=this.M=this.O=this.H=this.J=this.L=this.l=this.o=NaN,this.g=new Vu,this.h=new Ku}function $u(t,n){wr.call(this);var r=this;this.l=Kl,this.Uc=this.g=null,this.ca=!1,this.Xc=new Lr,this.Xb=new Lr,this.s=new Lr,this.Nb=this.i=this.Yc=this.J=this.j=this.ua=this.L=this.cf=this.V=this.Fa=this.M=this.Vc=this.H=this.xb=this.B=this.G=this.m=this.D=null,this.dc=!1,this.Nd=this.u=null,this.Yd=1e9,this.h=dl(this),this.ec={width:1/0,height:1/0},this.o=null,this.ub=new ir(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount),this.vb=this.h.preferredTextLanguage,this.cc=this.h.preferredTextRole,this.$b=this.h.preferForcedSubs,this.Zb=[],this.fc=null,n&&n(this),this.D=function(e){return new kr((function(t,n){e.u&&e.u.segmentDownloaded(t,n)}),(function(t,n,r){t=(new Map).set("headers",t).set("request",n).set("requestType",r),e.dispatchEvent(Yu("downloadheadersreceived",t))}),(function(t,n,r,i){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",r).set("aborted",i),e.dispatchEvent(Yu("downloadfailed",t))}))}(this),this.D.je(this.h.streaming.forceHTTPS),this.F=null,Ql&&(this.F=Ql()),this.Xc.C(e,"online",(function(){r.ce()})),this.O={name:"detach"},this.W={name:"attach"},this.ea={name:"unload"},this.Zd={name:"manifest-parser"},this.Xd={name:"manifest"},this.wb={name:"media-source"},this.Qd={name:"drm-engine"},this.ba={name:"load"},this.de={name:"src-equals-drm-engine"},this.yb={name:"src-equals"};var i=new Map;i.set(this.W,(function(e,t){return gr(function(e,t,n){return null==t.mediaElement&&(t.mediaElement=n.mediaElement,e.Xb.C(t.mediaElement,"error",(function(){var t=Rl(e);t&&_l(e,t)}))),e.g=t.mediaElement,Promise.resolve()}(r,e,t))})),i.set(this.O,(function(e){return e.mediaElement&&(r.Xb.nb(),e.mediaElement=null),r.F&&r.F.release(),r.g=null,gr(e=Promise.resolve())})),i.set(this.ea,(function(e){return gr(Qu(r,e))})),i.set(this.wb,(function(e){return e=function(e,t){var n,r,i,a,o;return P((function(s){if(1==s.g)return n=e.h.textDisplayFactory,r=n(),e.Ud=n,i=function(e,t,n,r){return new Lo(e,t,n,r)}(t.mediaElement,r,(function(t,n,r){Ju(e,t,n,r)}),e.L),i.configure(e.h.mediaSource),a=e.h.manifest,o=a.segmentRelativeVttTiming,i.H=o,w(s,i.J,2);e.G=i,x(s)}))}(r,e),gr(e)})),i.set(this.Zd,(function(e,t){return e=function(e,t,n){var r,i,a,o;return P((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,r=t.uri,i=e.D,e.Nb=r,a=e,w(s,$i(r,i,e.h.manifest.retryParameters,t.mimeType),2);a.Yc=s.h,e.J=e.Yc(),o=xr(e.h.manifest),n.mediaElement&&"AUDIO"===n.mediaElement.nodeName&&(o.disableVideo=!0),e.J.configure(o),x(s)}))}(r,e,t),gr(e)})),i.set(this.Xd,(function(e){return function(e,t){var n=t.uri;t=e.D,e.Fa=new Ps((function(){return e.uc()})),e.Fa.addEventListener("regionadd",(function(t){t=t.region,Ml(e,"timelineregionadded",t),e.F&&e.F.onDashTimedMetadata(t)})),e.ua=null,e.h.streaming.observeQualityChanges&&(e.ua=new Rs((function(){return e.Na()})),e.ua.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(Yu("mediaqualitychanged",n))})));var r={networkingEngine:t,modifyManifestRequest:function(t,n){var r=e.V;try{r.g.enabled&&(r.o=n.format,wu(r,t,{ot:Tu,su:!r.i}))}catch(e){G("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}},modifySegmentRequest:function(t,n){yu(e.V,t,n)},filter:function(t){return fl(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,r=l(t.textStreams),i=r.next();!i.done;i=r.next())"application/cea-608"!=(i=i.value).mimeType&&"application/cea-708"!=i.mimeType||n.add(i.originalId);for(r=l(t.variants),i=r.next();!i.done;i=r.next())if((i=i.value.video)&&i.closedCaptions)for(var a=l(i.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",u=new As;s={id:e.Yd++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:u,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:i.closedCaptions.get(o),label:null,type:et,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:i.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(o)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Fa;e:{for(var r=l(n.g),i=r.next();!i.done;i=r.next())if((i=i.value).schemeIdUri==t.schemeIdUri&&i.id==t.id&&i.startTime==t.startTime&&i.endTime==t.endTime){r=i;break e}r=null}null==r&&(n.g.add(t),t=new vr("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return _l(e,t)},isLowLatencyMode:function(){return e.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&e.j.updateDuration()},newDrmInfo:function(t){var n=e.m?e.m.g:null;n&&e.m.u&&pl(e,n.keySystem,t)}},i=Date.now()/1e3;return new dr(function(){var t,a,o,s;return P((function(u){if(1==u.g)return t=e,w(u,e.J.start(n,r),2);if(t.i=u.h,a=Yu("manifestparsed"),e.dispatchEvent(a),0==e.i.variants.length)throw new Re(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),o=Date.now()/1e3,s=o-i,e.o.F=s,x(u)}))}(),(function(){return e.J.stop()}))}(r,e)})),i.set(this.Qd,(function(e){return e=function(e,t){var n,r;return P((function(i){return 1==i.g?(n=Date.now()/1e3,r=!0,e.m=tl(e,{kb:e.D,onError:function(t){_l(e,t)},cd:function(t){Pl(e,t)},onExpirationUpdated:function(t,n){Dl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&r&&(r=!1,e.o.j=Date.now()/1e3-n,e.L&&((t=e.L).g&&t.h.classList.add("shaka-hidden")))}}),e.m.configure(e.h.drm),w(i,ki(e.m,e.i.variants,e.i.offlineSessionIds),2)):3!=i.g?w(i,e.m.Yb(t.mediaElement),3):w(i,fl(e,e.i),0)}))}(r,e),gr(e)})),i.set(this.ba,(function(e,t){return gr(function(e,t,n){var r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b;return P((function(E){switch(E.g){case 1:for(t.startTime=n.startTime,null!=e.fc&&(t.startTime=e.fc,e.fc=null),r=t.mediaElement,i=t.uri,e.Nb=i,e.H=new Cs({Tc:function(){return r.playbackRate},Pc:function(){return r.defaultPlaybackRate},le:function(e){r.playbackRate=e},Me:function(e){r.currentTime+=e}}),a=function(){return vl(e)},o=function(){return ml(e)},e.s.C(r,"playing",a),e.s.C(r,"pause",a),e.s.C(r,"ended",a),e.s.C(r,"ratechange",o),function(e,t){if(t.lcevc.enabled){var n=e.Xa();n&&n[0]&&n[0].videoMimeType==Jl.ts&&(lt()||navigator.userAgent.match(/Edge\//))&&(t.streaming.forceTransmux||W("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled.")),Xu(e),null==e.L&&(e.L=new Ro(e.g,e.cf,t.lcevc),e.G&&(e.G.D=e.L))}else Xu(e)}(e,e.h),s=e.h.abrFactory,e.u&&e.Nd==s||(e.Nd=s,e.u=s(),"function"!=typeof e.u.setMediaElement&&(Xn("AbrManager","Please use an AbrManager with setMediaElement function."),e.u.setMediaElement=function(){}),e.u.configure(e.h.abr)),e.ub=new ir(e.h.preferredAudioLanguage,e.h.preferredVariantRole,e.h.preferredAudioChannelCount),e.vb=e.h.preferredTextLanguage,e.cc=e.h.preferredTextRole,e.$b=e.h.preferForcedSubs,Nl(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd),e.u.init((function(t,n,r){e.j&&t!=e.j.l&&xl(e,t,!0,void 0!==n&&n,void 0===r?0:r)})),e.u.setMediaElement(r),fn(e.i,e.h.preferredVideoCodecs,e.h.preferredAudioCodecs,e.h.preferredAudioChannelCount,e.h.preferredDecodingAttributes),e.j=function(e){return new Fs(e.i,{Sc:function(){return e.B?e.B.Ic():0},getBandwidthEstimate:function(){return e.u.getBandwidthEstimate()},modifySegmentRequest:function(t,n){yu(e.V,t,n)},R:e.G,kb:e.D,onError:function(t){return _l(e,t)},onEvent:function(t){return e.dispatchEvent(t)},gg:function(){e.J&&e.J.update&&e.J.update()},Wd:function(t,n,r){e.B&&e.B.Ne(),rl(e),t=(new Map).set("start",t).set("end",n).set("contentType",r),e.dispatchEvent(Yu("segmentappended",t))},fg:function(t,n){(n=n.Od)&&e.ua&&function(e,t,n){var r=function(e,t){var n=e.g.get(t);return n||(n={rc:[],Ae:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,r=e[e.length-1].end,i=t.rc;t.rc=i.filter((function(e,t){return!(e.position<=n&&t+1<i.length&&i[t+1].position<=n||e.position>=r)}))}else t.rc=[]}(e,r),e={Od:t,position:n},0<=(t=(r=r.rc).findIndex((function(e){return e.position>=n})))?r.splice(t,r[t].position==n?1:0,e):r.push(e)}(e.ua,n,t)},xe:function(t,n){var r=e.m;if(r.h.parseInbandPsshEnabled&&["audio","video"].includes(t)){var i=0,a=l((n=new ni(Ie(n))).data);for(t=a.next();!t.done;t=a.next())i+=t.value.length;if(0==i)r=Promise.resolve();else{for(i=new Uint8Array(i),a=0,t=(n=l(n.data)).next();!t.done;t=n.next())t=t.value,i.set(t,a),a+=t.length;Mi(r,"cenc",i),r=r.o}}else r=Promise.resolve();return r},hg:function(t,n,r){Ju(e,t,n,r)}})}(e),e.j.configure(e.h.streaming),e.l=Wl,r.textTracks&&e.s.C(r.textTracks,"addtrack",(function(t){if(t.track&&"chapters"===(t=t.track).kind)el(e,t)})),e.dispatchEvent(Yu("streaming")),u=null,(c=e.j.l)||(u=bl(e)),d=[],h=l([(f=c||u).video,f.audio]),p=h.next();!p.done;p=h.next())(g=p.value)&&!g.segmentIndex&&d.push(g.createSegmentIndex());if(!(0<d.length)){E.A(2);break}return w(E,Promise.all(d),2);case 2:if(e.B=function(e,t){return new ys(e.g,e.i,e.h.streaming,t,(function(){e.xb&&Ms(e.xb,!0),e.j&&e.j.vc(),e.M&&rl(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.xb=function(e){var t=new Ds(e.Fa);t.addEventListener("enter",(function(t){Ml(e,"timelineregionenter",t.region)})),t.addEventListener("exit",(function(t){Ml(e,"timelineregionexit",t.region)})),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(Ml(e,"timelineregionenter",n),Ml(e,"timelineregionexit",n))}));var n=new _s(e.g);return n.g.add(t),e.ua&&n.g.add(e.ua),n}(e),m=Math.max(e.i.minBufferTime,e.h.streaming.rebufferingGoal),nl(e,m),c){E.A(4);break}if(xl(e,u,!0,!1,0),!e.h.streaming.startAtSegmentBoundary){E.A(5);break}return v=e.B.Ic(),w(E,function(e,t){var n,r,i,a,o;return P((function(s){return 1==s.g?(n=e.audio,r=e.video,i=function(e,t){var n,r,i;return P((function(a){return 1==a.g?e?w(a,e.createSegmentIndex(),2):a.return(null):(r=(n=e.segmentIndex.Cb(t))?n.next().value:null)?(i=r.startTime,a.return(i)):a.return(null)}))},w(s,i(n,t),2)):3!=s.g?(a=s.h,w(s,i(r,t),3)):null!=(o=s.h)&&null!=a?s.return(Math.max(o,a)):null!=o?s.return(o):null!=a?s.return(a):s.return(t)}))}(u,v),6);case 6:y=E.h,e.B.zd(y);case 5:Tl(e,null,kn(u));case 4:return e.B.yd(),e.Fb().find((function(e){return e.active}))||((b=Nn(e.i.textStreams,e.vb,e.cc,e.$b)[0]||null)&&Wu(e.o.h,b,!0),u&&(b?(u.audio&&function(e,t,n){if(0==e.h.autoShowText)return!1;if(1==e.h.autoShowText)return!0;var r=an(e.h.preferredTextLanguage);return n=an(n.language),2==e.h.autoShowText?tn(n,r):3==e.h.autoShowText?(e=an(t.language),tn(n,r)&&!tn(e,n)):(W("Invalid autoShowText setting!"),!1)}(e,u.audio,b)&&(e.ca=!0),e.ca&&e.G.m.setTextVisibility(!0),Cl(e)):e.ca=!1),b&&(e.h.streaming.alwaysStreamText||e.Hd())&&Vs(e.j,b)),w(E,e.j.start(),7);case 7:e.h.abr.enabled&&(e.u.enable(),Il(e)),Tn(e.j?e.j.l:null,e.i),Ll(e.i),Sl(e),yl(e),e.i.variants.some((function(e){return e.primary})),e.dc=!0,e.s.ma(r,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.ne})),x(E)}}))}(r,e,t))})),i.set(this.de,(function(e,t){return e=function(e,t,n){var r,i,a,o,s,u,l;return P((function(c){return 1==c.g?(r=tt,i=Date.now()/1e3,a=!0,e.m=tl(e,{kb:e.D,onError:function(t){_l(e,t)},cd:function(t){Pl(e,t)},onExpirationUpdated:function(t,n){Dl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&a&&(a=!1,e.o.j=Date.now()/1e3-i)}}),e.m.configure(e.h.drm),o=n.uri||"",s=Yi(o),"application/x-mpegurl"==(u=Jl[s])&&ht()&&(u="application/vnd.apple.mpegurl"),u||(u="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:u,codecs:n.mimeType?Wt(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:r.va,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.m.V=!0,w(c,ki(e.m,[l],[]),2)):w(c,e.m.Yb(t.mediaElement),0)}))}(r,e,t),gr(e)})),i.set(this.yb,(function(e,t){return function(e,t,n){function r(){return vl(e)}t.uri=n.uri,t.startTime=n.startTime,e.Nb=t.uri;var i=t.mediaElement;e.B=new vs(i);var a=!1;e.Zb.push((function(){a=!0})),null!=t.startTime&&e.B.zd(t.startTime),e.H=new Cs({Tc:function(){return i.playbackRate},Pc:function(){return i.defaultPlaybackRate},le:function(e){i.playbackRate=e},Me:function(e){i.currentTime+=e}}),nl(e,e.h.streaming.rebufferingGoal),e.s.C(i,"playing",r),e.s.C(i,"pause",r),e.s.C(i,"ended",r),e.s.C(i,"ratechange",(function(){return ml(e)})),"none"!=i.preload&&e.s.ma(i,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.ne})),i.audioTracks&&(e.s.C(i.audioTracks,"addtrack",(function(){return Sl(e)})),e.s.C(i.audioTracks,"removetrack",(function(){return Sl(e)})),e.s.C(i.audioTracks,"change",(function(){return Sl(e)}))),i.textTracks&&(e.s.C(i.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){if("metadata"==t.kind){t.mode="hidden",e.s.C(t,"cuechange",(function(){if(t.activeCues)for(var n=l(t.activeCues),r=n.next();!r.done;r=n.next())r=r.value,Zu(e,r.startTime,r.endTime,r.type,r.value),e.F&&e.F.onCueMetadataChange(r.value)}));var n=new ot((function(){for(var t=function(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=l(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Mb().N(.5);e.Zb.push((function(){n.stop()}))}}(e,t);break;case"chapters":el(e,t);break;default:Sl(e)}})),e.s.C(i.textTracks,"removetrack",(function(){return Sl(e)})),e.s.C(i.textTracks,"change",(function(){return Sl(e)})));var o=Yi(t.uri);i.src=function(e,t,n){try{if(!e.g.enabled)return t;var r=bu(e);e:{switch(n){case"video/webm":case"video/mp4":var i=Au;break e;case"application/x-mpegurl":i=Tu;break e}i=void 0}return r.ot=i,r.su=!0,Eu(t,xu(r))}catch(e){return G("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.V,t.uri,Jl[o]),(dt()||mt("Web0S"))&&i.load(),e.l=Gl,e.dispatchEvent(Yu("streaming"));var s=new rt;return us(i,HTMLMediaElement.HAVE_METADATA,e.s,(function(){e.B.yd(),s.resolve()})),us(i,HTMLMediaElement.HAVE_CURRENT_DATA,e.s,(function(){var t;return P((function(n){return 1==n.g?(function(e){var t=e.h.preferredAudioLanguage;if(""!=t){e.ge(t);var n=e.h.preferredVariantRole;""!=n&&e.ge(t,n)}}(e),(t=al(e)).find((function(e){return"disabled"!=e.mode}))?(0<t.length&&(e.ca=!0),n.A(2)):w(n,new Promise((function(t){e.s.ma(i.textTracks,"change",t),new ot(t).N(1)})),2)):a?n.return():(function(e){var t=e.h.preferredTextLanguage,n=e.h.preferForcedSubs;if(""!=t){e.he(t,"",n);var r=e.h.preferredTextRole;""!=r&&e.he(t,r,n)}}(e),void x(n))}))})),i.error?s.reject(Rl(e)):"none"==i.preload&&(W('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),s.resolve()),e.s.ma(i,"error",(function(){s.reject(Rl(e))})),new dr(s,(function(){return s.reject(new Re(2,7,7001)),Promise.resolve()})).Y((function(){e.dc=!0}))}(r,e,t)})),this.Ga=new tu(this.O,{Mf:function(e,t,n,i){var a=null;return e==r.O&&(a=n==r.O?r.O:r.W),e==r.W&&(a=n==r.O||t.mediaElement!=i.mediaElement?r.O:n==r.W?r.W:n==r.wb||n==r.ba?r.wb:n==r.yb?r.de:null),e==r.wb&&(a=n==r.ba&&t.mediaElement==i.mediaElement?r.Zd:r.ea),e==r.Zd&&(a=zl(r.ba,r.Xd,r.ea,n,t,i)),e==r.Xd&&(a=zl(r.ba,r.Qd,r.ea,n,t,i)),e==r.Qd&&(a=zl(r.ba,r.ba,r.ea,n,t,i)),e==r.de&&(a=n==r.yb&&t.mediaElement==i.mediaElement?r.yb:r.ea),e!=r.ba&&e!=r.yb||(a=r.ea),e==r.ea&&(a=i.mediaElement&&t.mediaElement==i.mediaElement?r.W:r.O),a},yf:function(e,t,n){return r.dispatchEvent(Yu("onstatechange",(new Map).set("state",e.name))),i.get(e)(t,n)},handleError:function(e){return P((function(t){return 1==t.g?w(t,Qu(r,e),2):t.return(e.mediaElement?r.W:r.O)}))},eg:function(e){r.dispatchEvent(Yu("onstateidle",(new Map).set("state",e.name)))}}),this.af=new ot((function(){mn(r.i.variants,r.h.restrictions,r.ec)&&bl(r)})),t&&this.Yb(t,!0)}function Xu(e){null!=e.L&&(e.L.release(),e.L=null)}function Yu(e,t){return new vr(e,t)}function Qu(e,t){var n,r,i,a,o,s,u,c,d;return P((function(f){switch(f.g){case 1:return e.l!=ql&&(e.l=Kl),n=e.Zb.map((function(e){return e()})),e.Zb=[],w(f,Promise.all(n),2);case 2:if(e.dispatchEvent(Yu("unloading")),t.mimeType=null,t.startTime=null,t.uri=null,e.Fa&&(e.Fa.release(),e.Fa=null),t.mediaElement&&e.s.nb(),e.af.stop(),e.xb&&(e.xb.release(),e.xb=null),e.Vc&&(e.Vc.stop(),e.Vc=null),!e.J){f.A(3);break}return w(f,e.J.stop(),4);case 4:e.J=null,e.Yc=null;case 3:if(!e.u){f.A(5);break}return w(f,e.u.stop(),5);case 5:if(!e.j){f.A(7);break}return w(f,e.j.destroy(),8);case 8:e.j=null;case 7:if(e.H&&(e.H.release(),e.H=null),e.B&&(e.B.release(),e.B=null),!e.G){f.A(9);break}return w(f,e.G.destroy(),10);case 10:e.G=null;case 9:if(e.F&&e.F.onAssetUnload(),!t.mediaElement||!t.mediaElement.src){f.A(11);break}return w(f,new Promise((function(e){return new ot(e).N(.1)})),12);case 12:for(t.mediaElement.removeAttribute("src"),t.mediaElement.load();t.mediaElement.lastChild;)t.mediaElement.removeChild(t.mediaElement.firstChild);case 11:if(!e.m){f.A(13);break}return w(f,e.m.destroy(),14);case 14:e.m=null;case 13:if(e.Nb=null,e.M=null,e.i){for(r=l(e.i.variants),i=r.next();!i.done;i=r.next())for(a=i.value,o=l([a.audio,a.video]),s=o.next();!s.done;s=o.next())(u=s.value)&&u.segmentIndex&&u.segmentIndex.release();for(c=l(e.i.textStreams),s=c.next();!s.done;s=c.next())(d=s.value).segmentIndex&&d.segmentIndex.release()}e.i=null,e.o=new Gu,e.Ud=null,gl(e),x(f)}}))}function Ju(e,t,n,r){for(var i=(t=l(t)).next();!i.done;i=t.next())if((i=i.value).data&&i.cueTime&&i.frames){var a=i.cueTime+n,o=r;o&&a>o&&(o=a);for(var s=l(i.frames),u=s.next();!u.done;u=s.next())Zu(e,a,o,"org.id3",u.value);e.F&&e.F.onHlsTimedMetadata(i,a)}}function Zu(e,t,n,r,i){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",r).set("payload",i),e.dispatchEvent(Yu("metadata",t))}function el(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new ot((function(){t.mode="hidden"})).Mb().N(.5);e.Zb.push((function(){n.stop()}))}}function tl(e,t){return new Si(t,e.h.drm.updateExpirationTime)}function nl(e,t){e.M=new ar,e.M.g=sr,or(e.M,t,Math.min(.5,t/2)),gl(e),e.Vc=new ot((function(){rl(e)})).Ca(.25)}function rl(e){switch(e.l){case Gl:if(e.g.ended)var t=!0;else{var n=wo(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case Wl:e:if(e.g.ended||Uo(e.G))t=!0;else{if(e.i.presentationTimeline.U()){n=e.i.presentationTimeline.gb();var r=wo(e.g.buffered);if(null!=r&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=Eo(e.g.buffered,e.g.currentTime);var i=t,a=(n=e.M).h.get(n.g);t=n.g,r=i||r>=a?ur:sr,n.g=r,t!=r&&gl(e)}function il(e){if(e.J){var t=xr(e.h.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.J.configure(t)}if(e.m&&e.m.configure(e.h.drm),e.j){e.j.configure(e.h.streaming);try{hl(e,e.i)}catch(t){_l(e,t)}e.u&&yl(e),!(t=e.j.l)||t.allowedByApplication&&t.allowedByKeySystem||wl(e)}if(e.D&&e.D.je(e.h.streaming.forceHTTPS),e.G&&(e.G.configure(e.h.mediaSource),e.G.H=e.h.manifest.segmentRelativeVttTiming,t=e.h.textDisplayFactory,e.Ud!=t)){var n=t(),r=e.G,i=r.m;r.m=n,i&&(n.setTextVisibility(i.isTextVisible()),i.destroy()),r.g&&(r.g.i=n),e.Ud=t,e.j&&((n=(t=e.j).j.get(et))&&Hs(t,n.stream,!0,0,!0))}e.u&&(e.u.configure(e.h.abr),e.h.abr.enabled?e.u.enable():e.u.disable(),Il(e)),e.M&&(t=e.h.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),or(e.M,t,Math.min(.5,t/2))),e.i&&Nl(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd)}function al(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function ol(e){return Array.from(e.g.textTracks).filter((function(e){return"chapters"==e.kind}))}function sl(e,t){var n,r;return P((function(i){switch(i.g){case 1:return n=Yi(t),(r=Zl[n])?i.return(r):(E(i,2),w(i,Xi(t,e.D,e.h.streaming.retryParameters),4));case 4:r=i.h,S(i,3);break;case 2:k(i);case 3:if(r)return i.return(r);throw new Re(1,2,2011,n)}}))}function ul(e,t,n,r,i,a,o){var s,u,l,c;return P((function(d){if(1==d.g)return"text/vtt"!=i||o.length?w(d,ll(e,t,e.D,e.h.streaming.retryParameters),3):d.A(2);2!=d.g&&(s=d.h,u=cl(e,s,i,o),l=new Blob([u],{type:"text/vtt"}),t=Zo(l),i="text/vtt"),c=document.createElement("track");var f=e.V,h=t;try{if(f.g.enabled){var p=bu(f);p.ot=Iu,p.su=!0;var g=Eu(h,xu(p))}else g=h}catch(e){G("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),g=h}return c.src=g,c.label=a,c.kind=r,c.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(c),d.return(c)}))}function ll(e,t,n,r){var i,a,o;return P((function(s){if(1==s.g){i=Rr,(a=Cr([t],r)).method="GET";var u=e.V;try{u.g.enabled&&wu(u,a,{ot:Iu,su:!0})}catch(e){G("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return w(s,n.request(i,a).promise,2)}return o=s.h,s.return(o.data)}))}function cl(e,t,n,r){var i=Zt[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration,vttOffset:0},t=Ie(t),function(e,t){function n(e){for(var n=e,r=l(t),i=r.next();!i.done;i=r.next())(i=i.value).end&&i.start<e&&(n+=i.end-i.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(r=Math.floor(n/60%60))?"0":"")+r+":"+(10>(i=Math.floor(n%60))?"0":"")+i+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var r=au(e,[]);e="WEBVTT\n\n";for(var i=(r=l(r)).next();!i.done;i=r.next())e+=n((i=i.value).startTime)+" --\x3e "+n(i.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case se:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(i)+"\n",e+=i.payload+"\n\n";return e}(t=n.parseMedia(t,e),r);throw new Re(2,2,2014,n)}function dl(e){var t=Bu();return t.streaming.failureCallback=function(t){if(e.U()){var n=null;1001==t.code||1002==t.code?n=1:1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.ce(n))}},t.textDisplayFactory=function(){return e.Uc?new du(e.g,e.Uc):new ou(e.g)},t}function fl(e,t){return P((function(n){if(1==n.g)return w(n,function(e,t){return P((function(n){if(1==n.g)return w(n,vn(e.j?e.j.l:null,t),2);Ll(t),x(n)}))}(e,t),2);hl(e,t),x(n)}))}function hl(e,t){if(e.l!=ql){mn(t.variants,e.h.restrictions,e.ec)&&e.j&&Sl(e);var n=e.m?e.m.g:null;if(n&&e.m.u)for(var r=l(t.variants),i=r.next();!i.done;i=r.next())i=i.value,pl(e,n.keySystem,i.video),pl(e,n.keySystem,i.audio);Ol(e,t)}}function pl(e,t,n){if(n)for(var r=(n=l(n.drmInfos)).next();!r.done;r=n.next())if((r=r.value).keySystem==t)for(var i=(r=l(r.initData||[])).next();!i.done;i=r.next())i=i.value,Mi(e.m,i.initDataType,i.initData)}function gl(e){var t=e.Fd();if(e.o&&e.M&&e.B){var n=e.H;n.j=t,Is(n),e.V&&(n=e.V,t||n.i||(n.i=!0),n.i&&t&&(n.l=!0),n.m=t),vl(e)}t=(new Map).set("buffering",t),e.dispatchEvent(Yu("buffering",t))}function ml(e){var t=e.g.playbackRate;0!=t&&(e.H&&e.H.set(t),t=Yu("ratechange"),e.dispatchEvent(t))}function vl(e){if(e.o&&e.M){var t=e.o.g;e.M.g==sr?Hu(t,"buffering"):e.g.paused?Hu(t,"paused"):e.g.ended?Hu(t,"ended"):Hu(t,"playing")}}function yl(e){try{Ol(e,e.i)}catch(t){return _l(e,t),!1}var t=e.i.variants.filter((function(e){return Pn(e)}));return t=e.ub.create(t),e.u.setVariants(Array.from(t.values())),!0}function bl(e){return yl(e)?e.u.chooseVariant():null}function wl(e){var t=bl(e);t&&xl(e,t,!0,!0,0)}function xl(e,t,n,r,i){var a=e.j.l;if(t==a)r&&zs(e.j,t,r,i,!0);else{var o=e.o.h;o.h!=t&&(o.h=t,o.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),zs(e.j,t,r,i,void 0,n),r=null,a&&(r=kn(a)),t=kn(t),n?Tl(e,r,t):kl(e,r,t)}}function El(e,t){var n=Array.from(e.g.audioTracks).find((function(e){return e.enabled}));t.enabled=!0,t.id!==n.id&&(n.enabled=!1),kl(e,n=Mn(n),t=Mn(t))}function Tl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&Po(e.L,n),jl(e,n=Yu("adaptation",t))}function Sl(e){jl(e,Yu("trackschanged"))}function kl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&Po(e.L,n),jl(e,n=Yu("variantchanged",t))}function Al(e){jl(e,Yu("textchanged"))}function Cl(e){jl(e,Yu("texttrackvisibility"))}function Il(e){jl(e,Yu("abrstatuschanged",(new Map).set("newStatus",e.h.abr.enabled)))}function _l(e,t){if(e.l!=ql)if(function(e,t){if(1002!=t.code&&1011!=t.code||1!=t.category||!navigator.onLine)return!1;var n=e.h.streaming.maxDisabledTime;if(0==n){if(1011!=t.code)return!1;n=1}t=e.Xa().find((function(e){return e.active}));for(var r=e.i,i=l(r.variants),a=i.next();!a.done;a=i.next())(a=a.value).id===t.id&&(a.disabledUntilTime=Date.now()/1e3+n);return mn(r.variants,e.h.restrictions,e.ec),!!(t=bl(e))&&(r=e.Na().video.reduce((function(e,t){return e+t.end-t.start}),0),xl(e,t,!1,!0,r),e.af.N(n),!0)}(e,t))t.handled=!0;else{var n=Yu("error",(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function Ml(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(Yu(t,n))}function Rl(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new Re(2,3,3016,t,n,e.g.error.message)}function Pl(e,t){if(e.j){var n=Object.keys(t),r=1==n.length&&"00"==n[0],i=!1;if(n.length)for(var a=(n=l(e.i.variants)).next();!a.done;a=n.next()){var o=[];(a=a.value).audio&&o.push(a.audio),a.video&&o.push(a.video);for(var s=(o=l(o)).next();!s.done;s=o.next()){var u=s.value;if(s=a.allowedByKeySystem,u.keyIds.size){a.allowedByKeySystem=!0;for(var c=(u=l(u.keyIds)).next();!c.done;c=u.next())c=c.value,c=t[r?"00":c],a.allowedByKeySystem=a.allowedByKeySystem&&!!c&&!Xl.includes(c)}s!=a.allowedByKeySystem&&(i=!0)}}i&&!yl(e)||((t=e.j.l)&&!t.allowedByKeySystem&&wl(e),i&&Sl(e))}}function Dl(e,t,n){e.J&&e.J.onExpirationUpdated&&e.J.onExpirationUpdated(t,n),t=Yu("expirationupdated"),e.dispatchEvent(t)}function Nl(e,t,n){0<t&&(e.U()||e.Ze(t)),n<(t=e.getDuration())&&(e.U()||e.Aa(n))}function Ol(e,t){e=e.m?e.m.Qc():{};var n=Object.keys(e);n=n.length&&"00"==n[0];for(var r=!1,i=!1,a=new Set,o=new Set,s=(t=l(t.variants)).next();!s.done;s=t.next()){var u=[];(s=s.value).audio&&u.push(s.audio),s.video&&u.push(s.video);for(var c=(u=l(u)).next();!c.done;c=u.next())if((c=c.value).keyIds.size)for(var d=(c=l(c.keyIds)).next();!d.done;d=c.next()){d=d.value;var f=e[n?"00":d];f?Xl.includes(f)&&o.add(f):a.add(d)}s.allowedByApplication?s.allowedByKeySystem&&(r=!0):i=!0}if(!r)throw new Re(2,4,4012,e={hasAppRestrictions:i,missingKeys:Array.from(a),restrictedKeyStatuses:Array.from(o)})}function Ll(e){if(!e.variants.some(Pn))throw new Re(2,4,4032)}function jl(e,t){P((function(n){if(1==n.g)return w(n,Promise.resolve(),2);e.l!=ql&&e.dispatchEvent(t),x(n)}))}function Ul(e){for(var t=new Set,n=(e=l(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(an(n.language)):t.add("und");return t}function Fl(e){for(var t=new Map,n=new Map,r=(e=l(e)).next();!r.done;r=e.next()){var i="und",a=[];(r=r.value).language&&(i=an(r.language)),(a="variant"==r.type?r.audioRoles:r.roles)&&a.length||(a=[""]),t.has(i)||t.set(i,new Set);for(var o=(a=l(a)).next();!o.done;o=a.next())o=o.value,t.get(i).add(o),r.label&&(n.has(i)||n.set(i,new Map),n.get(i).set(o,r.label))}var s=[];return t.forEach((function(e,t){for(var r=(e=l(e)).next();!r.done;r=e.next()){r=r.value;var i=null;n.has(t)&&n.get(t).has(r)&&(i=n.get(t).get(r)),s.push({language:t,role:r,label:i})}})),s}function Bl(){return new Re(2,7,7e3)}function zl(e,t,n,r,i,a){return r==e&&i.mediaElement==a.mediaElement&&i.uri==a.uri&&i.mimeType==a.mimeType?t:n}function Vl(){return{mediaElement:null,mimeType:null,startTime:null,ne:NaN,uri:null}}function Hl(e){return new Promise((function(t,n){e.mb=function(){return n(Bl())},e.bd=function(){return t()},e.onError=function(e){return n(e)},e.dd=function(){return n(Bl())}}))}B("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",dh:"s",Yg:"o"}),B("shaka.util.ConfigUtils",Pu),Pu.convertToConfigObject=Nu,Pu.mergeConfigObjects=Du,B("shaka.util.FairPlayUtils",Lu),Lu.commonFairPlayResponse=function(e,t){if(2===e){try{var n=xt(t.data)}catch(e){return}e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var r=JSON.parse(n);r.ckc&&(n=r.ckc,e=!0),r.CkcMessage&&(n=r.CkcMessage,e=!0),r.License&&(n=r.License,e=!0)}catch(e){}e&&(t.data=Ce(Mt(n)))}},Lu.conaxFairPlayRequest=function(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")},Lu.ezdrmFairPlayRequest=function(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")},Lu.verimatrixFairPlayRequest=function(e,t){2===e&&(e=_t(e=Ie(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=St("spc="+e))},Lu.conaxInitDataTransform=function(t,n,r){if("skd"!==n)return t;n=r.serverCertificate,r=Tt(t).split("skd://").pop().split("?").shift(),r=e.atob(r);var i=new ArrayBuffer(2*r.length);i=new Uint16Array(i);for(var a=0,o=r.length;a<o;a++)i[a]=r.charCodeAt(a);return Uu(t,i,n)},Lu.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,Uu(e,n=Tt(e).split(";").pop(),t))},Lu.verimatrixInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,Uu(e,n=Tt(e).split("skd://").pop(),t))},Lu.initDataTransform=Uu,Lu.defaultGetContentId=ju,Lu.isFairPlaySupported=function(){var e;return P((function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},E(t,2),w(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(k(t),t.return(!1))}))},B("shaka.util.PlayerConfiguration",Fu),Fu.mergeConfigObjects=zu,Fu.createDefault=Bu,m($u,wr),(r=$u.prototype).destroy=function(){var e,t=this;return P((function(n){switch(n.g){case 1:return t.l==ql?n.return():(Xu(t),t.l=ql,e=nu(t.Ga,(function(){return{node:t.O,payload:Vl(),hb:!1}})),w(n,new Promise((function(t){e.Jb=function(){},e.bd=function(){t()},e.mb=function(){t()},e.onError=function(){t()},e.dd=function(){t()}})),2));case 2:return w(n,t.Ga.destroy(),3);case 3:if(t.Xc&&(t.Xc.release(),t.Xc=null),t.Xb&&(t.Xb.release(),t.Xb=null),t.s&&(t.s.release(),t.s=null),t.Nd=null,t.u=null,t.h=null,t.o=null,t.Uc=null,t.V=null,!t.D){n.A(4);break}return w(n,t.D.destroy(),5);case 5:t.D=null;case 4:wr.prototype.release.call(t),x(n)}}))},r.Yb=function(e,t){if(t=void 0===t||t,this.l==ql)return Promise.reject(Bl());var n=Vl();n.mediaElement=e,st()||(t=!1);var r=t?this.wb:this.W;return(e=nu(this.Ga,(function(){return{node:r,payload:n,hb:!1}}))).Jb=function(){},Hl(e)},r.lf=function(e){this.cf=e},r.detach=function(){var e=this;if(this.l==ql)return Promise.reject(Bl());var t=nu(this.Ga,(function(){return{node:e.O,payload:Vl(),hb:!1}}));return t.Jb=function(){},Hl(t)},r.re=function(e){var t=this;if(e=void 0===e||e,this.l==ql)return Promise.reject(Bl());this.dc=!1,st()||(e=!1),Xu(this);var n=Vl(),r=nu(this.Ga,(function(r){var i=r.mediaElement&&e?t.wb:r.mediaElement?t.W:t.O;return n.mediaElement=r.mediaElement,{node:i,payload:n,hb:!1}}));return r.Jb=function(){},Hl(r)},r.Fg=function(e){this.fc=e},r.load=function(e,t,n){var r=this;if(this.fc=null,this.dc=!1,this.l==ql)return Promise.reject(Bl());this.dispatchEvent(Yu("loading"));var i=Vl();i.uri=e,i.ne=Date.now()/1e3,n&&(i.mimeType=n),void 0!==t&&(i.startTime=t);var a=function(e,t){if(!st())return!0;var n=t.mimeType,r=t.uri||"";if(n||(n=Yi(r),n=Jl[n]),n){if(""==(t.mediaElement||vt()).canPlayType(n))return!1;if(!st()||!(n in Qi)&&!(Yi(r)in Ji)||e.h.streaming.preferNativeHls)return!0;if(ht())return e.h.streaming.useNativeHlsOnSafari}return!1}(this,i)?this.yb:this.ba,o=nu(this.Ga,(function(e){return null==e.mediaElement?null:(i.mediaElement=e.mediaElement,{node:a,payload:i,hb:!0})}));return this.o=new Gu,this.V=function(e){return new vu({getBandwidthEstimate:function(){return e.u?e.u.getBandwidthEstimate():NaN},Na:function(){return e.Na()},getCurrentTime:function(){return e.g?e.g.currentTime:0},Xa:function(){return e.Xa()},Rc:function(){return e.Rc()},U:function(){return e.U()}},e.h.cmcd)}(this),o.Jb=function(){},new Promise((function(e,t){o.dd=function(){return t(new Re(2,7,7002))},o.bd=function(){e(),r.dispatchEvent(Yu("loaded"))},o.mb=function(){return t(Bl())},o.onError=function(e){return t(e)}}))},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Nu(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(Xn("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),e.streaming.forceTransmux=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&e.streaming.lowLatencyMode&&(void 0==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),void 0==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=zu(this.h,e,dl(this));return il(this),n},r.getConfiguration=function(){var e=dl(this);return zu(e,this.h,dl(this)),e},r.Bf=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.uc().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},r.rg=function(){for(var e in this.h)delete this.h[e];zu(this.h,dl(this),dl(this)),il(this)},r.Hf=function(){return this.l},r.Lf=function(){return this.g},r.jc=function(){return this.D},r.Dd=function(){return this.Nb},r.Ge=function(){return this.F?this.F:null},r.U=function(){return this.i?this.i.presentationTimeline.U():!(!this.g||!this.g.src)&&1/0==this.g.duration},r.jb=function(){return!!this.i&&this.i.presentationTimeline.jb()},r.Zf=function(){if(this.i){var e=this.i.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},r.uc=function(){if(!this.dc)return{start:0,end:0};if(this.i){var e=this.i.presentationTimeline;return{start:e.Db(),end:e.Oa()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},r.Xf=function(){this.U()&&(this.g.currentTime=this.uc().end)},r.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},r.drmInfo=function(){return this.m?this.m.g:null},r.ic=function(){return this.m?this.m.ic():1/0},r.Qc=function(){return this.m?this.m.Qc():{}},r.Fd=function(){return!!this.M&&this.M.g==sr},r.Rc=function(){return this.g?this.H?this.H.i:1:0},r.Ag=function(e){0==e?W("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(e),this.l==Wl&&(this.u.playbackRateChanged(e),Bs(this.j,1<Math.abs(e))))},r.pf=function(){var e=this.H.Pc();this.l==Gl&&this.H.set(e),this.l==Wl&&(this.H.set(e),this.u.playbackRateChanged(e),Bs(this.j,!1))},r.Xa=function(){if(this.i){for(var e=this.j?this.j.l:null,t=[],n=0,r=l(this.i.variants),i=r.next();!i.done;i=r.next())if(Pn(i=i.value)){var a=kn(i);a.active=i==e,a.active||1==n||null==e||i.video!=e.video||i.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map((function(e){return Mn(e)})):[]},r.Fb=function(){if(this.i){for(var e=this.j?this.j.o:null,t=[],n=l(this.i.textStreams),r=n.next();!r.done;r=n.next()){var i=An(r=r.value);i.active=r==e,t.push(i)}return t}return this.g&&this.g.src&&this.g.textTracks?al(this).map((function(e){return _n(e)})):[]},r.Ff=function(){return this.i?this.i.imageStreams.map((function(e){return Cn(e)})):[]},r.Tf=function(e,t){var n,r,i,a,o,s,u,l,c,d,f,h,p,g,m,v,y,b,x,E,T=this;return P((function(S){return 1==S.g?T.i?(n=T.i.imageStreams.find((function(t){return t.id==e})))?n.segmentIndex?S.A(3):w(S,n.createSegmentIndex(),3):S.return(null):S.A(2):2!=S.g?null==(r=n.segmentIndex.find(t))?S.return(null):(i=n.segmentIndex.get(r),a=i.tilesLayout||n.tilesLayout,(o=/(\d+)x(\d+)/.exec(a))?(s=n.width||0,u=n.height||0,l=parseInt(o[1],10),c=parseInt(o[2],10),d=s/l,f=u/c,h=l*c,p=i.j-i.startTime,g=i.s||p/h,m=i.startTime,y=v=0,1<h&&(b=Math.floor((t-i.startTime)/g),m=i.startTime+b*g,v=b%l*d,y=Math.floor(b/l)*f),x=!1,(E=i.o)&&(x=!0,f=E.height,v=E.positionX,y=E.positionY,d=E.width),S.return({imageHeight:u,imageWidth:s,height:f,positionX:v,positionY:y,startTime:m,duration:g,uris:i.ya(),width:d,sprite:x})):S.return(null)):S.return(null)}))},r.Se=function(e){if(this.i&&this.j){var t=this.i.textStreams.find((function(t){return t.id==e.id}));t&&t!=this.j.o&&(Wu(this.o.h,t,!1),Vs(this.j,t),Al(this),this.vb=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=l(t=al(this))).next();!n.done;n=t.next())In(n=n.value)==e.id?n.mode=this.ca?"showing":"hidden":n.mode="disabled";Al(this)}},r.Te=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j){this.h.abr.enabled&&W("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var r=this.i.variants.find((function(t){return t.id==e.id}));r&&Pn(r)&&(xl(this,r,!1,t,n),this.ub=new rr(r),yl(this))}else if(this.g&&this.g.audioTracks)for(n=(t=l(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(In(n=n.value)==e.id){El(this,n);break}},r.Af=function(){return Fl(this.Xa())},r.Rf=function(){return Fl(this.Fb())},r.zf=function(){return Array.from(Ul(this.Xa()))},r.Qf=function(){return Array.from(Ul(this.Fb()))},r.ge=function(e,t,n){if(n=void 0===n?0:n,this.i&&this.B){this.ub=new ir(e,t||"",n,""),t=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},e=this.j.l;var r=this.ub.create(this.i.variants);n=null;for(var i=(r=l(r.values())).next();!i.done;i=r.next())i=i.value,(!n||t(n,e)>t(i,e))&&(n=i);n?(t=kn(n),this.Te(t,!0)):wl(this)}else if(this.g&&this.g.audioTracks){i=Array.from(this.g.audioTracks),e=an(e),r=n=null;for(var a=(i=l(i)).next();!a.done;a=i.next()){var o=Mn(a=a.value);an(o.language)==e&&(n=a,t?o.roles.includes(t)&&(r=a):0==o.roles.length&&(r=a))}r?El(this,r):n&&El(this,n)}},r.he=function(e,t,n){if(n=void 0!==n&&n,this.i&&this.B)this.vb=e,this.cc=t||"",this.$b=n,(e=Nn(this.i.textStreams,this.vb,this.cc,this.$b)[0]||null)&&e!=this.j.o&&(Wu(this.o.h,e,!1),this.h.streaming.alwaysStreamText||this.Hd())&&(Vs(this.j,e),Al(this));else{var r=an(e);(e=this.Fb().find((function(e){return an(e.language)==r&&(!t||e.roles.includes(t))&&e.forced==n})))&&this.Se(e)}},r.tg=function(e){if(this.i&&this.B){for(var t=null,n=l(this.i.variants),r=n.next();!r.done;r=n.next())if((r=r.value).audio.label==e){t=r;break}null!=t&&(this.ub=new ir(t.language,"",0,e),wl(this))}},r.Hd=function(){var e=this.ca;return this.G?this.G.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?al(this).some((function(e){return"showing"==e.mode})):e},r.He=function(){return this.g&&this.g.src&&this.g.textTracks?ol(this).map((function(e){return _n(e)})):[]},r.Cf=function(e){var t=an(e),n=ol(this).filter((function(e){return an(e.language)==t}));if(!n||!n.length)return[];e=[];for(var r=new Set,i=(n=l(n)).next();!i.done;i=n.next())if((i=i.value)&&i.cues)for(var a=(i=l(i.cues)).next();!a.done;a=i.next()){var o=a.value;(a=o.id)&&""!=a||(a=o.startTime+"-"+o.endTime+"-"+o.text),o={id:a,title:o.text,startTime:o.startTime,endTime:o.endTime},r.has(a)||(e.push(o),r.add(a))}return e},r.yg=function(e){if(e=!!e,this.ca!=e){if(this.ca=e,this.l==Wl)this.G.m.setTextVisibility(e),this.h.streaming.alwaysStreamText||(e?this.j.o||0<(e=Nn(this.i.textStreams,this.vb,this.cc,this.$b)).length&&(Vs(this.j,e[0]),Al(this)):function(e){var t=e.j.get(et);t&&(Js(t),Zs(t).catch((function(){})),e.j.delete(et)),e.o=null}(this.j));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=al(this),n=(t=l(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Cl(this)}},r.Of=function(){if(!this.U())return null;var e=this.Ga.l,t=0;if(this.B)t=this.B.Ic();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.i?new Date(1e3*(this.i.presentationTimeline.i+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},r.Ie=function(){if(!this.U())return null;if(this.i)return new Date(1e3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},r.Na=function(){if(this.l==Wl)return this.G.Na();var e={total:[],audio:[],video:[],text:[]};return this.l==Gl&&(e.total=To(this.g.buffered)),e},r.getStats=function(){if(this.l!=Wl&&this.l!=Gl)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};vl(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.o;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.B&&(this.o.M=this.B.te(),this.o.O=this.B.ue()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.o;var r=Number(n.totalVideoFrames);t.L=Number(n.droppedVideoFrames),t.J=r,this.o.H=Number(n.corruptedVideoFrames)}this.m?n=(n=this.m).H?n.H:NaN:n=NaN,this.o.s=n,this.l==Wl&&((n=this.j.l)&&(this.o.B=(this.H?this.H.i:1)*n.bandwidth),n&&n.video&&(t=this.o,r=n.video.height||NaN,t.o=n.video.width||NaN,t.l=r),this.U()&&(n=this.Ie().valueOf()+1e3*this.uc().end,this.o.D=(Date.now()-n)/1e3),this.i&&this.i.presentationTimeline&&(this.o.G=this.i.presentationTimeline.g),n=this.u.getBandwidthEstimate(),this.o.u=n),this.l==Gl&&(n=this.o,t=e.videoHeight||NaN,n.o=e.videoWidth||NaN,n.l=t);var i=this.o;e=i.o,n=i.l,t=i.B,r=i.J;for(var a=i.L,o=i.H,s=i.O,u=i.M,c=i.u,d=i.i,f=i.m,h=i.F,p=i.j,g=qu(i.g,"playing"),m=qu(i.g,"paused"),v=qu(i.g,"buffering"),y=i.s,b=i.D,w=i.G,x=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],r=l(e.h),i=r.next();!i.done;i=r.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}(i.g),E=[],T=(i=l(i.h.g)).next();!T.done;T=i.next())T=T.value,E.push({timestamp:T.timestamp,id:T.id,type:T.type,fromAdaptation:T.fromAdaptation,bandwidth:T.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:r,droppedFrames:a,corruptedFrames:o,stallsDetected:s,gapsJumped:u,estimatedBandwidth:c,completionPercent:d,loadLatency:f,manifestTimeSeconds:h,drmTimeSeconds:p,playTime:g,pauseTime:m,bufferingTime:v,licenseTime:y,liveLatency:b,maxSegmentDuration:w,stateHistory:x,switchHistory:E}},r.hf=function(e,t,n,r,i,a,o){o=void 0!==o&&o;var s,u,l,c,d,f,h,p,g,m,v=this;return P((function(y){switch(y.g){case 1:if(v.l!=Wl&&v.l!=Gl)throw new Re(1,7,7004);if(r){y.A(2);break}return w(y,sl(v,e),3);case 3:r=y.h;case 2:if(s=[],v.F)try{s=v.F.getServerSideCuePoints()}catch(e){}if(v.l!=Gl){y.A(4);break}return o&&(n="forced"),w(y,ul(v,e,t,n,r,a||"",s),5);case 5:if(u=v.Fb(),l=u.find((function(e){return e.language==t&&e.label==(a||"")&&e.kind==n})))return Sl(v),y.return(l);throw new Re(1,2,2012);case 4:if(c=tt,1/0==(d=v.i.presentationTimeline.getDuration()))throw new Re(1,4,4033);if(!s.length){y.A(6);break}return w(y,ll(v,e,v.D,v.h.streaming.retryParameters),7);case 7:f=y.h,h=cl(v,f,r,s),p=new Blob([h],{type:"text/vtt"}),e=Zo(p),r="text/vtt";case 6:if(g={id:v.Yd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ss(0,d,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:c.X,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},m=Ht(g.mimeType,g.codecs),!Xt(m))throw new Re(2,2,2014,r);return v.i.textStreams.push(g),Sl(v),y.return(An(g))}}))},r.jf=function(e,t){var n,r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b=this;return P((function(x){switch(x.g){case 1:if(b.l!=Wl&&b.l!=Gl)throw new Re(1,7,7004);if(b.l==Gl)throw new Re(1,2,2016);if(t){x.A(2);break}return w(x,sl(b,e),3);case 3:t=x.h;case 2:if("text/vtt"!=t)throw new Re(1,2,2017,e);if(n=tt,1/0==(r=b.i.presentationTimeline.getDuration()))throw new Re(1,4,4045);return w(x,ll(b,e,b.D,b.h.streaming.retryParameters),4);case 4:if(i=x.h,!(a=Zt[t]))throw new Re(2,2,2014,t);for(o=a(),s={periodStart:0,segmentStart:0,segmentEnd:r,vttOffset:0},u=Ie(i),c=o.parseMedia(u,s),d=[],f={},h=l(c),p=h.next();!p.done;f={Rb:f.Rb},p=h.next())g=p.value,f.Rb=Ye([e],[g.payload])[0],m=new mo(g.startTime,g.endTime,function(e){return function(){return[e.Rb]}}(f),0,null,null,0,0,1/0),f.Rb.includes("#xywh")&&(4===(v=f.Rb.split("#xywh=")[1].split(",")).length&&m.Ye({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),d.push(m);return y={id:b.Yd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es(d),mimeType:t||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:n.Wb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1"},b.i.imageStreams.push(y),Sl(b),x.return(Cn(y))}}))},r.gf=function(e,t,n){var r,i,a,o,s=this;return P((function(u){switch(u.g){case 1:if(s.l!=Wl&&s.l!=Gl)throw new Re(1,7,7004);if(n){u.A(2);break}return w(u,sl(s,e),3);case 3:n=u.h;case 2:if(r=[],s.F)try{r=s.F.getServerSideCuePoints()}catch(e){}return w(u,ul(s,e,t,"chapters",n,"",r),4);case 4:if(i=u.h,a=s.He(),!(o=a.find((function(e){return e.language==t})))){u.A(5);break}return w(u,new Promise((function(e,t){s.s.ma(i,"load",e),s.s.ma(i,"error",(function(){t(new Re(1,2,2015))}))})),6);case 6:return u.return(o);case 5:throw new Re(1,2,2012)}}))},r.ke=function(e,t){this.ec.width=e,this.ec.height=t},r.ce=function(e){if(this.l==Wl){var t=this.j;if(e=void 0===e?.1:e,t.h.g)t=!1;else if(t.s)t=!1;else{for(var n=l(t.j.values()),r=n.next();!r.done;r=n.next())!(r=r.value).nc||r.ra||r.Ka||(r.nc=!1,Qs(t,r,e));t=!0}}else t=!1;return t},r.If=function(){return W("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},r.Jf=function(){return this.Yc},r.$e=function(e){this.Uc=e},B("shaka.Player",$u),$u.prototype.setVideoContainer=$u.prototype.$e,$u.prototype.getManifestParserFactory=$u.prototype.Jf,$u.prototype.getManifest=$u.prototype.If,$u.prototype.retryStreaming=$u.prototype.ce,$u.prototype.setMaxHardwareResolution=$u.prototype.ke,$u.prototype.addChaptersTrack=$u.prototype.gf,$u.prototype.addThumbnailsTrack=$u.prototype.jf,$u.prototype.addTextTrackAsync=$u.prototype.hf,$u.prototype.getStats=$u.prototype.getStats,$u.prototype.getBufferedInfo=$u.prototype.Na,$u.prototype.getPresentationStartTimeAsDate=$u.prototype.Ie,$u.prototype.getPlayheadTimeAsDate=$u.prototype.Of,$u.prototype.setTextTrackVisibility=$u.prototype.yg,$u.prototype.getChapters=$u.prototype.Cf,$u.prototype.getChaptersTracks=$u.prototype.He,$u.prototype.isTextTrackVisible=$u.prototype.Hd,$u.prototype.selectVariantsByLabel=$u.prototype.tg,$u.prototype.selectTextLanguage=$u.prototype.he,$u.prototype.selectAudioLanguage=$u.prototype.ge,$u.prototype.getTextLanguages=$u.prototype.Qf,$u.prototype.getAudioLanguages=$u.prototype.zf,$u.prototype.getTextLanguagesAndRoles=$u.prototype.Rf,$u.prototype.getAudioLanguagesAndRoles=$u.prototype.Af,$u.prototype.selectVariantTrack=$u.prototype.Te,$u.prototype.selectTextTrack=$u.prototype.Se,$u.prototype.getThumbnails=$u.prototype.Tf,$u.prototype.getImageTracks=$u.prototype.Ff,$u.prototype.getTextTracks=$u.prototype.Fb,$u.prototype.getVariantTracks=$u.prototype.Xa,$u.prototype.cancelTrickPlay=$u.prototype.pf,$u.prototype.trickPlay=$u.prototype.Ag,$u.prototype.getPlaybackRate=$u.prototype.Rc,$u.prototype.isBuffering=$u.prototype.Fd,$u.prototype.getKeyStatuses=$u.prototype.Qc,$u.prototype.getExpiration=$u.prototype.ic,$u.prototype.drmInfo=$u.prototype.drmInfo,$u.prototype.keySystem=$u.prototype.keySystem,$u.prototype.goToLive=$u.prototype.Xf,$u.prototype.seekRange=$u.prototype.uc,$u.prototype.isAudioOnly=$u.prototype.Zf,$u.prototype.isInProgress=$u.prototype.jb,$u.prototype.isLive=$u.prototype.U,$u.prototype.getAdManager=$u.prototype.Ge,$u.prototype.getAssetUri=$u.prototype.Dd,$u.prototype.getNetworkingEngine=$u.prototype.jc,$u.prototype.getMediaElement=$u.prototype.Lf,$u.prototype.getLoadMode=$u.prototype.Hf,$u.prototype.resetConfiguration=$u.prototype.rg,$u.prototype.getBufferFullness=$u.prototype.Bf,$u.prototype.getConfiguration=$u.prototype.getConfiguration,$u.prototype.configure=$u.prototype.configure,$u.prototype.load=$u.prototype.load,$u.prototype.updateStartTime=$u.prototype.Fg,$u.prototype.unload=$u.prototype.re,$u.prototype.detach=$u.prototype.detach,$u.prototype.attachCanvas=$u.prototype.lf,$u.prototype.attach=$u.prototype.Yb,$u.probeSupport=function(e){var t,n,r,i,a;return e=void 0===e||e,P((function(o){if(1==o.g)return t={},e?w(o,function(){var e,t,n,r,i,a;return P((function(o){return 1==o.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],r=new Map,i=function(e){var t,i,a;return P((function(o){switch(o.g){case 1:if(E(o,2),"org.w3.clearkey"===e&>())throw Error("Unsupported keySystem");return w(o,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=o.h,a=!!(i=t.getConfiguration().sessionTypes)&&i.includes("persistent-license"),mt("Tizen 3")&&(a=!1),r.set(e,{persistentState:a}),w(o,t.createMediaKeys(),5);case 5:S(o,0);break;case 2:k(o),r.set(e,null),x(o)}}))},a=e.map((function(e){return i(e)})),w(o,Promise.all(a),2)):o.return(zr(r))}))}(),3):o.A(2);2!=o.g&&(t=o.h);var s={};if(st()){for(var u in Qi)s[u]=!0;for(var d in Ji)s[d]=!0}u={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var f=(d=l(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!f.done;f=d.next())s[f=f.value]=st()?!!Qi[f]:ut(f);for(var h in u)s[h]=st()?!!Ji[h]:ut(u[h]);for(n=s,s={},u=(h=l(h='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(c(ts)))).next();!u.done;u=h.next())s[u=u.value]=st()?!!Xt(u)||(J(u)||Ut(u)):ut(u),s[d=u.split(";")[0]]=s[d]||s[u];for(a in r={manifest:n,media:s,drm:t},i=Yl)r[a]=i[a]();return o.return(r)}))},$u.isBrowserSupported=function(){if(e.Promise||W("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||mt("Trident/"))return!1;var t=gt();return!(t&&13>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!st()||ut("application/x-mpegurl"))},$u.setAdManagerFactory=function(e){Ql=e},$u.registerSupportPlugin=function(e,t){Yl[e]=t},$u.prototype.destroy=$u.prototype.destroy;var ql=0,Kl=1,Wl=2,Gl=3;$u.LoadMode={DESTROYED:ql,NOT_LOADED:Kl,MEDIA_SOURCE:Wl,SRC_EQUALS:Gl},$u.version="v4.3.5";var $l=["4","3"];Jn=new function(e){this.g=e,this.i=Yn,this.h=Qn}(new $n(Number($l[0]),Number($l[1])));var Xl=["output-restricted","internal-error"],Yl={},Ql=null,Jl={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Zl={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function ec(){this.h=[],this.j=this.i=this.g=0}function tc(e,t,n){var r=this;this.h=e,this.g=t,this.m=n,this.i=!1,this.l=this.g.getVolume(),this.j=new Lr,this.j.C(this.g,google.ima.AdEvent.Type.PAUSED,(function(){r.i=!0})),this.j.C(this.g,google.ima.AdEvent.Type.RESUMED,(function(){r.i=!1}))}function nc(t,n,r,i){var a=this;this.o=t,this.i=n,this.s=null,this.u=NaN,this.l=i,this.j=null,this.h=new Lr,google.ima.settings.setLocale(r),(t=new google.ima.AdDisplayContainer(this.o,this.i)).initialize(),this.m=new google.ima.AdsLoader(t),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.3.5"),this.g=null,this.h.ma(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){t.l(new vr("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.u))),t.g=n.getAdsManager(t.i),t.l(new vr("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var r=t.g.getCuePoints();if(r.length){n=[];for(var i=(r=l(r)).next();!i.done;i=r.next())n.push({start:i.value,end:null});t.l(new vr("ad-cue-points-changed",(new Map).set("cuepoints",n)))}!function(e){function t(t,n){t=(new Map).set("originalEvent",t),e.l(new vr(n,t))}e.h.C(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){rc(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){ac(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.STARTED,(function(t){ac(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.C(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.C(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.C(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")})),e.h.C(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){oc(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){oc(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.C(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.C(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))})),e.h.C(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))})),e.h.C(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(n){e.j&&t(n,"ad-skip-state-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.C(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.C(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.C(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.C(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.C(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.C(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.C(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.C(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e?(t.s=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.s.observe(t.i)):t.h.C(document,"fullscreenchange",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.i.addEventListener("play",(function(){t.g.start()}),{once:!0})}catch(e){oc(t,null)}}(a,t)})),this.h.C(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){rc(a,e)})),this.h.C(this.i,"ended",(function(){a.m.contentComplete()}))}function rc(e,t){t.getError(),oc(e,null),e.l(new vr("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function ic(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function ac(e,t){var n=t.getAd();n?(e.j=new tc(n,e.g,e.i),t=(new Map).set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new vr("ad-started",t)),e.j.isLinear()&&(e.o.setAttribute("ad-active","true"),e.i.pause(),e.j.setVolume(e.i.muted?0:e.i.volume))):W("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function oc(e,t){e.l(new vr("ad-stopped",(new Map).set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.o.removeAttribute("ad-active"),e.i.ended||e.i.play())}function sc(e,t){this.i=e,this.h=null,this.g=t}function uc(e,t,n,r){var i=this;this.s=e,this.l=t,this.j=null,this.G=NaN,this.i=r,this.F=!1,this.u=this.m=this.o=null,this.B="",this.D=[],this.h=new Lr,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.s,e),this.i(new vr("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new vr("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.G))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.F||e.h.C(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.o=t,e.l.currentTime=n.start)}}))}(i,e)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){i.B.length?i.j.resolve(i.B):i.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),i.j=null})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),i.m=new sc(e,i.l),i.u&&(i.m.h=i.u),i.i(new vr("ad-started",(new Map).set("ad",i.m))),i.s.setAttribute("ad-active","true")})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){i.s.removeAttribute("ad-active");var e=i.l.currentTime;i.o&&i.o>e&&(i.l.currentTime=i.o,i.o=null)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){i.u=e.getStreamData().adProgressData,i.m&&(i.m.h=i.u)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){i.i(new vr("ad-first-quartile"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){i.i(new vr("ad-midpoint"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){i.i(new vr("ad-third-quartile"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){i.i(new vr("ad-complete")),i.i(new vr("ad-stopped")),i.s.removeAttribute("ad-active"),i.m=null})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){i.i(new vr("ad-skipped")),i.i(new vr("ad-stopped"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=l(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});i.D=e,i.i(new vr("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function lc(){wr.call(this),this.g=this.i=null,this.h=new ec,this.j=navigator.language}function cc(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof vr){var n={};for(r in t)(e=t[r])&&"object"==typeof e?"detail"==r&&(n[r]=e):r in Event||(n[r]=e);return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(e=l(Object.getOwnPropertyNames(t))).next();!n.done;n=e.next())r.add(n.value);for(e={},n=(r=l(r)).next();!n.done;n=r.next())e[n=n.value]=t[n];t={__type__:"Error",contents:e}}else if(t instanceof TimeRanges){for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},n=(t=l(To(t))).next();!n.done;n=t.next())e=(n=n.value).end,r.start.push(n.start),r.end.push(e);t=r}else t=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return t}}))}function dc(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){for(n in e=t.contents,t=Error(e.message),e)t[n]=e[n];n=t}else n=t;return n}))}(r=tc.prototype).getDuration=function(){return this.h.getDuration()},r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()},r.getRemainingTime=function(){return this.g.getRemainingTime()},r.isPaused=function(){return this.i},r.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()},r.getTimeUntilSkippable=function(){var e=this.h.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return this.g.getAdSkippableState()},r.skip=function(){return this.g.skip()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.resume()},r.getVolume=function(){return this.g.getVolume()},r.setVolume=function(e){return this.g.setVolume(e)},r.isMuted=function(){return 0==this.g.getVolume()},r.isLinear=function(){return this.h.isLinear()},r.resize=function(e,t){var n=!1,r=this.m;document.fullscreenEnabled?n=!!document.fullscreenElement:r.webkitSupportsFullscreen&&(n=r.webkitDisplayingFullscreen),this.g.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},r.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},r.getSequenceLength=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getAdPosition()},r.getTitle=function(){return this.h.getTitle()},r.getDescription=function(){return this.h.getDescription()},r.release=function(){this.g=this.h=null},B("shaka.ads.ClientSideAd",tc),tc.prototype.release=tc.prototype.release,tc.prototype.getDescription=tc.prototype.getDescription,tc.prototype.getTitle=tc.prototype.getTitle,tc.prototype.getPositionInSequence=tc.prototype.getPositionInSequence,tc.prototype.getSequenceLength=tc.prototype.getSequenceLength,tc.prototype.setMuted=tc.prototype.setMuted,tc.prototype.resize=tc.prototype.resize,tc.prototype.isLinear=tc.prototype.isLinear,tc.prototype.isMuted=tc.prototype.isMuted,tc.prototype.setVolume=tc.prototype.setVolume,tc.prototype.getVolume=tc.prototype.getVolume,tc.prototype.play=tc.prototype.play,tc.prototype.pause=tc.prototype.pause,tc.prototype.skip=tc.prototype.skip,tc.prototype.canSkipNow=tc.prototype.canSkipNow,tc.prototype.getTimeUntilSkippable=tc.prototype.getTimeUntilSkippable,tc.prototype.isSkippable=tc.prototype.isSkippable,tc.prototype.isPaused=tc.prototype.isPaused,tc.prototype.getRemainingTime=tc.prototype.getRemainingTime,tc.prototype.getMinSuggestedDuration=tc.prototype.getMinSuggestedDuration,tc.prototype.getDuration=tc.prototype.getDuration,nc.prototype.stop=function(){this.g&&this.g.stop(),this.o&&cu(this.o)},nc.prototype.release=function(){this.stop(),this.s&&this.s.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy()},(r=sc.prototype).getDuration=function(){return this.h?this.h.duration:-1},r.getMinSuggestedDuration=function(){return this.getDuration()},r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},r.isPaused=function(){return this.g.paused},r.isSkippable=function(){return this.i.isSkippable()},r.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},r.skip=function(){this.g.currentTime+=this.getRemainingTime()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.play()},r.getVolume=function(){return this.g.volume},r.setVolume=function(e){this.g.volume=e},r.isMuted=function(){return this.g.muted},r.isLinear=function(){return!0},r.resize=function(){},r.setMuted=function(e){this.g.muted=e},r.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},r.getTitle=function(){return this.i.getTitle()},r.getDescription=function(){return this.i.getDescription()},r.release=function(){this.g=this.h=this.i=null},B("shaka.ads.ServerSideAd",sc),sc.prototype.release=sc.prototype.release,sc.prototype.getDescription=sc.prototype.getDescription,sc.prototype.getTitle=sc.prototype.getTitle,sc.prototype.getPositionInSequence=sc.prototype.getPositionInSequence,sc.prototype.getSequenceLength=sc.prototype.getSequenceLength,sc.prototype.setMuted=sc.prototype.setMuted,sc.prototype.resize=sc.prototype.resize,sc.prototype.isLinear=sc.prototype.isLinear,sc.prototype.isMuted=sc.prototype.isMuted,sc.prototype.setVolume=sc.prototype.setVolume,sc.prototype.getVolume=sc.prototype.getVolume,sc.prototype.play=sc.prototype.play,sc.prototype.pause=sc.prototype.pause,sc.prototype.skip=sc.prototype.skip,sc.prototype.canSkipNow=sc.prototype.canSkipNow,sc.prototype.getTimeUntilSkippable=sc.prototype.getTimeUntilSkippable,sc.prototype.isSkippable=sc.prototype.isSkippable,sc.prototype.isPaused=sc.prototype.isPaused,sc.prototype.getRemainingTime=sc.prototype.getRemainingTime,sc.prototype.getMinSuggestedDuration=sc.prototype.getMinSuggestedDuration,sc.prototype.getDuration=sc.prototype.getDuration,uc.prototype.stop=function(){this.B="",this.o=null,this.D=[]},uc.prototype.release=function(){this.stop(),this.h&&this.h.release()},uc.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},m(lc,wr),(r=lc.prototype).setLocale=function(e){this.j=e},r.initClientSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new Re(2,10,1e4);this.i&&this.i.release(),this.i=new nc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.h.h.push(e.loadTime);break;case"ad-started":r.h.g++;break;case"ad-complete":r.h.i++;break;case"ad-skipped":r.h.j++}r.dispatchEvent(e)}))},r.release=function(){this.i&&(this.i.release(),this.i=null),this.g&&(this.g.release(),this.g=null),wr.prototype.release.call(this)},r.onAssetUnload=function(){this.i&&this.i.stop(),this.g&&this.g.stop(),this.dispatchEvent(new vr("ad-stopped")),this.h=new ec},r.requestClientSideAds=function(e){if(!this.i)throw new Re(1,10,10001);var t=this.i;t.u=Date.now()/1e3,t.m.requestAds(e)},r.initServerSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.dai)throw new Re(2,10,10002);this.g&&this.g.release(),this.g=new uc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.h.h.push(e.loadTime);break;case"ad-started":r.h.g++;break;case"ad-complete":r.h.i++;break;case"ad-skipped":r.h.j++}r.dispatchEvent(e)}))},r.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new Re(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&W('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v4.3.5",(n=this.g).j?e=Promise.reject(new Re(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.F=!0),n.j=new rt,n.g.requestStream(e),n.B=t||"",n.G=Date.now()/1e3,e=n.j),e},r.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new Re(1,10,10003);(e.mpt||e.mpv)&&W('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v4.3.5",this.g.g.replaceAdTagParameters(e)},r.getServerSideCuePoints=function(){if(!this.g)throw new Re(1,10,10003);return this.g.D},r.getStats=function(){var e=this.h;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},r.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(t,n,e.startTime)}},r.onHlsTimedMetadata=function(e,t){this.g&&this.g.g.processMetadata("ID3",e.data,t)},r.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},B("shaka.ads.AdManager",lc),lc.prototype.onCueMetadataChange=lc.prototype.onCueMetadataChange,lc.prototype.onHlsTimedMetadata=lc.prototype.onHlsTimedMetadata,lc.prototype.onDashTimedMetadata=lc.prototype.onDashTimedMetadata,lc.prototype.getStats=lc.prototype.getStats,lc.prototype.getServerSideCuePoints=lc.prototype.getServerSideCuePoints,lc.prototype.replaceServerSideAdTagParameters=lc.prototype.replaceServerSideAdTagParameters,lc.prototype.requestServerSideStream=lc.prototype.requestServerSideStream,lc.prototype.initServerSide=lc.prototype.initServerSide,lc.prototype.requestClientSideAds=lc.prototype.requestClientSideAds,lc.prototype.onAssetUnload=lc.prototype.onAssetUnload,lc.prototype.release=lc.prototype.release,lc.prototype.initClientSide=lc.prototype.initClientSide,lc.prototype.setLocale=lc.prototype.setLocale,lc.ADS_LOADED="ads-loaded",lc.AD_STARTED="ad-started",lc.AD_FIRST_QUARTILE="ad-first-quartile",lc.AD_MIDPOINT="ad-midpoint",lc.AD_THIRD_QUARTILE="ad-third-quartile",lc.AD_COMPLETE="ad-complete",lc.AD_STOPPED="ad-stopped",lc.AD_SKIPPED="ad-skipped",lc.AD_VOLUME_CHANGED="ad-volume-changed",lc.AD_MUTED="ad-muted",lc.AD_PAUSED="ad-paused",lc.AD_RESUMED="ad-resumed",lc.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",lc.CUEPOINTS_CHANGED="ad-cue-points-changed",lc.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",lc.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",lc.AD_CLICKED="ad-clicked",lc.AD_PROGRESS="ad-progress",lc.AD_BUFFERING="ad-buffering",lc.AD_IMPRESSION="ad-impression",lc.AD_DURATION_CHANGED="ad-duration-changed",lc.AD_CLOSED="ad-closed",lc.AD_LOADED="ad-loaded",lc.ALL_ADS_COMPLETED="all-ads-completed",lc.AD_LINEAR_CHANGED="ad-linear-changed",lc.AD_METADATA="ad-metadata",lc.AD_RECOVERABLE_ERROR="ad-recoverable-error",lc.AD_BREAK_READY="ad-break-ready",lc.AD_INTERACTION="ad-interaction",Ql=function(){return new lc};var fc="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),hc="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),pc=["loop","playbackRate"],gc=["pause","play"],mc={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},vc={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},yc={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},bc=[["getConfiguration","configure"]],wc=[["isTextTrackVisible","setTextTrackVisibility"]],xc="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Ec=["attach","attachCanvas","detach","load","unload"];function Tc(e,t,n,r,i,a,o){var s=this;this.G=e,this.M=o,this.j=new ot(t),this.O=n,this.u=!1,this.s=r,this.F=i,this.J=a,this.h=this.m=!1,this.L="",this.o=null,this.B=function(){return Ic(s)},this.D=function(e,t){switch((e=dc(t)).type){case"event":var n=e.targetName,r=yr(e.event);s.s(n,r);break;case"update":for(r in n=e.update)for(var i in e=s.g[r]||{},n[r])e[i]=n[r][i];s.u&&(s.O(),s.u=!1);break;case"asyncComplete":if(r=e.id,i=e.error,e=s.i[r],delete s.i[r],e)if(i){for(n in r=new Re(i.severity,i.category,i.code),i)r[n]=i[n];e.reject(r)}else e.resolve()}},this.g={video:{},player:{}},this.H=0,this.i={},this.l=null,Oc.add(this)}function Sc(e,t,n){Dc=n,n.addUpdateListener(e.B),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.D),Ic(e),Mc(e,{type:"init",initState:t,appData:e.o}),e.l.resolve()}function kc(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new Re(2,8,n,t))}function Ac(e,t){var n=e.J();e.l=new rt,e.u=!0,Sc(e,n,t)}function Cc(e){var t=Dc;t.removeUpdateListener(e.B),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.D)}function Ic(e){var t=!!Dc&&"connected"==Dc.status;if(e.h&&!t){for(var n in e.F(),e.g)e.g[n]={};_c(e)}e.h=t,e.L=t?Dc.receiver.friendlyName:"",e.j.Mb()}function _c(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new Re(1,7,7e3))}}function Mc(e,t){t=cc(t);var n=Dc;try{n.sendMessage("urn:x-cast:com.google.shaka.v2",t,(function(){}),$)}catch(r){throw t=new Re(2,8,8005,r),n=new vr("error",(new Map).set("detail",t)),e.s("player",n),e.Ab(),t}}(r=Tc.prototype).destroy=function(){return Oc.delete(this),_c(this),Dc&&Cc(this),this.j&&(this.j.stop(),this.j=null),this.F=this.s=null,this.h=this.m=!1,this.D=this.B=this.l=this.i=this.g=this.o=null,Promise.resolve()},r.sa=function(){return this.h},r.ae=function(){return this.L},r.init=function(){if(this.G.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.j.Mb();var t=new chrome.cast.SessionRequest(this.G,[],null,this.M,null);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=l(Oc),n=t.next();!n.done;n=t.next())Ac(n.value,e)}),(function(e){for(var t=l(Oc),n=t.next();!n.done;n=t.next())n=n.value,Pc="available"==e,n.j.Mb()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),Pc&&this.j.N(Rc),(t=Dc)&&t.status!=chrome.cast.SessionStatus.STOPPED?Ac(this,t):Dc=null}else e.__onGCastApiAvailable!==Lc&&(Nc=e.__onGCastApiAvailable||null,e.__onGCastApiAvailable=Lc)},r.ie=function(e){this.o=e,this.h&&Mc(this,{type:"appData",appData:this.o})},r.cast=function(e){var t=this;return P((function(n){if(!t.m)throw new Re(1,8,8e3);if(!Pc)throw new Re(1,8,8001);if(t.h)throw new Re(1,8,8002);return t.l=new rt,chrome.cast.requestSession((function(n){return Sc(t,e,n)}),(function(e){return kc(t,e)})),w(n,t.l,0)}))},r.Ab=function(){if(this.h){if(_c(this),Dc){Cc(this);try{Dc.stop((function(){}),(function(){}))}catch(e){}Dc=null}Ic(this)}},r.get=function(e,t){var n=this;if("video"==e){if(gc.includes(t))return function(){return n.Qe.apply(n,[e,t].concat(c(D.apply(0,arguments))))}}else if("player"==e){if(yc[t]&&!this.get("player","isLive")())return function(){};if(xc.includes(t))return function(){return n.Qe.apply(n,[e,t].concat(c(D.apply(0,arguments))))};if(Ec.includes(t))return function(){return n.og.apply(n,[e,t].concat(c(D.apply(0,arguments))))};if(mc[t]||vc[t])return function(){return n.g[e][t]}}return this.g[e][t]},r.set=function(e,t,n){this.g[e][t]=n,Mc(this,{type:"set",targetName:e,property:t,value:n})},r.Qe=function(e,t){Mc(this,{type:"call",targetName:e,methodName:t,args:D.apply(2,arguments)})},r.og=function(e,t){var n=D.apply(2,arguments),r=new rt,i=this.H.toString();this.H++,this.i[i]=r;try{Mc(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:i})}catch(e){r.reject(e)}return r};var Rc=.02,Pc=!1,Dc=null,Nc=null,Oc=new Set;function Lc(t){if(Nc?e.__onGCastApiAvailable=Nc:delete e.__onGCastApiAvailable,Nc=null,t)for(var n=l(Oc),r=n.next();!r.done;r=n.next())r.value.init();"function"===typeof e.__onGCastApiAvailable&&e.__onGCastApiAvailable(t)}function jc(e,t,n,r){r=void 0!==r&&r,wr.call(this);var i=this;this.i=e,this.h=t,this.m=this.o=this.j=this.s=this.l=null,this.D=n,this.B=r,this.u=new Map,this.g=new Tc(n,(function(){return Bc(i)}),(function(){return zc(i)}),(function(e,t){return qc(i,e,t)}),(function(){return Vc(i)}),(function(){return Fc(i)}),r),function(e){e.g.init(),e.m=new Lr;for(var t=l(fc),n=t.next();!n.done;n=t.next())e.m.C(e.i,n.value,(function(t){e.g.sa()||(t=yr(t),e.j.dispatchEvent(t))}));for(var r in br)e.m.C(e.h,br[r],(function(t){e.g.sa()||e.o.dispatchEvent(t)}));for(var i in e.l={},t={},e.i)t.Sb=i,Object.defineProperty(e.l,t.Sb,{configurable:!1,enumerable:!0,get:function(t){return function(){return Hc(e,t.Sb)}}(t),set:function(t){return function(n){var r=t.Sb;e.g.sa()?e.g.set("video",r,n):e.i[r]=n}}(t)}),t={Sb:t.Sb};e.s={},Uc(e,(function(t){Object.defineProperty(e.s,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.u.has(t)&&(t=e.u.get(t)),"addEventListener"==t)return function(t,n,r){return e.o.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.o.removeEventListener(t,n,r)};if("getMediaElement"==t)return function(){return e.l};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.h.jc()};if("getDrmEngine"==t)return function(){return e.h.m};if("getAdManager"==t)return function(){return e.h.Ge()};if("setVideoContainer"==t)return function(t){return e.h.$e(t)};if(e.g.sa()){if("getManifest"==t||"drmInfo"==t)return function(){return W(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return W(t+"() does not work while casting!"),Promise.resolve()}}return e.g.sa()&&0==Object.keys(e.g.g.video).length&&(mc[t]||vc[t])||!e.g.sa()?e.h[t].bind(e.h):e.g.get("player",t)}(e,t)}})})),function(e){var t=new Map;Uc(e,(function(n,r){t.has(r)?(r=t.get(r),n.length<r.length?e.u.set(n,r):e.u.set(r,n)):t.set(r,n)}))}(e),e.j=new wr,e.j.Wc=e.l,e.o=new wr,e.o.Wc=e.s}(this)}function Uc(e,t){function n(e){return"constructor"!=e&&"function"==typeof i[e]&&!a.has(e)}var r,i=e.h,a=new Set;for(r in i)n(r)&&(a.add(r),t(r,i[r]));for(e=Object.getPrototypeOf(i),r=Object.getPrototypeOf({});e&&e!=r;){for(var o=l(Object.getOwnPropertyNames(e)),s=o.next();!s.done;s=o.next())n(s=s.value)&&(a.add(s),t(s,i[s]));e=Object.getPrototypeOf(e)}}function Fc(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.Dd(),startTime:null};e.i.pause();for(var n=l(pc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.i[r];for(e.i.ended||(t.startTime=e.i.currentTime),r=(n=l(bc)).next();!r.done;r=n.next()){var i=r.value;r=i[1],i=e.h[i[0]](),t.player[r]=i}for(r=(n=l(wc)).next();!r.done;r=n.next())r=(i=r.value)[1],i=e.h[i[0]](),t.playerAfterLoad[r]=i;return t}function Bc(e){var t=new vr("caststatuschanged");e.dispatchEvent(t)}function zc(e){var t=new vr(e.l.paused?"pause":"play");e.j.dispatchEvent(t)}function Vc(e){for(var t=l(bc),n=t.next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.h[n](r)}var i=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var a=e.i.autoplay;r=null,n||(r=e.g.get("video","currentTime")),i&&(e.i.autoplay=!1,t=e.h.load(i,r));var o={};for(r=(n=l(pc)).next();!r.done;r=n.next())r=r.value,o[r]=e.g.get("video",r);t.then((function(){if(e.i){for(var t=l(pc),n=t.next();!n.done;n=t.next())n=n.value,e.i[n]=o[n];for(n=(t=l(wc)).next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.h[n](r)}e.i.autoplay=a,i&&e.i.play()}}),(function(t){t=new vr("error",t=(new Map).set("detail",t)),e.h.dispatchEvent(t)}))}function Hc(e,t){if("addEventListener"==t)return function(t,n,r){return e.j.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.j.removeEventListener(t,n,r)};if(e.g.sa()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.sa()?e.g.get("video",t):("function"==typeof(t=e.i[t])&&(t=t.bind(e.i)),t)}function qc(e,t,n){e.g.sa()&&("video"==t?e.j.dispatchEvent(n):"player"==t&&e.o.dispatchEvent(n))}function Kc(e,t,n,r){wr.call(this);var i=this;this.g=e,this.h=t,this.j=new Lr,this.H={video:e,player:t},this.D=n||function(){},this.J=r||function(e){return e},this.i=null,this.F=!1,this.o=!0,this.m=0,this.B=!1,this.u=!0,this.s=this.l=null,this.G=new ot((function(){Xc(i)})),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return Wc(e)},t.onSenderDisconnected=function(){return Wc(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&Zc(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),Zc(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.s=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.s.onMessage=function(t){return function(e,t){var n=dc(t.data);switch(n.type){case"PLAY":e.g.play(),ed(e);break;case"PAUSE":e.g.pause(),ed(e);break;case"SEEK":t=n.currentTime;var r=n.resumeState;null!=t&&(e.g.currentTime=Number(t)),r&&"PLAYBACK_START"==r?(e.g.play(),ed(e)):r&&"PLAYBACK_PAUSE"==r&&(e.g.pause(),ed(e));break;case"STOP":e.h.re().then((function(){e.h&&ed(e)}));break;case"GET_STATUS":Qc(e,Number(n.requestId));break;case"VOLUME":t=(r=n.volume).level,r=r.muted;var i=e.g.volume,a=e.g.muted;null!=t&&(e.g.volume=Number(t)),null!=r&&(e.g.muted=r),i==e.g.volume&&a==e.g.muted||ed(e);break;case"LOAD":e.m=0,e.B=!1,e.u=!1,t=n.media,r=n.currentTime,i=e.J(t.contentId),a=n.autoplay||!0,e.D(t.customData),a&&(e.g.autoplay=!0),e.h.load(i,r).then((function(){e.h&&Qc(e)})).catch((function(t){var r="LOAD_FAILED";7==t.category&&7e3==t.code&&(r="LOAD_CANCELLED"),Zc(e,{requestId:Number(n.requestId),type:r},e.s)}));break;default:Zc(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.s)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=dc(t.data);switch(n.type){case"init":e.m=0,e.B=!1,e.u=!0,function(e,t,n){var r,i,a,o,s,u,l,c,d,f;P((function(h){switch(h.g){case 1:for(r in t.player)i=t.player[r],e.h[r](i);return e.D(n),a=e.g.autoplay,t.manifest?(e.g.autoplay=!1,E(h,5),w(h,e.h.load(t.manifest,t.startTime),7)):w(h,Promise.resolve(),3);case 7:S(h,3);break;case 5:return o=k(h),s=(new Map).set("detail",o),u=new vr("error",s),e.h&&e.h.dispatchEvent(u),h.return();case 3:if(!e.h)return h.return();for(l in t.video)c=t.video[l],e.g[l]=c;for(d in t.playerAfterLoad)f=t.playerAfterLoad[d],e.h[d](f);e.g.autoplay=a,t.manifest&&(e.g.play(),ed(e)),x(h)}}))}(e,n.initState,n.appData),Xc(e);break;case"appData":e.D(n.appData);break;case"set":var r=n.targetName,i=n.property;if(n=n.value,"video"==r){if(t=cast.receiver.CastReceiverManager.getInstance(),"volume"==i){t.setSystemVolumeLevel(n);break}if("muted"==i){t.setSystemVolumeMuted(n);break}}e.H[r][i]=n;break;case"call":(r=e.H[n.targetName])[n.methodName].apply(r,n.args);break;case"asyncCall":r=n.targetName,i=n.methodName,"player"==r&&"load"==i&&(e.m=0,e.B=!1);var a=n.id,o=t.senderId;n=(t=e.H[r])[i].apply(t,n.args),"player"==r&&"load"==i&&(n=n.then((function(){e.u=!0}))),n.then((function(){return Jc(e,o,a,null)}),(function(t){return Jc(e,o,a,t)}))}}(e,t)},t.start();for(var n=(t=l(fc)).next();!n.done;n=t.next())e.j.C(e.g,n.value,(function(t){return $c(e,"video",t)}));for(var r in br)e.j.C(e.h,br[r],(function(t){return $c(e,"player",t)}));cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.h.ke(3840,2160):e.h.ke(1920,1080),e.j.C(e.g,"loadeddata",(function(){e.B=!0})),e.j.C(e.h,"loading",(function(){e.o=!1,Gc(e)})),e.j.C(e.g,"playing",(function(){e.o=!1,Gc(e)})),e.j.C(e.g,"pause",(function(){Gc(e)})),e.j.C(e.h,"unloading",(function(){e.o=!0,Gc(e)})),e.j.C(e.g,"ended",(function(){new ot((function(){e.g&&e.g.ended&&(e.o=!0,Gc(e))})).N(nd)}))}(this)}function Wc(e){e.m=0,e.u=!0,e.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,Gc(e)}function Gc(e){var t;P((function(n){return 1==n.g?w(n,Promise.resolve(),2):e.h?(t=new vr("caststatuschanged"),e.dispatchEvent(t),Yc(e)||ed(e),void x(n)):n.return()}))}function $c(e,t,n){e.h&&(Xc(e),Zc(e,{type:"event",targetName:t,event:n},e.l))}function Xc(e){e.G.N(td);for(var t={video:{},player:{}},n=l(hc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.g[r];if(e.h.U())for(var i in yc)0==e.m%yc[i]&&(t.player[i]=e.h[i]());for(var a in mc)0==e.m%mc[a]&&(t.player[a]=e.h[a]());for(var o in(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),Zc(e,{type:"update",update:t},e.l),vc)0==e.m%vc[o]&&((t={player:{}}).player[o]=e.h[o](),Zc(e,{type:"update",update:t},e.l));e.B&&(e.m+=1),Yc(e)}function Yc(e){return!(!e.u||!e.g.duration&&!e.h.U())&&(Qc(e),e.u=!1,!0)}function Qc(e,t){var n={contentId:e.h.Dd(),streamType:e.h.U()?"LIVE":"BUFFERED",contentType:""};e.h.U()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),ed(e,void 0===t?0:t,n)}function Jc(e,t,n,r){e.h&&Zc(e,{type:"asyncComplete",id:n,error:r},e.l,t)}function Zc(e,t,n,r){e.F&&(e=cc(t),r?n.getCastChannel(r).send(e):n.broadcast(e))}function ed(e,t,n){n=void 0===n?null:n;var r={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.o?rd:e.h.Fd()?ad:e.g.paused?od:id,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(r.media=n),Zc(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[r]},e.s)}m(jc,wr),(r=jc.prototype).destroy=function(e){return e&&this.g.Ab(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.s=this.l=this.i=null,wr.prototype.release.call(this),Promise.all(e)},r.Wf=function(){return this.l},r.Nf=function(){return this.s},r.nf=function(){return this.g.m&&Pc},r.sa=function(){return this.g.sa()},r.ae=function(){return this.g.ae()},r.cast=function(){var e,t=this;return P((function(n){return 1==n.g?(e=Fc(t),w(n,t.g.cast(e),2)):t.h?w(n,t.h.re(),0):n.return()}))},r.ie=function(e){this.g.ie(e)},r.zg=function(){!function(e){if(e.h){var t=e.J();chrome.cast.requestSession((function(n){return Sc(e,t,n)}),(function(t){return kc(e,t)}))}}(this.g)},r.Ab=function(){this.g.Ab()},r.qf=function(e,t){t=void 0!==t&&t;var n=this;return P((function(r){if(1==r.g)return e==n.D&&t==n.B?r.return():(n.D=e,n.B=t,n.g.Ab(),w(r,n.g.destroy(),2));n.g=null,n.g=new Tc(e,(function(){return Bc(n)}),(function(){return zc(n)}),(function(e,t){return qc(n,e,t)}),(function(){return Vc(n)}),(function(){return Fc(n)}),t),n.g.init(),x(r)}))},B("shaka.cast.CastProxy",jc),jc.prototype.changeReceiverId=jc.prototype.qf,jc.prototype.forceDisconnect=jc.prototype.Ab,jc.prototype.suggestDisconnect=jc.prototype.zg,jc.prototype.setAppData=jc.prototype.ie,jc.prototype.cast=jc.prototype.cast,jc.prototype.receiverName=jc.prototype.ae,jc.prototype.isCasting=jc.prototype.sa,jc.prototype.canCast=jc.prototype.nf,jc.prototype.getPlayer=jc.prototype.Nf,jc.prototype.getVideo=jc.prototype.Wf,jc.prototype.destroy=jc.prototype.destroy,m(Kc,wr),(r=Kc.prototype).isConnected=function(){return this.F},r.$f=function(){return this.o},r.wg=function(e){this.i=e},r.uf=function(){this.i=null},r.xg=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},r.vg=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},r.ug=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},r.destroy=function(){var e,t=this;return P((function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.h&&(e.push(t.h.destroy()),t.h=null),t.G&&(t.G.stop(),t.G=null),t.g=null,t.H=null,t.D=null,t.F=!1,t.o=!0,t.l=null,t.s=null,wr.prototype.release.call(t),w(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),x(n)}))},B("shaka.cast.CastReceiver",Kc),Kc.prototype.destroy=Kc.prototype.destroy,Kc.prototype.setContentArtist=Kc.prototype.ug,Kc.prototype.setContentImage=Kc.prototype.vg,Kc.prototype.setContentTitle=Kc.prototype.xg,Kc.prototype.clearContentMetadata=Kc.prototype.uf,Kc.prototype.setContentMetadata=Kc.prototype.wg,Kc.prototype.isIdle=Kc.prototype.$f,Kc.prototype.isConnected=Kc.prototype.isConnected;var td=.5,nd=5,rd="IDLE",id="PLAYING",ad="BUFFERING",od="PAUSED";function sd(e,t,n){var r=function(e){for(var t=[],n=(e=l(e)).next();!n.done;n=e.next())(n=ld(n.value))&&t.push(n);return t}(e),i=null;e=[];var a=[],o=new Set(r.map((function(e){return e.keyId})));if(o.delete(null),1<o.size)throw new Re(2,4,4010);if(t||(a=r.filter((function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.fe||(i=e.init||i,!1)}))).length&&(e=function(e,t,n,r){for(var i=[],a=(t=l(t)).next();!a.done;a=t.next()){var o=n[(a=a.value).fe];if(o){var s;if(s=ai(a.node,"urn:microsoft:playready","pro")){s=Mt(s.textContent);var u=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);s=[{initData:ri(s,u,new Set,0),initDataType:"cenc",keyId:a.keyId}]}else s=null;if(u=null,"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===a.fe)if(0==(u=r).size)u=null;else{var c=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]);u=[{initData:ri(new Uint8Array([]),c,u,1),initDataType:"cenc",keyId:a.keyId}]}s=Qe(o,a.init||e||s||u),(o=dd.get(o))&&(s.licenseServerUri=o(a)),i.push(s)}}return i}(i,a,n,o),0==e.length&&(e=[Qe("",i)])),r.length&&(t||!a.length))for(e=[],n=(t=l(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(Qe(n,i));if(o=Array.from(o)[0]||null)for(n=(t=l(e)).next();!n.done;n=t.next())for(r=(n=l(n.value.initData)).next();!r.done;r=n.next())r.value.keyId=o;return{Be:o,sh:i,drmInfos:e,Fe:!0}}function ud(e){return(e=ai(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=_e(e),r=n.getUint32(t,!0);if(r!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){r=n.getUint16(e,!0),e+=2;var i=n.getUint16(e,!0);if(e+=2,0!=(1&i)||i+e>n.byteLength){n=[];break e}var a=Ie(n,e,i);t.push({type:r,value:a}),e+=i}n=t}return n}(e=Mt(e.textContent)).filter((function(e){return e.type===cd}))[0])&&(e=xi(e=Et(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=l(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=l(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function ld(e){var t=e.getAttribute("schemeIdUri"),n=ui(e,"urn:mpeg:cenc:2013","default_KID"),r=si(e,"urn:mpeg:cenc:2013","pssh").map(ci);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new Re(2,4,4009);var i=[];try{i=r.map((function(e){return{initDataType:"cenc",initData:Mt(e),keyId:null}}))}catch(e){throw new Re(2,4,4007)}return{node:e,fe:t,keyId:n,init:0<i.length?i:null}}var cd=1,dd=(new Map).set("com.widevine.alpha",(function(e){return(e=ai(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""})).set("com.microsoft.playready",ud).set("com.microsoft.playready.recommendation",ud).set("com.microsoft.playready.software",ud).set("com.microsoft.playready.hardware",ud).set("org.w3.clearkey",(function(e){return(e=ai(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.getAttribute("Lic_type")&&e.textContent?e.textContent:""}));function fd(t,n,r,i,a){var o={RepresentationID:n,Number:r,Bandwidth:i,Time:a};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,r,i){if("$$"==t)return"$";var a=o[n];if(null==a)return t;switch("RepresentationID"==n&&r&&(r=void 0),"Time"==n&&(a=Math.round(a)),i){case void 0:case"d":case"i":case"u":t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase();break;default:t=a.toString()}return r=e.parseInt(r,10)||1,Array(Math.max(0,r-t.length)+1).join("0")+t}))}function hd(e,t){var n=pd(e,t,"timescale"),r=1;n&&(r=vi(n)||1);var i=pd(e,t,"duration");n=vi(i||""),"image"==e.I.contentType&&(n=bi(i||"")),n&&(n/=r);var a=pd(e,t,"startNumber");i=Number(pd(e,t,"presentationTimeOffset"))||0;var o=yi(a||"");if(null!=a&&null!=o||(o=1),a=gd(e,t,"SegmentTimeline"),t=null,a){t=r,e=e.T.duration||1/0,a=oi(a,"S");for(var s=[],u=-i,l=0;l<a.length;++l){var c=a[l],d=a[l+1],f=fi(c,"t",yi),h=fi(c,"d",yi);if(c=fi(c,"r",mi),null!=f&&(f-=i),!h)break;if(f=null!=f?f:u,0>(c=c||0))if(d){if(null==(d=fi(d,"t",yi)))break;if(f>=d)break;c=Math.ceil((d-f)/h)-1}else{if(1/0==e)break;if(f/t>=e)break;c=Math.ceil((e*t-f)/h)-1}for(0<s.length&&f!=u&&(s[s.length-1].end=f/t),d=0;d<=c;++d)u=f+h,s.push({start:f/t,end:u/t,Dg:f}),f=u}t=s}return{timescale:r,ia:n,Lb:o,Sa:i/r||0,se:i,timeline:t}}function pd(e,t,n){return[t(e.I),t(e.fa),t(e.$)].filter(Xe).map((function(e){return e.getAttribute(n)})).reduce((function(e,t){return e||t}))}function gd(e,t,n){return[t(e.I),t(e.fa),t(e.$)].filter(Xe).map((function(e){return ii(e,n)})).reduce((function(e,t){return e||t}))}function md(e,t,n,r,i,a){if(a=void 0===a?0:a,ui(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,r,i,a){for(var o=ui(e,"http://www.w3.org/1999/xlink","href"),s=ui(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",u=l(Array.from(e.attributes)),c=u.next();!c.done;c=u.next())"http://www.w3.org/1999/xlink"==(c=c.value).namespaceURI&&e.removeAttributeNS(c.namespaceURI,c.localName);if(5<=a)return fr(new Re(2,4,4028));if("onLoad"!=s)return fr(new Re(2,4,4027));var d=Ye([r],[o]);return i.request(0,Cr(d,t)).Y((function(r){if(!(r=Ei(r.data,e.tagName)))return fr(new Re(2,4,4001,o));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;r.childNodes.length;){var s=r.childNodes[0];r.removeChild(s),e.appendChild(s)}for(s=(r=l(Array.from(r.attributes))).next();!s.done;s=r.next())e.setAttributeNode(s.value.cloneNode(!1));return md(e,t,n,d[0],i,a+1)}))}(e,t,n,r,i,a);return n&&(o=o.Y(void 0,(function(){return md(e,t,n,r,i,a)}))),o}o=[];for(var s=l(Array.from(e.childNodes)),u=s.next();!u.done;u=s.next())(u=u.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==ui(u,"http://www.w3.org/1999/xlink","href")?e.removeChild(u):"SegmentTimeline"!=u.tagName&&o.push(md(u,t,n,r,i,a)));return mr(o).Y((function(){return e}))}function vd(e,t,n,r,i,a,o){var s,u=(new Wr).P("sidx",(function(e){s=function(e,t,n,r,i,a,o){var s=[];o.reader.skip(4);var u=o.reader.K();if(0==u)throw new Re(2,3,3005);if(0==o.version)var l=o.reader.K(),c=o.reader.K();else l=o.reader.$a(),c=o.reader.$a();o.reader.skip(2);var d=o.reader.$d();for(e=e+o.size+c,c=0;c<d;c++){var f=o.reader.K(),h=(2147483648&f)>>>31;f&=2147483647;var p=o.reader.K();if(o.reader.skip(4),1==h)throw new Re(2,3,3006);s.push(new mo(l/u+n,(l+p)/u+n,(function(){return a}),e,e+f-1,t,n,r,i)),l+=p,e+=f}return o.parser.stop(),s}(t,r,i,a,o,n,e)}));if(e&&u.parse(e),s)return s;throw new Re(2,3,3004)}function yd(e){this.h=_e(e),this.g=new Hr(this.h,0)}function bd(e){var t=wd(e);if(7<t.length)throw new Re(2,3,3002);for(var n=0,r=(t=l(t)).next();!r.done;r=t.next())n=256*n+r.value;t=wd(e);e:{for(var i=(r=l(xd)).next();!i.done;i=r.next())if(ke(t,new Uint8Array(i.value))){r=!0;break e}r=!1}if(r)t=e.h.byteLength-e.g.Z();else{if(8==t.length&&224&t[1])throw new Re(2,3,3001);for(i=r=0;i<t.length;i++){var a=t[i];r=0==i?a&(1<<8-t.length)-1:256*r+a}t=r}return t=e.g.Z()+t<=e.h.byteLength?t:e.h.byteLength-e.g.Z(),r=_e(e.h,e.g.Z(),t),e.g.skip(t),new Ed(n,r)}function wd(e){var t=e.g.Z(),n=e.g.Ra();if(0==n)throw new Re(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),Ie(e.h,t,n)}yd.prototype.ha=function(){return this.g.ha()};var xd=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Ed(e,t){this.id=e,this.g=t}function Td(e){if(8<e.g.byteLength)throw new Re(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new Re(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++){t=256*t+e.g.getUint8(n)}return t}function Sd(e){var t=new yd(e.g);if(179!=(e=bd(t)).id)throw new Re(2,3,3013);if(e=Td(e),183!=(t=bd(t)).id)throw new Re(2,3,3012);t=new yd(t.g);for(var n=0;t.ha();){var r=bd(t);if(241==r.id){n=Td(r);break}}return{Eg:e,ng:n}}function kd(e,t){if(!(t=gd(e,t,"Initialization")))return null;var n=e.I.wa,r=t.getAttribute("sourceURL");r&&(n=Ye(e.I.wa,[r])),r=0;var i=null;return(t=fi(t,"range",gi))&&(r=t.start,i=t.end),new go((function(){return n}),r,i,Rd(e))}function Ad(e,t){var n=Number(pd(e,Id,"presentationTimeOffset"))||0,r=pd(e,Id,"timescale"),i=1;r&&(i=vi(r)||1);var a=n/i||0,o=kd(e,Id);!function(e,t){if(Md(e,t),!_d(e))throw new Re(2,4,4002)}(e,o);var s=Er(e);return{Bb:function(){var e=gd(s,Id,"RepresentationIndex"),n=s.I.wa;return e&&(e=e.getAttribute("sourceURL"))&&(n=Ye(s.I.wa,[e])),e=_d(s),Cd(s,t,o,n,e.start,e.end,a)}}}function Cd(e,t,n,r,i,a,o){var s,u,l,c,d,f,h,p,g,m,v,y,b,x,E;return P((function(T){if(1==T.g)return s=e.presentationTimeline,u=!e.Ma||!e.T.Gd,l=e.T.start,c=e.T.duration,d=e.I.mimeType.split("/")[1],h=null,p=[(f=t)(r,i,a),"webm"==d?f(n.ya(),n.Ba,n.ka):null],f=null,w(T,Promise.all(p),2);if(g=T.h,m=g[0],v=g[1]||null,null,b=l-o,x=l,E=c?l+c:1/0,"mp4"==d)var S=vd(m,i,r,n,b,x,E);else{if(440786851!=bd(S=new yd(v)).id)throw new Re(2,3,3008);var k=bd(S);if(408125543!=k.id)throw new Re(2,3,3009);S=k.g.byteOffset,k=new yd(k.g);for(var A=null;k.ha();){var C=bd(k);if(357149030==C.id){A=C;break}}if(!A)throw new Re(2,3,3010);for(A=new yd(A.g),C=1e6,k=null;A.ha();){var I=bd(A);if(2807729==I.id)C=Td(I);else if(17545==I.id)if(4==I.g.byteLength)k=I.g.getFloat32(0);else{if(8!=I.g.byteLength)throw new Re(2,3,3003);k=I.g.getFloat64(0)}}if(null==k)throw new Re(2,3,3011);if(k*=A=C/1e9,475249515!=(C=bd(new yd(m))).id)throw new Re(2,3,3007);S=function(e,t,n,r,i,a,o,s,u){function l(){return i}var c=[];e=new yd(e.g);for(var d=null,f=null;e.ha();){var h=bd(e);if(187==h.id){var p=Sd(h);p&&(h=n*p.Eg,p=t+p.ng,null!=d&&c.push(new mo(d+o,h+o,l,f,p-1,a,o,s,u)),d=h,f=p)}}return null!=d&&c.push(new mo(d+o,r+o,l,f,null,a,o,s,u)),c}(C,S,A,k,r,n,b,x,E)}return y=S,s.Ib(y),h=new Es(y),u&&h.Wa(x,E,!0),T.return(h)}))}function Id(e){return e.wc}function _d(e){var t=gd(e,Id,"RepresentationIndex");return e=gi((e=pd(e,Id,"indexRange"))||""),t&&(e=fi(t,"range",gi,e)),e}function Md(e,t){var n=e.I.mimeType.split("/")[1];if(e.I.contentType!=et&&"mp4"!=n&&"webm"!=n)throw new Re(2,4,4006);if("webm"==n&&!t)throw new Re(2,4,4005)}function Rd(e){var t=e.I;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.ad,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function Pd(e,t){var n=kd(e,Dd),r=function(e){var t=function(e){return[e.I.ab,e.fa.ab,e.$.ab].filter(Xe).map((function(e){return oi(e,"SegmentURL")})).reduce((function(e,t){return 0<e.length?e:t})).map((function(t){return t.getAttribute("indexRange")&&!e.Ke&&(e.Ke=!0),{dg:t.getAttribute("media"),start:(t=fi(t,"mediaRange",gi,{start:0,end:null})).start,end:t.end}}))}(e),n=(e=hd(e,Dd)).Lb;0==n&&(n=1);var r=0;return e.ia?r=e.ia*(n-1):e.timeline&&0<e.timeline.length&&(r=e.timeline[0].start),{ia:e.ia,startTime:r,Lb:n,Sa:e.Sa,timeline:e.timeline,Gb:t}}(e);if(!r.ia&&!r.timeline&&1<r.Gb.length)throw new Re(2,4,4002);if(!r.ia&&!e.T.duration&&!r.timeline&&1==r.Gb.length)throw new Re(2,4,4002);if(r.timeline&&0==r.timeline.length)throw new Re(2,4,4002);var i=null,a=null;e.$.id&&e.I.id&&(a=t[e.$.id+","+e.I.id])&&(i=a.segmentIndex);var o=function(e,t,n,r,i){var a=r.Gb.length;r.timeline&&r.timeline.length!=r.Gb.length&&(a=Math.min(r.timeline.length,r.Gb.length));for(var o=e-r.Sa,s=t?e+t:1/0,u=[],l=r.startTime,c={},d=0;d<a;c={od:c.od},d++){var f=r.Gb[d];c.od=Ye(n,[f.dg]);var h=void 0;h=null!=r.ia?l+r.ia:r.timeline?r.timeline[d].end:l+t,u.push(new mo(e+l,e+h,function(e){return function(){return e.od}}(c),f.start,f.end,i,o,e,s)),l=h}return u}(e.T.start,e.T.duration,e.I.wa,r,n);return t=!i,i?i.Hb(o,e.presentationTimeline.Pa()):i=new Es(o),e.presentationTimeline.Ib(o),e.Ma&&e.T.Gd||i.Wa(e.T.start,e.T.duration?e.T.start+e.T.duration:1/0,t),a&&(a.segmentIndex=i),{Bb:function(){return i&&0!=i.g.length||i.pc(o),Promise.resolve(i)}}}function Dd(e){return e.ab}function Nd(e,t,n,r,i,a){var o=function(e){var t=pd(e,Od,"initialization");if(!t)return null;var n=e.I.id,r=e.bandwidth||null,i=e.I.wa;return new go((function(){var e=fd(t,n,null,r,null);return Ye(i,[e])}),0,null,Rd(e))}(e),s=function(e){var t=hd(e,Od),n=pd(e,Od,"media");return e=pd(e,Od,"index"),{ia:t.ia,timescale:t.timescale,Lb:t.Lb,Sa:t.Sa,se:t.se,timeline:t.timeline,Pd:n,oc:e}}(e);!function(e){var t=e.oc?1:0;if(t+=e.timeline?1:0,0==(t+=e.ia?1:0))throw new Re(2,4,4002);if(1!=t&&(e.oc&&(e.timeline=null),e.ia=null),!e.oc&&!e.Pd)throw new Re(2,4,4002)}(s);var u=Er(e);if(s.oc)return Md(e,o),{Bb:function(){var e=fd(s.oc,u.I.id,null,u.bandwidth||null,null);return e=Ye(u.I.wa,[e]),Cd(u,t,o,e,0,null,s.Sa)}};if(s.ia)return r||"image"===e.fa.contentType||(e.presentationTimeline.Sd(s.ia),e.presentationTimeline.Td(e.T.start)),{Bb:function(){return function(e,t,n,r,i){function a(e){var n=(e-p)*h,i=n+t.Sa,a=n+c;return n=a+h,(a=new mo(a,Math.min(n,s()),(function(){var t=fd(m,y,e,v,i*g);return Ye(b,[t])}),0,null,r,w,c,s())).j=n,a}function o(){var e=[Math.max(u.Pa(),c),Math.min(u.gb(),s())].map((function(e){return e-c}));return[Math.ceil(e[0]/h),Math.ceil(e[1]/h)-1].map((function(e){return e+p}))}function s(){var e=null!=d&&i[d]||f;return e?c+e:1/0}var u=e.presentationTimeline,c=e.T.start,d=e.$.id,f=e.T.duration,h=t.ia,p=t.Lb,g=t.timescale,m=t.Pd,v=e.bandwidth||null,y=e.I.id,b=e.I.wa,w=c-t.Sa,x=o();e=e.Ma?Math.max(x[0],x[1]-n+1):x[0],x=x[1],n=[];for(var E=e;E<=x;++E){var T=a(E);n.push(T)}var S=new Es(n);if(n=u.gb()<s(),E=u.U(),n||E){var k=Math.max(e,x+1);S.fd(h,(function(){var e=u.Pa();S.eb(e);var t=l(o());t.next(),t=t.next().value;for(var n=[];k<=t;){var r=a(k);n.push(r),k++}return e>s()&&!n.length?null:n}))}return Promise.resolve(S)}(u,s,i,o,a)}};var c=null;r=r=null,e.$.id&&e.I.id&&(r=n[r=e.$.id+","+e.I.id])&&(c=r.segmentIndex);var d=function(e,t,n){var r=e.T.start,i=e.T.duration,a=r-t.Sa;i=i?r+i:1/0;for(var o=[],s={},u=0;u<t.timeline.length;s={nd:s.nd,rd:s.rd,ud:s.ud,kd:s.kd,wd:s.wd,ld:s.ld},u++){var l=t.timeline[u],c=l.start,d=l.Dg;l=l.end,s.ud=u+t.Lb,s.wd=d+t.se,s.rd=e.I.id,s.kd=e.bandwidth||null,s.nd=t.Pd,s.ld=e.I.wa,o.push(new mo(r+c,r+l,function(e){return function(){var t=fd(e.nd,e.rd,e.ud,e.kd||null,e.wd);return Ye(e.ld,[t]).map((function(e){return e.toString()}))}}(s),0,null,n,a,r,i))}return o}(u,s,o);n=e.T.start;var f=e.T.duration?e.T.start+e.T.duration:1/0,h=!(e.Ma&&e.T.Gd);return c?(h&&new Es(d).Wa(n,f,!0),c.Hb(d,e.presentationTimeline.Pa())):c=new Es(d),e.presentationTimeline.Ib(d),h&&c.Wa(n,f),r&&e.Ma&&(r.segmentIndex=c),{Bb:function(){return c&&0!=c.g.length||c.pc(d),Promise.resolve(c)}}}function Od(e){return e.xc}function Ld(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.m=new Set}function jd(e,t,n){var r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b,E,T,S,k,A,C,I,_,M,R,D,N;return P((function(P){switch(P.g){case 1:if(r=tt,function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],r=l((t=t.value).Kc),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=l(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.channelsCount==s.channelsCount&&i.language==s.language&&i.bandwidth==s.bandwidth&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&ne(i.roles,s.roles)&&i.audioSamplingRate==s.audioSamplingRate&&i.primary==s.primary&&(a=!0);a||n.push(i)}t.Kc=n}}(t),function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],r=l((t=t.value).gd),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=l(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.frameRate==s.frameRate&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.label==s.label&&ne(i.roles,s.roles)&&Vr(i.closedCaptions,s.closedCaptions)&&i.bandwidth==s.bandwidth&&(a=!0);a||n.push(i)}t.gd=n}}(t),function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],r=l((t=t.value).textStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=l(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.language==s.language&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.bandwidth==s.bandwidth&&ne(i.roles,s.roles)&&(a=!0);a||n.push(i)}t.textStreams=n}}(t),function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){for(var n=[],r=l((t=t.value).imageStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=l(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&(a=!0);a||n.push(i)}t.imageStreams=n}}(t),!n&&1==t.length){i=t[0],e.g=i.Kc,e.h=i.gd,e.j=i.textStreams,e.i=i.imageStreams,P.A(2);break}for(a=-1,o=0;o<t.length;o++)s=t[o],e.m.has(s.id)||(e.m.add(s.id),-1==a&&(a=o));if(-1==a)return P.return();for(u=t.map((function(e){return e.Kc})),c=t.map((function(e){return e.gd})),d=t.map((function(e){return e.textStreams})),f=t.map((function(e){return e.imageStreams})),h=l(d),p=h.next();!p.done;p=h.next())p.value.push(nf(r.X));for(g=l(f),m=g.next();!m.done;m=g.next())m.value.push(nf(r.Wb));return w(P,Fd(e.g,u,a,Hd,Kd),3);case 3:return w(P,Fd(e.h,c,a,Hd,Kd),4);case 4:return w(P,Fd(e.j,d,a,Hd,Kd),5);case 5:return w(P,Fd(e.i,f,a,Hd,Kd),2);case 2:if(v=0,y=[],e.h.length&&e.g.length)for(A=l(e.g),C=A.next();!C.done;C=A.next())for(I=C.value,_=l(e.h),M=_.next();!M.done;M=_.next())R=M.value,D=Ui(I.drmInfos,R.drmInfos),I.drmInfos.length&&R.drmInfos.length&&!D.length||(N=v++,y.push({id:N,language:I.language,primary:I.primary,audio:I,video:R,bandwidth:(I.bandwidth||0)+(R.bandwidth||0),drmInfos:D,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(b=e.h.concat(e.g),E=l(b),T=E.next();!T.done;T=E.next())S=T.value,k=v++,y.push({id:k,language:S.language,primary:S.primary,audio:S.type==r.Hc?S:null,video:S.type==r.va?S:null,bandwidth:S.bandwidth||0,drmInfos:S.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=y,x(P)}}))}function Ud(e){var t,n,r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b,x,E,T,S,k,A;return P((function(C){switch(C.g){case 1:if(t=tt,1==e.length)return C.return(e[0]);for(n=e.map((function(e){return e.filter((function(e){return e.type==t.Hc}))})),r=e.map((function(e){return e.filter((function(e){return e.type==t.va}))})),i=e.map((function(e){return e.filter((function(e){return e.type==t.X}))})),a=e.map((function(e){return e.filter((function(e){return e.type==t.Wb}))})),o=l(i),s=o.next();!s.done;s=o.next())s.value.push(tf(t.X));for(u=l(a),c=u.next();!c.done;c=u.next())c.value.push(tf(t.Wb));return w(C,Fd([],n,0,qd,Wd),2);case 2:return d=C.h,w(C,Fd([],r,0,qd,Wd),3);case 3:return f=C.h,w(C,Fd([],i,0,qd,Wd),4);case 4:return h=C.h,w(C,Fd([],a,0,qd,Wd),5);case 5:if(p=C.h,g=0,f.length&&d.length)for(b=l(d),x=b.next();!x.done;x=b.next())for(E=x.value,T=l(f),S=T.next();!S.done;S=T.next())k=S.value,A=g++,k.variantIds.push(A),E.variantIds.push(A);else for(m=f.concat(d),v=l(m),y=v.next();!y.done;y=v.next())y.value.variantIds=[g++];return C.return(f.concat(d).concat(h).concat(p))}}))}function Fd(e,t,n,r,i){var a,o,s,u,c,d,f,h,p,g,m,v,y,b,x,E,T,S;return P((function(k){switch(k.g){case 1:for(a=tt,o=[],s=0;s<t.length;s++)s>=n?o.push(new Set(t[s])):o.push(new Set);u=l(e),c=u.next();case 2:if(c.done){k.A(4);break}return w(k,function(e,t,n,r,i){return P((function(a){return 1==a.g?(Gd(t,e),e.matchedStreams?e.segmentIndex?w(a,Bd(e,n),2):a.A(2):a.return(!1)):(Vd(e,n,r,i),a.return(!0))}))}(c.value,t,n,i,o),5);case 5:if(!k.h)throw new Re(2,4,4037);c=u.next(),k.A(2);break;case 4:for(d=l(o),f=d.next();!f.done;f=d.next())for(h=f.value,p=l(h),g=p.next();!g.done;g=p.next())m=g.value,(v=zd(m,t,r,i,o))&&e.push(v);for(y=l(o),f=y.next();!f.done;f=y.next())for(b=f.value,x={},E=l(b),g=E.next();!g.done;x={Va:x.Va},g=E.next())if(x.Va=g.value,T=x.Va.type==a.X&&!x.Va.language,S=x.Va.type==a.Wb&&!x.Va.tilesLayout,!T&&!S&&e.some(function(e){return function(t){return t.mimeType==e.Va.mimeType&&Kt(t.codecs)==Kt(e.Va.codecs)}}(x)))throw new Re(2,4,4037);return k.return(e)}}))}function Bd(e,t){var n,r,i,a,o,s,u;return P((function(c){if(1==c.g){for(n=[],r=e.matchedStreams,i=l(r),a=i.next();!a.done;a=i.next())o=a.value,n.push(o.createSegmentIndex()),o.trickModeVideo&&!o.trickModeVideo.segmentIndex&&n.push(o.trickModeVideo.createSegmentIndex());return w(c,Promise.all(n),2)}if(e.segmentIndex instanceof As)for(s=0;s<r.length;s++)(u=r[s]).segmentIndex&&s>=t&&e.segmentIndex.l.push(u.segmentIndex);x(c)}))}function zd(e,t,n,r,i){var a=n(e);return Gd(t,a),a.createSegmentIndex&&(a.createSegmentIndex=function(){return P((function(e){return a.segmentIndex?e.A(0):(a.segmentIndex=new As,w(e,Bd(a,0),0))}))}),a.matchedStreams?(Vd(a,0,r,i),a):null}function Vd(e,t,n,r){for(var i=e.matchedStreams,a=0;a<i.length;a++)if(a>=t){var o=i[a];n(e,o);var s=!0;"audio"==e.type&&0==on(e.language,o.language)&&(s=!1),s&&r[a].delete(o)}}function Hd(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=l(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function qd(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Kd(e,t){var n,r;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,r=t.keyIds,new Set([].concat(c(n),c(r)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var i=Ui(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new Re(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var a=(i=l(t.closedCaptions)).next();!a.done;a=i.next()){var o=l(a.value);a=o.next().value,o=o.next().value,e.closedCaptions.set(a,o)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Hd(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Kd(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Kd(e.trickModeVideo,t)}function Wd(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(c(e.keyIds),c(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,c(t.segments)),t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),n=(t=l(t.closedCaptions)).next();!n.done;n=t.next()){var r=l(n.value);n=r.next().value,r=r.next().value,e.closedCaptions.set(n,r)}}function Gd(e,t){for(var n=[],r=(e=l(e)).next();!r.done;r=e.next()){for(var i=t,a={audio:$d,video:$d,text:Xd,image:Yd}[i.type],o={audio:Qd,video:Jd,text:Zd,image:ef}[i.type],s=null,u=(r=l(r.value)).next();!u.done;u=r.next())!a(i,u=u.value)||s&&!o(i,s,u)||(s=u);if(!(i=s))return;n.push(i)}t.matchedStreams=n}function $d(e,t){var n;return!(n=t.mimeType!=e.mimeType||Kt(t.codecs)!=Kt(e.codecs))&&(n=e.drmInfos)&&(e=e.drmInfos,t=t.drmInfos,n=!(!e.length||!t.length||0<Ui(e,t).length)),!n}function Xd(e,t){return!!e.language&&(!t.language||0!=on(e.language,t.language)&&t.kind==e.kind)}function Yd(e){return!!e.tilesLayout}function Qd(e,t,n){if(e.id==n.id)return!0;var r=on(e.language,t.language),i=on(e.language,n.language);return i>r||!(i<r)&&(e.roles.length?(r=t.roles.filter((function(t){return e.roles.includes(t)})),(i=n.roles.filter((function(t){return e.roles.includes(t)}))).length>r.length||!(i.length<r.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&((r=rf(e.channelsCount,t.channelsCount,n.channelsCount))==of||r!=uf&&((r=rf(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==of||r!=uf&&!(!e.bandwidth||af(e.bandwidth,t.bandwidth,n.bandwidth)!=of)))))}function Jd(e,t,n){if(e.id==n.id)return!0;var r=rf(e.width*e.height,t.width*t.height,n.width*n.height);if(r==of)return!0;if(r==uf)return!1;if(e.frameRate){if((r=rf(e.frameRate,t.frameRate,n.frameRate))==of)return!0;if(r==uf)return!1}return!(!e.bandwidth||af(e.bandwidth,t.bandwidth,n.bandwidth)!=of)}function Zd(e,t,n){if(e.id==n.id)return!0;var r=on(e.language,t.language),i=on(e.language,n.language);if(i>r)return!0;if(i<r)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(r=t.roles.filter((function(t){return e.roles.includes(t)})),(i=n.roles.filter((function(t){return e.roles.includes(t)}))).length>r.length)return!0;if(i.length<r.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function ef(e,t,n){return e.id==n.id||rf(e.width*e.height,t.width*t.height,n.width*n.height)==of}function tf(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function nf(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function rf(e,t,n){if(t==e&&e!=n)return uf;if(n==e&&e!=t)return of;if(t>e){if(n<=e||n-e<t-e)return of;if(n-e>t-e)return uf}else{if(n>e)return uf;if(e-n<e-t)return of;if(e-n>e-t)return uf}return sf}function af(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?of:t<e?uf:sf}Ld.prototype.release=function(){for(var e=l(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var of=1,sf=0,uf=-1;function lf(){var e=this;this.h=this.g=null,this.m=[],this.i=null,this.G=1,this.l={},this.L={},this.j=new Ld,this.F=0,this.H=new z(5),this.D=new ot((function(){!function(e){var t,n;P((function(r){switch(r.g){case 1:return t=0,E(r,2),w(r,cf(e),4);case 4:t=r.h,S(r,3);break;case 2:n=k(r),e.h&&(n.severity=1,e.h.onError(n));case 3:if(!e.h)return r.return();pf(e,t),x(r)}}))}(e)})),this.o=new Tr,this.s=null,this.J=[],this.u=1/0,this.B=!1}function cf(e){var t,n,r,i,a,o,s;return P((function(u){return 1==u.g?(t=Cr(e.m,e.g.retryParameters),n=e.h.networkingEngine,e.h.modifyManifestRequest(t,{format:"d"}),r=Date.now(),i=n.request(0,t),Sr(e.o,i),w(u,i.promise,2)):3!=u.g?(a=u.h,e.h?(a.uri&&!e.m.includes(a.uri)&&e.m.unshift(a.uri),w(u,function(e,t,n){var r,i,a,o;return P((function(s){if(1==s.g){if(!(r=Ei(t,"MPD")))throw new Re(2,4,4001,n);return e.g.dash.disableXlinkProcessing?s.return(df(e,r,n)):(i=e.g.dash.xlinkFailGracefully,a=md(r,e.g.retryParameters,i,n,e.h.networkingEngine),Sr(e.o,a),w(s,a.promise,2))}return o=s.h,s.return(df(e,o,n))}))}(e,a.data,a.uri),3)):u.return(0)):(o=Date.now(),s=(o-r)/1e3,e.H.sample(1,s),u.return(s))}))}function df(e,t,n){var r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b,T,A,C,I,_,M,R,D,N,O,L,j,U;return P((function(F){switch(F.g){case 1:if((r=e.g.dash.manifestPreprocessor)&&r(t),i=[n],0<(a=oi(t,"Location").map(ci).filter(Xe)).length&&(o=Ye(i,a),i=e.m=o),s=oi(t,"BaseURL"),u=s.map(ci),c=Ye(i,u),d=0,s&&s.length&&(d=fi(s[0],"availabilityTimeOffset",bi)||0),f=e.g.dash.ignoreMinBufferTime,h=0,f||(h=fi(t,"minBufferTime",pi)||0),e.F=fi(t,"minimumUpdatePeriod",pi,-1),p=fi(t,"availabilityStartTime",hi),g=fi(t,"timeShiftBufferDepth",pi),m=e.g.dash.ignoreSuggestedPresentationDelay,v=null,m||(v=fi(t,"suggestedPresentationDelay",pi)),y=e.g.dash.ignoreMaxSegmentDuration,b=null,y||(b=fi(t,"maxSegmentDuration",pi)),T=t.getAttribute("type")||"static",e.i)for(A=e.i.presentationTimeline,C=l(Object.values(e.l)),I=C.next();!I.done;I=C.next())(_=I.value).segmentIndex&&_.segmentIndex.eb(A.Pa());else M=e.g.defaultPresentationDelay||1.5*h,A=new ns(p,null!=v?v:M,e.g.dash.autoCorrectDrift);return A.yc("static"==T),A.U()&&!isNaN(e.g.availabilityWindowOverride)&&(g=e.g.availabilityWindowOverride),null==g&&(g=1/0),A.me(g),R=t.getAttribute("profiles")||"",D={Ma:"static"!=T,presentationTimeline:A,$:null,T:null,fa:null,I:null,bandwidth:0,Ke:!1,zb:d,profiles:R.split(",")},N=function(e,t,n,r){var i=fi(r,"mediaPresentationDuration",pi),a=[],o=0;r=oi(r,"Period");for(var s=0;s<r.length;s++){var u=r[s],l=r[s+1],c=fi(u,"start",pi,o),d=u.id,f=fi(u,"duration",pi),h=null;if(l){var p=fi(l,"start",pi);null!=p&&(h=p-c)}else null!=i&&(h=i-c);if(null==h&&(h=f),!(null!==e.s&&null!==d&&null!==c&&c<e.s)||e.J.includes(d)||s+1==r.length){if(null!==c&&(null===e.s||c>e.s)&&(e.s=c),o=ff(e,t,n,{start:c,duration:h,node:u,Gd:null==h||!l}),a.push(o),t.$.id&&h&&(e.L[t.$.id]=h),null==h){o=null;break}o=c+h}}return e.J=a.map((function(e){return e.id})),null!=i?{periods:a,duration:i,De:!1}:{periods:a,duration:o,De:!0}}(e,D,c,t),O=N.duration,L=N.periods,"static"!=T&&N.De||A.Aa(O||1/0),e.u&&!e.B&&e.h.isAutoLowLatencyMode()&&(e.h.enableLowLatencyMode(),e.B=e.h.isLowLatencyMode()),e.B?A.Ue(e.u):e.u&&W("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),A.Sd(b||1),w(F,jd(e.j,L,D.Ma),2);case 2:if(e.i){e.i.variants=e.j.l,e.i.textStreams=e.j.j.slice(),e.i.imageStreams=e.j.i,e.h.filter(e.i),F.A(3);break}if(e.i={presentationTimeline:A,variants:e.j.l,textStreams:e.j.j.slice(),imageStreams:e.j.i,offlineSessionIds:[],minBufferTime:h||0,sequenceMode:e.g.dash.sequenceMode},!A.df()){F.A(4);break}return j=oi(t,"UTCTiming"),w(F,function(e,t,n){var r,i,a,o,s,u,c,d;return P((function(f){switch(f.g){case 1:r=n.map((function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}})),i=e.g.dash.clockSyncUri,!r.length&&i&&r.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),a=l(r),o=a.next();case 2:if(o.done){f.A(4);break}switch(s=o.value,E(f,5),u=s.scheme,c=s.value,u){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return f.A(7);case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return f.A(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return d=Date.parse(c),f.return(isNaN(d)?0:d-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":W("NTP UTCTiming scheme is not supported");break;default:W("Unrecognized scheme in UTCTiming element",u)}f.A(9);break;case 7:return w(f,mf(e,t,c,"HEAD"),10);case 10:return f.return(f.h);case 8:return w(f,mf(e,t,c,"GET"),11);case 11:return f.return(f.h);case 9:S(f,3);break;case 5:k(f);case 3:o=a.next(),f.A(2);break;case 4:return W("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),f.return(0)}}))}(e,c,j),5);case 5:if(U=F.h,!e.h)return F.return();A.Ve(U);case 4:A.Md();case 3:e.h.makeTextStreamsForClosedCaptions(e.i),x(F)}}))}function ff(e,t,n,r){t.$=gf(r.node,null,n),t.T=r,t.$.zb=t.zb,t.$.id||(t.$.id="__shaka_period_"+r.start);var i=oi(r.node,"EventStream");n=t.presentationTimeline.Pa();for(var a=(i=l(i)).next();!a.done;a=i.next())vf(e,r.start,r.duration,a.value,n);if(n=oi(r.node,"AdaptationSet").map((function(n){return function(e,t,n){function r(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.fa=gf(n,t.$,null);var i,a=!1,o=oi(n,"Role"),s=o.map((function(e){return e.getAttribute("value")})).filter(Xe),u=void 0,d=t.fa.contentType==et;d&&(u="subtitle");for(var f=(o=l(o)).next();!f.done;f=o.next()){var h=(f=f.value).getAttribute("schemeIdUri");if(null==h||"urn:mpeg:dash:role:2011"==h)switch(f=f.getAttribute("value"),f){case"main":a=!0;break;case"caption":case"subtitle":u=f}}h=oi(n,"EssentialProperty"),o=null,f=!1;for(var p=(h=l(h)).next();!p.done;p=h.next()){var g=(p=p.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==g?o=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==g?i=r(parseInt(p.getAttribute("value"),10)):f=!0}for(h=l(h=oi(n,"SupplementalProperty")),p=h.next();!p.done;p=h.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(p=p.value).getAttribute("schemeIdUri")&&(i=r(parseInt(p.getAttribute("value"),10)));h=oi(n,"Accessibility");var m=new Map;for(h=l(h),p=h.next();!p.done;p=h.next())if(g=p.value,p=g.getAttribute("schemeIdUri"),g=g.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=g)for(var v=l(g=g.split(";")),y=v.next();!y.done;y=v.next()){var b=y.value,E=y=void 0;b.includes("=")?(y=(b=b.split("="))[0].startsWith("CC")?b[0]:"CC"+b[0],E=b[1]||"und"):(y="CC"+p,2==g.length?p+=2:p++,E=b),m.set(y,an(E))}else m.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=g)for(y=(g=l(g.split(";"))).next();!y.done;y=g.next())b=v=void 0,(y=y.value).includes("=")?(v="svc"+(y=y.split("="))[0],b=y[1].split(",")[0].split(":").pop()):(v="svc"+p,p++,b=y),m.set(v,an(b));else m.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=g&&(s.push(g),"captions"==g&&(u="caption"));if(f)return null;var T=sd(f=oi(n,"ContentProtection"),e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),S=an(n.getAttribute("lang")||"und"),k=n.getAttribute("label");if((f=oi(n,"Label"))&&f.length&&((f=f[0]).textContent&&(k=f.textContent)),f=oi(n,"Representation"),n=f.map((function(n){return(n=function(e,t,n,r,i,a,o,s,u,l){if(t.I=gf(l,t.fa,null),e.u=Math.min(e.u,t.I.zb),!function(e){var t=e.wc?1:0;return t+=e.ab?1:0,0==(t+=e.xc?1:0)?e.contentType==et||"application"==e.contentType:(1!=t&&(e.wc&&(e.ab=null),e.xc=null),!0)}(t.I))return null;var c=t.T.start;t.bandwidth=fi(l,"bandwidth",vi)||0;var d=t.I.contentType,f=d==et||"application"==d;d="image"==d;try{var h=function(t,n,r){return function(e,t,n,r){var i,a,o,s,u;return P((function(l){return 1==l.g?(i=Rr,a=Us(t,n,r,e.g.retryParameters),o=e.h.networkingEngine,s=o.request(i,a),Sr(e.o,s),w(l,s.promise,2)):(u=l.h,l.return(u.data))}))}(e,t,n,r)};if(t.I.wc)var p=Ad(t,h);else if(t.I.ab)p=Pd(t,e.l);else if(t.I.xc)p=Nd(t,h,e.l,!!e.i,e.g.dash.initialSegmentLimit,e.L);else{var g=t.I.wa,m=t.T.duration||0;p={Bb:function(){return Promise.resolve(Ss(c,m,g))}}}}catch(e){if((f||d)&&4002==e.code)return null;throw e}h=function(e,t,n,r){var i=sd(e,n,r);if(t.Fe)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==i.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=i.drmInfos),t.Fe=!1;else if(0<i.drmInfos.length&&(t.drmInfos=t.drmInfos.filter((function(e){return i.drmInfos.some((function(t){return t.keySystem==e.keySystem}))})),0==t.drmInfos.length))throw new Re(2,4,4008);return i.Be||t.Be}(h=oi(l,"ContentProtection"),n,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),h=new Set(h?[h]:[]);var v=!1;oi(l,"SupplementalProperty").some((function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")}))&&(v=!0);var y,b,E=!1;if(f&&(E=s.includes("forced_subtitle")||s.includes("forced-subtitle")),d&&((l=oi(l,"EssentialProperty").find((function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))})))&&(y=l.getAttribute("value")),!y))return null;l=t.I.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(b="PQ");var T=t.I.id?t.$.id+","+t.I.id:"",S={id:e.G++,originalId:t.I.id,createSegmentIndex:function(){var n,r;return P((function(i){if(1==i.g)return(n=T&&t.Ma&&e.l[T]?e.l[T]:S).segmentIndex?i.A(0):(r=n,w(i,p.Bb(),3));r.segmentIndex=i.h,x(i)}))},closeSegmentIndex:function(){S.segmentIndex&&(S.segmentIndex.release(),S.segmentIndex=null)},segmentIndex:null,mimeType:t.I.mimeType,codecs:t.I.codecs,frameRate:t.I.frameRate,pixelAspectRatio:t.I.pixelAspectRatio,bandwidth:t.bandwidth,width:t.I.width,height:t.I.height,kind:r,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:h,language:i,label:a,type:t.fa.contentType,primary:o,trickModeVideo:null,emsgSchemeIdUris:t.I.emsgSchemeIdUris,roles:s,forced:E,channelsCount:t.I.ad,audioSamplingRate:t.I.audioSamplingRate,spatialAudio:v,closedCaptions:u,hdr:b,tilesLayout:y,matchedStreams:[]};return T&&t.Ma&&!e.l[T]&&(e.l[T]=S),S}(e,t,T,u,S,k,a,s,m,n))&&(n.hdr=n.hdr||i),n})).filter((function(e){return!!e})),0==n.length){if(o="image"==t.fa.contentType,e.g.dash.ignoreEmptyAdaptationSet||d||o)return null;throw new Re(2,4,4003)}if(!t.fa.contentType||"application"==t.fa.contentType)for(t.fa.contentType=yf(n[0].mimeType,n[0].codecs),d=l(n),h=d.next();!h.done;h=d.next())h.value.type=t.fa.contentType;for(d=l(n),h=d.next();!h.done;h=d.next())for(h=h.value,p=l(T.drmInfos),g=p.next();!g.done;g=p.next())(g=g.value).keyIds=g.keyIds&&h.keyIds?new Set([].concat(c(g.keyIds),c(h.keyIds))):g.keyIds||h.keyIds;return d=f.map((function(e){return e.getAttribute("id")})).filter(Xe),{id:t.fa.id||"__fake__"+e.G++,contentType:t.fa.contentType,language:S,th:a,streams:n,drmInfos:T.drmInfos,qe:o,qg:d}}(e,t,n)})).filter(Xe),t.Ma){for(r=[],a=(i=l(n)).next();!a.done;a=i.next())for(var o=(a=l(a.value.qg)).next();!o.done;o=a.next())r.push(o.value);if(r.length!=new Set(r).size)throw new Re(2,4,4018)}for(r=n.filter((function(e){return!e.qe})),i=(n=l(n=n.filter((function(e){return e.qe})))).next();!i.done;i=n.next()){a=(i=i.value).qe.split(" ");for(var s=(o=l(r)).next();!s.done;s=o.next()){var u=s.value;if(a.includes(u.id)){s={};for(var d=(u=l(u.streams)).next();!d.done;s={Gc:s.Gc},d=u.next())s.Gc=d.value,s.Gc.trickModeVideo=i.streams.find(function(e){return function(t){return Kt(e.Gc.codecs)==Kt(t.codecs)}}(s))}}}if(i=e.g.disableAudio?[]:hf(r,"audio"),o=e.g.disableVideo?[]:hf(r,"video"),a=e.g.disableText?[]:hf(r,et),n=e.g.disableThumbnails?[]:hf(r,"image"),!o.length&&!i.length)throw new Re(2,4,4004);for(r=[],s=(i=l(i)).next();!s.done;s=i.next())r.push.apply(r,c(s.value.streams));for(i=[],s=(o=l(o)).next();!s.done;s=o.next())i.push.apply(i,c(s.value.streams));for(o=[],s=(a=l(a)).next();!s.done;s=a.next())o.push.apply(o,c(s.value.streams));for(a=[],s=(n=l(n)).next();!s.done;s=n.next())a.push.apply(a,c(s.value.streams));return{id:t.$.id,Kc:r,gd:i,textStreams:o,imageStreams:a}}function hf(e,t){return e.filter((function(e){return e.contentType==t}))}function pf(e,t){0>e.F||e.D.N(Math.max(3,e.F-t,V(e.H)))}function gf(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ad:null,audioSamplingRate:null,zb:0},n=n||t.wa;for(var r=oi(e,"BaseURL"),i=r.map(ci),a=e.getAttribute("contentType")||t.contentType,o=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,u=fi(e,"frameRate",wi)||t.frameRate,c=e.getAttribute("sar")||t.pixelAspectRatio,d=oi(e,"InbandEventStream"),f=t.emsgSchemeIdUris.slice(),h=(d=l(d)).next();!h.done;h=d.next())h=h.value.getAttribute("schemeIdUri"),f.includes(h)||f.push(h);d=function(e){for(var t=(e=l(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(d=oi(e,"AudioChannelConfiguration"))||t.ad,h=fi(e,"audioSamplingRate",yi)||t.audioSamplingRate,a||(a=yf(o,s));var p=ii(e,"SegmentBase"),g=ii(e,"SegmentTemplate"),m=p&&fi(p,"availabilityTimeOffset",bi)||0,v=g&&fi(g,"availabilityTimeOffset",bi)||0;return r=r&&r.length&&fi(r[0],"availabilityTimeOffset",bi)||0,r=t.zb+r+m+v,{wa:Ye(n,i),wc:p||t.wc,ab:ii(e,"SegmentList")||t.ab,xc:g||t.xc,width:fi(e,"width",yi)||t.width,height:fi(e,"height",yi)||t.height,contentType:a,mimeType:o,codecs:s,frameRate:u,pixelAspectRatio:c,emsgSchemeIdUris:f,id:e.getAttribute("id"),ad:d,audioSamplingRate:h,zb:r}}function mf(e,t,n,r){var i,a,o,s,u,l;return P((function(c){if(1==c.g)return i=Ye(t,[n]),(a=Cr(i,e.g.retryParameters)).method=r,o=e.h.networkingEngine.request(4,a),Sr(e.o,o),w(c,o.promise,2);if(s=c.h,"HEAD"==r){if(!s.headers||!s.headers.date)return c.return(0);u=s.headers.date}else u=xt(s.data);return l=Date.parse(u),isNaN(l)?c.return(0):c.return(l-Date.now())}))}function vf(e,t,n,r,i){for(var a=r.getAttribute("schemeIdUri")||"",o=r.getAttribute("value")||"",s=fi(r,"timescale",yi)||1,u=(r=l(oi(r,"Event"))).next();!u.done;u=r.next()){var c=fi(u=u.value,"presentationTime",yi)||0,d=fi(u,"duration",yi)||0;d=(c=c/s+t)+d/s,null!=n&&(c=Math.min(c,t+n),d=Math.min(d,t+n)),d<i||(u={schemeIdUri:a,value:o,startTime:c,endTime:d,id:u.getAttribute("id")||"",eventElement:u},e.h.onTimelineRegionAdded(u))}}function yf(e,t){return Xt(Ht(e,t))?et:e.split("/")[0]}function bf(e,t,n,r){this.h=e,this.type=t,this.g=n,this.segments=r||null}function wf(e,t,n,r){this.id=e,this.name=t,this.g=n,this.value=void 0===r?null:r}function xf(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function Ef(e,t){if(!(e=e.getAttribute(t)))throw new Re(2,4,4023,t);return e.value}function Tf(e,t,n){n=void 0===n?[]:n,this.g=t,this.i=e,this.h=n}function Sf(e,t){this.name=e,this.value=t}function kf(e,t){return e.filter((function(e){return e.name==t}))}function Af(e,t){return e.filter((function(e){return Ef(e,"TYPE")==t}))}function Cf(e,t){return(e=kf(e,t)).length?e[0]:null}function If(e,t){var n=0;return n=void 0===n?0:n,(e=Cf(e,t))?Number(e.value):n}function _f(e,t){return Ye([e],[t])[0]}function Mf(e){this.h=e,this.g=0}function Rf(e){Pf(e,/[ \t]+/gm)}function Pf(e,t){return t.lastIndex=e.g,t=null==(t=t.exec(e.h))?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||null==t||t.position!=e.g?null:(e.g+=t.length,t.results)}function Df(e){return e.g==e.h.length?null:(e=Pf(e,/[^ \t\n]*/gm))?e[0]:null}function Nf(){this.g=0}function Of(e,t,n){var r=(t=(t=xt(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new Re(2,4,4015);t=0;for(var i=!0,a=l(r),o=a.next();!o.done;o=a.next())if(o=o.value,/^#(?!EXT)/m.test(o)||i)i=!1;else{if(o=Lf(e,o),--e.g,jf.includes(o.name)){t=1;break}"EXT-X-STREAM-INF"==o.name&&(i=!0)}for(a=[],i=!0,o=0;o<r.length;o++){var s=r[o],u=r[o+1];if(/^#(?!EXT)/m.test(s)||i)i=!1;else{if(s=Lf(e,s),Uf.includes(s.name)){if(1!=t)throw new Re(2,4,4017);var c=r.splice(o,r.length-o);r=n,i=[],o=[],u=[],s=null;for(var d=(c=l(c)).next();!d.done;d=c.next())d=d.value,/^(#EXT)/.test(d)?(d=Lf(e,d),jf.includes(d.name)?a.push(d):"EXT-X-MAP"==d.name?s=d:"EXT-X-PART"==d.name?u.push(d):"EXT-X-PRELOAD-HINT"==d.name?"PART"==xf(d,"TYPE")?u.push(d):"MAP"==xf(d,"TYPE")&&(d.name="EXT-X-MAP",s=d):o.push(d)):/^#(?!EXT)/m.test(d)||(d=_f(r,d.trim()),s&&o.push(s),i.push(new Tf(d,o,u)),o=[],u=[]);return u.length&&(s&&o.push(s),i.push(new Tf("",o,u))),new bf(n,t,a,i)}a.push(s),"EXT-X-STREAM-INF"==s.name&&(s.g.push(new Sf("URI",u)),i=!0)}}return new bf(n,t,a)}function Lf(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new Re(2,4,4016,t);t=n[1];var r,i=n[2];if(n=[],i){var a;(a=Pf(i=new Mf(i),/^([^,=]+)(?:,|$)/g))&&(r=a[1]);for(var o=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;a=Pf(i,o);)n.push(new Sf(a[1],a[2]||a[3])),Rf(i)}return new wf(e,t,n,r)}(r=lf.prototype).configure=function(e){this.g=e},r.start=function(e,t){var n,r=this;return P((function(i){if(1==i.g)return r.B=t.isLowLatencyMode(),r.m=[e],r.h=t,w(i,cf(r),2);if(n=i.h,r.h&&pf(r,n),!r.h)throw new Re(2,7,7001);return i.return(r.i)}))},r.stop=function(){for(var e=l(Object.values(this.l)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.j&&this.j.release(),this.g=this.h=null,this.m=[],this.i=null,this.l={},this.j=null,null!=this.D&&(this.D.stop(),this.D=null),this.o.destroy()},r.update=function(){var e,t=this;return P((function(n){return 1==n.g?(E(n,2),w(n,cf(t),4)):2!=n.g?S(n,0):(e=k(n),t.h&&e?(t.h.onError(e),void x(n)):n.return())}))},r.onExpirationUpdated=function(){},B("shaka.dash.DashParser",lf),Ji.mpd=function(){return new lf},Qi["application/dash+xml"]=function(){return new lf},Qi["video/vnd.mpeg.dash.mpd"]=function(){return new lf},wf.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},wf.prototype.getAttribute=function(e){var t=this.g.filter((function(t){return t.name==e}));return t.length?t[0]:null};var jf="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Uf="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Ff(){}function Bf(e){try{var t=zf(e);return pr({uri:e,Oe:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return fr(e)}}function zf(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new Re(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new Re(2,1,1004,t);var r=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=r.split(";"),r=n[0];var i=!1;return 1<n.length&&"base64"==n[n.length-1]&&(i=!0,n.pop()),{data:i?Mt(t):St(t),contentType:r}}function Vf(){var e=this;this.g=this.i=null,this.Fa=1,this.o=new Map,this.u=new Map,this.F=new Map,this.F.set("video",new Map),this.F.set("audio",new Map),this.F.set(et,new Map),this.F.set("image",new Map),this.ua=new Set,this.h=new Map,this.j=null,this.M="",this.W=new Nf,this.O=0,this.B=-1,this.H=1/0,this.Ga=!1,this.m=new ot((function(){!function(e){var t,n;P((function(r){return 1==r.g?e.i?(E(r,2),w(r,e.update(),4)):r.return():2!=r.g?(gh(e)&&(t=e.O,e.m.N(t)),S(r,0)):(n=k(r),e.i?(n.severity=1,e.i.onError(n),e.m.N(.1),void x(r)):r.return())}))}(e)})),this.ea=Th,this.D=null,this.ca=0,this.J=1/0,this.V=this.da=0,this.G=new Tr,this.L=new Map,this.s=new Map,this.ba=new Map,this.l=!1}function Hf(e,t){return gh(e)?e.F.get(t.type):t.$c}function qf(e,t){var n,r,i,a,o,s,u,l,d,f,h,p,g,m,v;return P((function(y){if(1==y.g)return n=t.Jc,r=new De(n),e.l&&t.Mc&&Le(r,new Ke("_HLS_skip=YES")),w(y,ph(e,r.toString()),2);if(i=y.h,!t.stream.segmentIndex)return y.return();if(1!=(a=Of(e.W,i.data,i.uri)).type)throw new Re(2,4,4017);o=kf(a.g,"EXT-X-DEFINE"),s=Gf(e,o),u=t.stream,l=Hf(e,t),d=rh(a,u.mimeType),f=d.keyIds,h=d.drmInfos,function(e,t){return e.size===t.size&&[].concat(c(e)).every((function(e){return t.has(e)}))}(u.keyIds,f)||(u.keyIds=f,u.drmInfos=h,e.i.newDrmInfo(u)),p=ch(e,a,u.type,l,s),u.segmentIndex.Hb(p,e.j.Pa()),p.length&&(g=If(a.g,"EXT-X-MEDIA-SEQUENCE"),m=l.get(g),u.segmentIndex.eb(m)),v=p[p.length-1],Cf(a.g,"EXT-X-ENDLIST")&&(t.mc=!0,t.Ya=v.endTime),x(y)}))}function Kf(e,t,n){t.Ya+=n;for(var r=(t=l(e=Hf(e,t))).next();!r.done;r=t.next()){var i=l(r.value);r=i.next().value,i=i.next().value,e.set(r,i+n)}}function Wf(e){if(gh(e)){if(e.O=e.J,e.ea==kh){var t=Jf(e);e.g.hls.useSafariBehaviorForLive&&(t=e.j.m),isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.j.me(t)}}else e.j.Aa(Jf(e));e.j.Md()}function Gf(e,t){for(var n=new Map,r=(t=l(t)).next();!r.done;r=t.next()){var i=r.value;r=xf(i,"NAME");var a=xf(i,"VALUE");i=xf(i,"IMPORT"),r&&a&&n.set(r,a),i&&(r=e.o.get(i))&&n.set(i,r)}return n}function $f(e,t){var n=[];e.g.disableVideo||n.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||n.push(e.g.hls.defaultAudioCodec),n=xf(t,"CODECS",n.join(",")).split(/\s*,\s*/),e=new Set,t=[];for(var r=(n=l(n)).next();!r.done;r=n.next()){var i=Gt(r=r.value)[0];e.has(i)||(t.push(r),e.add(i))}return t}function Xf(e){return an(e=xf(e,"LANGUAGE")||"und")}function Yf(e,t){var n=Ef(t,"GROUP-ID"),r="",i=Ef(t,"TYPE").toLowerCase();"subtitles"==i&&(i=et);var a=i;if(a!=et&&n&&e.s.has(n)&&(r=e.s.get(n)),i=dh(Ef(t,"URI"),e.o),e.h.has(i))return e.h.get(i);var o=Xf(t),s=xf(t,"NAME"),u="YES"==xf(t,"DEFAULT"),l="audio"==a&&(l=xf(t,"CHANNELS"))?parseInt(l.split("/")[0],10):null,c="audio"==a&&(!!(c=xf(t,"CHANNELS"))&&c.includes("/JOC"));return r=Qf(e,i,r,a,o,u,s,l,null,xf(t,"CHARACTERISTICS"),t="YES"==xf(t,"FORCED"),c),e.u.has(n)?e.u.get(n).push(r):e.u.set(n,[r]),e.h.has(i)?e.h.get(i):(e.h.set(i,r),r)}function Qf(e,t,n,r,i,a,o,s,u,c,d,f){function h(h){var p,v,y,b,E,T,S,k,A,C,I,_,M;return P((function(R){if(1==R.g)return w(R,ph(e,m.Jc),2);if(3!=R.g)return p=R.h,h.aborted?R.return():(v=p.uri,y=Of(e.W,p.data,v),b=gh(e),w(R,th(e,y,t,v,n,r,i,a,o,s,u,c,d,f),3));if(E=R.h,h.aborted)return R.return();if(T=E.stream,gh(e)&&!b&&oh(e),m.Jc=v,m.Ya=E.Ya,m.Mc=E.Mc,m.mc=E.mc,m.$c=E.$c,m.Ld=!0,g.segmentIndex=T.segmentIndex,g.encrypted=T.encrypted,g.drmInfos=T.drmInfos,g.keyIds=T.keyIds,g.mimeType=T.mimeType,ts.includes(g.mimeType)&&(g.codecs=""),g.drmInfos.length&&e.i.newDrmInfo(g),r==(S=tt).va||r==S.Hc)for(k=l(e.h.values()),A=k.next();!A.done;A=k.next())(C=A.value).Ld||C.type!=r||(C.stream.mimeType=T.mimeType,ts.includes(C.stream.mimeType)&&(C.stream.codecs=""));(function(e){if(!e.D)return!1;for(var t=[],n=[],r=(e=l(e.D.variants)).next();!r.done;r=e.next())(r=r.value).video&&t.push(r.video),r.audio&&n.push(r.audio);return!(0<t.length&&!t.some((function(e){return e.segmentIndex}))||0<n.length&&!n.some((function(e){return e.segmentIndex})))})(e)&&(e.Ga?eh(e,[m]):(e.Ga=!0,I=Array.from(e.h.values()),_=I.filter((function(e){return e.stream.segmentIndex})),eh(e,_),Wf(e),0<(M=e.O)&&e.m.N(M))),x(R)}))}var p=_f(e.M,t),g=nh(e,n,r,i,a,o,s,u,c,d,f);ts.includes(g.mimeType)&&(g.codecs="");var m={stream:g,type:r,Ac:t,Jc:p,Ya:0,$c:new Map,Mc:!1,mc:!1,Cd:-1,Ld:!1},v=null,y=new AbortController;return g.createSegmentIndex=function(){return v||(y=new AbortController,v=new Promise((function(e){e(h(y.signal))})))},g.closeSegmentIndex=function(){v&&!g.segmentIndex&&y.abort(),g.segmentIndex&&(g.segmentIndex.release(),g.segmentIndex=null),v=null},m}function Jf(e){for(var t=1/0,n=(e=l(e.h.values())).next();!n.done;n=e.next())(n=n.value).stream.segmentIndex&&"text"!=n.stream.type&&(t=Math.min(t,n.Ya));return t}function Zf(e,t){for(var n=[],r=(t=l(t)).next();!r.done;r=t.next())(r=r.value).segmentIndex&&Ts(r.segmentIndex,(function(e){n.push(e)}));e.j.Ib(n)}function eh(e,t){if(!gh(e))for(var n=Jf(e),r=l(t),i=r.next();!i.done;i=r.next())i.value.stream.segmentIndex.Wa(0,n);for(i=(n=l(t)).next();!i.done;i=n.next())i=i.value.stream,ts.includes(i.mimeType)&&(i.codecs="");Zf(e,t.map((function(e){return e.stream}))),e.g.hls.ignoreManifestProgramDateTime?function(e,t){for(var n=-1==e.B,r=l(t),i=r.next();!i.done;i=r.next()){var a=(i=i.value).stream.segmentIndex,o=Hf(e,i);if(a=a.g[0]||null)for(var s=(o=l(o)).next();!s.done;s=o.next()){var u=(s=l(s.value)).next().value;if(s.next().value==a.startTime){n&&(e.B=Math.max(e.B,u)),i.Cd=u;break}}}if(!(0>e.B))for(i=(t=l(t)).next();!i.done;i=t.next())(r=(n=i.value).stream.segmentIndex)&&(r.g.splice(0,e.B-n.Cd),(r=r.g[0]||null)&&(r=-r.startTime,n.stream.segmentIndex.offset(r),Kf(e,n,r)))}(e,t):function(e,t){if(1/0==e.H)for(var n=(t=l(t)).next();!n.done;n=t.next()){var r=n.value.stream.segmentIndex.g[0]||null;null!=r&&null!=r.g&&(e.H=Math.min(e.H,r.g))}if(1/0!=(t=e.H))for(n=(r=l(e.h.values())).next();!n.done;n=r.next()){var i=(n=n.value).stream.segmentIndex;if(null!=i){var a=i.g[0]||null;if(null==a.g)K("Missing EXT-X-PROGRAM-DATE-TIME for stream",n.Ac,"Expect AV sync issues!");else for(Kf(e,n,a.g-t-a.startTime),i=(n=l(i)).next();!i.done;i=n.next())i.value.oe(t)}}}(e,t)}function th(e,t,n,r,i,a,o,s,u,l,c,d,f,h,p){var g,m,v,y,b,x,E,T,S,k,A,C,I,_,M;return P((function(R){if(1==R.g){if(1!=t.type)throw new Re(2,4,4017);return g=kf(t.g,"EXT-X-DEFINE"),m=Gf(e,g),ah(e,t),p?R.A(2):w(R,function(e,t,n,r,i){var a,o,s,u,l,c,d,f,h,p;return P((function(g){return 1==g.g?(a=Rr,o=Math.trunc((r.segments.length-1)/2),s=dh(r.segments[o].i,i),u=new De(s),l=u.qa.split(".").pop(),c=xh[t],(d=c[l])||(d=yh[l])||(d=fh(t,n))?g.return(d):((f=Cr([s],e.g.retryParameters)).method="HEAD",w(g,vh(e,f,a),2))):(h=g.h,(p=h.headers["content-type"])?g.return(p.split(";")[0]):g.return(hh(t)))}))}(e,a,i,t,m),3)}if(2!=R.g&&(p=R.h),v=rh(t,p),y=v.drmInfos,b=v.keyIds,x=v.encrypted,E=v.kf,x&&!y.length&&!E)throw new Re(2,4,4026);return T=gh(e)?e.F.get(a):new Map,S=e.l,k=ch(e,t,a,T,m),S!=e.l&&ah(e,t),A=k[k.length-1].endTime,C=new Es(k),_=!!(I=Cf(t.g,"EXT-X-SERVER-CONTROL"))&&null!=I.getAttribute("CAN-SKIP-UNTIL"),(M=nh(e,i,a,o,s,u,l,c,d,f,h)).segmentIndex=C,M.encrypted=x,M.drmInfos=y,M.keyIds=b,M.mimeType=p,R.return({stream:M,type:a,Ac:n,Jc:r,Ya:A,Mc:_,mc:!1,Cd:-1,$c:T,Ld:!1})}))}function nh(e,t,n,r,i,a,o,s,u,l,c){var d=fh(n,t)||hh(n);return{id:e.Fa++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:d,codecs:t,kind:n==et?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:r,label:a,type:n,primary:i,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:u?u.split(","):[],forced:l,channelsCount:o,audioSamplingRate:null,spatialAudio:c,closedCaptions:s,hdr:void 0,tilesLayout:void 0}}function rh(e,t){var n=[];if(e.segments)for(var r=(e=l(e.segments)).next();!r.done;r=e.next())r=kf(r.value.g,"EXT-X-KEY"),n.push.apply(n,c(r));r=e=!1;for(var i=[],a=new Set,o=(n=l(n)).next();!o.done;o=n.next()){var s=Ef(o=o.value,"METHOD");if("NONE"!=s)if(e=!0,"AES-128"==s)r=!0;else if(s=xf(o,"KEYFORMAT")||"identity",o=(s=Eh[s])?s(o,t):null){if(o.keyIds)for(var u=(s=l(o.keyIds)).next();!u.done;u=s.next())a.add(u.value);i.push(o)}}return{drmInfos:i,keyIds:a,encrypted:e,kf:r}}function ih(t,n,r){if(!e.crypto||!e.crypto.subtle)throw W("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new Re(2,4,4042);var i=0,a=xf(n,"IV","");if(a){var o=Rt(a.substr(2));if(16!=o.byteLength)throw new Re(2,4,4043)}else i=If(r.g,"EXT-X-MEDIA-SEQUENCE");var s=Cr([n=_f(r.h,Ef(n,"URI"))],t.g.retryParameters),u={method:"AES-128",iv:o,firstMediaSequenceNumber:i,fetchKey:function(){var n,r,i;return P((function(a){if(1==a.g)return w(a,vh(t,s,6),2);if(3!=a.g){if(!(n=a.h).data||16!=n.data.byteLength)throw new Re(2,4,4044);return r={name:"AES-CBC"},i=u,w(a,e.crypto.subtle.importKey("raw",n.data,r,!0,["decrypt"]),3)}i.cryptoKey=a.h,u.fetchKey=void 0,x(a)}))}};return u}function ah(e,t){var n=Cf(t.g,"EXT-X-PLAYLIST-TYPE"),r=Cf(t.g,"EXT-X-ENDLIST");if(r=n&&"VOD"==n.value||r,n=n&&"EVENT"==n.value&&!r,n=!r&&!n,r)mh(e,Th);else{if(mh(e,n?kh:Sh),!(r=Cf(t.g,"EXT-X-TARGETDURATION")))throw new Re(2,4,4024,"EXT-X-TARGETDURATION");r=Number(r.value),n=Cf(t.g,"EXT-X-PART-INF"),e.l&&n?(e.da=Number(Ef(n,"PART-TARGET")),e.J=Math.min(e.da,e.J),t=Cf(t.g,"EXT-X-SERVER-CONTROL"),e.V=t?Number(Ef(t,"PART-HOLD-BACK")):0):e.J=Math.min(r,e.J),e.ca=Math.max(r,e.ca)}}function oh(e){var t=e.g.defaultPresentationDelay?e.g.defaultPresentationDelay:e.V?e.V:e.ca*e.g.hls.liveSegmentsDelay;e.j.Xe(0),e.j.We(t),e.j.yc(!1)}function sh(e,t,n,r){return(n=Cf(n,"EXT-X-MAP"))?(t=[r=dh(_f(t,Ef(n,"URI")),r),xf(n,"BYTERANGE","")].join("-"),e.ba.has(t)||(n=function(e,t){var n=0,r=null;(t=xf(t,"BYTERANGE"))&&(n=t.split("@"),r=Number(n[0]),n=Number(n[1]),r=n+r-1);return new go((function(){return[e]}),n,r)}(r,n),e.ba.set(t,n)),e.ba.get(t)):null}function uh(e,t,n,r,i,a,o,s,u){var c=r.g,d=dh(r.i,a),f=Cf(c,"EXTINF"),h=a=0,p=null;r.h.length&&!e.l&&W("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var g=null;if(!e.g.hls.ignoreManifestProgramDateTime){var m=Cf(c,"EXT-X-PROGRAM-DATE-TIME");m&&m.value&&(g=hi(m.value))}if(m=vo,Cf(c,"EXT-X-GAP")&&(m=2),!f){if(0==r.h.length)throw new Re(2,4,4024,"EXTINF");if(!e.l)return null}var v=[];if(e.l)for(var y={},b=0;b<r.h.length;y={pd:y.pd},b++){var w=r.h[b],x=0==b?n:v[v.length-1],E=0==b?i:x.endTime,T=Number(xf(w,"DURATION"))||e.da;if(T){T=E+T;var S=0,k=null;"EXT-X-PRELOAD-HINT"==w.name?S=(S=xf(w,"BYTERANGE-START"))?Number(S):0:(S=(k=l(lh(x,S=xf(w,"BYTERANGE")))).next().value,k=k.next().value),(x=xf(w,"URI"))&&(y.pd=_f(o,x),x=vo,"YES"==xf(w,"GAP")&&(x=2),v.push(new mo(E,T,function(e){return function(){return[e.pd]}}(y),S,k,t,0,0,1/0,[],"",null,null,x)))}}return a=f?i+Number(f.value.split(",")[0]):v[v.length-1].endTime,(e=Cf(c,"EXT-X-BYTERANGE"))?(h=(p=l(lh(n,e.value))).next().value,p=p.next().value):v.length&&(h=v[0].Ba,p=v[v.length-1].ka),n="",e=null,"image"==s&&(n="1x1",s=Cf(c,"EXT-X-TILES"))&&(n=Ef(s,"LAYOUT"),(s=xf(s,"DURATION"))&&(e=Number(s))),new mo(i,a,(function(){return d.length?[d]:[]}),h,p,t,0,0,1/0,v,n,e,g,m,u)}function lh(e,t){var n=0,r=null;return t&&(n=t.split("@"),t=Number(n[0]),r=(n=n[1]?Number(n[1]):e.ka+1)+t-1),[n,r]}function ch(e,t,n,r,i){var a=t.segments,o=void 0,s=If(t.g,"EXT-X-DISCONTINUITY-SEQUENCE"),u=If(t.g,"EXT-X-MEDIA-SEQUENCE"),c=Cf(t.g,"EXT-X-SKIP"),d=u+(c=c?Number(xf(c,"SKIPPED-SEGMENTS")):0),f=0;gh(e)&&r.has(d)&&(f=r.get(d));for(var h=[],p=null,g=0;g<a.length;g++){var m=a[g],v=0==g?f:p.endTime;d=u+c+g,Cf(m.g,"EXT-X-DISCONTINUITY")&&s++;for(var y=l(m.g),b=y.next();!b.done;b=y.next())"EXT-X-KEY"==(b=b.value).name&&(o="AES-128"==Ef(b,"METHOD")?ih(e,b,t):void 0);r.set(d,v),y=sh(e,t.h,m.g,i),!e.l&&e.i.isAutoLowLatencyMode()&&(e.i.enableLowLatencyMode(),e.l=e.i.isLowLatencyMode()),(p=m=uh(e,y,p,m,v,i,t.h,n,o))&&(m.m=s,e.g.hls.ignoreManifestProgramDateTime&&null!=e.B&&d<e.B||h.push(m))}if(t=h.some((function(e){return null!=e.g})))for(n={},r=0;r<h.length;n={Qb:n.Qb,Pb:n.Pb,Bc:n.Bc,Ta:n.Ta,Ob:n.Ob},r++)if(n.Ta=h[r],null==n.Ta.g)for(n.Pb=0,n.Qb=r,i=function(e){return function(){var t=h[e.Qb];if(t){if(null!=t.g)return t.g+e.Pb;e.Pb-=t.endTime-t.startTime,e.Qb+=1}return null}}(n),n.Ob=0,n.Bc=r,a=function(e){return function(){var t=h[e.Bc];if(t){if(t!=e.Ta&&(e.Ob+=t.endTime-t.startTime),null!=t.g)return t.g+e.Ob;--e.Bc}return null}}(n);null==n.Ta.g;)n.Ta.g=a(),null==n.Ta.g&&(n.Ta.g=i());if(t)for(r=(n=l(h)).next();!r.done;r=n.next())for(r=(i=r.value).g,a=(i=l(i.i)).next();!a.done;a=i.next())(a=a.value).g=r,r+=a.endTime-a.startTime;if(e=e.H,t&&1/0!=e)for(r=(t=l(h)).next();!r.done;r=t.next())r.value.oe(e);return h}function dh(e,t){var n=(e=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}")).match(/{\$\w*}/g);if(n)for(var r=(n=l(n)).next();!r.done;r=n.next()){var i=(r=r.value).slice(2,r.length-1),a=t.get(i);if(!a)throw new Re(2,4,4039,i);e=e.replace(r,a)}return e}function fh(e,t){if(e==et){if("vtt"==t||"wvtt"==t)return"text/vtt";if(t&&""!==t)return"application/mp4"}return"image"!=e||t&&"jpeg"!=t?"audio"==e&&"mp4a.40.34"==t?"audio/mpeg":null:"image/jpeg"}function hh(e){return e==et?"text/vtt":xh[e].mp4}function ph(e,t){return t=Cr([t],e.g.retryParameters),e.i.modifyManifestRequest(t,{format:"h"}),vh(e,t,0)}function gh(e){return e.ea!=Th}function mh(e,t){e.ea=t,e.j&&e.j.yc(!gh(e)),gh(e)||e.m.stop()}function vh(e,t,n){if(!e.G)throw new Re(2,7,7001);return t=e.i.networkingEngine.request(n,t),Sr(e.G,t),t.promise}B("shaka.net.DataUriPlugin",Ff),Ff.parse=Bf,Ar("data",Bf),(r=Vf.prototype).configure=function(e){this.g=e},r.start=function(e,t){var n,r=this;return P((function(i){return 1==i.g?(r.i=t,r.l=t.isLowLatencyMode(),w(i,ph(r,e),2)):3!=i.g?(n=i.h,r.M=n.uri,w(i,function(e,t,n){var r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b,T,S,A,C,I,_,M,R,D,N,O,L,j,U,F;return P((function(B){switch(B.g){case 1:r=Of(e.W,t,e.M);for(var z=l(kf(r.g,"EXT-X-DEFINE")),V=z.next();!V.done;V=z.next()){var H=V.value;V=xf(H,"NAME"),H=xf(H,"VALUE"),V&&H&&(e.o.has(V)||e.o.set(V,H))}if(i=[],a=[],o=[],1==r.type)return A=e.g.hls.mediaPlaylistFullMimeType,r.segments.length&&(C=new De(r.segments[0].i),I=C.qa.split(".").pop(),(_=yh[I])?A=_:"ts"!==I&&"mp4"!==I&&(bh[I]?(_=bh[I],M=e.g.hls.defaultAudioCodec,A=_+'; codecs="'+M+'"'):wh[I]&&(_=wh[I],R=e.g.hls.defaultVideoCodec,A=_+'; codecs="'+R+'"'))),D=A.split(";")[0],N=D.split("/")[0],O=Wt(A),L=new Map,w(B,th(e,r,n,n,O,N,"",!0,"Media Playlist",null,L,null,!1,!1,D),5);for(s=kf(r.g,"EXT-X-MEDIA"),u=kf(r.g,"EXT-X-STREAM-INF"),c=kf(r.g,"EXT-X-IMAGE-STREAM-INF"),d=kf(r.g,"EXT-X-SESSION-KEY"),V=(z=l(u)).next();!V.done;V=z.next()){var q=V.value;H=xf(q,"AUDIO"),V=xf(q,"VIDEO");var K=xf(q,"SUBTITLES");if(q=$f(e,q),K){var W=Ze(et,q);e.s.set(K,W),te(q,W)}H&&((K=Ze("audio",q))||(K=e.g.hls.defaultAudioCodec),e.s.set(H,K)),V&&((H=Ze("video",q))||(H=e.g.hls.defaultVideoCodec),e.s.set(V,H))}for(f=kf(r.g,"EXT-X-SESSION-DATA"),h=l(f),p=h.next();!p.done;p=h.next())g=p.value,m=xf(g,"DATA-ID"),v=xf(g,"URI"),y=xf(g,"LANGUAGE"),b=xf(g,"VALUE"),T=(new Map).set("id",m),v&&T.set("uri",_f(e.M,v)),y&&T.set("language",y),b&&T.set("value",b),S=new vr("sessiondata",T),e.i&&e.i.onEvent(S);for(function(e,t){t=t.filter((function(e){var t=xf(e,"URI")||"";return"SUBTITLES"!=xf(e,"TYPE")&&""!=t}));for(var n=(t=l(t)).next();!n.done;n=t.next())Yf(e,n.value)}(e,s),V=(z=l(z=Af(s,"CLOSED-CAPTIONS"))).next();!V.done;V=z.next())V=Xf(K=V.value),H=Ef(K,"GROUP-ID"),K=Ef(K,"INSTREAM-ID"),e.L.get(H)||e.L.set(H,new Map),e.L.get(H).set(K,V);return i=function(e,t,n){var r=[],i=new Set;if(0<n.length)for(var a=(n=l(n)).next();!a.done;a=n.next()){var o=Ef(a=a.value,"METHOD");if("NONE"!=o&&"AES-128"!=o&&(o=xf(a,"KEYFORMAT")||"identity",a=(o=Eh[o])?o(a,""):null)){if(a.keyIds)for(var s=(o=l(a.keyIds)).next();!s.done;s=o.next())i.add(s.value);r.push(a)}}return t=t.map((function(t){var n=xf(t,"FRAME-RATE"),a=Number(xf(t,"AVERAGE-BANDWIDTH"))||Number(Ef(t,"BANDWIDTH")),o=xf(t,"RESOLUTION"),s=(o=l(o?o.split("x"):[null,null])).next().value,u=o.next().value,c=xf(t,"VIDEO-RANGE");t=function(e,t){var n=$f(e,t),r=xf(t,"AUDIO"),i=xf(t,"VIDEO"),a=r||i;a=a&&e.u.has(a)?e.u.get(a):[],r={audio:r?a:[],video:i?a:[]},i=!1;var o=Ef(t,"URI"),s=r.audio.find((function(e){return e&&e.Ac==o})),u=Ze("video",n),l=Ze("audio",n);return l&&!u?a="audio":!a.length&&l&&u?(a="video",n=[[u,l].join()]):r.audio.length&&s?(a="audio",i=!0):a=r.video.length&&!r.audio.length?"audio":"video",i||(e=function(e,t,n,r){var i=dh(Ef(t,"URI"),e.o);return e.h.has(i)?e.h.get(i):(t=xf(t,"CLOSED-CAPTIONS"),t="video"==r&&t&&"NONE"!=t?e.L.get(t):null,n=Je(r,n),r=Qf(e,i,n,r,"und",!1,null,null,t,null,!1,!1),e.h.has(i)?e.h.get(i):(e.h.set(i,r),r))}(e,t,n,a),r[e.stream.type]=[e]),r}(e,t),o=t.audio;for(var d=l(t=t.video),f=d.next();!f.done;f=d.next())(f=f.value.stream)&&(f.width=Number(s)||void 0,f.height=Number(u)||void 0,f.frameRate=Number(n)||void 0,f.hdr=c||void 0);for(n=e.g.disableAudio,o.length&&!n||(o=[null]),n=e.g.disableVideo,t.length&&!n||(t=[null]),n=[],s=(o=l(o)).next();!s.done;s=o.next())for(s=s.value,c=(u=l(t)).next();!c.done;c=u.next()){var h=c.value;(c=s?s.stream:null)&&(c.drmInfos=r,c.keyIds=i),(d=h?h.stream:null)&&(d.drmInfos=r,d.keyIds=i),f=s?s.stream.drmInfos:null;var p=h?h.stream.drmInfos:null;h=(h?h.Ac:"")+" - "+(s?s.Ac:""),c&&d&&f.length&&p.length&&!(0<Ui(f,p).length)||e.ua.has(h)||(c={id:e.Fa++,language:c?c.language:"und",primary:!!c&&c.primary||!!d&&d.primary,audio:c,video:d,bandwidth:a,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},n.push(c),e.ua.add(h))}return n})).reduce(Ge,[]),t=t.filter((function(e){return null!=e}))}(e,u,d),a=function(e,t){var n=Af(t,"SUBTITLES");t=n.map((function(t){if(e.g.disableText)return null;try{return Yf(e,t).stream}catch(t){if(e.g.hls.ignoreTextStreamFailures)return null;throw t}}));for(var r=(n=l(n)).next();!r.done;r=n.next()){var i=Ef(r.value,"GROUP-ID");if((r=e.s.get(i))&&(i=e.u.get(i)))for(var a=(i=l(i)).next();!a.done;a=i.next())(a=a.value).stream.codecs=r,a.stream.mimeType=fh(et,r)||hh(et)}return t.filter((function(e){return e}))}(e,s),w(B,function(e,t){var n,r;return P((function(i){return 1==i.g?(n=t.map((function(t){var n,r;return P((function(i){if(1==i.g)return e.g.disableThumbnails?i.return(null):(E(i,2),w(i,function(e,t){var n,r,i,a,o,s,u,l,c,d;return P((function(f){return 1==f.g?(n=dh(Ef(t,"URI"),e.o),r=xf(t,"CODECS","jpeg")||"",e.h.has(n)?f.return(e.h.get(n)):(i=Xf(t),a=xf(t,"NAME"),o=xf(t,"CHARACTERISTICS"),s=Qf(e,n,r,"image",i,!1,a,null,null,o,!1,!1),e.h.has(n)?f.return(e.h.get(n)):(u=xf(t,"RESOLUTION"))?w(f,s.stream.createSegmentIndex(),3):f.A(2))):(2!=f.g&&(l=s.stream.segmentIndex.get(0),c=l.tilesLayout)&&(s.stream.width=Number(u.split("x")[0])*Number(c.split("x")[0]),s.stream.height=Number(u.split("x")[1])*Number(c.split("x")[1])),(d=xf(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(d)),e.h.set(n,s),f.return(s))}))}(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(r=k(i),e.g.hls.ignoreImageStreamFailures)return i.return(null);throw r}))})),w(i,Promise.all(n),2)):(r=i.h,i.return(r.filter((function(e){return e}))))}))}(e,c),4);case 4:o=B.h,B.A(3);break;case 5:j=B.h,e.h.set(n,j),i.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==N?j.stream:null,video:"video"==N?j.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!e.i)throw new Re(2,7,7001);e.j=new ns(null,0),e.j.yc(!0),1==r.type&&(gh(e)&&(oh(e),U=e.O,e.m.N(U)),F=Array.from(e.h.values()),eh(e,F),Wf(e)),e.D={presentationTimeline:e.j,variants:i,textStreams:a,imageStreams:o,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0},e.i.makeTextStreamsForClosedCaptions(e.D),x(B)}}))}(r,n.data,e),3)):i.return(r.D)}))},r.stop=function(){this.m&&(this.m.stop(),this.m=null);var e=[];return this.G&&(e.push(this.G.destroy()),this.G=null),this.g=this.i=null,this.ua.clear(),this.D=null,this.h.clear(),this.u.clear(),this.s.clear(),this.o.clear(),Promise.all(e)},r.update=function(){var e,t,n,r,i,a,o,s,u=this;return P((function(d){if(1==d.g){if(!gh(u))return d.return();for(e=[],t=Array.from(u.h.values()),n=t.filter((function(e){return e.stream.segmentIndex})),r=l(n),i=r.next();!i.done;i=r.next())a=i.value,e.push(qf(u,a));return w(d,Promise.all(e),2)}Zf(u,n.map((function(e){return e.stream}))),o=n.some((function(e){return 0==e.mc})),n.length&&!o&&(mh(u,Ah.ff),s=n.map((function(e){return e.Ya})),u.j.Aa(Math.min.apply(Math,c(s))),u.i.updateDuration()),x(d)}))},r.onExpirationUpdated=function(){},B("shaka.hls.HlsParser",Vf);var yh={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},bh={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},wh={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},xh={audio:bh,video:wh,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Eh={"com.apple.streamingkeydelivery":function(t,n){if("video/mp2t"==n)throw new Re(2,4,4040);if(e.shakaMediaKeysPolyfill)throw new Re(2,4,4041);return Qe("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=Ef(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=Qe("com.widevine.alpha",[{initDataType:"cenc",initData:t=Ie((t=zf(t=Ef(e,"URI"))).data)}]),(e=xf(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=Ef(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?Qe("com.microsoft.playready",[{initDataType:"cenc",initData:e=ri(e=Ie((e=zf(e=Ef(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0)}]):null},identity:function(e){return e=Ef(e,"METHOD"),["SAMPLE-AES","SAMPLE-AES-CTR"].includes(e)?Qe("org.w3.clearkey",null):null}},Th="VOD",Sh="EVENT",kh="LIVE",Ah={ff:Th,Og:Sh,Sg:kh};function Ch(e,t,n,r,i,a){if(200<=n&&299>=n&&202!=n)return{uri:i||r,Oe:r,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};i=null;try{i=Tt(t)}catch(e){}throw new Re(401==n||403==n?2:1,1,1001,r,n,i,e,a)}function Ih(){}function _h(e,t,n,r,i){var a=new Oh;Br(t.headers).forEach((function(e,t){a.append(t,e)}));var o=new Dh,s={ye:!1,bf:!1};if(e=function(e,t,n,r,i,a,o){var s,u,l,c,d,f,h,p,g,m,v,y;return P((function(b){switch(b.g){case 1:return s=Ph,u=Nh,f=d=0,h=Date.now(),E(b,2),w(b,s(e,n),4);case 4:return l=b.h,a(Mh(l.headers)),p=l.clone().body.getReader(),m=(g=l.headers.get("Content-Length"))?parseInt(g,10):0,new u({start:function(e){function t(){var n,r;return P((function(a){switch(a.g){case 1:return E(a,2),w(a,p.read(),4);case 4:n=a.h,S(a,3);break;case 2:return k(a),a.return();case 3:if(n.done){a.A(5);break}if(d+=n.value.byteLength,!o){a.A(5);break}return w(a,o(n.value),5);case 5:(100<(r=Date.now())-h||n.done)&&(i(r-h,d-f,m-d),f=d,h=r),n.done?e.close():(e.enqueue(n.value),t()),x(a)}}))}t()}}),w(b,l.arrayBuffer(),5);case 5:c=b.h,S(b,3);break;case 2:if(v=k(b),r.ye)throw new Re(1,1,7001,e,t);if(r.bf)throw new Re(1,1,1003,e,t);throw new Re(1,1,1002,e,v,t);case 3:return y=Mh(l.headers),b.return(Ch(y,c,l.status,e,l.url,t))}}))}(e,n,{body:t.body||void 0,headers:a,method:t.method,signal:o.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,r,i,t.streamDataCallback),e=new dr(e,(function(){return s.ye=!0,o.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var u=new ot((function(){s.bf=!0,o.abort()}));u.N(t/1e3),e.finally((function(){u.stop()}))}return e}function Mh(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function Rh(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}mt("Tizen 3")||mt("Tizen 2")||ft()||(Ji.m3u8=function(){return new Vf},Qi["application/x-mpegurl"]=function(){return new Vf},Qi["application/vnd.apple.mpegurl"]=function(){return new Vf}),B("shaka.net.HttpFetchPlugin",Ih),Ih.isSupported=Rh,Ih.parse=_h;var Ph=e.fetch,Dh=e.AbortController,Nh=e.ReadableStream,Oh=e.Headers;function Lh(){}function jh(e,t,n,r,i){var a=new Fh,o=Date.now(),s=0;return new dr(new Promise((function(u,l){a.open(t.method,e,!0),a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onabort=function(){l(new Re(1,1,7001,e,n))};var c=!1;for(var d in a.onreadystatechange=function(){if(2==a.readyState&&!c){var e=Uh(a);i(e),c=!0}},a.onload=function(){var t=Uh(a),r=a.response;try{var i=Ch(t,r,a.status,e,a.responseURL,n);u(i)}catch(e){l(e)}},a.onerror=function(t){l(new Re(1,1,1002,e,t,n))},a.ontimeout=function(){l(new Re(1,1,1003,e,n))},a.onprogress=function(e){var t=Date.now();(100<t-o||e.lengthComputable&&e.loaded==e.total)&&(r(t-o,e.loaded-s,e.total-e.loaded),s=e.loaded,o=t)},t.headers)a.setRequestHeader(d.toLowerCase(),t.headers[d]);a.send(t.body)})),(function(){return a.abort(),Promise.resolve()}))}function Uh(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=l(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}Rh()&&(Ar("http",_h,2,!0),Ar("https",_h,2,!0),Ar("blob",_h,2,!0)),B("shaka.net.HttpXHRPlugin",Lh),Lh.parse=jh;var Fh=e.XMLHttpRequest;function Bh(e,t,n,r){this.g=e,this.i=t,this.groupId=n,this.h=r}function zh(e){return e.ya().map((function(e){return"{"+encodeURI(e)+"}"})).join("")+":"+e.Ba+":"+e.ka}function Vh(e,t){return Us(e.g.ya(),e.g.Ba,e.g.ka,t.streaming.retryParameters)}function Hh(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function qh(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function Kh(e){var t=this;this.o=e,this.j=new Map,this.i=new Nr((function(){return Wh(t).catch((function(){}))})),this.h=[],this.m=function(){},this.l=function(){},this.g=new Hh}function Wh(e){var t=e.h.map((function(e){return e()}));return e.h=[],Promise.all(t)}function Gh(e,t,n,r,i,a){Or(e.i);var o=(e.j.get(t)||Promise.resolve()).then((function(){var t,o,s,u,l,c,d;return P((function(f){if(1==f.g)return w(f,function(e,t){var n,r,i,a;return P((function(o){return 1==o.g?(n=Rr,r=e.o.request(n,t),i=function(){return r.abort()},e.h.push(i),w(o,r.promise,2)):(a=o.h,te(e.h,i),o.return(a.data))}))}(e,n),2);if(t=f.h,e.i.g)throw new Re(2,9,7001);if(i)for(u in o=Ie(t),(s=new ni(o)).data)l=Number(u),c=s.data[l],d=s.g[l],e.l(c,d);e.g.close(r,t.byteLength);var h=e.g;return e.m(0==h.i?0:h.j/h.i,e.g.h),f.return(a(t))}))}));e.j.set(t,o)}function $h(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new rt,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function Xh(e,t){return new Promise((function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var e;return P((function(r){if(1==r.g)return null==i.result?(n(),r.return()):(e=i.result,w(r,t(e.key,e.value,e),2));e.continue(),x(r)}))}}))}function Yh(e){this.h=e,this.g=[]}function Qh(e,t){return Jh(e,t,"readwrite")}function Jh(e,t,n){var r=new $h(n=e.h.transaction([t],n),t);return e.g.push(r),r.promise().then((function(){te(e.g,r)}),(function(){te(e.g,r)})),r}function Zh(e,t,n){this.h=new Yh(e),this.i=t,this.g=n}function ep(e){return Promise.reject(new Re(2,9,9011,"Cannot add new value to "+e))}function tp(e,t,n,r){t=(e=Qh(e.h,t)).store();for(var i={},a=(n=l(n)).next();!a.done;i={Ec:i.Ec},a=n.next())i.Ec=a.value,t.delete(i.Ec).onsuccess=function(e){return function(){return r(e.Ec)}}(i);return e.promise()}function np(e,t,n){var r,i,a,o,s,u,c;return P((function(d){if(1==d.g){for(r=Jh(e.h,t,"readonly"),i=r.store(),a={},o=[],s={},u=l(n),c=u.next();!c.done;s={Vb:s.Vb,Tb:s.Tb},c=u.next())s.Tb=c.value,s.Vb=i.get(s.Tb),s.Vb.onsuccess=function(e){return function(){void 0==e.Vb.result&&o.push(e.Tb),a[e.Tb]=e.Vb.result}}(s);return w(d,r.promise(),2)}if(o.length)throw new Re(2,9,9012,"Could not find values for "+o);return d.return(n.map((function(e){return a[e]})))}))}function rp(e){this.g=new Yh(e)}function ip(){this.g=new Map}function ap(e){var t=null;if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,r){e.hasFixedKeySpace()||t||(t={path:{za:n,ja:r},ja:e})}))})),t)return t;throw new Re(2,9,9013,"Could not find a cell that supports add-operations")}function op(e,t,n){if(!(e=e.g.get(t)))throw new Re(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new Re(2,9,9013,"Could not find cell with name "+n);return t}function sp(e,t){up.set(e,t)}Ar("http",jh,1,!0),Ar("https",jh,1,!0),Ar("blob",jh,1,!0),Hh.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},Kh.prototype.destroy=function(){return this.i.destroy()},$h.prototype.abort=function(){var e=this;return P((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return E(t,2),w(t,e.g,4)}if(2!=t.g)return S(t,0);k(t),x(t)}))},$h.prototype.store=function(){return this.h},$h.prototype.promise=function(){return this.g},Yh.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(r=Zh.prototype).destroy=function(){return this.h.destroy()},r.hasFixedKeySpace=function(){return!0},r.addSegments=function(){return ep(this.i)},r.removeSegments=function(e,t){return tp(this,this.i,e,t)},r.getSegments=function(e){var t,n=this;return P((function(r){return 1==r.g?w(r,np(n,n.i,e),2):(t=r.h,r.return(t.map((function(e){return n.ze(e)}))))}))},r.addManifests=function(){return ep(this.g)},r.updateManifest=function(){return Promise.reject(new Re(2,9,9016,"Cannot modify values in "+this.g))},r.updateManifestExpiration=function(e,t){var n=Qh(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,r.put(n,e))},n.promise()},r.removeManifests=function(e,t){return tp(this,this.g,e,t)},r.getManifests=function(e){var t,n=this;return P((function(r){return 1==r.g?w(r,np(n,n.g,e),2):(t=r.h,r.return(Promise.all(t.map((function(e){return n.bc(e)})))))}))},r.getAllManifests=function(){var e,t,n=this;return P((function(r){return 1==r.g?(e=Jh(n.h,n.g,"readonly"),t=new Map,w(r,Xh(e,(function(e,r){var i;return P((function(a){if(1==a.g)return w(a,n.bc(r),2);i=a.h,t.set(e,i),x(a)}))})),2)):3!=r.g?w(r,e.promise(),3):r.return(t)}))},r.ze=function(e){return e},r.bc=function(e){return Promise.resolve(e)},r.add=function(e,t){var n,r,i,a,o,s,u,c=this;return P((function(d){if(1==d.g){for(n=Qh(c.h,e),r=n.store(),i=[],a={},o=l(t),s=o.next();!s.done;a={Fc:a.Fc},s=o.next())u=s.value,a.Fc=r.add(u),a.Fc.onsuccess=function(e){return function(){i.push(e.Fc.result)}}(a);return w(d,n.promise(),2)}return d.return(i)}))},rp.prototype.destroy=function(){return this.g.destroy()},rp.prototype.getAll=function(){var e,t,n=this;return P((function(r){return 1==r.g?(e=Jh(n.g,"session-ids","readonly"),t=[],w(r,Xh(e,(function(e,n){t.push(n)})),2)):3!=r.g?w(r,e.promise(),3):r.return(t)}))},rp.prototype.add=function(e){for(var t=Qh(this.g,"session-ids"),n=t.store(),r=(e=l(e)).next();!r.done;r=e.next())n.add(r.value);return t.promise()},rp.prototype.remove=function(e){var t,n=this;return P((function(r){return 1==r.g?w(r,Xh(t=Qh(n.g,"session-ids"),(function(t,n,r){e.includes(n.sessionId)&&r.delete()})),2):w(r,t.promise(),0)}))},ip.prototype.destroy=function(){for(var e=[],t=l(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},ip.prototype.init=function(){var e=this;up.forEach((function(t,n){(t=t())&&e.g.set(n,t)}));for(var t=[],n=l(this.g.values()),r=n.next();!r.done;r=n.next())t.push(r.value.init());return Promise.all(t)},B("shaka.offline.StorageMuxer",ip),ip.unregister=function(e){up.delete(e)},ip.register=sp,ip.prototype.destroy=ip.prototype.destroy;var up=new Map;function lp(){Zh.apply(this,arguments)}function cp(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=l(t),r=n.next();!r.done;r=n.next())r.value.variantIds=[];for(r=(n=l(e)).next();!r.done;r=n.next())r.value.variantIds=[];if(n=0,e.length&&!t.length){var i=n++,a=l(e);for(r=a.next();!r.done;r=a.next())r.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,r=(a=l(t)).next();!r.done;r=a.next())r.value.variantIds.push(i);if(e.length&&t.length)for(r=(t=l(t)).next();!r.done;r=t.next())for(r=r.value,a=(i=l(e)).next();!a.done;a=i.next()){a=a.value;var o=n++;r.variantIds.push(o),a.variantIds.push(o)}}}(e);for(var n=l(e.streams),r=n.next();!r.done;r=n.next());return e.streams.map((function(n){return function(e,t,n){var r=e.initSegmentUri?dp(e.initSegmentUri):null,i=t+e.presentationTimeOffset,a=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:r,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=dp(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:r,appendWindowStart:t,appendWindowEnd:a,timestampOffset:i,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)}))}function dp(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new Re(2,9,9004,"Could not parse uri "+e)}function fp(){Zh.apply(this,arguments)}function hp(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(r){return{startTime:t+r.startTime,endTime:t+r.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:r.dataKey,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function pp(){Zh.apply(this,arguments)}function gp(){this.m=this.j=this.i=this.h=this.g=this.l=null}function mp(e,t,n,r){this.g=e,this.i=t,this.h=n,this.l=r,this.j=["offline:",e,"/",t,"/",n,"/",r].join("")}function vp(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var r=e[3];return r&&null!=t?new mp(t,n,r,Number(e[4])):null}function yp(e,t){this.h=e,this.g=t}function bp(e,t){var n=new ns(null,0);n.Aa(t.duration);var r=t.streams.filter((function(e){return"audio"==e.type})),i=t.streams.filter((function(e){return"video"==e.type}));r=function(e,t,n,r){for(var i=new Set,a=l(t),o=a.next();!o.done;o=a.next()){var s=l(o.value.variantIds);for(o=s.next();!o.done;o=s.next())i.add(o.value)}for(a=l(n),o=a.next();!o.done;o=a.next())for(s=l(o.value.variantIds),o=s.next();!o.done;o=s.next())i.add(o.value);for(a=new Map,i=l(i),o=i.next();!o.done;o=i.next())o=o.value,a.set(o,{id:o,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=l(t),i=t.next();!i.done;i=t.next())for(i=i.value,o=wp(e,i,r),s=l(i.variantIds),i=s.next();!i.done;i=s.next())(i=a.get(i.value)).language=o.language,i.primary=i.primary||o.primary,i.audio=o;for(n=l(n),t=n.next();!t.done;t=n.next())for(i=t.value,t=wp(e,i,r),o=l(i.variantIds),i=o.next();!i.done;i=o.next())(i=a.get(i.value)).primary=i.primary||t.primary,i.video=t;return a}(e,r,i,n),i=t.streams.filter((function(e){return e.type==et})).map((function(t){return wp(e,t,n)}));var a=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return wp(e,t,n)})),o=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=l(r.values()),u=s.next();!u.done;u=s.next())(u=u.value).audio&&u.audio.encrypted&&(u.audio.drmInfos=o),u.video&&u.video.encrypted&&(u.video.drmInfos=o);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(r.values()),textStreams:i,imageStreams:a,sequenceMode:t.sequenceMode||!1}}function wp(e,t,n){var r=t.segments.map((function(t){return function(e,t){var n=new mp("segment",e.h,e.g,t.dataKey);return new mo(t.startTime,t.endTime,(function(){return[n.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new mp("segment",e.h,e.g,t);return new go((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)}));return n.Ib(r),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es(r),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function xp(){this.g=null}function Ep(){}function Tp(e){var t=vp(e);return t&&"manifest"==t.g?e=pr(e={uri:e,Oe:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):e=t&&"segment"==t.g?function(e,t){var n=new ip;return pr(void 0).Y((function(){return n.init()})).Y((function(){return op(n,t.za(),t.ja())})).Y((function(e){return e.getSegments([t.key()])})).Y((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):fr(new Re(2,1,9004,e)),e}function Sp(e,t,n){var r,i,a,o,s,u;return P((function(c){switch(c.g){case 1:r=[];for(var d=[],f=l(n),h=f.next();!h.done;h=f.next()){h=h.value;for(var p=!1,g=l(d),m=g.next();!m.done;m=g.next())if(kp((m=m.value).info,h)){m.sessionIds.push(h.sessionId),p=!0;break}p||d.push({info:h,sessionIds:[h.sessionId]})}i=l(d),a=i.next();case 2:if(a.done){c.A(4);break}return o=a.value,s=function(e,t,n){var r,i;return P((function(a){switch(a.g){case 1:return r=new Si({kb:t,onError:function(){},cd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),E(a,2),r.configure(e),w(a,function(e,t,n,r,i,a){var o=new Map;return(i={audioCapabilities:i,videoCapabilities:a,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:r,serverCertificateUri:"",initData:null,keyIds:null}],o.set(t,i),Di(e,o,[])}(r,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:S(a,3);break;case 2:return k(a),w(a,r.destroy(),5);case 5:case 9:return a.return([]);case 3:return E(a,6),w(a,Ii(r),8);case 8:S(a,7);break;case 6:return k(a),w(a,r.destroy(),9);case 7:return i=[],w(a,Promise.all(n.sessionIds.map((function(e){return P((function(t){return 1==t.g?(E(t,2),w(t,function(e,t){var n,r,i;return P((function(a){return 1==a.g?w(a,Ni(e,t),2):3!=a.g?(n=a.h)?(r=[],(i=e.i.get(n))&&(i.Ja=new rt,r.push(i.Ja)),r.push(n.remove()),w(a,Promise.all(r),3)):a.return():(e.i.delete(n),void x(a))}))}(r,e),4)):2!=t.g?(i.push(e),S(t,0)):(k(t),void x(t))}))}))),10);case 10:return w(a,r.destroy(),11);case 11:return a.return(i)}}))}(e,t,o),w(c,s,5);case 5:u=c.h,r=r.concat(u),a=i.next(),c.A(2);break;case 4:return c.return(r)}}))}function kp(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&ne(e.audioCapabilities,t.audioCapabilities,n)&&ne(e.videoCapabilities,t.videoCapabilities,n)}function Ap(e,t){var n=bp(new yp(e.za(),e.ja()),t),r=t.appMetadata||{};return n=Cp(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r,isIncomplete:t.isIncomplete||!1}}function Cp(e){for(var t=[],n=function(e){return e.filter((function(e){return Pn(e)}))}(e.variants),r=(n=l(n)).next();!r.done;r=n.next())t.push(kn(r.value));for(n=(e=l(e.textStreams)).next();!n.done;n=e.next())t.push(An(n.value));return t}function Ip(){this.g={}}function _p(e,t){var n=t.audio,r=t.video;if(n&&!r&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&r&&(e.g[r.id]=r.bandwidth||t.bandwidth),n&&r){var i=n.bandwidth||393216,a=r.bandwidth||t.bandwidth-i;0>=a&&(a=t.bandwidth),e.g[n.id]=i,e.g[r.id]=a}}function Mp(e,t){e.g[t.id]=t.bandwidth||2048}function Rp(e,t){return null==(e=e.g[t])&&(e=0),e}function Pp(e){var t=this;if(e&&e.constructor!=$u)throw new Re(2,9,9008);this.g=this.h=null,e?(this.h=e.h,this.g=e.jc()):(this.h=Bu(),this.g=new kr),this.i=[],this.j=[];var n=!e;this.l=new Nr((function(){var e,r,i,a,o;return P((function(s){switch(s.g){case 1:return w(s,Promise.all(t.j.map((function(e){return Wh(e)}))),2);case 2:for(e=function(){},r=[],i=l(t.i),a=i.next();!a.done;a=i.next())o=a.value,r.push(o.then(e,e));return w(s,Promise.all(r),3);case 3:if(!n){s.A(4);break}return w(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,x(s)}}))}))}function Dp(){if(st())e:{for(var e=l(up.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function Np(e){var t,n,r;return P((function(i){switch(i.g){case 1:return w(i,(t=new ip).init(),2);case 2:return w(i,ap(t),3);case 3:return n=i.h,r=new mp("manifest",n.path.za,n.path.ja,e),w(i,t.destroy(),4);case 4:return w(i,(new Pp).remove(r.toString()),0)}}))}function Op(e,t,n,r,i,a){var o,s,u,c,d,f,h,p,g,m,v;return P((function(y){switch(y.g){case 1:for(o=!1,E(y,2),s=!0,u=l(n.streams),c=u.next();!c.done;c=u.next())for(d=c.value,f=l(d.segments),h=f.next();!h.done;h=f.next())p=h.value,null!=(g=p.pendingSegmentRefId?r[p.pendingSegmentRefId]:null)&&(p.dataKey=g,p.pendingSegmentRefId=void 0),null!=(g=p.pendingInitSegmentRefId?r[p.pendingInitSegmentRefId]:null)&&(p.initSegmentKey=g,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(s=!1),p.pendingInitSegmentRefId&&(s=!1);return n.size+=i,s&&(n.isIncomplete=!1),w(y,e.updateManifest(t,n),4);case 4:o=!0,a(),S(y,0);break;case 2:return m=k(y),w(y,Np(t),5);case 5:if(o){y.A(6);break}return v=Object.values(r),w(y,e.removeSegments(v,(function(){})),6);case 6:throw m}}))}function Lp(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function jp(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function Up(e,t){for(var n=[],r=l(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&"video"==i.type?n.push({contentType:Ht(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:Ht(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function Fp(e,t,n){return P((function(r){return w(r,function(e,t,n,r){var i,a,o;return P((function(s){return 1==s.g?r.drmInfo?(i=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new Re(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),a=r.sessionIds.map((function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:Up(r,!1),videoCapabilities:Up(r,!0)}})),w(s,Sp(t,e,a),2)):s.return():3!=s.g?(o=s.h,w(s,i.remove(o),3)):w(s,i.add(a.filter((function(e){return!o.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function Bp(e,t,n){function r(){}var i=function(e){for(var t=new Set,n=(e=l(e.streams)).next();!n.done;n=e.next())for(var r=(n=l(n.value.segments)).next();!r.done;r=n.next())null!=(r=r.value).initSegmentKey&&t.add(r.initSegmentKey),t.add(r.dataKey);return Array.from(t)}(n);return Ap(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}function zp(e,t,n,r,i,a){var o={id:r.id,originalId:r.originalId,primary:r.primary,type:r.type,mimeType:r.mimeType,codecs:r.codecs,frameRate:r.frameRate,pixelAspectRatio:r.pixelAspectRatio,hdr:r.hdr,kind:r.kind,language:r.language,label:r.label,width:r.width||null,height:r.height||null,encrypted:r.encrypted,keyIds:r.keyIds,segments:[],variantIds:[],roles:r.roles,forced:r.forced,channelsCount:r.channelsCount,audioSamplingRate:r.audioSamplingRate,spatialAudio:r.spatialAudio,closedCaptions:r.closedCaptions,tilesLayout:r.tilesLayout},s=i.offline.numberOfParallelDownloads,u=0;return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var r=e.segmentIndex.get(t);r;)n(r),r=e.segmentIndex.get(++t)}(r,n.presentationTimeline.Pa(),(function(n){var i=zh(n),l=void 0;if(!a.has(i)){var c=n.endTime-n.startTime;c=Rp(t,r.id)*c,c=qh(e.g,c),a.set(i,new Bh(n,c,u,!1))}n.h&&(l=zh(n.h),a.has(l)||(c=.5*Rp(t,r.id),c=qh(e.g,c),a.set(l,new Bh(n.h,c,u,!0)))),o.segments.push({pendingInitSegmentRefId:l,initSegmentKey:l?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:i,dataKey:0}),u=(u+1)%s})),o}function Vp(e){if(e.l.g)throw new Re(2,9,7001)}function Hp(){if(!Dp())throw new Re(2,9,9e3)}function qp(e,t){return P((function(n){return 1==n.g?(e.i.push(t),T(n),w(n,t,4)):2!=n.g?n.return(n.h):(A(n),te(e.i,t),C(n,0))}))}function Kp(e){for(var t=new Set,n=l(e.textStreams),r=n.next();!r.done;r=n.next())t.add(r.value);for(r=(n=l(e.imageStreams)).next();!r.done;r=n.next())t.add(r.value);for(n=(e=l(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}m(lp,Zh),lp.prototype.updateManifestExpiration=function(e,t){var n,r,i,a=this;return P((function(o){return n=Qh(a.h,a.g),r=n.store(),i=new rt,r.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,r.put(n),i.resolve()):i.reject(new Re(2,9,9012,"Could not find values for "+e))},w(o,Promise.all([n.promise(),i]),0)}))},lp.prototype.bc=function(e){var t,n,r,i,a,o;return P((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime,a=cp(e.periods[n],i),t.push(a);return w(s,Ud(t),2)}return o=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:o,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})}))},lp.prototype.ze=function(e){return{data:e.data}},m(fp,Zh),fp.prototype.bc=function(e){var t,n,r,i,a,o;return P((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime;for(var u=e.periods[n],c=[],d=l(u.streams),f=d.next();!f.done;f=d.next())0!=(f=f.value).variantIds.length&&c.push(hp(f,u.startTime,u.startTime+i));a=c,t.push(a)}return w(s,Ud(t),2)}return o=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:o,sequenceMode:!1})}))},m(pp,Zh),(r=pp.prototype).hasFixedKeySpace=function(){return!1},r.addSegments=function(e){return this.add(this.i,e)},r.addManifests=function(e){return this.add(this.g,e)},r.updateManifest=function(e,t){return function(e,t,n){var r=(e=Qh(e.h,e.g)).store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}(this,e,t)},r.bc=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(r=gp.prototype).init=function(){var t=this,n=new rt,r=!1,i=new ot((function(){r=!0,n.reject(new Re(2,9,9017))}));i.N(5);var a=e.indexedDB.open("shaka_offline_db",5);return a.onsuccess=function(){if(!r){var e=a.result;t.l=e;var o=e.objectStoreNames;o=o.contains("manifest")&&o.contains("segment")?new lp(e,"segment","manifest"):null,t.g=o,o=(o=e.objectStoreNames).contains("manifest-v2")&&o.contains("segment-v2")?new fp(e,"segment-v2","manifest-v2"):null,t.h=o,o=(o=e.objectStoreNames).contains("manifest-v3")&&o.contains("segment-v3")?new fp(e,"segment-v3","manifest-v3"):null,t.i=o,o=(o=e.objectStoreNames).contains("manifest-v5")&&o.contains("segment-v5")?new pp(e,"segment-v5","manifest-v5"):null,t.j=o,e=e.objectStoreNames.contains("session-ids")?new rp(e):null,t.m=e,i.stop(),n.resolve()}},a.onupgradeneeded=function(){for(var e=a.result,t=l(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},a.onerror=function(e){r||(n.reject(new Re(2,9,9001,a.error)),i.stop(),e.preventDefault())},n},r.destroy=function(){var e=this;return P((function(t){switch(t.g){case 1:if(!e.g){t.A(2);break}return w(t,e.g.destroy(),2);case 2:if(!e.h){t.A(4);break}return w(t,e.h.destroy(),4);case 4:if(!e.i){t.A(6);break}return w(t,e.i.destroy(),6);case 6:if(!e.j){t.A(8);break}return w(t,e.j.destroy(),8);case 8:if(!e.m){t.A(10);break}return w(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),x(t)}}))},r.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},r.getEmeSessionCell=function(){return this.m},r.erase=function(){var t=this;return P((function(n){switch(n.g){case 1:if(!t.g){n.A(2);break}return w(n,t.g.destroy(),2);case 2:if(!t.h){n.A(4);break}return w(n,t.h.destroy(),4);case 4:if(!t.i){n.A(6);break}return w(n,t.i.destroy(),6);case 6:if(!t.j){n.A(8);break}return w(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),w(n,function(){var t=new rt,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new Re(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,w(n,t.init(),0)}}))},sp("idb",(function(){return mt("CrKey")||ct()||!e.indexedDB?null:new gp})),mp.prototype.za=function(){return this.i},mp.prototype.ja=function(){return this.h},mp.prototype.key=function(){return this.l},mp.prototype.toString=function(){return this.j},(r=xp.prototype).configure=function(){},r.start=function(e,t){var n,r,i,a,o,s,u=this;return P((function(l){switch(l.g){case 1:if(n=vp(e),u.g=n,null==n||"manifest"!=n.g)throw new Re(2,1,9004,e);return r=new ip,T(l),w(l,r.init(),4);case 4:return w(l,op(r,n.za(),n.ja()),5);case 5:return w(l,l.h.getManifests([n.key()]),6);case 6:return i=l.h,a=i[0],o=new yp(n.za(),n.ja()),s=bp(o,a),t.makeTextStreamsForClosedCaptions(s),l.return(s);case 2:return A(l),w(l,r.destroy(),7);case 7:C(l,0)}}))},r.stop=function(){return Promise.resolve()},r.update=function(){},r.onExpirationUpdated=function(e,t){var n,r,i,a,o,s,u,l=this;return P((function(c){switch(c.g){case 1:return n=l.g,r=new ip,E(c,2,3),w(c,r.init(),5);case 5:return w(c,op(r,n.za(),n.ja()),6);case 6:return w(c,(i=c.h).getManifests([n.key()]),7);case 7:if(a=c.h,o=a[0],s=o.sessionIds.includes(e),u=void 0==o.expiration||o.expiration>t,!s||!u){c.A(3);break}return w(c,i.updateManifestExpiration(n.key(),t),3);case 3:return A(c),w(c,r.destroy(),10);case 10:C(c,0);break;case 2:k(c),c.A(3)}}))},Qi["application/x-offline-manifest"]=function(){return new xp},B("shaka.offline.OfflineScheme",Ep),Ep.plugin=Tp,Ar("offline",Tp),(r=Pp.prototype).destroy=function(){return this.l.destroy()},r.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=Nu(e,t)),zu(this.h,e)},r.getConfiguration=function(){var e=Bu();return zu(e,this.h,Bu()),e},r.jc=function(){return this.g},r.store=function(e,t,n){var r=this,i=this.getConfiguration(),a=new Kh(this.g);return this.j.push(a),t=function(e,t,n,r,i,a){var o,s,u,c,d,f,h,p,g,m,v,y,b;return P((function(T){switch(T.g){case 1:return Hp(),s=o=null,u=new ip,f=d=c=null,E(T,2,3),w(T,r(),5);case 5:return o=T.h,w(T,function(e,t,n,r){var i,a,o,s,u;return P((function(l){if(1==l.g)return i=null,a=e.g,o={networkingEngine:a,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},n.configure(r.manifest),Vp(e),w(l,n.start(t,o),2);if(3!=l.g)return s=l.h,Vp(e),u=Kp(s),w(l,Promise.all(Fr(u,(function(e){return e.createSegmentIndex()}))),3);if(Vp(e),i)throw i;return l.return(s)}))}(e,t,o,i),6);case 6:if(h=T.h,Vp(e),!(!h.presentationTimeline.U()&&!h.presentationTimeline.jb()))throw new Re(2,9,9005,t);return w(T,function(e,t,n,r){var i;return P((function(a){switch(a.g){case 1:return(i=new Si({kb:e.g,onError:n,cd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(r.drm),w(a,function(e,t,n){return e.da=!0,e.B=[],e.L=n,Ai(e,t)}(i,t.variants,r.offline.usePersistentLicense),2);case 2:return w(a,Ii(i),3);case 3:return w(a,_i(i),4);case 4:return a.return(i)}}))}(e,h,(function(e){f=f||e}),i),7);case 7:if(s=T.h,Vp(e),f)throw f;return w(T,function(e,t){var n,r,i,a,o,s,u,c,d,f,h,p,g,m,v,y,b,T,A,C,I,_,M,R,D,N,O,L;return P((function(P){switch(P.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return gn(e,t,n)}))}(e,t.restrictions,n),w(P,yn(e,t.offline.usePersistentLicense),2);case 2:for(r=[],i=t.preferredAudioChannelCount,a=t.preferredDecodingAttributes,o=t.preferredVideoCodecs,s=t.preferredAudioCodecs,fn(e,o,s,i,a),u=l(e.variants),c=u.next();!c.done;c=u.next())d=c.value,r.push(kn(d));for(f=l(e.textStreams),h=f.next();!h.done;h=f.next())p=h.value,r.push(An(p));for(g=l(e.imageStreams),m=g.next();!m.done;m=g.next())v=m.value,r.push(Cn(v));return w(P,t.offline.trackSelectionCallback(r),3);case 3:for(y=P.h,b=e.presentationTimeline.getDuration(),T=0,A=l(y),C=A.next();!C.done;C=A.next())I=C.value,_=I.bandwidth*b/8,T+=_;return E(P,4),w(P,t.offline.downloadSizeCallback(T),6);case 6:if(!P.h)throw new Re(2,9,9014);S(P,5);break;case 4:if((M=k(P))instanceof Re)throw M;throw new Re(2,9,9015);case 5:for(R=new Set,D=new Set,N=new Set,O=l(y),C=O.next();!C.done;C=O.next())"variant"==(L=C.value).type&&R.add(L.id),"text"==L.type&&D.add(L.id),"image"==L.type&&N.add(L.id);e.variants=e.variants.filter((function(e){return R.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return D.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return N.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=l(t),r=n.next();!r.done;r=n.next())for(var i=(r=l(t)).next();!i.done;i=r.next());for(t=l(e),n=t.next();!n.done;n=t.next())for(n=l(e),r=n.next();!r.done;r=n.next());}(e),x(P)}}))}(h,i),8);case 8:return w(T,u.init(),9);case 9:return Vp(e),w(T,ap(u),10);case 10:return c=T.h,Vp(e),p=function(e,t,n,r,i,a){var o=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=Cp(t),appMetadata:n,isIncomplete:!1}}(n,t,r),s=i.offline.progressCallback;!function(e,t,n){e.m=t,e.l=n}(a,(function(e,t){o.size=t,s(o,e)}),(function(t,n){u&&i.offline.usePersistentLicense&&c==n&&Mi(e,"cenc",t)}));var u=Lp(t)&&!jp(t),c=null;u&&(c=Wp.get(e.g.keySystem));for(var d=new Ip,f=l(t.textStreams),h=f.next();!h.done;h=f.next())d.g[h.value.id]=52;for(f=l(t.imageStreams),h=f.next();!h.done;h=f.next())Mp(d,h.value);for(h=l(t.variants),f=h.next();!f.done;f=h.next())_p(d,f.value);return d=function(e,t,n,r){for(var i=new Map,a=Kp(n),o=new Map,s=(a=l(a)).next();!s.done;s=a.next()){var u=zp(e,t,n,s=s.value,r,i);o.set(s.id,u)}for(e=l(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&o.get(t.audio.id).variantIds.push(t.id),t.video&&o.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(o.values()),pe:Array.from(i.values())}}(a,d,t,i),a=d.streams,d=d.pe,h=e.g,f=i.offline.usePersistentLicense,h&&f&&(h.initData=[]),{ag:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.ic(),streams:a,sessionIds:f?Pi(e):[],drmInfo:h,appMetadata:r,isIncomplete:!0,sequenceMode:t.sequenceMode},pe:d}}(s,h,t,n,i,a),g=p.ag,m=p.pe,w(T,c.ja.addManifests([g]),11);case 11:if(v=T.h,Vp(e),d=v[0],Vp(e),f)throw f;return w(T,function(e,t,n,r,i,a,o,s,u){var c,d,f,h,p,g,m,v,y,b;return P((function(T){switch(T.g){case 1:if(c={},d=0,f=function(t,f){var h,p,g,m,v,y,b;return P((function(E){if(1==E.g){for(h={},p=l(t),g=p.next();!g.done;h={cb:h.cb},g=p.next())h.cb=g.value,m=Vh(h.cb,a),v=h.cb.i,y=h.cb.h,b=function(t){return function(n){var r,i,a;return P((function(s){if(1==s.g)return w(s,o.addSegments([{data:n}]),2);r=s.h,Vp(e),i=t.cb.g,a=zh(i),c[a]=r[0],d+=n.byteLength,x(s)}))}}(h),Gh(i,h.cb.groupId,m,v,y,b);return w(E,function(e){return P((function(t){return 1==t.g?w(t,Promise.all(e.j.values()),2):t.return(e.g.h)}))}(i),2)}return f?(Vp(e),function(e,t,n,r){if(t.expiration=n.ic(),n=Pi(n),t.sessionIds=r.offline.usePersistentLicense?n:[],Lp(e)&&r.offline.usePersistentLicense&&!n.length)throw new Re(2,9,9007)}(s,r,u,a),w(E,o.updateManifest(n,r),0)):E.A(0)}))},h=!1,E(T,2),!Lp(s)||!h||jp(s)){T.A(4);break}return w(T,f(t.filter((function(e){return e.h})),!0),5);case 5:return Vp(e),t=t.filter((function(e){return!e.h})),p=c,g=d,c={},d=0,w(T,Op(o,n,r,p,g,(function(){return Vp(e)})),6);case 6:Vp(e);case 4:if(h){T.A(7);break}return w(T,f(t,!1),8);case 8:return Vp(e),m=c,v=d,c={},d=0,w(T,Op(o,n,r,m,v,(function(){return Vp(e)})),9);case 9:Vp(e);case 7:S(T,0);break;case 2:return y=k(T),b=Object.values(c),w(T,o.removeSegments(b,(function(){})),10);case 10:throw y}}))}(e,m,d,g,a,i,c.ja,h,s),12);case 12:return Vp(e),y=new mp("manifest",c.path.za,c.path.ja,d),T.return(Ap(y,g));case 3:return A(T),w(T,u.destroy(),13);case 13:if(!o){T.A(14);break}return w(T,o.stop(),14);case 14:if(!s){T.A(16);break}return w(T,s.destroy(),16);case 16:C(T,0);break;case 2:if(b=k(T),null==d){T.A(18);break}return w(T,Np(d),18);case 18:throw f||b}}))}(this,e,t||{},(function(){var t;return P((function(a){return 1==a.g?w(a,$i(e,r.g,i.manifest.retryParameters,n||null),2):(t=a.h,a.return(t()))}))}),i,a),(t=new dr(t,(function(){return Wh(a)}))).finally((function(){te(r.j,a)})),function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){te(e.i,n)}))}(this,t)},r.remove=function(e){return qp(this,function(e,t){var n,r,i,a,o,s;return P((function(u){switch(u.g){case 1:if(Hp(),null==(n=vp(t))||"manifest"!=n.g)throw new Re(2,9,9004,t);return r=n,i=new ip,T(u),w(u,i.init(),4);case 4:return w(u,op(i,r.za(),r.ja()),5);case 5:return w(u,(a=u.h).getManifests([r.key()]),6);case 6:return o=u.h,s=o[0],w(u,Promise.all([Fp(e,s,i),Bp(a,r,s)]),2);case 2:return A(u),w(u,i.destroy(),8);case 8:C(u,0)}}))}(this,e))},r.pg=function(){return qp(this,function(e){var t,n,r,i,a,o,s,u,c,d;return P((function(f){switch(f.g){case 1:return Hp(),t=e.g,n=e.h.drm,r=new ip,i=!1,T(f),w(f,r.init(),4);case 4:a=[],function(e,t){e.g.forEach((function(e){t(e.getEmeSessionCell())}))}(r,(function(e){return a.push(e)})),o=l(a),s=o.next();case 5:if(s.done){f.A(2);break}return w(f,(u=s.value).getAll(),8);case 8:return c=f.h,w(f,Sp(n,t,c),9);case 9:return d=f.h,w(f,u.remove(d),10);case 10:d.length!=c.length&&(i=!0),s=o.next(),f.A(5);break;case 2:return A(f),w(f,r.destroy(),11);case 11:C(f,3);break;case 3:return f.return(!i)}}))}(this))},r.list=function(){return qp(this,P((function(r){switch(r.g){case 1:return Hp(),e=[],t=new ip,T(r),w(r,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEach((function(e,r){t({za:n,ja:r},e)}))}))}(t,(function(t,r){n=n.then((function(){return P((function(n){if(1==n.g)return w(n,r.getAllManifests(),2);n.h.forEach((function(n,r){n=Ap(new mp("manifest",t.za,t.ja,r),n),e.push(n)})),x(n)}))}))})),w(r,n,2);case 2:return A(r),w(r,t.destroy(),6);case 6:C(r,3);break;case 3:return r.return(e)}})));var e,t,n},B("shaka.offline.Storage",Pp),Pp.deleteAll=function(){var e;return P((function(t){return 1==t.g?(e=new ip,T(t),w(t,function(e){var t,n;return P((function(r){return 1==r.g?(t=Array.from(e.g.values()),(n=0<t.length)||up.forEach((function(e){(e=e())&&t.push(e)})),w(r,Promise.all(t.map((function(e){return e.erase()}))),2)):n?r.A(0):w(r,Promise.all(t.map((function(e){return e.destroy()}))),0)}))}(e),2)):5!=t.g?(A(t),w(t,e.destroy(),5)):C(t,0)}))},Pp.prototype.list=Pp.prototype.list,Pp.prototype.removeEmeSessions=Pp.prototype.pg,Pp.prototype.remove=Pp.prototype.remove,Pp.prototype.store=Pp.prototype.store,Pp.prototype.getNetworkingEngine=Pp.prototype.jc,Pp.prototype.getConfiguration=Pp.prototype.getConfiguration,Pp.prototype.configure=Pp.prototype.configure,Pp.prototype.destroy=Pp.prototype.destroy,Pp.support=Dp;var Wp=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function Gp(){}function $p(e,t){for(e={priority:t||0,mf:e},t=0;t<Xp.length;t++)if(Xp[t].priority<e.priority)return void Xp.splice(t,0,e);Xp.push(e)}Yl.offline=Dp,B("shaka.polyfill",Gp),Gp.register=$p,Gp.installAll=function(){for(var e=l(Xp),t=e.next();!t.done;t=e.next()){t=t.value;try{t.mf()}catch(e){W("Error installing polyfill!",e)}}};var Xp=[];function Yp(){this.g=new Jp}function Qp(){e.AbortController||(e.AbortController=Yp,e.AbortSignal=Jp)}function Jp(){wr.call(this),this.h=!1,this.g=void 0,this.onabort=null}function Zp(){}function eg(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=l(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())tg(t.value)}function tg(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||void 0==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function ng(){}function rg(){Vv()}function ig(){}function ag(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",og),document.addEventListener("webkitfullscreenerror",og),document.addEventListener("mozfullscreenchange",og),document.addEventListener("mozfullscreenerror",og),document.addEventListener("MSFullscreenChange",og),document.addEventListener("MSFullscreenError",og)}}function og(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function sg(){}function ug(){var e=!0;(ht()||mt("PlayStation 5")||pt()||mt("Web0S")||dt()||mt("CrKey")||mt("PC=EOS")||mt("Hisense")||mt("VIDAA"))&&(e=!1),e&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),mg=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=lg)}function lg(t){var n,r,i,a,o,s,u,l,c,d,f,h,p;return P((function(g){switch(g.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},!t)return g.return(n);if(r=t.video,i=t.audio,"media-source"==t.type){if(!st())return g.return(n);if(r){if(mt("CrKey"))if(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var m=r.contentType;r.width&&r.height&&(m+="; width="+r.width+"; height="+r.height),r.framerate&&(m+="; framerate="+r.framerate),"pq"===r.transferFunction&&(m+="; eotf=smpte2084"),m=cast.__platform__.canDisplayType(m)}else m=J(r.contentType);else m=J(r.contentType);if(!m)return g.return(n)}if(i&&(a=i.contentType,!J(a)))return g.return(n)}else{if("file"!=t.type)return g.return(n);if(r&&(o=r.contentType,!ut(o))||i&&(s=i.contentType,!ut(s)))return g.return(n)}return t.keySystemConfiguration?(u=t.keySystemConfiguration,l=[],c=[],u.audio&&(d={robustness:u.audio.robustness||"",contentType:t.audio.contentType},l.push(d)),u.video&&(f={robustness:u.video.robustness||"",contentType:t.video.contentType},c.push(f)),h={initDataTypes:[u.initDataType],distinctiveIdentifier:u.distinctiveIdentifier,persistentState:u.persistentState,sessionTypes:u.sessionTypes},l.length&&(h.audioCapabilities=l),c.length&&(h.videoCapabilities=c),E(g,3),w(g,navigator.requestMediaKeySystemAccess(u.keySystem,[h]),5)):(n.supported=!0,g.return(Promise.resolve(n)));case 5:p=g.h,S(g,4);break;case 3:k(g);case 4:p&&(n.supported=!0,n.keySystemAccess=p);case 2:return g.return(n)}}))}Yp.prototype.abort=function(e){var t=this.g;t.h||(t.h=!0,t.g=e,void 0===t.g&&(t.g=new DOMException("signal is aborted without reason","AbortError")),e=new vr("abort"),t.onabort&&t.onabort(e),t.dispatchEvent(e))},o.Object.defineProperties(Yp.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),Gp.AbortController=Yp,Yp.install=Qp,m(Jp,wr),o.Object.defineProperties(Jp.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),$p(Qp),Gp.Aria=Zp,Zp.install=eg,$p(eg),Gp.EncryptionScheme=ng,ng.install=rg,$p(rg,-2),Gp.Fullscreen=ig,ig.install=ag,$p(ag),Gp.MediaCapabilities=sg,sg.install=ug;var cg,dg,fg,hg,pg,gg,mg=null;function vg(){}function yg(){var t=gt();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?12>=t?(bg(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):15>=t&&bg():lt()?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(";")[0].split("/")[1]&&e(t)}}():(mt("Tizen 2")||mt("Tizen 3")||mt("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=Gt(t)[0]&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;mt("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),r=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>r)return e(t);var i=n[r].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=i.findIndex((function(e){return e.startsWith("vp09")}));return 0<=a&&(i[a]="vp9",n[r]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}()}function bg(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,D.apply(0,arguments));return t.abort=function(){},t}}function wg(){}function xg(){screen.orientation||void 0!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Eg;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new vr("change");n.dispatchEvent(e)}))}()}function Eg(){wr.call(this),this.type="",this.angle=0}function Tg(){}function Sg(e,t){try{var n=new Cg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function kg(e){var t=this.mediaKeys;return t&&t!=e&&_g(t,null),delete this.mediaKeys,(this.mediaKeys=e)?_g(e,this):Promise.resolve()}function Ag(e){if(_e(e=Ie(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=St(e=Et(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=Ce(e),this.dispatchEvent(t)}function Cg(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=l(t)).next();!t.done;t=e.next()){var n=t.value;if("required"==n.persistentState)t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var r=!1,i=!1;if(n.audioCapabilities)for(var a=l(n.audioCapabilities),o=a.next();!o.done;o=a.next())(o=o.value).contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,o.contentType.split(";")[0])&&(t.audioCapabilities.push(o),i=!0));if(n.videoCapabilities)for(o=(n=l(n.videoCapabilities)).next();!o.done;o=n.next())(a=o.value).contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.videoCapabilities.push(a),i=!0));r||(i=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=i?t:null}if(t)return void(this.g=t)}throw(e=Error("Unsupported keySystem")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Ig(e){this.h=new WebKitMediaKeys(e),this.g=new Lr}function _g(e,t){if(e.g.nb(),!t)return Promise.resolve();e.g.C(t,"webkitneedkey",Ag);try{return us(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Mg(e){wr.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Lr,this.sessionId="",this.expiration=NaN,this.closed=new rt,this.keyStatuses=new Pg}function Rg(e,t){var n=e.keyStatuses;n.size=void 0==t?0:1,n.g=t,t=new vr("keystatuseschange"),e.dispatchEvent(t)}function Pg(){this.size=0,this.g=void 0}function Dg(){}function Ng(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Og,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Lg,e.MediaKeys=jg,e.MediaKeySystemAccess=Ug,e.shakaMediaKeysPolyfill=!0)}function Og(){return Promise.reject(Error("The key system specified is not supported."))}function Lg(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function jg(){throw new TypeError("Illegal constructor.")}function Ug(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Fg(){}function Bg(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Zg="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Vg,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Hg,e.MediaKeys=Kg,e.MediaKeySystemAccess=qg,e.shakaMediaKeysPolyfill=!0}}function zg(e){return Zg?Zg+e.charAt(0).toUpperCase()+e.slice(1):e}function Vg(e,t){try{var n=new qg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Hg(e){var t=this.mediaKeys;return t&&t!=e&&Wg(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Wg(e,this),Promise.resolve()}function qg(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var a=(t=l(t)).next();!a.done;a=t.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},s=!1;if(a.audioCapabilities)for(var u=l(a.audioCapabilities),c=u.next();!c.done;c=u.next())(c=c.value).contentType&&(s=!0,i.canPlayType(c.contentType.split(";")[0],this.g)&&(o.audioCapabilities.push(c),r=!0));if(a.videoCapabilities)for(c=(u=l(a.videoCapabilities)).next();!c.done;c=u.next())(c=c.value).contentType&&(s=!0,i.canPlayType(c.contentType,this.g)&&(o.videoCapabilities.push(c),r=!0));if(s||(r=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(o.persistentState="required",o.sessionTypes=["persistent-license"]):r=!1),r)return void(this.h=o)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Kg(e){this.l=e,this.h=null,this.g=new Lr,this.i=[],this.j=new Map}function Wg(e,t){e.h=t,e.g.nb();var n=Zg;t&&(e.g.C(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=Ce(t.initData),e.h.dispatchEvent(n)})),e.g.C(t,n+"keymessage",(function(t){var n=Gg(e,t.sessionId);n&&(t=new vr("message",t=(new Map).set("messageType",void 0==n.keyStatuses.Eb()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.C(t,n+"keyadded",(function(t){(t=Gg(e,t.sessionId))&&(Qg(t,"usable"),t.g&&t.g.resolve(),t.g=null)})),e.g.C(t,n+"keyerror",(function(t){var n=Gg(e,t.sessionId);n&&n.handleError(t)})))}function Gg(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function $g(e,t,n){wr.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new rt,this.keyStatuses=new Jg}function Xg(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var r=Ie(St("LOAD_SESSION|"+n));else{var i=St("PERSISTENT|");r=Dt(i,t)}else r=Ie(t)}catch(e){return Promise.reject(e)}e.h=new rt;var a=zg("generateKeyRequest");try{e.j[a](e.i,r)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new ot((function(){try{e.j[a](e.i,r)}catch(t){e.h.reject(t),e.h=null}})).N(.01)}return e.h}function Yg(e,t,n){if(e.g)e.g.then((function(){return Yg(e,t,n)})).catch((function(){return Yg(e,t,n)}));else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var r=xt(n),i=JSON.parse(r);"oct"!=i.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),r=Mt(i.keys[0].k),i=Mt(i.keys[0].kid)}else r=Ie(n),i=null;var a=zg("addKey");try{e.j[a](e.i,r,i,e.sessionId)}catch(t){e.g.reject(t),e.g=null}}}function Qg(e,t){var n=e.keyStatuses;n.size=void 0==t?0:1,n.g=t,t=new vr("keystatuseschange"),e.dispatchEvent(t)}function Jg(){this.size=0,this.g=void 0}sg.originalMcap=mg,$p(ug,-1),Gp.MediaSource=vg,vg.install=yg,$p(yg),Gp.Orientation=wg,wg.install=xg,m(Eg,wr),Eg.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Eg.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},$p(xg),Gp.PatchedMediaKeysApple=Tg,Tg.uninstall=function(){cg&&(cg=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",dg),HTMLMediaElement.prototype.setMediaKeys=fg,e.MediaKeys=hg,e.MediaKeySystemAccess=pg,navigator.requestMediaKeySystemAccess=gg,dg=gg=fg=pg=hg=null,e.shakaMediaKeysPolyfill=!1)},Tg.install=function(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&(void 0!==t&&t&&(cg=!0,dg=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),fg=HTMLMediaElement.prototype.setMediaKeys,hg=e.MediaKeys,pg=e.MediaKeySystemAccess,gg=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=kg,e.MediaKeys=Ig,e.MediaKeySystemAccess=Cg,navigator.requestMediaKeySystemAccess=Sg,e.shakaMediaKeysPolyfill=!0)},Cg.prototype.createMediaKeys=function(){var e=new Ig(this.keySystem);return Promise.resolve(e)},Cg.prototype.getConfiguration=function(){return this.g},Ig.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Mg(this.h,e)},Ig.prototype.setServerCertificate=function(){return Promise.resolve(!1)},m(Mg,wr),(r=Mg.prototype).generateRequest=function(e,t){var n=this;this.h=new rt;try{var r=this.l.createSession("video/mp4",Ie(t));this.i=r,this.sessionId=r.sessionId||"",this.j.C(this.i,"webkitkeymessage",(function(e){n.h&&(n.h.resolve(),n.h=null),e=new vr("message",e=(new Map).set("messageType",void 0==n.keyStatuses.Eb()?"license-request":"license-renewal").set("message",Ce(e.message))),n.dispatchEvent(e)})),this.j.C(r,"webkitkeyadded",(function(){n.g&&(Rg(n,"usable"),n.g.resolve(),n.g=null)})),this.j.C(r,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.i.error,null!=n.h)n.h.reject(e),n.h=null;else if(null!=n.g)n.g.reject(e),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Rg(n,"output-not-allowed");break;default:Rg(n,"internal-error")}})),Rg(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.g=new rt;try{this.i.update(Ie(e))}catch(e){this.g.reject(e)}return this.g},r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.nb()}catch(e){this.closed.reject(e)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=Pg.prototype).Eb=function(){return this.g},r.forEach=function(e){this.g&&e(this.g,Wi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=Wi.value();return!(!this.g||!ke(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},Gp.PatchedMediaKeysNop=Dg,Dg.install=Ng,jg.prototype.createSession=function(){},jg.prototype.setServerCertificate=function(){},Ug.prototype.getConfiguration=function(){},Ug.prototype.createMediaKeys=function(){},$p(Ng,-10),Gp.PatchedMediaKeysWebkit=Fg,Fg.install=Bg,qg.prototype.createMediaKeys=function(){var e=new Kg(this.g);return Promise.resolve(e)},qg.prototype.getConfiguration=function(){return this.h},Kg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new $g(t,this.l,e),this.i.push(e),e},Kg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},m($g,wr),(r=$g.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Qg(this,"output-restricted"):Qg(this,1==t?"expired":"internal-error"))},r.generateRequest=function(e,t){return Xg(this,t,null)},r.load=function(e){return"persistent-license"==this.l?Xg(this,null,e):Promise.reject(Error("Not a persistent session."))},r.update=function(e){var t=new rt;return Yg(this,t,e),t},r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=zg("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(r=Jg.prototype).Eb=function(){return this.g},r.forEach=function(e){this.g&&e(this.g,Wi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=Wi.value();return!(!this.g||!ke(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var Zg="";function em(){}function tm(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=rm,Object.defineProperty(t,"disablePictureInPicture",{get:am,set:om,enumerable:!0,configurable:!0}),document.exitPictureInPicture=im,document.addEventListener("webkitpresentationmodechanged",nm,!0))}}function nm(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function rm(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function im(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function am(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function om(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function sm(){}function um(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=lm))}function lm(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function cm(){}function dm(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=fm)}function fm(){return new Promise((function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){e({usage:t,quota:n})}),t)}))}function hm(){}function pm(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:gm})}function gm(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function mm(){}function vm(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function ym(){}function bm(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||ft())&&(t.getVideoPlaybackQuality=wm)}}function wm(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function xm(){}function Em(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Tm;else if(6==n)t=Sm;else{try{var r=!!Tm(1,2,"")}catch(e){r=!1}r&&(t=Tm)}t&&(e.VTTCue=function(e,n,r){return t(e,n,r)})}}function Tm(t,n,r){return new e.TextTrackCue(t,n,r)}function Sm(t,n,r){return new e.TextTrackCue(t+"-"+n+"-"+r,t,n,r)}function km(){}$p(Bg),Gp.PiPWebkit=em,em.install=tm,$p(tm),Gp.RandomUUID=sm,sm.install=um,$p(um),Gp.StorageEstimate=cm,cm.install=dm,$p(dm),Gp.Symbol=hm,hm.install=pm,$p(pm),Gp.VideoPlayPromise=mm,mm.install=vm,$p(vm),Gp.VideoPlaybackQuality=ym,ym.install=bm,$p(bm),Gp.VTTCue=xm,xm.install=Em,$p(Em),km.prototype.parseInit=function(){},km.prototype.setSequenceMode=function(){},km.prototype.parseMedia=function(e,t){for(var n=null,r=[],i=(e=l(e=xt(e).split(/\r?\n/))).next();!i.done;i=e.next())if((i=i.value)&&!/^\s+$/.test(i)&&(i=Am.exec(i))){var a=Cm.exec(i[1]);i=new ie(a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),t.segmentEnd?t.segmentEnd:a+2,i[2]),n&&(n.endTime=a,r.push(n)),n=i}return n&&r.push(n),r},B("shaka.text.LrcTextParser",km),km.prototype.parseMedia=km.prototype.parseMedia,km.prototype.setSequenceMode=km.prototype.setSequenceMode,km.prototype.parseInit=km.prototype.parseInit;var Am=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Cm=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function Im(){}function _m(e,t,n,r,i,a,o,s,u,c,d){var f=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!d)return null;var h=document.createElement("span");h.textContent=e.textContent}else h=e;for(var p=null,g=l(tv),m=g.next();!m.done&&!(p=Om(h,"backgroundImage",r,"#",m.value)[0]);m=g.next());if(g=d,("p"==e.nodeName||p)&&(d=!0),s="default"==(h.getAttribute("xml:space")||(s?"default":"preserve")),e=[],!(m=Array.from(h.childNodes).every((function(e){return e.nodeType==Node.TEXT_NODE}))))for(var v=l(h.childNodes),y=v.next();!y.done;y=v.next())(y=_m(y.value,t,n,r,i,a,o,s,u,h,d))&&e.push(y);r=null!=c,v=/\S/.test(h.textContent);var b=h.hasAttribute("begin")||h.hasAttribute("end")||h.hasAttribute("dur");if(!(b||v||"br"==h.tagName||0!=e.length||r&&!s))return null;for(v=(y=jm(h,n)).start,y=y.end;f&&f.nodeType==Node.ELEMENT_NODE&&"tt"!=f.tagName;)v=(y=Lm(f,n,v,y)).start,y=y.end,f=f.parentNode;if(null==v&&(v=0),v+=t.periodStart,y=null==y?1/0:y+t.periodStart,v=Math.max(v,t.segmentStart),y=Math.min(y,t.segmentEnd),!b&&0<e.length)for(v=1/0,y=0,n=(t=l(e)).next();!n.done;n=t.next())n=n.value,v=Math.min(v,n.startTime),y=Math.max(y,n.endTime);if("br"==h.tagName)return(i=new ie(v,y,"")).lineBreak=!0,i;if(t="",m&&(t=h.textContent,s&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new ie(v,y,t)).nestedCues=e,d||(t.isContainer=!0),u&&(t.cellResolution=u),u=Om(h,"region",a,"")[0],h.hasAttribute("region")&&u&&u.getAttribute("xml:id")){var w=u.getAttribute("xml:id");t.region=o.filter((function(e){return e.id==w}))[0]}return o=u,c&&r&&!h.getAttribute("region")&&!h.getAttribute("style")&&(o=Om(c,"region",a,"")[0]),function(e,t,n,r,i,a,o){"rtl"==Rm(t,n,i,"direction",a=a||o)&&(e.direction="rtl"),"tb"==(o=Rm(t,n,i,"writingMode",a))||"tblr"==o?e.writingMode="vertical-lr":"tbrl"==o?e.writingMode="vertical-rl":"rltb"==o||"rl"==o?e.direction="rtl":o&&(e.direction=de),(o=Rm(t,n,i,"textAlign",!0))?(e.positionAlign=Jm[o],e.lineAlign=Qm[o],e.textAlign=ue[o.toUpperCase()]):e.textAlign=se,(o=Rm(t,n,i,"displayAlign",!0))&&(e.displayAlign=ce[o.toUpperCase()]);(o=Rm(t,n,i,"color",a))&&(e.color=o);(o=Rm(t,n,i,"backgroundColor",a))&&(e.backgroundColor=o);(o=Rm(t,n,i,"border",a))&&(e.border=o);if(o=Rm(t,n,i,"fontFamily",a))switch(o){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalSerif":e.fontFamily="serif";break;default:e.fontFamily=o}(o=Rm(t,n,i,"fontWeight",a))&&"bold"==o&&(e.fontWeight=700),o=Rm(t,n,i,"wrapOption",a),e.wrapLine=!o||"noWrap"!=o,(o=Rm(t,n,i,"lineHeight",a))&&o.match(Hm)&&(e.lineHeight=o),(o=Rm(t,n,i,"fontSize",a))&&(o.match(Hm)||o.match(Vm))&&(e.fontSize=o),(o=Rm(t,n,i,"fontStyle",a))&&(e.fontStyle=we[o.toUpperCase()]);if(r){o=r.getAttribute("imageType")||r.getAttribute("imagetype");var s=r.getAttribute("encoding");r=r.textContent.trim(),"PNG"==o&&"Base64"==s&&r&&(e.backgroundImage="data:image/png;base64,"+r)}(r=Rm(t,n,i,"textOutline",a))&&((r=r.split(" "))[0].match(Hm)?e.textStrokeColor=e.color:(e.textStrokeColor=r[0],r.shift()),r[0]&&r[0].match(Hm)?e.textStrokeWidth=r[0]:e.textStrokeColor="");(r=Rm(t,n,i,"letterSpacing",a))&&r.match(Hm)&&(e.letterSpacing=r),(r=Rm(t,n,i,"linePadding",a))&&r.match(Hm)&&(e.linePadding=r),(a=Rm(t,n,i,"opacity",a))&&(e.opacity=parseFloat(a));(n=Pm(n,i,"textDecoration"))&&Mm(e,n),(t=Dm(t,i,"textDecoration"))&&Mm(e,t)}(t,h,o,p,i,g,0==e.length),t}function Mm(e,t){for(var n=(t=l(t.split(" "))).next();!n.done;n=t.next())switch(n.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&te(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&te(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&te(e.textDecoration,"overline")}}function Rm(e,t,n,r,i){return i=void 0===i||i,(e=Dm(e,n,r))?e:i?Pm(t,n,r):null}function Pm(e,t,n){if(!e)return null;var r=li(e,ev,n);return r||Nm(e,t,n)}function Dm(e,t,n){var r=li(e,ev,n);return r||Nm(e,t,n)}function Nm(e,t,n){e=Om(e,"style",t,"");for(var r=null,i=0;i<e.length;i++){var a=ui(e[i],"urn:ebu:tt:style",n);a||(a=li(e[i],ev,n)),a||(a=Dm(e[i],t,n)),a&&(r=a)}return r}function Om(e,t,n,r,i){var a=[];if(!e||1>n.length)return a;var o=e;for(e=null;o&&!(e=i?ui(o,i,t):o.getAttribute(t))&&(o=o.parentNode)instanceof Element;);if(t=e)for(i=(t=l(t.split(" "))).next();!i.done;i=t.next())for(i=i.value,o=(e=l(n)).next();!o.done;o=e.next())if(r+(o=o.value).getAttribute("xml:id")==i){a.push(o);break}return a}function Lm(e,t,n,r){return e=jm(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==r?r=e.end:null!=e.start&&(r+=e.start),{start:n,end:r}}function jm(e,t){var n=Um(e.getAttribute("begin"),t),r=Um(e.getAttribute("end"),t);return e=Um(e.getAttribute("dur"),t),null==r&&null!=e&&(r=n+e),{start:n,end:r}}function Um(e,t){var n=null;if(Km.test(e)){e=Km.exec(e),n=Number(e[1]);var r=Number(e[2]),i=Number(e[3]),a=Number(e[4]);n=(i+=(a+=(Number(e[5])||0)/t.h)/t.frameRate)+60*r+3600*n}else if(Wm.test(e))n=Fm(Wm,e);else if(Gm.test(e))n=Fm(Gm,e);else if($m.test(e))e=$m.exec(e),n=Number(e[1])/t.frameRate;else if(Xm.test(e))e=Xm.exec(e),n=Number(e[1])/t.g;else if(Ym.test(e))n=Fm(Ym,e);else if(e)throw new Re(2,2,2001,"Could not parse cue time range in TTML");return n}function Fm(e,t){return null==(e=e.exec(t))||""==e[0]?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function Bm(e,t,n,r){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(r),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}Zt["application/x-subtitle-lrc"]=function(){return new km},Im.prototype.parseInit=function(){},Im.prototype.setSequenceMode=function(){},Im.prototype.parseMedia=function(e,t){var n=xt(e);if(e=[],""==n)return e;var r=xi(n,"tt");if(!r)throw new Re(2,2,2005,"Failed to parse TTML.");if(!(n=r.getElementsByTagName("body")[0]))return[];var i=li(r,Zm,"frameRate"),a=li(r,Zm,"subFrameRate"),o=li(r,Zm,"frameRateMultiplier"),s=li(r,Zm,"tickRate"),u=li(r,Zm,"cellResolution"),c=r.getAttribute("xml:space")||"default",d=li(r,ev,"extent");if("default"!=c&&"preserve"!=c)throw new Re(2,2,2005,"Invalid xml:space value: "+c);c="default"==c,i=new Bm(i,a,o,s),u=u&&(u=/^(\d+) (\d+)$/.exec(u))?{columns:parseInt(u[1],10),rows:parseInt(u[2],10)}:null,a=(a=r.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter((function(e){return e instanceof Element}))}(a):[],o=Array.from(r.getElementsByTagName("style")),s=[];for(var f=l(r=Array.from(r.getElementsByTagName("region"))),h=f.next();!h.done;h=f.next()){var p=h.value;h=new xe;var g=p.getAttribute("xml:id");if(g){h.id=g;var m,v,y=null;d&&(y=zm.exec(d)||qm.exec(d)),g=y?Number(y[1]):null,y=y?Number(y[2]):null,(m=Pm(p,o,"extent"))&&(null!=(m=(v=zm.exec(m))||qm.exec(m))&&(h.width=Number(m[1]),h.height=Number(m[2]),v||(null!=g&&(h.width=100*h.width/g),null!=y&&(h.height=100*h.height/y)),h.widthUnits=v||null!=g?Ee:0,h.heightUnits=v||null!=y?Ee:0)),(p=Pm(p,o,"origin"))&&(null!=(m=(v=zm.exec(p))||qm.exec(p))&&(h.viewportAnchorX=Number(m[1]),h.viewportAnchorY=Number(m[2]),v||(null!=y&&(h.viewportAnchorY=100*h.viewportAnchorY/y),null!=g&&(h.viewportAnchorX=100*h.viewportAnchorX/g)),h.viewportAnchorUnits=v||null!=g?Ee:0))}else h=null;h&&s.push(h)}if(oi(n,"p").length)throw new Re(2,2,2001,"<p> can only be inside <div> in TTML");for(f=(d=l(oi(n,"div"))).next();!f.done;f=d.next())if(oi(f.value,"span").length)throw new Re(2,2,2001,"<span> can only be inside <p> in TTML");return(t=_m(n,t,i,a,o,r,s,c,u,null,!1))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},B("shaka.text.TtmlTextParser",Im),Im.prototype.parseMedia=Im.prototype.parseMedia,Im.prototype.setSequenceMode=Im.prototype.setSequenceMode,Im.prototype.parseInit=Im.prototype.parseInit;var zm=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Vm=/^(\d{1,2}(?:\.\d+)?|100)%$/,Hm=/^(\d+px|\d+em|\d*\.?\d+c)$/,qm=/^(\d+)px (\d+)px$/,Km=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Wm=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Gm=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,$m=/^(\d*(?:\.\d*)?)f$/,Xm=/^(\d*(?:\.\d*)?)t$/,Ym=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Qm={left:pe,center:"center",right:"end",start:pe,end:"end"},Jm={left:"line-left",center:"center",right:"line-right"},Zm=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],ev=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],tv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function nv(){this.g=new Im}function rv(){this.g=!1}function iv(e){for(var t=l(Object.entries(me)),n=t.next();!n.done;n=t.next()){var r=l(n.value);n=r.next().value,r=r.next().value;var i=new ie(0,0,"");i.color=r,e.set("."+n,i)}for(n=(t=l(Object.entries(ve))).next();!n.done;n=t.next())n=(r=l(n.value)).next().value,r=r.next().value,(i=new ie(0,0,"")).backgroundColor=r,e.set("."+n,i)}function av(e,t,n){0===n.size&&iv(n);e:{var r=e;e=[];for(var i=-1,a="",o=0;o<r.length;o++)if("/"===r[o]&&0<o&&"<"===r[o-1]){var s=r.indexOf(">",o);if(s<=o){e=r;break e}if((s=r.substring(o+1,s))&&"c"===s){var u=e.pop();u?u===s?(a+="/"+s+">",o+=s.length+1):u.startsWith("c.")?(o+=s.length+1,a+="/"+u+">"):a+=r[o]:a+=r[o]}else a+=r[o]}else"<"===r[o]?"c"!=r[i=o+1]&&(i=-1):">"===r[o]&&0<i&&(e.push(r.substr(i,o-i)),i=-1),a+=r[o];e=a}for(r=[],a=-1,i=0;i<e.length;i++)"<"===e[i]?a=i+1:">"===e[i]&&0<a&&((a=e.substr(a,i-a)).match(dv)&&r.push(a),a=-1);for(i=(r=l(r)).next();!i.done;i=r.next())i=i.value,e=e.replace("<"+i+">",'<div time="'+i+'">'),e+="</div>";e:{for(i=e,a=[],o=-1,r="",e=!1,s=0;s<i.length;s++)if("/"===i[s]){if(-1===(u=i.indexOf(">",s))){e=i;break e}if((u=i.substring(s+1,u))&&"v"==u){e=!0;var c=null;if(a.length&&(c=a[a.length-1]),c){if(c===u)r+="/"+u+">";else{if(!c.startsWith("v")){r+=i[s];continue}r+="/"+c+">"}s+=u.length+1}else r+=i[s]}else r+=i[s]}else"<"===i[s]?"v"!=i[o=s+1]&&(o=-1):">"===i[s]&&0<o&&(a.push(i.substr(o,s-o)),o=-1),r+=i[s];for(a=(i=l(a)).next();!a.done;a=i.next())o=(a=a.value).replace(" ",".voice-"),r=(r=r.replace("<"+a+">","<"+o+">")).replace("</"+a+">","</"+o+">"),e||(r+="</"+o+">");e=r}if(i=xi("<span>"+e+"</span>","span")){if(r=[],1==(i=i.childNodes).length&&((a=i[0]).nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE))return void(t.payload=cv(e));for(i=(e=l(i)).next();!i.done;i=e.next())sv(i.value,t,r,n);t.nestedCues=r}else t.payload=cv(e)}function ov(e,t){return e&&0<e.length?e:t}function sv(e,t,n,r){var i=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var a=l(e.nodeName.split(/(?=[ .])+/g)),o=a.next();!o.done;o=a.next()){var s=o=o.value;if(s.startsWith(".voice-")){var u=s.split("-").pop();s='v[voice="'+u+'"]',r.has(s)||(s="v[voice="+u+"]")}switch(r.has(s)&&(s=r.get(s))&&(i.backgroundColor=ov(s.backgroundColor,i.backgroundColor),i.color=ov(s.color,i.color),i.fontFamily=ov(s.fontFamily,i.fontFamily),i.fontSize=ov(s.fontSize,i.fontSize),i.fontWeight=s.fontWeight,i.fontStyle=s.fontStyle,i.opacity=s.opacity,i.wrapLine=s.wrapLine),o){case"br":(o=t.clone()).lineBreak=!0,n.push(o);break;case"b":i.fontWeight=700;break;case"i":i.fontStyle="italic";break;case"u":i.textDecoration.push("underline");break;case"div":(o=e.getAttribute("time"))&&(o=lv(new Mf(o)))&&(i.startTime=o)}}if(di(e))for(a=!0,r=l(e.textContent.split("\n")),e=r.next();!e.done;e=r.next())e=e.value,a||((a=t.clone()).lineBreak=!0,n.push(a)),0<e.length&&((a=i.clone()).payload=cv(e),n.push(a)),a=!1;else for(e=(t=l(e.childNodes)).next();!e.done;e=t.next())sv(e.value,i,n,r)}function uv(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],e.textAlign="middle"==t?se:ue[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==r[1]?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(r=/^region:(.*)$/.exec(t))?(t=function(e,t){return e=e.filter((function(e){return e.id==t})),e.length?e[0]:null}(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=ge[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=he,e.line=Number(n[1]),n[2]&&(e.lineAlign=ge[n[2].toUpperCase()]))}function lv(e){if(null==(e=Pf(e,dv)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function cv(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","‎":"‎","‏":"â€"},n=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,(function(e){return t[e]||"'"})):e||""}Zt["application/ttml+xml"]=function(){return new Im},nv.prototype.parseInit=function(e){var t=!1;if((new Wr).box("moov",Gr).box("trak",Gr).box("mdia",Gr).box("minf",Gr).box("stbl",Gr).P("stsd",$r).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new Re(2,2,2007)},nv.prototype.setSequenceMode=function(){},nv.prototype.parseMedia=function(e,t){var n=this,r=!1,i=[];if((new Wr).box("mdat",Yr((function(e){r=!0,i=i.concat(n.g.parseMedia(e,t))}))).parse(e,!1),!r)throw new Re(2,2,2007);return i},B("shaka.text.Mp4TtmlParser",nv),nv.prototype.parseMedia=nv.prototype.parseMedia,nv.prototype.setSequenceMode=nv.prototype.setSequenceMode,nv.prototype.parseInit=nv.prototype.parseInit,Zt['application/mp4; codecs="stpp"']=function(){return new nv},Zt['application/mp4; codecs="stpp.ttml"']=function(){return new nv},Zt['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new nv},Zt['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new nv},rv.prototype.parseInit=function(){},rv.prototype.setSequenceMode=function(e){this.g=e},rv.prototype.parseMedia=function(e,t){var n=(e=(e=xt(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new Re(2,2,2e3);if(e=t.vttOffset,n[0].includes("X-TIMESTAMP-MAP")&&this.g){var r=n[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=n[0].match(/MPEGTS:(\d+)/m);if(r&&i){if(null==(e=lv(new Mf(r[1]))))throw new Re(2,2,2e3);for(i=Number(i[1]),r=t.segmentStart-t.periodStart;95443.7176888889<=r;)r-=95443.7176888889,i+=8589934592;e=t.periodStart+i/9e4-e}}for(t=[],r=(i=l(n[0].split("\n"))).next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new Mf(r);var a=new xe;Df(r),Rf(r);for(var o=Df(r);o;){var s=a,u=o;(o=/^id=(.*)$/.exec(u))?s.id=o[1]:(o=/^width=(\d{1,2}|100)%$/.exec(u))?s.width=Number(o[1]):(o=/^lines=(\d+)$/.exec(u))?(s.height=Number(o[1]),s.heightUnits=2):(o=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(s.regionAnchorX=Number(o[1]),s.regionAnchorY=Number(o[2])):(o=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(s.viewportAnchorX=Number(o[1]),s.viewportAnchorY=Number(o[2])):/^scroll=up$/.exec(u)&&(s.scroll="up"),Rf(r),o=Df(r)}t.push(a)}for(iv(i=new Map),r=[],a=(n=l(n.slice(1))).next();!a.done;a=n.next()){if((1!=(a=a.value.split("\n")).length||a[0])&&!/^NOTE($|[ \t])/.test(a[0])&&"STYLE"==a[0]){for(s=[],o=-1,u=1;u<a.length;u++)a[u].includes("::cue")&&(s.push([]),o=s.length-1),-1!=o&&(s[o].push(a[u]),a[u].includes("}")&&(o=-1));for(o=(s=l(s)).next();!o.done;o=s.next()){var c=o.value;o="global",(u=c[0].match(/\((.*)\)/))&&(o=u.pop()),u=c.slice(1,-1),c[0].includes("}")&&(c=/\{(.*?)\}/.exec(c[0]))&&(u=c[1].split(";")),(c=i.get(o))||(c=new ie(0,0,""));for(var d=!1,f=0;f<u.length;f++){var h=/^\s*([^:]+):\s*(.*)/.exec(u[f]);if(h){var p=h[2].trim().replace(";","");switch(h[1].trim()){case"background-color":case"background":d=!0,c.backgroundColor=p;break;case"color":d=!0,c.color=p;break;case"font-family":d=!0,c.fontFamily=p;break;case"font-size":d=!0,c.fontSize=p;break;case"font-weight":(700<=parseInt(p,10)||"bold"==p)&&(d=!0,c.fontWeight=700);break;case"font-style":switch(p){case"normal":d=!0,c.fontStyle=be;break;case"italic":d=!0,c.fontStyle="italic";break;case"oblique":d=!0,c.fontStyle="oblique"}break;case"opacity":d=!0,c.opacity=parseFloat(p);break;case"text-shadow":d=!0,c.textShadow=p;break;case"white-space":d=!0,c.wrapLine="noWrap"!=p}}}d&&i.set(o,c)}}if(d=e,1==a.length&&!a[0]||/^NOTE($|[ \t])/.test(a[0])||"STYLE"==a[0]||"REGION"==a[0])a=null;else{if(s=null,a[0].includes("--\x3e")||(s=a[0],a.splice(0,1)),u=lv(o=new Mf(a[0])),f=Pf(o,/[ \t]+--\x3e[ \t]+/g),c=lv(o),null==u||null==f||null==c)throw new Re(2,2,2001,"Could not parse cue time range in WebVTT");for(u+=d,c+=d,d=a.slice(1).join("\n").trim(),i.has("global")?((a=i.get("global").clone()).startTime=u,a.endTime=c,a.payload=""):a=new ie(u,c,""),av(d,a,i),Rf(o),u=Df(o);u;)uv(a,u,t),Rf(o),u=Df(o);null!=s&&(a.id=s)}a&&r.push(a)}return r},B("shaka.text.VttTextParser",rv),rv.prototype.parseMedia=rv.prototype.parseMedia,rv.prototype.setSequenceMode=rv.prototype.setSequenceMode,rv.prototype.parseInit=rv.prototype.parseInit;var dv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function fv(){this.g=null}function hv(e,t,n){var r,i,a;return(new Wr).box("payl",Yr((function(e){r=xt(e)}))).box("iden",Yr((function(e){i=xt(e)}))).box("sttg",Yr((function(e){a=xt(e)}))).parse(e),r?function(e,t,n,r,i){if(r=new ie(r,i,""),av(e,r,new Map),t&&(r.id=t),n)for(e=new Mf(n),t=Df(e);t;)uv(r,t,[]),Rf(e),t=Df(e);return r}(r,i,a,t,n):null}function pv(){}function gv(e){if(null==(e=Pf(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function mv(){this.g=new rv}function vv(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=l((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function yv(){}function bv(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=wv(n))&&(e.color=n),(n=t.BackColour)&&(n=wv(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=le,e.textAlign="start";break;case 2:e.displayAlign=le,e.textAlign=se;break;case 3:e.displayAlign=le,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=se;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=se;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function wv(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function xv(e){return 3600*((e=Cv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Zt["text/vtt"]=function(){return new rv},Zt['text/vtt; codecs="vtt"']=function(){return new rv},Zt['text/vtt; codecs="wvtt"']=function(){return new rv},fv.prototype.parseInit=function(e){var t=this,n=!1;if((new Wr).box("moov",Gr).box("trak",Gr).box("mdia",Gr).P("mdhd",(function(e){e=ao(e.reader,e.version),t.g=e.timescale})).box("minf",Gr).box("stbl",Gr).P("stsd",$r).box("wvtt",(function(){n=!0})).parse(e),!this.g)throw new Re(2,2,2008);if(!n)throw new Re(2,2,2008)},fv.prototype.setSequenceMode=function(){},fv.prototype.parseMedia=function(e,t){if(!this.g)throw new Re(2,2,2008);var n,r=0,i=[],a=[],o=!1,s=!1,u=!1,c=null;if((new Wr).box("moof",Gr).box("traf",Gr).P("tfdt",(function(e){o=!0,r=io(e.reader,e.version).we})).P("tfhd",(function(e){c=ro(e.reader,e.flags).Ce})).P("trun",(function(e){s=!0,i=oo(e.reader,e.version,e.flags).Re})).box("mdat",Yr((function(e){u=!0,n=e}))).parse(e,!1),!u&&!o&&!s)throw new Re(2,2,2008);e=r;for(var d=new Hr(n,0),f=l(i),h=f.next();!h.done;h=f.next()){var p=(h=h.value).ee||c,g=h.ed?r+h.ed:e;e=g+(p||0);var m=0;do{var v=d.K();m+=v;var y=null;"vttc"==Jr(d.K())?8<v&&(y=d.Za(v-8)):d.skip(v-8),p&&y&&(v=hv(y,t.periodStart+g/this.g,t.periodStart+e/this.g),a.push(v))}while(h.sampleSize&&m<h.sampleSize)}return a.filter(Xe)},B("shaka.text.Mp4VttParser",fv),fv.prototype.parseMedia=fv.prototype.parseMedia,fv.prototype.setSequenceMode=fv.prototype.setSequenceMode,fv.prototype.parseInit=fv.prototype.parseInit,Zt['application/mp4; codecs="wvtt"']=function(){return new fv},pv.prototype.parseInit=function(){},pv.prototype.setSequenceMode=function(){},pv.prototype.parseMedia=function(e){var t=xt(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=l(t.split("\n\n"))).next();!n.done;n=t.next()){var r=new Mf((n=n.value.split("\n"))[0]),i=gv(r),a=Pf(r,/,/g);if(r=gv(r),null==i||null==a||null==r)throw new Re(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new ie(i,r,n.slice(1).join("\n").trim()))}return e},B("shaka.text.SbvTextParser",pv),pv.prototype.parseMedia=pv.prototype.parseMedia,pv.prototype.setSequenceMode=pv.prototype.setSequenceMode,pv.prototype.parseInit=pv.prototype.parseInit,Zt["text/x-subviewer"]=function(){return new pv},mv.prototype.parseInit=function(){},mv.prototype.setSequenceMode=function(){},mv.prototype.parseMedia=function(e,t){return e=Ie(St(e=vv(e=xt(e)))),this.g.parseMedia(e,t)},B("shaka.text.SrtTextParser",mv),mv.srt2webvtt=vv,mv.prototype.parseMedia=mv.prototype.parseMedia,mv.prototype.setSequenceMode=mv.prototype.setSequenceMode,mv.prototype.parseInit=mv.prototype.parseInit,Zt["text/srt"]=function(){return new mv},yv.prototype.parseInit=function(){},yv.prototype.setSequenceMode=function(){},yv.prototype.parseMedia=function(e){for(var t="",n="",r=(e=l(e=xt(e).split(/\r?\n\s*\r?\n/))).next();!r.done;r=e.next()){var i=Sv.exec(r.value);i&&(r=i[1],i=i[2],"V4 Styles"==r||"V4+ Styles"==r?t=i:"Events"==r&&(n=i))}e=[],r=null;for(var a=(t=l(t.split(/\r?\n/))).next();!a.done;a=t.next())if(i=a.value,!/^\s*;/.test(i)&&(a=kv.exec(i)))if(i=a[1].trim(),a=a[2].trim(),"Format"==i)r=a.split(Av);else if("Style"==i){i=a.split(Av),a={};for(var o=0;o<r.length&&o<i.length;o++)a[r[o]]=i[o];e.push(a)}for(r=[],t=null,i={},a=(n=l(n.split(/\r?\n/))).next();!a.done;i={vd:i.vd},a=n.next())if(a=a.value,!/^\s*;/.test(a)&&(o=kv.exec(a)))if(a=o[1].trim(),o=o[2].trim(),"Format"==a)t=o.split(Av);else if("Dialogue"==a){o=o.split(Av),a={};for(var s=0;s<t.length&&s<o.length;s++)a[t[s]]=o[s];o=new ie(s=xv(a.Start),xv(a.End),o.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),i.vd=a.Style,(a=e.find(function(e){return function(t){return t.Name==e.vd}}(i)))&&bv(o,a),r.push(o)}return r},B("shaka.text.SsaTextParser",yv),yv.prototype.parseMedia=yv.prototype.parseMedia,yv.prototype.setSequenceMode=yv.prototype.setSequenceMode,yv.prototype.parseInit=yv.prototype.parseInit;var Ev,Tv,Sv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,kv=/^\s*([^:]+):\s*(.*)/,Av=/\s*,\s*/,Cv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function Iv(){}function _v(){Ev?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Ev=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Mv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function Mv(e,t){var n,r=this;return P((function(i){return 1==i.g?(console.assert(r==navigator,'bad "this" for requestMediaKeySystemAccess'),w(i,Ev.call(r,e,t),2)):Bv(n=i.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Ev,i.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=Rv,i.return(Rv.call(r,e,t)))}))}function Rv(e,t){var n,r,i,a,o,s,u,c,d,f,h=this;return P((function(p){if(1==p.g){for(console.assert(h==navigator,'bad "this" for requestMediaKeySystemAccess'),n=Fv(e),r=[],i=l(t),a=i.next();!a.done;a=i.next())o=a.value,s=Pv(o.videoCapabilities,n),u=Pv(o.audioCapabilities,n),o.videoCapabilities&&o.videoCapabilities.length&&!s.length||o.audioCapabilities&&o.audioCapabilities.length&&!u.length||((c=Object.assign({},o)).videoCapabilities=s,c.audioCapabilities=u,r.push(c));if(!r.length)throw(d=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;return w(p,Ev.call(h,e,r),2)}return f=p.h,p.return(new Uv(f,n))}))}function Pv(e,t){return e?e.filter((function(e){return!e.encryptionScheme||e.encryptionScheme==t})):e}function Dv(){}function Nv(){Tv?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Tv=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Ov):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function Ov(e){var t,n,r,i=this;return P((function(a){switch(a.g){case 1:return console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),w(a,Tv.call(i,e),2);case 2:if(t=a.h,!e.keySystemConfiguration)return a.return(t);if((n=t.keySystemAccess)&&Bv(n))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Tv,a.return(t);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Lv,n){a.A(3);break}return r=t,w(a,jv(e),4);case 4:return r.keySystemAccess=a.h,a.return(t);case 3:return a.return(Lv.call(i,e))}}))}function Lv(e){var t,n,r,i,a,o,s,u,l=this;return P((function(c){switch(c.g){case 1:return console.assert(l==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,r=n.keySystem,i=n.audio&&n.audio.encryptionScheme,a=n.video&&n.video.encryptionScheme,t=Fv(r),o={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},i&&i!=t||a&&a!=t)?c.return(o):w(c,Tv.call(l,e),2);case 2:if((s=c.h).keySystemAccess){s.keySystemAccess=new Uv(s.keySystemAccess,t),c.A(3);break}if(!e.keySystemConfiguration){c.A(3);break}return u=s,w(c,jv(e),5);case 5:u.keySystemAccess=c.h;case 3:return c.return(s)}}))}function jv(e){var t,n;return P((function(r){if(1==r.g){var i=e.keySystemConfiguration,a=[],o=[];return i.audio&&a.push({robustness:i.audio.robustness||"",contentType:e.audio.contentType}),i.video&&o.push({robustness:i.video.robustness||"",contentType:e.video.contentType}),i={initDataTypes:i.initDataType?[i.initDataType]:[],distinctiveIdentifier:i.distinctiveIdentifier,persistentState:i.persistentState,sessionTypes:i.sessionTypes},a.length&&(i.audioCapabilities=a),o.length&&(i.videoCapabilities=o),t=i,w(r,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=r.h,r.return(n)}))}function Uv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function Fv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function Bv(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function zv(){}function Vv(){_v(),Nv()}Zt["text/x-ssa"]=function(){return new yv},B("EmeEncryptionSchemePolyfill",Iv),Iv.install=_v,B("McEncryptionSchemePolyfill",Dv),Dv.install=Nv,Uv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=l(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=l(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},Uv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},B("EncryptionSchemePolyfills",zv),zv.install=Vv,"undefined"!==typeof n&&n.exports&&(n.exports=zv)}.call(r,e,e,void 0),r.shaka)t[i]=r.shaka[i]}()},4449:(e,t,n)=>{"use strict";n.d(t,{_:()=>r,V:()=>i});class r{constructor(e){this.ranges=e}get length(){return this.ranges.length}start(e){const t=this.ranges[e];if(!t)throw new Error(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return t.start}end(e){const t=this.ranges[e];if(!t)throw new Error(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return t.end}}function i(e){return Array.from(Array(e.length).keys()).map((t=>({start:e.start(t),end:e.end(t)})))}},310:(e,t,n)=>{"use strict";n.d(t,{B:()=>l,Q:()=>u});var r=n(3661),i=n(5152),a=n(3687),o=n(1638);function s(){return s=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},s.apply(this,arguments)}const u=r.iv` width: ${3}em; height: ${3}em; flex-shrink: 0; border: 0; background: transparent; // keep offset inside bottom control bar outline-offset: -2px; `,l=(0,i.forwardRef)(((e,t)=>{let{children:n,className:r,...l}=e;return i.createElement(a.j,s({className:(0,o.A)(u,r)},l,{ref:t}),n)}))},3687:(e,t,n)=>{"use strict";n.d(t,{N:()=>s,j:()=>u});var r=n(5152),i=n(1638),a=n(3661);function o(){return o=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},o.apply(this,arguments)}const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".5em";return a.iv` color: var(--glow-color, white); // touch devices can have an annoying "sticky" hover effect, so we target with this media selector // https://medium.com/@mezoistvan/finally-a-css-only-solution-to-hover-on-touchscreens-c498af39c31c @media (hover: hover) and (pointer: fine) { :hover { filter: drop-shadow(0px 0px ${e} var(--glow-color, white)); } filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0)); transition: filter 0.15s ease; } `},u=(0,r.forwardRef)(((e,t)=>{let{className:n,glowSize:a,...u}=e;return r.createElement("button",o({className:(0,i.A)(s(a),n),ref:t},u))}))},1703:(e,t,n)=>{"use strict";n.d(t,{J:()=>Ee});var r,i=n(5152);function a(){return a=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},a.apply(this,arguments)}const o=e=>i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),r||(r=i.createElement("path",{d:"M495.9 166.6c3.2 8.7.5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4l-55.6 17.8c-8.8 2.8-18.6.3-24.5-6.8-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4c-1.1-8.4-1.7-16.9-1.7-25.5s.6-17.1 1.7-25.4l-43.3-39.4c-6.9-6.2-9.6-15.9-6.4-24.6 4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2 5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8 8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"})));var s;function u(){return u=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},u.apply(this,arguments)}const l=e=>i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),s||(s=i.createElement("path",{d:"M493.6 445c-11.2 5.3-24.5 3.6-34.1-4.4L288 297.7V416c0 12.4-7.2 23.7-18.4 29s-24.5 3.6-34.1-4.4L64 297.7V416c0 17.7-14.3 32-32 32S0 433.7 0 416V96c0-17.7 14.3-32 32-32s32 14.3 32 32v118.3L235.5 71.4c9.5-7.9 22.8-9.7 34.1-4.4S288 83.6 288 96v118.3L459.5 71.4c9.5-7.9 22.8-9.7 34.1-4.4S512 83.6 512 96v320c0 12.4-7.2 23.7-18.4 29z"})));var c;function d(){return d=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},d.apply(this,arguments)}const f=e=>i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),c||(c=i.createElement("path",{d:"M18.4 445c11.2 5.3 24.5 3.6 34.1-4.4L224 297.7V416c0 12.4 7.2 23.7 18.4 29s24.5 3.6 34.1-4.4L448 297.7V416c0 17.7 14.3 32 32 32s32-14.3 32-32V96c0-17.7-14.3-32-32-32s-32 14.3-32 32v118.3L276.5 71.4c-9.5-7.9-22.8-9.7-34.1-4.4S224 83.6 224 96v118.3L52.5 71.4C43 63.5 29.7 61.7 18.4 67S0 83.6 0 96v320c0 12.4 7.2 23.7 18.4 29z"})));var h;function p(){return p=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},p.apply(this,arguments)}const g=e=>i.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),h||(h=i.createElement("path",{d:"M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 224 344 224h119.5z"})));var m;function v(){return v=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},v.apply(this,arguments)}const y=e=>i.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),m||(m=i.createElement("path",{d:"M48.5 224H40c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2S50.1 48.1 57 55l41.6 41.6c87.6-86.5 228.7-86.2 315.8 1 87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2S177.7 224 168 224H48.5z"})));var b;function w(){return w=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},w.apply(this,arguments)}const x=e=>i.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),b||(b=i.createElement("path",{d:"M301.1 34.8C312.6 40 320 51.4 320 64v384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64v-64c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zm111.5 146.7c21.5 17.6 35.4 44.4 35.4 74.5s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5z"})));var E;function T(){return T=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},T.apply(this,arguments)}const S=e=>i.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),E||(E=i.createElement("path",{d:"M301.1 34.8C312.6 40 320 51.4 320 64v384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64v-64c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"})));var k;function A(){return A=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},A.apply(this,arguments)}const C=e=>i.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},e),k||(k=i.createElement("path",{d:"M533.6 32.5C598.5 85.3 640 165.8 640 256s-41.5 170.8-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8c54.2-44 88.7-111 88.7-186.2s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5c21.5 17.6 35.4 44.4 35.4 74.5s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64v384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64v-64c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"})));var I;function _(){return _=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},_.apply(this,arguments)}const M=e=>i.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},e),I||(I=i.createElement("path",{d:"M320 64c0-12.6-7.4-24-18.9-29.2s-25-3.1-34.4 5.3L131.8 160H64c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64h67.8l134.9 119.9c9.4 8.4 22.9 10.4 34.4 5.3S320 460.6 320 448V64z"})));var R;function P(){return P=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},P.apply(this,arguments)}const D=e=>i.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),R||(R=i.createElement("path",{d:"M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304c0 113.3 81.5 163.9 100.2 174.1 2.5 1.4 5.3 1.9 8.1 1.9 10.9 0 19.7-8.9 19.7-19.7 0-7.5-4.3-14.4-9.8-19.5-9.4-8.9-22.2-26.4-22.2-56.8 0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144a31.76 31.76 0 0 0-34.4-5.4z"})));var N;function O(){return O=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},O.apply(this,arguments)}const L=e=>i.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},e),N||(N=i.createElement("path",{d:"M192 0c-41.8 0-77.4 26.7-90.5 64H64C28.7 64 0 92.7 0 128v320c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64h-37.5C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm-80 128h160c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z"})));var j;function U(){return U=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},U.apply(this,arguments)}const F=e=>i.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),j||(j=i.createElement("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"})));var B;function z(){return z=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},z.apply(this,arguments)}const V=e=>i.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),B||(B=i.createElement("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm-81-337c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"})));var H,q=n(3661),K=n(1638);function W(){return W=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},W.apply(this,arguments)}var G;function $(){return $=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},$.apply(this,arguments)}var X,Y,Q;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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}var Z;function ee(){return ee=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},ee.apply(this,arguments)}var te,ne,re;function ie(){return ie=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},ie.apply(this,arguments)}var ae;function oe(){return oe=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},oe.apply(this,arguments)}var se,ue,le;function ce(){return ce=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},ce.apply(this,arguments)}var de,fe,he;function pe(){return pe=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},pe.apply(this,arguments)}var ge;function me(){return me=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},me.apply(this,arguments)}var ve;function ye(){return ye=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},ye.apply(this,arguments)}function be(){return be=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},be.apply(this,arguments)}const we={play:e=>i.createElement("svg",ye({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",fill:"currentColor"},e),ve||(ve=i.createElement("path",{d:"M14 15.06V33a2 2 0 0 0 2.93 1.77l17.09-8.97a2 2 0 0 0 0-3.54L16.93 13.3A2 2 0 0 0 14 15.06z"}))),pause:e=>i.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",fill:"currentColor"},e),ge||(ge=i.createElement("path",{d:"M16 12h3a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V14c0-1.1.9-2 2-2zm13 0h3a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V14c0-1.1.9-2 2-2z"}))),enterFullscreen:e=>i.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",fill:"currentColor"},e),G||(G=i.createElement("path",{d:"M28 10h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zm9 28h-9a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1zM11 10h9a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm3 24h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v6z"}))),exitFullscreen:e=>i.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",fill:"currentColor"},e),Z||(Z=i.createElement("path",{d:"M31 17h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v6zm-3 10h9a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm-8-6h-9a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1zm-9 6h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1z"}))),enterPictureInPicture:e=>i.createElement("svg",J({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),X||(X=i.createElement("rect",{x:12.5,y:14.5,width:8,height:4,rx:.5,fill:"currentColor",stroke:"currentColor"})),Y||(Y=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 16V7h13v5h2V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h6v-2H5Z",fill:"currentColor"})),Q||(Q=i.createElement("path",{d:"m7.5 9.5 3 3m0 0v-2m0 2h-2",stroke:"currentColor",strokeLinecap:"round"}))),exitPictureInPicture:e=>i.createElement("svg",ie({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),te||(te=i.createElement("rect",{x:12.5,y:14.5,width:8,height:4,rx:.5,fill:"currentColor",stroke:"currentColor"})),ne||(ne=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 16V7h13v5h2V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h6v-2H5Z",fill:"currentColor"})),re||(re=i.createElement("path",{d:"m10.5 12.5-3-3m0 0v2m0-2h2",stroke:"currentColor",strokeLinecap:"round"}))),volumeMuted:S,volumeLow:M,volumeMed:x,volumeHigh:C,skipForward:g,skipBackward:y,airplay:e=>i.createElement("svg",W({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),H||(H=i.createElement("path",{d:"M15.818 37H32.18L24 28.789 15.818 37zm20.454-26H11.729A2.74 2.74 0 0 0 9 13.736v16.422a2.74 2.74 0 0 0 2.727 2.736h5.456v-2.736h-5.456V13.736h24.546v16.422h-5.454v2.736h5.454A2.74 2.74 0 0 0 39 30.159V13.736A2.74 2.74 0 0 0 36.273 11z"}))),fastForward:f,fastBackward:l,clipboard:L,gear:o,eye:e=>i.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),de||(de=i.createElement("path",{d:"M8 3.17A9.195 9.195 0 0 0 .068 7.75v.5a9.16 9.16 0 0 0 15.865 0v-.5A9.196 9.196 0 0 0 8 3.17zm0 8.66A8.198 8.198 0 0 1 1.083 8a8.162 8.162 0 0 1 13.835 0A8.198 8.198 0 0 1 8 11.83z"})),fe||(fe=i.createElement("path",{d:"M8 4.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zm0 6a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z"})),he||(he=i.createElement("path",{d:"M8.85 7.853a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"}))),captionsEnabled:e=>i.createElement("svg",oe({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ae||(ae=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5Zm16.937 6.326h-1.598a1.384 1.384 0 0 0-.131-.444 1.08 1.08 0 0 0-.65-.553 1.481 1.481 0 0 0-.488-.077c-.318 0-.591.078-.821.233-.228.156-.404.38-.528.675-.121.294-.182.65-.182 1.067 0 .435.062.8.185 1.093.126.292.302.513.528.662.228.147.497.22.808.22.175 0 .334-.022.477-.067.145-.044.271-.11.38-.195.11-.087.201-.192.272-.316.072-.126.122-.268.15-.425l1.598.01c-.028.29-.112.575-.253.856-.138.281-.329.538-.572.77-.243.23-.539.414-.888.55a3.252 3.252 0 0 1-1.196.204c-.592 0-1.122-.13-1.591-.39a2.808 2.808 0 0 1-1.106-1.144c-.27-.5-.406-1.11-.406-1.828 0-.72.137-1.33.412-1.831a2.82 2.82 0 0 1 1.116-1.141c.469-.26.994-.39 1.575-.39.397 0 .763.055 1.1.166.337.109.633.269.888.48.256.208.464.465.624.77.16.305.258.653.297 1.045Zm-9.098 0h1.598a2.82 2.82 0 0 0-.297-1.045 2.452 2.452 0 0 0-.624-.77 2.667 2.667 0 0 0-.888-.48 3.498 3.498 0 0 0-1.1-.166c-.581 0-1.106.13-1.575.39-.469.26-.84.64-1.116 1.141-.274.5-.412 1.111-.412 1.831 0 .718.135 1.328.406 1.828.27.501.64.883 1.106 1.145.469.26 1 .39 1.591.39.45 0 .848-.069 1.196-.205.35-.136.645-.32.888-.55.243-.232.434-.489.572-.77.14-.281.225-.567.253-.856l-1.598-.01c-.028.158-.078.3-.15.425-.07.123-.161.229-.272.316-.109.086-.236.15-.38.195a1.589 1.589 0 0 1-.477.067 1.46 1.46 0 0 1-.808-.22 1.455 1.455 0 0 1-.528-.662c-.123-.294-.185-.658-.185-1.093 0-.417.06-.773.182-1.067.124-.294.3-.519.528-.675.23-.155.503-.233.821-.233.179 0 .342.026.489.077a1.08 1.08 0 0 1 .649.553c.066.132.11.28.13.444Z",fill:"currentColor"}))),captionsDisabled:e=>i.createElement("svg",ce({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),se||(se=i.createElement("path",{d:"M18.437 11.326h-1.598a1.384 1.384 0 0 0-.131-.444 1.08 1.08 0 0 0-.65-.553 1.481 1.481 0 0 0-.488-.077c-.318 0-.591.078-.821.233-.228.156-.404.38-.528.675-.121.294-.182.65-.182 1.067 0 .435.062.8.185 1.093.126.292.302.513.528.662.228.147.497.22.808.22.175 0 .334-.022.477-.067.145-.044.271-.11.38-.195.11-.087.201-.192.272-.316.072-.126.122-.268.15-.425l1.598.01c-.028.29-.112.575-.253.856-.138.281-.329.538-.572.77-.243.23-.539.414-.888.55a3.252 3.252 0 0 1-1.196.204c-.592 0-1.123-.13-1.591-.39a2.808 2.808 0 0 1-1.106-1.144c-.27-.5-.406-1.11-.406-1.828 0-.72.137-1.33.412-1.831a2.82 2.82 0 0 1 1.116-1.141c.469-.26.994-.39 1.575-.39.397 0 .763.055 1.1.166.337.109.633.269.888.48.256.208.464.465.624.77.16.305.258.653.297 1.045ZM11.437 11.326H9.839a1.385 1.385 0 0 0-.131-.444 1.08 1.08 0 0 0-.65-.553 1.482 1.482 0 0 0-.488-.077c-.318 0-.591.078-.821.233-.228.156-.404.38-.528.675-.121.294-.182.65-.182 1.067 0 .435.062.8.185 1.093.126.292.302.513.528.662.228.147.497.22.808.22.175 0 .334-.022.477-.067.144-.044.271-.11.38-.195.11-.087.201-.192.272-.316.072-.126.122-.268.15-.425l1.598.01c-.028.29-.112.575-.253.856-.138.281-.329.538-.572.77-.243.23-.539.414-.888.55a3.253 3.253 0 0 1-1.196.204c-.592 0-1.122-.13-1.591-.39a2.808 2.808 0 0 1-1.106-1.144c-.27-.5-.406-1.11-.406-1.828 0-.72.138-1.33.412-1.831.275-.5.647-.881 1.116-1.141.469-.26.994-.39 1.575-.39.397 0 .763.055 1.1.166.336.109.633.269.888.48.256.208.464.465.624.77.16.305.258.653.297 1.045Z",fill:"currentColor"})),ue||(ue=i.createElement("mask",{id:"captionsDisabled_svg__a",fill:"none"},i.createElement("rect",{x:2,y:4,width:20,height:16,rx:1,stroke:"currentColor",strokeWidth:2}))),le||(le=i.createElement("rect",{x:2,y:4,width:20,height:16,rx:1,stroke:"currentColor",strokeWidth:4,mask:"url(#captionsDisabled_svg__a)"}))),share:D,check:F,circleXMark:V},xe=q.iv` height: 100%; `,Ee=e=>{let{type:t,className:n,...r}=e;const a=we[t];return i.createElement(a,be({fill:"currentColor","aria-hidden":"true",className:(0,K.A)(xe,n)},r))}},8428:(e,t,n)=>{"use strict";n.d(t,{UN:()=>a,DY:()=>o,iu:()=>s});var r=n(5152);const i=(0,r.createContext)({indications:[],setIndications:()=>{}}),a=e=>{let{children:t}=e;const[n,a]=(0,r.useState)([]);return r.createElement(i.Provider,{value:{indications:n,setIndications:a}},t)};function o(){const{setIndications:e}=(0,r.useContext)(i);return t=>{e((e=>[t,...e]))}}function s(e,t){const{indications:n}=(0,r.useContext)(i),a=(0,r.useMemo)((()=>n.find((e=>void 0===t||e.type===t))),[n,t]),o=(0,r.useRef)(-1),[s,u]=(0,r.useState)(Date.now());(0,r.useEffect)((()=>(o.current=window.setTimeout((()=>{u(Date.now())}),e),()=>{window.clearTimeout(o.current)})),[n]);return a&&a.timestamp>s-e?a:void 0}},5769:(e,t,n)=>{"use strict";n.d(t,{o:()=>l,A:()=>c});var r=n(8851),i=n.n(r),a=n(5152),o=n(792),s=n(4618);const u=(0,a.createContext)({flavor:"dash",videoId:"",resourceUrl:"",impressionId:"",playerVersion:"",staging:!1}),l=e=>{let{children:t,src:n,flavor:r,metrics:l,staging:c,customerDomainPrefix:d}=e;const f=(0,a.useMemo)((()=>(0,o.B)(n)),[n]),{resourceUrl:h}=(0,s.b)(n,c,d),p=(0,a.useMemo)((()=>({impressionId:l.impressionId,playerVersion:l.playerVersion,resourceUrl:h,videoId:f,staging:c,flavor:r})),[r,l.impressionId,l.playerVersion,c,f,h]);return(0,a.useEffect)((()=>{i().setTagsContext({videoId:f})}),[f]),a.createElement(u.Provider,{value:p},t)},c=()=>(0,a.useContext)(u)},1857:(e,t,n)=>{"use strict";n.d(t,{e:()=>l,I:()=>c});var r=n(5152),i=n(3807),a=n(1703),o=n(310),s=n(4598);function u(){return u=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},u.apply(this,arguments)}const l=e=>{let{paused:t,...n}=e;return r.createElement(o.B,n,r.createElement(a.J,{type:t?"play":"pause"}),r.createElement(s.T,null,t?"Play":"Pause"))},c=e=>{let{onClick:t,...n}=e;const{paused:a,setPaused:o}=(0,i.dT)();return r.createElement(l,u({paused:a,onClick:e=>{o(!a),t&&t(e)}},n))}},7535:(e,t,n)=>{"use strict";n.d(t,{P1:()=>l,py:()=>c,QK:()=>d});var r=n(5152),i=n(3661),a=n(3807),o=n(176);const s=i.iv` position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; align-items: center; background: black; `,u=(0,r.createContext)({error:void 0,clearError:()=>{}}),l=e=>{let{children:t,source:n,playbackProviderRef:i}=e;const[a,s]=(0,r.useState)();(0,r.useEffect)((()=>{const e=(0,o.Z)(i.current),t=e=>{s(e)};return e.addEventListener("error",t),()=>{e.removeEventListener("error",t)}}),[i]);const l=(0,r.useCallback)((()=>{s(void 0)}),[]);return(0,r.useEffect)((()=>{l()}),[n]),r.createElement(u.Provider,{value:{error:a,clearError:l}},t)};function c(){return(0,r.useContext)(u)}const d=e=>{let{}=e;const{error:t}=c();return void 0===t?null:r.createElement("div",{className:s},t instanceof a.H6&&"Video not found",t instanceof a.w&&"You don't have permission to view this video",t instanceof a.Ko&&"An unknown error occurred",t instanceof a.KT&&"An unrecoverable error occurred")}},5850:(e,t,n)=>{"use strict";n.d(t,{px:()=>o,OK:()=>s});var r=n(5769),i=n(5152);const a=(0,i.createContext)({dimensions:{height:0,width:0},audio:[],tt:[],nft:null,flags:{thumbnailScrubbingEnabled:!1},publicDetails:null}),o=e=>{let{children:t,textTrackLabels:n}=e;const{resourceUrl:o}=(0,r.A)(),[s,u]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const e=new AbortController;return u(null),fetch(`${o}/metadata/playerEnhancementInfo.json`,{signal:e.signal}).then((async e=>{if(204===e.status)return void u(null);const t=await e.json();u((e=>{let{tt:t,...n}=e;return{tt:t.map((e=>{let{label:t="undefined",...n}=e;return{label:t,...n}})),...n}})(t))})),()=>{e.abort()}}),[o]),i.createElement(a.Provider,{value:s?{...s,textTrackLabels:n}:null},t)},s=()=>(0,i.useContext)(a)},5941:(e,t,n)=>{"use strict";n.d(t,{Qz:()=>u,OT:()=>l,q2:()=>c});var r=n(5152),i=n(5850),a=n(3807),o=n(9434);const s=(0,r.createContext)([null,()=>{}]),u=e=>{let{children:t,defaultLanguageCode:n}=e;const i=(0,r.useState)(n??null);return r.createElement(s.Provider,{value:i},t)},l=e=>{let{}=e;const{setSelectedTextTrack:t,textTracks:n}=(0,a.dT)(),s=(0,i.OK)(),[u]=c(),l=s?.tt.find((e=>e.textLanguage===u));return(0,r.useEffect)((()=>{const e=n.find((e=>{let{label:t}=e;return t.toLowerCase()===l?.label?.toLowerCase()}))??null;t(e),null!==e&&(0,o.f)({__privateUnstableMessageType:"textTrackEnabled"})}),[t,n,u,l]),null};function c(){return(0,r.useContext)(s)}},4598:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(5152);function i(){return i=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},i.apply(this,arguments)}const a=e=>{let{children:t,...n}=e;const[a,o]=r.useState(!1);return r.useEffect((()=>{}),[]),r.createElement("span",i({style:a?{}:{display:"inline-block",position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:1,width:1,margin:-1,padding:0,border:0}},n),t)}},6626:(e,t,n)=>{"use strict";n.d(t,{eU:()=>p,xj:()=>g,ff:()=>m});var r=n(5152),i=n(3661),a=n(3807),o=n(1703),s=n(8428),u=n(310),l=n(4964),c=n(4598);const d=i.iv` display: flex; align-items: center; &:hover input, & input:focus[is-focus-visible] { opacity: 1; } `,f=i.iv` padding: 0.75em; `,h=i.iv` // Hide volume slider if pointer isn't capable // of hover, assuming the user is going to use // their OS volume setting. @media (hover: none) { display: none; } @media (max-width: 500px) { width: 4em; } @media (max-width: 450px) { width: 3em; } -webkit-appearance: none; margin: 0; height: 100%; width: 5em; opacity: 0; transition: max-width 0.25s, opacity 0.25s; background: transparent; &::-webkit-slider-thumb { -webkit-appearance: none; height: 1em; width: 1em; margin-top: -0.25em; border-radius: 100%; background: currentColor; cursor: pointer; } &::-moz-range-thumb { -webkit-appearance: none; height: 1em; width: 1em; margin-top: -0.25em; border-radius: 100%; background: currentColor; cursor: pointer; } &::-ms-thumb { -webkit-appearance: none; height: 1em; width: 1em; border-radius: 100%; background: currentColor; cursor: pointer; } &::-webkit-slider-runnable-track { width: 100%; height: 0.5em; background: rgba(255, 255, 255, 0.5); border-radius: 10em; border: 0; cursor: pointer; } &::-moz-range-track { width: 100%; height: 0.5em; background: rgba(255, 255, 255, 0.5); border-radius: 10em; border: 0; cursor: pointer; } &::-ms-fill-lower { width: 100%; height: 0.5em; background: rgba(255, 255, 255, 0.5); border-radius: 10em; border: 0; cursor: pointer; } &::-ms-fill-upper { width: 100%; height: 0.5em; background: rgba(255, 255, 255, 0.5); border-radius: 10em; border: 0; cursor: pointer; } &::-ms-tooltip { display: none; } &::-ms-track { color: transparent; } &::-ms-ticks-before { color: transparent; } &::-ms-ticks-after { color: transparent; } `,p=e=>{let{volume:t,muted:n,className:i}=e;return 0===t||n?r.createElement(o.J,{className:i,type:"volumeMuted"}):t<.33?r.createElement(o.J,{className:i,type:"volumeLow"}):t<.66?r.createElement(o.J,{className:i,type:"volumeMed"}):r.createElement(o.J,{className:i,type:"volumeHigh"})},g=e=>{let{muted:t,setMuted:n,setVolume:i,volume:a}=e;return r.createElement("div",{className:d},r.createElement(u.B,{className:f,onClick:()=>n(!t)},r.createElement(p,{volume:a,muted:t}),r.createElement(c.T,null,t?"Currently muted. Click to unmute.":`Currently unmuted. Volume set to ${Math.round(100*a)} percent. Click to mute.`)),r.createElement("input",{className:h,name:"volume","aria-label":"volume",type:"range",min:"0",max:"1",step:".01",value:t?0:a,onKeyDown:l.Fx,onChange:e=>{const t=Number(e.target.value);t>a&&n(!1),i(t)}}))},m=e=>{let{controlsRef:t}=e;const{muted:n,setMuted:i,setVolume:o,volume:u}=(0,a.dT)(),c=(0,s.DY)();return(0,l.x6)({keyName:"ArrowUp"},(e=>{const t=Math.min(1,u+.1);o(t),i(!1),c({type:"volumeUp",timestamp:Date.now(),volume:t})}),{target:t}),(0,l.x6)({keyName:"ArrowDown"},(e=>{const t=Math.max(0,u-.1);o(t),c(t>0?{type:"volumeDown",timestamp:Date.now(),volume:t}:{type:"muted",timestamp:Date.now()})}),{target:t}),r.createElement(g,{muted:n,volume:u,setMuted:i,setVolume:o})}},1638:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(176);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(r.C).reduce(((e,t)=>"string"===typeof t?[...e,t]:[...e,...Object.entries(t).reduce(((e,t)=>{let[n,r]=t;return r?[...e,n]:e}),[])]),[]).join(" ")}},6693:(e,t,n)=>{"use strict";n.d(t,{dx:()=>o,D9:()=>s});var r=n(5152),i=n(1952);function a(e){const[t,n]=(0,r.useState)(-1),[i,a]=(0,r.useState)(Date.now()),o=(0,r.useRef)(-1);(0,r.useEffect)((()=>(o.current=window.setTimeout((()=>a(Date.now())),e),()=>clearTimeout(o.current))),[e,t]);return[t+e>i,(0,r.useCallback)((()=>{n(Date.now())}),[])]}function o(e,t){let{delay:n=1e3,...r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[o,s]=a(n);(0,i.OR)(e,(()=>{s(),o&&t()}),r)}function s(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),t.current}},3038:(e,t,n)=>{"use strict";n.d(t,{cT:()=>i,FI:()=>a,ec:()=>o,mb:()=>s});var r=n(3661);const i=r.iv` position: relative; margin: 0; padding: 1.5rem; display: flex; gap: 1rem; align-items: center; // trim down padding on smaller viewports @media (max-width: 500px) { padding: 1rem; } :before { content: ' '; position: absolute; top: 0; left: 0; width: 100%; height: 8rem; /* generated gradients using this tool which translates a cubic-bezier curve to gradients for a much smoother gradient https://larsenwork.com/easing-gradients/#editor #future-maybe { background-image: linear-gradient( to bottom, hsla(330, 0%, 0%, 0), cubic-bezier(0.42, 0, 0.52, 1), hsla(210, 0%, 0%, 0.6) ); }; */ background-image: linear-gradient( to top, hsla(0, 0%, 0%, 0) 0%, hsla(0, 0%, 0%, 0.008) 8%, hsla(0, 0%, 0%, 0.029) 15.3%, hsla(0, 0%, 0%, 0.062) 21.9%, hsla(0, 0%, 0%, 0.105) 28.1%, hsla(0, 0%, 0%, 0.156) 33.9%, hsla(0, 0%, 0%, 0.211) 39.5%, hsla(0, 0%, 0%, 0.27) 45%, hsla(0, 0%, 0%, 0.33) 50.5%, hsla(0, 0%, 0%, 0.389) 56.2%, hsla(0, 0%, 0%, 0.444) 62.1%, hsla(0, 0%, 0%, 0.495) 68.4%, hsla(0, 0%, 0%, 0.538) 75.2%, hsla(0, 0%, 0%, 0.571) 82.7%, hsla(0, 0%, 0%, 0.592) 90.9%, hsla(0, 0%, 0%, 0.6) 100% ); z-index: -1; pointer-events: none; } `,a=r.iv` padding-left: 1em; padding-right: 1em; padding-bottom: 0.5em; // since the bottom bar can fill with controls we need // as much space as possible on smaller @media (max-width: 500px) { padding: 0; } `,o=r.iv` position: relative; display: flex; flex-direction: column; justify-content: flex-end; color: white; :before { content: ' '; position: absolute; pointer-events: none; bottom: 0; width: 100%; height: 12em; /* generated gradients using this tool which translates a cubic-bezier curve to gradients for a much smoother gradient https://larsenwork.com/easing-gradients/#editor #future-maybe { background-image: linear-gradient( to bottom, hsla(330, 0%, 0%, 0), cubic-bezier(0.42, 0, 0.52, 1), hsla(210, 0%, 0%, 0.6) ); }; */ background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0) 0%, hsla(0, 0%, 0%, 0.008) 8%, hsla(0, 0%, 0%, 0.029) 15.3%, hsla(0, 0%, 0%, 0.062) 21.9%, hsla(0, 0%, 0%, 0.105) 28.1%, hsla(0, 0%, 0%, 0.156) 33.9%, hsla(0, 0%, 0%, 0.211) 39.5%, hsla(0, 0%, 0%, 0.27) 45%, hsla(0, 0%, 0%, 0.33) 50.5%, hsla(0, 0%, 0%, 0.389) 56.2%, hsla(0, 0%, 0%, 0.444) 62.1%, hsla(0, 0%, 0%, 0.495) 68.4%, hsla(0, 0%, 0%, 0.538) 75.2%, hsla(0, 0%, 0%, 0.571) 82.7%, hsla(0, 0%, 0%, 0.592) 90.9%, hsla(0, 0%, 0%, 0.6) 100% ); z-index: -1; pointer-events: none; } `,s=r.iv` display: flex; align-items: center; `},4618:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(5152),i=n(790);function a(e,t,n){return(0,r.useMemo)((()=>(0,i.G)(e,t,n)),[e,t,n])}},4964:(e,t,n)=>{"use strict";n.d(t,{TU:()=>i,Fx:()=>a,x6:()=>o});var r=n(1952);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>{!t.some((e=>e(n)))&&e.some((e=>{let{keyName:t,altKey:r=!1,ctrlKey:i=!1,metaKey:a=!1,shiftKey:o=!1}=e;return t.toLowerCase()===n.key.toLowerCase()&&o===n.shiftKey&&r===n.altKey&&i===n.ctrlKey&&a===n.metaKey}))&&n.preventDefault()}};function a(e){e.nativeEvent.escapeKeyboardShortcut=!0}function o(e,t){let{passive:n=!0,...i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{passive:!0};(0,r.WJ)(e,(e=>{requestAnimationFrame((()=>{e.escapeKeyboardShortcut||t(e)}))}),{...i,passive:n})}},176:(e,t,n)=>{"use strict";function r(e){return null!==e&&void 0!==e}function i(e){if(r(e))return e;throw new Error(`value was ${e}`)}n.d(t,{C:()=>r,Z:()=>i})},790:(e,t,n)=>{"use strict";function r(e,t,n){const r=n?n+".":"";return t?{resourceUrl:`https://${r}staging.cloudflarestream.com/${e}`,beaconUrl:`https://${r}staging.cloudflarestream.com/beacon/media-staging`}:window.location.hostname.endsWith("bytehighway.net")?{resourceUrl:`https://bytehighway.net/${e}`,beaconUrl:"https://stats.bytehighway.net/beacon/media"}:window.location.hostname.includes(".fr.")?{resourceUrl:`https://fr.videodelivery.net/${e}`,beaconUrl:"https://stats.fr.videodelivery.net/beacon/media"}:{resourceUrl:`https://${r}cloudflarestream.com/${e}`,beaconUrl:`https://${r}cloudflarestream.com/beacon/media`}}n.d(t,{G:()=>r})},7232:(e,t,n)=>{"use strict";n.d(t,{oV:()=>r,bl:()=>i});n.p;const r="external",i="3b8bfec"},792:(e,t,n)=>{"use strict";function r(e){return atob(function(e){return function(e){let t=4,n=e.length%t;if(!n)return e;let r=t-n,i=e;for(;r--;)i+="=";return i}(e.replace(/\-/g,"+").replace(/_/g,"/"))}(e))}function i(e){try{if(!e)throw new Error("Falsey input");let t=e.split(".");if(3!=t.length)throw new Error("Malformed token");return JSON.parse(r(t[1])).sub}catch{return e}}n.d(t,{B:()=>i})},7867:(e,t,n)=>{"use strict";n.d(t,{Oz:()=>r,ps:()=>i,U_:()=>a});const r=["abort","canplay","canplaythrough","durationchange","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],i=["adstart","adend","adtimeout"],a=e=>`stream-${e}`},3807:(e,t,n)=>{"use strict";n.d(t,{KT:()=>b,H6:()=>g,lj:()=>w,w:()=>m,lZ:()=>h,Ko:()=>y,Y7:()=>f,GM:()=>v,dT:()=>s});var r=n(5152);function i(e){if(function(e){return null!==e&&void 0!==e}(e))return e;throw new Error(`value was ${e}`)}function a(){}const o=(0,r.createContext)({waiting:!1,autoPlay:!1,paused:!0,playbackStarted:!1,playbackFailed:!1,canPlay:!1,muted:!1,fullscreenEnabled:!0,fullscreenActive:!1,duration:0,currentTime:0,volume:1,playbackRate:1,selectedBitrate:"auto",selectedTextTrack:null,selectedAudioTrack:null,isLive:!1,textTracks:[],audioTracks:[],bitrateOptions:[],bufferedTimeRanges:[],setAutoPlay:a,setMuted:a,setPaused:a,setVolume:a,setPlaybackRate:a,seek:a,setSelectedBitrate:a,toggleFullscreen:a,enterFullscreen:a,exitFullscreen:a,setSelectedTextTrack:a,setSelectedAudioTrack:a,src:"",videoRef:{current:null},fullscreenContainerRef:{current:null}});function s(){return(0,r.useContext)(o)}var u=n(5261);function l(e,t){const[n,i]=(0,r.useState)(e),a=(0,r.useRef)(null);return(0,r.useEffect)((()=>(a.current=window.setTimeout((()=>{i(e)}),t),()=>{a.current&&window.clearTimeout(a.current)})),[e,t]),n}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;const i=void 0!==t,[o,s]=(0,r.useState)(void 0===t?e:t),u=void 0===t?o:t,l=(0,r.useCallback)((e=>{i||s(e),n(e)}),[i,n]);return[u,l]}function d(e,t,n){(0,r.useEffect)((()=>{const{current:r}=e;r&&(null===n||void 0===n?r.removeAttribute(t):r.setAttribute(t,n.toString()))}),[e,t,n])}const f=e=>{let{children:t,src:n,autoPlay:s,onAutoPlayChange:f,playbackRate:h,onPlaybackRateChange:p,muted:g,onMutedChange:m,volume:v,onVolumeChange:y,playbackProvider:b,waitingTimeout:w,onError:x,videoRef:E,fullscreenContainerRef:T,playbackProviderRef:S,resets:k=0}=e;const A=r.useRef(null),C=E??A,I=r.useRef(null),_=T??I;d(C,"autoplay",!!s||void 0),d(C,"muted",g);const M=function(e,t,n,o,s){let u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a;const l=(0,r.useRef)(null),c=s??l;return(0,r.useEffect)((()=>{if(!t.current)return;const n=new e(t.current);c.current=n}),[t,e,o]),(0,r.useEffect)((()=>{const e=i(c.current);return e.addEventListener("error",u),()=>{e.removeEventListener("error",u)}}),[u]),(0,r.useEffect)((()=>{i(c.current).setSource(n)}),[n]),(0,r.useEffect)((()=>{const e=i(c.current);return()=>{e.destroy()}}),[]),c}(b,C,n,k,S,x),R=function(e,t,n,a,o,s){const[u,l]=c(a,o,s);return(0,r.useEffect)((()=>{i(t.current).setAutoplay(u)}),[e,u,t,n]),{autoPlay:u,setAutoPlay:l}}(n,M,C,!1,s,f),P=function(e,t,n,a,o){const[s,u]=c(n,a,o),[l,d]=(0,r.useState)(!1),[f,h]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),m=(0,r.useCallback)((t=>{const n=i(e.current);t?(n.pause(),u(!0)):n.play().then((()=>{u(!1),h(!0)})).catch((()=>{u(!0),g(!0)}))}),[e,u]);return(0,r.useEffect)((()=>{const e=i(t.current),n=()=>{h(!1),g(!1),d(!1),u(!e.autoplay)},r=()=>{e.loop||u(!0)},a=()=>{u(!1)},o=()=>{u(!0)},s=()=>{d(!0),e.autoplay&&m(!1)},l=()=>{f||e.paused||h(!0)};return e.addEventListener("loadstart",n),e.addEventListener("timeupdate",l),e.addEventListener("canplay",s,{once:!0}),e.addEventListener("ended",r),e.addEventListener("play",a),e.addEventListener("pause",o),()=>{e.removeEventListener("loadstart",n),e.removeEventListener("timeupdate",l),e.removeEventListener("canplay",s),e.removeEventListener("ended",r),e.removeEventListener("play",a),e.removeEventListener("pause",o)}}),[t,n,m,u,f]),{paused:s,setPaused:m,playbackStarted:f,playbackFailed:p,canPlay:l}}(M,C,!R.autoPlay),[D,N]=function(e,t){const[n,a]=(0,r.useState)(0),[o,s]=(0,r.useState)(0),[u,l]=(0,r.useState)(0);return(0,r.useEffect)((()=>{if(0===u)return;const t=i(e.current);a(o),t.seek(o)}),[e,o,u,a]),(0,r.useEffect)((()=>{const e=i(t.current),n=()=>{a(e.currentTime)};return e.addEventListener("timeupdate",n),()=>e.removeEventListener("timeupdate",n)}),[t]),[n,e=>{s(e),l(Date.now())}]}(M,C),O=M.current?.getDuration()??NaN,L=function(e,t,n,a,o){const[s,u]=c(n,a,o);return(0,r.useEffect)((()=>{i(e.current).setMute(s)}),[e,t,s]),{muted:s,setMuted:u}}(M,C,!1,g,m),j=function(e,t,n,a){const[o,s]=c(t,n,a);return(0,r.useEffect)((()=>{i(e.current).setVolume(o)}),[e,o]),{volume:o,setVolume:s}}(M,1,v,y),U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;const[n,a]=(0,r.useState)(!1),o=l(n,t),s=(0,r.useCallback)((()=>{n||a(!0)}),[n]),u=(0,r.useCallback)((()=>{n&&a(!1)}),[n]);return(0,r.useEffect)((()=>{const t=i(e.current);if(e.current)return t.addEventListener("waiting",s),t.addEventListener("playing",u),t.addEventListener("canplay",u),t.addEventListener("timeupdate",u),()=>{t.removeEventListener("waiting",s),t.removeEventListener("playing",u),t.removeEventListener("canplay",u),t.removeEventListener("timeupdate",u)}}),[e,s,u]),!1!==n&&o}(C,w),F=function(e,t){const[n,a]=(0,r.useState)([]),[o,s]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const n=i(t.current),r=()=>{s(null)},o=()=>{const t=i(e.current);a(t.getTextTracks())};return n.addEventListener("loadstart",r),n.addEventListener("loadedmetadata",o),n.textTracks.addEventListener("addtrack",o),()=>{n.removeEventListener("loadstart",r),n.removeEventListener("loadedmetadata",o),n.textTracks.removeEventListener("addtrack",o)}}),[t,e]),(0,r.useEffect)((()=>{i(e.current).setTextTrack(o)}),[e,o]),{selectedTextTrack:o,setSelectedTextTrack:s,textTracks:n}}(M,C),B=function(e,t){const[n,a]=(0,r.useState)([]),[o,s]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const n=i(t.current),r=()=>{s(null)},o=()=>{const t=i(e.current);a(t.getAudioTracks()),s(t.getActiveAudioTrack())};return n.addEventListener("loadstart",r),n.addEventListener("loadedmetadata",o),n.audioTracks?.addEventListener("addtrack",o),n.audioTracks?.addEventListener("removetrack",o),()=>{n.removeEventListener("loadstart",r),n.removeEventListener("loadedmetadata",o),n.audioTracks?.removeEventListener("addtrack",o),n.audioTracks?.removeEventListener("removetrack",o)}}),[t,e]),(0,r.useEffect)((()=>{i(e.current).setAudioTrack(o)}),[e,o]),{selectedAudioTrack:o,setSelectedAudioTrack:s,audioTracks:n}}(M,C),z=function(e,t){const[n,a]=(0,r.useState)([]),[o,s]=(0,r.useState)("auto");return(0,r.useEffect)((()=>{const n=i(t.current),r=i(e.current),o=()=>{a(r.getBitrateOptions())};return n.addEventListener("loadedmetadata",o),()=>n.removeEventListener("loadedmetadata",o)}),[t,e]),(0,r.useEffect)((()=>{const t=i(e.current);"auto"===o?t.setBitrateAuto():t.setBitrateOption(o)}),[e,o]),{selectedBitrate:o,setSelectedBitrate:s,bitrateOptions:n}}(M,C),V=function(e,t){const[n,a]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const n=i(t.current),r=()=>{const t=i(e.current);a(t.getBufferedTimeRanges())};return n.addEventListener("progress",r),()=>n.removeEventListener("progress",r)}),[e,t]),n}(M,C),H=function(e,t){const[n,a]=(0,r.useState)(!!u.Z.fullscreenElement),[o,s]=(0,r.useState)(!1);(0,r.useEffect)((()=>{s(!u.Z.fullscreenEnabled&&null!==t.current&&"webkitEnterFullscreen"in t.current);const e=()=>{a(!!u.Z.fullscreenElement)};return u.Z.addEventListener("fullscreenchange",e),()=>{u.Z.removeEventListener("fullscreenchange",e)}}),[]);const l=()=>{const n=i(e.current),r=i(t.current);u.Z.fullscreenEnabled?u.Z.requestFullscreen(n):o&&r.webkitEnterFullscreen()};return{fullscreenEnabled:u.Z.fullscreenEnabled||o,fullscreenActive:n,toggleFullscreen:()=>{n?u.Z.exitFullscreen():l()},enterFullscreen:l,exitFullscreen:()=>{u.Z.exitFullscreen()}}}(_,C),q=function(e,t,n,a){const[o,s]=c(t,n,a);return(0,r.useEffect)((()=>{i(e.current).setPlaybackRate(o)}),[e,o]),{playbackRate:o,setPlaybackRate:s}}(M,1,h,p),K={seek:N,currentTime:D,duration:O,waiting:U,videoRef:C,bufferedTimeRanges:V,fullscreenContainerRef:_,isLive:!!M.current&&M.current.isLive(),src:n,...L,...z,...F,...B,...q,...j,...R,...P,...H};return r.createElement(o.Provider,{value:K},"function"===typeof t?t(K):t)};class h{constructor(e){this.video=e}destroy(){this.video.innerHTML=""}getDuration(){return this.video.duration}play(){return this.video.play()}pause(){this.video.pause()}seek(e){this.video.currentTime=e}setMute(e){this.video.muted=e}setSource(e){const t=document.createElement("source");t.src=e,e.endsWith(".m3u8")&&(t.type="application/x-mpegURL"),e.endsWith(".mpd")&&(t.type="application/dash+xml"),this.video.appendChild(t),this.video.load()}setVolume(e){this.video.volume=e}setPlaybackRate(e){this.video.playbackRate=e}setAutoplay(e){this.video.autoplay=e}getTextTracks(){return Array.from(this.video.textTracks).filter((e=>{let{language:t}=e;return!!t}))}setTextTrack(e){const t=Array.from(this.video.textTracks);if(t.forEach((e=>{e.mode="disabled"})),null===e)return;const n=t.find((t=>t.language===e.language));n&&(n.mode="showing")}getAudioTracks(){return[]}getActiveAudioTrack(){return null}setAudioTrack(e){console.error(`${this.constructor.name} has not implemented setAudioTrack`)}getBufferedTimeRanges(){const{buffered:e}=this.video;return Array.from(Array(e.length).keys()).map((t=>({start:e.start(t),end:e.end(t)})))}setBitrateOption(e){}setBitrateAuto(){}getBitrateOptions(){return[]}_handlers={};addEventListener(e,t){const n=this._handlers[e]??[];n.push(t),this._handlers[e]=n}removeEventListener(e,t){const n=this._handlers[e]??[];this._handlers[e]=n.filter((e=>e!==t))}dispatchEvent(e,t){(this._handlers[e]??[]).forEach((e=>e(t)))}}class p extends Error{id=crypto.randomUUID();constructor(e){const t=new.target.prototype;super(e),Object.setPrototypeOf(this,t)}}class g extends p{}class m extends p{}class v extends p{}class y extends p{}class b extends p{}class w extends h{constructor(e){super(e),this.video=e,e.addEventListener("error",(()=>{this.dispatchEvent("error",new y)})),document.addEventListener("visibilitychange",this.visibilityChangeHandler)}visibilityChangeHandler=()=>{"visible"===document.visibilityState&&(this.video.currentTime=this.video.currentTime+.01)};destroy(){super.destroy(),document.removeEventListener("visibilitychange",this.visibilityChangeHandler)}setSource(e){const t=document.createElement("source");t.src=e,e.endsWith(".m3u8")&&(t.type="application/x-mpegURL"),e.endsWith(".mpd")&&(t.type="application/dash+xml"),t.addEventListener("error",(()=>{this.dispatchEvent("error",new y)})),this.video.innerHTML="",this.video.appendChild(t),this.video.load()}isLive(){return this.video.duration===1/0}setAudioTrack(e){const t=this.getAudioTracks(),n=this.video.audioTracks?.[t.findIndex((t=>t.language===e?.language))];n&&(n.enabled=!0)}getAudioTracks(){const e=this.video.audioTracks;return e?Array.from(e):[]}getActiveAudioTrack(){const{audioTracks:e}=this.video;return e?this.getAudioTracks().find(((t,n)=>e[n].enabled))??null:null}}},9434:(e,t,n)=>{"use strict";function r(e){window.parent&&window.parent!==window&&window.parent.postMessage(e,"*")}n.d(t,{f:()=>r})},3210:(e,t,n)=>{"use strict";function r(){const e=function(e){const t=document.createElement("a");t.href=e;const{port:n,protocol:r,hostname:i,pathname:a,search:o}=t;return{port:n,protocol:r,hostname:i,pathname:a,search:o}}(document.referrer),t=e.port?`:${e.port}`:"";return e.protocol+"//"+e.hostname+t}function i(e){if(null===e)return null;try{const t=new URL(e);if("http:"===t.protocol||"https:"===t.protocol)return e}catch{}return null}n.d(t,{LU:()=>r,yV:()=>i})},4337:(e,t,n)=>{"use strict";n.r(t);var r=n(3210),i=n(790);var a=n(7232);function o(e,t){this.window=e,this.url=t||"/beacon/media",this.useFallback=!1,this.hooks=[]}o.prototype.sendBeacon=function(e){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=encodeURIComponent(btoa(JSON.stringify(e))),r=encodeURIComponent(btoa("The Cloudflare Stream team is hiring! Email renan@cloudflare.com")),i=`m=${n}&cs=${r}`;return t.forEach((t=>{i=`${i}&${t}=${e[t]}`})),i}(Object.assign({},e,{req_id:crypto.randomUUID(),_ts:(new Date).valueOf().toString()}),["req_id","_ts","l","b","t","d","sz","v","i","cbr","cr","vp","vers","r"]);document.createElement("img").src=`${this.url}?${t}`,this.hooks.forEach((t=>t(e)))},o.prototype.hook=function(e){this.hooks.push(e)};const s=o,u=0,l=1,c=2,d=3;class f{constructor(e,t){let n=e.getPhysicalStats();e.flushTimeViewed(),this.r=t,this.l=e.firstDelay,this.t=e.timeViewed,this.d=e.downloadTime,this.sz=e.downloadSize,this.v=e.videoID,this.vp=n.inViewport,this.pv=n.height,this.ph=n.width,this.vers=e.playerVersion,this.i=e.impressionId,this.int={}}withIntegrated(e){this.int=e}print(){console.group(`[${this.seq}] TriggerEvent`),console.log("In Viewport",this.vp),console.log("Player Vertical",this.ph),console.log("Player Horizontal",this.pv),console.log("First Delay:",this.l,"ms"),console.log("Time Viewed:",this.t,"ms"),console.log("Download Time:",this.d,"ms"),console.log("Download Size:",this.sz,"bytes"),console.log("Video ID:",this.v),console.log("Impression ID:",this.i),console.log("Player Version:",this.vers),console.log("Reason:",this.r),console.groupEnd()}}class h{constructor(e){this.reason=e}toTrigger(e){return new f(e,this.reason)}}class p extends h{constructor(){super(d)}}class g extends h{constructor(){super(u)}}class m extends h{constructor(){super(l)}}class v extends h{constructor(){super(c)}}class y{constructor(e,t,n){this.t=n,this.cbr=e,this.cr=t}integrable(){return{bitrate:this.cbr,resolution:this.cr}}print(){console.group(`[${this.seq}] QualityEvent`),console.log("Timestamp:",this.t),console.log("Current Bitrate:",this.cbr,"bit/s"),console.log("Current Resolution",this.cr,"p"),console.groupEnd()}}class b{constructor(e,t,n){this.t=n,this.st=e,this.d=t}print(){console.group(`[${this.seq}] BufferEvent`),console.log("Timestamp:",this.t),console.log("Buffer Start:",this.st),console.log("Buffer Duration",this.d,"ms"),console.groupEnd()}}class w{constructor(e,t,n){this.t=n,this.f=e,this.to=t}print(){console.group(`[${this.seq}] SeekEvent`),console.log("Timestamp:",this.t),console.log("From:",this.f,"s"),console.log("To",this.to,"s"),console.groupEnd()}}n(72),n(9137),n(1957),n(6306),n(103),n(4592),n(8276),n(5082),n(2813),n(8222),n(8563),n(336),n(7512);const x=()=>(new Date).getTime();class E{constructor(e){this.paused=!1,this.spaces=new Map,e.forEach((e=>{this.spaces.set(e,x())}))}pause(){Array.from(this.spaces.keys()).forEach((e=>this.update(e))),this.paused=!0}play(){Array.from(this.spaces.keys()).forEach((e=>this.discard(e))),this.paused=!1}discard(e){this.spaces.set(e,x())}update(e){let t=x(),n=this.spaces.get(e);if(!n)throw Error(`cannot update unknown tag: ${e}`);return this.spaces.set(e,t),this.paused?0:t-n}}class T{constructor(e,t){let n=new Map,r=new Map,i=new Map;t.forEach((e=>{let{tag:t,snapshot:a}=e;n.set(t,{}),r.set(t,a),i.set(t,0)})),this.canonical=e,this.accumulators=n,this.snapshots=r,this.totals=i}integrate(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.snapshots.get(e),i=this.accumulators.get(e);this.totals.set(e,this.totals.get(e)+t),Object.keys(r).forEach((e=>{let n=r[e]*t,a=i[e]||0;i[e]=a+n})),n&&this.snapshots.set(e,n)}get(e){let t=this.accumulators.get(e);if(!t)throw Error(`cannot get unknown tag: ${e}`);let n=this.totals.get(e),r=this.totals.get(this.canonical);if("undefined"===typeof r)throw Error(`canonical total against tag ${this.canonical} not found`);let i=r/n,a=Object.assign({},t);return Object.keys(i).forEach((e=>{a[e]=Math.round(a[e]*i)})),a}}var S=n(792);const k="control",A="quality";class C{constructor(e){let{element:t,site:n,src:r,beaconInterval:i=3e4,playerVersion:o=a.bl}=e;this.element=t,this._setVideoID(r),this.init(),this.beaconClient=new s(window,n),this.beaconInterval=i,this.playerVersion=o,C.metrics.push(this),this.debug=!1}_setVideoID(e){this.impressionId=crypto.randomUUID().replace(/-/g,""),this.videoID=(0,S.B)(e)}updateSrc(e){this.flushEvents(),this._setVideoID(e)}flushEvents(){this.pushEvent(new v)}withDebug(e){return this.debug=!!e,this}init(){this.seq=0,this.lastTimeViewedUpdate=(new Date).getTime(),this.start=0,this.firstDelay=0,this.timer=new E([A,k]),this.integral=new T(k,[{tag:k,snapshot:{}},{tag:A,snapshot:new y(0,0,0).integrable()}]),this.compatTimeViewedTotal=0,this.compatBufferTimeTotal=0,this.compatDownloadTimeTotal=0,this.compatDownloadSizeTotal=0,this.compatCurrentBitrate=0,this.compatCurrentResolution=0,this.resetAccumulated()}pushEvent(e){let t=(new Date).getTime();switch(e.seq=this.seq++,e.constructor){case m:this.start||(this.start=t),this.discardTimeViewedUpdate(),this.intervalId=setInterval((()=>{this.pushEvent(new g)}),this.beaconInterval),this.pushEvent(e.toTrigger(this));break;case v:this.updateTimeViewed(),clearInterval(this.intervalId),this.pushEvent(e.toTrigger(this));break;case p:case g:this.updateTimeViewed(),this.pushEvent(e.toTrigger(this));break;case f:return void this.sendMetrics(e);case b:this.compatBufferTimeTotal+=e.d,this.bufEv.push(e);break;case y:this.qualityEv.push(e);let n=this.timer.update(A);this.integral.integrate(A,n,e.integrable()),this.compatCurrentBitrate=e.cbr,this.compatCurrentResolution=e.cr;break;case w:this.seekEv.push(e);break;case class{constructor(e,t){this.size=e,this.duration=Math.round(t)}print(){throw Error("SegmentEvent is intermediate state; should not be printed")}}:this.firstDelay||(this.firstDelay=t-this.start,this.discardTimeViewedUpdate()),this.downloadTime+=e.duration,this.downloadSize+=e.size,this.compatDownloadTimeTotal+=e.duration,this.compatDownloadSizeTotal+=e.size;break;default:console.warn("Unknown event type received:",e)}}resetAccumulated(){this.timeViewed=0,this.downloadTime=0,this.downloadSize=0,this.bufEv=[],this.qualityEv=[],this.seekEv=[]}isVisible(){return e=this.element,(t=e.getBoundingClientRect()).top>=-e.offsetHeight&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth);var e,t}discardTimeViewedUpdate(){this.timer.discard(k)}updateTimeViewed(){let e=this.timer.update(k);if(e>3*this.beaconInterval)return void this.discardTimeViewedUpdate();this.timeViewed+=e,this.compatTimeViewedTotal+=e,this.integral.integrate(k,e);let t=this.timer.update(A);this.integral.integrate(A,t)}flushTimeViewed(){this.updateTimeViewed()}getPhysicalStats(){let e;return e=this.isVisible()?1:0,{inViewport:e,height:this.element.offsetHeight,width:this.element.offsetWidth}}getIntegrated(){let e=this.integral.get(A),{bitrate:t,resolution:n}=e;return{twqb:t,twqr:n}}getMetrics(e){return e.withIntegrated(this.getIntegrated()),{tr:e,bev:this.bufEv,qev:this.qualityEv,sev:this.seekEv,l:e.l,b:this.compatBufferTimeTotal,t:this.compatTimeViewedTotal,d:this.compatDownloadTimeTotal,sz:this.compatDownloadSizeTotal,v:this.videoID,i:this.impressionId,cbr:this.compatCurrentBitrate,cr:this.compatCurrentResolution,vp:e.vp,vers:this.playerVersion,r:e.r}}printMetrics(e){console.group(`[${e.tr.seq}] Beacon`),[e.tr,...e.qev,...e.bev,...e.sev].sort(((e,t)=>e.seq>t.seq)).forEach((e=>e.print())),console.groupEnd()}sendMetrics(e){if(!this.start)return;const t=this.getMetrics(e);return this.debug&&this.printMetrics(t),this.beaconClient.sendBeacon(t),this.resetAccumulated(),this}getBeaconClient(){return this.beaconClient}}C.handlerNames=Object.getOwnPropertyNames(C.prototype).filter((e=>0===e.indexOf("on"))),C.metrics=[],window.addEventListener("beforeunload",(function(){for(let e of C.metrics)e.flushEvents()}));const I=C;var _=n(5152),M=n(3890),R=n(7867),P=n(4449),D=n(3807),N=n(3661);const O={HLS:"hls",LLHLS:"llhls",DASH:"dash",WHEP:"whep"};const L=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.async=!0,r.src=e,r.onload=t,r.onerror=n,document.body.appendChild(r)}))};var j=null,U=function(){j=null};const F=function(){var e=window;return e.google&&e.google.ima?Promise.resolve(e.google.ima):j||((j=L("//imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){return e.google.ima}))).then(U).catch(U),j)};var B=n(176);function z(e){const t=(0,_.useRef)(e);(0,_.useEffect)((()=>{t.current=e}),[e]);const n=(0,_.useCallback)((function(){return t.current(...arguments)}),[]);return n}var V=n(1857),H=n(6626),q=n(1638),K=n(3038);const W=N.iv` position: absolute; top: 0; right: 0; bottom: 0; left: 0; `,G=N.iv` position: absolute; inset: 0; height: 100%; width: 100%; z-index: 1; pointer-events: none; `,$=N.iv` & > * { pointer-events: auto; } `,X=(0,_.createContext)({waitingOnAdManager:!1,setWaitingOnAdManager:()=>{},adPlaying:!1,setAdPlaying:()=>{},onAdStart:()=>{},onAdEnd:()=>{},onAdTimeout:()=>{}});function Y(){}function Q(e){let{children:t,adUrl:n,onAdStart:r=Y,onAdEnd:i=Y,onAdTimeout:a=Y,onAdManagerLoaded:o=Y,...s}=e;const[u,l]=(0,_.useState)(null!==n),[c,d]=(0,_.useState)(!1);return(0,_.useEffect)((()=>{u||o()}),[u,o]),null!==n?_.createElement(X.Provider,{value:{adPlaying:c,setAdPlaying:d,waitingOnAdManager:u,setWaitingOnAdManager:l,onAdStart:r,onAdEnd:i,onAdTimeout:a}},_.createElement(J,{children:t,adUrl:n,videoRef:s.videoRef})):t({adPlaying:c,waitingOnAdManager:u})}function J(e){let{children:t,videoRef:n,adUrl:r}=e;const{ima:i,error:a}=function(){const[e,t]=(0,_.useState)(),[n,r]=(0,_.useState)(),{setWaitingOnAdManager:i}=(0,_.useContext)(X);return(0,_.useEffect)((()=>{F().then(t).catch((e=>{r(e),i(!1)}))}),[]),{ima:e,error:n}}(),o=(0,_.useRef)(null),{adPlaying:s,waitingOnAdManager:u}=(0,_.useContext)(X);return a?t({adPlaying:s,waitingOnAdManager:u}):_.createElement(_.Fragment,null,t({adPlaying:s,waitingOnAdManager:u}),_.createElement("div",{ref:o,className:W}),i&&_.createElement(Z,{adContainerRef:o,videoRef:n,adUrl:r,ima:i},(e=>{let{pause:t,play:n,paused:r,muted:i,volume:a,setMuted:o,setVolume:s}=e;return _.createElement("div",{className:(0,q.A)(K.ec,G)},_.createElement("div",{className:(0,q.A)(K.mb,K.FI,$)},_.createElement(V.e,{paused:r,onClick:()=>r?n():t()}),_.createElement(H.xj,{muted:i,volume:a,setMuted:o,setVolume:s})))})))}const Z=e=>{let{adUrl:t,ima:n,videoRef:r,adContainerRef:i,children:a}=e;const{adPlaying:o}=(0,_.useContext)(X),s=function(e,t,n,r){const i=(0,_.useRef)(!1),{setWaitingOnAdManager:a,setAdPlaying:o,onAdEnd:s,onAdStart:u,onAdTimeout:l}=(0,_.useContext)(X),c=(0,_.useRef)(),d=(0,_.useRef)(),f=(0,_.useRef)(),h=(0,_.useRef)(-1),p=(0,_.useRef)(!1),g=z(u),m=z(s),v=z(l),[y,b]=(0,_.useState)(!1),[w,x]=(0,_.useState)(t.current?.volume??1),[E,T]=(0,_.useState)(t.current?.muted??!0);return(0,_.useEffect)((()=>{const s=(0,B.Z)(t.current),u=(0,B.Z)(n.current);c.current=new e.AdDisplayContainer(u,s),d.current=new e.AdsLoader(c.current),d.current.addEventListener(e.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(n){clearTimeout(h.current),a(!1);const r=new e.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,f.current=n.getAdsManager(s,r),f.current.addEventListener(e.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(){s.pause()})),f.current.addEventListener(e.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(){o(!1),s.play()})),f.current.addEventListener(e.AdEvent.Type.STARTED,(function(){o(!0);const e=t.current,n=f.current;e&&n&&(x(e.volume),T(e.muted),n.setVolume(e.muted?0:e.volume))})),f.current.addEventListener(e.AdEvent.Type.PAUSED,(function(){b(!0)})),f.current.addEventListener(e.AdEvent.Type.RESUMED,(function(){b(!1)})),f.current.addEventListener(e.AdEvent.Type.LOADED,(function(e){const t=e.getAd();t&&!t.isLinear()&&(o(!1),s.play())})),f.current.addEventListener(e.AdEvent.Type.STARTED,g,!1),f.current.addEventListener(e.AdEvent.Type.COMPLETE,(function(){o(!1),m()}),!1)}),!1),d.current.addEventListener(e.AdErrorEvent.Type.AD_ERROR,(function(e){f.current&&f.current.destroy(),a(!1)}),!1);var l=new e.AdsRequest;function y(){if(!d.current)throw new Error("adsLoader is missing");d.current.contentComplete()}function w(t){if(!i.current&&!p.current){i.current=!0,t.preventDefault(),c.current&&c.current.initialize();var n=s.clientWidth,r=s.clientHeight;try{if(!f.current)throw new Error("adsManager is missing");f.current.init(n,r,e.ViewMode.NORMAL),f.current.start()}catch(e){s.play()}}}function E(){if(f.current){var t=s.clientWidth,n=s.clientHeight;f.current.resize(t,n,e.ViewMode.NORMAL)}}return l.adTagUrl=r,l.linearAdSlotWidth=s.clientWidth,l.linearAdSlotHeight=s.clientHeight,l.nonLinearAdSlotWidth=s.clientWidth,l.nonLinearAdSlotHeight=s.clientHeight/3,l.vastLoadTimeout=5e3,h.current=window.setTimeout((()=>{v(),p.current=!0}),5e3),d.current.requestAds(l),s.addEventListener("play",w),s.addEventListener("ended",y),window.addEventListener("resize",E),()=>{s.removeEventListener("play",w),s.removeEventListener("ended",y),window.removeEventListener("resize",E),clearTimeout(h.current)}}),[t,i,n,a]),{paused:y,muted:E,volume:w,pause:()=>f.current?.pause(),play:()=>f.current?.resume(),setMuted:e=>{T(e),f.current?.setVolume(e?0:w),t.current&&(t.current.muted=e)},setVolume:e=>{f.current?.setVolume(e),x(e),t.current&&(t.current.volume=e)}}}(n,r,i,t);return a&&o?a(s):null};var ee=n(5850);const te=e=>{let{onResize:t}=e;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};const t=(0,_.useRef)(-1),{videoRef:n}=(0,D.dT)(),r=(0,ee.OK)(),[i,a]=(0,_.useState)({videoHeight:0,videoWidth:0});(0,_.useEffect)((()=>{if(e)return function o(){t.current=requestAnimationFrame((()=>{const t=n.current;if(null!==t){const n=t.videoHeight||r?.dimensions.height||0,o=t.videoWidth||r?.dimensions.width||0;n===i.videoHeight&&o===i.videoWidth||(a({videoHeight:n,videoWidth:o}),e&&e({videoHeight:n,videoWidth:o}))}o()}))}(),()=>{cancelAnimationFrame(t.current)}}),[e,n,i,r])}(t),null};var ne=n(6693),re=n(5769);const ie=e=>{let{revalidate:t}=e;const n=(0,_.useRef)(-1);return(0,_.useEffect)((()=>(t(),n.current=window.setInterval(t,2e3),()=>{clearInterval(n.current)})),[t]),null},ae=N.iv` position: relative; padding-top: 56.25%; width: 100%; `,oe=N.iv` color: white; font-weight: 500; text-shadow: 0px 0px 1px black, 0px 0px 2px black, 0px 0px 4px black, 0px 0px 8px black; display: grid; place-items: center; position: absolute; inset: 0; background-color: black; background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; `,se=e=>{let{revalidate:t,poster:n}=e;return _.createElement("div",{className:ae},_.createElement("div",{className:oe,style:n?{backgroundImage:`url(${n})`}:{}},"Stream has not started yet.",_.createElement(ie,{revalidate:t})))};var ue=n(7535);const le=N.iv` position: absolute; top: 0; left: 0; bottom: 0; right: 0; height: 100%; width: 100%; background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; background-color: var(--letterbox-color); `,ce=e=>{let{poster:t}=e;const{playbackStarted:n}=(0,D.dT)();return!t||n?null:_.createElement("div",{className:le,style:{backgroundImage:`url(${t})`}})};var de=n(8851),fe=n.n(de);const he=a.bl?a.bl:"dev";"dev"!==a.oV&&fe().config("https://4f4068995ec7427cbdaab19321083a67@sentry.io/227831",{release:he,environment:a.oV});const pe=(e,t)=>{if("dev"==a.oV)throw e;if(!(e instanceof Error))throw fe().captureException(new Error("Caught value that was not an error"),{extra:{type:typeof e,value:e,json:JSON.stringify(e)}}),e;fe().captureException(e,t)},ge=fe(),me=e=>{let{provider:t}=e;return(0,_.useEffect)((()=>{const e=e=>{const{gapSize:t,currentTime:n}=e;if(t>4){const e=new Error("Large Gap Error");pe(e,{extra:{gapSize:t,currentTime:n}})}};return t.player.addEventListener("largegap",e),()=>{t.player.removeEventListener("largegap",e)}}),[t]),_.createElement(_.Fragment,null,null)},ve=window.fetch,ye=async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ve(...t);return be.forEach((e=>e(r.then((e=>e.clone())),...t))),r};let be=[];const we=e=>{be.push(e)};window.fetch=async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ye(...xe.reduce(((e,t)=>t(e)),t))};let xe=[];var Ee=n(8047),Te=n.n(Ee);const Se="stream.estimatedBandwidth";function ke(e,t){const n=t.find((t=>{let{start:n,end:r}=t;return e>=n&&e<r}));return n?n.end-e:0}var Ae="Invariant failed";function Ce(e,t){if(!e)throw new Error(Ae)}class Ie{constructor(e,t,n){Ce("number"===typeof e),Ce(!isNaN(e)),Ce("number"===typeof t),Ce(!isNaN(t)),void 0!==n&&Ce("function"===typeof n.now),this._decay=e,this._ewma=t||0,this._clock=n||Date,this._stamp="number"===typeof t?this._clock.now():0}insert(e){Ce("number"===typeof e),Ce(!isNaN(e));var t=this._clock.now(),n=t-this._stamp;this._stamp=t;var r=Math.pow(2,-n/this._decay);this._ewma=r*this._ewma+(1-r)*e}reset(e){Ce("number"===typeof e),Ce(!isNaN(e)),this._stamp=this._clock.now(),this._ewma=e}value(){return this._ewma}}class _e{bandwidthEstimate=new Me(0,2e3,5e3);effectiveBandwidthEstimate=new Me(0,2e3,5e3);latencyEstimate=new Me(0,2e3,5e3);lastSampled=performance.now();constructor(e){this.player=e}sampleBandwidth(e){this.lastSampled=performance.now(),this.bandwidthEstimate.sample(e),this.effectiveBandwidthEstimate.sample(this.getEffectiveBandwidthSample())}sampleLatency(e){this.lastSampled=performance.now(),this.latencyEstimate.sample(e),this.effectiveBandwidthEstimate.sample(this.getEffectiveBandwidthSample())}get estimatedNetworkLatencySeconds(){return Math.max(0,this.latencyEstimate.max()/1e3)}get estimatedBandwidth(){return this.bandwidthEstimate.min()}getEffectiveBandwidthSample(){const e=this.estimatedNetworkLatencySeconds,t=this.estimatedBandwidth,n=this.player.getStats().maxSegmentDuration;if(isNaN(n))return 0;const r=Math.max(n-e,0),i=r/n,a=t*i;return ge.setExtraContext({latencySeconds:e,bandwidthEstimate:t,segmentSeconds:n,downloadSecondsPerSegment:r,activeDownloadRatio:i,effectiveBandwidth:a}),a}getEffectiveBandwidth(){return this.effectiveBandwidthEstimate.min()}getMsSinceLastSample(){return performance.now()-this.lastSampled}reset(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.lastSampled=performance.now(),this.bandwidthEstimate.reset(e),this.latencyEstimate.reset(500),this.effectiveBandwidthEstimate.reset(e)}}class Me{constructor(e,t,n){this.fast=new Ie(t,e),this.slow=new Ie(n,e)}sample(e){this.fast.insert(e),this.slow.insert(e)}min(){return Math.min(this.fast.value(),this.slow.value())}max(){return Math.max(this.fast.value(),this.slow.value())}reset(e){this.fast.reset(e),this.slow.reset(e)}}let Re=!1;class Pe{hasStartedPlaying=!1;variants_=[];enabled_=!1;switch_=null;config_={};mediaElement=null;observer=new ResizeObserver((()=>{this.config_.restrictToElementSize&&this.considerChangingVariant(!0)}));watchForDPRChange=()=>{window.matchMedia(`(resolution: ${this.pixelRatio}dppx)`).addEventListener("change",(()=>{this.variants_.length>0&&this.considerChangingVariant(!0),this.watchForDPRChange()}),{once:!0})};lastSwitched=null;currentVariant=null;bytesMeasured=0;get pixelRatio(){return this.config_.ignoreDevicePixelRatio?1:window.devicePixelRatio??1}variantFitsLimits(e){let{video:t}=e;return!t||void 0===t.height||void 0===t.width||null===this.mediaElement||t.height<this.mediaElement.clientHeight*this.pixelRatio&&t.width<this.mediaElement.clientWidth*this.pixelRatio}fetchSpyHandler=async e=>{try{const t=performance.now(),n=await e,r=performance.now(),i=!!n.headers.get("content-type")?.includes("video"),a=Number(n.headers.get("content-length")??"0")<16e3;if(!i||a)return;const o=r-t;if(o<20)return void this.considerChangingVariant();this.hasStartedPlaying&&this.effectiveBandwidthEstimator.sampleLatency(o),this.considerChangingVariant();const s=n.clone().body?.getReader();let u=0,l=0,c=performance.now();s&&new ReadableStream({start:e=>{const t=async()=>{let n;try{n=await s.read()}catch(e){return}n.done||(u+=n.value.byteLength);const r=performance.now(),i=r-c;if(i>500||i>0&&n.done){const e=u-l,t=8*e/(i/1e3);this.effectiveBandwidthEstimator.sampleBandwidth(t),this.bytesMeasured+=e,l=u,c=r,this.considerChangingVariant()}n.done?e.close():(e.enqueue(n.value),t())};t()}})}catch(e){}};getSizeConstrainedVariants(){if(!this.config_.restrictToElementSize)return this.variants_;let e=!0;return this.variants_.filter(((t,n)=>{if(0===n)return!0;return!!this.variantFitsLimits(t)||!!e&&(e=!1,!0)}))}considerChangingVariant(e){if(!this.enabled_)return;const t=this.chooseVariant();if(this.currentVariant===t)return;if(e)return void this.switch(t);const n=null!==this.lastSwitched&&performance.now()-this.lastSwitched<1e3*(this.config_.switchInterval??0);!(this.getBufferLength()<6*this.getPlaybackRate())&&n||this.switch(t)}switch(e){this.switch_&&(this.switch_(e),this.currentVariant=e,this.lastSwitched=performance.now())}constructor(e,t){this.player=e,this.video=t,this.effectiveBandwidthEstimator=new _e(e),we(this.fetchSpyHandler),this.watchForDPRChange(),t.addEventListener("playing",(()=>{this.hasStartedPlaying=!0}))}init(e){this.hasStartedPlaying=!1,this.switch_=e,this.effectiveBandwidthEstimator.reset(this.getBandwidthEstimate())}setVariants(e){this.variants_=[...e].sort(((e,t)=>e.bandwidth-t.bandwidth))}configure(e){this.config_=e}enable(){this.enabled_=!0}disable(){this.currentVariant=null,this.enabled_=!1}stop(){this.enabled_=!1,this.switch_=null,this.variants_=[],this.config_={}}getPlaybackRate(){return this.video.playbackRate||1}getBufferLength(){const{currentTime:e}=this.video;return ke(e,this.player.getBufferedInfo().total)}getBandwidthEstimate(){ge.setExtraContext({defaultBandwidthEstimate:this.config_.defaultBandwidthEstimate,bytesMeasured:this.bytesMeasured});const e="number"===typeof this.config_.defaultBandwidthEstimate&&this.bytesMeasured<128e3?this.config_.defaultBandwidthEstimate:this.effectiveBandwidthEstimator.getEffectiveBandwidth();return isNaN(e)&&!Re?(pe(new Error("NaN Bandiwdth Estimate")),Re=!0,0):e}chooseVariant(){const e=this.getSizeConstrainedVariants(),t=this.getBufferLength()>15,n=this.currentVariant?e.indexOf(this.currentVariant):-1,r=e[n+1];if(this.effectiveBandwidthEstimator.getMsSinceLastSample()>15e3&&t&&void 0!==r)return r;const{bandwidthDowngradeTarget:i=.95,bandwidthUpgradeTarget:a=.85}=this.config_,o=this.getBandwidthEstimate(),s=this.getPlaybackRate(),u=e.reduce(((t,n,r)=>{const u=s*n.bandwidth,l=s*(e[r+1]||{bandwidth:1/0}).bandwidth;return o>=u/i&&o<=l/a?n:t})),l=this.currentVariant&&n>e.indexOf(u),c=this.currentVariant??e[0];return l&&t?c:u}segmentDownloaded(e,t){}release(){}playbackRateChanged(e){}setMediaElement(e){this.mediaElement&&this.observer.unobserve(this.mediaElement),this.mediaElement=e,this.observer.observe(e)}}Te().polyfill.installAll();Te().Player.isBrowserSupported();function De(e){return new Map(Object.entries(e).map((e=>{let[t,n]=e;return[n,t]})))}const Ne=De(Te().util.Error.Category),Oe=De(Te().util.Error.Severity),Le=De(Te().util.Error.Code);class je extends D.lZ{abr=null;constructor(e){super(e),this.player=new(Te().Player)(this.video),this.player.addEventListener("error",(e=>{if(e instanceof Te().util.Error)pe(e,{extra:{type:"Shaka error",Category:Ne.get(e.category),Code:Le.get(e.code),Severity:Oe.get(e.severity)}}),e.severity===Te().util.Error.Severity.CRITICAL&&this.dispatchEvent("error",new D.KT);else{if(e instanceof Error)return void pe(e,{extra:{type:"Shaka unhandled native error"}});pe(e)}})),this.initialBandwidthEstimate=function(){const e=navigator.connection?.downlink;if(void 0!==e)return 1e6*e;let t=null;try{t=localStorage.getItem(Se)}catch(e){}if(null!==t){const e=parseInt(t);if(!isNaN(e))return e}return 3e6}(),this.configureShaka({streaming:{useNativeHlsOnSafari:!1},abr:{defaultBandwidthEstimate:this.initialBandwidthEstimate,restrictToElementSize:!0},abrFactory:()=>(this.abr=new Pe(this.player,e),this.abr)}),this.video.addEventListener("play",(()=>{this.configureShaka({manifest:{dash:{ignoreMinBufferTime:void 0}},streaming:{rebufferingGoal:void 0,bufferingGoal:30}})})),this.video.addEventListener("suspend",(()=>{this.isLive()&&this.seek(this.player.seekRange().end)})),we(this.fetchSpyHandler)}fetchSpyHandler=async(e,t)=>{try{const t=await e;t.headers.get("content-type")?.includes("mp4")&&t.status>=500&&this.player.isLive()&&ke(this.video.currentTime,this.player.getBufferedInfo().total)<1&&this.seek(this.player.seekRange().end)}catch(e){if(!(e instanceof Error)||"AbortError"!==e.name)throw e}};setSource(e){if(!this.video.autoplay)switch(this.video.getAttribute("preload")){case"metadata":this.configureShaka({manifest:{dash:{ignoreMinBufferTime:!0}},streaming:{rebufferingGoal:1,bufferingGoal:1}});break;case"none":this.configureShaka({manifest:{dash:{ignoreMinBufferTime:!0}},streaming:{rebufferingGoal:0,bufferingGoal:0}})}this.player.load(e).then((()=>{this.configureShaka({cmcd:{useHeaders:!this.isLive()}})})).catch((e=>{const[t,n]=e.data;switch(n){case 404:this.dispatchEvent("error",new D.H6);break;case 401:case 403:this.dispatchEvent("error",new D.w);break;default:this.dispatchEvent("error",new D.Ko)}}))}configureCMCD(e){this.configureShaka({cmcd:{contentId:`Cloudflare Stream Player ${a.bl}`,useHeaders:!this.isLive(),enabled:"true"===new URLSearchParams(location.search).get("cmcd")||e}})}play(){return this.isLive()&&this.seek(this.player.seekRange().end),super.play()}configureShaka(e){this.player.configure(e)}setBitrateOption(e){let{track:t}=e;const n=this.player.getVariantTracks().find((e=>e.active)),r=this.player.getVariantTracks().find((e=>e.height===t.height&&e.language===n?.language));r&&(this.configureShaka({abr:{enabled:!1}}),this.player.selectVariantTrack(r,!0))}getActiveAudioTrack(){const e=this.player.getVariantTracks().find((e=>e.active));return e?{label:e.language,language:e.language}:null}setAudioTrack(e){if(this.getAudioTracks().length<2)return;const{enabled:t}=this.player.getConfiguration().abr;this.configureShaka({abr:{enabled:!1}}),this.player.selectAudioLanguage(Te().util.LanguageUtils.normalize(e?.language??"original")),this.configureShaka({abr:{enabled:t}})}getAudioTracks(){return this.player.getAudioLanguages().map((e=>({language:e,label:e})))}setBitrateAuto(){this.configureShaka({abr:{enabled:!0}})}getBitrateOptions(){const e=this.player.getVariantTracks(),[t]=e;return e.filter((e=>e.language===t.language)).map((e=>({height:e.height??0,bitrate:e.bandwidth,track:e})))}getTextTracks(){return this.player.getTextTracks().map((e=>({label:e.label||e.language||"",language:e.language,track:e})))}setTextTrack(e){null===e?this.player.setTextTrackVisibility(!1):(this.player.selectTextTrack(e.track),this.player.setTextTrackVisibility(!0))}setLogLevel(e){const t=Te();t.log&&t.log.setLevel(t.log.Level[e])}isLive(){return this.player.isLive()}seek(e){void 0!==e&&(this.video.currentTime=isNaN(this.video.duration)?e:Math.min(e,this.video.duration-.1))}destroy(){var e;e=this.fetchSpyHandler,be=be.filter((t=>t!==e)),this.player.destroy()}getDuration(){return this.player.seekRange().end}getDebugInfo(){const{estimatedBandwidth:e,...t}=this.player.getStats();return{...t,estimatedBandwidth:this.abr?.effectiveBandwidthEstimator.estimatedBandwidth,estimatedEffectiveBandwidth:e,estimatedNetworkLatency:this.abr?.effectiveBandwidthEstimator.estimatedNetworkLatencySeconds,bufferedInfo:this.player.getBufferedInfo()}}}function Ue(e){return e.current instanceof je}function Fe(e,t,n,r,i){(0,_.useEffect)((function(){const e=(0,B.Z)(t.current);if(!Ue(n))return;n.current.configureCMCD(!0);let r=[];const i=function(e,t){let n=0,r=0,i=!1;const a=()=>{if(0!==n)return;0===e.buffered.length&&0===e.played.length&&(i=!0);let t=!1;const{buffered:r,currentTime:a}=e;for(let e=0;e<r.length;e++)a>r.start(e)&&a<r.end(e)&&(t=!0);t||(n=Date.now())},o=()=>{0!==n&&(0!==r?(t({waitingTime:Date.now()-n,initialBuffer:i}),n=0,r=0,i=!1):r++)};return e.addEventListener("waiting",a),e.addEventListener("timeupdate",o),()=>{e.removeEventListener("waiting",a),e.removeEventListener("timeupdate",o)}}(e,(e=>{let{initialBuffer:t,waitingTime:n}=e;r.push({type:t?"-cf.ibsd":"-cf.bsd",value:n})})),a=(o=e=>{let[t,n]=e;if(n?.headers instanceof Headers){if(!n.headers.has("CMCD-Session")||0===r.length)return[t,n];const e=n.headers.get("CMCD-Status");n.headers.set("CMCD-Status",[e,r.map((e=>{let{type:t,value:n}=e;return`${t}=${n}`}))].filter(Boolean).join(",")),r=[]}return[t,n]},xe.push(o),()=>{xe=xe.filter((e=>e!==o))});var o;return()=>{i(),a()}}),[r]),(0,_.useEffect)((()=>{const r=(0,B.Z)(t.current),a=()=>{if(!Ue(n))return;const t=n.current.player.getStats(),{streamBandwidth:r,height:i}=t;e.pushEvent(new y(r,i,(new Date).getTime()))},o=()=>{if(!Ue(n))return;const{estimatedBandwidth:e}=n.current.player.getStats();try{localStorage.setItem(Se,e.toString())}catch(e){}},s=()=>{Ue(n)&&(n.current.setLogLevel(i?"DEBUG":"NONE"),n.current.player.addEventListener("adaptation",a))};return r.addEventListener("loadedmetadata",s),r.addEventListener("progress",o),()=>{Ue(n)&&(n.current.player.removeEventListener("adaptation",a),r.removeEventListener("loadedmetadata",s),r.removeEventListener("progress",o))}}),[n,t,e,i])}class Be extends D.lZ{constructor(e){super(e),this.video=e,this.stream=new MediaStream,this.peerConnection=new RTCPeerConnection({iceServers:[{urls:"stun:stun.cloudflare.com:3478"}],bundlePolicy:"max-bundle"}),this.peerConnection.addTransceiver("video",{direction:"recvonly"}),this.peerConnection.addTransceiver("audio",{direction:"recvonly"}),this.peerConnection.ontrack=e=>{const t=e.track,n=this.stream.getTracks(),r=n.some((e=>"video"===e.kind)),i=n.some((e=>"audio"===e.kind));("video"!==t.kind||r)&&("audio"!==t.kind||i)||this.stream.addTrack(t)},this.peerConnection.addEventListener("iceconnectionstatechange",(e=>{"failed"===this.peerConnection.iceConnectionState&&this.dispatchEvent("error",new D.GM),"connected"===this.peerConnection.iceConnectionState&&(this.video.srcObject||(this.video.srcObject=this.stream))}))}destroy(){this.peerConnection.close()}setSource(e){this.peerConnection.addEventListener("negotiationneeded",(async t=>{const n=await this.peerConnection.createOffer();await this.peerConnection.setLocalDescription(n);let r=await new Promise((e=>{setTimeout((()=>{e(this.peerConnection.localDescription)}),1e3),this.peerConnection.onicegatheringstatechange=t=>"complete"===this.peerConnection.iceGatheringState&&e(this.peerConnection.localDescription)}));if(!r)throw Error("failed to gather ICE candidates for offer");for(;"closed"!==this.peerConnection.connectionState;){let t=await fetch(e,{method:"POST",mode:"cors",headers:{"content-type":"application/sdp"},body:r.sdp});if(201===t.status){let e=await t.text();return await this.peerConnection.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:e})),t.headers.get("Location")}{let e=await t.text();console.log(e)}await new Promise((e=>setTimeout(e,5e3)))}}))}isLive(){return"connected"===this.peerConnection.iceConnectionState}}const ze=N.iv` display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; justify-content: center; align-items: center; `,Ve=N.F4` 0% { transform: rotate(0deg); } 75% { transform: rotate(720deg); } 100% { transform: rotate(720deg); } `,He=N.iv` border: 0.25em solid #fff; border-left-color: transparent; border-right-color: transparent; height: 2em; width: 2em; border-radius: 4em; animation: ${Ve} 2s ease-in-out infinite; `,qe=()=>_.createElement("div",{className:ze},_.createElement("span",{className:He,"aria-label":"Buffering",role:"img"}));var Ke=n(5941),We=n(5261);var Ge=n(4618);function $e(e,t,n){const{resourceUrl:r}=(0,Ge.b)(e,t,n),[i,a]=(0,_.useState)(),o=function(){let{videoUID:e,isInput:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,r]=(0,_.useState)(),[i,a]=(0,_.useState)();return(0,_.useEffect)((()=>{void 0!==e&&void 0===n&&r(e)}),[e,n]),(0,_.useEffect)((()=>{t?void 0!==n&&e!==n&&a(Math.random().toString()):a(void 0)}),[e,n,t]),i}(i),s=(0,_.useRef)(-1),u=(0,_.useCallback)((()=>{const e=new AbortController,t=()=>e.abort();return clearTimeout(s.current),s.current=window.setTimeout((()=>{t(),u()}),5e3),fetch(`${r}/lifecycle`,{signal:e.signal}).then((e=>e.json())).then(a).finally((()=>clearTimeout(s.current))),t}),[r]);return(0,_.useEffect)((()=>{u()}),[u]),{lifecycle:i,revalidate:u,videoKey:o}}const Xe=(0,_.lazy)((()=>new Promise((()=>{}))));function Ye(e){let{value:t,children:n}=e;const[r,i]=(0,_.useState)((()=>t));return(0,_.useEffect)((()=>{let e=!0;return t instanceof Promise&&t.then((t=>{e&&i((()=>t))})),()=>{e=!1}}),[t]),r instanceof Promise?_.createElement(Xe,null):_.createElement(_.Fragment,null,n(r))}var Qe=n(4964);function Je(e){const[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(0),[a,o]=function(e){const[t,n]=(0,_.useState)(0),r=(0,_.useCallback)((()=>{n(0)}),[]);return(0,_.useEffect)((()=>{if(e){let e=Date.now();const t=setInterval((()=>{const t=Date.now();n((n=>n+t-e)),e=t}),250);return()=>{clearInterval(t),n((t=>t+Date.now()-e))}}}),[e]),[t/1e3,r]}(t),{videoRef:s}=(0,D.dT)();return(0,_.useEffect)((()=>{const{current:e}=s;if(!e)return;const t=()=>{n(!0)},r=()=>{n(!1)};return e.addEventListener("waiting",t),e.addEventListener("playing",r),()=>{e.removeEventListener("waiting",t),e.removeEventListener("playing",r)}}),[s]),(0,_.useEffect)((()=>{t&&i((e=>e+1))}),[t]),(0,_.useEffect)((()=>{i(0),o()}),[e]),{waitingCount:r,waitingSeconds:a}}const Ze=(0,_.lazy)((()=>Promise.all([n.e(567),n.e(402)]).then(n.bind(n,2402)))),et=N.iv` position: absolute; top: 0; left: 0; padding: 0.5rem; background: rgb(0 0 0 / 0.8); backdrop-filter: blur(8px); width: 100%; max-height: calc(100% - 8rem); overflow-y: auto; z-index: 1; font-size: 0.75rem; line-height: 1; font-family: monospace; p { margin: 0; } `,tt=N.iv` display: flex; margin-bottom: 0.5rem; justify-content: space-between; align-items: center; h5 { margin: 0; } button { padding: 0.15rem; color: black; font-size: 0.75rem; } `,nt=1e6,rt=e=>{let{videoId:t,loadingHeight:n,bandwidth:r,effectiveBandwidth:i,networkLatency:o,initialBandwidthEstimate:s,streamBandwidth:u,switchHistory:l,ttfbEstimate:c,drift:d,timeBehindLive:f,networkData:h}=e;const{currentTime:p,playbackRate:g,videoRef:m,bitrateOptions:v,bufferedTimeRanges:y}=(0,D.dT)(),[b,w]=(0,_.useState)(!1),[x,E]=(0,_.useState)(!1),T=(0,_.useRef)(-1),S=(0,_.useRef)(null),k=ke(p,y),A=(new Date).toUTCString(),C=m.current?.videoHeight;(0,_.useEffect)((()=>(T.current=window.setTimeout((()=>{E(!1)}),1e3),()=>{clearTimeout(T.current)})),[x]);const{waitingCount:I,waitingSeconds:M}=Je(t);return(0,Qe.x6)({keyName:"d",shiftKey:!0},(()=>{w(!b)})),b?_.createElement("div",{className:et},_.createElement("div",{className:tt},_.createElement("p",null,"Debug Info (Shift+D to disable)"),_.createElement("button",{onClick:()=>{E(!0),S.current&&navigator.clipboard.writeText(JSON.stringify({switchHistory:l,effectiveBandwidth:i,version:a.bl,now:A,videoId:t,userAgent:navigator.userAgent,initialBandwidthEstimate:s,currentHeight:C,bufferLength:k,waitingCount:I,waitingSeconds:M,currentTime:p,streamBandwidth:u,bitrateOptions:v,loadingHeight:n},null,2))}},x?"Copied!":"Click to copy")),h&&_.createElement(Ze,{data:h}),_.createElement("div",{ref:S},_.createElement(_.Fragment,null,_.createElement(it,{label:"Current Time",value:A}),_.createElement(it,{label:"Player version",value:a.bl})),_.createElement(it,{label:"Video ID",value:t}),_.createElement(it,{label:"UA",value:navigator.userAgent}),_.createElement(it,{label:"Current Screen Quality",value:C}),_.createElement(it,{label:"Current time",value:p.toFixed(2)}),_.createElement(it,{label:"Playback Rate",value:g}),_.createElement(it,{label:"Buffer time",value:k?.toFixed(2)}),_.createElement(it,{label:"Waiting Count",value:I}),_.createElement(it,{label:"Waiting Seconds",value:M.toFixed(2)}),_.createElement(it,{label:"Initial Estimated Bandwidth",value:s?`${(s/nt).toFixed(2)}Mbps`:null}),_.createElement(it,{label:"Current Network latency",value:o}),_.createElement(it,{label:"Current Bandwidth",value:r}),_.createElement(it,{label:"Current Effective Bandwidth",value:i?`${(i/nt).toFixed(2)}Mbps`:null}),_.createElement(it,{label:"Current Latency Estimate",value:c?`${Math.round(c)}ms`:void 0}),_.createElement(it,{label:"Drift",value:d}),_.createElement(it,{label:"Time Behind Live",value:void 0!==f?f.toFixed(2)+"s":void 0}),_.createElement(it,{label:"Current Loading Quality",value:n}),_.createElement(it,{label:"Current Loading Bandwidth Required",value:void 0!==u?`${(u/nt).toFixed(2)}Mbps`:null}),_.createElement("p",null,"Available Qualities:"),v.map(((e,t)=>{let{height:n,bitrate:r}=e;return _.createElement("p",{key:`${n}/${r}/${t}`},"Height: ",n," | Required Bandwidth:"," ",(r/nt).toFixed(2),"Mbps")})),l&&_.createElement(_.Fragment,null,_.createElement("p",null,"Quality Switch History:"),l.filter((e=>{let{type:t}=e;return"variant"===t})).map((e=>{let{timestamp:t,bandwidth:n,fromAdaptation:r}=e;const i=v.find((e=>e.bitrate===n));return _.createElement("p",{key:t},"time: ",new Date(1e3*t).toISOString()," | quality:"," ",i?.height??"unknown rendition height"," | bandwidthRequired:"," ",((n??0)/nt).toFixed(2),"Mbps | autoSwitched: ",r.toString())}))))):null};function it(e){let{label:t,value:n}=e;return void 0===n||null===n?null:_.createElement("p",null,t,": ",n)}const at=e=>{let{hlsJsProvider:t}=e;const{videoId:n}=(0,re.A)(),[r,i]=(0,_.useState)(!1);(0,Qe.x6)({keyName:"d",shiftKey:!0},(()=>{i(!r)}));const{drift:a,config:o,bandwidthEstimate:s,ttfbEstimate:u,levels:l,currentLevel:c,latency:d}=t.hls;return _.createElement(rt,{videoId:n,effectiveBandwidth:s,initialBandwidthEstimate:o.abrEwmaDefaultEstimate,loadingHeight:l[c]?.height,streamBandwidth:l[c]?.bitrate,drift:a??void 0,ttfbEstimate:u,timeBehindLive:d})};const ot=e=>{let{shakaProvider:t}=e;const{videoId:n}=(0,re.A)(),r=t.getDebugInfo(),i=function(e){let{effectiveBitsPerSecond:t,measuredBitsPerSecond:n,maxSegmentDuration:r,measuredNetworkLatency:i}=e;const[a,o]=(0,_.useState)([]);return(0,_.useEffect)((()=>{void 0!==n&&void 0!==i&&o((e=>{const[a,...o]=e;return[...e.length>200?o:e,{effectiveMegaBitsPerSecond:Math.round(t/1e4)/100,measuredMegaBitsPerSecond:Math.round(n/1e4)/100,downloadTimePerSegment:Math.round(Math.max(0,r-i)/r*100),timestamp:(new Date).toISOString()}]}))}),[t,n,r,i]),a}({effectiveBitsPerSecond:r.estimatedEffectiveBandwidth,maxSegmentDuration:r.maxSegmentDuration,measuredBitsPerSecond:r.estimatedBandwidth,measuredNetworkLatency:r.estimatedNetworkLatency});return _.createElement(rt,{videoId:n,effectiveBandwidth:r.estimatedEffectiveBandwidth,networkLatency:r.estimatedNetworkLatency,bandwidth:r.estimatedBandwidth,initialBandwidthEstimate:t.initialBandwidthEstimate,loadingHeight:r.height,streamBandwidth:r.streamBandwidth,switchHistory:r.switchHistory,networkData:i})};function st(){return st=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},st.apply(this,arguments)}const ut=Promise.all([n.e(41),n.e(809)]).then(n.bind(n,7809)),lt=(0,_.lazy)((()=>Promise.all([n.e(525),n.e(233)]).then(n.bind(n,7233)))),ct=N.iv` display: flex; position: relative; justify-content: center; align-items: center; height: 100%; // create stacking context here to contain any children stacking // contexts and prevent them from rendering on top of reach-portal's z-index: 0; /* Prevent elements that may overflow outside the player's container from doing so. */ overflow: hidden; background-color: var(--letterbox-color); `,dt=N.iv` position: fixed; top: 0; right: 0; bottom: 0; left: 0; `,ft=N.iv` width: 100%; height: 100%; // This is important to prevent painting issues in iOS Safari // with elements that are overlayed on top of the video element // https://stackoverflow.com/questions/3683211/ipad-safari-mobile-seems-to-ignore-z-indexing-position-for-html5-video-elements/4895542 transform-style: preserve-3d; `;function ht(e){if(null===e.current)throw new Error("PlaybackProvider missing");return e.current}const pt=!!window.MediaSource,gt=(0,_.forwardRef)(((e,t)=>{let{adUrl:n,src:a,forceFlavor:o,metrics:s,muted:u,volume:l,autoPlay:c,letterboxColor:d,debug:f,cmcd:h,loop:p,defaultTextTrack:g,textTrackLabels:y,playbackRate:x,poster:E,preload:T,logo:S,title:k,channelLink:A,shareLink:C,hideUiAfterInactiveMs:I,onMutedChange:M,playsInline:R,controls:P,primaryColor:L,staging:j,customerDomainPrefix:U,onAbort:F,onAdStart:B,onAdEnd:z,onAdTimeout:V,onAdManagerLoaded:H,onCanPlay:K,onCanPlayThrough:W,onDurationChange:G,onEnded:$,onError:X,onLoadedData:Y,onLoadedMetadata:J,onLoadStart:Z,onPause:ae,onPlay:oe,onPlaying:le,onProgress:de,onRateChange:fe,onResize:he,onSeeked:pe,onSeeking:ge,onStalled:ve,onSuspend:ye,onTimeUpdate:be,onVolumeChange:we,onWaiting:xe}=e;(e=>{(0,_.useEffect)((()=>{N.hi` * { box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -moz-tap-highlight-color: rgba(0, 0, 0, 0); } html { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif; color: #fff; --letterbox-color: ${e}; background: var(--letterbox-color); } :-webkit-full-screen { // safari's default is #fff and the background becomes visible // whenever the video needs letter/pillar boxing background: var(--letterbox-color); } // UI scaling is managed by setting font-size at different // breakpoints and using em units throughout @media (min-width: 1000px) { html { font-size: 17px; } } @media (min-width: 1200px) { html { font-size: 18px; } } @media (min-width: 1400px) { html { font-size: 22px; } } @media (max-width: 500px) { html { font-size: 15px; } } @media (max-width: 450px) { html { font-size: 14px; } } @media (max-width: 400px) { html { font-size: 13px; } } button, input { color: inherit; font: inherit; } button { padding: 0.3125em; } button, input[type=range] { cursor: pointer; } *:focus-visible { outline-color: white; } `}),[])})(void 0!==d&&CSS.supports("color",d)?d:"black");const{lifecycle:Ee,revalidate:Te,videoKey:Se}=$e(a,j,U),ke=(0,ne.D9)(Ee?.live??!1);(0,_.useEffect)((()=>{ke&&!Ee?.live&&$&&$()}),[ke,Ee?.live,$]);const Ae=(0,_.useMemo)((()=>!(Ee?.chunked??1)),[Ee?.chunked]),Ce=(0,_.useMemo)((()=>function(e,t,n,a){const{resourceUrl:o}=(0,i.G)(e,t,n),s=new URLSearchParams;return window.parent&&window!==window.parent&&s.set("parentOrigin",(0,r.LU)()),"llhls"===a&&s.set("protocol","llhlsbeta"),[{flavor:O.WHEP,src:`${o}/webRTC/play`},{flavor:O.HLS,src:`${o}/manifest/video.m3u8?${s}`,type:"application/x-mpegurl"},{flavor:O.LLHLS,src:`${o}/manifest/video.m3u8?${s}`,type:"application/x-mpegurl"},{flavor:O.DASH,src:`${o}/manifest/video.mpd?${s}`,type:"application/dash+xml"}].filter((e=>!a||e.flavor===a))}(a,j,U,o)),[a,j,U,o]),[Ie]=(0,_.useMemo)((()=>{let e=pt?[o||"dash"]:["hls"];return Ae&&(e=["whep"]),"llhls"===o&&(e=["llhls"]),[...Ce].sort((t=e,(e,n)=>{let{flavor:r}=e,{flavor:i}=n;return t.includes(r)?t.includes(i)?t.indexOf(r)-t.indexOf(i):-1:t.includes(i)?1:0}));var t}),[Ce,Ae,a,o]),_e=(0,_.useMemo)((()=>Ae?Be:"llhls"===o&&pt?ut.then((e=>{let{HlsProvider:t}=e;return t})):pt?je:D.lj),[Ae,pt]),Me={onAbort:F,onCanPlay:K,onCanPlayThrough:W,onDurationChange:G,onEnded:$,onError:X,onLoadedData:Y,onLoadedMetadata:J,onLoadStart:Z,onPause:ae,onPlay:oe,onPlaying:le,onProgress:de,onSeeked:pe,onSeeking:ge,onStalled:ve,onSuspend:ye,onTimeUpdate:be,onWaiting:xe,onRateChange:e=>{fe&&fe(e.currentTarget.playbackRate)},onVolumeChange:e=>{M&&e.currentTarget.muted!==u&&M(e.currentTarget.muted),we&&we(e.currentTarget.volume)}},Re=(0,_.useRef)(null),Pe=function(e){const[t,n]=(0,_.useState)(!1),r=(0,_.useRef)(-1);return(0,_.useEffect)((()=>{if(t)return;const i=()=>{e.current?n(!0):r.current=window.setTimeout(i,0)};return i(),()=>{clearTimeout(r.current)}}),[t,e]),t}(Re);(0,_.useImperativeHandle)(t,(()=>({play:()=>ht(Re).play(),pause:()=>ht(Re).pause(),destroy:()=>ht(Re).destroy(),seek:e=>ht(Re).seek(e),setSource:e=>ht(Re).setSource(e),ready:Pe})));const De=(0,_.useRef)(null),Ne=(0,_.useRef)(document.body);Fe(s,De,Re,h,f),function(e,t){(0,_.useEffect)((()=>{const n=t.current;if(!n)throw new Error("video element is missing");let r=0;const i={play:()=>{e.pushEvent(new m)},pause:()=>e.pushEvent(new v),ended:()=>e.pushEvent(new v),waiting:()=>{r||(r=(new Date).getTime())},canplay:()=>{if(!r)return;let t=(new Date).getTime();e.pushEvent(new b(r,t-r,t)),r=0}};Object.keys(i).forEach((e=>{const t=i[e];n.addEventListener(e,t)}));const a=function(e,t){let n=0;const r=()=>{if(e.seeking)return a();n=e.currentTime},i=()=>{n=e.currentTime,e.addEventListener("timeupdate",r)},a=()=>{e.removeEventListener("timeupdate",r)},o=()=>{n!==e.currentTime&&t(n,e.currentTime),i()};return e.addEventListener("seeking",a),e.addEventListener("seeked",o),i(),()=>{e.removeEventListener("seeking",a),e.removeEventListener("seeked",o),a()}}(n,((t,n)=>{e.pushEvent(new w(Math.floor(t),Math.floor(n),(new Date).getTime()))}));return()=>{a(),Object.keys(i).forEach((e=>{const t=i[e];n.removeEventListener(e,t)}))}}),[t,e])}(s,De);const Oe=function(){const[e,t]=(0,_.useState)(!!We.Z.fullscreenElement);return(0,_.useEffect)((()=>{const e=()=>{t(!!We.Z.fullscreenElement)};return We.Z.addEventListener("fullscreenchange",e),()=>{We.Z.removeEventListener("fullscreenchange",e)}}),[]),e}(),[Le,Ue]=(0,_.useState)(0),ze=(0,_.useMemo)((()=>`${Se}-${Le}`),[Se,Le]),Ve=(0,_.useCallback)((e=>{e instanceof D.GM&&Ue(Le+1)}),[Ue,Le]);return(0,_.useEffect)((()=>{if(Re.current)return ht(Re).addEventListener("error",Ve),()=>ht(Re).removeEventListener("error",Ve)}),[Re.current,Ve]),(0,_.useEffect)((()=>{const e=De.current;e&&_e===D.lj&&e.addEventListener("playing",(()=>{const t=e.playbackRate;e.addEventListener("ratechange",(n=>{n.stopImmediatePropagation(),e.addEventListener("ratechange",(e=>{e.stopImmediatePropagation()}),{capture:!0,once:!0}),e.playbackRate=t}),{capture:!0,once:!0}),e.playbackRate=.97}),{once:!0})}),[_e]),Ee?.isInput&&!Ee?.live?_.createElement(se,{poster:E,revalidate:Te}):_.createElement(re.o,{src:a,metrics:s,staging:j,customerDomainPrefix:U,flavor:Ie.flavor},_.createElement(ee.px,{textTrackLabels:y},_.createElement(Ke.Qz,{defaultLanguageCode:g},_.createElement("div",{key:ze,style:{"--primary-color":L&&CSS.supports("color",L)?L:"white"},className:(0,q.A)(ct,{[dt]:Oe})},_.createElement("video",st({ref:De,poster:E,className:ft,loop:p,playsInline:!0,preload:T,muted:u},Me)),_.createElement(Q,{adUrl:n,videoRef:De,onAdStart:B,onAdEnd:z,onAdTimeout:V,onAdManagerLoaded:H},(e=>{let{waitingOnAdManager:t,adPlaying:n}=e;return t||!_e?_.createElement(qe,null):_.createElement(_.Suspense,{fallback:_.createElement(qe,null)},_.createElement(Ye,{value:_e},(e=>_.createElement(ue.P1,{source:Ie,playbackProviderRef:Re},_.createElement(D.Y7,{videoRef:De,muted:u,volume:l,src:Ie.src,playbackProvider:e,autoPlay:c,playbackRate:x,playsInline:R,onMutedChange:M,onVolumeChange:we,onPlaybackRateChange:fe,playbackProviderRef:Re,fullscreenContainerRef:Ne,onError:()=>{X&&X()},resets:Le},(e=>{let{waiting:t,canPlay:r}=e;return _.createElement(_.Fragment,null,_.createElement(ce,{poster:E}),P&&!n&&_.createElement(lt,{hideUiAfterInactiveMs:I,source:Ie,details:{title:k,shareLink:C,channelLink:A,logo:S}}),_.createElement(Ke.OT,null),_.createElement(te,{onResize:he}),Ee?.isInput&&_.createElement(ie,{revalidate:Te}),P&&(t||c&&!r)&&_.createElement(qe,null),_e!==Be&&_.createElement(ue.QK,null),Re.current instanceof je&&_.createElement(_.Fragment,null,_.createElement(me,{provider:Re.current}),_.createElement(ot,{shakaProvider:Re.current})),Re.current?.hls&&_.createElement(at,{hlsJsProvider:Re.current}))}))))))}))))))}));class mt{setState=e=>{this.state={...this.state,...e},this.render()};play=async()=>{if(await this.waitForAdsManager(),!this.player)throw new Error("player missing");return this.player.play()};pause=()=>this.player&&this.player.pause();seek=e=>this.player&&this.player.seek(e);updateSrc=e=>{this.setState({src:e})};destroy=()=>{this.player?.destroy()};resolveProviderReady=null;async waitForPlaybackProvider(){return new Promise((e=>this.resolveProviderReady=e))}async waitForAdsManager(){return this.config.adURL&&await new Promise((e=>{this.setState({onAdsManagerLoaded:e})})),this}player=null;constructor(e,t,n){this.config=n,this.metrics=t;const{muted:r,controls:i,autoplay:a,poster:o,preload:s,defaultTextTrack:u,letterboxColor:l,primaryColor:c,title:d,logo:f,channelLink:h,shareLink:p}=n;this.state={src:e,muted:r,controls:i,preload:s??"none",autoplay:a,playbackRate:1,volume:1,letterboxColor:l??void 0,primaryColor:c??void 0,poster:o,videoHeight:0,videoWidth:0,seeking:!1,defaultTextTrack:u??void 0,title:d??"",logo:f??"",channelLink:h??"",shareLink:p??""},this.render()}render(){const{eventCb:e}=this.config;M.render(_.createElement(gt,{ref:e=>{this.player=e,null!==e&&e.ready&&this.resolveProviderReady&&(this.resolveProviderReady(),this.resolveProviderReady=null)},adUrl:this.config.adURL,poster:this.state.poster,src:this.state.src,muted:this.state.muted,preload:this.state.preload,playbackRate:this.state.playbackRate,volume:this.state.volume,defaultTextTrack:this.state.defaultTextTrack,textTrackLabels:this.state.textTrackLabels,autoPlay:this.state.autoplay,loop:this.state.loop,controls:this.state.controls,primaryColor:this.state.primaryColor,letterboxColor:this.state.letterboxColor,forceFlavor:this.config.forceFlavor,title:this.state.title,logo:this.state.logo,channelLink:this.state.channelLink,shareLink:this.state.shareLink,onAbort:()=>e("abort"),onAdStart:()=>e((0,R.U_)("adstart")),onAdEnd:()=>e((0,R.U_)("adend")),onAdTimeout:()=>e((0,R.U_)("adtimeout")),onAdManagerLoaded:this.state.onAdsManagerLoaded,onCanPlay:()=>e("canplay"),onCanPlayThrough:()=>e("canplaythrough"),onDurationChange:t=>{this.setState({duration:t.currentTarget.duration}),e("durationchange")},onEnded:()=>e("ended"),onError:()=>e("error"),onLoadedData:()=>e("loadeddata"),onLoadedMetadata:()=>e("loadedmetadata"),onLoadStart:()=>e("loadstart"),onPause:()=>e("pause"),onPlay:()=>e("play"),onPlaying:()=>e("playing"),onProgress:t=>{this.setState({buffered:t.currentTarget.buffered}),e("progress")},onRateChange:t=>{this.setState({playbackRate:t}),e("ratechange")},onResize:e=>{this.setState(e),this.config.eventCb("resize")},onSeeked:t=>{const{seeking:n}=t.currentTarget;this.setState({seeking:n}),e("seeked")},onSeeking:t=>{const{seeking:n}=t.currentTarget;this.setState({seeking:n}),e("seeking")},onStalled:()=>e("stalled"),onSuspend:()=>e("suspend"),onTimeUpdate:t=>{const{played:n,currentTime:r,seeking:i}=t.currentTarget;this.setState({played:n,currentTime:r,seeking:i}),e("timeupdate")},onWaiting:()=>e("waiting"),debug:this.config.debugGlobals,onMutedChange:e=>{this.setState({muted:e})},onVolumeChange:t=>{this.setState({volume:t}),e("volumechange")},metrics:this.metrics,staging:this.config.streamElement.hasAttribute("staging"),cmcd:this.config.cmcd,customerDomainPrefix:this.config.streamElement.getAttribute("customer-domain-prefix")}),this.config.streamElement)}}const vt={control:function(e){let{play:t,pause:n,updateSrc:r,destroy:i}=e;return{play:t,pause:n,updateSrc:r,destroy:i}},config:function(e){return{buffered:{get:()=>e.state.buffered??new P._([]),set:null},played:{get:()=>e.state.played??new P._([]),set:null},currentTime:{get:()=>e.state.currentTime,set:t=>void 0!==t&&e.seek(t)},defaultTextTrack:{get:()=>e.state.defaultTextTrack,set:t=>e.setState({defaultTextTrack:t})},__unstableTextTrackLabels:{get:()=>e.state.textTrackLabels,set:t=>e.setState({textTrackLabels:t})},volume:{get:()=>e.state.volume,set:t=>void 0!==t&&e.setState({volume:t})},autoplay:{get:()=>e.state.autoplay,set:t=>void 0!==t&&e.setState({autoplay:t})},letterboxColor:{get:()=>e.state.letterboxColor,set:t=>e.setState({letterboxColor:t})},duration:{get:()=>e.state.duration,set:null},ended:{get:()=>e.state.ended,set:null},paused:{get:()=>e.state.paused,set:null},playbackRate:{get:()=>e.state.playbackRate,set:t=>void 0!==t&&e.setState({playbackRate:t})},preload:{get:()=>e.state.preload,set:t=>void 0!==t&&e.setState({preload:t??"none"})},primaryColor:{get:()=>e.state.primaryColor,set:t=>e.setState({primaryColor:t})},poster:{get:()=>e.state.poster,set:t=>e.setState({poster:t})},loop:{get:()=>e.state.loop,set:t=>void 0!==t&&e.setState({loop:t})},muted:{get:()=>e.state.muted,set:t=>void 0!==t&&e.setState({muted:t})},controls:{get:()=>e.state.controls,set:t=>void 0!==t&&e.setState({controls:t})},videoHeight:{get:()=>e.state.videoHeight,set:null},videoWidth:{get:()=>e.state.videoWidth,set:null},seeking:{get:()=>e.state.seeking,set:null}}},init:async function(e,t,r){"hls"===r.forceFlavor&&await n.e(106).then(n.t.bind(n,1106,23)).then((e=>{Object.assign(window,{muxjs:e})}));const i=new mt(e,t,r);return await i.waitForAdsManager(),await i.waitForPlaybackProvider(),i}};var yt=n(9434),bt=n(3379),wt=n.n(bt),xt=n(7795),Et=n.n(xt),Tt=n(569),St=n.n(Tt),kt=n(3565),At=n.n(kt),Ct=n(9216),It=n.n(Ct),_t=n(4589),Mt=n.n(_t),Rt=n(9063),Pt=n.n(Rt),Dt={};Dt.styleTagTransform=Mt(),Dt.setAttributes=At(),Dt.insert=St().bind(null,"head"),Dt.domAPI=Et(),Dt.insertStyleElement=It();wt()(Pt(),Dt);Pt()&&Pt().locals&&Pt().locals;function Nt(e){const t=e.getAttribute("src"),n=e.hasAttribute("staging"),r=e.getAttribute("customer-domain-prefix");let{resourceUrl:a}=(0,i.G)(t,n,r);return e.hasAttribute("poster")?e.getAttribute("poster"):function(e){const t=[240,360,480,720,1080],n=new URLSearchParams,{innerHeight:r}=window;if(0===r)n.set("height","720");else{const e=t.find((e=>e>=r))??t[t.length-1];n.set("height",e.toString())}return e+`/thumbnails/thumbnail.jpg?${n}`}(a)}function Ot(e){try{if(e.cleanlyInitialized||e.initializing)return;e.initializing=!0;let t=e.getAttribute("src");t||console.error("Failed to load Stream element: src attribute not defined");const n=document.createElement("div");n.id=crypto.randomUUID(),e.appendChild(n);const o=e.hasAttribute("staging"),s=e.getAttribute("customer-domain-prefix");let{beaconUrl:u}=(0,i.G)(e,o,s);const l=e.getAttribute("force-flavor");let c=e.hasAttribute("autoplay");const d=e.hasAttribute("muted")||e.hasAttribute("mute"),f=e.hasAttribute("controls"),h=e.getAttribute("preload"),p=e.getAttribute("default-text-track"),g=Nt(e),m=e.hasAttribute("fit"),v=e.hasAttribute("no-quality-selector"),y=e.hasAttribute("debug-beacons"),b=e.hasAttribute("debug-globals"),w=e.getAttribute("bypass"),x=e.getAttribute("width");null!==x&&(e.style.width="number"==typeof e.style.width?`${x}px`:x);const E=e.getAttribute("height");null!==E&&(e.style.height="number"==typeof e.style.height?`${E}px`:E);let T=e.getAttribute("ad-url");T||(T=null);const S=e.getAttribute("primary-color"),k=e.getAttribute("letterbox-color"),A=e.getAttribute("title"),C=e.getAttribute("logo"),_=(0,r.yV)(e.getAttribute("share-link")),M=(0,r.yV)(e.getAttribute("channel-link")),R=e.hasAttribute("cmcd"),P=new I({element:n,site:u,src:t,playerVersion:a.bl}).withDebug(y);return vt.init(t,P,{poster:g,autoplay:c,cmcd:R,fit:m,muted:d,defaultTextTrack:p,preload:h,forceFlavor:l,controls:f,primaryColor:S,letterboxColor:k,streamElement:e,containerElement:n,bypass:w,debugGlobals:b,src:t,adURL:T,title:A,logo:C,shareLink:_,channelLink:M,controlBarConfig:{noQualitySelector:v},eventCb:t=>{const n=new CustomEvent(t);e.dispatchEvent(n);const r=`on${t}`;if(!e.hasAttribute(r))return;const i=e.getAttribute(r);new Function("event",i)(n)}}).then((n=>{!function(e){const{player:t,streamElement:n,metrics:r}=e;let i=vt.config(t);Object.keys(i).forEach((e=>{let{get:t,set:r}=i[e],a={configurable:!0};t&&(a.get=t),r&&(n.hasOwnProperty(e)&&r(n[e]),a.set=r),Object.defineProperty(n,e,a)}));const a=n.getAttribute("preload");n.preload=a,n.hasAttribute("loop")&&(n.loop=!0);(n.hasAttribute("muted")||n.hasAttribute("mute"))&&(n.muted=!0);const o=e=>{r.updateSrc(e),n.poster=Nt(n),u.updateSrc(e)},s=new MutationObserver((e=>{Array.from(e).some((e=>"src"===e.attributeName))&&o(n.getAttribute("src"))}));s.observe(n,{attributes:!0,subtree:!1});let u=vt.control(t);n.play=function(){return u.play()},n.pause=function(){u.pause()},n.destroy=function(){u.destroy(),s.disconnect()},n.hookBeacon=function(e){r.getBeaconClient().hook(e)},n.__getSource=function(){return n.getAttribute("src")},n.cleanlyInitialized=!0,n.initializing=!1}({player:n,src:t,streamElement:e,metrics:P,staging:o}),(0,yt.f)({__privateUnstableMessageType:"iframeReady"});const r=Number(e.getAttribute("start-time"));return!isNaN(r)&&r>0&&(e.currentTime=r),e})).catch(pe)}catch(e){pe(e)}}window.__stream||(window.__stream={init:function(){Array.prototype.slice.call(document.querySelectorAll("stream")).forEach((e=>{Ot(e)}))},initElement:Ot}),window.__stream.init()},3099:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},1223:(e,t,n)=>{var r=n(5112),i=n(30),a=n(3070),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},9670:(e,t,n)=>{var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},1318:(e,t,n)=>{var r=n(5656),i=n(7466),a=n(1400),o=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4326:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:(e,t,n)=>{var r=n(1694),i=n(4326),a=n(5112)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i: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=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},1501:(e,t,n)=>{"use strict";var r=n(9670),i=n(3099);e.exports=function(){for(var e=r(this),t=i(e.add),n=0,a=arguments.length;n<a;n++)t.call(e,arguments[n]);return e}},4092:(e,t,n)=>{"use strict";var r=n(9670),i=n(3099);e.exports=function(){for(var e,t=r(this),n=i(t.delete),a=!0,o=0,s=arguments.length;o<s;o++)e=n.call(t,arguments[o]),a=a&&e;return!!a}},9920:(e,t,n)=>{var r=n(6656),i=n(3887),a=n(1236),o=n(3070);e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||s(e,c,u(t,c))}}},8880:(e,t,n)=>{var r=n(9781),i=n(3070),a=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),i=n(111),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},8113:(e,t,n)=>{var r=n(1331);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,i,a=n(7854),o=n(8113),s=a.process,u=s&&s.versions,l=u&&u.v8;l?i=(r=l.split("."))[0]<4?1:r[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,n)=>{var r=n(7854),i=n(1236).f,a=n(8880),o=n(1320),s=n(3505),u=n(9920),l=n(4705);e.exports=function(e,t){var n,c,d,f,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(f=t[c],d=e.noTargetGet?(h=i(n,c))&&h.value:n[c],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof f===typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,c,f,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},9974:(e,t,n)=>{var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1331:(e,t,n)=>{var r=n(857),i=n(7854),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},1246:(e,t,n)=>{var r=n(648),i=n(7497),a=n(5112)("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},8554:(e,t,n)=>{var r=n(9670),i=n(1246);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},4647:(e,t,n)=>{var r=n(1913),i=n(8554);e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},6767:(e,t,n)=>{var r=n(1913),i=n(8554);e.exports=r?i:function(e){return Set.prototype.values.call(e)}},7854:(e,t,n)=>{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)||function(){return this}()||Function("return this")()},6656:(e,t,n)=>{var r=n(7908),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},3501:e=>{e.exports={}},490:(e,t,n)=>{var r=n(1331);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(7293),i=n(4326),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},2788:(e,t,n)=>{var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},9909:(e,t,n)=>{var r,i,a,o=n(8536),s=n(7854),u=n(111),l=n(8880),c=n(6656),d=n(5465),f=n(6200),h=n(3501),p="Object already initialized",g=s.WeakMap;if(o||d.state){var m=d.state||(d.state=new g),v=m.get,y=m.has,b=m.set;r=function(e,t){if(y.call(m,e))throw new TypeError(p);return t.facade=e,b.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var w=f("state");h[w]=!0,r=function(e,t){if(c(e,w))throw new TypeError(p);return t.facade=e,l(e,w,t),t},i=function(e){return c(e,w)?e[w]:{}},a=function(e){return c(e,w)}}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(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),i=n(7497),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},4705:(e,t,n)=>{var r=n(7293),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},111:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},1913:e=>{e.exports=!1},408:(e,t,n)=>{var r=n(9670),i=n(7659),a=n(7466),o=n(9974),s=n(1246),u=n(9212),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var c,d,f,h,p,g,m,v=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),x=o(t,v,1+y+w),E=function(e){return c&&u(c),new l(!0,e)},T=function(e){return y?(r(e),w?x(e[0],e[1],E):x(e[0],e[1])):w?x(e,E):x(e)};if(b)c=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,h=a(e.length);h>f;f++)if((p=T(e[f]))&&p instanceof l)return p;return new l(!1)}c=d.call(e)}for(g=c.next;!(m=g.call(c)).done;){try{p=T(m.value)}catch(e){throw u(c),e}if("object"==typeof p&&p&&p instanceof l)return p}return new l(!1)}},9212:(e,t,n)=>{var r=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},7497:e=>{e.exports={}},133:(e,t,n)=>{var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),i=n(2788),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(i(a))},30:(e,t,n)=>{var r,i=n(9670),a=n(6048),o=n(748),s=n(3501),u=n(490),l=n(317),c=n(6200),d=c("IE_PROTO"),f=function(){},h=function(e){return"<script>"+e+"</"+"script>"},p=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;p=r?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=i(e),n=new f,f.prototype=null,n[d]=e):n=p(),void 0===t?n:a(n,t)}},6048:(e,t,n)=>{var r=n(9781),i=n(3070),a=n(9670),o=n(1956);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},3070:(e,t,n)=>{var r=n(9781),i=n(4664),a=n(9670),o=n(7593),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{var r=n(9781),i=n(5296),a=n(9114),o=n(5656),s=n(7593),u=n(6656),l=n(4664),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return a(!i.f.call(e,t),e[t])}},8006:(e,t,n)=>{var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},6324:(e,t,n)=>{var r=n(6656),i=n(5656),a=n(1318).indexOf,o=n(3501);e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)!r(o,n)&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(l,n)||l.push(n));return l}},1956:(e,t,n)=>{var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:(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},3887:(e,t,n)=>{var r=n(1331),i=n(8006),a=n(5181),o=n(9670);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},857:(e,t,n)=>{var r=n(7854);e.exports=r},1320:(e,t,n)=>{var r=n(7854),i=n(8880),a=n(6656),o=n(3505),s=n(2788),u=n(9909),l=u.get,c=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var u,l=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),(u=c(n)).source||(u.source=d.join("string"==typeof t?t:""))),e!==r?(l?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},4488:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},6465:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3505:(e,t,n)=>{var r=n(7854),i=n(8880);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},6200:(e,t,n)=>{var r=n(2309),i=n(9711),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},5465:(e,t,n)=>{var r=n(7854),i=n(3505),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},2309:(e,t,n)=>{var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(e,t,n)=>{var r=n(9670),i=n(3099),a=n(5112)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},1400:(e,t,n)=>{var r=n(9958),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)}},5656:(e,t,n)=>{var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9958:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:(e,t,n)=>{var r=n(9958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(4488);e.exports=function(e){return Object(r(e))}},7593:(e,t,n)=>{var r=n(111);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},9711:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:(e,t,n)=>{var r=n(7854),i=n(2309),a=n(6656),o=n(9711),s=n(133),u=n(3307),l=i("wks"),c=r.Symbol,d=u?c:c&&c.withoutSetter||o;e.exports=function(e){return a(l,e)&&(s||"string"==typeof l[e])||(s&&a(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},3475:(e,t,n)=>{"use strict";var r=n(9781),i=n(1223),a=n(7908),o=n(7466),s=n(3070).f;r&&!("lastIndex"in[])&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e.length);return 0==t?0:t-1}}),i("lastIndex"))},72:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(4092);r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},9137:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(4647),u=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e,n,i){if(!r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},1957:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(9974),l=n(6707),c=n(4647),d=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{filter:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),f=s(i.set);return d(n,(function(e,n){r(n,e,t)&&f.call(i,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},103:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(4647),u=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n,i){if(r(n,e,t))return i(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},6306:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(4647),u=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{find:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n,i){if(r(n,e,t))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},4592:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(4647),s=n(6465),u=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return u(o(a(this)),(function(t,n,r){if(s(n,e))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},8276:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(4647),s=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(o(a(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},5082:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(9974),l=n(6707),c=n(4647),d=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),f=s(i.set);return d(n,(function(e,n){f.call(i,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},2813:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(9974),l=n(6707),c=n(4647),d=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),f=s(i.set);return d(n,(function(e,n){f.call(i,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},8222:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(3099),s=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){for(var t=a(this),n=o(t.set),r=0;r<arguments.length;)s(arguments[r++],n,{that:t,AS_ENTRIES:!0});return t}})},8563:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(3099),s=n(4647),u=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n,a){r?(r=!1,i=a):i=e(i,a,n,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty map with no initial value");return i}})},336:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(4647),u=n(408);r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n,i){if(r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},7512:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(3099);r({target:"Map",proto:!0,real:!0,forced:i},{update:function(e,t){var n=a(this),r=arguments.length;o(t);var i=n.has(e);if(!i&&r<3)throw TypeError("Updating absent value");var s=i?n.get(e):o(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},8921:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1501);r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},6248:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(4092);r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},3599:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(6707),l=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=o(this),n=new(u(t,a("Set")))(t),r=s(n.delete);return l(e,(function(e){r.call(n,e)})),n}})},1477:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(6767),u=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e,n){if(!r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},4362:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(9974),l=n(6707),c=n(6767),d=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Set"))),f=s(i.add);return d(n,(function(e){r(e,e,t)&&f.call(i,e)}),{IS_ITERATOR:!0}),i}})},5389:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(6767),u=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(e,e,t))return n(e)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},401:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(6707),l=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=o(this),n=new(u(t,a("Set"))),r=s(t.has),i=s(n.add);return l(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},5164:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(3099),s=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=a(this),n=o(t.has);return!s(e,(function(e,r){if(!0===n.call(t,e))return r()}),{INTERRUPTED:!0}).stopped}})},1238:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(8554),l=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=u(this),n=o(e),r=n.has;return"function"!=typeof r&&(n=new(a("Set"))(e),r=s(n.has)),!l(t,(function(e,t){if(!1===r.call(n,e))return t()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},4837:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(3099),s=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=a(this),n=o(t.has);return!s(e,(function(e,r){if(!1===n.call(t,e))return r()}),{INTERRUPTED:!0}).stopped}})},7485:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(6767),s=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=a(this),n=o(t),r=void 0===e?",":String(e),i=[];return s(n,i.push,{that:i,IS_ITERATOR:!0}),i.join(r)}})},465:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(9974),l=n(6707),c=n(6767),d=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{map:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Set"))),f=s(i.add);return d(n,(function(e){f.call(i,r(e,e,t))}),{IS_ITERATOR:!0}),i}})},6651:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(3099),s=n(6767),u=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),{IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty set with no initial value");return i}})},1437:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(9670),o=n(9974),s=n(6767),u=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},5285:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(6707),l=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=o(this),n=new(u(t,a("Set")))(t),r=s(n.delete),i=s(n.add);return l(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},9865:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1331),o=n(9670),s=n(3099),u=n(6707),l=n(408);r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=o(this),n=new(u(t,a("Set")))(t);return l(e,s(n.add),{that:n}),n}})},8206:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(4092);r({target:"WeakMap",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},3561:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(1501);r({target:"WeakSet",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},2049:(e,t,n)=>{"use strict";var r=n(2109),i=n(1913),a=n(4092);r({target:"WeakSet",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},9063:(e,t,n)=>{(e.exports=n(2686)(!1)).push([e.id,'stream {\n display: block;\n position: relative;\n}\n\n:root {\n --cloudflare-orange: #f38020;\n --cloudflare-alt-white: #ffffff;\n --cloudflare-sans-serif-font: Avenir;\n}\n\nstream {\n --cloudflare-video-theme-color: var(--cloudflare-alt-white);\n --cloudflare-video-theme-font: var(--cloudflare-sans-serif-font);\n}\n\ntextarea.cf-video-stats {\n position: fixed;\n right: 10px;\n top: 10px;\n z-index: 999999;\n opacity: 0.6;\n background: #000;\n border: 1px solid yellow;\n margin: 0px;\n padding: 5px;\n overflow: hidden;\n text-rendering: auto;\n line-height: normal;\n color: yellow;\n width: 12em;\n height: 6.4em;\n font-family: "Lucida Console", Monaco, monospace;\n font-size: 11px;\n}',""])},3379: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={},o=[],s=0;s<e.length;s++){var u=e[s],l=r.base?u[0]+r.base:u[0],c=a[l]||0,d="".concat(l," ").concat(c);a[l]=c+1;var f=n(d),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)t[f].references++,t[f].updater(h);else{var p=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:p,references:1})}o.push(d)}return o}function i(e,t){var n=t.domAPI(t);n.update(e);return 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 o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var u=r(e,i),l=0;l<a.length;l++){var c=n(a[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if("undefined"===typeof 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)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){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="undefined"!==typeof 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)}}}},4589: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))}}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=i,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+"."+{41:"093bfa3e",46:"711f50b5",106:"c3d973d4",233:"a7045bab",402:"f3261be7",525:"43864667",556:"d5fefeb9",567:"d1ff5ccc",809:"29cb9313"}[e]+".chunk.js",o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="cffs:",o.l=(e,t,i,a)=>{if(n[e])n[e].push(t);else{var s,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(h);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}},o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={29:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,a=n[0],s=n[1],u=n[2],l=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(u)u(o)}for(t&&t(n);l<a.length;l++)i=a[l],o.o(e,i)&&e[i]&&e[i][0](),e[a[l]]=0},n=self.__cfswpl__=self.__cfswpl__||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=o(7867),t=o(9434),n=o(4449);const r=["currentTime","playbackRate","volume","muted","autoplay","preload","loop","controls","poster","primaryColor","letterboxColor","defaultTextTrack","__unstableTextTrackLabels","title","logo","shareLink","channelLink"];var i=o(3210);const a=new RegExp(/^https?:\/\//),s=new RegExp(/^\/\//),u=new RegExp(/^\//);const l=e=>e,c={poster:e=>null===e?null:function(e,t){return a.test(e)?e:s.test(e)?t.protocol+e:u.test(e)?t.origin+e:[t.origin,...t.pathname.split("/").filter(((e,t,n)=>0!==t&&t!==n.length-1)),e].join("/")}(e,window.location),height:e=>null===e?null:"100vh",width:e=>null===e?null:"100vw",src:l,autoplay:l,controls:l,loop:l,preload:l,mute:l,muted:l,staging:l,"default-text-track":l,"ad-url":l,"debug-globals":l,"primary-color":l,"letterbox-color":l,"force-flavor":l,"customer-domain-prefix":l,title:l,logo:l,"share-link":i.yV,"channel-link":i.yV},d=Object.keys(c);o(4337);const f=document.querySelector("stream");if(!f)throw new Error("no stream element found");var h;h=f,[...e.Oz,...e.ps.map(e.U_)].forEach((r=>h.addEventListener(r,(()=>{switch("timeupdate"===r&&(0,t.f)({__privateUnstableMessageType:"playedTimeRangesUpdate",timeRanges:h.played?(0,n.V)(h.played):[]}),"progress"===r&&(0,t.f)({__privateUnstableMessageType:"bufferedTimeRangesUpdate",timeRanges:h.buffered?(0,n.V)(h.buffered):[]}),r===(0,e.U_)("adstart")&&(0,t.f)({__privateUnstableMessageType:"event",eventName:"adstart"}),r){case"timeupdate":case"seeking":case"seeked":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"seeking",value:h.seeking}),(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"currentTime",value:h.currentTime});break;case"ratechange":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"playbackRate",value:h.playbackRate});break;case"resize":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"videoHeight",value:h.videoHeight}),(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"videoWidth",value:h.videoWidth});break;case"volumechange":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"volume",value:h.volume}),(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"muted",value:h.muted});break;case"durationchange":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"duration",value:h.duration});break;case"ended":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"ended",value:!0});break;case"pause":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"paused",value:!0});break;case"play":(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"ended",value:!1}),(0,t.f)({__privateUnstableMessageType:"propertyChange",property:"paused",value:!1})}(0,t.f)({__privateUnstableMessageType:"event",eventName:r})})))),window.addEventListener("message",(e=>{if(e.source!==window.parent)return;const n=e.data;switch(n.__privateUnstableMessageType){case"attributeChange":d.includes(n.attribute)&&(void 0===n.value||null===n.value?h.removeAttribute(n.attribute):h.setAttribute(n.attribute,n.value));break;case"setProperty":r.includes(n.property)&&(h[n.property]=n.value);break;case"playCommand":h.play().then((()=>{(0,t.f)({__privateUnstableMessageType:"playSuccess",promiseId:n.promiseId})})).catch((()=>{(0,t.f)({__privateUnstableMessageType:"playFailure",promiseId:n.promiseId})}));break;case"pauseCommand":h.pause();break;case"closeContextMenu":document.body.click()}})),f.hookBeacon&&f.hookBeacon((e=>{(0,t.f)({__privateUnstableMessageType:"metrics",metrics:e})}))})()})();